/* Could They Find It? - landing page
 * ------------------------------------------------------------------
 * The marketing page for the game, built to the AfterLoss marketing-site
 * design system (per docs/design handoff `design_handoff_landing/README.md`):
 * cream/white/charcoal/sage palette, Literata + Atkinson Hyperlegible Next,
 * warm sage-tinted shadows. This is a different, slightly lighter palette
 * to the in-game "spotlight board" skin in game.css (that is the retro
 * cabinet UI; this is the site around it) - the two are not meant to share
 * tokens.
 * No JS: anchor navigation, hover and ambient motion are all plain CSS.
 * Mobile-first from 360px; two-column/three-column grids from 900px.
 */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/atkinson-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/atkinson-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/literata-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('fonts/literata-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/literata-600.woff2') format('woff2');
}

:root {
  --lp-cream: #F6F7F4;
  --lp-white: #FFFFFF;
  --lp-cream-dark: #EBEEE9;
  --lp-charcoal: #3D3D3D;
  --lp-charcoal-light: #4A4A4A;
  --lp-sage: #7C9A82;
  --lp-sage-dark: #5C7A62;
  --lp-sage-text: #4A6B50;
  --lp-terracotta: #C4A484;
  --lp-dark-cta: #3D3D3D;
  --lp-dark-cta-hover: rgba(61, 61, 61, 0.9);
  --lp-shadow-card: 0 2px 8px rgba(124, 154, 130, 0.1);
  --lp-shadow-card-soft: 0 2px 8px rgba(124, 154, 130, 0.08);
  --lp-shadow-cta: 0 10px 30px rgba(61, 61, 61, 0.18);
  --lp-serif: 'Literata', Georgia, serif;
  --lp-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
}

.lp * { box-sizing: border-box; }
.lp {
  font-family: var(--lp-body);
  color: var(--lp-charcoal);
  background: var(--lp-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* text-decoration only (not colour): a blanket `color:inherit` here would
   out-specificity the single-class button/link colour rules below (class +
   element beats a lone class), silently overriding them. Anchors that need a
   specific colour set it themselves. */
.lp a { text-decoration: none; }
.lp h1, .lp h2, .lp h3 { margin: 0; }
/* NB: this element-qualified reset (specificity 0,1,1) beats any lone-class
   paragraph rule (0,1,0), so a `.lp-something { margin-top: ... }` on a <p>
   silently gets zeroed. Give such rules a parent scope (e.g. `.lp-hero
   .lp-hero-body`) so they win. */
.lp p { margin: 0; }
.lp em { font-style: italic; color: var(--lp-sage); }

/* fine-grain paper texture, matches the AfterLoss "paper" overlay */
.lp-grain {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.03; z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 700px) { .lp-grain { display: none; } }

/* ---- shared layout helpers ---------------------------------------- */
.lp-wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.lp-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lp-sage); margin-bottom: 12px;
}

/* buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 16px; font-weight: 600; font-size: 16px;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
  border: none; cursor: pointer;
}
.lp-btn--dark { background: var(--lp-dark-cta); color: #fff; box-shadow: var(--lp-shadow-cta); }
.lp-btn--dark:hover { background: var(--lp-dark-cta-hover); }
.lp-btn--ghost { background: #fff; color: var(--lp-charcoal); border: 1px solid var(--lp-cream-dark); }
.lp-btn--ghost:hover { background: var(--lp-cream-dark); }
.lp-btn--sage { background: var(--lp-sage); color: #fff; }
.lp-btn--sage:hover { background: var(--lp-sage-dark); }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}

/* ---- header --------------------------------------------------------- */
.lp-header { position: relative; z-index: 20; padding: 20px 24px; }
.lp-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.lp-logo { display: flex; align-items: center; }
.lp-logo img { height: 88px; width: auto; display: block; }
.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav-home { font-size: 15px; font-weight: 600; color: var(--lp-sage-text); white-space: nowrap; transition: color 0.15s ease-out; }
.lp-nav-home:hover { color: var(--lp-sage-dark); text-decoration: underline; }
@media (max-width: 560px) {
  .lp-logo img { height: 66px; }
  .lp-header-row { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; }
  .lp-nav { gap: 14px; }
}
.lp-nav-cta {
  font-size: 14px; font-weight: 600; color: #fff; background: var(--lp-dark-cta);
  padding: 10px 20px; border-radius: 12px; box-shadow: var(--lp-shadow-cta);
  white-space: nowrap; transition: background-color 0.15s ease-out;
}
.lp-nav-cta:hover { background: var(--lp-dark-cta-hover); }

