/* Word Links Journey: the game's look on the web. The misty sky of the valley painting, white paper cards on a warm
   shelf, the wordmark's navy and teal, and the game's own type (Gabarito for headings, Manrope for text). Colours are
   the game's tokens (unity/Assets/UI/Styles/tokens.uss). Same structure as the Toy Club page (top bar, hero, sections,
   legal pages on legal.css). No framework, no build. */

@font-face { font-family: "Gabarito"; src: url("/fonts/Gabarito.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --navy: #0f2a4c;      /* the wordmark's "Word Links" */
  --teal: #2e7a80;      /* the wordmark's "JOURNEY" */
  --ink: #1b2a39;       /* headlines, solved words (--ink) */
  --ink-2: #46586c;     /* body (--ink-2) */
  --ink-3: #6f8296;     /* captions */
  --paper: #ffffff;
  --canvas: #f9f8fd;    /* the page under everything (--canvas) */
  --mist: #eef0f7;      /* the valley's low fog */
  --sky-top: #dfe3f0;   /* the top of the valley painting */
  --line: #d4d6e4;
  --pine: #2c6259;      /* primary action (--pine) */
  --pine-lo: #1c4a43;
  --pine-tint: #e4f0ed;
  --dusk: #3f5580;      /* the ridges (--dusk) */
  --dusk-tint: #e7ecf6;
  --sun: #e9ae3a;
  --sun-hi: #f7cd70;
  --ember: #c2593f;
  --night: #1b2332;     /* the moonlit valley */
  --night-2: #191a2f;   /* the moonlit desert */
  --moon-ink: #dfe5f6;  /* the dark wordmark */
  --card-shelf: #d9cabc;  /* the warm shelf under a board card */
  --chip: #f2ede6;
  --chip-lip: #d9cfc2;
  --wire: #a08f85;      /* the trail between cards */
  --acc-1: #3a6ca6; --acc-1-lo: #2a4e78;  /* lake */
  --acc-2: #b8811f; --acc-2-lo: #845d16;  /* wheat */
  --radius: 22px;
  --shadow: 0 2px 4px rgba(27, 42, 57, .08), 0 10px 26px rgba(27, 42, 57, .10);
  --shadow-lg: 0 8px 20px rgba(27, 42, 57, .14), 0 26px 60px rgba(27, 42, 57, .18);
  --page: 1120px;
  --display: "Gabarito", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  font: 500 18px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--pine); }
h2, h3 { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Section headings: a small teal kicker drawn like the wordmark's "— JOURNEY —", over a navy Gabarito title. */
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 10px;
  font: 700 13px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--teal);
}
.kicker::before, .kicker::after {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.kicker::after { clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: -.32em; /* the letter-spacing after the last letter */ }
.display {
  font: 800 clamp(32px, 4.6vw, 50px)/1.08 var(--display);
  letter-spacing: -.01em;
  text-align: center;
  color: var(--navy);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-lede { max-width: 38em; margin: 0 auto 44px; text-align: center; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); text-wrap: pretty; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(249, 248, 253, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 21px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.topbar nav { display: flex; gap: clamp(10px, 2.4vw, 28px); }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.topbar nav a:hover { color: var(--pine); }
@media (max-width: 720px) { .topbar nav { display: none; } }

/* ---------------------------------------------------------------- hero: the valley's morning sky */
.sky {
  background:
    radial-gradient(circle at 86% 14%, rgba(247, 205, 112, .34), rgba(247, 205, 112, 0) 24%),
    linear-gradient(180deg, var(--sky-top) 0%, #e9ecf5 52%, var(--canvas) 100%);
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 6vw, 80px) max(clamp(16px, 5vw, 56px), calc((100% - var(--page)) / 2)) clamp(56px, 7vw, 104px);
}
.wordmark { margin: 0; }
.wordmark-img { display: block; width: min(480px, 100%); height: auto; }
.tagline { font: 700 clamp(23px, 2.6vw, 30px)/1.2 var(--display); color: var(--teal); margin: 22px 0 10px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; margin: 0 0 28px; color: var(--ink-2); text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.fineprint { font-size: 14px; margin: 14px 0 0; color: var(--ink-3); }

.hero-phone { display: flex; justify-content: center; }
.phone {
  width: min(300px, 70vw); aspect-ratio: 9 / 19.5; padding: 10px;
  background: var(--ink); border-radius: 46px;
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(255, 255, 255, .22) inset;
  transform: rotate(2deg);
}
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--mist); }
@media (prefers-reduced-motion: reduce) { .phone { transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .wordmark-img { margin-left: auto; margin-right: auto; width: min(380px, 100%); }
  .badges { justify-content: center; }
}

/* ---------------------------------------------------------------- badges (placeholders until the official art) */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 10px; border: 1px solid #a6a6a6;
}
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; font: 600 21px/1.05 system-ui, -apple-system, sans-serif; letter-spacing: -.2px; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: .2px; }
.badge-google small { text-transform: uppercase; }
@media (max-width: 400px) {
  .badges { gap: 10px; }
  .badge { height: 50px; padding: 0 12px 0 10px; gap: 8px; }
  .badge span { font-size: 18px; }
}

/* ---------------------------------------------------------------- band sections: the low fog of the valley */
.band {
  background: linear-gradient(180deg, var(--mist) 0%, #f3f2f8 100%);
  padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 56px);
}
/* A card is the game's board card: white paper standing on a warm shelf. */
.card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--card-shelf), var(--shadow);
}

