/* Landing page. Scroll-driven parts read --p (0 → 1), set by landing.js on [data-scroll] elements. */

:root {
    --bg: #ffffff;
    --bg-warm: #f6f5f4;
    --surface: #ffffff;
    --text: rgba(0, 0, 0, 0.95);
    --text-2: #615d59;
    --text-3: #a39e98;
    --line: rgba(0, 0, 0, 0.1);
    --accent: #0075de;
    --accent-hover: #005bab;
    --accent-soft: #f2f9ff;
    --green: #1aae39;
    --orange: #dd5b00;
    --qr-dark: #191918;
    --shadow: rgba(0, 0, 0, 0.04) 0 4px 18px, rgba(0, 0, 0, 0.027) 0 2px 7.85px, rgba(0, 0, 0, 0.02) 0 0.8px 2.93px, rgba(0, 0, 0, 0.01) 0 0.175px 1.04px;
    --shadow-deep: rgba(0, 0, 0, 0.01) 0 1px 3px, rgba(0, 0, 0, 0.02) 0 3px 7px, rgba(0, 0, 0, 0.02) 0 7px 15px, rgba(0, 0, 0, 0.04) 0 14px 28px, rgba(0, 0, 0, 0.05) 0 23px 52px;
    --radius: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --p: 0;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #191918;
        --bg-warm: #202020;
        --surface: #252525;
        --text: rgba(255, 255, 255, 0.92);
        --text-2: #a8a49f;
        --text-3: #7d7a75;
        --line: rgba(255, 255, 255, 0.12);
        --accent: #3b9eff;
        --accent-hover: #6bb5ff;
        --accent-soft: rgba(59, 158, 255, 0.14);
        --qr-dark: #f3f2f0;
        --shadow: rgba(0, 0, 0, 0.3) 0 4px 18px;
        --shadow-deep: rgba(0, 0, 0, 0.45) 0 20px 50px;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

/* Reading progress */
.progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(var(--page, 0));
}

/* Navigation */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.is-scrolled .nav { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.2px; }
.brand__mark { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 22px; margin-left: 12px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.lang { margin-left: auto; padding: 5px 9px; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; color: var(--text-2); border: 1px solid var(--line); transition: color 0.2s, background 0.2s; }
.lang:hover { color: var(--text); background: rgba(127, 127, 127, 0.1); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 4px; border: 1px solid transparent;
    font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap;
    transition: background 0.2s, transform 0.15s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--small { padding: 6px 14px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn--primary { color: #0b1a2b; } }
.btn--ghost { color: var(--text); background: rgba(127, 127, 127, 0.09); }
.btn--ghost:hover { background: rgba(127, 127, 127, 0.17); }
.btn--ghost span { transition: transform 0.25s var(--ease); }
.btn--ghost:hover span { transform: translateX(3px); }

/* Type */
.pill {
    display: inline-block; padding: 4px 10px; border-radius: 9999px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12px; font-weight: 600; letter-spacing: 0.125px;
}
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.1px; margin-bottom: 12px; }
h1 { font-size: clamp(36px, 4.9vw, 58px); font-weight: 700; line-height: 1.02; letter-spacing: -0.033em; margin: 18px 0 22px; text-wrap: balance; }
.title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.lead--center { margin: 18px auto 0; text-align: center; }
.note { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.note--center { text-align: center; margin-top: 20px; }

/* Entrance on scroll (only when JS runs, so the page stays readable without it) */
.js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* QR code drawing */
.qr { width: 100%; aspect-ratio: 1; color: var(--qr-dark); }
.qr .m { fill: currentColor; transform-box: fill-box; transform-origin: center; }
/* Assembles once, each module flying in from its own offset */
.js .qr--assemble .m {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) scale(0.2) rotate(40deg);
    transition: opacity 0.5s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--t) * 900ms + 250ms);
}
.js .qr--assemble.is-built .m { opacity: 1; transform: none; }
/* Scrubbed by scroll: a module appears once progress passes its threshold */
.js .qr--scrub .m {
    opacity: clamp(0, calc((var(--p) - var(--t) * 0.8) * 14), 1);
    transform: scale(clamp(0.2, calc((var(--p) - var(--t) * 0.8) * 14), 1));
}

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__cta--center { justify-content: center; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 380px); }
.qr-card {
    padding: 26px 26px 18px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-deep);
}
.js .hero__visual .qr-card.is-in { transform: translateY(calc(var(--p) * -30px)) rotate(calc((var(--p) - 0.4) * -5deg)); transition: opacity 0.7s var(--ease); }
.qr-card__caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-3); }

