/* Mindrobe site — plain CSS, no build step.
   Tokens: Atelier light/dark pairs from docs/03-design/design-system.md §1; direction from DESIGN.md.
   Layout follows docs/03-design/site-2026-11/mock/Main.dc.html.
   Legacy alias names (--cream, --cream-soft, --ink-deep, --muted) stay for older inline CSS (auth/callback). */

/* ---------- Fonts: Playfair Display 500/600 (variable wght subset, OFL — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback (Georgia scaled to Playfair's advance widths and hhea metrics)
   so the swap from fallback to Playfair does not move the layout. */
@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 102.16%;
  ascent-override: 105.92%;
  descent-override: 24.57%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #FAF7F2;
  --surface: #F3EDE2;
  --ink: #1C1917;
  --ink-2: #5C5347;
  --gold: #8A6205;
  --border: #E7DECF;
  --border-strong: #8A7D6B;
  --cta: #1C1917;
  --on-cta: #FAF7F2;
  --frame: #2B2521;
  --band: #1C1917;
  --band-ink: #F5F1E8;
  --band-ink-2: #B5AA9B;
  --band-gold: #DFB35E;
  --on-band-gold: #1C1712;
  --band-border: #413931;
  --band-edge: transparent;
  --scrim: rgba(18, 17, 16, 0.62);
  --shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
  --serif: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  /* legacy aliases */
  --cream: var(--bg);
  --cream-soft: var(--surface);
  --ink-deep: #121110;
  --muted: var(--ink-2);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1B1816;
    --ink: #F3EDE3;
    --ink-2: #B0A698;
    --gold: #DFB35E;
    --border: #35302A;
    --border-strong: #6B6156;
    --cta: #F3EDE3;
    --on-cta: #1C1712;
    --frame: #3A332E;
    --band: #26211E;
    --band-edge: #413931;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --ink-deep: #000000;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--band-ink); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; }
h3, p, figure { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: 16px; top: -200px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-weight: 600; }
.skip:focus { top: 16px; }
.kicker { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold); }
.h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.5px; }
.band-surface { background: var(--surface); }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -0.3px; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.site-nav > a { font-size: 15px; line-height: 20px; color: var(--ink-2); padding: 12px 0; }
.site-nav > a:hover { color: var(--ink); }
.site-nav .lang { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.btn:hover { color: var(--on-cta); opacity: 0.92; }
@media (max-width: 720px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; column-gap: 16px; padding-top: 14px; padding-bottom: 10px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 18px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 64px; line-height: 72px; letter-spacing: -1px; }
.hero .lede { max-width: 520px; font-size: 19px; line-height: 28px; color: var(--ink-2); }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Apple badge: official SVG, unmodified; 56px tall (minimum 40), clear space from the gaps around it */
.badge { display: inline-block; border-radius: 8px; }
.badge img { height: 56px; width: auto; }
.hero-note { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.hero-visual { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.phone { border-radius: 40px; border: 8px solid var(--frame); background: var(--frame); overflow: hidden; }
.phone img { width: 100%; height: auto; }
.hero-visual .phone { width: 250px; max-width: 42%; box-shadow: var(--shadow); }
.hero-visual .phone + .phone { margin-bottom: 48px; }
@media (max-width: 560px) {
  .hero { padding-top: 24px; padding-bottom: 56px; gap: 40px; }
  .hero h1 { font-size: 46px; line-height: 52px; letter-spacing: -0.6px; }
  .phone { border-radius: 28px; border-width: 6px; }
  .hero-visual { gap: 16px; }
  .hero-visual .phone + .phone { margin-bottom: 32px; }
}

/* ---------- Columns (steps, privacy) ---------- */
.steps .wrap, .privacy .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.privacy .wrap { padding-top: 88px; padding-bottom: 88px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.col { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.col-num { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 29px; color: var(--gold); }
.col-title { font-size: 20px; line-height: 25px; font-weight: 600; }
.col p { color: var(--ink-2); }
.col svg { width: 24px; height: 24px; color: var(--ink); }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.more { font-size: 15px; line-height: 20px; color: var(--gold); align-self: flex-start; }

/* ---------- Features ---------- */
.feature { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.feature--first { padding-top: 88px; }
.feature--last { padding-bottom: 88px; }
.feature--rev { flex-wrap: wrap-reverse; }
.feature .phone { flex: 0 1 300px; width: 300px; max-width: 100%; }
.feature-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-copy p { color: var(--ink-2); }
.pair { flex: 0 1 440px; width: 440px; max-width: 100%; display: flex; gap: 16px; }
.pair figure { flex: 1 1 0; min-width: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--scrim); color: #FFFFFF; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
@media (max-width: 560px) {
  .feature { gap: 32px; }
  .feature--first { padding-top: 56px; }
  .feature--last { padding-bottom: 56px; }
  .feature .phone { flex-basis: 240px; width: 240px; margin-left: auto; margin-right: auto; }
}

/* ---------- Premium (the one dark band) ---------- */
.band { background: var(--band); color: var(--band-ink); border-top: 1px solid var(--band-edge); border-bottom: 1px solid var(--band-edge); }
.band .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.band .kicker { color: var(--band-gold); }
.band h2 { color: var(--band-ink); }
.band .section-intro p { color: var(--band-ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.plan { width: 100%; border-collapse: collapse; }
.plan caption { text-align: left; padding: 0 0 12px; border-bottom: 1px solid var(--band-border); font-size: 20px; line-height: 25px; font-weight: 600; }
.plan--premium caption { color: var(--band-gold); border-bottom-color: var(--band-gold); }
.plan th, .plan td { padding: 12px 0; border-bottom: 1px solid var(--band-border); font-size: 15px; line-height: 20px; font-weight: 400; vertical-align: top; }
.plan th { text-align: left; color: var(--band-ink-2); padding-right: 16px; }
.plan td { text-align: right; }
.plan tr:last-child th, .plan tr:last-child td { border-bottom: 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; }
.price { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.price-main { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 29px; }
.price-note { font-size: 13px; line-height: 18px; color: var(--band-ink-2); }
.btn-gold { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--band-gold); color: var(--on-band-gold); font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.btn-gold:hover { color: var(--on-band-gold); opacity: 0.92; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq .wrap { max-width: 760px; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; color: var(--ink-2); font-weight: 400; font-size: 22px; line-height: 24px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer .wrap { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-mark { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 29px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 15px; line-height: 20px; color: var(--ink-2); padding: 8px 0; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* ---------- Legal pages (privacy, terms, support) ---------- */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.prose h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.5px; margin-bottom: 10px; }
.prose .meta { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-bottom: 32px; }
.prose h2 { font-size: 26px; line-height: 34px; margin: 40px 0 10px; }
.prose h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 24px 0 6px; }
.prose p, .prose li { font-size: 16px; line-height: 26px; margin: 0 0 12px; }
.prose ul { padding-left: 22px; margin: 8px 0 12px; }
.prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }

/* ---------- Auth e-mail landing card (auth/callback) ---------- */
.card { text-align: center; padding: 56px 0 24px; max-width: 480px; margin: 0 auto; }
.card img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto; box-shadow: var(--shadow); }
.card h1 { font-size: 30px; line-height: 38px; margin-top: 28px; }
.card p { color: var(--ink-2); font-size: 16px; line-height: 24px; margin: 12px auto 0; }
.card .open { display: inline-block; margin-top: 32px; padding: 14px 28px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-weight: 600; font-size: 16px; }
.card .open[hidden] { display: none; }
