/* Palette pulled straight from the app (ProfileScreen / QuestionCard /
   EvidenceCard) so the site reads as the same product. */
:root {
  --bg: #0B0F1A;
  --bg-deep: #05070d;
  --card: #1A1F36;
  --card-2: #151A2E;
  --card-border: #2A2F4A;
  --accent: #6C63FF;
  --accent-soft: rgba(108, 99, 255, 0.16);
  --text: #FFFFFF;
  --muted: #8E8E9A;
  --muted-2: #c7c7d2;
  --gold: #F59E0B;
  --green: #22C55E;
  --red: #EF4444;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 70% at 50% -10%, #161c30 0%, var(--bg) 48%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent); }
.hidden { display: none !important; }

/* ── Top nav ─────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 15, 26, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 47, 74, 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }
.play-link {
  text-decoration: none; color: var(--text);
  background: var(--accent); padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.play-link:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(108,99,255,.45); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center;
  max-width: 1080px; margin: 0 auto;
  padding: 64px 24px 40px;
}
.eyebrow {
  color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; margin-bottom: 16px;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 900;
  line-height: 1.05; letter-spacing: -1px;
}
.lede {
  color: var(--muted-2); font-size: clamp(16px, 2vw, 19px);
  margin-top: 18px; max-width: 460px;
}
.hero-cta-row { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.hero-proof { color: var(--muted); font-size: 13px; }

/* Google Play badge sizing */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 56px; width: auto; }
.play-badge-lg img { height: 64px; }

/* ── The phone widget ────────────────────────────────────────── */
.phone {
  width: 360px; max-width: 100%; justify-self: center;
  background: var(--bg);
  border: 1px solid #1c2236; border-radius: 34px;
  padding: 22px 20px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.03);
  min-height: 560px;
  display: flex; flex-direction: column;
}
.screen { display: flex; flex-direction: column; flex: 1; }

