/* =========================================================
   Adage — adageapp.com
   Design system: warm cream paper, sage green, dark ink.
   Editorial philosophy-journal aesthetic.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream:      #f3efe4;
  --cream-deep: #ece6d6;
  --paper:      #fbf8f0;
  --ink:        #211f1b;
  --ink-soft:   #57534a;
  --ink-faint:  #8b8578;
  --sage:       #5d7c50;
  --sage-deep:  #4c6741;
  --sage-light: #aac294;
  --sage-wash:  #e7ecdd;
  --border:     #e3ddcd;
  --border-soft:#ebe6d8;

  --charcoal:   #211f1c;
  --charcoal-2: #2a2825;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(33,31,27,.06), 0 2px 8px rgba(33,31,27,.05);
  --shadow-md: 0 4px 16px rgba(33,31,27,.08), 0 12px 40px rgba(33,31,27,.07);
  --shadow-lg: 0 20px 60px rgba(33,31,27,.18), 0 8px 24px rgba(33,31,27,.10);

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.center { text-align: center; }

.overline {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow-rule {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-rule::before, .eyebrow-rule::after {
  content: ""; width: 28px; height: 1px; background: var(--sage-light);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h2.display { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }
.section-head { max-width: 620px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--border); background: var(--paper); }
.btn-ghost:hover { border-color: var(--sage-light); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- App Store badges ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--cream);
  padding: 11px 20px 11px 18px; border-radius: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge svg { flex-shrink: 0; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .badge-text small { font-size: 11px; font-weight: 400; opacity: .82; letter-spacing: .01em; }
.store-badge .badge-text strong { font-size: 18px; font-weight: 600; font-family: var(--sans); }
.store-badge.is-soon { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--border); box-shadow: none; }
.store-badge.is-soon:hover { transform: none; }
.store-badge.on-dark.is-soon { color: var(--cream-deep); border-color: rgba(255,255,255,.22); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,239,228,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; }
.nav-toggle span { display: block; width: 20px; height: 1.8px; background: var(--ink); margin: 4px auto; transition: .3s; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 420px at 78% 12%, var(--sage-wash) 0%, transparent 70%),
    radial-gradient(540px 380px at 12% 88%, #efe9d6 0%, transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  margin: 18px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 480px; }
.hero .store-row { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--sage); }

/* hero phone cluster */
.hero-stage { position: relative; display: flex; justify-content: center; }
.hero-stage .phone { transform: rotate(-3deg); }
.float-quote {
  position: absolute; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-md);
  font-family: var(--serif); font-size: 14.5px; max-width: 220px; line-height: 1.4;
}
.float-quote .fq-author { font-family: var(--sans); font-size: 12px; color: var(--sage-deep); font-weight: 600; margin-top: 6px; }
.float-quote.fq-1 { top: 8%; left: -6%; transform: rotate(-5deg); }
.float-quote.fq-2 { bottom: 12%; right: -7%; transform: rotate(4deg); }
.fq-badge {
  position: absolute; top: 64%; left: -10%;
  display: flex; align-items: center; gap: 9px;
  background: var(--charcoal); color: var(--cream);
  padding: 11px 15px; border-radius: 13px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600;
}
.fq-badge .flame { font-size: 17px; }

/* =========================================================
   Phone mockup
   ========================================================= */
.phone {
  position: relative; width: 296px;
  background: #16150f; border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-screen {
  position: relative; width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px; overflow: hidden;
  background: var(--cream);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 26px; background: #000; border-radius: 14px; z-index: 5;
}

