/* ============================================================
   Parlour — parlour.lazur.io
   Brand tokens per docs/07-interface/design-tokens-and-a11y.md
   (DD-01/DD-11/DD-15 palette · DD-04b type: Lora=content, Inter=chrome)
   ============================================================ */

@import url('../fonts/fonts-local.css');

:root {
  /* palette — locked brand tokens */
  --teal:        #1B5E4E;   /* canvas / cover green */
  --teal-deep:   #14493C;   /* shaded band of the same wall */
  --cream:       #F5EFE6;   /* card front / paper */
  --cream-dim:   #EDE5D8;
  --honey:       #C8A470;   /* card back / kraft */
  --ink:         #1A1A1A;   /* primary text */
  --taupe:       #6E5F51;   /* secondary text on cream — darkened from app token #9A8878 for web AA */
  --cream-muted: #D8CCB8;   /* secondary text on teal */
  --amber:       #E8A030;   /* CTA */
  --amber-hi:    #F0AC42;
  --gold:        #C9A961;   /* champagne foil */
  --success:     #2E8A58;

  /* type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  /* rhythm — 4pt modular grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --card-r: 28px;
  --measure: 34em;

  /* woven-linen grain for the green surfaces, matching the in-game table cover.
     anisotropic frequency hints at threads; blended soft-light over the teal. */
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6 0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.46' intercept='0.27'/%3E%3CfeFuncG type='linear' slope='0.46' intercept='0.27'/%3E%3CfeFuncB type='linear' slope='0.46' intercept='0.27'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");

  /* motion — spring-flavoured curves (DD-22/DD-23 register) */
  --ease-spring: cubic-bezier(.34,1.3,.5,1);
  --ease-soft:   cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) clamp(20px, 5vw, 64px);
}

.wordmark { text-decoration: none; }
.wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

.topnav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: .72;
  transition: opacity .2s var(--ease-soft);
}
.topnav a:hover { opacity: 1; }
.topnav .nav-cta {
  opacity: 1;
  color: var(--ink);
  background: var(--amber);
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
  transition: background .2s var(--ease-soft), transform .2s var(--ease-spring);
}
.topnav .nav-cta:hover { background: var(--amber-hi); transform: translateY(-1px); }

/* language switcher — dropdown, one locale per brand subdomain */
.lang-switch { position: relative; margin-left: 2px; }
.lang-switch > summary { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink); opacity: .72; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; transition: opacity .2s var(--ease-soft), background .2s var(--ease-soft); }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { opacity: 1; background: rgba(26,26,26,.06); }
.lang-switch > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-switch[open] > summary { opacity: 1; background: rgba(26,26,26,.08); }
.lang-caret { width: 10px; height: 6px; opacity: .7; transition: transform .2s var(--ease-soft); }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 170px; padding: 6px; background: var(--cream); border: 1px solid rgba(26,26,26,.09); border-radius: 12px; box-shadow: 0 14px 34px rgba(26,26,26,.13); display: flex; flex-direction: column; gap: 1px; }
.lang-menu a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink); opacity: .72; text-decoration: none; white-space: nowrap; transition: opacity .2s var(--ease-soft), background .2s var(--ease-soft); }
.lang-menu a:hover { opacity: 1; background: rgba(26,26,26,.06); }
.lang-menu a[aria-current="page"] { opacity: 1; font-weight: 600; background: rgba(26,26,26,.08); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(58% 48% at 82% 16%, rgba(63,120,108,.16) 0%, rgba(63,120,108,0) 62%),
    radial-gradient(90% 70% at 12% 4%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 55%),
    var(--cream);
  color: var(--ink);
  overflow: hidden;
  padding: 0;
  min-height: clamp(600px, 88vh, 900px);
  display: flex;
  align-items: center;
}
/* champagne foil hairline at the base seam (into the green demo band) */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.55) 22%, rgba(201,169,97,.55) 78%, transparent);
  z-index: 4;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s5) clamp(20px, 5vw, 64px);
}
.hero-copy { position: relative; z-index: 1; max-width: 40rem; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: var(--s4);
  max-width: none;
  white-space: nowrap;   /* breaks are the explicit <br>s only — no browser-dependent soft-wrap (Safari was making 4 lines) */
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--taupe);
  max-width: 40rem;
  margin-bottom: var(--s5);
}

