/* ============================================================
   Sila — marketing site
   Design system mirrored from brand/color/sila-tokens.json
   "Quiet Premium": warm paper + one sage accent + frosted glass
   ============================================================ */

/* ---- Fonts (self-hosted brand fonts, OFL) ---- */
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/LibreCaslonText-VariableFont.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/LibreCaslonText-Italic-VariableFont.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens (light) ---- */
:root {
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sage: #3e6b4e;
  --sage-deep: #345c43;
  --cream: #fffbf8;
  --ink: #1e1b18;
  --pale-sage: #cdeacf;
  --pale-sage-dim: #b6dcb9;
  --hairline: #cdd1c8;
  --stone: #656a5f;

  --surface: #fffbf8;
  --surface-low: #fdf6f1;
  --surface-container: #f7f0eb;
  --surface-high: #f1eae5;
  --card: #ffffff;
  --on-surface: #1e1b18;
  --on-surface-variant: #434843;
  --on-surface-muted: #656a5f;
  --primary: #3e6b4e;
  --on-primary: #ffffff;
  --primary-container: #557a5e;
  --on-primary-container: #cdeacf;
  --error: #ba1a1a;

  --glass-bg: rgba(255, 251, 248, 0.72);
  --glass-border: rgba(205, 209, 200, 0.7);
  --shadow-ambient: 0 4px 20px rgba(45, 41, 38, 0.04);
  --shadow-float: 0 18px 50px -20px rgba(45, 41, 38, 0.22);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 9999px;

  --gutter: clamp(20px, 5vw, 32px);
  --maxw: 1120px;

  color-scheme: light;
}

/* ---- Tokens (dark) — warm espresso, never cold ---- */
[data-theme="dark"] {
  --sage: #bcd9bf;
  --sage-deep: #a7cdab;
  --cream: #15120f;
  --ink: #ece2da;
  --pale-sage: #3c5142;
  --pale-sage-dim: #46604c;
  --hairline: #4b443d;
  --stone: #a39a8f;

  --surface: #15120f;
  --surface-low: #1a1613;
  --surface-container: #1e1a16;
  --surface-high: #292420;
  --card: #1a1613;
  --on-surface: #ece2da;
  --on-surface-variant: #cabfb4;
  --on-surface-muted: #a39a8f;
  --primary: #bcd9bf;
  --on-primary: #213a2b;
  --primary-container: #3c5142;
  --on-primary-container: #d4edd3;
  --error: #ffb4ab;

  --glass-bg: rgba(21, 18, 15, 0.72);
  --glass-border: rgba(75, 68, 61, 0.7);
  --shadow-ambient: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--pale-sage); color: var(--ink); }
[data-theme="dark"] ::selection { background: var(--primary-container); color: var(--ink); }

/* ---- Typography scale (semantic, from globals.css) ---- */
.t-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.t-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
.t-h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}
.t-h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}
.lead {
  font-size: clamp(1.075rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.muted { color: var(--on-surface-muted); }
em.arabic { font-style: normal; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-sm { padding-block: clamp(48px, 7vw, 80px); }
/* offset in-page anchor jumps so the sticky nav doesn't cover headings */
section[id], main[id] { scroll-margin-top: 84px; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 60ch; margin-inline: auto; }

/* ---- Marks / logo ---- */
.mark { color: var(--sage); display: inline-flex; line-height: 0; }
svg.mark-svg { width: 100%; height: 100%; fill: currentColor; display: block; }

.lockup { display: inline-flex; align-items: center; gap: .6rem; color: var(--sage); }
.lockup .mark { width: 30px; height: 30px; flex: none; }
.lockup .word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--sage);
  line-height: 1;
  padding-top: 2px;
}

/* ============================================================
   Navigation — warm glass, floating chrome
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: .92rem;
  color: var(--on-surface-variant);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--sage); }
.nav-actions { display: flex; align-items: center; gap: .85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1;
  padding: .8rem 1.35rem;
  min-height: 44px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .2s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: var(--on-primary); }
[data-theme="dark"] .btn-primary { color: var(--on-primary); }
.btn-primary:hover { background: var(--sage-deep); }
.btn-ghost {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* theme + menu toggles */
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--sage); color: var(--sage); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-toggle { display: none; }
.nav-cta-mobile { display: none; }