/* ---- hero ------------------------------------------------------------ */
.lp-hero { position: relative; padding: 32px 24px 64px; overflow: hidden; }
.lp-blob {
  position: absolute; pointer-events: none; filter: blur(40px); border-radius: 9999px;
}
.lp-blob--a {
  top: -180px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 165, 165, 0.20), transparent 60%);
  animation: lpFloatA 10s ease-in-out infinite;
}
.lp-blob--b {
  bottom: -220px; left: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 60%, rgba(124, 154, 130, 0.16), transparent 60%);
  animation: lpFloatB 9s ease-in-out infinite 1.5s;
}
@keyframes lpFloatA { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-1deg); } }
@keyframes lpFloatB { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(2deg); } }

.lp-hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
.lp-hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lp-sage); margin-bottom: 20px; }
.lp-hero h1 {
  font-family: var(--lp-serif); font-weight: 500; font-size: clamp(1.7rem, 6.5vw, 2.8rem);
  line-height: 1.16; letter-spacing: -0.01em; color: var(--lp-charcoal);
}
/* the display headline is large, so the body needs a proportionally generous
   gap beneath it (it scales up with the type) or it reads as cramped.
   Scoped to .lp-hero so these beat the blanket `.lp p { margin: 0 }` reset
   (a lone class loses to that element-qualified selector on specificity). */