.hero-cta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-bottom: var(--s6); }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  padding: 13px 26px 13px 22px;
  border-radius: 100px;
  transition: background .2s var(--ease-soft), transform .25s var(--ease-spring), box-shadow .25s var(--ease-soft);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.appstore-badge:hover { background: var(--amber-hi); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.28); }
.badge-lines { display: flex; flex-direction: column; line-height: 1.15; }
.badge-lines small { font-size: 12px; font-weight: 500; }
.badge-lines strong { font-size: 19px; font-weight: 600; letter-spacing: .01em; }

.cta-secondary {
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(27,94,78,.35);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease-soft);
}
.cta-secondary:hover { border-color: var(--teal); }

/* hero art — watercolor family, grouped with the card in the right grid column
   so illustration + card stay linked and centred inside the 1180 container
   (never pinned to the viewport edge). multiply melts its cream ground into the
   page so there is no box, no crop. */
.hero-art {
  position: absolute;
  right: clamp(-96px, calc(-2vw - 40px), -40px);   /* nudged ~40px right so a small gap opens beside the card */
  top: 0;
  bottom: 0;
  margin-block: auto;               /* vertical-centre WITHOUT transform, so the img's multiply still blends with the page */
  height: max-content;
  width: clamp(440px, 42vw, 560px);
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(118% 118% at 50% 48%, #000 68%, transparent 94%);
  mask-image: radial-gradient(118% 118% at 50% 48%, #000 68%, transparent 94%);
}

/* a single card, dealt onto the table — anchored to the illustration, overhanging
   its left edge to stitch the group toward the text column */
.hero-card {
  position: absolute;
  z-index: 3;
  left: calc(-16% + 40px);   /* +40px right, tucking the card onto the table with a gap from the text column */
  bottom: calc(7% + 48px);   /* lifted a touch higher onto the table */
  width: clamp(178px, 42%, 214px);
  padding: 20px 20px 18px;
  background: var(--teal-deep);
  color: var(--cream);
  border-radius: 18px;
  border: 1px solid rgba(201,169,97,.32);
  box-shadow: 0 20px 46px rgba(20,44,34,.30);
  transform: rotate(-5deg);
}
.hero-card .hc-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero-card .hc-prompt {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.32;
}

/* hand-drawn marginalia — warm sepia pencil marks, echoing the illustration's ink */
.hero-marginalia .mark {
  position: absolute;
  opacity: .42;
  /* tint the black-ink PNGs toward the warm sepia/kraft of the artwork, not grey */
  filter: sepia(0.7) saturate(1.6) hue-rotate(-8deg) brightness(0.82);
  pointer-events: none;
}
.mark-q { top: 19%; left: 8.5%; width: 48px; }
.mark-a { top: 64%; left: 7%; width: 34px; }
.mark-t { top: 9%; left: 46%; width: 64px; }

/* ---------- shared section chrome ---------- */

section { padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: center;
  margin-bottom: var(--s2);
}
/* gold eyebrow: light foil on teal, dark foil on cream — both AA */
.eyebrow-gold { color: #8A6F3C; }
.demo .eyebrow-gold, .table-section .eyebrow-gold { color: #D9BC7E; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  text-align: center;
  margin-bottom: var(--s3);
}

/* hand-drawn divider ornament under section titles (app header asset) */
.ornament {
  display: block;
  width: 120px;
  margin: calc(-1 * var(--s1)) auto var(--s4);
  opacity: .8;
}
.ornament-light { filter: invert(88%) sepia(20%) saturate(400%) hue-rotate(5deg); opacity: .7; }

.section-lede {
  text-align: center;
  max-width: var(--measure);
  margin: 0 auto var(--s6);
  color: var(--taupe);
  font-size: 17px;
}
.section-lede-wide { max-width: 46rem; }

/* the game name rides along in the demo heading, in the same beige as the title */
.demo-title-game { color: var(--amber); }

/* ---------- live card demo ---------- */

.demo {
  background-color: var(--teal-deep);
  background-image:
    var(--weave),
    radial-gradient(100% 70% at 50% 0%, rgba(255,255,255,.05) 0%, rgba(0,0,0,0) 60%);
  background-size: 220px 220px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
  color: var(--cream);
  text-align: center;
}
.demo .eyebrow { color: var(--gold); }
.demo .section-lede { color: var(--cream-muted); }

.demo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
}

.deck {
  position: relative;
  width: min(82vw, 380px);
  flex: none;
  aspect-ratio: 320 / 500;   /* stretched taller toward the in-game 320/600 proportion */
}

/* left / right pager, replacing the old "Next card" button */
.deck-arrow {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: transparent;
  border: 1.5px solid rgba(245,239,230,.35);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft), transform .2s var(--ease-spring);
}
.deck-arrow:hover { border-color: var(--cream); background: rgba(245,239,230,.08); transform: scale(1.05); }
.deck-arrow:active { transform: scale(.96); }

.deck-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: var(--s4);
}
.deck-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245,239,230,.28);
  cursor: pointer;
  transition: background .2s var(--ease-soft), width .2s var(--ease-soft);
}
.deck-dots button:hover { background: rgba(245,239,230,.5); }
.deck-dots button.active { width: 22px; border-radius: 4px; background: var(--gold); }

