/* Arrow of Progress landing page — design "B: Light & Airy" */
:root {
  --bg: #faf6ee;
  --card: #ffffff;
  --sand: #f1e7d4;
  --ink: #231a14;
  --mute: #6f6052;
  --wine: #6e1d2b;
  --line: #e6dcc8;
  --radius: 22px;
  --pad: 80px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 980px; }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-gplay img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 34px; list-style: none; padding: 0; margin: 0 12px 0 auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--mute); }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
/* Feature art (two portraits) sits on the right; the left fades to parchment so the logo stays readable. */
.hero { position: relative; overflow: hidden; background: var(--bg); }
/* Only the right ~53% of the feature graphic (the portraits) is shown, so its built-in title text never appears. */
.hero-art { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 490 / 500; background: url(../img/hero-art.jpg) right center / auto 100% no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 246, 238, 0) 14%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; min-height: 760px; padding-top: 48px; padding-bottom: 56px; }
.hero-copy { align-self: center; max-width: 520px; }
.hero .device { align-self: end; }
.game-logo { width: 340px; margin: 0 0 14px -12px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 54px; line-height: 1.04; letter-spacing: -.02em; margin: 6px 0 20px; }
.hero h1 em, .big h2 em { font-weight: 500; color: var(--wine); }
.hero p { font-size: 18px; line-height: 1.65; color: var(--mute); max-width: 520px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.gplay { height: 56px; width: auto; }
.note { font-size: 14px; color: var(--mute); }
.device { position: relative; }
.phone { background: #1b1512; padding: 14px; border-radius: 38px; box-shadow: 0 60px 90px -30px rgba(20, 10, 5, .75), 0 0 0 1px #000, 0 0 0 6px rgba(255, 255, 255, .35); }
.phone img { width: 100%; border-radius: 26px; }

/* ---------- Stats (full-width dark band) ---------- */
.stats-band { background: #141a26; border-top: 5px solid #c9a45c; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 40px 0; text-align: center; }
.stats > div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.stats b { font-family: var(--serif); font-size: 48px; color: #c9a45c; display: block; line-height: 1; margin-bottom: 10px; }
.stats span { color: #b9b3a6; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.tint { background: var(--sand); }
.big { max-width: 860px; margin-bottom: 54px; }
.big.center { margin-left: auto; margin-right: auto; }
.kick { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.big h2 { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 20px; }
.big p { font-size: 19px; line-height: 1.65; color: var(--mute); max-width: 720px; }
.big.center p { margin: 0 auto; }


/* ---------- Gameplay tour (alternating big rows) ---------- */
.tour { display: grid; gap: 72px; }
.tour-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: center; }
.tour-row:nth-child(even) { grid-template-columns: 1fr 1.7fr; }
.tour-row:nth-child(even) img { order: 2; }
.tour-row img { width: 100%; border: 1px solid #e3d3b2; border-bottom: 4px solid #c9a45c; box-shadow: 0 30px 50px -30px rgba(59, 15, 26, .45); }
.tour-num { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: #c9a45c; font-size: 20px; letter-spacing: .1em; }
.tour-text h3 { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: var(--wine); font-size: 32px; line-height: 1.15; margin: 8px 0 14px; }
.tour-text p { font-size: 18px; line-height: 1.65; color: var(--mute); }

/* ---------- Video ---------- */
.video { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 70px -40px rgba(60, 30, 10, .5); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sub { margin-top: 22px; font-weight: 500; }
.sub a { color: var(--wine); }

/* ---------- References (one toggle, hidden by default) ---------- */
.refs summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.refs summary:hover { background: var(--wine); }
.refs summary::-webkit-details-marker { display: none; }
.refs summary::after { content: "+"; font-size: 18px; line-height: 1; }
.refs[open] summary::after { content: "–"; }
.refs .when-open, .refs[open] .when-closed { display: none; }
.refs[open] .when-open { display: inline; }
.refs-list { margin-top: 34px; display: grid; gap: 30px; }
.ref-group h3 { font-family: "Cinzel", Georgia, serif; font-size: 17px; color: var(--wine); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e3d3b2; }
.ref-group ul { padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--mute); }
.ref-group a { color: var(--wine); word-break: break-word; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 20px; max-width: 760px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid #e3d3b2; border-radius: 12px; padding: 13px 16px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110, 29, 43, .15); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-form button { font: inherit; font-weight: 600; font-size: 15px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer; }
.contact-form button:hover { background: var(--wine); }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-status { font-size: 15px; color: var(--mute); }
.form-status.ok, .form-flash.ok { color: #2f6b3a; }
.form-status.err, .form-flash.err { color: var(--wine); }
.form-flash { display: none; font-weight: 600; margin-bottom: 20px; }
.form-flash:target { display: block; }
.form-flash a { color: inherit; }

/* ---------- CTA band ---------- */
/* Dark closing band with an oversized Google Play badge */
.cta-band { background: #141a26; border-top: 5px solid #c9a45c; padding: 110px 0 120px; }
.cta-band h2 { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1.02; letter-spacing: -.02em; color: #f4ead6; }
.cta-band h2 em { font-weight: 500; color: #e6cf96; }
.cta-band p { color: #b9b3a6; margin: 16px 0 40px; font-size: 19px; }
.gplay-big { display: inline-block; transition: transform .15s ease; }
.gplay-big:hover { transform: translateY(-2px) scale(1.02); }
.gplay-big img { height: 104px; width: auto; margin: 0 auto; }
.cta-band .updates { margin: 34px 0 0; font-size: 16px; }
.cta-band .updates a { color: #e6cf96; font-weight: 600; text-decoration: none; }
.cta-band .updates a:hover { text-decoration: underline; }

/* ---------- Legal pages (#privacypolicy / #terms) ---------- */
.legal { display: none; padding: 60px 0 100px; }
.legal:target { display: block; }
body:has(.legal:target) main { display: none; }
.legal h1 { font-family: var(--serif); font-size: 52px; letter-spacing: -.02em; margin: 20px 0 30px; }
.legal-body p { font-size: 16px; line-height: 1.7; color: var(--mute); margin-bottom: 16px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--wine); }
.back { color: var(--wine); text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 60px; text-align: center; }
.footer-logo { height: 15px; width: auto; margin: 0 auto 22px; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.social a:hover { background: var(--wine); }
.footer-links { font-size: 14px; color: var(--mute); margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--wine); }
.copy { font-size: 13px; color: var(--mute); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .big h2 { font-size: 52px; }
  .nav-links { gap: 22px; }
}
@media (max-width: 900px) {
  .hero-art { position: relative; height: clamp(260px, 55vw, 460px); width: 100%; aspect-ratio: auto; background-size: 205% auto; background-position: right top; }
  .hero-art::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 246, 238, 0) 18%), linear-gradient(0deg, var(--bg) 0%, rgba(250, 246, 238, 0) 30%); }
  .hero-grid { display: flex; flex-direction: column; min-height: 0; gap: 36px; padding-top: 0; }
  .hero .device { order: -1; margin-top: -150px; max-width: 560px; align-self: center; width: 100%; }
  .hero-copy { max-width: none; }
  .tour { gap: 56px; }
  .tour-row, .tour-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .tour-row:nth-child(even) img { order: 0; }
  .tour-text h3 { font-size: 26px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .nav-inner { padding: 14px var(--pad); }
  .nav-brand { font-size: 18px; }
  .nav-gplay img { height: 34px; }
  .hero .device { margin-top: -100px; }
  .game-logo { width: 240px; margin-left: -8px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .gplay { height: 50px; }
  .phone { padding: 8px; border-radius: 22px; }
  .phone img { border-radius: 15px; }
        .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 28px 0; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .stats b { font-size: 36px; }
  .stats span { font-size: 11px; letter-spacing: .14em; }
  .section { padding: 72px 0; }
  .big { margin-bottom: 36px; }
  .big h2 { font-size: 38px; }
  .big p { font-size: 17px; }
  .cta-band { padding: 80px 0 90px; }
  .cta-band h2 { font-size: 40px; }
  .cta-band p { font-size: 17px; margin-bottom: 30px; }
  .gplay-big img { height: 76px; }
  .legal h1 { font-size: 38px; }
  .field-row { grid-template-columns: 1fr; }
}
