/* ==========================================================================
   Sakeenly — sakeenly.com
   Shared stylesheet for index.html and contact.html
   Design language: warm parchment ground, opacity-derived neutrals,
   border-based containment, shallow depth, generous editorial spacing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground + ink */
  --cream:        #f7f4ed;
  --cream-raised: #fbf9f5;
  --cream-sunk:   #f2eee5;
  --offwhite:     #fcfbf8;
  --ink:          #1c1c1c;
  /* interactive border: 0.5 rather than 0.4 so the boundary clears 3:1 on cream */
  --ink-40:       rgba(28, 28, 28, 0.50);
  --ink-04:       rgba(28, 28, 28, 0.04);
  --ink-03:       rgba(28, 28, 28, 0.03);

  /* Text roles (all verified >= 4.5:1 on --cream) */
  --text:         #1c1c1c;   /* 15.4:1 */
  --text-body:    #3d3d3b;   /* 10.0:1 */
  --text-muted:   #5b5b58;   /*  6.1:1 */

  /* Lines */
  --line:         #eceae4;
  --line-mid:     #e0dcd1;
  --line-strong:  #cfcabc;

  /* Sage accent — muted, never saturated */
  --sage:         #46604d;   /* 6.4:1 on cream */
  --sage-deep:    #33473a;
  --sage-tint:    #e8ede6;
  --sage-line:    #c8d5c7;

  /* Crisis / duty-of-care — warm clay, calm but distinct */
  --clay-text:    #6b4326;   /* 7.3:1 on --clay-bg */
  --clay-ink:     #58351d;
  --clay-bg:      #f6ece2;
  --clay-line:    #e2cdb7;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 22px;
  --r-pill: 9999px;

  /* Depth */
  --inset: rgba(255,255,255,0.20) 0 0.5px 0 0 inset,
           rgba(0,0,0,0.20) 0 0 0 0.5px inset,
           rgba(0,0,0,0.05) 0 1px 2px 0;
  --focus-shadow: rgba(0,0,0,0.10) 0 4px 12px;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(60px, 8.5vw, 116px);
  --maxw: 1160px;

  /* Type */
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
}

h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.22;
  letter-spacing: -0.014em;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a {
  color: var(--text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
a:hover { text-decoration-color: var(--sage); color: var(--sage-deep); }

strong { font-weight: 600; color: var(--text); }

svg { display: block; }

::selection { background: var(--sage-tint); color: var(--ink); }

/* Numerals */
.num, .plan-price, .stat-figure, time { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   3. Focus + skip link
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: var(--r-xs);
  box-shadow: var(--focus-shadow);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 999;
  background: var(--ink);
  color: var(--offwhite);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--offwhite); }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--sunk { background: var(--cream-sunk); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sage-line);
}

.section-head { max-width: 660px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 14px;
}

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.58;
  color: var(--text-body);
}

.prose p { color: var(--text-body); }
.prose p + p { margin-top: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease, background-color 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn:active { opacity: 0.8; }

.btn--primary {
  background: var(--ink);
  color: var(--offwhite);
  box-shadow: var(--inset);
}
.btn--primary:hover { background: #2a2a2a; color: var(--offwhite); }

.btn--sage {
  background: var(--sage-deep);
  color: var(--offwhite);
  box-shadow: var(--inset);
}
.btn--sage:hover { background: #2b3d31; color: var(--offwhite); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--ink-40);
}
.btn--ghost:hover { background: var(--ink-04); color: var(--text); }

.btn--cream {
  background: var(--cream-raised);
  color: var(--text);
  border-color: var(--line-mid);
}
.btn--cream:hover { background: var(--offwhite); color: var(--text); }

.btn--sm { padding: 8px 14px; font-size: 0.875rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Chips, pills, cards
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-mid);
  background: var(--cream-raised);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-body);
}
.pill--sage {
  background: var(--sage-tint);
  border-color: var(--sage-line);
  color: var(--sage-deep);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

.grid { display: grid; gap: clamp(14px, 1.8vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   7. Crisis notice (duty of care)
   -------------------------------------------------------------------------- */
.crisis-bar {
  background: var(--clay-bg);
  border-bottom: 1px solid var(--clay-line);
  color: var(--clay-text);
  font-size: 0.875rem;
  line-height: 1.5;
}
.crisis-bar .wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 9px;
}
.crisis-bar svg { flex: none; margin-top: 2px; }
.crisis-bar p { margin: 0; }
.crisis-bar a { color: var(--clay-text); text-decoration-color: rgba(107, 67, 38, 0.45); }
.crisis-bar a:hover { color: var(--clay-ink); text-decoration-color: var(--clay-ink); }

.crisis-panel {
  background: var(--clay-bg);
  border: 1px solid var(--clay-line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px);
  color: var(--clay-text);
}
.crisis-panel h2, .crisis-panel h3 { color: var(--clay-ink); }
.crisis-panel p { color: var(--clay-text); }
.crisis-panel .eyebrow { color: var(--clay-text); }
.crisis-panel .eyebrow::before { background: var(--clay-line); }
.crisis-panel ul { list-style: none; display: grid; gap: 13px; margin-top: 18px; }
.crisis-panel li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.crisis-panel li svg { margin-top: 4px; }
.crisis-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--clay-line);
  font-size: 0.875rem;
}
.crisis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 237, 0.93);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand svg { flex: none; }