.ghost {
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
}
.ghost-1 { background: #967B54; transform: rotate(-1.2deg) translate(-6px, 6px); }
.ghost-2 { background: #786243; transform: rotate(1.1deg) translate(7px, 12px); }

.card {
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-spring);
  cursor: default;
}
.card.flipped { transform: rotateY(180deg); }
.card.dealing { animation: deal .45s var(--ease-spring); }
.card.dealing-rev { animation: deal-rev .45s var(--ease-spring); }
@keyframes deal {
  from { transform: translateX(60px) rotate(3deg); opacity: 0; }
  to   { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes deal-rev {
  from { transform: translateX(-60px) rotate(-3deg); opacity: 0; }
  to   { transform: translateX(0) rotate(0); opacity: 1; }
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.card-front {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.32' intercept='0.66'/%3E%3CfeFuncG type='linear' slope='0.32' intercept='0.66'/%3E%3CfeFuncB type='linear' slope='0.32' intercept='0.66'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url('../img/card-paper-texture.jpg');
  background-size: 180px 180px, cover;
  background-repeat: repeat, no-repeat;
  background-position: center, center;
  background-blend-mode: multiply, normal;
  background-color: var(--cream);
  color: var(--ink);
}
.card-back {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.34' intercept='0.64'/%3E%3CfeFuncG type='linear' slope='0.34' intercept='0.64'/%3E%3CfeFuncB type='linear' slope='0.34' intercept='0.64'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url('../img/kraft-texture.jpg');
  background-size: 180px 180px, cover;
  background-repeat: repeat, no-repeat;
  background-position: center, center;
  background-blend-mode: multiply, normal;
  background-color: var(--honey);
  color: var(--ink);
  transform: rotateY(180deg);
}

.card-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--game-label, #8E5A36);
  margin-bottom: 0;
}
.card-label-back { color: rgba(26,26,26,.5); margin-bottom: auto; }

.card-prompt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 3.2vw, 32px);
  line-height: 1.28;
  margin: auto 0 0;
  text-align: center;
  text-wrap: balance;
  color: #181511;
}


.card-answer {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.4;
  margin: auto 0;
  text-align: center;
  text-wrap: pretty;
}

.card-foot {
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: center;   /* Answer sits in the middle, per the Figma card */
  align-items: center;
  min-height: 44px;
}
.card-foot-back { justify-content: center; }

/* speaker: amber, icon only, parked on the right edge of the footer */
.speak-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--amber);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease-soft), transform .2s var(--ease-spring);
}
.speak-btn:hover { background: var(--amber-hi); transform: translateY(-50%) scale(1.06); }
.speak-btn.speaking { background: var(--amber-hi); }
.speak-btn.speaking svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* muted (narrator off) — the amber drops to a quiet neutral, icon shows the slash */
.speak-btn .ico-off { display: none; }
.speak-btn.muted { background: rgba(26,26,26,.13); color: rgba(26,26,26,.6); }
.speak-btn.muted:hover { background: rgba(26,26,26,.2); transform: translateY(-50%) scale(1.06); }
.speak-btn.muted .ico-on { display: none; }
.speak-btn.muted .ico-off { display: block; }

.flip-btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid rgba(26,26,26,.35);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft);
}
.flip-btn:hover { border-color: var(--ink); background: rgba(26,26,26,.05); }

.demo-note {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--cream-muted);
}

/* ---------- how it works ---------- */

.how { background: var(--cream); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1080px;
  margin: var(--s6) auto 0;
}

.step { text-align: left; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.6px solid var(--gold);
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: var(--s3);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: var(--s1);
  color: var(--teal);
}
.step p { color: var(--ink); font-size: 16px; max-width: 30em; }

/* ---------- games ---------- */

.games { background: var(--cream-dim); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1160px;
  margin: var(--s6) auto 0;
}