.lp-hero .lp-hero-body { font-size: 19px; line-height: 1.6; color: var(--lp-charcoal-light); max-width: 520px; margin-top: clamp(32px, 3vw, 40px); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lp-hero .lp-hero-reassure { font-size: 14px; color: var(--lp-sage); margin-top: 22px; }

/* hero board: the full kitchen table, rendered as the game's own vector art
   (all eight things present). The SVG fills the frame at its native 1000x680
   ratio, so nothing is cropped. */
.lp-hero-board {
  position: relative; aspect-ratio: 1000 / 680; border-radius: 24px; overflow: hidden;
  background: #b88a52;
  box-shadow: 0 34px 80px rgba(20, 24, 15, 0.4);
  border: 1px solid rgba(192, 170, 120, 0.25);
}
.lp-hero-board svg { display: block; width: 100%; height: 100%; }

@media (min-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .lp-hero { padding: 32px 24px 88px; }
}

/* ---- wave divider ------------------------------------------------- */
.lp-wave { height: 72px; overflow: hidden; line-height: 0; }
.lp-wave svg { width: 100%; height: 100%; display: block; }

/* ---- section shells ------------------------------------------------- */
.lp-section { padding: 64px 24px; }
.lp-section--white { background: var(--lp-white); }
.lp-section--cream { background: var(--lp-cream); }
@media (min-width: 700px) { .lp-section { padding: 88px 24px; } }

/* ---- play section + embed ------------------------------------------ */
.lp-play-intro { max-width: 900px; margin: 0 auto 8px; text-align: center; }
.lp-play-intro h2 {
  font-family: var(--lp-serif); font-weight: 500; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16; letter-spacing: -0.01em; color: var(--lp-charcoal); margin-bottom: 16px;
}
.lp-play-intro p { font-size: 18px; line-height: 1.6; color: var(--lp-charcoal-light); max-width: 600px; margin: 0 auto; }

/* Inline embed: desktop only. Full page width so the game reaches its own
   two-column "board + panel" layout (it stacks below ~820px inner width). Its
   height is driven from inside via postMessage (see the script in index.html and
   play/index.html), so there is no fixed height to guess and no inner scroll. */
.lp-play-embed { display: none; margin-top: 40px; }
.lp-play-frame-wrap {
  margin: 0 auto; border-radius: 24px; overflow: hidden;
  box-shadow: 0 34px 80px rgba(20, 24, 15, 0.4); border: 1px solid rgba(192, 170, 120, 0.25);
  background: radial-gradient(120% 100% at 50% 8%, #2c342a 0%, #20261e 48%, #14180f 100%);
}
.lp-play-frame {
  display: block; width: 100%; height: 640px; border: none;
}
.lp-play-embed .lp-play-fs { text-align: center; margin-top: 28px; font-size: 15px; }
.lp-play-fs a { color: var(--lp-sage-text); font-weight: 600; }
.lp-play-fs a:hover { color: var(--lp-sage-dark); text-decoration: underline; }

/* Launch card: the primary play affordance on phones. Tapping it opens the game
   full screen (the standalone /play/ page), which is a far better fit for a tall
   interactive game than a small internally-scrolling window. */
.lp-play-launch {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; position: relative; overflow: hidden;
  max-width: 520px; margin: 36px auto 0; padding: 40px 26px 44px;
  border-radius: 24px; border: 1px solid rgba(192, 170, 120, 0.25);
  background: radial-gradient(120% 100% at 50% 8%, #2c342a 0%, #20261e 48%, #14180f 100%);
  box-shadow: 0 24px 60px rgba(20, 24, 15, 0.36);
}
.lp-play-launch-sweep {
  position: absolute; left: 50%; top: 34%; width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(249, 220, 150, 0.22) 0%, rgba(249, 220, 150, 0.06) 42%, rgba(249, 220, 150, 0) 70%);
}
.lp-play-launch-title {
  position: relative; font-family: var(--lp-serif); font-weight: 500; font-size: 26px;
  color: #F7F1E2; letter-spacing: -0.01em;
}
.lp-play-launch-title b { color: var(--lp-terracotta); font-weight: 500; }
.lp-play-launch-copy { position: relative; font-size: 15px; line-height: 1.5; color: rgba(247, 241, 226, 0.7); max-width: 300px; }
.lp-play-launch-btn {
  position: relative; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 16px; font-weight: 600; font-size: 16px;
  background: rgba(247, 241, 226, 0.97); color: var(--lp-charcoal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.lp-play-launch:hover .lp-play-launch-btn { background: #fff; }

@media (min-width: 900px) {
  .lp-play-embed { display: block; }
  .lp-play-launch { display: none; }
}

/* ---- AfterLoss tie-in card ------------------------------------------- */
.lp-tiein {
  max-width: 720px; margin: 0 auto; border-radius: 24px;
  border: 1px solid rgba(124, 154, 130, 0.2);
  background: linear-gradient(135deg, rgba(124, 154, 130, 0.09), rgba(124, 154, 130, 0.03));
  padding: 36px 24px;
}
@media (min-width: 700px) { .lp-tiein { padding: 44px 40px; } }
.lp-tiein h2 {
  font-family: var(--lp-serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18; color: var(--lp-charcoal); margin: 14px 0 16px;
}
/* scoped so margin-bottom beats the blanket `.lp p { margin: 0 }` reset */
.lp-tiein .lp-tiein-body { font-size: 18px; line-height: 1.6; color: var(--lp-charcoal-light); margin-bottom: 26px; }
.lp-tiein-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lp-tiein-foot span { font-size: 14px; color: var(--lp-sage); }

/* ---- final CTA -------------------------------------------------------- */
.lp-final { max-width: 672px; margin: 0 auto; text-align: center; padding: 24px 0 0; }
.lp-final h2 {
  font-family: var(--lp-serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--lp-charcoal); margin-bottom: 16px;
}
.lp-final p { font-size: 18px; color: var(--lp-charcoal-light); margin-bottom: 30px; }
.lp-final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lp-final .lp-btn { padding: 16px 42px; font-size: 18px; }

/* ---- footer ------------------------------------------------------------ */
.lp-footer { border-top: 1px solid var(--lp-cream-dark); padding: 40px 24px; background: var(--lp-cream); }
.lp-footer-row {
  max-width: 1024px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.lp-footer-brand { display: flex; align-items: center; gap: 12px; }
.lp-footer-brand img { height: 32px; width: auto; }
.lp-footer-brand span { font-size: 14px; color: rgba(74, 74, 74, 0.7); transition: color 0.15s ease-out; }
.lp-footer-brand:hover span { color: var(--lp-charcoal); }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.lp-footer-links a { color: var(--lp-charcoal-light); transition: color 0.15s ease-out; }
.lp-footer-links a:hover { color: var(--lp-charcoal); }