/* mobile nav drawer */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--hairline); width: 100%; }
  .nav-links li:last-child a { border-bottom: 0; }
  .menu-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  /* full-width Get Sila button inside the drawer */
  .nav-cta-mobile { display: block; margin-top: .9rem; }
  .nav-cta-mobile a { display: flex; justify-content: center; width: 100%; border-bottom: 0; padding: .95rem 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 90px); padding-bottom: clamp(40px, 7vw, 80px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 80% at 70% 0%, var(--pale-sage) 0%, transparent 60%);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero::before { opacity: .22; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .t-eyebrow { margin-bottom: 1.1rem; }
.hero-copy .t-display { margin-bottom: 1.3rem; }
.hero-copy .t-display .accent { color: var(--sage); font-style: italic; }
.hero-copy .lead { margin-bottom: 2rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--on-surface-muted); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  /* copy first, device below — natural source order */
  .hero-visual { order: 0; margin-inline: auto; margin-top: 2.5rem; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
}
@media (max-width: 560px) {
  .hero { padding-top: clamp(24px, 6vw, 44px); }
  .hero-copy .t-display br { display: none; }      /* wrap naturally on narrow phones */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .strip .wrap { gap: .65rem 1.4rem; padding-block: 18px; }
  .strip-item { font-size: .82rem; }
}

/* ============================================================
   Device frame (real app screenshot) — fixed preview size
   ============================================================ */
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.device {
  position: relative;
  width: 288px;
  max-width: calc(100vw - 56px);
  box-sizing: border-box;
  border: 8px solid #18181b;
  border-radius: 45px;
  background: #18181b;
  box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.1), var(--shadow-float);
}
/* inner rim */
.device .rim {
  position: absolute;
  inset: -1px;
  border: 3px solid rgba(63, 63, 70, 0.4);
  border-radius: 37px;
  pointer-events: none;
  z-index: 10;
}
/* Dynamic Island */
.device .island {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #18181b;
  border-radius: 9999px;
  z-index: 20;
}
/* Screen — height derives from the screenshot's native aspect ratio
   (1320 x 2868), so the image is shown pixel-true: no stretch, no crop. */
.device .screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 37px;
  overflow: hidden;
  background: var(--surface);
}
.device-shot {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* side buttons */
.device .btn-side {
  position: absolute;
  width: 6px;
  background: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.device .btn-side.silent  { left: -12px; top: 80px;  height: 32px; border-radius: 3px 0 0 3px; }
.device .btn-side.vol-up  { left: -12px; top: 130px; height: 48px; border-radius: 3px 0 0 3px; }
.device .btn-side.vol-dn  { left: -12px; top: 188px; height: 48px; border-radius: 3px 0 0 3px; }
.device .btn-side.power   { right: -12px; top: 150px; height: 64px; border-radius: 0 3px 3px 0; }
@media (max-width: 360px) { .device .btn-side { display: none; } }

/* ============================================================
   Logo bar / trust strip
   ============================================================ */
.strip { border-block: 1px solid var(--hairline); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; padding-block: 22px; }
.strip-item { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--on-surface-muted); }
.strip-item svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* ============================================================
   The idea / loop
   ============================================================ */
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.center { margin-inline: auto; }
.section-head .t-eyebrow { margin-bottom: .9rem; }
.section-head .t-h2 { margin-bottom: 1rem; }

.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  counter-reset: step;
}
.loop-step {
  position: relative;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem 1.85rem;
}
.loop-step .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--sage);
  width: 38px; height: 38px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: var(--card);
}
.loop-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.loop-step p { font-size: .96rem; color: var(--on-surface-variant); }
@media (max-width: 760px) { .loop { grid-template-columns: 1fr; } }

