/* Landing page shown before the Compose/wasm bundle is mounted. See turistico-landing.js.
   Every color here is one of the app's Material color-scheme roles (composables/theme/Color.kt), so
   the page and the app it launches read as the same product. */

/* The app's own title face: Roboto Flex pinned to the axis values
   `rememberTuristicoTitleFontFamily()` asks for (wdth 151, slnt -4, and the rest), then subset to
   Latin. Pinning is what keeps it at ~15 KB a cut instead of the 1.7 MB variable original — the
   page needs one look, not thirteen axes. Regenerate both cuts together if Theme.kt's settings
   change, or the wordmark here and the wordmark in the app drift apart. */
@font-face {
    font-family: "Turistico Display";
    src: url("turistico-display-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Turistico Display";
    src: url("turistico-display-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --display: "Turistico Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg: #FBF8FF;
    --fg: #1B1B21;
    --muted: #46464F;
    --primary: #515B92;
    --on-primary: #FFFFFF;
    --primary-container: #DEE0FF;
    --on-primary-container: #3A4379;
    --secondary: #5B5D72;
    --tertiary: #625690;
    --surface-card: rgba(255, 255, 255, 0.72);
    --surface-solid: #FFFFFF;
    --surface-sunken: #F5F2FA;
    --border: rgba(118, 118, 128, 0.28);
    --border-strong: rgba(118, 118, 128, 0.45);
    --shadow-sm: 0 1px 2px rgba(27, 27, 33, 0.06), 0 4px 12px rgba(27, 27, 33, 0.05);
    --shadow-lg: 0 8px 24px rgba(27, 27, 33, 0.09), 0 32px 64px rgba(27, 27, 33, 0.12);
    --aurora-alpha: 0.34;
    --header-h: 62px;
    --page: 1160px;
    --gut: clamp(20px, 5vw, 48px);
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121318;
        --fg: #E4E1E9;
        --muted: #C7C5D0;
        --primary: #BAC3FF;
        --on-primary: #222C61;
        --primary-container: #3A4379;
        --on-primary-container: #DEE0FF;
        --secondary: #C3C5DD;
        --tertiary: #CCBDFF;
        --surface-card: rgba(31, 31, 37, 0.72);
        --surface-solid: #1F1F25;
        --surface-sunken: #1B1B21;
        --border: rgba(144, 144, 154, 0.26);
        --border-strong: rgba(144, 144, 154, 0.42);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45), 0 32px 64px rgba(0, 0, 0, 0.5);
        --aurora-alpha: 0.26;
    }
}

/* ── base ─────────────────────────────────────────────────────────────────── */

/* Scoped to the landing page rather than applied globally: this stylesheet is still loaded once
   Compose has taken the page over, and the canvas it manages is none of our business. */
#landing, #landing *, #landing *::before, #landing *::after,
.boot, .boot * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* The pinned header would otherwise cover the top of whatever an anchor link jumps to. */
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--fg);
    /* Deliberately no background. `.aurora` sits at z-index -1, which paints above the root
       background but *below* every in-flow block background — body's included — so painting one
       here would hide the gradients completely. The page's ground colour comes from `html` in
       styles.css, and `.aurora` paints its own base over it. */
    font-family: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: none;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
    transform: none;
}

:where(a, button):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    /* Only two cuts are shipped; a synthesized bold would smear the wide axis. */
    font-synthesis-weight: none;
    letter-spacing: -0.01em;
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.8vw, 4.4rem);
    font-weight: 600;
}

h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--primary), var(--tertiary) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 600;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin: 0;
    text-wrap: pretty;
}

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.88em;
    padding: 1px 5px;
    border-radius: 6px;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px 6px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    color: var(--on-primary-container);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.eyebrow .icon {
    font-size: 1rem;
    color: var(--primary);
}

/* ── aurora ───────────────────────────────────────────────────────────────── */

.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.aurora-blob {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 120vmax;
    height: 120vmax;
    margin: -60vmax;
    border-radius: 50%;
    opacity: var(--aurora-alpha);
    filter: blur(30px);
    animation: aurora-drift 24s linear infinite;
}

/* The three blobs are the same path 120° apart, which is a third of the cycle. */
.aurora-blob-1 { background: radial-gradient(circle, var(--primary) 0%, transparent 62%); }
.aurora-blob-2 { background: radial-gradient(circle, var(--tertiary) 0%, transparent 62%); animation-delay: -8s; }
.aurora-blob-3 { background: radial-gradient(circle, var(--secondary) 0%, transparent 62%); animation-delay: -16s; }

/* Samples x = cos(a) * 35vw, y = sin(2a) * 35vh every 45°, matching AuroraBackground.kt. */
@keyframes aurora-drift {
    0%    { transform: translate(35vw, 0); }
    12.5% { transform: translate(24.7vw, 35vh); }
    25%   { transform: translate(0, 0); }
    37.5% { transform: translate(-24.7vw, -35vh); }
    50%   { transform: translate(-35vw, 0); }
    62.5% { transform: translate(-24.7vw, 35vh); }
    75%   { transform: translate(0, 0); }
    87.5% { transform: translate(24.7vw, -35vh); }
    100%  { transform: translate(35vw, 0); }
}

