:root {
  --ink: #18201b;
  --muted: #637067;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dde3da;
  --primary: #176b5b;
  --primary-dark: #0e463b;
  --accent: #d78b39;
  --soft: #edf5f1;
  --danger: #a33d35;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand, .nav-links, .actions, .row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { font-weight: 800; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
}
.nav-links { flex-wrap: wrap; justify-content: flex-end; font-size: 0.95rem; }
.nav-links a, .site-footer a, .panel-title a, .row-actions a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .site-footer a:hover, .panel-title a:hover, .row-actions a:hover { color: var(--primary-dark); }
.nav-cta {
  padding: 10px 14px;
  color: white !important;
  background: var(--primary);
  border-radius: 8px;
}
.inline-form { margin: 0; }
.link-button, .row-actions button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.hero, .page-hero, .band, .workspace-head, .workspace-grid, .stat-grid, .pricing-grid, .legal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 48px;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.lead { max-width: 680px; color: var(--muted); font-size: 1.18rem; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.button.primary { color: white; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { color: var(--ink); background: var(--surface); }
.button.full { width: 100%; }
.product-panel, .form-card, .table-panel, .price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(25, 43, 36, 0.09);
}
.product-panel { padding: 22px; }
.panel-top { display: flex; gap: 8px; margin-bottom: 28px; }
.panel-top span { width: 12px; height: 12px; border-radius: 999px; background: var(--line); }
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.metric-row div, .stat-grid article {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
}
.metric-row strong, .stat-grid strong { display: block; font-size: 2rem; }
.metric-row span, .stat-grid span, .muted, .small { color: var(--muted); }
.timeline p, .row-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline span, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft);
  font-size: 0.85rem;
  font-weight: 750;
}
.timeline .warn { color: #7b4b13; background: #fff3dc; }
.pill.ready { color: #0c5548; background: #dff3ec; }
.band, .page-hero, .legal { padding: 68px 0; }
.section-head { max-width: 760px; }
.section-head h2, .band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
}
.feature-grid, .pricing-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid article {
  min-height: 190px;
  padding: 24px;
  border-top: 4px solid var(--primary);
  background: var(--surface);
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.check-list { margin: 0; padding-left: 22px; color: var(--muted); }
.check-list li { margin-bottom: 12px; }
.pricing-grid { padding: 12px 0 72px; }
.price-card { padding: 28px; }
.price-card.featured { border-color: var(--primary); }
.price { font-size: 2.5rem; font-weight: 850; margin: 10px 0; }
.price span { color: var(--muted); font-size: 1rem; }
.legal { max-width: 760px; }
.auth-shell {
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 48px 20px;
}
.auth-shell.wide { min-height: auto; }
.form-card {
  width: min(540px, 100%);
  padding: 30px;
}
.wide .form-card { width: min(760px, 100%); }
label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
}
textarea { resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 52px 0 22px;
}
.workspace-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 72px;
}
.table-panel { padding: 22px; box-shadow: none; }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.panel-title h2, .row-card h3 { margin: 0; }
.row-card { grid-template-columns: 1fr auto auto; }
.row-actions { gap: 10px; }
.row-actions button { color: var(--danger); }
.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.flash-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 16px auto 0;
}
.flash {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}
.flash.success { border-color: #a9d9c9; background: #ecf8f3; }
.flash.error { border-color: #e1aaa4; background: #fff0ef; }
.flash.warning { border-color: #e8cf9d; background: #fff7e6; }
.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 16px; }

@media (max-width: 860px) {
  .site-header, .site-footer, .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero, .two-column, .workspace-grid, .feature-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 46px; }
  .stat-grid, .metric-row { grid-template-columns: repeat(2, 1fr); }
  .row-card, .timeline p { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-direction: column; width: 100%; }
  .actions .button { width: 100%; }
}