/* ---------------------------------------------------------------- how to play: a board, up close */
.board-demo { max-width: 760px; margin: 0 auto 64px; }
.board-demo-cards { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
.acard {
  display: grid; gap: 12px; padding: 22px 18px;
  background: var(--paper); border-radius: 24px; border: 3px solid transparent;
  box-shadow: 0 6px 0 var(--card-shelf), var(--shadow);
}
.acard.is-active { border-color: var(--acc-2); box-shadow: 0 6px 0 var(--acc-2-lo), var(--shadow); }
.aline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.aline > i { font: 800 18px/1 var(--display); font-style: normal; color: var(--ink-3); }
.chip {
  display: inline-grid; place-items: center; min-width: 0; padding: 7px 12px 6px;
  background: var(--chip); color: var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--chip-lip);
  font: 800 clamp(15px, 1.9vw, 19px)/1 var(--display); letter-spacing: .03em;
}
.chip.is-solved { background: var(--acc-1); color: #fff; box-shadow: 0 3px 0 var(--acc-1-lo); }
.slots { display: inline-flex; gap: 5px; }
.slots b {
  display: grid; place-items: center; width: clamp(26px, 3.4vw, 32px); aspect-ratio: 1;
  border-radius: 8px; background: #d8d0c7; box-shadow: inset 0 2px 0 rgba(93, 72, 55, .18);
  font: 800 clamp(15px, 1.9vw, 19px)/1 var(--display); color: var(--ink);
}
.slots b.is-filled { background: var(--dusk-tint); box-shadow: 0 3px 0 #bcc7de; }
/* The link: a straight trail from the centre of one card to the centre of the next, as on every board. */
.wire { position: relative; height: 4px; margin: 0 6px; border-radius: 4px; background: var(--wire); }
.wire::after {
  content: ""; position: absolute; right: -6px; top: 50%; translate: 0 -50%;
  border: 9px solid transparent; border-left: 12px solid var(--wire); border-right: 0;
}
.tray { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.tile {
  display: grid; place-items: center; width: clamp(40px, 6vw, 52px); aspect-ratio: 1;
  background: var(--paper); border-radius: 14px; box-shadow: 0 4px 0 var(--card-shelf), var(--shadow);
  font: 800 clamp(20px, 2.6vw, 26px)/1 var(--display); color: var(--ink);
}
.tile.is-used { background: #e6e0d8; color: transparent; box-shadow: inset 0 2px 0 rgba(93, 72, 55, .12); }
.board-demo figcaption { margin-top: 26px; text-align: center; color: var(--ink-2); font-size: 16px; }
.board-demo figcaption strong { color: var(--ink); font-weight: 800; letter-spacing: .02em; }
@media (max-width: 600px) {
  .board-demo-cards { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .wire { justify-self: center; width: 4px; height: 44px; margin: 10px 0 16px; }
  .wire::after { right: auto; left: 50%; top: auto; bottom: -6px; translate: -50% 0; border: 9px solid transparent; border-top: 12px solid var(--wire); border-bottom: 0; }
  .tray { gap: 8px; }
}

.steps { list-style: none; margin: 0 auto; padding: 0; max-width: var(--page); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps .card { padding: 34px 26px 28px; position: relative; }
.steps h3 { font: 800 23px/1.2 var(--display); color: var(--navy); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
.steps strong { color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.step-num {
  position: absolute; top: -18px; left: 22px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font: 800 21px/1 var(--display); color: #fff;
  background: var(--pine); border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 0 var(--pine-lo);
}
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------------------------------------------------------------- features */
.features { padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 56px); background: var(--canvas); }
.features .display { margin-bottom: 44px; }
.feature-grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--page); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; text-align: center; box-shadow: 0 4px 0 var(--line), var(--shadow);
}
.feature > img { margin: 0 auto 14px; height: 96px; width: auto; }
.feature h3 { font: 800 22px/1.2 var(--display); color: var(--navy); margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 17px; }
.feature-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; height: 96px; align-items: center; }
.feature-row img { height: 76px; width: auto; margin: 0; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- the journey: the paintings themselves */
.scenes { list-style: none; margin: 0 auto; padding: 0; max-width: var(--page); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.scenes figure { margin: 0; }
.scenes img { width: 100%; height: auto; aspect-ratio: 780 / 720; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.scenes figcaption { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) { .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Screenshot strip, for when the store frames exist (see the comment in index.html). */
.strip {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: var(--page); margin: 0 auto; padding: 4px 4px 22px;
  scrollbar-width: thin;
}
.strip > * {
  flex: 0 0 auto; width: min(260px, 64vw); aspect-ratio: 1320 / 2868; scroll-snap-align: center;
  border-radius: 26px; border: 6px solid var(--ink); box-shadow: var(--shadow);
}
.strip img { height: auto; }
.strip:focus-visible { outline: 3px solid var(--sun); outline-offset: 6px; border-radius: 12px; }
.strip-nav { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--pine); color: #fff; font: 800 30px/1 var(--display); cursor: pointer;
  box-shadow: 0 4px 0 var(--pine-lo);
}
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pine-lo); }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 56px); max-width: 860px; margin: 0 auto; }
.faq .display { margin-bottom: 36px; }
.faq details { padding: 0; margin-bottom: 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 56px 19px 22px; position: relative;
  font: 700 20px/1.3 var(--display); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -52%; font: 700 28px/1 var(--display); color: var(--teal); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.faq details p strong { color: var(--ink); }

/* ---------------------------------------------------------------- final CTA: the desert by moonlight + footer */
.cta {
  text-align: center; padding: clamp(56px, 8vw, 104px) 16px;
  background: linear-gradient(180deg, var(--night-2) 0%, #181c2e 100%);
  color: var(--moon-ink);
}
/* The painting's sky is the section's own colour, so the scene fades into it rather than sitting in a frame. */
.cta-art {
  width: min(620px, 100%); height: auto; aspect-ratio: 780 / 720; object-fit: cover; margin: -12px auto 18px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 52%, transparent 100%);
}
.cta .kicker { color: #7fb8bb; }
.cta .display { color: var(--moon-ink); margin-bottom: 28px; }
.cta .badges { justify-content: center; }

.footer { background: var(--ink); color: #c9d2e0; text-align: center; padding: 36px 16px 44px; font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-bottom: 14px; }
.footer a { color: #fff; font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 6px auto; max-width: 720px; }
.footer .tm { font-size: 12px; opacity: .75; }
