/* Flirt HQ — marketing site + legal pages.
   One stylesheet, three pages. Design handoff: docs/design-prompt-website.md.

   Fonts are self-hosted rather than loaded from Google. The site's whole pitch
   is that it doesn't hand your data around; embedding Google Fonts would send
   every visitor's IP to Google to render that claim. Same two families the app
   uses, converted to woff2 (216K total). */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap;
  src: url("/fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap;
  src: url("/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap;
  src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap;
  src: url("/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap;
  src: url("/fonts/manrope-700.woff2") format("woff2"); }

:root {
  --base: #0A0908;
  --band: #0C0B09;
  --card: #131110;
  --raised: #1C1A17;
  --panel: #141210;
  --ember: #F0631E;
  --ember-light: #FF8348;
  --ember-ink: #1A120C;
  --text: #F4F0E9;
  --body: #C9C2B8;
  --muted: #9A938A;
  --faint: #6B655D;
  --green: #5BB98B;
  --hair: rgba(245, 240, 232, 0.08);
  --hair-soft: rgba(245, 240, 232, 0.06);
  --ember-line: rgba(240, 99, 30, 0.28);
  --ember-line-str: rgba(240, 99, 30, 0.4);
  --ember-wash: rgba(240, 99, 30, 0.08);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;

  --shell: 1320px;
  --pad-x: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(240, 99, 30, 0.3); }

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-light); }

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

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: lowercase;
  margin: 0;
}

.shell { max-width: var(--shell); margin: 0 auto; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 14px;
}
.eyebrow--muted { color: var(--muted); }

.section { padding: 90px var(--pad-x); }
.section--band { background: var(--band); }

.section h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.lede { color: var(--body); margin: 0; max-width: 62ch; }

/* skip link ------------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--raised); color: var(--text);
  padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* brand ----------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__tile {
  position: relative; width: 34px; height: 34px; border-radius: 11px;
  background: var(--raised); border: 1px solid rgba(245, 240, 232, 0.1);
  display: grid; place-items: center; flex: none; overflow: hidden;
}
.brand__tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(240, 99, 30, 0.28), transparent 62%);
}
.brand__tile svg { position: relative; }
.brand__word {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(19, 17, 16, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}
.nav__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--body);
}
.nav__links a:hover { color: var(--text); }

.soon-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--ember-line-str); border-radius: 999px;
  padding: 7px 15px; color: var(--ember);
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  white-space: nowrap;
}
.soon-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
}

.burger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 40px; height: 40px; align-items: center;
  background: none; border: 1px solid var(--hair); border-radius: 11px;
  cursor: pointer; padding: 0;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.menu { display: none; }

/* buttons --------------------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: 13px; }

/* Quoted from the design: a soft-cornered raised tile, not a pill, and the
   store name is set in the display face rather than the body face. */
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-width: 186px; padding: 11px 20px; border-radius: 14px;
  border: 1px solid rgba(245, 240, 232, 0.14); background: var(--raised);
  color: var(--text); cursor: default;
}
.store--ember { border-color: rgba(240, 99, 30, 0.35); }
.store:hover { color: var(--text); }
.store svg { flex: none; }
.store__txt { display: flex; flex-direction: column; gap: 3px; }
.store__soon { font-family: var(--sans); font-weight: 500; font-size: 10px; line-height: 1; color: var(--muted); }
.store__name { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1; }

/* hero ------------------------------------------------------------------ */
.hero { padding: 80px var(--pad-x) 90px; }
.hero__in {
  max-width: var(--shell); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center;
}
.hero__badge {
  display: inline-block; margin-bottom: 24px;
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 6px 14px; color: var(--muted);
  font-size: 12px; font-weight: 500;
}
.hero h1 {
  font-size: 68px; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 22px;
}
.hero__sub { font-size: 20px; color: var(--body); max-width: 33ch; margin: 0 0 32px; }
.hero__fine { margin: 20px 0 0; font-size: 13px; color: var(--faint); }
.phone { width: 340px; height: auto; filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.85)); }

/* the moment ------------------------------------------------------------ */
.moment { text-align: center; }
.moment h2 { font-size: 40px; max-width: 27ch; margin-inline: auto; }
.moment .lede { margin-inline: auto; text-align: center; max-width: 58ch; }

