/* The home page, on top of styles.css: the hero with its passport page, how it works, the trip map, the planner demo,
   features, pricing and questions. Motion lives in home.js (GSAP); this file only sets where things start, and
   only when that script can move them, so the page is complete without JavaScript and with Reduce Motion. */

:root { --track: rgba(24, 35, 63, 0.08); --map-land: rgba(24, 35, 63, 0.13); --stamp-red: #F2554A; --glow: rgba(24, 35, 63, 0.08); }
@media (prefers-color-scheme: dark) {
  :root { --track: rgba(238, 241, 247, 0.09); --map-land: rgba(238, 241, 247, 0.12); --glow: rgba(238, 241, 247, 0.07); }
}

/* Header: sticky on the home page, with a hairline once the page scrolls. */
.home .site-header { position: sticky; top: 0; z-index: 40; background: rgba(237, 240, 245, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: box-shadow 200ms ease; }
.home .site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
@media (prefers-color-scheme: dark) {
  .home .site-header { background: rgba(14, 21, 40, 0.84); }
  .phone { background: #070B16; box-shadow: 0 0 0 1px rgba(238, 241, 247, 0.16), 0 40px 80px rgba(0, 0, 0, 0.6); }
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* Stamps start large before they land; nothing they do may widen the page. */
.home main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Before the intro runs (only with JavaScript and motion allowed), the hero's parts wait out of sight. If the
   script never arrives, they appear anyway after a moment. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro], .js [data-visa], .js [data-trip-stamp], .js [data-hero-stamp] { opacity: 0; animation: lp-fallback 0.5s 3.2s forwards; }
}
@keyframes lp-fallback { to { opacity: 1; } }

/* ------------------------------------------------------------------------------------------------
   Hero */
.lp-hero { position: relative; overflow: hidden; padding-block: 36px 84px; }
.lp-hero-paper { position: absolute; inset: 0; pointer-events: none; }
.hero-stamp { position: absolute; color: var(--ink); opacity: 0.07; }
.hero-stamp svg { display: block; width: 100%; height: 100%; }
.hero-stamp .stamp-bar { fill: transparent; }
.hero-stamp.s1 { width: 220px; height: 220px; left: -60px; top: 330px; transform: rotate(-14deg); }
.hero-stamp.s2 { width: 170px; height: 170px; right: 38%; top: -40px; transform: rotate(11deg); }
.hero-stamp.s3 { width: 240px; height: 240px; right: -70px; bottom: -60px; transform: rotate(-6deg); }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--page); font: 500 12px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.lp-hero h1 { margin-top: 22px; font: 800 clamp(56px, 7.6vw, 104px)/0.9 var(--display); letter-spacing: 0.2px; max-width: 11ch; text-wrap: balance; }
.lp-hero .lede { margin-top: 22px; max-width: 32em; font-size: 19.5px; line-height: 1.55; color: var(--ink-2); }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; margin-top: 30px; }
.lp-cta .soon, .lp-cta .button { margin: 0; }
.lp-cta .soon { min-height: 52px; padding: 0 14px; letter-spacing: 0.8px; }
.lp-proof { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.lp-proof li { display: grid; gap: 2px; max-width: 150px; }
.lp-proof b { font: 800 40px/0.9 var(--display); color: var(--ink); }
.lp-proof span { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }

.lp-hero-visual { position: relative; display: grid; place-items: center; container-type: inline-size; }

/* The hero's passport, open at two pages (heroVisa() in landing.ts): Alex's trips as entry stamps on the left, the
   Status verdict on the right. Sizes are in --vu, one unit of a spread 420 units wide that follows its column, so the
   spread scales whole down to a phone. Positions live here because the page allows no inline styles. */
:root { --guilloche: rgba(24, 35, 63, 0.05); --visa-shade: rgba(24, 35, 63, 0.16); }
@media (prefers-color-scheme: dark) {
  :root { --guilloche: rgba(238, 241, 247, 0.045); --visa-shade: rgba(0, 0, 0, 0.5); }
}
.visa { --vu: calc(min(18px, 100cqw / 26.25) / 16); display: flex; width: calc(var(--vu) * 420); height: calc(var(--vu) * 336); margin: 0; font-size: calc(var(--vu) * 16); filter: drop-shadow(0 calc(var(--vu) * 18) calc(var(--vu) * 26) var(--visa-shade)); }
.visa-page { position: relative; flex: 1; overflow: hidden; border: 1px solid var(--line-strong); background-color: var(--page); background-image: repeating-radial-gradient(circle at 50% 46%, transparent 0 0.55em, var(--guilloche) 0.55em 0.62em); }
.visa-trips { border-radius: 0.9em 0.2em 0.2em 0.9em; box-shadow: inset -1em 0 1.1em -1em var(--visa-shade); }
.visa-status { border-left: 0; border-radius: 0.2em 0.9em 0.9em 0.2em; box-shadow: inset 1em 0 1.1em -1em var(--visa-shade); }
.visa-page > * { position: absolute; margin: 0; }
.visa-head { left: calc(var(--vu) * 13); right: calc(var(--vu) * 13); top: calc(var(--vu) * 11); display: flex; justify-content: space-between; font: 500 0.42em/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.visa-stamp { left: calc(var(--vu) * var(--x)); top: calc(var(--vu) * var(--y)); width: calc(var(--vu) * var(--w)); height: calc(var(--vu) * var(--h)); display: grid; place-content: center; justify-items: center; gap: 0.2em; padding: 0.2em 0.45em; border: 0.11em solid currentColor; color: color-mix(in srgb, var(--ink) 86%, transparent); text-align: center; transform: rotate(var(--r)); }
.visa-stamp b { font: 800 0.56em/1 var(--display); letter-spacing: 0.07em; }
.visa-stamp span { font: 500 0.4em/1 var(--mono); letter-spacing: 0.03em; }
.visa-stamp.oval { border-radius: 50%; }
.visa-stamp.round { border-radius: 50%; outline: 0.06em solid currentColor; outline-offset: -0.34em; }
.visa-stamp.rect { border-radius: 0.3em; outline: 0.06em solid currentColor; outline-offset: 0.16em; }
.visa-stamp.p1 { --x: 12; --y: 34; --w: 98; --h: 56; --r: -6deg; }
.visa-stamp.p2 { --x: 124; --y: 28; --w: 70; --h: 70; --r: 8deg; }
.visa-stamp.p3 { --x: 16; --y: 106; --w: 88; --h: 52; --r: 4deg; }
.visa-stamp.p4 { --x: 108; --y: 108; --w: 96; --h: 56; --r: -5deg; }
.visa-stamp.p5 { --x: 12; --y: 180; --w: 96; --h: 52; --r: -3deg; }
.visa-stamp.p6 { --x: 110; --y: 184; --w: 94; --h: 52; --r: 5deg; }
.visa-stamp.p7 { --x: 22; --y: 250; --w: 70; --h: 70; --r: 7deg; }
.visa-stamp.p8 { --x: 106; --y: 258; --w: 96; --h: 56; --r: -7deg; }
.visa-holder { left: calc(var(--vu) * 16); top: calc(var(--vu) * 30); width: calc(var(--vu) * 90); font: 500 0.45em/1.35 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.visa-seal { left: calc(var(--vu) * 104); top: calc(var(--vu) * 20); width: calc(var(--vu) * 90); height: calc(var(--vu) * 90); }
.visa-seal svg { display: block; width: 100%; height: 100%; transform: rotate(-9deg); }
.visa-seal .stamp-bar { fill: var(--page); }
.visa-seal.ok { color: var(--ok); }
.visa-seal.warn { color: var(--warn); }
.visa-seal.bad { color: var(--bad); }
.visa-sticker { left: calc(var(--vu) * 14); top: calc(var(--vu) * 116); width: calc(var(--vu) * 182); height: calc(var(--vu) * 160); display: grid; align-content: start; gap: 0.32em; padding: 0.65em 0.75em; border: 1px solid var(--line-strong); border-radius: 0.4em; background-color: var(--page); background-image: linear-gradient(135deg, var(--tint, transparent), transparent 70%), repeating-linear-gradient(45deg, var(--guilloche) 0 1px, transparent 1px 0.32em); }
.visa-sticker.ok { --tint: var(--ok-soft); }
.visa-sticker.warn { --tint: var(--warn-soft); }
.visa-sticker.bad { --tint: var(--bad-soft); }
.visa-sticker .k { font: 500 0.4em/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.visa-sticker .big { display: flex; align-items: baseline; gap: 0.25em; }
.visa-sticker .big b { font: 800 2.9em/0.85 var(--display); font-variant-numeric: tabular-nums; }
.visa-sticker .big span { font: 800 0.8em/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.visa-sticker .u { font-size: 0.58em; line-height: 1.3; color: var(--ink-2); }
.visa-meter { display: grid; gap: 0.18em; margin-top: 0.15em; }
.visa-meter p { display: flex; justify-content: space-between; font-size: 0.48em; color: var(--ink-2); }
.visa-meter p b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.visa-meter .ps-bar { height: 0.32em; margin-top: 0; }
.visa-mrz { left: calc(var(--vu) * 14); top: calc(var(--vu) * 290); font: 500 0.47em/1.55 var(--mono); letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }

/* The phone in the screen gallery: the app's Status screen, in the page's light or dark. */
.phone { position: relative; width: 300px; height: 620px; padding: 10px; border-radius: 48px; background: #0B1120; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset, 0 40px 80px rgba(24, 35, 63, 0.28), 0 12px 24px rgba(24, 35, 63, 0.16); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; padding: 8px 14px 0; overflow: hidden; border-radius: 38px; background: var(--paper) var(--paper-pattern) repeat; background-size: 300px 300px; color: var(--ink); }
.ps-statusbar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 12px; font: 600 13px/1 var(--body); }
.ps-island { position: absolute; left: 50%; top: 4px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0B1120; }
.ps-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.ps-signal i { width: 3px; border-radius: 1px; background: var(--ink); }
.ps-signal i:nth-child(1) { height: 5px; } .ps-signal i:nth-child(2) { height: 8px; } .ps-signal i:nth-child(3) { height: 11px; }
.ps-signal b { width: 20px; height: 10px; margin-left: 6px; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: inset -7px 0 0 var(--paper), inset 0 0 0 1px var(--paper); background: var(--ink); }
.ps-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.ps-title { font: 800 32px/1 var(--display); }
.ps-date { font: 500 9.5px/1 var(--mono); letter-spacing: 1px; color: var(--ink-3); }
.ps-card { position: relative; margin-top: 10px; padding: 12px 12px 10px; background: var(--page); border: 1px solid var(--line); border-radius: 14px; }
.ps-goal-name { font-weight: 600; font-size: 13.5px; }
.ps-stamp { position: absolute; top: 6px; right: 6px; width: 62px; height: 62px; }
.ps-stamp svg { display: block; width: 100%; height: 100%; transform: rotate(9deg); }
.ps-stamp.ok { color: var(--ok); } .ps-stamp.warn { color: var(--warn); } .ps-stamp.bad { color: var(--bad); }
.ps-stamp .stamp-bar { fill: var(--page); }
.ps-rosette { position: relative; width: 158px; height: 158px; margin: 2px auto 0; }
.ps-rosette.small { width: 128px; height: 128px; }
.ps-ring { display: block; width: 100%; height: 100%; }
.ring-guide { fill: none; stroke: var(--faint); stroke-width: 0.8; }
.ring-faint { fill: none; stroke: var(--faint); stroke-width: 1.05; stroke-linejoin: round; }
.ring-ink { fill: none; stroke: var(--ink); stroke-width: 1.05; stroke-linejoin: round; stroke-dasharray: 1; }
.ring-today { fill: var(--ok); stroke: var(--page); stroke-width: 1.6; }
.ps-count { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ps-count b { font: 800 44px/0.9 var(--display); letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.ps-count span { font-size: 11px; color: var(--ink-2); }
.ps-rosette.small .ps-count b { font-size: 34px; }
.ps-caption { margin-top: 2px; text-align: center; font: 500 9.5px/1.4 var(--mono); letter-spacing: 1px; color: var(--ink-2); }
.ps-meter { margin-top: 8px; }
.ps-meter p { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.ps-meter b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-bar { display: block; width: 100%; height: 6px; margin-top: 4px; }
.ps-bar-track { fill: var(--track); }
.ps-bar-ink { fill: var(--ink); }
.ps-line { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 10px 12px; }
.ps-line .tag, .mini .tag { padding: 3px 6px 2px; font-size: 11.5px; letter-spacing: 1px; border-width: 1.2px; }
.ps-latest { margin-top: 12px; }
.ps-latest > p { font: 500 9.5px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.ps-latest > div { display: flex; gap: 6px; margin-top: 7px; }
.ps-trip { display: grid; justify-items: center; gap: 1px; padding: 6px 8px; border: 1.5px solid var(--ink); border-radius: 50%; font: 500 7.5px/1.2 var(--mono); letter-spacing: 0.3px; color: var(--ink-2); transform: rotate(-4deg); }
.ps-trip:nth-child(2) { transform: rotate(5deg); border-radius: 6px; }
.ps-trip:nth-child(3) { transform: rotate(-2deg); }
.ps-trip b { font: 800 10px/1 var(--display); letter-spacing: 0.6px; color: var(--ink); }
.ps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: auto -14px 0; padding: 8px 6px 18px; border-top: 1px solid var(--line); background: var(--page); }
.ps-tabs span { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 500; color: var(--ink-3); }
.ps-tabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ps-tabs .on { color: var(--ink); }


/* The strip of rules under the hero. */
.lp-band { border-block: 1px solid var(--line); background: var(--page); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.band-row > p { font: 500 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.band-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.band-row a { display: inline-flex; padding: 7px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.band-row a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------------------------------------
   Sections */
.lp-section { padding-block: 84px; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-section .section-head { margin-bottom: 36px; }
.lp-section .section-head h2 { font-size: clamp(40px, 5.6vw, 64px); }
.lp-section .section-head p:last-child { font-size: 18px; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; background: var(--page); border: 1px solid var(--line); border-radius: 18px; }
.step-number { font: 500 12px/1 var(--mono); letter-spacing: 1.2px; color: var(--ink-3); }
.step h3 { font: 800 28px/1 var(--display); letter-spacing: 0.2px; text-wrap: balance; }
.step > p:not(.step-number) { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mini { position: relative; margin-top: auto; min-height: 190px; padding: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.mini-head { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.mini .field { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.mini .field b { color: var(--ink); font-weight: 600; }
.mini-note { margin-top: 8px; font: 500 10px/1.4 var(--mono); letter-spacing: 0.6px; color: var(--ink-2); }
.trip-stamp { position: absolute; right: 10px; top: 8px; display: grid; justify-items: center; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 50%; outline: 1px solid var(--ink); outline-offset: 2px; transform: rotate(-9deg); color: var(--ink); opacity: 0.9; }
.trip-stamp span { font: 800 15px/1 var(--display); letter-spacing: 1.2px; }
.trip-stamp b { font: 500 9px/1.3 var(--mono); letter-spacing: 0.6px; }
.mini-status { display: grid; place-items: center; }
.mini-status .tag { position: absolute; top: 12px; right: 12px; }
.mini-plan .effect { margin-top: 8px; padding: 9px 10px; background: var(--page); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 4px 10px 10px 4px; }
.mini-plan .effect.warn { border-left-color: var(--warn); }
.mini-plan .effect.bad { border-left-color: var(--bad); }
.mini-plan .effect p:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-plan .effect p:last-child { margin-top: 3px; color: var(--ink-2); font-size: 12.5px; }
.mini-remind { display: grid; gap: 10px; }
.notice { padding: 10px 12px; background: var(--page); border-radius: 12px; box-shadow: 0 6px 18px rgba(24, 35, 63, 0.12); font-size: 12.5px; }
.notice p:first-child { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.notice b { color: var(--ink); }
.doc { position: relative; justify-self: end; width: 60%; padding: 10px 12px 12px; background: var(--page); border: 1px solid var(--line); border-radius: 6px; transform: rotate(2deg); }
.doc p { font-weight: 700; font-size: 12px; }
.doc span { display: block; font: 500 9px/1.3 var(--mono); letter-spacing: 0.4px; color: var(--ink-3); margin-bottom: 6px; }
.doc i { display: block; height: 5px; margin-top: 5px; border-radius: 2px; background: var(--track); }
.doc i:nth-of-type(2) { width: 80%; } .doc i:nth-of-type(3) { width: 90%; } .doc i:nth-of-type(4) { width: 60%; }

/* The trip map */
.lp-map { margin: 0; padding: 20px 22px 18px; background: var(--page); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.map-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-bottom: 8px; }
.map-stats p { display: flex; align-items: baseline; gap: 8px; }
.map-stats b { font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.map-stats span { color: var(--ink-2); font-size: 15px; }
.map-stage { position: relative; aspect-ratio: 1000 / 440; }
.map-land { position: absolute; inset: 0; background: var(--map-land); -webkit-mask: url('/assets/world.svg') center / 100% 100% no-repeat; mask: url('/assets/world.svg') center / 100% 100% no-repeat; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-home-country { fill: var(--ink); fill-opacity: 0.2; }
.map-visited { fill: var(--ink); fill-opacity: 0.32; }
.map-arc { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; }
.map-dot { fill: var(--stamp-red); stroke: var(--page); stroke-width: 2; }
.map-home { fill: var(--ink); stroke: var(--page); stroke-width: 2.5; }
.map-home-pulse { fill: none; stroke: var(--ink); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.6s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.map-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; margin-top: 10px; }
.map-now { grid-column: 1 / -1; font: 500 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); min-height: 17px; }
.map-time { position: relative; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1.5px solid var(--line-strong); }
.map-time i { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.6px; color: var(--ink-3); }
.map-time-fill { position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--ink); transform-origin: 0 50%; }

/* The planner demo */
.lp-planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px; background: var(--page); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.pl-question h3 { margin-top: 10px; font: 800 clamp(36px, 4.4vw, 52px)/0.95 var(--display); letter-spacing: 0.2px; text-wrap: balance; }
.pl-question p:last-child { margin-top: 16px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.pl-question b { color: var(--ink); }
.pl-panel { display: grid; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.pl-days { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pl-days > b { font: 800 72px/0.85 var(--display); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; min-width: 2ch; }
.pl-days > span { color: var(--ink-2); font-size: 16px; }
.pl-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft); transition: background-color 200ms ease; }
.pl-result.bad { background: var(--bad-soft); }
.pl-result p { font-size: 16px; color: var(--ink-2); }
.pl-result b { color: var(--ink); }
.pl-note { font-size: 14px; color: var(--ink-3); }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; align-content: start; gap: 10px; padding: 22px 20px; background: var(--page); border: 1px solid var(--line); border-radius: 18px; transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 240ms cubic-bezier(0.23, 1, 0.32, 1); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--muted); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.feature:hover .icon { transform: rotate(-8deg) scale(1.06); }
.feature h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* The rules, each with its stamp */
.rules { border-top: 1px solid var(--line); }
.rule { position: relative; }
.rule h3 { padding-right: 62px; }
.rule-seal { position: absolute; top: 14px; right: 14px; width: 58px; height: 58px; color: var(--ink); opacity: 0.88; }
.rule-seal svg, .price-seal svg, .final-seal svg { display: block; width: 100%; height: 100%; transform: rotate(-9deg); }
.rule-seal .stamp-bar, .price-seal .stamp-bar { fill: var(--page); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.price { position: relative; display: grid; align-content: start; gap: 12px; padding: 28px 26px; background: var(--page); border: 1px solid var(--line); border-radius: 20px; }
.price.pro { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price h3 { font: 800 30px/1 var(--display); letter-spacing: 0.2px; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-amount b { font: 800 60px/0.9 var(--display); letter-spacing: -0.4px; }
.price-amount span { color: var(--ink-2); font-size: 15.5px; }
.price ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.price li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.price li::before { content: ''; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); box-shadow: inset 0 0 0 1.5px var(--ink); }
.price li::after { content: ''; position: absolute; left: 5.5px; top: 7px; width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-seal { position: absolute; top: -26px; right: 20px; width: 88px; height: 88px; color: var(--ink); }
.fine-print { margin-top: 18px; max-width: 900px; font-size: 13.5px; color: var(--ink-3); }

/* Questions */
.faq-wrap { max-width: 900px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.faq-sign::before, .faq-sign::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: var(--ink); transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item > div { padding: 0 4px 22px; }
.faq-item p { max-width: 46em; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

.home .from-blog { border-top: 1px solid var(--line); padding-block: 84px; }

/* The closing band: the passport cover. */
.lp-final { padding-block: 72px; background: #18233F; color: #F5F7FB; }
@media (prefers-color-scheme: dark) { .lp-final { background: #18233F; border-top: 1px solid var(--line); } }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.lp-final h2 { font: 800 clamp(44px, 6vw, 76px)/0.92 var(--display); letter-spacing: 0.2px; text-wrap: balance; }
.lp-final p { margin-top: 14px; max-width: 34em; font-size: 18px; opacity: 0.86; }
.lp-final .soon { margin-top: 24px; font-size: 12px; opacity: 1; color: #F5F7FB; border-color: rgba(245, 247, 251, 0.45); }
.lp-final .soon .dot { background: #F5F7FB; }
.lp-final .button { background: #F5F7FB; color: #18233F; }
.lp-final .store-badges { margin-top: 24px; }
.final-seal { width: 200px; height: 200px; color: #F5F7FB; opacity: 0.9; }
.final-seal .stamp-bar { fill: #18233F; }
@media (prefers-color-scheme: dark) { .final-seal .stamp-bar { fill: #18233F; } }

/* ------------------------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .steps-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-hero-visual { min-height: 0; padding-block: 12px 20px; }
  .lp-planner { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 22px; }
}
@media (max-width: 720px) {
  .lp-hero { padding-block: 20px 56px; }
  .lp-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .lp-hero .lede { font-size: 18px; }
  .lp-proof { gap: 14px 20px; }
  .lp-proof b { font-size: 34px; }
  .phone { width: 270px; height: 560px; }
  .ps-rosette { width: 138px; height: 138px; }
  .hero-stamp.s2 { display: none; }
  .lp-section, .home .from-blog { padding-block: 60px; }
  .steps-grid, .feature-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-map { padding: 14px 12px 12px; border-radius: 16px; margin-inline: -4px; }
  .map-stats { gap: 6px 20px; }
  .map-stats b { font-size: 30px; }
  .map-arc { stroke-width: 3.4; }
  .pl-days > b { font-size: 60px; }
  .final-grid { grid-template-columns: minmax(0, 1fr); }
  .final-seal { width: 140px; height: 140px; }
  .price-seal { width: 76px; height: 76px; top: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-home-pulse { animation: none; opacity: 0; }
  .feature, .feature .icon { transition: none; }
  .feature:hover, .feature:hover .icon { transform: none; }
}

/* ------------------------------------------------------------------------------------------------
   Motion layer: washes, the word-by-word headline, the stamps landing, the marquee, the gallery, the bento. */

/* Soft ink washes drifting behind the hero, like ink bleeding into security paper. */
.lp-wash { position: absolute; inset: -10% -10% 0; pointer-events: none; filter: blur(60px); opacity: 0.55; }
.wash { position: absolute; display: block; border-radius: 50%; }
.wash.w1 { width: 520px; height: 520px; left: 52%; top: 4%; background: radial-gradient(circle, rgba(24, 35, 63, 0.16), transparent 65%); animation: wash-a 26s ease-in-out infinite alternate; }
.wash.w2 { width: 460px; height: 460px; left: 8%; top: 38%; background: radial-gradient(circle, rgba(24, 35, 63, 0.16), transparent 65%); animation: wash-b 32s ease-in-out infinite alternate; }
.wash.w3 { width: 380px; height: 380px; left: 72%; top: 52%; background: radial-gradient(circle, rgba(242, 85, 74, 0.14), transparent 65%); animation: wash-c 22s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) {
  .lp-wash { opacity: 0.8; }
  .wash.w1 { background: radial-gradient(circle, rgba(120, 150, 225, 0.16), transparent 65%); }
  .wash.w2 { background: radial-gradient(circle, rgba(120, 150, 210, 0.12), transparent 65%); }
}
@keyframes wash-a { to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes wash-b { to { transform: translate(120px, -60px) scale(0.9); } }
@keyframes wash-c { to { transform: translate(-70px, -90px) scale(1.2); } }

/* The headline resolves word by word out of a blur (home.js); hidden only when that can run. */
.lp-hero h1 .w { display: inline-block; will-change: transform, filter; }
@media (prefers-reduced-motion: no-preference) {
  .js .lp-hero h1 .w { opacity: 0; animation: lp-fallback 0.5s 3.2s forwards; }
}

.hero-stamp { animation: stamp-drift 40s linear infinite alternate; }
.hero-stamp.s2 { animation-duration: 52s; }
.hero-stamp.s3 { animation-duration: 46s; animation-direction: alternate-reverse; }
@keyframes stamp-drift { to { translate: 18px -24px; rotate: 6deg; } }

/* The marquee: what the app counts, rolling by. */
.lp-marquee { overflow: hidden; padding-block: 20px; border-block: 1px solid var(--line); background: var(--page); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.lp-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 44px; margin: 0; padding: 0 44px 0 0; list-style: none; }
.marquee-set li { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; color: var(--ink-2); font-size: 17px; }
.marquee-set b { padding: 6px 9px 5px; border: 1.5px solid var(--ink); border-radius: 6px; font: 800 15px/1 var(--display); letter-spacing: 1.3px; color: var(--ink); transform: rotate(-2deg); }
.marquee-set li:nth-child(even) b { transform: rotate(2deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* The gallery: the app's screens, drifting past. */
.lp-gallery { padding-block: 84px 40px; border-top: 1px solid var(--line); overflow: hidden; }
.lp-gallery .section-head { margin-bottom: 8px; }
.gallery-track { display: flex; width: max-content; padding: 30px 0 46px; animation: marquee 70s linear infinite; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-set { display: flex; gap: 34px; padding-right: 34px; }
.shot { display: grid; justify-items: center; gap: 14px; margin: 0; }
.shot figcaption { font: 500 12px/1 var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); }
.mini-phone { zoom: 0.66; transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.shot:hover .mini-phone { transform: translateY(-14px); }
.ps-year { margin-top: 12px; font: 800 22px/1 var(--display); }
.ps-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ps-stampbox { display: grid; justify-items: center; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); color: var(--ink); font: 500 9px/1.2 var(--mono); letter-spacing: 0.4px; }
.ps-stampbox b { font: 800 13px/1 var(--display); letter-spacing: 1px; }
.ps-stampbox.round { border-radius: 50%; transform: rotate(-5deg); }
.ps-stampbox.square { border-radius: 6px; outline: 1px solid var(--ink); outline-offset: 2px; transform: rotate(4deg); }
.ps-stampbox.oval { border-radius: 40% / 50%; transform: rotate(-2deg); }
.ps-map { position: relative; height: 170px; padding: 0; overflow: hidden; }
.ps-map .map-land { inset: 8px; }
.ps-map svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.ps-map .map-arc { stroke-width: 4; stroke-dasharray: none; }
.ps-caption.left { text-align: left; margin-top: 10px; }
.ps-field { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.ps-field b { color: var(--ink); font-weight: 600; }
.ps-effect { border-left: 4px solid var(--ok); }
.ps-effect.warn { border-left-color: var(--warn); }
.ps-effect.bad { border-left-color: var(--bad); }
.ps-effect p:first-child { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; }
.ps-effect p:last-child { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.ps-effect .tag { padding: 3px 6px 2px; font-size: 11px; border-width: 1.2px; }
.ps-pro { display: grid; gap: 4px; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ps-pro b { font: 800 22px/1 var(--display); }
.ps-pro span { font-size: 12px; opacity: 0.85; }
.ps-rows p { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ps-rows p:last-child { border-bottom: 0; }
.ps-rows b { color: var(--ink-2); font-weight: 500; }

/* The bento: features, some with a small demo running inside. The spotlight follows the pointer. */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px 22px; overflow: hidden; background: var(--page); border: 1px solid var(--line); border-radius: 20px; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%); transition: opacity 300ms ease; }
.tile:hover::before { opacity: 1; }
.tile.t-wide { grid-column: span 7; }
.tile.t-half { grid-column: span 5; }
.tile.t-third { grid-column: span 4; }
.bento .tile:nth-last-child(2) { grid-column: span 6; }
.bento .tile:last-child { grid-column: span 6; }
.tile h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tile .icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--muted); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-demo { margin-bottom: auto; padding-bottom: 14px; }
.mono-inline { font: 500 14px/1 var(--mono); letter-spacing: 0.6px; color: var(--ink); white-space: nowrap; }
.demo-seals { display: flex; gap: 14px; flex-wrap: wrap; }
.demo-seal { width: 84px; height: 84px; color: var(--ink); }
.demo-seal svg { display: block; width: 100%; height: 100%; transform: rotate(-8deg); }
.demo-seal:nth-child(even) svg { transform: rotate(7deg); }
.demo-seal .stamp-bar { fill: var(--page); }
.demo-plan { display: grid; gap: 8px; }
.dp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--ink); }
.dp-row .tag { padding: 3px 7px 2px; font-size: 12px; }
.tile.is-live .dp-row { animation: dp-cycle 6s ease-in-out infinite; }
.tile.is-live .dp-row:nth-child(2) { animation-delay: 2s; }
.tile.is-live .dp-row:nth-child(3) { animation-delay: 4s; }
@keyframes dp-cycle { 0%, 100% { transform: none; box-shadow: none; } 10%, 30% { transform: translateX(6px); box-shadow: 0 6px 18px rgba(24, 35, 63, 0.12); } }
.demo-bell { display: flex; align-items: center; gap: 12px; }
.tile.is-live .demo-bell .icon { animation: ring 4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: none; } 74% { transform: rotate(14deg); } 78% { transform: rotate(-12deg); } 82% { transform: rotate(8deg); } 86% { transform: rotate(-5deg); } 90% { transform: rotate(2deg); } }
.db-note { padding: 9px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.db-note b { color: var(--ink); }
.demo-doc { position: relative; width: 70%; padding: 12px 14px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transform: rotate(-2deg); }
.demo-doc p { font: 500 11px/1.3 var(--mono); letter-spacing: 0.5px; color: var(--ink-2); margin-bottom: 6px; }
.demo-doc i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--track); transform-origin: 0 50%; }
.demo-doc i:nth-of-type(2) { width: 82%; } .demo-doc i:nth-of-type(3) { width: 92%; } .demo-doc i:nth-of-type(4) { width: 64%; } .demo-doc i:nth-of-type(5) { width: 76%; }
.tile.is-live .demo-doc i { animation: type-row 5s ease-in-out infinite; }
.tile.is-live .demo-doc i:nth-of-type(2) { animation-delay: 0.3s; } .tile.is-live .demo-doc i:nth-of-type(3) { animation-delay: 0.6s; } .tile.is-live .demo-doc i:nth-of-type(4) { animation-delay: 0.9s; } .tile.is-live .demo-doc i:nth-of-type(5) { animation-delay: 1.2s; }
@keyframes type-row { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.demo-sync { display: flex; align-items: center; gap: 10px; }
.demo-sync .dev { width: 36px; height: 62px; border: 2px solid var(--ink); border-radius: 9px; }
.demo-sync .path { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); }
.demo-sync .path i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: 0; }
.tile.is-live .demo-sync .path i { animation: sync-dot 2.4s linear infinite; }
.tile.is-live .demo-sync .path i:nth-child(2) { animation-delay: 0.8s; } .tile.is-live .demo-sync .path i:nth-child(3) { animation-delay: 1.6s; }
@keyframes sync-dot { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

@media (max-width: 960px) {
  .tile.t-wide, .tile.t-half, .tile.t-third, .bento .tile:nth-last-child(2), .bento .tile:last-child { grid-column: span 12; }
}
@media (max-width: 720px) {
  .lp-wash { filter: blur(40px); }
  .demo-seal { width: 64px; height: 64px; }
  .mini-phone { zoom: 0.58; }
}
@media (prefers-reduced-motion: reduce) {
  .wash, .hero-stamp, .marquee-track, .gallery-track { animation: none; }
  .marquee-track, .gallery-track { width: auto; }
  .lp-marquee, .gallery-track { overflow-x: auto; }
  .marquee-set[aria-hidden], .gallery-set[aria-hidden] { display: none; }
}

.tile:not(:has(.tile-demo)) { min-height: 0; }
/* Five rules: three across, then two. */
@media (min-width: 981px) {
  .rules .rule-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rules .rule-grid .rule { grid-column: span 2; }
  .rules .rule-grid .rule:nth-child(n + 4) { grid-column: span 3; }
}
