/* Mainhattan landing — same tokens as the game (src/ui/theme.css): Nunito, cream, terracotta, gold, teal. */
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/nunito-latin-900-normal.woff2') format('woff2'); }

:root {
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cream: #fbf3e4; --cream-2: #f3e6cf; --paper: #fffaf0;
  --ink: #3a2e2a; --ink-soft: #75655b; --line: #eadbc0;
  --terracotta: #e2725b; --terracotta-d: #b9523f;
  --teal: #14807a; --teal-d: #0c5f5a;
  --gold: #f6b93b; --gold-d: #cf8f17;
  --sky: #cfe8f1; --sky-2: #9fd2e6;
  --r-s: 14px; --r-m: 20px; --r-l: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(58, 46, 42, .08), 0 3px 8px rgba(58, 46, 42, .08);
  --shadow-2: 0 2px 4px rgba(58, 46, 42, .06), 0 10px 24px rgba(58, 46, 42, .12);
  --shadow-float: 0 4px 10px rgba(58, 46, 42, .1), 0 24px 60px rgba(58, 46, 42, .24);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-weight: 600; color: var(--ink); background: var(--cream);
  line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(20, 128, 122, .55); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 243, 228, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 20px; }
.brand-mark { width: 32px; height: 32px; }
.brand span b { color: var(--gold-d); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 800; color: var(--ink-soft); transition: color .15s, background .15s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current='page'] { color: var(--ink); background: var(--cream-2); }
@media (max-width: 520px) { .nav-links .hide-sm { display: none; } }

/* ── buttons (chunky, like in the game) ── */
.btn {
  --bg: var(--gold); --edge: var(--gold-d); --fg: #3b2700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 900; font-size: 17px; text-decoration: none;
  box-shadow: 0 4px 0 var(--edge), 0 10px 20px -8px rgba(58, 46, 42, .35); transform: translateY(0);
  transition: transform .09s, box-shadow .09s, filter .15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge), 0 4px 10px -6px rgba(58, 46, 42, .35); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--edge); }