/* grids ----------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--hair);
  border-radius: 18px; padding: 26px;
}
.card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }

.step__n {
  font-family: var(--display); font-weight: 600; font-size: 26px;
  color: var(--ember); display: block; margin-bottom: 14px;
}

.spot { padding: 30px; border-radius: 22px; }
.spot h3 { font-size: 24px; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chip {
  background: var(--raised); border: 1px solid var(--hair);
  border-radius: 12px; padding: 8px 13px;
  font-size: 13px; color: var(--muted);
}

.tag {
  font-family: var(--sans); font-weight: 600; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ember); border: 1px solid var(--ember-line);
  border-radius: 6px; padding: 3px 6px; margin-left: 8px; vertical-align: 2px;
}

/* academy --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: auto 1fr; gap: 70px; align-items: center; }
.split--rev { grid-template-columns: 1fr auto; }
.bullets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.bullets li { padding-left: 20px; position: relative; }
.bullets strong { display: block; font-weight: 600; color: var(--text); font-size: 16px; }
.bullets span { font-size: 14.5px; color: var(--muted); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
}

/* look inside ----------------------------------------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; justify-items: center; }
.trio figure { margin: 0; text-align: center; max-width: 300px; }
/* height:auto is load-bearing, not tidiness. The <img> carries width/height
   attributes, which browsers apply as presentational hints — so a CSS width
   alone leaves the height pinned at the natural 1664px and the phone renders
   stretched to two and a half times its proper height. */
.trio img { width: 300px; height: auto; filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.85)); }
.trio figcaption { margin-top: 22px; }
.trio h3 { font-size: 18px; margin-bottom: 6px; }
.trio p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* privacy promises ------------------------------------------------------ */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-row a { font-size: 14px; font-weight: 500; }

.promise__icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ember-wash); border: 1px solid var(--ember-line);
  display: grid; place-items: center; margin-bottom: 16px;
}

.doctrine { text-align: center; }
.doctrine h2 { font-size: 34px; margin-inline: auto; }
.doctrine .lede { margin-inline: auto; max-width: 56ch; }
.doctrine .chips { justify-content: center; margin-top: 28px; }

/* CTA ------------------------------------------------------------------- */
.cta-wrap { padding: 0 var(--pad-x) 90px; }
.cta {
  position: relative; overflow: hidden;
  max-width: var(--shell); margin: 0 auto;
  background: var(--panel); border: 1px solid var(--ember-line);
  border-radius: 26px; padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 22% 12%, rgba(240, 99, 30, 0.22), transparent 58%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: 36px; margin-bottom: 10px; }
.cta p { margin: 0; color: var(--muted); font-size: 15px; }