/* ============================================================
   Features grid
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.feature {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.55rem;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--sage); transform: translateY(-3px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--pale-sage);
  color: var(--sage);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
[data-theme="dark"] .feature .ico { color: var(--on-primary-container); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; letter-spacing: -.01em; margin-bottom: .45rem; }
.feature p { font-size: .94rem; color: var(--on-surface-variant); }
.feature .plus { display: inline-block; margin-top: .8rem; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 2px 9px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   Split feature (alternating)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(4rem, 8vw, 6.5rem); }
.split.reverse .split-media { order: 2; }
.split-copy .t-eyebrow { margin-bottom: .85rem; }
.split-copy .t-h3 { margin-bottom: .9rem; }
.split-copy p { color: var(--on-surface-variant); margin-bottom: 1rem; }
.split-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.split-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .96rem; color: var(--on-surface-variant); }
.split-list svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }
.split-media { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { margin-bottom: .5rem; }
}

/* mini-mockups inside splits */
.panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-ambient);
}
.note-row {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.note-row + .note-row { margin-top: .65rem; }
.note-check {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 2px;
  border: 1.5px solid var(--sage);
  display: grid; place-items: center;
}
.note-check.done { background: var(--sage); }
.note-check.done svg { width: 11px; height: 11px; color: var(--on-primary); }
.note-check.dot { border: none; background: var(--hairline); width: 8px; height: 8px; margin: 7px 6px 0; }
.note-body { flex: 1; min-width: 0; }
.note-cat { font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.note-text { font-size: .92rem; color: var(--on-surface); }
.note-text.struck { text-decoration: line-through; color: var(--on-surface-muted); }
.note-remind { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .66rem; color: var(--on-surface-muted); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 2px 8px; }
.note-remind svg { width: 11px; height: 11px; color: var(--sage); }

/* iPhone notification banner mock */
.ios-notif {
  width: 100%;
  max-width: 390px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(250, 250, 252, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-float);
  color: #1c1c1e;
}
[data-theme="dark"] .ios-notif {
  background: rgba(44, 44, 46, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ios-notif-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: linear-gradient(160deg, #fffbf8 0%, #cdeacf 135%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ios-notif-icon .mark { width: 24px; height: 24px; color: #3e6b4e; }
.ios-notif-body { flex: 1; min-width: 0; }
.ios-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ios-notif-app { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(60, 60, 67, 0.6); }
.ios-notif-time { font-size: .66rem; color: rgba(60, 60, 67, 0.5); }
[data-theme="dark"] .ios-notif-app { color: rgba(235, 235, 245, 0.6); }
[data-theme="dark"] .ios-notif-time { color: rgba(235, 235, 245, 0.5); }
.ios-notif-title { font-weight: 600; font-size: .94rem; line-height: 1.25; margin-top: 3px; color: #1c1c1e; }
.ios-notif-text { font-size: .86rem; line-height: 1.32; margin-top: 1px; color: rgba(60, 60, 67, 0.85); }
[data-theme="dark"] .ios-notif-title { color: #fff; }
[data-theme="dark"] .ios-notif-text { color: rgba(235, 235, 245, 0.82); }

/* sizes/favorites rows */
.kv-row { display:flex; justify-content:space-between; gap:1rem; padding:.7rem .15rem; border-bottom:1px solid var(--hairline); }
.kv-row:last-child { border-bottom:0; }
.kv-label { font-size:.85rem; color:var(--on-surface-muted); }
.kv-val { font-size:.9rem; font-weight:500; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); max-width: 880px; margin-inline: auto; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 2rem 1.9rem 2.1rem;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--sage); border-width: 1.5px; position: relative; }
.plan.featured::after {
  content: "7-day free trial";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: var(--on-primary);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 12px; border-radius: var(--pill); white-space: nowrap;
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; }
.plan .price { margin: .6rem 0 .2rem; font-family: var(--serif); font-size: 2.4rem; letter-spacing: -.02em; }
.plan .price small { font-family: var(--sans); font-size: .9rem; color: var(--on-surface-muted); font-weight: 400; }
.plan .price-alt { font-size: .82rem; color: var(--on-surface-muted); margin-bottom: 1.3rem; }
.plan ul { list-style: none; padding: 0; display: grid; gap: .7rem; margin: .4rem 0 1.6rem; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--on-surface-variant); }
.plan li svg { width: 17px; height: 17px; color: var(--sage); flex: none; margin-top: 4px; }
.plan li.off { color: var(--on-surface-muted); }
.plan li.off svg { color: var(--hairline); }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.price-fine { text-align: center; max-width: 60ch; margin: 1.5rem auto 0; font-size: .8rem; color: var(--on-surface-muted); }

/* ============================================================
   Quote / philosophy band
   ============================================================ */
.band {
  background: var(--sage);
  color: var(--on-primary);
}
[data-theme="dark"] .band { background: var(--primary-container); color: var(--on-primary-container); }
.band .wrap { text-align: center; }
.band .mark { width: 40px; height: 40px; margin: 0 auto 1.5rem; color: currentColor; opacity: .85; }
.band blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  max-width: 22ch;
  margin: 0 auto;
}
.band cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .04em; opacity: .8; }

/* ============================================================
   FAQ (interactive accordion)
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -.01em;
  color: var(--on-surface);
}
.faq-q .plusminus { flex: none; width: 22px; height: 22px; position: relative; color: var(--sage); }
.faq-q .plusminus::before, .faq-q .plusminus::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 50%; transition: transform .3s ease;
}
.faq-q .plusminus::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-q .plusminus::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .plusminus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0 1.4rem; color: var(--on-surface-variant); font-size: .98rem; max-width: 64ch; }
.faq-a-inner a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   CTA band (final)
   ============================================================ */
.cta-final { text-align: center; }
.cta-final .mark { width: 52px; height: 52px; margin: 0 auto 1.6rem; }
.cta-final .t-h2 { margin-bottom: 1rem; }
.cta-final .lead { margin: 0 auto 2rem; max-width: 48ch; }
.cta-final .hero-cta { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); background: var(--surface-low); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: clamp(48px, 7vw, 72px) 2rem;
}
.footer-brand .lockup { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; color: var(--on-surface-muted); max-width: 32ch; }
.footer-arabic { font-size: 1.6rem; color: var(--sage); margin-top: 1.1rem; font-family: var(--serif); }
.footer col, .footer-col { }
.footer-col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer-col a { font-size: .92rem; color: var(--on-surface-variant); transition: color .2s ease; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-block: 1.5rem 2rem;
  font-size: .82rem;
  color: var(--on-surface-muted);
}
.footer-bottom .pronounce { font-style: italic; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Legal / content pages
   ============================================================ */
.page-hero {
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(48px, 8vw, 88px) clamp(36px, 5vw, 56px);
  background: var(--surface-low);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: -40% 50% auto -10%; height: 120%;
  background: radial-gradient(50% 60% at 20% 0%, var(--pale-sage) 0%, transparent 65%);
  opacity: .4; pointer-events: none;
}
[data-theme="dark"] .page-hero::before { opacity: .18; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .t-eyebrow { margin-bottom: 1rem; }
.page-hero .t-display { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: .8rem; }
.page-hero .updated { font-size: .88rem; color: var(--on-surface-muted); }

.legal { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .9rem; }
.toc h4 { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: .9rem; }
.toc ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.toc a { color: var(--on-surface-variant); transition: color .2s ease; display: block; line-height: 1.4; }
.toc a:hover { color: var(--sage); }
@media (max-width: 820px) { .legal { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 2.6rem 0 .9rem;
  scroll-margin-top: 92px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.prose p { color: var(--on-surface-variant); margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--on-surface-variant); margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose li { padding-left: .2rem; }
.prose a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--on-surface); font-weight: 600; }
.prose .lede { font-size: 1.1rem; color: var(--on-surface); }

.callout {
  background: var(--surface-container);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--sage);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--sage); }

.placeholder {
  background: rgba(186, 26, 26, .06);
  border: 1px dashed rgba(186, 26, 26, .4);
  color: var(--on-surface);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .9em;
  font-weight: 500;
}
[data-theme="dark"] .placeholder { background: rgba(255,180,171,.08); border-color: rgba(255,180,171,.45); }

/* support page extras */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0; }
.support-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
}
.support-card .ico { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--pale-sage); color: var(--sage); display: grid; place-items: center; margin-bottom: 1rem; }
[data-theme="dark"] .support-card .ico { color: var(--on-primary-container); }
.support-card .ico svg { width: 21px; height: 21px; }
.support-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: .4rem; }
.support-card p { font-size: .92rem; color: var(--on-surface-variant); margin-bottom: .8rem; }
.support-card a.link { color: var(--sage); font-weight: 500; font-size: .92rem; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* skip-link a11y */
.skip { position: absolute; left: -999px; top: 0; background: var(--sage); color: var(--on-primary); padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip:focus { left: 0; }

/* generic banner shown atop the review build */
.review-banner {
  background: var(--ink);
  color: var(--cream);
  font-size: .8rem;
  text-align: center;
  padding: .55rem 1rem;
  letter-spacing: .01em;
}
[data-theme="dark"] .review-banner { background: var(--surface-high); color: var(--on-surface); border-bottom: 1px solid var(--hairline); }
.review-banner strong { color: var(--pale-sage-dim); }
[data-theme="dark"] .review-banner strong { color: var(--sage); }
