/* New Code NLP Games — marketing site.
   Tokens + base + landing components. Mirrors Design/tokens/colors.css +
   fonts.css. Dark mode auto-swaps via prefers-color-scheme. */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
    /* Warm paper neutrals */
    --paper:      #FBF9F5;
    --surface:    #F4F1EB;
    --surface-2:  #ECE8DF;
    --ink:        #2A2722;
    --ink-2:      #6C665B;
    --ink-3:      #978F81;
    --hairline:   #E5DFD3;
    --hairline-2: #D8D1C2;

    /* Clay accent */
    --accent:      #B25E37;
    --accent-ink:  #8F4827;
    --accent-soft: #F0E2D8;

    /* Type */
    --ui:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;

    --shadow-rest: 0 1px 2px rgba(42,39,34,.06);
    --shadow-lift: 0 14px 34px -14px rgba(42,39,34,.35), 0 2px 8px rgba(42,39,34,.10);
}

/* Per-game palette — tile background (--tint) + mark ink (--mark) */
.g-alphabet { --tint:#EFE6DB; --mark:#9A6A45; }
.g-rainbow  { --tint:#ECE7DE; --mark:#7C6A8E; }
.g-square   { --tint:#E2EAE9; --mark:#4E7C7D; }
.g-nasa     { --tint:#EAE4EC; --mark:#7B6890; }
.g-triple   { --tint:#E5EAE1; --mark:#5C7853; }
.g-walk     { --tint:#EFE9D9; --mark:#917A39; }
.g-croydon  { --tint:#EFE3DF; --mark:#A8675A; }

@media (prefers-color-scheme: dark) {
    :root {
        --paper:      #1A1815;
        --surface:    #232019;
        --surface-2:  #2C281F;
        --ink:        #F2EEE5;
        --ink-2:      #A8A091;
        --ink-3:      #7C7567;
        --hairline:   #322D24;
        --hairline-2: #3E382D;
        --accent:      #D98A5E;
        --accent-ink:  #E7A37C;
        --accent-soft: #33271F;
        --shadow-rest: 0 1px 2px rgba(0,0,0,.4);
        --shadow-lift: 0 14px 34px -14px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.35);
    }
    .g-alphabet { --tint:#2B2620; --mark:#C79A72; }
    .g-rainbow  { --tint:#272219; --mark:#B3A0C2; }
    .g-square   { --tint:#1F2826; --mark:#7FB1B2; }
    .g-nasa     { --tint:#262030; --mark:#B09FC4; }
    .g-triple   { --tint:#212719; --mark:#92B186; }
    .g-walk     { --tint:#2A2517; --mark:#C7AC6A; }
    .g-croydon  { --tint:#2B201C; --mark:#D29384; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
    font-family: var(--ui);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) {
    a { color: var(--accent); }
    a:hover { color: var(--accent-soft); }
}

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.lp-head {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--hairline);
}
.lp-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.lp-brand { display: flex; align-items: center; gap: 11px; }
.lp-brand .bm {
    width: 34px; height: 34px; border-radius: 10px; background: var(--surface);
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px var(--hairline);
    color: var(--ink);
}
.lp-brand .bm svg { width: 22px; height: 22px; display: block; }
.lp-brand b { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.lp-nav a { font-size: 14.5px; font-weight: 550; color: var(--ink-2); }
.lp-nav a:hover { color: var(--ink); text-decoration: none; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent-soft);
    border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; }
.hero .wrap {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 64px; align-items: center;
}
.eyebrow {
    font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em;
    margin: 0; color: var(--ink); text-wrap: balance;
}
.hero .lead {
    font-size: 20px; line-height: 1.5; color: var(--ink-2);
    margin: 22px 0 0; max-width: 46ch; text-wrap: pretty;
}
.hero .body {
    font-size: 16px; line-height: 1.62; color: var(--ink-2);
    margin: 18px 0 0; max-width: 52ch; text-wrap: pretty;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.store-badge { display: inline-block; height: 48px; flex: 0 0 auto; }
.store-badge img { height: 100%; width: auto; display: block; }
.store-badge .badge-dark { display: none; }
@media (prefers-color-scheme: dark) {
    .store-badge .badge-light { display: none; }
    .store-badge .badge-dark  { display: block; }
}
.store-note { font-size: 14px; color: var(--ink-3); max-width: 24ch; line-height: 1.45; margin: 0; }

/* Device — the phone bezel wrapper. Inner content is a real iOS
   simulator screenshot, so the frame's aspect ratio matches iPhone 15+
   (1206×2622 backing pixels → 9.24:20.1). */
.device {
    justify-self: center;
    width: 330px;
    aspect-ratio: 1206 / 2622;
    border-radius: 46px;
    padding: 11px;
    background: linear-gradient(168deg, #3a352d, #221f1a);
    box-shadow: 0 42px 80px -32px rgba(42,39,34,.55), 0 6px 18px rgba(42,39,34,.14);
    flex: 0 0 auto;
}
@media (prefers-color-scheme: dark) {
    .device { box-shadow: 0 42px 80px -32px rgba(0,0,0,.8), 0 6px 18px rgba(0,0,0,.5); }
}
.device-inner {
    width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
    position: relative; background: var(--paper);
}
.device-shot {
    width: 100%; height: 100%; display: block; object-fit: cover; object-position: top;
}

/* ---------- promise strip ---------- */
.strip { border-block: 1px solid var(--hairline); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .it { padding: 30px 26px; border-left: 1px solid var(--hairline); }
.strip .it:first-child { border-left: 0; padding-left: 0; }
.strip .it h4 { font-size: 15px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.01em; color: var(--ink); }
.strip .it p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ---------- sections ---------- */
.sec { padding: 92px 0; }
.sec-head { max-width: 60ch; margin-bottom: 44px; }
.sec-head h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 0;
    color: var(--ink);
}
.sec-head p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 14px 0 0; text-wrap: pretty; }

.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ex {
    background: var(--surface); border: 1px solid var(--hairline);
    border-radius: 20px; padding: 24px;
    display: flex; flex-direction: column;
    transition: transform .18s cubic-bezier(.3,.8,.4,1), box-shadow .18s, background .18s, border-color .18s;
}
.ex:hover { transform: translateY(-3px); background: var(--paper); border-color: var(--hairline-2); box-shadow: var(--shadow-lift); }
.ex .t {
    width: 54px; height: 54px; border-radius: 16px; background: var(--tint); color: var(--mark);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ex .t svg { width: 31px; height: 31px; }
.ex h3 { font-size: 19px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.01em; color: var(--ink); }
.ex p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; text-wrap: pretty; }
.ex.feature { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 26px; }
.ex.feature .t { margin-bottom: 0; width: 62px; height: 62px; border-radius: 18px; }
.ex.feature .t svg { width: 36px; height: 36px; }
.ex.feature .txt { flex: 1 1 auto; }
.ex.feature h3 { margin-bottom: 6px; }
.ex.feature p { max-width: 62ch; margin-bottom: 0; }
.ex.feature .m { margin-top: 0; padding-top: 0; border-top: 0; white-space: nowrap; }
.ex .m {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline);
    font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- platforms ---------- */
.plat { border-top: 1px solid var(--hairline); background: var(--surface); }
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plat-card {
    background: var(--paper); border: 1px solid var(--hairline); border-radius: 20px;
    padding: 30px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.plat-card .pi { color: var(--accent); }
.plat-card .pi svg { width: 34px; height: 34px; display: block; }
.plat-card h3 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.plat-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: -6px 0 0; }

/* ---------- closing CTA ---------- */
.close-cta { padding: 96px 0; text-align: center; }
.close-cta .bm-lg {
    width: 76px; height: 76px; border-radius: 22px; background: var(--surface);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
    box-shadow: inset 0 0 0 1px var(--hairline);
    color: var(--ink);
}
.close-cta .bm-lg svg { width: 46px; height: 46px; display: block; }
.close-cta h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin: 0;
    color: var(--ink);
}
.close-cta p { font-size: 17px; color: var(--ink-2); margin: 16px auto 0; max-width: 46ch; line-height: 1.55; }
.close-cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.lp-foot { border-top: 1px solid var(--hairline); padding: 30px 0 44px; }
.lp-foot .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-foot .c { font-size: 14px; color: var(--ink-3); }
.lp-foot nav { margin-left: auto; display: flex; gap: 24px; }
.lp-foot nav a { font-size: 14px; font-weight: 550; color: var(--ink-2); }
.lp-foot nav a:hover { color: var(--accent-ink); text-decoration: none; }

/* ---------- content pages (support, privacy) ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 68ch; }
.doc h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(38px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.02em;
    margin: 0 0 20px; color: var(--ink); text-wrap: balance;
}
.doc .lede {
    font-family: var(--serif); font-size: 21px; line-height: 1.45;
    color: var(--ink); margin: 0 0 32px; text-wrap: pretty;
}
.doc h2 {
    font-family: var(--serif); font-weight: 500; font-size: 24px;
    letter-spacing: -.01em; margin: 40px 0 12px; color: var(--ink);
}
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; text-wrap: pretty; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 52px; }
    .hero { padding: 60px 0 56px; }
    .ex-grid { grid-template-columns: repeat(2, 1fr); }
    .strip .wrap { grid-template-columns: repeat(2, 1fr); }
    .strip .it { border-left: 0; padding: 24px 0; border-top: 1px solid var(--hairline); }
    .strip .it:nth-child(-n+2) { border-top: 0; }
    .plat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 36px); }
    .lp-nav a { display: none; }
    .lp-nav .pill { display: inline-flex; }
    .ex-grid, .plat-grid { grid-template-columns: 1fr; }
    .sec { padding: 64px 0; }
    .ex.feature { flex-direction: column; align-items: flex-start; gap: 0; }
    .ex.feature .t { margin-bottom: 18px; }
    .ex.feature .m { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
    .device { width: 292px; height: 560px; }
}
