/* ==========================================================================
   GeoTour Passport — public landing pages (home + privacy)
   Field-guide theme. Token source of truth: docs/design/design-tokens.md
   (oklch, H = 42 Terra). Zero-JS pages: everything here works without script.
   ========================================================================== */

/* —— Tokens ——————————————————————————————————————————————————————— */

:root {
    color-scheme: light dark;

    --bg: oklch(0.965 0.012 75);
    --surface: oklch(0.995 0.005 80);
    --ink: oklch(0.26 0.02 60);
    --muted: oklch(0.52 0.022 60);
    --line: oklch(0.9 0.012 70);
    --chip-bg: oklch(0.945 0.012 72);
    --accent: oklch(0.61 0.15 42);
    --accent-ink: oklch(0.5 0.14 42);
    --accent-soft: oklch(0.94 0.045 42);
    --accent-shadow: oklch(0.61 0.15 42 / 0.45);
    --on-accent: #fff;
    --found: oklch(0.56 0.1 150);
    --found-ink: oklch(0.45 0.11 150);
    --found-soft: oklch(0.94 0.05 150);
    --card-shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 8px 24px -12px rgba(60, 40, 20, 0.13);

    --radius-card: 22px;
    --radius-btn: 16px;
    --radius-chip: 99px;

    --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: oklch(0.185 0.012 65);
        --surface: oklch(0.232 0.014 65);
        --ink: oklch(0.95 0.008 80);
        --muted: oklch(0.68 0.016 75);
        --line: oklch(0.31 0.012 65);
        --chip-bg: oklch(0.285 0.014 65);
        --accent: oklch(0.7 0.14 42);
        --accent-ink: oklch(0.8 0.13 42);
        --accent-soft: oklch(0.33 0.06 42);
        --accent-shadow: oklch(0.5 0.13 42 / 0.6);
        --on-accent: oklch(0.2 0.03 42);
        --found: oklch(0.68 0.12 152);
        --found-ink: oklch(0.82 0.12 152);
        --found-soft: oklch(0.3 0.06 152);
        --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.55);
    }
}

/* —— Fonts (self-hosted, SIL OFL — licenses alongside the files) ————— */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url("../fonts/BricolageGrotesque-eCu67nn.woff2") format('woff2');
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url("../fonts/HankenGrotesk-B-kwqgb.woff2") format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* —— Base ————————————————————————————————————————————————————————— */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    accent-color: var(--accent);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 20px;
}

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 0.75rem;
}

section {
    padding-block: clamp(3rem, 8vw, 5rem);
}

.section-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
}

.section-intro {
    color: var(--muted);
    max-width: 38rem;
}

/* —— Header ——————————————————————————————————————————————————————— */

.site-header {
    padding-block: 1.1rem;
}

.site-header .container,
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-header .container {
    justify-content: space-between;
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand img,
.brand svg {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.lang-toggle {
    display: flex;
    gap: 0.15rem;
    padding: 0.2rem;
    background: var(--chip-bg);
    border-radius: var(--radius-chip);
    font-size: 0.82rem;
    font-weight: 700;
}

.lang-toggle a,
.lang-toggle span {
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-chip);
    text-decoration: none;
}

.lang-toggle span[aria-current] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--card-shadow);
}

.lang-toggle a {
    color: var(--muted);
}

/* —— Hero ————————————————————————————————————————————————————————— */

.hero {
    padding-block: clamp(2rem, 6vw, 4.5rem);
    overflow: hidden;
}

.hero .container {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.3rem);
    font-weight: 800;
}

.hero .lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 34rem;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.hero-contours {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    width: min(680px, 130vw);
    height: auto;
    color: var(--line);
    z-index: 0;
    pointer-events: none;
}

.hero-visual .phone {
    position: relative;
    z-index: 1;
    rotate: 3deg;
}

/* —— Store badges ————————————————————————————————————————————————— */

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block: 1.6rem 0.6rem;
}