/* start screen */
.screen-start { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.logo-stack { margin-bottom: 2px; }
.logo-line { font-size: 40px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
.start-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.hearts-center { justify-content: center; margin: 18px 0 6px; gap: 8px; font-size: 22px; }
.btn-primary {
  margin-top: 18px; width: 100%;
  background: var(--accent); color: #fff; border: none;
  border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 800;
  cursor: pointer; box-shadow: 0 10px 26px rgba(108, 99, 255, 0.4);
  transition: transform .12s ease, filter .12s ease;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }

/* Pulsing nudge ring on the start button: a soft psychological prompt to play */
#start-btn { position: relative; }
#start-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.55);
  animation: start-nudge 2.2s cubic-bezier(.4, 0, .6, 1) infinite;
  pointer-events: none;
}
@keyframes start-nudge {
  0%   { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(108, 99, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}
.start-note { color: #555b70; font-size: 12px; margin-top: 12px; }

/* game screen: detective / manila evidence theme (matches the shipped app) */
.game-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hearts { display: flex; gap: 5px; }
.heart { font-size: 17px; color: var(--red); line-height: 1; }
.heart.empty { color: #3a3f57; opacity: .3; }
.diff {
  border: 1px solid; border-radius: 999px; display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; padding: 4px 14px;
}
.diff.easy   { color: var(--green); border-color: rgba(34,197,94,.55); }
.diff.medium { color: var(--gold);  border-color: rgba(245,158,11,.55); }
.diff.hard   { color: var(--red);   border-color: rgba(239,68,68,.55); }
.streak { min-width: 24px; text-align: right; color: var(--gold); font-weight: 800; font-size: 16px; }

/* tension bar (the app's TensionBar): depletes green to amber to red */
.tension { margin-bottom: 18px; }
.tension-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 2px; color: #6f7790; font-weight: 700; margin-bottom: 7px;
}
.tension-secs { color: #cfd3e2; font-weight: 700; letter-spacing: 1px; }
.tension-track { height: 10px; border-radius: 999px; background: #0e1320; overflow: hidden; border: 1px solid #1c2236; }
.tension-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: var(--green);
  transition: width 1s linear, background .4s;
}
.tension-fill.amber { background: var(--gold); }
.tension-fill.red { background: var(--red); }

/* prompt */
.prompt { text-align: center; margin-bottom: 18px; }
.prompt-eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--accent); font-weight: 800; }
.prompt-title { font-size: 20px; font-weight: 800; margin-top: 5px; letter-spacing: .2px; }

.feedback { text-align: center; font-size: 20px; font-weight: 900; min-height: 26px; opacity: 0; transition: opacity .25s; }
.feedback.win { color: var(--green); opacity: 1; }
.feedback.lose { color: var(--red); opacity: 1; }

/* manila evidence cards */
.cards { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.card {
  position: relative;
  background: linear-gradient(180deg, #e7d8b4 0%, #d4c193 100%);
  color: #2a2622;
  border-radius: 5px; padding: 18px 18px 18px 20px;
  border-left: 4px solid #b23b30;
  text-align: left; font-size: 15px; line-height: 1.45; font-weight: 500;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .3s;
}
.card:hover { transform: translateY(-2px) rotate(-.3deg); box-shadow: 0 10px 22px rgba(0,0,0,.5); }
.card .ribbon {
  position: absolute; top: -9px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  padding: 2px 9px; border-radius: 3px;
}
.card .pin {
  position: absolute; top: -7px; right: 16px; width: 12px; height: 12px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a6b, #c0392b);
  box-shadow: 0 2px 3px rgba(0,0,0,.4);
}
.card.locked { cursor: default; }
.card.faded { filter: grayscale(.35) brightness(.9); opacity: .85; }
/* the actual lie, revealed in green (the answer) */
.card.is-lie { background: var(--green); color: #06210f; border-left-color: #15803d; font-weight: 700; }
.card.is-lie .ribbon { background: #15803d; }
/* the player's correct pick (also the lie) */
.card.correct-pick { background: var(--green); color: #06210f; border-left-color: #15803d; font-weight: 700; }
.card.correct-pick .ribbon { background: #15803d; }
/* the player's wrong pick, solid red to mirror the green correct state */
.card.wrong-pick { background: var(--red); color: #fff; border-left-color: #b91c1c; font-weight: 700; }
.card.wrong-pick .ribbon { background: #b91c1c; }
.card.is-lie .pin, .card.correct-pick .pin, .card.wrong-pick .pin { display: none; }
.card.shake { animation: shake .4s; }
@keyframes shake {
  0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); }
}

.score-row {
  margin-top: 18px; text-align: center; font-size: 11px; letter-spacing: 2px;
  color: var(--muted); font-weight: 700;
}
.score-row span { color: var(--accent); font-size: 15px; margin-left: 4px; }

.reveal-explain {
  text-align: center; color: var(--muted-2); font-size: 13px; line-height: 1.5;
  margin-top: 14px; min-height: 0; opacity: 0; transition: opacity .3s;
}
.reveal-explain.show { opacity: 1; }
.btn-continue {
  margin-top: 14px; width: 100%;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 12px;
  padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.btn-continue:hover { background: var(--accent-soft); }

/* scorecard */
.screen-score { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.score-eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.score-big { font-size: 64px; font-weight: 900; line-height: 1; margin: 4px 0; }
.score-of { color: var(--muted); font-size: 32px; }
.score-rank { color: var(--accent); font-weight: 800; font-size: 18px; }
.score-line { color: var(--muted-2); font-size: 14px; max-width: 280px; margin: 6px 0 4px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0; }
.qr-wrap img { border-radius: 8px; background: #fff; padding: 6px; }
.qr-wrap span { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.btn-ghost {
  margin-top: 6px; background: transparent; color: var(--muted);
  border: none; font-size: 13px; cursor: pointer; text-decoration: underline;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--text); }

/* ── Content bands ───────────────────────────────────────────── */
.band { max-width: 760px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.band-tight { padding: 48px 24px; }
.band h2 { font-size: clamp(22px, 4.8vw, 40px); font-weight: 900; line-height: 1.18; letter-spacing: -0.5px; text-wrap: balance; }
.band h2 em { font-style: normal; }
.band-lede { color: var(--muted-2); font-size: 17px; margin-top: 18px; }

.features { max-width: 1080px; margin: 0 auto; padding: 24px 24px 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--card-2); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px 20px;
}
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

.shots { display: flex; gap: 18px; margin-top: 44px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.shots img {
  width: 220px; flex: 0 0 auto; border-radius: 20px; scroll-snap-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
}

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  max-width: 760px; margin: 24px auto; padding: 56px 24px; text-align: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(108,99,255,0.04));
  border: 1px solid rgba(108,99,255,0.3); border-radius: 28px;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.5px; text-wrap: balance; }
.cta-band p { color: var(--muted-2); margin: 14px 0 26px; font-size: 17px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; text-align: center; border-top: 1px solid var(--card-border); }
.socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.social-tile {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border);
  text-decoration: none; transition: transform .12s ease, border-color .12s;
}
.social-tile:hover { transform: translateY(-2px); }
.social-tile svg { width: 22px; height: 22px; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.foot-links a { color: var(--muted-2); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; text-align: center; }
  .hero-copy { order: 2; }
  .phone { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .band { padding: 44px 18px; }
  .cta-band { padding: 44px 20px; border-radius: 22px; margin-left: 12px; margin-right: 12px; }
  .band-lede { font-size: 16px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}