/* ── buttons ──────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 620;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
        background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn .icon {
    font-size: 1.05em;
    transition: transform 0.2s var(--ease);
}

.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(81, 91, 146, 0.32), 0 16px 32px rgba(81, 91, 146, 0.18);
}

.btn-primary:hover .icon { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    border-color: var(--border-strong);
    color: var(--fg);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--on-primary-container);
    transform: translateY(-2px);
}

/* ── header ───────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    height: var(--header-h);
    background: var(--surface-card);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid transparent;
    /* Parked above the viewport until the hero has been scrolled past. */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.42s var(--ease), opacity 0.3s var(--ease),
        border-color 0.3s var(--ease), visibility 0.42s;
}

.site-header.is-pinned {
    transform: none;
    opacity: 1;
    visibility: visible;
    border-bottom-color: var(--border);
}

.site-header-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: var(--display);
    font-synthesis-weight: none;
    /* 400 is the weight the app draws its own wordmark at, so the two match exactly. */
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: -0.005em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--primary), var(--tertiary));
    color: var(--on-primary);
    box-shadow: var(--shadow-sm);
}

.brand-mark .icon { font-size: 26px; }

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 560;
    text-decoration: none;
    transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav a:hover {
    color: var(--fg);
    background: var(--surface-sunken);
}

.site-header .btn { margin-left: auto; }
.site-nav + .btn { margin-left: 0; }

/* ── layout ───────────────────────────────────────────────────────────────── */

.section {
    max-width: var(--page);
    margin: 0 auto;
    padding: clamp(72px, 11vw, 132px) var(--gut);
}

.section-head {
    max-width: 42rem;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 { margin-bottom: 18px; }

.section-lead {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Leaves the top of the device mockup peeking above the fold as the scroll affordance. */
    min-height: min(84svh, 780px);
    padding-top: 32px;
    text-align: center;
    transform: translateY(var(--hero-shift, 0px));
    opacity: var(--hero-fade, 1);
}

.hero-lead {
    max-width: 36rem;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta .icon {
    font-size: 1.05rem;
    color: var(--primary);
}

/* ── screenshots ──────────────────────────────────────────────────────────── */

/* Every image under .shot is a real capture of the app. Nothing here draws app UI in CSS: a
   fabricated screen would be a promise the app might not keep. */
.shot {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    background: var(--surface-sunken);
    box-shadow: var(--shadow-lg);
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: clamp(40px, 7vw, 80px);
    perspective: 1600px;
}

.shot-hero {
    width: min(440px, 86vw);
    /* Flattens out of its tilt as it rises into view, so the shot reads as being picked up. */
    transform: rotateX(var(--device-rx, 14deg)) translateZ(0);
    transform-origin: 50% 0;
    transition: transform 0.1s linear;
}

/* Illustrations that sit beside the screenshot. Deliberately in the landing page's own card
   style — not the app's — so they read as page furniture rather than as app screens. */
.float-card {
    position: absolute;
    z-index: 2;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-card);
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: var(--shadow-lg);
    font-size: 0.86rem;
    animation: float-y 7s ease-in-out infinite;
}

.float-card-check {
    /* Sits just clear of the screenshot's left edge: overlapping it would cover the trip title,
       and hiding part of a real screenshot behind an illustration is exactly the wrong trade. */
    top: 10%;
    left: max(0px, calc(50% - 430px));
    width: 210px;
}

.float-card-offline {
    display: flex;
    align-items: center;
    gap: 12px;
    top: 58%;
    right: max(0px, calc(50% - 450px));
    width: 228px;
    animation-delay: -3.5s;
}

.float-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 640;
    color: var(--fg);
}

.float-title .icon { color: var(--primary); }

.float-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.float-card li {
    position: relative;
    padding: 4px 0 4px 22px;
}

.float-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
}

.float-card li.is-done {
    color: var(--fg);
    text-decoration: line-through;
    text-decoration-color: var(--border-strong);
}

.float-card li.is-done::before {
    border-color: var(--primary);
    background: var(--primary);
}

.float-card li.is-done::after {
    content: "";
    position: absolute;
    left: 3.5px;
    top: 11.5px;
    width: 6px;
    height: 3px;
    border-left: 1.7px solid var(--on-primary);
    border-bottom: 1.7px solid var(--on-primary);
    transform: rotate(-45deg);
}

.float-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.76rem;
}

.float-badge {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-size: 20px;
}

.float-card-offline b {
    display: block;
    font-weight: 640;
}