.btn-sm:active { transform: translateY(3px); }
.btn-teal { --bg: var(--teal); --edge: var(--teal-d); --fg: #fff; }
.btn svg { width: 1em; height: 1em; }

/* ── store badges ── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 14px; background: #111; color: #fff; text-decoration: none; min-width: 168px;
  transition: transform .15s var(--ease-spring), opacity .2s, filter .2s;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .85; line-height: 1.1; }
.store strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.store:not(.is-locked):hover { transform: translateY(-2px); }
.store.is-locked { filter: grayscale(1); opacity: .38; cursor: not-allowed; }
.store .soon {
  position: absolute; top: -9px; right: -8px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 900;
  padding: 2px 8px; border-radius: 999px; box-shadow: var(--shadow-1); opacity: 1;
}
.stores-wrap { display: flex; flex-direction: column; gap: 10px; }
.stores-note { font-size: 14px; color: var(--ink-soft); }
.store.is-locked .soon { filter: none; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 45%, var(--cream) 100%); }
.hero::before, .hero::after { /* soft clouds */
  content: ''; position: absolute; border-radius: 999px; background: rgba(255, 255, 255, .75); filter: blur(2px); pointer-events: none;
}
.hero::before { width: 260px; height: 70px; top: 70px; left: -60px; box-shadow: 120px -24px 0 -10px rgba(255, 255, 255, .7); }
.hero::after { width: 200px; height: 56px; top: 150px; right: -40px; box-shadow: -90px 20px 0 -12px rgba(255, 255, 255, .6); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 96px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 250, 240, .8); font-size: 14px; font-weight: 800; color: var(--teal-d); box-shadow: var(--shadow-1); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); font-style: normal; }
.wordmark { margin-top: 18px; font-size: clamp(54px, 11vw, 104px); letter-spacing: -.02em; line-height: .95; color: #fff; text-shadow: 0 5px 0 var(--terracotta-d), 0 14px 28px rgba(58, 46, 42, .25); }
.wordmark b { color: var(--gold); font-weight: 900; }
.tagline { margin-top: 22px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 900; color: var(--ink); }
.lede { margin-top: 12px; font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.hero-cta { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.facts { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: #1b1716;
  box-shadow: var(--shadow-float), inset 0 0 0 2px #3b3330; transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #1b1716; z-index: 2; }
.phone-back { position: absolute; transform: translate(42%, 6%) rotate(7deg) scale(.86); opacity: .95; animation-delay: -3.5s; z-index: -1; display: none; }
@media (min-width: 1100px) { .phone-back { display: block; } .phone-stage { transform: translateX(-12%); } }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-2); font-weight: 900; font-size: 15px; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-1 { left: max(0px, calc(50% - 230px)); top: 48%; animation-delay: -1s; }
.chip-2 { right: max(0px, calc(50% - 220px)); bottom: 18%; animation-delay: -2.5s; }
.chip .up { color: #067a50; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ── sections ── */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }
.section h2 { margin-top: 8px; font-size: clamp(30px, 4.6vw, 44px); }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }

.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--paper); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow-2); border: 1px solid rgba(234, 219, 192, .6); }
.card .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.card h3 { margin-top: 18px; font-size: 22px; }
.card p { margin-top: 8px; color: var(--ink-soft); }
.ico-a { background: #fde3d8; } .ico-b { background: #fff0c9; } .ico-c { background: #d4f0ec; }

/* how it works */
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .how-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r-m); background: var(--cream); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--terracotta); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 3px 0 var(--terracotta-d); }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 2px; color: var(--ink-soft); font-size: 16px; }
.screens { position: relative; display: flex; justify-content: center; gap: 18px; }
.screens .phone { width: min(240px, 42vw); animation: none; border-radius: 38px; padding: 8px; }
.screens .phone img { border-radius: 31px; }
.screens .phone::before { top: 14px; height: 18px; }
.screens .phone:first-child { transform: rotate(-4deg) translateY(16px); }
.screens .phone:last-child { transform: rotate(4deg); }

/* city band */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: 30% 40%; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(255, 250, 240, 0) 18%, rgba(251, 243, 228, 0) 70%, var(--cream) 100%); pointer-events: none; }
.band-quote { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); z-index: 2; width: min(92%, 640px); text-align: center; padding: 18px 24px; border-radius: var(--r-l); background: rgba(255, 250, 240, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-float); font-size: clamp(18px, 2.4vw, 22px); font-weight: 900; }
.band-quote span { color: var(--teal); }

/* twin */
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 760px) { .twin { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow-1); }
.stat strong { display: block; font-size: clamp(32px, 6vw, 40px); font-weight: 900; color: var(--teal); line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 800; }

/* final CTA */
.cta { padding: 24px 0 96px; }
.cta-box { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 48px 28px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--teal) 0%, #0f6a65 100%); color: #fff; box-shadow: var(--shadow-float); }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 56px; } }
.cta-box::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(246, 185, 59, .22); }
.cta-box h2 { font-size: clamp(30px, 4.4vw, 42px); }
.cta-box p { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-box .store.is-locked { opacity: .45; }
.cta-box .stores-note { color: rgba(255, 255, 255, .75); }

/* about page */
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); }
.page-hero h1 { margin-top: 10px; font-size: clamp(38px, 6vw, 60px); }
.page-hero p { margin-top: 16px; font-size: 20px; color: var(--ink-soft); max-width: 36em; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; font-size: 18px; color: var(--ink); }
.prose p.muted { color: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 24px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 340px; gap: 64px; align-items: start; } }
.aside { display: grid; gap: 16px; }
@media (min-width: 960px) { .aside { position: sticky; top: 88px; } }
.aside .card { padding: 24px; }
.aside h3 { font-size: 18px; margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 800; }
.values { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.values li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-1); }
.values .v-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--cream-2); }
.values b { display: block; font-size: 17px; }
.values span { color: var(--ink-soft); font-size: 16px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; font-weight: 800; }
.footer a:hover { color: var(--ink); }
