/* Tripgadget website. The page is a pocket multi-tool opening up: a sunset sky, then the tools
   one by one, then night (no internet), then the knife folds back. Colours come from the icon. */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20C0; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20C0; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --peach: #FFD7A8;
  --apricot: #FFAE6E;
  --coral: #F7765F;
  --flame: #F2545B;
  --teal: #0F8A8C;
  --teal-deep: #0B6A70;
  --sun: #FFD23F;
  --paper: #FFFAF4;
  --card: #FFFFFF;
  --ink: #2B1631;
  --muted: #6E5B6F;
  --line: rgba(43, 22, 49, 0.09);
  --night: #120C26;
  --dusk: #3A1A47;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1220;
    --card: #251A2C;
    --ink: #FBEFF0;
    --muted: #C3AEBE;
    --line: rgba(255, 255, 255, 0.09);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(42px, 6.6vw, 92px); }
h2 { font-size: clamp(30px, 4.2vw, 58px); }
h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.12; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 32em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── Navigation: transparent over the sky, glass once the page scrolls ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .4s, box-shadow .4s, color .4s; color: #2B1631; }
.nav.scrolled { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px rgba(242, 84, 91, .35); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 12px 22px;
}
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.button:hover::after { transform: translateX(120%); }
.button-small { padding: 9px 18px; font-size: 15px; }
.lang { text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .02em; padding: 7px 10px; border-radius: 10px; border: 1.5px solid currentColor; opacity: .7; transition: opacity .2s; }
.lang:hover { opacity: 1; }