/* Placeholder pills until real store listings exist; swap to
   <a><img official-badge></a> at launch (badge art is licence-gated). */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.25rem 0.55rem 1rem;
    background: var(--ink);
    color: var(--bg);
    border-radius: 13px;
    cursor: default;
    opacity: 0.92;
}

.badge svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.badge small {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.15;
}

.badges-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

/* —— Phone frame —————————————————————————————————————————————————— */

.phone {
    width: min(280px, 72vw);
    aspect-ratio: 397 / 864;
    padding: 10px;
    background: oklch(0.22 0.015 60);
    border-radius: 44px;
    box-shadow: var(--card-shadow), inset 0 0 0 2px oklch(0.35 0.02 60);
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
}

/* —— Problem strip ———————————————————————————————————————————————— */

.problems {
    padding-block: 0 clamp(2rem, 5vw, 3rem);
}

.problems ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.problems li {
    background: var(--chip-bg);
    border-radius: var(--radius-btn);
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}

.problems strong {
    display: block;
    font-family: var(--font-display);
}

.problems span {
    color: var(--muted);
    font-size: 0.85rem;
}

/* —— Cards (how-it-works / features) —————————————————————————————— */

.card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.4rem;
    box-shadow: var(--card-shadow);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.step-no {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.9rem;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.9rem;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 12px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

/* —— Screenshots strip ———————————————————————————————————————————— */

.screens-strip {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 20px 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.screens .container {
    /* Let the strip bleed to the viewport edges while headings stay aligned */
    padding-inline: 0;
}

.screens .section-title,
.screens .eyebrow,
.screens .section-intro {
    padding-inline: 20px;
}

.shot {
    margin: 0;
    scroll-snap-align: center;
    flex: none;
    text-align: center;
}

.shot .phone {
    width: min(230px, 62vw);
}

.shot figcaption {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* —— Integrity callout ———————————————————————————————————————————— */

.callout {
    background: var(--accent-soft);
    border-radius: var(--radius-card);
    padding: clamp(1.6rem, 4vw, 2.6rem);
}

.callout .section-title {
    color: var(--accent-ink);
}

.callout ul {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.callout li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    max-width: 36rem;
}

.callout li svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    translate: 0 0.15rem;
    color: var(--found-ink);
}

.codeword {
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 600;
    background: var(--surface);
    color: var(--found-ink);
    border-radius: 8px;
    padding: 0.1em 0.5em;
    white-space: nowrap;
}

/* —— Regions band ————————————————————————————————————————————————— */

.regions .card {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}

.regions .card p {
    max-width: 40rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px var(--accent-shadow);
}

.button:hover {
    color: var(--on-accent);
    filter: brightness(1.05);
}

/* —— Footer ——————————————————————————————————————————————————————— */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2.2rem 2.8rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.site-footer .container {
    display: grid;
    gap: 1.1rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.site-footer a {
    color: inherit;
}

.trademark-note {
    font-size: 0.78rem;
    margin: 0;
}

/* —— Privacy page ————————————————————————————————————————————————— */

.prose {
    max-width: 44rem;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.prose h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.prose h2 {
    font-size: 1.3rem;
    margin-top: 2.2rem;
}

.prose li {
    margin-bottom: 0.35rem;
}

.prose .updated {
    color: var(--muted);
    font-size: 0.9rem;
}

.draft-banner {
    display: block;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: var(--radius-btn);
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    font-size: 0.92rem;
    margin-block: 1.5rem;
}

.not-collected {
    background: var(--found-soft);
    color: var(--found-ink);
    border-radius: var(--radius-btn);
    padding: 1rem 1.2rem;
}

.not-collected p {
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.not-collected ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* —— Larger screens ——————————————————————————————————————————————— */

@media (min-width: 760px) {
    .hero .container {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .problems ul {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid.steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid.features {
        grid-template-columns: repeat(3, 1fr);
    }

    .regions .card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 500px) and (max-width: 759px) {
    .card-grid.features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .card,
    .button {
        transition: translate 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    }

    .card:hover {
        translate: 0 -2px;
    }
}