.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-desktop a {
  padding: 8px 11px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text-body);
}
.nav-desktop a:hover { background: var(--ink-04); color: var(--text); }
.nav-desktop a[aria-current="page"] { color: var(--text); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; }
.nav-toggle > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink-40);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[open] .icon-open { display: none; }
.nav-toggle[open] .icon-close { display: block; }

.nav-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  display: grid;
  gap: 0;
  box-shadow: rgba(28, 28, 28, 0.06) 0 12px 24px -12px;
}
.nav-mobile a {
  padding: 13px 4px;
  text-decoration: none;
  color: var(--text-body);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.btn {
  margin-top: 16px;
  border: 1px solid transparent;
  color: var(--offwhite);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 92px) clamp(52px, 7vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -220px -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(44% 58% at 22% 34%, rgba(70, 96, 77, 0.15), transparent 70%),
    radial-gradient(40% 55% at 76% 20%, rgba(186, 152, 116, 0.17), transparent 72%),
    radial-gradient(50% 50% at 50% 4%, rgba(28, 28, 28, 0.035), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4.5vw, 60px);
  align-items: center;
}
.hero-copy > .lede { margin-top: 20px; max-width: 32em; }
.hero-copy .btn-row { margin-top: 30px; }

.hero-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-note svg { flex: none; margin-top: 3px; }

.hero-meta {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-meta svg { flex: none; }

/* Mockup frame shared by hero + how-it-works */
.mockup {
  background: var(--cream-raised);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-2xl);
  padding: 10px;
  box-shadow: rgba(28, 28, 28, 0.06) 0 16px 38px -20px;
}
.mockup svg { width: 100%; height: auto; border-radius: var(--r-xl); }
.mockup-caption {
  margin: 10px 6px 2px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Problem section
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 56px);
  align-items: start;
}
.friction-list { list-style: none; display: grid; gap: 0; }
.friction-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.friction-list li:last-child { border-bottom: 0; }
.friction-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-mid);
  background: var(--cream-raised);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.friction-list h3 { font-size: 1.0625rem; margin-bottom: 5px; }
.friction-list p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

