:root{
  --teal-950: #123B39;
  --teal-700: #1F6F6B;
  --teal-100: #D9ECEA;
  --teal-50:  #E4F1EF;
  --sand-50:  #FBF8F3;
  --sand-100: #EFE9DD;
  --sand-border: #E6DDCD;
  --amber-500: #E8A857;
  --amber-600: #D4903E;
  --amber-light: #FBEBD0;
  --amber-ink: #6B3F06;
  --ink: #1E2F2D;
  --ink-soft: #4F625F;
  --ink-softer: #3D4F4C;
  --success-bg: #E3EEDF;
  --success-ink: #1F4F2A;
  --danger-bg: #FBEAE8;
  --danger-ink: #7A2C12;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --shadow: 0 4px 18px rgba(18,59,57,0.07);

  --font-head: 'Figtree', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*{ box-sizing: border-box; }
body{
  margin: 0; background: var(--sand-50); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
}
h1,h2,h3,h4{ font-family: var(--font-head); color: var(--teal-950); margin: 0 0 .5rem; font-weight: 700; }
h1{ font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
h2{ font-size: 22px; }
h3{ font-size: 18px; }
p{ margin: 0 0 1rem; color: var(--ink-soft); }
a{ color: var(--teal-700); }
:focus-visible{ outline: 3px solid var(--teal-950); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce){ *{ transition: none !important; animation: none !important; } }

.container{ max-width: 1160px; margin: 0 auto; padding: 24px 20px 72px; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; cursor: pointer;
  text-decoration: none;
}
.btn--primary{ background: var(--teal-700); color: #fff; }
.btn--primary:hover{ background: var(--teal-950); }
.btn--amber{ background: var(--amber-500); color: var(--teal-950); }
.btn--amber:hover{ background: #F2BC74; }
.btn--outline{ background: transparent; border: 2px solid var(--teal-700); color: var(--teal-950); }
.btn--danger{ background: transparent; border: 2px solid #9A3B1E; color: var(--danger-ink); }
.btn--sm{ min-height: 44px; padding: 0 18px; font-size: 14px; }

.card{ background: #fff; border: 1px solid var(--sand-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card--flat{ box-shadow: none; }

.badge{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; font: 700 14px var(--font-head); }
.badge--success{ background: var(--success-bg); color: var(--success-ink); }
.badge--progress{ background: var(--teal-50); color: var(--teal-950); }
.badge--review{ background: var(--amber-light); color: var(--amber-ink); }
.badge--none{ background: var(--sand-100); color: var(--ink-softer); }

.field{ margin-bottom: 1.1rem; }
.field label{ display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--teal-950); }
.field input, .field select, .field textarea{
  width: 100%; min-height: 48px; padding: 0 16px; border: 2px solid var(--sand-border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; background: #fff;
}
.field textarea{ min-height: 100px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--teal-700); }

.tabs{
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 16px; margin-bottom: 20px; background: var(--sand-100);
  border-radius: var(--radius-lg); border: 1px solid var(--sand-border);
}
.tabs a, .tabs button{
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--teal-700);
  background: #fff; color: var(--teal-950); font: 600 13.5px var(--font-head);
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1;
  transition: background .12s ease, color .12s ease;
}
.tabs a:hover, .tabs button:hover{ background: var(--teal-50); }
.tabs a.active, .tabs button.active{ background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

.topbar{ display: flex; align-items: center; justify-content: space-between; background: var(--teal-950); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 20; }
.topbar__brand{ font: 700 18px var(--font-head); color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.topbar__brand span{ width: 28px; height: 28px; border-radius: 50%; background: var(--amber-500); color: var(--teal-950); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

.empty-state{ text-align: center; padding: 28px; border: 2px dashed #D8CCB6; border-radius: 18px; color: var(--ink-soft); }

.flash{ padding: 12px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 16px; }
.flash--success{ background: var(--success-bg); color: var(--success-ink); }
.flash--error{ background: var(--danger-bg); color: var(--danger-ink); }

/* ---------- Landing page ---------- */
.audience-toggle{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.audience-toggle button{
  min-height:48px; padding:0 22px; border-radius:999px; border:2px solid var(--teal-700);
  font:700 16px var(--font-head); cursor:pointer;
}
.audience-toggle button.active{ background:var(--teal-700); color:#fff; }
.audience-toggle button:not(.active){ background:#fff; color:var(--teal-950); }

.hero-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:32px; align-items:center; margin-bottom:40px; }
.hero-tag{ display:inline-block; background:var(--amber-light); color:var(--amber-ink); border-radius:999px; padding:6px 14px; font:700 14px var(--font-head); margin-bottom:16px; }
.hero-graphic{
  position:relative; min-height:300px; border-radius:24px; border:1px solid var(--sand-border);
  background:repeating-linear-gradient(135deg, var(--sand-100) 0 14px, #EDE4D3 14px 28px);
  display:flex; align-items:flex-end; padding:16px;
}
.hero-float{
  position:absolute; right:16px; top:16px; max-width:230px; background:#fff; border-radius:16px;
  padding:14px 16px; box-shadow:var(--shadow);
}

.benefit-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; margin:36px 0; }
.benefit-row{ display:flex; gap:12px; align-items:flex-start; }
.benefit-icon{
  flex:none; width:40px; height:40px; border-radius:12px; background:var(--teal-100); color:var(--teal-950);
  display:inline-flex; align-items:center; justify-content:center; font-size:18px;
}

.steps-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; }
.step-card{ background:#fff; border:1px solid var(--sand-border); border-radius:20px; padding:22px; }
.step-num{
  display:inline-flex; width:36px; height:36px; border-radius:50%; background:var(--amber-500); color:var(--teal-950);
  align-items:center; justify-content:center; font:700 17px var(--font-head);
}

.trust-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; margin:36px 0; }
.trust-item{ border-top:3px solid var(--teal-700); padding-top:12px; }

.cta-band{
  background:var(--teal-950); color:#fff; border-radius:26px; padding:clamp(24px,5vw,48px);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:24px; align-items:center;
}
.cta-band p{ color:var(--teal-100); }

/* ---------- Sidebar shell (matches approved prototype) ---------- */
.shell{ display:flex; align-items:flex-start; }
.side{
  width:208px; flex:none; position:sticky; top:0; height:100vh; overflow-y:auto;
  background:var(--teal-950); color:#fff; padding:18px 10px; z-index:30;
}
.side .brand{ display:flex; align-items:center; gap:10px; padding:2px 10px 14px; font:700 18px var(--font-head); color:#fff; text-decoration:none; }
.side .brand span{ width:30px; height:30px; border-radius:50%; background:var(--amber-500); color:var(--teal-950); display:inline-flex; align-items:center; justify-content:center; font:700 17px var(--font-head); }
.side .grp{ padding:6px 0; }
.side .grp small{ display:block; font-size:12px; color:var(--teal-100); padding:4px 12px; }
.side a.navlink{
  display:flex; width:100%; text-align:left; min-height:42px; align-items:center;
  padding:0 12px; border-radius:12px; color:#fff; font:600 15px var(--font-head); text-decoration:none;
}
.side a.navlink:hover{ background:var(--teal-700); }
.side a.navlink.current{ background:var(--amber-500); color:var(--teal-950); }

.mbar{ display:none; }
.scrim{ display:none; }

main.content{ flex:1; min-width:0; max-width:1160px; margin:0 auto; padding:24px 20px 72px; }

@media (max-width:900px){
  .shell{ display:block; }
  .mbar{
    display:flex; align-items:center; justify-content:space-between; position:sticky; top:0;
    z-index:20; background:var(--teal-950); color:#fff; padding:8px 14px;
  }
  .mbar .brand{ display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font:700 18px var(--font-head); }
  .mbar .brand span{ width:28px; height:28px; border-radius:50%; background:var(--amber-500); color:var(--teal-950); display:inline-flex; align-items:center; justify-content:center; font:700 15px var(--font-head); }
  .side{ position:fixed; left:0; top:0; width:min(300px,86vw); transform:translateX(-105%); transition:transform .2s; }
  .side.open{ transform:none; }
  .scrim.on{ display:block; position:fixed; inset:0; background:rgba(18,59,57,.5); z-index:25; }
  main.content{ padding:16px 14px 56px; }
}