/* In-CSS app screen (Today) */
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 54px 20px 20px;
}
.scr-top { display: flex; justify-content: space-between; align-items: center; }
.scr-greet { font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.scr-streak { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sage-deep); }
.scr-quote {
  font-family: var(--serif); font-size: 23px; line-height: 1.32; font-weight: 500;
  margin: auto 0; color: var(--ink);
}
.scr-quote .q-mark { color: var(--sage-light); font-size: 40px; line-height: 0; display: block; height: 18px; }
.scr-author { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.scr-author .av { width: 34px; height: 34px; border-radius: 50%; background: var(--sage-wash); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; color: var(--sage-deep); font-size: 14px; }
.scr-author .a-name { font-weight: 600; font-size: 13.5px; }
.scr-author .a-meta { font-size: 11px; color: var(--ink-faint); }
.scr-actions { display: flex; gap: 8px; margin-top: 14px; }
.scr-pill { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 9px; border-radius: 999px; background: var(--cream-deep); color: var(--ink-soft); }
.scr-pill.is-accent { background: var(--sage-deep); color: #fff; }
.scr-tabs {
  display: flex; justify-content: space-around; padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.scr-tab { font-size: 9px; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.scr-tab .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.scr-tab.active { color: var(--sage-deep); }

/* =========================================================
   Marquee / trust strip
   ========================================================= */
.trust {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 22px 40px; padding: 30px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.trust-item svg { color: var(--sage); flex-shrink: 0; }
.trust-item strong { color: var(--ink); font-weight: 700; }

/* =========================================================
   Feature grid
   ========================================================= */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sage-light); }
.feature .f-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--sage-wash); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }
.feature.is-wide { grid-column: span 2; }
.feature.is-dark { background: var(--charcoal); border-color: var(--charcoal-2); color: var(--cream); }
.feature.is-dark p { color: var(--cream-deep); }
.feature.is-dark .f-icon { background: rgba(170,194,148,.16); color: var(--sage-light); }

/* =========================================================
   Quote showcase (editorial band)
   ========================================================= */
.quote-band { background: var(--charcoal); color: var(--cream); position: relative; overflow: hidden; }
.quote-band::before {
  content: "\201C"; position: absolute; top: -40px; left: 4%;
  font-family: var(--serif); font-size: 320px; color: rgba(170,194,148,.10); line-height: 1;
}
.quote-band .wrap { position: relative; }
.big-quote {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(26px, 4vw, 44px); line-height: 1.32; max-width: 880px; margin: 0 auto;
  text-align: center;
}
.big-quote-author { text-align: center; margin-top: 28px; }
.big-quote-author .ba-name { font-family: var(--serif); font-size: 18px; }
.big-quote-author .ba-meta { font-size: 13px; color: var(--sage-light); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }

/* =========================================================
   How it works
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step .s-num {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--sage-light); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }
.step::after {
  content: ""; position: absolute; top: 32px; left: 52px; right: -12px; height: 1px;
  background: repeating-linear-gradient(to right, var(--sage-light) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }

/* =========================================================
   Screenshot gallery
   ========================================================= */
.gallery-scroll {
  display: flex; gap: 26px; overflow-x: auto; padding: 12px 24px 30px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.gallery-item { scroll-snap-align: center; flex-shrink: 0; text-align: center; }
.gallery-item .phone { width: 248px; }
.gallery-item .g-label { margin-top: 18px; font-size: 14px; font-weight: 600; }
.gallery-item .g-sub { font-size: 12.5px; color: var(--ink-faint); }

/* =========================================================
   Premium section
   ========================================================= */
.premium { background: var(--charcoal); color: var(--cream); }
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.premium h2 { color: var(--cream); }
.premium .lead { color: var(--cream-deep); }
.premium-list { margin-top: 28px; display: grid; gap: 14px; }
.premium-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; }
.premium-list .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-light); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
}
.price-card {
  background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 34px;
}
.price-card .pc-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--charcoal); background: var(--sage-light);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row .amount { font-family: var(--serif); font-size: 46px; font-weight: 600; }
.price-row .per { color: var(--cream-deep); font-size: 15px; }
.price-card .pc-sub { color: var(--sage-light); font-size: 14px; margin-top: 6px; }
.price-card .pc-alt { color: var(--ink-faint); font-size: 13.5px; margin-top: 4px; }
.price-card hr { border: none; border-top: 1px solid rgba(255,255,255,.09); margin: 24px 0; }
.price-card .pc-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 16px; text-align: center; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; position: relative;
  transition: transform .3s var(--ease);
}
.faq-item .faq-icon::before, .faq-item .faq-icon::after {
  content: ""; position: absolute; background: var(--sage-deep);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-item .faq-icon::before { width: 13px; height: 1.8px; }
.faq-item .faq-icon::after  { width: 1.8px; height: 13px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item .faq-body { padding: 0 4px 26px; color: var(--ink-soft); font-size: 15.5px; max-width: 640px; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final { position: relative; }
.cta-card {
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px) 32px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(440px 280px at 50% -10%, rgba(170,194,148,.20), transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card h2 { color: var(--cream); margin-bottom: 16px; }
.cta-card .lead { color: var(--cream-deep); max-width: 460px; margin: 0 auto 32px; }
.cta-card .store-row { justify-content: center; }
.cta-icon {
  width: 76px; height: 76px; border-radius: 19px; margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--paper); border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 16px; font-family: var(--sans); font-weight: 700; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); transition: color .2s; }
.footer-col a:hover { color: var(--sage-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--ink-faint);
}
.footer-bottom a:hover { color: var(--sage-deep); }

/* =========================================================
   Legal / content pages
   ========================================================= */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
.page-hero .lead { margin-top: 14px; }
.page-hero .updated { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px,5vw,64px) 0 clamp(56px,7vw,96px); }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc .toc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 40px;
}
.doc .toc h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 12px; }
.doc .toc ul { list-style: none; padding: 0; columns: 2; gap: 24px; }
.doc .toc a { font-size: 14.5px; text-decoration: none; }
.callout {
  background: var(--sage-wash); border-radius: var(--radius); padding: 20px 24px;
  margin: 24px 0; font-size: 15px; color: var(--ink-soft);
}
.callout strong { color: var(--sage-deep); }

