/* =========================================================================
   Kalea — "Nourish" brand stylesheet
   Vintage paper journal meets modern health app.
   Tokens ported 1:1 from the Kalea iOS/Android design system.
   ========================================================================= */

:root {
  /* ---- Color: surfaces ---- */
  --bg: #FBF6EE;
  --surface: #F3EBE0;
  --surface-tertiary: #EBE1D2;
  --card: #FFFDF9;
  --divider: #E0D8CC;

  /* ---- Color: text ---- */
  --text: #3B3530;
  --text-muted: #8A7F74;
  --text-tertiary: #BDB3A6;

  /* ---- Color: accents ---- */
  --sage: #6A855D;     /* accent1 — primary */
  --sage-deep: #55905A;/* success / deep sage */
  --clay: #B86B52;     /* accent2 — warm CTA */
  --amber: #C09A4E;    /* accent3 */
  --gold: #A37A39;     /* premium */
  --highlight: #DAE5CC;/* positive highlight */

  /* ---- Color: macros ---- */
  --protein: #BF6565;
  --carbs: #C8A040;
  --fat: #8E76A8;
  --water: #528EB2;

  /* ---- Hero gradient ---- */
  --grad-start: #FCF7EE;
  --grad-end: #F2E5D2;

  /* ---- Spacing scale (4/8/16/24/32/56) ---- */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 56px;
  --s-3xl: 88px;
  --s-4xl: 128px;

  /* ---- Radii ---- */
  --r-card: 20px;
  --r-pill: 999px;
  --r-sm: 8px;
  --r-xs: 4px;

  /* ---- Soft warm shadows ---- */
  --shadow-soft: 0 3px 8px rgba(59, 53, 48, 0.035);
  --shadow-card: 0 6px 16px rgba(59, 53, 48, 0.05);
  --shadow-elevated: 0 14px 28px rgba(59, 48, 40, 0.086);
  --shadow-phone: 0 24px 64px rgba(59, 48, 40, 0.14), 0 6px 18px rgba(59, 48, 40, 0.08);

  /* ---- Type ---- */
  --serif: "Newsreader", "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
}

p { text-wrap: pretty; }

::selection { background: var(--highlight); color: var(--text); }

:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  background: var(--sage);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
}
.skip-link:focus { left: 12px; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.04em;
  color: var(--sage);
  margin-bottom: var(--s-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--sage);
  opacity: 0.55;
}

/* =========================================================================
   Brand mark
   ========================================================================= */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brandmark .leaf {
  width: 26px; height: 26px;
  color: var(--sage);
  flex: none;
}
.brandmark .wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* =========================================================================
   Buttons & store badges
   ========================================================================= */
.btn {
  --btn-h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 6px 16px rgba(106, 133, 93, 0.28);
}
.btn-primary:hover { background: #5e7a52; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(106,133,93,.34); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--divider);
}
.btn-ghost:hover { background: var(--card); border-color: var(--text-tertiary); transform: translateY(-2px); }

/* Store badge buttons (recreated, no third-party logos) */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  min-width: 210px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease;
  box-shadow: var(--shadow-card);
}
.store-badge:hover { transform: translateY(-2px); background: #2c2722; box-shadow: var(--shadow-elevated); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; white-space: nowrap; }
.store-badge .sb-small { font-size: 11px; letter-spacing: 0.02em; opacity: 0.82; font-weight: 500; }
.store-badge .sb-big { font-size: 18px; font-weight: 600; font-family: var(--sans); letter-spacing: 0.01em; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--divider);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: var(--s-md); }

.header-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s ease, background-color .2s ease;
}
.header-store:hover { transform: translateY(-1px); background: #2c2722; }
.header-store svg { width: 18px; height: 18px; }
.header-store { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--divider);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--grad-start) 0%, var(--grad-end) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59,53,48,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 92px) clamp(64px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
}
.hero-sub {
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--text-muted);
  max-width: 30ch;
  margin-top: var(--s-lg);
  line-height: 1.55;
}
.hero-actions {
  margin-top: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  align-items: flex-start;
}
.hero-note {
  margin-top: var(--s-sm);
  font-size: 14.5px;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================================
   Phone mockup
   ========================================================================= */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1284 / 2778;
  background: #fff;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(59,48,40,0.06);
}
.phone::before {
  /* subtle metal rim */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(59,48,40,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero-visual .phone {
  max-width: 340px;
  transform: rotate(0deg);
}

/* floating chips around hero phone */
.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: var(--shadow-elevated);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.float-chip .fc-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex: none;
}
.float-chip small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.float-chip .fc-protein { background: rgba(191,101,101,.16); color: var(--protein); }
.float-chip .fc-sage { background: rgba(106,133,93,.16); color: var(--sage); }
.chip-1 { top: 12%; left: -11%; animation: floaty 6s ease-in-out infinite; }
.chip-2 { bottom: 14%; right: -7%; animation: floaty 7s ease-in-out infinite 0.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-1, .chip-2 { animation: none; }
}

/* =========================================================================
   Trust strip
   ========================================================================= */
.trust {
  border-block: 1px solid var(--divider);
  background: var(--bg);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding-block: var(--s-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* =========================================================================
   Feature sections
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 10vw, 132px); }
.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-copy { order: 1; }

.feature-copy h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 400;
  margin-bottom: var(--s-md);
}
.feature-copy p { color: var(--text-muted); font-size: 18.5px; max-width: 46ch; }
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--s-lg);
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  color: var(--text);
}
.feature-list li svg { width: 21px; height: 21px; color: var(--sage); flex: none; margin-top: 2px; }

