/* The /free-game-review landing page (redone 2026-09-28). Self-contained: the older
   landing.css still styles the privacy, terms, support and delete-account pages.
   Tokens mirror the app theme (frontend/src/constants/theme.ts). */

@font-face {
  font-family: 'Fraunces';
  src: url('/landing/Fraunces_600SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --selected: #F3F0E9;
  --ink: #1C1B19;
  --ink-2: #5A554C;
  --ink-3: #8A8378;
  --hair: #E7E2D8;
  --clay: #B5543A;
  --clay-deep: #9A4630;
  --on-clay: #FBFAF7;
  --shot-shadow: 0 1px 2px rgba(42, 32, 16, .05), 0 18px 40px -18px rgba(42, 32, 16, .28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14140F;
    --surface: #1E1D17;
    --selected: #2C2A20;
    --ink: #F2F0EA;
    --ink-2: #C4BEB0;
    --ink-3: #8E887A;
    --hair: #34322A;
    --clay: #D2795E;
    --clay-deep: #B5543A;
    --on-clay: #14140F;
    --shot-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clay); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-within {
  outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px;
}
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* The app's top bar (WebTopBar): brand lockup, the five tabs, the profile door. */
.topbar-wrap { padding: 16px 16px 0; }
.topbar {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 8px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand svg { width: 21px; height: 27px; fill: var(--clay); }
.brand span { font: 600 18px/1 var(--serif); }
.brand .dot { color: var(--clay); }
.tab {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
}
.tab:hover { background: var(--selected); color: var(--ink); }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6.5fr); gap: 48px; align-items: center; padding: 56px 0 24px; }
h1 { font: 600 clamp(34px, 4.2vw, 46px)/1.13 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.55; margin: 0 0 28px; max-width: 56ch; }
.label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.seg { display: flex; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); padding: 3px; margin-bottom: 8px; max-width: 520px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 8px 12px; font-size: 14.5px; color: var(--ink); border-radius: 9px; cursor: pointer; }
.seg input:checked + label { background: var(--clay); color: var(--on-clay); font-weight: 600; }
.funnel-row { display: flex; gap: 8px; max-width: 520px; }
.funnel-row input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 11px 14px;
}
.funnel-row input::placeholder { color: var(--ink-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15.5px/1 var(--sans); color: var(--on-clay); background: var(--clay);
  border: 0; border-radius: 12px; padding: 13px 20px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--clay-deep); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid var(--hair); }
.btn-ghost:hover { background: var(--selected); }
.note { font-size: 14px; color: var(--ink-3); margin: 10px 0 0; }
.note b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.doors { display: flex; flex-wrap: wrap; gap: 6px; }
.door {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 10px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.door:hover { border-color: var(--clay); }
.door svg { width: 16px; height: 16px; fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-doors { margin-top: 28px; max-width: 540px; }

.shot { margin: 0; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: #FBFAF7; }
.shot.lifted { box-shadow: var(--shot-shadow); }
.shot img { width: 100%; }

/* Sections */
.section { padding: 72px 0 0; }
h2 { font: 600 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 10px; }
.intro { color: var(--ink-2); margin: 0 0 28px; max-width: 68ch; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.item { display: block; text-decoration: none; color: inherit; }
.item h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin: 16px 0 4px; color: var(--ink); }
.item p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 6px; }
.more { font-weight: 600; font-size: 15px; color: var(--clay); }
.item:hover .more { text-decoration: underline; }
.thumb { display: none; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  font: 600 14px/1 var(--sans); color: var(--ink-2); background: var(--selected); border-radius: 50%;
}
.steps b { display: block; margin: 12px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.samples { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.samples li { border-bottom: 1px solid var(--hair); }
.samples a { display: flex; align-items: baseline; gap: 16px; padding: 14px 2px; text-decoration: none; color: var(--ink); }
.samples a span { color: var(--ink-2); font-size: 15px; }
.samples a em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--clay); white-space: nowrap; font-size: 15px; }
.samples a:hover b { text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.bullets li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--clay); border-radius: 50%; }
.bullets b { color: var(--ink); font-weight: 600; }
.links { margin: 20px 0 0; font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 20px; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 66ch; }

.closing { margin-top: 72px; padding: 56px 0 8px; border-top: 1px solid var(--hair); text-align: center; }
.closing p { color: var(--ink-2); max-width: 62ch; margin: 0 auto 24px; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.foot { margin-top: 56px; border-top: 1px solid var(--hair); padding: 24px 0 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--clay); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 56px; }
  .lead { font-size: 16px; line-height: 1.5; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Lessons become rows with a board thumbnail. */
  .lessons .item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); }
  .lessons .item:first-child { border-top: 0; padding-top: 0; }
  .lessons .item .shot { display: none; }
  .lessons .thumb { display: block; width: 88px; height: 88px; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
  .lessons .item h3 { margin-top: 0; }
  .steps { display: grid; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; }
  .steps li::before { grid-row: span 2; }
  .steps b { margin-top: 2px; }
  .samples a { flex-wrap: wrap; gap: 2px 12px; }
  .samples a span { flex-basis: 100%; order: 2; }
  .samples a em { order: 3; margin-left: 0; }
  .closing { padding-top: 40px; }
}
@media (max-width: 560px) {
  .topbar-wrap { padding: 8px 8px 0; }
  .topbar { justify-content: space-around; gap: 0; padding: 8px 4px; }
  .topbar .brand { margin-right: 0; }
  .topbar .brand span { display: none; }
  .tab { flex-direction: column; gap: 2px; padding: 4px 2px; min-width: 44px; font-size: 10px; }
  .tab svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
