/* The home page (site/landing.js). Motion uses transform/opacity only, stops for "reduce motion", and the headline is
   visible from the first paint. */
.landing-view main, .landing { display: block; }
.landing > section { max-width: 1120px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero2 { position: relative; display: grid; gap: 34px; align-items: center; padding: clamp(28px, 6vh, 70px) 0 30px; }
@media (min-width: 980px) { .hero2 { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; min-height: calc(100dvh - 80px); } }
.hero2-text { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.hero2 .display { font-size: clamp(48px, 6.2vw, 86px); line-height: 1; max-width: 9.5em; }
.hero2 .display em { display: inline-block; }
.hero2 .lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; margin-top: 28px; }
.big-cta { min-height: 60px; padding: 16px 26px; font-size: 18px; border-radius: 16px; }
.price-line { margin: 0; color: var(--text-2); font-size: 15.5px; font-weight: 550; }
.levels-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.levels-row span { display: inline-flex; align-items: center; gap: 6px; }
.levels-row .shape svg { display: block; }

.aurora { position: absolute; inset: -60px -40px auto -40px; height: 640px; pointer-events: none; overflow: hidden; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; width: 620px; height: 620px; }
.aurora i:nth-child(1) { right: -80px; top: -220px; background: radial-gradient(circle, rgba(176, 138, 62, 0.16), rgba(176, 138, 62, 0) 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: 260px; top: 60px; background: radial-gradient(circle, rgba(11, 122, 138, 0.09), rgba(11, 122, 138, 0) 62%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: -160px; top: -200px; background: radial-gradient(circle, rgba(19, 40, 75, 0.07), rgba(19, 40, 75, 0) 60%); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-70px, 50px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(60px, -40px) scale(0.94); } }

.hero2-visual { position: relative; display: grid; justify-items: center; perspective: 1400px; }
.halo { position: absolute; top: 50%; left: 50%; width: min(560px, 120vw); aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 62, 0.14) 0, rgba(176, 138, 62, 0.05) 42%, transparent 66%); }
.halo::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1.5px solid rgba(176, 138, 62, 0.35); animation: halo 8s ease-out infinite; }
@keyframes halo { 0% { transform: scale(0.9); opacity: 0.9; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.pause { margin-top: 12px; font-size: 14px; min-height: 36px; padding: 4px; color: var(--text-3); text-decoration-color: rgba(93, 99, 112, 0.5); }

/* ---------- phones ---------- */
.phone { position: relative; width: clamp(270px, 28vw, 330px); aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px; background: linear-gradient(160deg, #233457, #0e1626 40%, #0b111d);
  box-shadow: 0 2px 4px rgba(19, 40, 75, 0.12), 0 24px 50px -18px rgba(19, 40, 75, 0.45), 0 60px 120px -40px rgba(19, 40, 75, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #05080f; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #efece4; }
@media (min-width: 980px) and (pointer: fine) { .hero-phone { transform: rotateY(-9deg) rotateX(3deg); } }

.hmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.hmap .st { stroke-dasharray: 520; stroke-dashoffset: 0; }
.hero-phone.replay .hmap .st { animation: draw 1s cubic-bezier(0.5, 0, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.hmap .route { opacity: 0; transition: opacity 0.4s; }
.hero-phone[data-state='2'] .hmap .route, .hero-phone[data-state='3'] .hmap .route { opacity: 1; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }

.radar { position: absolute; left: 50%; top: 57.7%; width: 230px; height: 230px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity 0.6s; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(19, 40, 75, 0.25); animation: ring 3s ease-out infinite; }
.radar .r2 { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(0.25); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(19, 40, 75, 0.22), rgba(19, 40, 75, 0) 70deg); animation: spin 2.6s linear infinite; }
.hero-phone[data-state='3'] .radar { opacity: 0; }
.you { position: absolute; left: 50%; top: 57.7%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--navy); border: 3px solid #fff;
  box-shadow: 0 0 0 7px rgba(19, 40, 75, 0.18), 0 4px 10px rgba(0, 0, 0, 0.25); transition: left 2.2s cubic-bezier(0.45, 0, 0.2, 1), top 2.2s cubic-bezier(0.45, 0, 0.2, 1); z-index: 3; }
.hero-phone[data-state='3'] .you { left: 74.6%; top: 38.6%; }
.pt { position: absolute; z-index: 2; transform: translate(-50%, -50%) scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)); }
.pt .shape svg { display: block; }
.p-safe { left: 65%; top: 30%; }
.p-alert { left: 80%; top: 47%; }
.p-unsafe { left: 33%; top: 66%; }
.p-home { left: 74.6%; top: 38.6%; }
.p-home .mk { width: 34px; height: 34px; }
.hero-phone[data-state='1'] .p-unsafe, .hero-phone[data-state='1'] .p-alert,
.hero-phone[data-state='2'] .pt, .hero-phone[data-state='3'] .pt { transform: translate(-50%, -50%) scale(1); }
.hero-phone[data-state='1'] .p-unsafe { transition-delay: 0.1s; }
.hero-phone[data-state='1'] .p-alert { transition-delay: 0.45s; }
.hcard { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; display: grid; gap: 9px; padding: 14px 15px 15px; border-radius: 26px; background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px -8px rgba(19, 40, 75, 0.35); }
.hcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.hcard-top span { display: inline-flex; align-items: center; gap: 5px; }
.hcard-top svg { width: 14px; height: 14px; color: var(--navy); }
.hmeter i { height: 9px; transition: background 0.5s; }
.hcard .lvl.big { font-size: 17px; padding: 6px 13px 6px 9px; transition: background 0.5s, color 0.5s; }
.hcard .lvl.big svg { width: 21px; height: 21px; }
.hcard .lvl.is-scan { background: var(--navy); color: #fff; }
.htext { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--text); min-height: 2.7em; }
.hero-phone.still .hmap .st { animation: none; }

.small-phone { width: 300px; }
.mini { position: absolute; inset: 0; padding: 58px 16px 16px; display: grid; align-content: start; gap: 10px; background: var(--bg); font-size: 13px; }
.mini-top { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-weight: 600; font-size: 12px; }
.mini-top i { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy) 42%, var(--hair) 42%); }
.mini-q { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--navy); margin: 6px 0 4px; }
.mini-q em { font-style: italic; color: var(--gold); }
.mini-opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-radius: 14px; background: #fff; border: 1.5px solid var(--hair); font-weight: 650; font-size: 14px; }
.mini-opt span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--edge); }
.mini-opt.on { border-color: var(--navy); background: var(--navy-tint); }
.mini-opt.on span { background: var(--navy); border-color: var(--navy); }
.mini-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.mini-city { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--navy); }
.mini-card { display: grid; gap: 8px; padding: 13px; border-radius: 16px; background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow); }
.mini-card .meter-row .of4 { font-size: 10.5px; }
.mini-card .lvl.big { font-size: 15px; padding: 5px 11px 5px 8px; }
.mini-card .lvl.big svg { width: 19px; height: 19px; }
.mini-card b { font-size: 14px; line-height: 1.3; }
.mini-card small { color: var(--text-3); }
.mini-card ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.mini-where { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.mini-where svg { width: 14px; height: 14px; color: var(--navy); }
.mini-big { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }

/* ---------- why ---------- */
.why { display: grid; justify-items: center; text-align: center; gap: 20px; padding: clamp(60px, 10vh, 110px) 0 0; }
.h2.wide { max-width: 18em; }
.h2 em { font-style: italic; color: var(--gold); }
.why .lead { max-width: 40em; }
.compare { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 10px; text-align: left; }
.cmp { padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.cmp-k { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text-2); }
.cmp p { margin: 8px 0 0; color: var(--text-2); }
.cmp.us { background: var(--navy); border-color: var(--navy); box-shadow: 0 20px 40px -20px rgba(19, 40, 75, 0.6); }
.cmp.us .cmp-k { color: #fff; }
.cmp.us .cmp-k svg { width: 20px; height: 20px; color: #e7cf98; }
.cmp.us p { color: rgba(255, 255, 255, 0.88); }
.frame { margin: 8px 0 0; font-size: 19px; color: var(--text-2); }
.frame b { color: var(--navy); }

/* ---------- the real example ---------- */
.example { padding-top: clamp(70px, 11vh, 120px); }
.ex-card { max-width: 860px; margin: 0 auto; padding: 0; overflow: hidden; }
.ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 22px 24px 14px; }
.ex-city { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--navy); }
.ex-head .pill svg { width: 15px; height: 15px; }
.tabs { display: flex; gap: 6px; padding: 0 24px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--surface); font-weight: 600; font-size: 15px; color: var(--text-2); }
.tabs button[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ex-body { padding: 22px 24px 26px; display: grid; gap: 18px; animation: in 0.35s var(--ease) both; }
.ex-overall { display: grid; gap: 12px; }
.ex-overall .headline { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ex-overall p { margin: 0; color: var(--text-2); font-size: 17px; }
.ex-says .label { display: block; margin-bottom: 12px; }
.ex-tools { display: flex; }
.ex-tools .seg svg { width: 15px; height: 15px; vertical-align: -2px; }
.ex-intro { margin: 0; color: var(--text-2); }
.ex-body .plan small svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- how it works ---------- */
.how { padding-top: clamp(70px, 11vh, 120px); }
.scrolly { display: grid; gap: 30px; }
.scrolly-phone { display: none; }
.sstep { display: grid; gap: 10px; justify-items: start; }
.sstep .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.sstep h3 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); color: var(--navy); font-weight: 400; line-height: 1.1; }
.sstep p { margin: 0; font-size: 18px; color: var(--text-2); max-width: 30em; }
.mobile-shot { margin-top: 12px; width: min(300px, 82vw); }
@media (min-width: 980px) {
  .scrolly { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 60px; }
  .scrolly-phone { display: block; position: sticky; top: 12vh; align-self: start; justify-self: center; }
  .sstep { min-height: 66vh; align-content: center; opacity: 0.35; transition: opacity 0.4s; }
  .sstep.on { opacity: 1; }
  .mobile-shot { display: none; }
}
.small-phone .scr { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.small-phone[data-step='1'] .s1, .small-phone[data-step='2'] .s2, .small-phone[data-step='3'] .s3 { opacity: 1; }
.mobile-shot .phone-screen { position: relative; }

/* ---------- the night band ---------- */
.night { position: relative; width: 100vw; max-width: none !important; margin: clamp(70px, 11vh, 120px) calc(50% - 50vw) 0 !important; background: radial-gradient(1200px 600px at 80% 0%, #1f3a66, #13284b 60%, #0f203d); color: #fff; overflow: hidden; }
.night-inner { max-width: 1120px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) 20px; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .night-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.night .label { color: #e7cf98; }
.night .h2 { color: #fff; margin: 12px 0 14px; }
.night .h2 em { color: #e7cf98; }
.night p { margin: 0; font-size: 18px; color: rgba(255, 255, 255, 0.88); max-width: 32em; }
.night-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 17px; font-weight: 550; }
.night-list li { display: flex; align-items: center; gap: 12px; }
.night-list svg { width: 20px; height: 20px; color: #e7cf98; flex: none; }
.globe-wrap { display: grid; place-items: center; }
.globe { position: relative; width: min(520px, 86vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 36% 32%, #3a5d96, #1d3864 46%, #0f203d 78%); box-shadow: inset -30px -40px 80px rgba(0, 0, 0, 0.35), 0 0 90px rgba(231, 207, 152, 0.16); }
.globe::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #e7cf98 0 2px, transparent 3px) 0 0 / 46px 46px; opacity: 0.35;
  -webkit-mask: radial-gradient(circle at 40% 38%, #000 30%, transparent 72%); mask: radial-gradient(circle at 40% 38%, #000 30%, transparent 72%); }
.globe:has(canvas)::before { display: none; }
.globe .maplibregl-ctrl-attrib { background: rgba(15, 32, 61, 0.7) !important; color: rgba(255, 255, 255, 0.6) !important; }
.globe .maplibregl-ctrl-attrib a { color: rgba(255, 255, 255, 0.8) !important; }

/* ---------- where I am now, demo ---------- */
.now-demo { padding-top: clamp(70px, 11vh, 120px); }
.now-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .now-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- who ---------- */
.who { padding-top: clamp(70px, 11vh, 120px); }
.who-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.who-card { padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.who-card svg { width: 28px; height: 28px; color: var(--gold); }
.who-card h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 650; color: var(--navy); }
.who-card p { margin: 0; color: var(--text-2); }

/* ---------- pricing ---------- */
.pricing { padding-top: clamp(70px, 11vh, 120px); }
.pricing .packs { max-width: 860px; margin: 0 auto; }
.pricing .pack { text-decoration: none; color: var(--text); }
.price-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 24px; color: var(--text-2); font-weight: 550; }
.price-facts span { display: inline-flex; align-items: center; gap: 8px; }
.price-facts svg { width: 18px; height: 18px; color: var(--safe); }
.scan-prices { max-width: 860px; margin: 22px auto 0; display: grid; gap: 14px; }
.scan-prices .faint { margin: 0; font-size: 15px; line-height: 1.55; }
.scan-prices .faint b { color: var(--navy); font-weight: 650; }
.scan-grid { display: grid; }
.scan-grid > div { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--hair); }
.scan-grid > div:first-child { border-top: 0; padding-top: 0; color: var(--text-3); font-size: 13px; font-weight: 650; letter-spacing: 0.02em; text-align: center; }
.scan-grid b { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.scan-grid b svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.scan-grid [role='cell'] { display: grid; justify-items: center; font-size: 20px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.scan-grid [role='cell'] small { font-size: 13px; font-weight: 550; color: var(--text-3); }
@media (max-width: 520px) {
  .scan-grid > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scan-grid > div > :first-child { grid-column: 1 / -1; }
  .scan-grid > div:first-child > :first-child { display: none; }
}

/* ---------- trust, coming, faq, final ---------- */
.trust { padding-top: clamp(70px, 11vh, 120px); }
.trust-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 30px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.trust h3 { display: flex; align-items: center; gap: 10px; font-size: 17.5px; font-weight: 650; color: var(--navy); margin-bottom: 6px; }
.trust h3 svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.trust p { margin: 0; color: var(--text-2); font-size: 16px; }
.coming { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: clamp(70px, 11vh, 120px); }
.coming .lead { max-width: 36em; }
.faq { max-width: 820px !important; padding-top: clamp(70px, 11vh, 120px); }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 650; cursor: pointer; min-height: 56px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 22px; height: 22px; color: var(--navy); flex: none; transition: transform 0.3s var(--ease); }
.qa[open] summary svg { transform: rotate(45deg); }
.qa p { margin: 0 0 20px; color: var(--text-2); font-size: 17px; }
.final { display: grid; justify-items: center; text-align: center; gap: 6px; padding: clamp(80px, 13vh, 140px) 0 10px; }
.display.small { font-size: clamp(40px, 6vw, 76px); max-width: 14em; }

/* ---------- scroll reveals (visible by default; only where supported and motion is welcome) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  }
}