.feature-media { display: flex; justify-content: center; }
.feature-media .phone { max-width: 300px; }

/* tinted stage behind phone */
.media-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 32px;
}
.media-stage.stage-sage { background: linear-gradient(160deg, #eef2e6, #e3ecd6); }
.media-stage.stage-clay { background: linear-gradient(160deg, #f6e9e1, #f0ddd1); }
.media-stage.stage-amber { background: linear-gradient(160deg, #f6efdd, #efe4c9); }
.media-stage.stage-water { background: linear-gradient(160deg, #e4eef3, #d8e7ef); }
.media-stage::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 32px;
  background-image: radial-gradient(rgba(59,48,40,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .55;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.media-stage .phone { position: relative; z-index: 1; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.feature-tag .ft-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-tertiary);
}

/* =========================================================================
   Macro legend (for journal feature)
   ========================================================================= */
.macro-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: var(--s-lg); }
.macro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.macro-pill .md { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.md-protein { background: var(--protein); }
.md-carbs { background: var(--carbs); }
.md-fat { background: var(--fat); }
.md-water { background: var(--water); }

/* =========================================================================
   Languages band
   ========================================================================= */
.lang-band { background: var(--surface); }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: var(--s-2xl);
}
.lang-cell {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.lang-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--text-tertiary); }
.lang-cell .lc-native { font-family: var(--serif); font-size: 21px; color: var(--text); }
.lang-cell .lc-en { font-size: 13px; color: var(--text-muted); }

.lang-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-xl);
  align-items: end;
}
.lang-head p { color: var(--text-muted); font-size: 18.5px; max-width: 42ch; }

/* =========================================================================
   Privacy band
   ========================================================================= */
.privacy-band { background: var(--text); color: #f3ece2; }
.privacy-band .eyebrow { color: var(--highlight); }
.privacy-band .eyebrow::before { background: var(--highlight); }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.privacy-band h2 { color: #fff; font-size: clamp(32px, 3.6vw, 50px); }
.privacy-band > .wrap > .privacy-grid p { color: #c9bfb3; font-size: 18.5px; max-width: 44ch; }
.privacy-points { display: grid; gap: 14px; margin-top: var(--s-lg); }
.privacy-points li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.privacy-points .pp-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(218,229,204,0.12);
  display: grid; place-items: center; flex: none;
  color: var(--highlight);
}
.privacy-points .pp-ico svg { width: 20px; height: 20px; }
.privacy-points strong { display: block; color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.privacy-points span { color: #b6aca0; font-size: 15px; line-height: 1.5; }

.privacy-cards { display: grid; gap: var(--s-md); }
.privacy-card {
  background: rgba(255,253,249,0.04);
  border: 1px solid rgba(224,216,204,0.14);
  border-radius: var(--r-card);
  padding: 24px 26px;
}
.privacy-card h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.privacy-card p { color: #c1b7ab !important; font-size: 15.5px; line-height: 1.55; max-width: none !important; }

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing { background: var(--bg); }
.pricing-head { text-align: center; max-width: 640px; margin-inline: auto; }
.pricing-head h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 400; }
.pricing-head p { color: var(--text-muted); font-size: 19px; margin-top: var(--s-md); }

.billing-toggle {
  display: inline-flex;
  background: var(--surface-tertiary);
  border-radius: var(--r-pill);
  padding: 5px;
  margin-top: var(--s-lg);
  gap: 4px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.billing-toggle button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.billing-toggle .save-tag {
  font-size: 11.5px;
  color: var(--sage-deep);
  margin-left: 6px;
  font-weight: 700;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-lg);
  max-width: 860px;
  margin: var(--s-2xl) auto 0;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.plan.featured {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(163, 122, 57, 0.14);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: var(--gold);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
}
.plan-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: var(--s-md);
}
.plan.featured .plan-name { color: var(--gold); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.plan-price .period { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.plan-permonth { font-size: 14.5px; color: var(--sage-deep); font-weight: 600; margin-top: 8px; min-height: 20px; }
.plan-trial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: var(--s-md);
  background: var(--highlight);
  color: #46663a;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--r-pill);
}
.plan-divider { height: 1px; background: var(--divider); margin: var(--s-lg) 0; }
.plan-features { list-style: none; padding: 0; display: grid; gap: 13px; margin-bottom: var(--s-lg); }
.plan-features li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--text); }
.plan-features li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--sage); }
.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted svg { color: var(--text-tertiary); }
.plan .btn { width: 100%; margin-top: auto; }
.plan-foot { text-align: center; font-size: 13.5px; color: var(--text-tertiary); margin-top: 14px; }
.pricing-fine { text-align: center; color: var(--text-tertiary); font-size: 14px; margin-top: var(--s-xl); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--text-tertiary); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icon {
  width: 26px; height: 26px; flex: none;
  position: relative;
  transition: transform .3s ease;
}
.faq-item summary .q-icon::before,
.faq-item summary .q-icon::after {
  content: "";
  position: absolute;
  background: var(--sage);
  border-radius: 2px;
  top: 50%; left: 50%;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-item summary .q-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-item summary .q-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] summary .q-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); font-size: 16.5px; line-height: 1.6; max-width: 60ch; }
.faq-intro h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 400; }
.faq-intro p { color: var(--text-muted); margin-top: var(--s-md); font-size: 18px; }
.faq-intro a { color: var(--sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: linear-gradient(165deg, var(--grad-start), var(--grad-end));
  border-top: 1px solid var(--divider);
}
.cta-card {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-card .leaf-big { width: 46px; height: 46px; color: var(--sage); margin-inline: auto var(--s-md); margin-bottom: var(--s-md); }
.cta-card h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 300; letter-spacing: -0.02em; }
.cta-card h2 em { font-style: italic; color: var(--sage); }
.cta-card p { color: var(--text-muted); font-size: 19px; margin-top: var(--s-md); }
.cta-actions { margin-top: var(--s-xl); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-md); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--bg); border-top: 1px solid var(--divider); padding-block: var(--s-2xl) var(--s-xl); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-xl);
  padding-bottom: var(--s-2xl);
  border-bottom: 1px solid var(--divider);
}
.footer-brand p { color: var(--text-muted); font-size: 15.5px; margin-top: var(--s-md); max-width: 30ch; }
.footer-brand .badges { margin-top: var(--s-lg); }
.footer-brand .store-badge { height: 48px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s-md); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 15.5px; transition: color .2s ease; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding-top: var(--s-lg);
  font-size: 14px;
  color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--sage); }