.chip {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 9px 13px; border-radius: 10px; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: 13px; font-weight: 500;
}
/* The chips sit outside the modules and drift away from them on scroll, so the code stays scannable */
.chip--scan { top: -18px; left: -16%; transform: translateY(calc(var(--p) * -40px)); animation: bob 5s ease-in-out infinite; }
.chip--scan strong { color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2.4s ease-out infinite; }
.chip--dest { bottom: -30px; right: -14%; flex-direction: column; align-items: flex-start; gap: 2px; transform: translateY(calc(var(--p) * 50px)); }
.chip__label { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-3); }
.chip__swap { display: grid; height: 1.5em; overflow: hidden; color: var(--accent); }
.chip__swap span { grid-area: 1 / 1; opacity: 0; animation: swap 9s var(--ease) infinite both; }
.chip__swap span:nth-child(2) { animation-delay: 3s; }
.chip__swap span:nth-child(3) { animation-delay: 6s; }

@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes swap {
    0% { opacity: 0; transform: translateY(100%); }
    6%, 30% { opacity: 1; transform: none; }
    36%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* Pinned walkthrough: the section is tall, its content sticks while --p runs 0 → 1 across three steps */
.story { height: 340vh; background: var(--bg-warm); }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story__steps { display: grid; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.step h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; margin: 14px 0 14px; }
.step p { font-size: 18px; color: var(--text-2); max-width: 26em; }
.step__num {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px;
}
[data-step="0"] .step[data-index="0"], [data-step="1"] .step[data-index="1"], [data-step="2"] .step[data-index="2"] { opacity: 1; transform: none; pointer-events: auto; }
[data-step="1"] .step[data-index="0"], [data-step="2"] .step[data-index="0"], [data-step="2"] .step[data-index="1"] { transform: translateY(-22px); }

.story__dots { display: flex; gap: 8px; margin-top: 34px; }
.story__dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); transition: background 0.3s, width 0.4s var(--ease); }
[data-step="0"] .story__dots i:nth-child(1), [data-step="1"] .story__dots i:nth-child(2), [data-step="2"] .story__dots i:nth-child(3) { background: var(--accent); width: 48px; }

.stage { position: relative; display: grid; place-items: center; height: min(62vh, 520px); }
.scene { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; opacity: 0; transform: scale(0.94); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
[data-step="0"] .scene--form, [data-step="1"] .scene--print, [data-step="2"] .scene--change { opacity: 1; transform: none; }

.mock { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-deep); padding: 0 22px 22px; }
.mock__bar { display: flex; align-items: center; gap: 6px; height: 46px; margin: 0 -22px 14px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock__bar span { margin-left: 8px; }
.field { display: block; margin-top: 14px; }
.field > span:first-child { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field__input { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; background: var(--bg); overflow: hidden; white-space: nowrap; }
.field__input b { font-weight: 400; }
.caret { width: 1.5px; height: 18px; margin-left: 1px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock__actions { margin-top: 20px; }
.mock__submit { opacity: 0.45; transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.is-ready .mock__submit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 5px var(--accent-soft); }

.poster { width: min(78%, 300px); padding: 24px 26px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-deep); }
.scene--print .poster { transform: rotate(calc((1 - var(--sp, 0)) * -5deg)) translateY(calc((1 - var(--sp, 0)) * 26px)); }
.poster__title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 16px; }
.poster__hint { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.poster--small { width: 170px; padding: 16px 16px 12px; }

.scene--change { grid-template-columns: auto 1fr; gap: 22px; align-items: center; justify-items: start; max-width: 520px; }
.route { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.route__line { width: 64px; height: 12px; flex: none; color: var(--accent); }
.route__line path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--sp, 0) * 4), 1)); }
.dests { position: relative; display: grid; gap: 8px; flex: 1; min-width: 0; }
.dests li {
    padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
    font-size: 14px; font-weight: 500; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease);
}
[data-dest="0"] .dests li:nth-child(1), [data-dest="1"] .dests li:nth-child(2), [data-dest="2"] .dests li:nth-child(3) {
    color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateX(6px);
}