/* footer ---------------------------------------------------------------- */
.foot { background: var(--band); border-top: 1px solid var(--hair-soft); padding: 56px var(--pad-x) 34px; }
.foot__in { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot__blurb { color: var(--muted); font-size: 14px; margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }
.foot h4 {
  font-family: var(--display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a { color: var(--body); font-size: 14.5px; }
.foot ul a:hover { color: var(--ember-light); }
.foot__note { color: var(--faint); font-size: 13px; margin: 10px 0 0; }
.foot__base {
  max-width: var(--shell); margin: 44px auto 0; padding-top: 24px;
  border-top: 1px solid var(--hair-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--faint); font-size: 13px;
}
.badge-18 {
  border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px;
  font-family: var(--display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ======================================================================= */
/* legal pages                                                             */
/* ======================================================================= */

.legal-nav { border-bottom: 1px solid var(--hair-soft); background: var(--card); }
.legal-nav .nav__in { padding: 18px var(--pad-x); }
.legal-nav a.back { color: var(--body); font-size: 14.5px; font-weight: 500; }
.legal-nav a.back:hover { color: var(--text); }

.legal { background: var(--card); padding: 62px var(--pad-x) 90px; }
.legal__in { max-width: var(--shell); margin: 0 auto; }

.legal h1 {
  font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px;
}
.legal__stamp { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 32px; }
.legal__stamp em { font-style: normal; color: var(--faint); }

.callout {
  background: var(--ember-wash); border: 1px solid var(--ember-line);
  border-radius: 18px; padding: 22px 24px;
  display: flex; gap: 15px; align-items: flex-start;
  max-width: 74ch; margin-bottom: 54px;
}
.callout p { margin: 0; color: var(--body); font-size: 16px; line-height: 1.62; }
.callout svg { flex: none; margin-top: 3px; }

.legal__cols { display: grid; grid-template-columns: 232px minmax(0, 68ch); gap: 78px; }

.toc { position: sticky; top: 96px; align-self: start; }
.toc h2 {
  font-family: var(--display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 18px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a {
  display: block; padding: 7px 0 7px 14px;
  border-left: 2px solid var(--hair);
  color: var(--muted); font-size: 14px; line-height: 1.45;
}
.toc a:hover { color: var(--text); border-left-color: var(--faint); }
.toc a[aria-current="true"] { color: var(--ember); border-left-color: var(--ember); }

.doc h2 {
  font-size: 30px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 18px; scroll-margin-top: 96px;
}
.doc section + section { margin-top: 52px; }
.doc p { color: var(--body); margin: 0 0 18px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }

.doc ul { margin: 0; padding-left: 1.5em; display: grid; gap: 10px; color: var(--body); }
.doc ul ul { margin-top: 10px; }
.doc li::marker { color: var(--faint); }

.tbl-wrap { overflow-x: auto; margin: 26px 0 0; }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
thead th {
  background: var(--raised); text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding: 13px 18px;
}
thead th:first-child { border-radius: 12px 0 0 0; }
thead th:last-child { border-radius: 0 12px 0 0; }
tbody td {
  padding: 15px 18px; border-bottom: 1px solid var(--hair-soft);
  font-size: 15px; line-height: 1.55; color: var(--body); vertical-align: top;
}
tbody th {
  padding: 15px 18px; border-bottom: 1px solid var(--hair-soft);
  text-align: left; font-weight: 600; font-size: 15px; color: var(--text);
  white-space: nowrap; vertical-align: top;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.opt-in { color: var(--ember); font-weight: 500; font-size: 12px; margin-left: 6px; white-space: nowrap; }

.defn { display: grid; gap: 16px; margin: 0; }
.defn dt { font-weight: 600; color: var(--text); font-family: var(--sans); }
.defn dd { margin: 4px 0 0; color: var(--body); }

.clause { display: grid; gap: 20px; }
.clause__n { color: var(--ember); font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }

.legal__end {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair-soft);
  color: var(--faint); font-size: 13px; line-height: 1.6;
}

/* ======================================================================= */
/* responsive                                                              */
/* ======================================================================= */

@media (max-width: 1080px) {
  :root { --pad-x: 40px; }
  .hero h1 { font-size: 54px; }
  .legal__cols { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; }

  .section { padding: 56px var(--pad-x); }
  .section h2 { font-size: 30px; }

  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__in { padding: 14px var(--pad-x); }

  .menu--open {
    display: block; border-top: 1px solid var(--hair-soft);
    padding: 22px var(--pad-x) 28px; background: rgba(19, 17, 16, 0.98);
  }
  .menu__links { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; }
  .menu__links a { font-size: 18px; font-weight: 500; color: var(--body); }
  /* The menu variant is a touch tighter than the hero's, per the design. */
  .menu .stores { flex-direction: column; }
  .menu .store { width: 100%; border-radius: 12px; padding: 12px 16px; gap: 10px; }
  .menu .store__name { font-size: 14px; }

  .hero { padding: 40px var(--pad-x) 46px; }
  /* No justify-items:start here — it sizes the column to max-content, which the
     186px-min store buttons then blow past, overflowing the whole page. */
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { font-size: 44px; line-height: 1.04; }
  .hero__sub { font-size: 17px; max-width: none; }
  .hero .stores { width: 100%; }
  /* The 186px minimum is a desktop figure; at 375 two of them can't sit in a row. */
  .hero .store, .cta .store { min-width: 0; flex: 1 1 150px; }
  .phone { width: 300px; margin-inline: auto; display: block; }

  .moment h2 { font-size: 28px; max-width: 26ch; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 34px; }
  /* copy above the screenshot on mobile, per the handoff */
  .split--rev .split__media { order: 2; }

  /* "a look inside" becomes a scroll strip */
  .trio {
    display: flex; gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad-x) * -1); padding: 4px var(--pad-x) 12px;
    scrollbar-width: none;
  }
  .trio::-webkit-scrollbar { display: none; }
  .trio figure { flex: none; width: 250px; scroll-snap-align: center; }
  .trio img { width: 250px; height: auto; }

  .cta { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .cta h2 { font-size: 27px; }
  .cta .stores { width: 100%; flex-direction: column; }

  .foot__in { grid-template-columns: 1fr; gap: 32px; }
  .foot__base { flex-direction: column; align-items: flex-start; }

  /* --- legal --- */
  .legal { padding: 40px var(--pad-x) 64px; }
  .legal h1 { font-size: 36px; }
  .legal__cols { grid-template-columns: 1fr; gap: 34px; }
  .toc {
    position: static;
    background: var(--base); border: 1px solid var(--hair);
    border-radius: 16px; padding: 20px 22px;
  }
  .toc a { padding: 5px 0 5px 12px; }
  .callout { margin-bottom: 34px; padding: 18px 20px; }
  .callout p { font-size: 15px; }
  .doc h2 { font-size: 24px; }
  .doc section + section { margin-top: 40px; }
  .doc p, .doc ul { font-size: 16px; }

  /* the data table stacks into cards — a 2-col table can't work at 375 */
  .tbl-wrap { overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; width: auto; min-width: 0; }
  thead { display: none; }
  tbody tr {
    background: var(--base); border: 1px solid var(--hair);
    border-radius: 14px; padding: 15px 17px; margin-bottom: 11px;
  }
  tbody th, tbody td { border: 0; padding: 0; white-space: normal; }
  tbody th { margin-bottom: 5px; }
  tbody td { color: var(--muted); font-size: 14.5px; }
}