/* =========================================================================
   Scroll-reveal animation
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Legal / article pages
   ========================================================================= */
.legal-hero {
  background: linear-gradient(170deg, var(--grad-start), var(--grad-end));
  border-bottom: 1px solid var(--divider);
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
.legal-hero .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--sage); font-weight: 600; margin-bottom: var(--s-lg);
  white-space: nowrap;
}
.legal-hero .back-link svg { width: 16px; height: 16px; }
.legal-hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 300; letter-spacing: -0.02em; }
.legal-hero .updated { color: var(--text-muted); font-size: 16px; margin-top: var(--s-md); font-style: italic; font-family: var(--serif); }

.legal-body { padding-block: clamp(48px, 6vw, 80px); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.legal-toc h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s-md); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 9px; }
.legal-toc a { font-size: 14.5px; color: var(--text-muted); line-height: 1.4; transition: color .2s ease; display: block; }
.legal-toc a:hover { color: var(--sage); }

.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  margin-top: var(--s-2xl);
  margin-bottom: var(--s-md);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 500; margin-top: var(--s-xl); margin-bottom: var(--s-sm); color: var(--text); }
.prose p { color: var(--text); margin-bottom: var(--s-md); font-size: 17px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 var(--s-md); padding-left: 22px; color: var(--text); }
.prose li { margin-bottom: 8px; font-size: 17px; line-height: 1.65; }
.prose a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.prose strong { font-weight: 700; }
.prose .lead { font-size: 19px; color: var(--text-muted); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-md) 0 var(--s-lg); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { font-weight: 700; color: var(--text); background: var(--surface); font-size: 13.5px; letter-spacing: 0.02em; }
.prose td { color: var(--text-muted); }
.prose .callout {
  background: var(--card);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--sage);
  border-radius: 12px;
  padding: 18px 22px;
  margin: var(--s-lg) 0;
}
.prose .callout p { margin: 0; color: var(--text-muted); font-size: 16px; }
.prose .callout strong { color: var(--text); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--s-2xl); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .header-cta .header-store { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .hero-sub { max-width: 38ch; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: var(--s-2xl); }
  .feature.reverse .feature-media, .feature .feature-media { order: -1; }
  .feature.reverse .feature-copy { order: 0; }
  .privacy-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .lang-head { grid-template-columns: 1fr; gap: var(--s-md); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .plan.featured { order: -1; }
  .hero-actions { width: 100%; }
  .badges { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .store-badge { justify-content: center; }
  .float-chip { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  :root { --gutter: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; }
}

/* =========================================================================
   Mobile nav drawer
   ========================================================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(251,246,238,0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-nav-close {
  width: 44px; height: 44px; border: 1px solid var(--divider);
  background: var(--card); border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: var(--text); font-size: 22px;
}
.mobile-nav ul { list-style: none; padding: 0; margin-top: var(--s-2xl); display: grid; gap: var(--s-md); }
.mobile-nav ul a { font-family: var(--serif); font-size: 32px; color: var(--text); font-weight: 300; }
.mobile-nav .btn { margin-top: var(--s-2xl); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
}