.float-card-offline small {
    color: var(--muted);
    font-size: 0.78rem;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── marquee strip ────────────────────────────────────────────────────────── */

.strip {
    padding: 18px 0;
    border-block: 1px solid var(--border);
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.strip-track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.strip:hover .strip-track { animation-play-state: paused; }

.strip-list {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0 20px;
    list-style: none;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 560;
    white-space: nowrap;
}

.strip-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.strip-list .icon {
    font-size: 1.15rem;
    color: var(--primary);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ── cards ────────────────────────────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    padding: 26px 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.card h3 { margin-bottom: 10px; }

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

.card-compact { padding: 24px 22px; }

/* The honest small print — what the browser build genuinely can't do. Styled to be read, not
   buried: a visitor who finds this out after signing up would have been misled. */
.section-note {
    display: flex;
    gap: 12px;
    max-width: 46rem;
    margin: 26px auto 0;
    padding: 16px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-md);
    color: var(--muted);
    font-size: 0.92rem;
}

.section-note .icon {
    margin-top: 3px;
    font-size: 1.15rem;
    color: var(--primary);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-size: 24px;
}

/* ── how it works ─────────────────────────────────────────────────────────── */

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.split-copy h2 { margin-bottom: 34px; }

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.steps li:first-of-type { border-top: 0; padding-top: 0; }

.step-no {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 660;
    font-variant-numeric: tabular-nums;
}

.steps h3 { margin-bottom: 4px; }

.steps p {
    color: var(--muted);
    font-size: 0.97rem;
}

.section-split-reverse .split-copy { order: 2; }
.section-split-reverse .split-visual { order: 1; }
.section-split-reverse .section-lead { margin-top: 18px; }

/* ── privacy ──────────────────────────────────────────────────────────────── */

.section-privacy { padding-block: clamp(24px, 4vw, 48px); }

.privacy-card {
    padding: clamp(32px, 5vw, 60px);
    border: 1px solid var(--border);
    border-radius: clamp(24px, 4vw, 40px);
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--tertiary) 16%, transparent), transparent 55%),
        var(--surface-card);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.privacy-card h2 { margin-bottom: 18px; }
.privacy-card .section-lead { max-width: 46rem; }

.privacy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.privacy-points li {
    display: flex;
    gap: 14px;
}

.privacy-points .icon {
    font-size: 22px;
    color: var(--primary);
    margin-top: 2px;
}

.privacy-points b {
    display: block;
    font-weight: 640;
    margin-bottom: 3px;
}

.privacy-points span {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ── final cta ────────────────────────────────────────────────────────────── */

.section-cta { padding-bottom: clamp(80px, 10vw, 140px); }

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 60px);
    border: 1px solid var(--border);
    border-radius: clamp(24px, 4vw, 40px);
    background:
        radial-gradient(100% 130% at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
        var(--surface-card);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.cta-mark {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: linear-gradient(140deg, var(--primary), var(--tertiary));
    color: var(--on-primary);
    font-size: 46px;
    box-shadow: var(--shadow-sm);
}

.cta-card p {
    max-width: 30rem;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.06rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

/* ── footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-card);
    backdrop-filter: blur(12px);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    max-width: var(--page);
    margin: 0 auto;
    padding: 30px var(--gut);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p { flex: 1; min-width: 240px; }

.footer-link {
    color: var(--on-primary-container);
    font-weight: 580;
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1px;
}

.footer-link:hover { border-bottom-color: var(--primary); }

/* ── scroll reveal ────────────────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Nothing observes the page before the script runs, so without this a failed script load would
   leave the whole page invisible. */
.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

/* ── boot splash ──────────────────────────────────────────────────────────── */

.boot {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: var(--bg);
    opacity: 1;
    transition: opacity 0.4s var(--ease);
}

.boot[hidden] { display: none; }
.boot.is-leaving { opacity: 0; pointer-events: none; }

.boot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.boot-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(140deg, var(--primary), var(--tertiary));
    color: var(--on-primary);
    font-size: 52px;
    box-shadow: var(--shadow-lg);
    animation: boot-pulse 2.2s ease-in-out infinite;
}

.boot-text {
    color: var(--muted);
    font-size: 0.95rem;
}

.boot-bar {
    width: 168px;
    height: 3px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
}

.boot-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    animation: boot-slide 1.3s ease-in-out infinite;
}

@keyframes boot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes boot-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(360%); }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 70;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 20px;
    border-radius: var(--r-md);
    background: var(--fg);
    color: var(--bg);
    font-size: 0.92rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
}

/* ── responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .section-split { grid-template-columns: minmax(0, 1fr); }
    .split-visual, .section-split-reverse .split-visual { order: -1; }
    .section-split-reverse .split-copy { order: 0; }
}

@media (max-width: 900px) {
    .float-card { display: none; }
}

@media (max-width: 780px) {
    .site-nav { display: none; }
    .site-header .btn { margin-left: auto; }
    .shot-hero { --device-rx: 8deg; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero-actions .btn { width: 100%; }
    .hero-meta { flex-direction: column; align-items: center; gap: 8px; }
    .cta-actions .btn { width: 100%; }
}

/* ── motion & app handover ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .aurora-blob,
    .strip-track,
    .float-card,
    .boot-mark,
    .boot-bar span {
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-copy { transform: none !important; opacity: 1 !important; }
    .shot-hero { transform: none !important; }
    .btn:hover, .card:hover { transform: none !important; }
}

/* Set the moment the app is asked for, so the landing stops painting even before the script has
   had a chance to take its DOM out. */
html.app-mode #landing { display: none; }