/* support cards */
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 16px; }
.support-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.support-card .f-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sage-wash);
  color: var(--sage-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.support-card h3 { margin-bottom: 8px; }
.support-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.support-card a.link { color: var(--sage-deep); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.support-card a.link:hover { gap: 9px; }

.contact-band {
  background: var(--charcoal); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(36px,5vw,56px); text-align: center; margin-top: 16px;
}
.contact-band h2 { color: var(--cream); margin-bottom: 12px; }
.contact-band p { color: var(--cream-deep); margin-bottom: 22px; }
.contact-band .mail {
  font-family: var(--serif); font-size: clamp(20px,3vw,28px); color: var(--sage-light);
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 600px; margin: 0 auto; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row, .hero-note { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.is-wide { grid-column: span 2; }
  .premium-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step::after { display: none; }
  .step { display: flex; gap: 18px; align-items: flex-start; padding-top: 0; }
  .step .s-num { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .support-grid { grid-template-columns: 1fr; }
  .doc .toc ul { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .site-header.menu-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .features-grid { grid-template-columns: 1fr; }
  .feature.is-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .float-quote.fq-1 { left: -2%; max-width: 170px; font-size: 13px; }
  .float-quote.fq-2 { right: -2%; max-width: 170px; font-size: 13px; }
  .fq-badge { left: 0; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
}

/* =========================================================
   Language picker
   ========================================================= */
.lang-picker { position: relative; }
.lang-picker summary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--paper);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  list-style: none; user-select: none; transition: border-color .2s, color .2s;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover { border-color: var(--sage-light); color: var(--ink); }
.lang-picker .lp-globe { flex: none; }
.lang-picker .lp-name { line-height: 1; }
.lang-picker .lp-chevron { flex: none; transition: transform .2s var(--ease); opacity: .7; }
.lang-picker[open] summary { border-color: var(--sage-light); color: var(--ink); }
.lang-picker[open] .lp-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px 2px;
  width: 332px; max-width: min(86vw, 332px);
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 8px;
}
.lang-menu a {
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, color .15s;
}
.lang-menu a:hover { background: var(--sage-wash); color: var(--ink); }
.lang-menu a.is-current { color: var(--sage-deep); font-weight: 700; background: var(--sage-wash); }
/* Footer picker opens upward and stays within the dark area */
.footer-bottom .lang-menu { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
@media (max-width: 640px) {
  .lang-picker .lp-name { display: none; }
  .lang-menu { right: auto; left: 0; }
  .footer-bottom .lang-menu { left: 0; }
}