.figure {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(16px, 2vw, 24px);
  margin: 0;
}
.figure svg { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Steps / how it works
   -------------------------------------------------------------------------- */
.flow-figure {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 30px);
  margin: 0;
  overflow-x: auto;
}
.flow-inner { min-width: 640px; }
.flow-inner > svg { width: 100%; height: auto; }
.flow-figure figcaption {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.steps { list-style: none; display: grid; gap: clamp(14px, 1.8vw, 20px); margin-top: clamp(20px, 3vw, 32px); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.2vw, 26px);
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding-inline: 11px;
  border-radius: var(--r-pill);
  background: var(--sage-tint);
  border: 1px solid var(--sage-line);
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }
.step-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.match-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  margin-top: clamp(34px, 4.5vw, 60px);
}
.match-split ul { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.match-split ul li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.match-split ul li svg { margin-top: 5px; }

/* --------------------------------------------------------------------------
   12. Feature grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.feature:hover { border-color: var(--line-strong); background: var(--offwhite); }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--sage-tint);
  border: 1px solid var(--sage-line);
  display: grid;
  place-items: center;
  flex: none;
}
.feature h3 { font-size: 1.0625rem; }
.feature p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.plan {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--sage-line);
  background: var(--sage-tint);
}
.plan--featured .plan-note { border-top-color: var(--sage-line); }
.plan-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 8px;
}
.plan-price .amount {
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.plan-price .per { font-size: 0.875rem; color: var(--text-muted); }
.plan-price--word .amount { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.85rem); }
.plan > p { font-size: 0.9375rem; color: var(--text-muted); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.plan li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.plan li svg { margin-top: 5px; }
.plan .btn { margin-top: 22px; }
.plan-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.plan-spacer { flex: 1 1 auto; }

.price-foot {
  margin-top: clamp(18px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 30px);
}
.price-foot h3 { margin-bottom: 10px; }
.price-foot p { font-size: 0.9375rem; color: var(--text-muted); }
.price-foot svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   14. Measures / credibility
   -------------------------------------------------------------------------- */
.measure-grid { display: grid; gap: clamp(14px, 1.8vw, 20px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.measure {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 26px);
  background: transparent;
}
.measure .stat-figure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.measure h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.measure p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

.honest-note {
  margin-top: clamp(20px, 2.6vw, 28px);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: var(--ink-03);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.honest-note svg { margin-top: 3px; }

.quote {
  border-left: 2px solid var(--sage-line);
  padding-left: clamp(18px, 2.4vw, 26px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.42;
  color: var(--text);
  margin: 0;
}
.quote footer {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust-strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-strip > div {
  background: var(--cream-raised);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-strip dt { font-size: 0.8125rem; color: var(--text-muted); order: 2; }
.trust-strip dd {
  margin: 0;
  order: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .faq-body { padding: 0 0 22px; max-width: 68ch; }
.faq .faq-body p { font-size: 0.9375rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. Closing CTA
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(252, 251, 248, 0.86);
  border-radius: var(--r-2xl);
  padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 64px);
  text-align: center;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: var(--offwhite); }
.cta-panel p { color: rgba(252, 251, 248, 0.82); max-width: 48ch; margin-inline: auto; margin-top: 16px; }
.cta-panel .btn-row { justify-content: center; margin-top: 28px; }
.cta-panel .btn--primary { background: var(--offwhite); color: var(--ink); box-shadow: none; }
.cta-panel .btn--primary:hover { background: #ffffff; color: var(--ink); }
.cta-panel .btn--ghost { color: var(--offwhite); border-color: rgba(252, 251, 248, 0.45); }
.cta-panel .btn--ghost:hover { background: rgba(252, 251, 248, 0.10); color: var(--offwhite); }
.cta-panel :focus-visible { outline-color: var(--offwhite); }
.cta-fine {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: rgba(252, 251, 248, 0.70);
}
.cta-deco {
  position: absolute;
  right: -70px;
  bottom: -110px;
  opacity: 0.14;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-sunk);
  padding-block: clamp(40px, 5vw, 64px) 28px;
  margin-top: clamp(48px, 6vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.footer-brand p {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-brand .pill-row { margin-top: 16px; }
.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-body);
  text-decoration: none;
}
.footer-col a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer-col li { font-size: 0.875rem; color: var(--text-muted); }

.footer-crisis {
  margin-top: clamp(30px, 4vw, 44px);
  border: 1px solid var(--clay-line);
  background: var(--clay-bg);
  color: var(--clay-text);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.55;
}
.footer-crisis svg { margin-top: 3px; }
.footer-crisis strong { color: var(--clay-ink); }

.footer-base {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-base a { color: var(--text-muted); text-decoration: none; }
.footer-base a:hover { color: var(--text); text-decoration: underline; }

/* --------------------------------------------------------------------------
   18. Forms (contact page)
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(26px, 3.4vw, 52px);
  align-items: start;
}

.form-card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 36px);
}
.form-card > h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
.form-card > p.form-intro {
  margin-top: 12px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

fieldset { border: 0; margin: 0; padding: 0; }
legend {
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.fieldset-block { margin-bottom: 30px; }
.fieldset-block:last-of-type { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}
.field .hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -3px 0 8px;
  font-weight: 400;
}
.req { color: var(--sage-deep); font-weight: 400; }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.8125rem; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 156px; resize: vertical; }

input::placeholder, textarea::placeholder { color: #6a6a66; }

input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage);
  background: var(--offwhite);
  box-shadow: var(--focus-shadow);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%235b5b58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.error-msg {
  display: block;
  font-size: 0.8125rem;
  color: #8a3324;
  margin-top: 6px;
}
.error-msg:empty { display: none; }
[aria-invalid="true"] { border-color: #8a3324; }

/* Live region: stays in the accessibility tree even when empty. */
.form-status {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #8a3324;
  margin: 0 0 20px;
}
.form-status:empty { margin: 0; }

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 6px 0 4px;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--sage-deep);
}
.consent label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

.form-foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}
.form-foot p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; max-width: 36ch; }

.aside-stack { display: grid; gap: clamp(14px, 1.8vw, 20px); }
.aside-card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 26px);
}
.aside-card h2, .aside-card h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
  margin-bottom: 12px;
}
.aside-card.crisis-panel h2 { color: var(--clay-ink); }
.aside-card.crisis-panel { background: var(--clay-bg); border-color: var(--clay-line); }
.aside-card.crisis-panel p { color: var(--clay-text); }
.aside-card.crisis-panel ul li { color: var(--clay-text); }
.aside-card p { font-size: 0.9375rem; color: var(--text-muted); }
.aside-card ol { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.aside-card ol li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.aside-card ol li::before {
  content: counter(s);
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--sage-line);
  background: var(--sage-tint);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.aside-card ul { list-style: none; display: grid; gap: 10px; }
.aside-card ul li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.aside-card ul li svg { margin-top: 5px; }

.contact-direct { display: grid; gap: 10px; margin-top: 4px; }
.contact-direct div { display: grid; gap: 2px; }
.contact-direct dt { font-size: 0.8125rem; color: var(--text-muted); }
.contact-direct dd { margin: 0; font-size: 0.9375rem; word-break: break-word; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .crisis-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .match-split { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .measure-grid { grid-template-columns: minmax(0, 1fr); }
  .price-foot { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .btn--nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-meta { gap: 12px; flex-direction: column; }
}

/* --------------------------------------------------------------------------
   20. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .cta-panel, .nav-toggle { display: none; }
  body { background: #ffffff; }
}