/* Statistics */
.stats { padding: clamp(72px, 11vw, 140px) 0; text-align: center; }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 60px); text-align: left; }
.tile { grid-column: span 2; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tile--chart { grid-column: span 6; }
.tile--countries, .tile--devices { grid-column: span 3; }
.tile__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tile__value { margin-top: 6px; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile__delta { margin-top: 4px; font-size: 13px; color: var(--green); font-weight: 500; }
.tile--bots .tile__delta { color: var(--text-3); }

.bars { display: flex; align-items: flex-end; gap: clamp(2px, 0.6vw, 6px); height: 170px; margin-top: 18px; }
.bars i {
    flex: 1; border-radius: 3px 3px 0 0; background: var(--accent);
    height: calc(var(--h) * 100%);
    transform-origin: 50% 100%;
    transform: scaleY(clamp(0.02, calc((var(--p) * 2.4 - 0.45 - var(--t) * 0.55) * 3.5), 1));
    opacity: calc(0.45 + var(--h) * 0.55);
}

.meters { margin-top: 14px; display: grid; gap: 12px; }
.meters li { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.meters i { height: 8px; border-radius: 4px; background: var(--accent-soft); position: relative; overflow: hidden; }
.meters i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.25s; }
.is-in .meters i::after { transform: scaleX(var(--v)); }
.meters b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.donut { display: flex; align-items: center; gap: 24px; margin-top: 10px; }
.donut svg { width: 128px; height: 128px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.5; }
.donut__track { stroke: var(--accent-soft); }
.donut__seg { stroke-dasharray: 0 100; stroke-dashoffset: calc(var(--off) * -1); transition: stroke-dasharray 1.2s var(--ease) 0.3s; }
.is-in .donut__seg { stroke-dasharray: calc(var(--len) - 1.2) 100; }
.donut__seg--a { stroke: var(--accent); }
.donut__seg--b { stroke: var(--green); }
.donut__seg--c { stroke: var(--orange); }
.legend { display: grid; gap: 8px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.legend--b::before { background: var(--green) !important; }
.legend--c::before { background: var(--orange) !important; }
.legend b { margin-left: auto; padding-left: 16px; font-variant-numeric: tabular-nums; }

/* Features */
.features { padding: clamp(72px, 11vw, 140px) 0; background: var(--bg-warm); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 290px;
    padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.js .card.is-in { transition: opacity 0.7s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s; transition-delay: 0s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: clamp(24px, 5vw, 64px); }
.card--full > * { flex: 1; min-width: 0; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.25px; line-height: 1.25; }
.card p { margin-top: 8px; color: var(--text-2); max-width: 30em; }

.schedule__track { position: relative; height: 46px; border-radius: 8px; background: var(--bg-warm); border: 1px solid var(--line); }
.schedule__slot { position: absolute; top: 6px; bottom: 6px; display: grid; place-items: center; border-radius: 5px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); white-space: nowrap; overflow: hidden; }
.schedule__slot--a { left: 22%; width: 22%; }
.schedule__slot--b { left: 62%; width: 30%; color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.schedule__now { position: absolute; top: -6px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--text); left: calc(8% + clamp(0, calc(var(--p) * 2.2 - 0.6), 1) * 80%); }
.schedule__now::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.schedule__labels { display: flex; justify-content: space-around; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--text-2); }

.brandqr { position: relative; width: 132px; align-self: center; color: var(--qr-dark); animation: tint 9s ease-in-out infinite; }
.brandqr .qr { color: inherit; }
.brandqr__logo { position: absolute; inset: 37%; border-radius: 22%; background: currentColor; box-shadow: 0 0 0 5px var(--surface); animation: pop 9s var(--ease) infinite; }
@keyframes tint { 0%, 20%, 100% { color: var(--qr-dark); } 33%, 53% { color: var(--accent); } 66%, 86% { color: #7c3aed; } }
@keyframes pop { 0%, 24% { transform: scale(0); } 33%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

.team { display: flex; align-items: center; justify-content: space-between; align-self: stretch; padding: 0 6px; position: relative; }
.team::before { content: ""; position: absolute; left: 50px; right: 50px; top: 50%; border-top: 1.5px dashed var(--line); }
.avatar { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--accent); }
.avatar--b { background: var(--green); }
.team__qr { position: absolute; top: 50%; left: 46px; width: 40px; padding: 5px; margin-top: -20px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: hand 5s var(--ease) infinite; }
@keyframes hand { 0%, 12% { left: 46px; } 46%, 66% { left: calc(100% - 92px); } 100% { left: 46px; } }

.trash { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.trash__item { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; animation: restore 6s var(--ease) infinite; }
.trash__bin { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: var(--text-2); background: var(--bg-warm); border: 1px solid var(--line); }
.trash__bin svg { width: 22px; height: 22px; }
@keyframes restore {
    0%, 15% { transform: none; opacity: 1; }
    35%, 55% { transform: translateX(160%) scale(0.55); opacity: 0.25; }
    75%, 100% { transform: none; opacity: 1; }
}

.alias { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { padding: 6px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
.tag--old { background: var(--bg-warm); color: var(--text-2); border: 1px dashed var(--line); }
.alias__arrow { color: var(--text-3); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.log { display: grid; gap: 8px; }
.log li {
    display: grid; grid-template-columns: 52px auto 1fr; gap: 14px; align-items: baseline;
    padding: 10px 14px; border-radius: 8px; background: var(--bg-warm); font-size: 14px;
    opacity: 0; transform: translateX(-14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(var(--i) * 140ms + 200ms);
}
.is-in .log li, html:not(.js) .log li { opacity: 1; transform: none; }
.log time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.log span { font-weight: 600; }
.log em { font-style: normal; color: var(--text-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Closing call to action */
.cta { padding: clamp(80px, 13vw, 170px) 0; text-align: center; overflow: hidden; }
.cta__in { position: relative; }
.cta .title, .cta .hero__cta { position: relative; }
.qr--ghost {
    position: absolute; left: 50%; top: 50%; width: min(70vw, 460px); color: var(--text);
    opacity: 0.045; pointer-events: none;
    transform: translate(-50%, -50%) rotate(calc(var(--p) * 50deg - 25deg)) scale(calc(0.8 + var(--p) * 0.5));
}

.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--text-2); }
.footer__in { display: flex; justify-content: space-between; }
.footer a:hover { color: var(--text); }

/* Tablet and phone */
@media (max-width: 900px) {
    .nav__links { display: none; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { width: min(74%, 320px); margin-top: 12px; }
    .hero__visual { margin-bottom: 30px; }
    .chip--scan { left: -14%; }
    .chip--dest { right: -12%; }
    .story__grid { grid-template-columns: 1fr; gap: 22px; }
    .story__text { order: 2; }
    .stage { height: 44vh; height: 44svh; }
    .step p { font-size: 16px; }
    .story__dots { margin-top: 20px; }
    .tile, .tile--countries, .tile--devices { grid-column: span 6; }
    .tile--total, .tile--week, .tile--bots { grid-column: span 2; padding: 16px; }
    .tile--total .tile__delta, .tile--week .tile__delta, .tile--bots .tile__delta { display: none; }
    .bento { grid-template-columns: 1fr; }
    .card--wide { grid-column: auto; }
    .card--full { flex-direction: column; align-items: stretch; }
    .card { min-height: 0; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 18px; }
    .tile--total, .tile--week, .tile--bots { grid-column: span 6; }
    .tile--total .tile__delta, .tile--week .tile__delta, .tile--bots .tile__delta { display: block; }
    .bars { height: 120px; }
    .scene--change { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
    .poster--small { width: 120px; padding: 12px 12px 8px; }
    .route { flex-direction: column; }
    .route__line { transform: rotate(90deg); width: 34px; }
    .dests { width: 100%; }
    .log li { grid-template-columns: 46px 1fr; }
    .log em { grid-column: 2; text-align: left; }
}

/* No animation for people who ask for less motion: everything is shown in its final state */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .qr--assemble .m, .js .qr--scrub .m { opacity: 1; transform: none; }
    .chip__swap span:not(:first-child) { display: none; }
    .chip__swap span { opacity: 1; transform: none; }
    .brandqr__logo { transform: scale(1); }
}
