/* site/styles.css
   Riviera. Tokens, type and spacing from site/HANDOFF.md, with the owner's
   direction on top: elegant, gold as a restrained accent, warm photos.
   System fonts only, no JavaScript, nothing loaded from anyone else.
   Mobile first: phone values, then 720px (layout) and 1080px (desktop sizes). */

:root {
  /* Light: Pantone 11-4201 Cloud Dancer as the page ground */
  --bg: #F0EEE9;  --surface: #FAF9F6;  --surface-2: #E6E3DC;  --footer: #E8E5DF;
  --ink: #22211F; --ink-2: #4E4B45;    --line: #DAD6CD;
  --amber: #8A5B12;       /* gold for text, icons, the brand mark and the flagged stretch */
  --amber-soft: #EDE2CC;
  --gold: #C9A24A;        /* decoration only (hairlines, frames, dots), never text */
  --btn: #22211F; --btn-ink: #F0EEE9;
  --ai-red: #B42318; --no-ai-green: #1E6E36;   /* white text on both */
  --clear-dot: #1E6E36;   /* the "No sign of an AI voice" dot */

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --section: 56px;
  --edge: max(var(--gutter), calc((100% - 1120px) / 2));   /* gutter, content up to 1120px */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181715;  --surface: #201F1C;  --surface-2: #292724;  --footer: #1C1B18;
    --ink: #F0EEE9; --ink-2: #B9B4AA;    --line: #37342F;
    --amber: #E3A845; --amber-soft: #33270F;
    --gold: #D9B25F;
    --btn: #F0EEE9; --btn-ink: #181715;
    --clear-dot: #5FD17F;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
a:not(.button):focus-visible, summary:focus-visible { border-radius: 6px; }
.email { overflow-wrap: anywhere; }
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mark { flex-shrink: 0; fill: var(--amber); }

.eyebrow {
  font: 500 14px/1.25 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-title { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.card-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.page-title { font-weight: 300; font-size: 46px; line-height: 1.05; letter-spacing: -0.02em; }
.small { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.head { display: flex; flex-direction: column; gap: 12px; }
.head .small { max-width: 40ch; margin-top: 8px; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding: 16px var(--edge);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brand .mark { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 6px;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline 2px var(--amber); }

/* Sections: full-width bands split by a fine gold hairline */
.band { position: relative; padding: var(--section) var(--edge); }
.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--edge);
  right: var(--edge);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

/* Home: hero */
.hero { display: flex; flex-direction: column; gap: 40px; padding: 28px var(--edge) 56px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-weight: 300; font-size: 60px; line-height: 1.02; letter-spacing: -0.02em; }
.lede { font-size: 22px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: var(--btn);
  color: var(--btn-ink);
  line-height: 1.15;
}
.badge .icon { width: 26px; height: 26px; }
.badge-text { display: flex; flex-direction: column; }
.badge-small { font-size: 13px; opacity: 0.8; }
.badge-big { font-size: 19px; font-weight: 500; }

/* The photo, with the example result overlapping its bottom edge */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 56px auto; }
.hero-photo { position: relative; grid-column: 1 / -1; grid-row: 1 / 3; }
.hero-photo::before {   /* a thin gold frame, offset up and right */
  content: "";
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 1px solid var(--gold);
  border-radius: 28px;
  pointer-events: none;
}
.hero-photo::after {    /* a soft warm vignette at the bottom, clear of her face */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(to top, rgba(74, 44, 8, 0.28), rgba(74, 44, 8, 0) 45%);
  pointer-events: none;
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 40%;
  border-radius: 24px;
}
.stage .result { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2 / 4; }

/* Example result card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(28, 24, 19, 0.04), 0 18px 48px -24px rgba(28, 24, 19, 0.18);
}
.result-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.result-title { flex: 1 1 0; min-width: min(7em, 100%); font-family: var(--serif); font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; }
.well {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--amber);
}
.well .icon { width: 26px; height: 26px; }
.well-flag { width: 44px; height: 44px; border-radius: 14px; background: var(--amber-soft); }
.well-flag .icon { width: 24px; height: 24px; }
.wave { display: block; width: 100%; height: 72px; }
.wave .b { fill: var(--ink-2); opacity: 0.42; }
.wave .f { fill: var(--amber); }
.wave .band-flag { fill: var(--amber); opacity: 0.12; }
.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.times .flag { color: var(--amber); font-weight: 500; }
.result-body { font-size: 18px; line-height: 1.5; }
.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 18px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 18px;
  font-weight: 500;
}
.play .icon { width: 20px; height: 20px; }

/* Home: two ways */
.ways-band { display: flex; flex-direction: column; gap: 28px; }
.ways { display: grid; gap: 16px; }
.way { display: flex; flex-direction: column; overflow: hidden; }
.way-photo { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.way-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.way-top { display: flex; align-items: center; justify-content: space-between; }
.num { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--amber); }
.way-text { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 16px; line-height: 1.25; }
.live { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; container-type: inline-size; }
.tile {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border-radius: 20px;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.2;
}
.tile-ai { background: var(--ai-red); }
.tile-no { background: var(--no-ai-green); }
.tile-word { font-size: 52px; font-size: min(52px, 17cqi); line-height: 1; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.tile-sub { font-size: 15px; font-weight: 500; }

/* Home: how it works */
.how { display: flex; flex-direction: column; gap: 36px; }
.steps { display: grid; gap: 32px; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1; color: var(--amber); }
.steps p { font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* Home: who it's for */
.who { display: flex; flex-direction: column; gap: 32px; }
.who-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 50%; border-radius: 24px; }
.who-text { display: flex; flex-direction: column; gap: 20px; }
.who-text > p { font-size: 18px; line-height: 1.6; }
.moments { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.moments li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.moments li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Verdicts (Home and Support): the app's four answers, with the app's dot colours */
.meaning { display: flex; flex-direction: column; gap: 32px; }
.verdicts { display: flex; flex-direction: column; gap: 18px; }
.verdicts > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
.verdicts > div::before {
  content: "";
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ink-2);
}
.verdicts > .v-flag::before { background: var(--amber); }
.verdicts > .v-clear::before { background: var(--clear-dot); }
.verdicts dt { grid-column: 2; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.verdicts dd { grid-column: 2; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* Home: privacy */
.privacy { display: flex; flex-direction: column; gap: 28px; }
.privacy-head { display: flex; flex-direction: column; gap: 16px; }
.privacy-body { display: flex; flex-direction: column; gap: 24px; }
.checks { display: grid; gap: 16px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.3; }
.checks .icon { width: 22px; height: 22px; stroke-width: 1.8; color: var(--amber); }

/* Home: honesty panel */
.honesty-band { padding: 0 var(--edge) 64px; }
.honesty {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--amber-soft), var(--surface-2) 65%);
}
.honesty .icon { width: 30px; height: 30px; color: var(--amber); }
.quote { font-family: var(--serif); font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; }
.honesty .small { max-width: 52ch; }

/* Footer */
.site-footer {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px var(--edge) 48px;
  background: var(--footer);
  border-top: 1px solid var(--line);
}
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; line-height: 1.2; }
.footer-brand .mark { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; font-size: 17px; line-height: 1.3; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sep { display: none; color: var(--ink-2); }
.fine { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fine a { color: var(--ink-2); text-underline-offset: 3px; }

/* Privacy: long-form reading */
.doc { padding: 48px var(--edge) 64px; }
.toc { display: none; }
.doc-body { display: flex; flex-direction: column; gap: 40px; max-width: 720px; }
.doc-head { display: flex; flex-direction: column; gap: 16px; }
.doc-lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.doc-body section { display: flex; flex-direction: column; gap: 16px; }
.doc-body .short { padding: 24px; }
.doc-body p { font-size: 18px; line-height: 1.65; }
.doc-body ul, .doc-body ol { display: flex; flex-direction: column; padding-left: 24px; }
.doc-body ul { gap: 10px; }
.doc-body ol { gap: 12px; padding-left: 26px; }
.doc-body li { padding-left: 4px; font-size: 18px; line-height: 1.6; }
.doc-body li::marker { color: var(--amber); }
.doc-body blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); }
.doc-body blockquote p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* Support */
.support { display: flex; flex-direction: column; gap: 40px; padding: 48px var(--edge) 64px; }
.support-intro { display: flex; flex-direction: column; gap: 16px; }
.button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  max-width: 100%;
  min-height: 56px;
  padding: 10px 24px;
  border-radius: 18px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.chev { position: absolute; top: 50%; right: 0; width: 24px; height: 24px; transform: translateY(-50%); }
details[open] > summary .chev { transform: translateY(-50%) rotate(180deg); }
.answer { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; }
.answer > p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.aside { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--surface-2); }
.aside h2 { font-size: 24px; line-height: 1.2; }
.aside p { font-size: 18px; line-height: 1.6; }

/* 720px and up: room for side-by-side layouts */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero-photo img { aspect-ratio: 16 / 9; }
  .who-photo { aspect-ratio: 2 / 1; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
  .footer-links { column-gap: 12px; }
  .sep { display: inline; }
}

/* 1080px and up: desktop sizes */
@media (min-width: 1080px) {
  :root { --gutter: 80px; --section: 96px; }
  .site-header { padding-top: 28px; padding-bottom: 28px; }
  .brand { font-size: 24px; }
  .brand .mark { width: 30px; height: 30px; }
  .site-nav { gap: 8px; }
  .site-nav a { padding: 0 14px; font-size: 17px; }

  .section-title { font-size: 48px; }
  .card-title { font-size: 32px; }
  .page-title { font-size: 72px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: start;   /* the text starts at the top, level with the photo, not centred below it */
    column-gap: 56px;
    padding: 40px var(--edge) 112px;
  }
  .hero-text { gap: 28px; }
  .hero h1 { font-size: 112px; }
  .lede { font-size: 28px; }
  .stage { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 96px auto; }
  .hero-photo { grid-column: 2; }
  .hero-photo img { aspect-ratio: 5 / 4; }
  .stage .result { grid-column: 1 / -1; width: min(440px, 82%); justify-self: start; }
  .result { padding: 32px; gap: 20px; }
  .result-title { font-size: 28px; }
  .wave { height: 80px; }
  .result-body { font-size: 19px; }

  .ways-band { gap: 48px; }
  .ways { gap: 24px; }
  .way-body { padding: 36px 40px 40px; }
  .way-text { font-size: 19px; }
  .tile { padding: 22px 16px; }
  .tile-word { font-size: 64px; font-size: min(64px, 17cqi); }

  .how { gap: 56px; }
  .steps { gap: 56px; }
  .steps p { font-size: 19px; }

  .who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; column-gap: 80px; }
  .who-photo { aspect-ratio: 4 / 3; }
  .who-text > p, .moments li { font-size: 19px; }

  .meaning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; align-items: start; }
  .verdicts dt { font-size: 19px; }
  .verdicts dd { font-size: 18px; }
  .verdicts > div::before { margin-top: 9px; }

  .privacy { flex-direction: row; gap: 80px; }
  .privacy-head, .privacy-body { flex: 1 1 0; }
  .privacy-body { padding-top: 68px; }

  .honesty-band { padding-bottom: 112px; }
  .honesty { padding: 72px 80px; align-items: center; text-align: center; }
  .quote { font-size: 40px; }

  .site-footer { padding: 56px var(--edge) 64px; }

  .doc {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    column-gap: 120px;
    align-items: start;
    padding: 96px var(--edge) 112px;
  }
  .toc { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
  .toc .eyebrow { margin-bottom: 8px; }
  .toc ul { display: flex; flex-direction: column; gap: 4px; padding: 0; list-style: none; }
  .toc a { display: flex; align-items: center; min-height: 44px; font-size: 17px; line-height: 1.3; text-decoration: none; border-bottom: 1px solid var(--line); }
  .toc a:hover { text-decoration: underline; }
  .doc-body { gap: 48px; }
  .doc-lede { font-size: 22px; }
  .doc-body .short { padding: 36px; }
  .doc-body p, .doc-body li { font-size: 19px; }

  .support {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 100px;
    row-gap: 40px;
    align-items: start;
    padding: 96px var(--edge) 112px;
  }
  .faq { grid-column: 2; grid-row: 1 / span 2; }
  .aside { grid-column: 1; grid-row: 2; padding: 36px; }
  .faq-list summary { padding-top: 20px; padding-bottom: 20px; font-size: 26px; }
  .answer > p { font-size: 19px; }
  .aside h2 { font-size: 28px; }
  .aside p { font-size: 19px; }
}