.game {
  background: url('../img/card-paper-texture.jpg') center / cover, var(--cream);
  border-radius: var(--card-r);
  padding: var(--s4);
  box-shadow: 0 6px 24px rgba(26,26,26,.08);
  border-top: 5px solid var(--game-color);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-soft);
}
.game:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 14px 36px rgba(26,26,26,.14); }

.game h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--game-color);
  margin-bottom: var(--s2);
}
.game-tag { font-size: 14px; color: var(--taupe); margin-bottom: var(--s3); min-height: 2.6em; }
.game-sample {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.game-desc { font-size: 15px; color: var(--ink); }

.games-note {
  text-align: center;
  max-width: var(--measure);
  margin: var(--s6) auto 0;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- whole table ---------- */

.table-section {
  background-color: var(--teal);
  background-image: var(--weave);
  background-size: 220px 220px;
  background-blend-mode: soft-light;
  color: var(--cream);
}
.table-section h2 { color: var(--cream); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px);
  max-width: 880px;
  margin: var(--s6) auto 0;
}
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: #D9BC7E;   /* light foil — AA on teal */
  margin-bottom: var(--s1);
}
.pillar p { color: var(--cream-muted); font-size: 16px; }

/* ---------- faq ---------- */

.faq { background: var(--cream); max-width: none; }
.faq-list {
  max-width: 720px;
  margin: var(--s6) auto 0;
  display: grid;
  gap: var(--s4);
}
.faq-item dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 6px;
}
.faq-item dd { color: var(--ink); font-size: 16px; max-width: 40em; }
.faq-item em { font-style: italic; font-family: var(--serif); }

/* ---------- closing ---------- */

.closing {
  background-color: var(--teal-deep);
  background-image:
    var(--weave),
    radial-gradient(100% 80% at 50% 100%, rgba(255,255,255,.05) 0%, rgba(0,0,0,0) 60%);
  background-size: 220px 220px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
  color: var(--cream);
  text-align: center;
}
.closing h2 { color: var(--cream); margin-bottom: var(--s5); }
.appstore-badge-light { box-shadow: 0 6px 24px rgba(0,0,0,.3); }

/* ---------- footer ---------- */

.footer {
  background: var(--teal-deep);
  color: var(--cream-muted);
  text-align: center;
  padding: var(--s5) clamp(20px, 5vw, 64px) var(--s5);
  border-top: 1px solid rgba(245,239,230,.12);
}
.footer-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: #D9BC7E;
  margin-bottom: var(--s3);
}
.footer-links { display: flex; justify-content: center; gap: var(--s3); margin-bottom: var(--s2); }
.footer-links a { color: var(--cream-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-copy { font-size: 13px; opacity: .7; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-inner { padding: 104px clamp(20px, 5vw, 64px) var(--s4); }
  .hero h1 { white-space: normal; }
  .hero-copy { max-width: none; }
  .br-desk { display: none; }
  .hero-art { position: static; transform: none; width: min(100%, 440px); margin: var(--s2) auto 0; }
  .hero-card { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .topnav > a:not(.nav-cta) { display: none; }
  .hero-marginalia { display: none; }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; }
  .topnav { gap: 8px; }
  .topnav .nav-cta { display: none; }
  .wordmark-text { font-size: 18px; letter-spacing: .07em; }
  .lang-switch > summary { padding: 3px 6px; }
}

@media (max-width: 560px) {
  .demo-stage { gap: 6px; }
  .deck { width: min(74vw, 320px); }
  .deck-arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .card-prompt { font-size: 20px; }
  .hero-cta { gap: var(--s2); }
}

/* ---------- legal pages ---------- */

.legal-page {
  background: var(--cream);
  min-height: 100vh;
}
.legal-page .topbar { position: static; background: var(--teal); }
.legal-main {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s6) clamp(20px, 5vw, 40px) var(--s7);
}
.legal-main h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  color: var(--teal);
  margin-bottom: var(--s2);
}
.legal-main .effective { color: var(--taupe); font-size: 14px; margin-bottom: var(--s5); }
.legal-main h2 {
  font-family: var(--serif);
  font-size: 22px;
  text-align: left;
  margin: var(--s5) 0 var(--s2);
  color: var(--teal);
}
.legal-main p, .legal-main li { font-size: 16px; margin-bottom: var(--s2); max-width: 42em; }
.legal-main ul { padding-left: 22px; }
.legal-main a { color: var(--teal); }