/* ── Hero: an animated sunset sky ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 90px; color: #2B1631; isolation: isolate; overflow: hidden; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #FFE3BA 0%, #FFC48A 30%, #FF9A6A 58%, #F6676A 82%, #E84D6E 100%);
  background-size: 100% 160%; animation: sky 18s ease-in-out infinite alternate; }
@keyframes sky { to { background-position: 0 100%; } }
.sun { position: absolute; width: 46vmin; height: 46vmin; right: 12%; bottom: -14vmin; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFF6D6 0%, #FFE08A 38%, #FFB25C 62%, rgba(255,140,90,0) 72%);
  filter: blur(2px); animation: rise 9s var(--ease-out) both, breathe 6s ease-in-out 9s infinite alternate; }
.sun::after { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,150,.55), rgba(255,170,110,0) 62%); }
@keyframes rise { from { transform: translateY(30%); opacity: .4; } }
@keyframes breathe { to { transform: scale(1.05); } }
.cloud { position: absolute; height: 60px; border-radius: 60px; background: rgba(255,255,255,.55); filter: blur(14px); animation: drift linear infinite; }
.cloud.c1 { width: 340px; top: 16%; left: -360px; animation-duration: 70s; }
.cloud.c2 { width: 220px; top: 28%; left: -240px; animation-duration: 54s; animation-delay: -20s; opacity: .7; }
.cloud.c3 { width: 420px; top: 64%; left: -440px; animation-duration: 90s; animation-delay: -45s; opacity: .45; }
.cloud.c4 { width: 180px; top: 9%; left: -200px; animation-duration: 46s; animation-delay: -8s; opacity: .6; }
@keyframes drift { to { transform: translateX(calc(100vw + 480px)); } }
.contrail { position: absolute; inset: 0; width: 100%; height: 100%; }
.contrail path { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; }
/* app.js puts the plane on the dashed line every frame, turned along it. */
.flyer { position: absolute; left: 0; top: 0; margin: -13px 0 0 -13px; font-size: 26px; line-height: 1; color: #fff; filter: drop-shadow(0 2px 6px rgba(150,40,40,.35)); will-change: transform; opacity: 0; }
.flyer.on { opacity: 1; }
/* The pointer draws a contrail on the sky; a second plane flies along it and eats it up. */
.cursor-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cursor-plane { position: absolute; left: 0; top: 0; margin: -12px 0 0 -12px; font-size: 24px; line-height: 1; color: #fff; pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; filter: drop-shadow(0 2px 6px rgba(150,40,40,.35)); }
.cursor-plane.on { opacity: 1; }
.grain { position: absolute; inset: 0; opacity: .18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 26px; color: #4A2A44; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #2B1631; color: #FFF4EC; border-radius: 16px; padding: 11px 20px 11px 15px; min-width: 182px; font-weight: 800; font-size: 18px; line-height: 1.05; box-shadow: 0 10px 26px rgba(90, 20, 40, .25); }
.store .i { font-size: 28px; }
.store small { display: block; font-weight: 600; font-size: 11px; opacity: .7; }
.store.light { background: #FFF8F2; color: #2B1631; }
.note { margin-top: 16px; font-size: 14px; color: #5B3A52; }

.hero-stage { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 520px; }
.knife { position: relative; width: min(520px, 86vw); aspect-ratio: 1 / 0.82; transform-style: preserve-3d; }
.knife img { position: absolute; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
/* Tools live in a layer clipped at the handle's bottom edge: folded, they never peek out below it. */
.knife .tools { position: absolute; inset: 0; z-index: 5; }
.knife .handle { z-index: 10; filter: drop-shadow(0 18px 24px rgba(120, 30, 40, .28)); }
.knife .tool { filter: drop-shadow(0 10px 14px rgba(120, 30, 40, .22)); }
#hero-knife { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.knife-shadow { position: absolute; bottom: 30px; width: 56%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,30,50,.28), transparent); animation: shadow 6s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(43,22,49,.45); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: rgba(43,22,49,.6); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── Ribbons of greetings ── */
.ribbons { position: relative; padding: 70px 0; overflow: hidden; background: var(--paper); }
.ribbon { transform: rotate(-3deg); margin: 0 -4vw; padding: 16px 0; background: linear-gradient(90deg, var(--flame), var(--coral) 50%, var(--apricot)); box-shadow: 0 16px 36px rgba(242, 84, 91, .25); }
.ribbon.r2 { transform: rotate(2deg); margin-top: -8px; background: var(--teal-deep); box-shadow: 0 16px 36px rgba(11, 106, 112, .25); }
.ribbon-track { display: flex; width: max-content; gap: 36px; animation: marquee 60s linear infinite; font: 800 clamp(22px, 2.6vw, 34px)/1 var(--display); color: #fff; white-space: nowrap; }
.ribbon-track.reverse { animation-direction: reverse; animation-duration: 70s; color: #E8FBF8; }
.ribbon-track .i { font-size: .7em; color: var(--sun); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── The story: tools one by one ── */
.story { position: relative; background: var(--paper); }
.story-pin { min-height: 100vh; display: grid; align-items: center; padding: 90px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-sub { margin-top: 14px; color: var(--muted); max-width: 26em; }
.story-stage { position: relative; margin-top: 18px; display: grid; place-items: center; }
#story-knife { width: min(460px, 80vw); aspect-ratio: 1 / 0.92; }
.story-dots { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.story-dots li { width: 34px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.story-dots li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--coral), var(--flame)); transform: scaleX(var(--p, 0)); transform-origin: left; }

.panels { position: relative; min-height: 600px; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.panel > p { color: var(--muted); max-width: 30em; }
.panel-tool { display: none; }
.demo { margin-top: 14px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(80, 20, 50, .12); padding: 22px; overflow: hidden; }

/* Flight board */
.board { background: #1B1426; color: #FFE9C9; border: 0; font: 700 15px/1 var(--body); padding: 18px; }
.board-head, .board-row { display: grid; grid-template-columns: .9fr 1.4fr .8fr .6fr 1.2fr; gap: 8px; }
.board-head { font-size: 12px; color: #A9879F; padding: 0 2px 10px; font-weight: 600; }
.board-row { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); }
.board-row span { display: flex; gap: 2px; min-height: 26px; align-items: center; }
.board-row .ok { color: #7CF0C8; }
.board-row .warn { color: var(--sun); }
.flap { display: inline-grid; place-items: center; min-width: .78em; height: 1.55em; padding: 0 1px; border-radius: 4px; background: linear-gradient(180deg, #2C2238 50%, #241B30 50%); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); font-variant-numeric: tabular-nums; }

/* Map */
.map { position: relative; padding: 0; aspect-ratio: 400 / 260; }
.map svg { width: 100%; height: 100%; display: block; }
.map-land { fill: #F6EEE4; }
.map-water { fill: #BFE6EC; }
.map-park { fill: #CFEFCB; }
.map-streets path { stroke: #FFFFFF; stroke-width: 9; fill: none; stroke-linecap: round; }
.map-route { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.map-me .dot { fill: var(--teal); stroke: #fff; stroke-width: 3; }
.map-me .pulse { fill: rgba(15, 138, 140, .25); transform-origin: 150px 140px; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-pin path { fill: var(--flame); stroke: #fff; stroke-width: 2.5; }
.map-pin circle { fill: #fff; }
.map-pin { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.map-card { position: absolute; right: 14px; bottom: 14px; background: #fff; color: #2B1631; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.14); display: grid; gap: 2px; font-size: 14px; opacity: 0; transform: translateY(10px); }
.map-card span { color: #6E5B6F; font-size: 12.5px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; background: #F6F0EA; min-height: 300px; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; color: #2B1631; }
.bubble.me { align-self: flex-end; background: var(--teal-deep); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bubble.card { display: flex; gap: 10px; align-items: center; }
.bubble.card b { display: block; }
.bubble.card small { display: block; color: #6E5B6F; font-size: 12.5px; }
.card-icon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.card-icon.wallet { background: linear-gradient(180deg, var(--apricot), var(--flame)); }
.card-icon.plane { background: linear-gradient(180deg, #2FB3B3, var(--teal-deep)); }
.card-icon.phrase { background: var(--teal); }
.chat [data-step] { opacity: 0; transform: translateY(12px) scale(.98); }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border-radius: 18px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #B79FB0; animation: dot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: .6; } }

/* Money */
.money-big { display: flex; align-items: center; gap: 16px; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.03em; }
.money-big .i { font-size: .6em; color: var(--coral); }
.money-big .to { color: var(--teal); font-variant-numeric: tabular-nums; display: inline-block; min-width: 4.4ch; }
.money-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.money-list li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--coral) 9%, transparent); opacity: 0; transform: translateX(-14px); }
.budget { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--sun), var(--coral)); }

/* Phrase */
.phrase { display: grid; gap: 10px; background: linear-gradient(160deg, #0F8A8C, #0B5F69); color: #fff; border: 0; }
.phrase-src { opacity: .75; font-size: 16px; }
/* The finished phrase, invisible, holds the size; the scramble runs on top of it, so nothing jumps. */
.phrase-dst { position: relative; font: 800 clamp(24px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.02em; }
.phrase-dst .ghost { visibility: hidden; }
.phrase-dst .live { position: absolute; inset: 0; }
.phrase-say { color: var(--sun); font-weight: 700; opacity: 0; }
.wave { display: flex; gap: 5px; align-items: center; height: 34px; margin-top: 6px; }
.wave i { width: 5px; border-radius: 3px; background: rgba(255,255,255,.8); height: 20%; }
.panel.active .wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.15s; }
@keyframes wave { 50% { height: 100%; } }

/* Guide */
.guide-count { display: flex; align-items: baseline; gap: 14px; }
.guide-count b { font: 800 clamp(56px, 6vw, 86px)/1 var(--display); letter-spacing: -.04em; background: linear-gradient(180deg, var(--apricot), var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-count span { color: var(--muted); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 9%, transparent); opacity: 0; transform: scale(.94); }
.facts .i { grid-row: span 2; font-size: 22px; color: var(--teal); }
.facts b { font-size: 16px; } .facts span { font-size: 13px; color: var(--muted); }

/* ── Night: airplane mode ── */
.offline { position: relative; overflow: hidden; color: #F6ECF4; padding: 140px 0 150px;
  background: linear-gradient(180deg, var(--paper) 0%, #E8735F 9%, #8A3A62 22%, var(--dusk) 38%, var(--night) 70%); }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.moon { position: absolute; top: 34%; right: 9%; width: 90px; height: 90px; border-radius: 50%; box-shadow: inset -18px 10px 0 0 #FFF1C9; filter: drop-shadow(0 0 30px rgba(255, 236, 180, .45)); }
.offline-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-top: 120px; }
.offline .lead { margin-top: 22px; color: #D9C3D6; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.checks .i { color: var(--sun); font-size: 21px; margin-top: 2px; }
.night-phone { justify-self: center; width: min(340px, 100%); border-radius: 44px; padding: 14px 12px 18px; background: linear-gradient(160deg, #2A2236, #0C0815); box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.07); }
.np-status { display: flex; justify-content: space-between; padding: 8px 18px 10px; font-size: 13px; font-weight: 700; color: #fff; }
.np-icons { display: flex; gap: 8px; align-items: center; }
.np-airplane { color: var(--sun); opacity: 0; transform: scale(.4); }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 3px; background: #fff; border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; } .bars i:nth-child(4) { height: 12px; }
.np-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #F8F2EC; border-radius: 26px 26px 0 0; color: #2B1631; }
.np-head img { border-radius: 8px; }
.np-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #8A5B2E; background: #FFF0CC; border-radius: 999px; padding: 3px 9px; display: inline-flex; gap: 4px; align-items: center; opacity: 0; }
.np-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 18px; background: #F3ECE6; border-radius: 0 0 26px 26px; min-height: 330px; }
.np-chat .bubble { opacity: 0; transform: translateY(10px); font-size: 14px; }

/* ── Privacy ── */
.privacy { padding: 120px 0; background: var(--paper); }
.privacy-grid { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.privacy p { margin-top: 16px; color: var(--muted); max-width: 40em; }
.vault { width: 150px; height: 150px; border-radius: 42px; display: grid; place-items: center; font-size: 66px; color: #fff; background: linear-gradient(160deg, #2FB3B3, var(--teal-deep)); box-shadow: 0 30px 60px rgba(11,106,112,.35), inset 0 -8px 0 rgba(0,0,0,.12), inset 0 6px 0 rgba(255,255,255,.18); }

/* ── Finale: the knife folds back in the setting sun ── */
.finale { position: relative; overflow: hidden; padding: 120px 0 140px; color: #2B1631; isolation: isolate; text-align: center; }
.finale-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #FFE3BA, #FF9A6A 55%, #E84D6E); }
.sun.low { right: auto; left: 50%; margin-left: -23vmin; bottom: -30vmin; animation: breathe 6s ease-in-out infinite alternate; }
.finale-inner { display: grid; justify-items: center; gap: 18px; }
.knife.small { width: min(300px, 70vw); margin-bottom: 10px; }
.finale p { color: #4A2A44; }

/* Legal pages: one readable column. */
.legal-page .nav { position: sticky; }
.legal { max-width: 760px; padding: 56px 0 90px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 52px); }
.legal h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal b { color: var(--ink); }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal-date { margin: 12px 0 28px; font-size: 14px; }
.footer a { color: inherit; }
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Without JavaScript or GSAP, everything is simply shown. */
.no-motion .chat [data-step], .no-motion .np-chat .bubble, .no-motion .money-list li, .no-motion .facts li, .no-motion .map-pin, .no-motion .map-card, .no-motion .np-badge, .no-motion .phrase-say, .no-motion .np-airplane { opacity: 1; transform: none; }
.no-motion .map-route { stroke-dashoffset: 0; }
.no-motion .bar i { width: 64%; }

/* ── Phones and tablets: no pinned scene, every tool gets its own block ── */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .offline-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .hero-stage { min-height: 0; margin-top: 10px; }
  .story-pin { min-height: 0; padding: 80px 0 20px; }
  .story-left .story-stage, .story-dots { display: none; }
  .panels { min-height: 0; display: grid; gap: 70px; margin-top: 30px; }
  .panel { position: relative; inset: auto; }
  .panel-tool { display: block; width: 62%; max-width: 300px; margin-bottom: 4px; filter: drop-shadow(0 12px 16px rgba(120,30,40,.22)); }
  .offline-grid { padding-top: 60px; }
  .moon { top: 5%; right: 6%; width: 56px; height: 56px; box-shadow: inset -11px 6px 0 0 #FFF1C9; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .lang { margin-left: auto; margin-right: -14px; }
  .board { font-size: 10.5px; padding: 12px; }
  .board-head, .board-row { grid-template-columns: 5.6em 1fr 4.4em 6.9em; column-gap: 8px; }
  .board-head span:nth-child(4), .board-row span:nth-child(4) { display: none; }
  .board-row span { gap: 1px; }
  .flap { min-width: .7em; }
  .facts { grid-template-columns: 1fr; }
  .vault { width: 110px; height: 110px; font-size: 48px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flyer { display: none; }
}
