/* Field Scout site. Tokens mirror docs/08-redesign.md §2 (light and dark), Nunito like the apps, tabular numbers.
   Colour is used for the sun, the sky and verdict words only; everything else is ink, grey and hairlines. */
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-regular.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-bold.woff2) format("woff2"); font-weight: 650 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --ink: #111111;
  --ink2: #6B6B6B;
  --line: #E5E5E5;
  --fill: #F2F2F2;
  --on-ink: #FFFFFF;
  --bad: #B42318;
  --good: #067647;
  --warn: #B54708;
  --sun: #F5A524;
  --bld: #3A3F47;
  --bld-own: #111111;
  --ground: #E4E4E4;
  --sky-noon: #CFE2F1;
  --sky-low: #F2C58F;
  --sky-night: #1D2230;
  --water: #7FB3D9;
  --surface: #F8F8F8;
  --shadow: rgba(17, 17, 17, .14);
  --radius: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11;
    --ink: #F2F2F2;
    --ink2: #9A9DA3;
    --line: #26282C;
    --fill: #1A1C1F;
    --on-ink: #0E0F11;
    --bad: #F97066;
    --good: #47CD89;
    --warn: #FDB022;
    --bld: #2A2E35;
    --bld-own: #F2F2F2;
    --ground: #17191C;
    --sky-noon: #22344A;
    --sky-low: #4A3424;
    --sky-night: #0A0C12;
    --water: #2F5E86;
    --surface: #141518;
    --shadow: rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Nunito", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  overflow-wrap: break-word;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .g-track:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--ink2); }
.top nav a { text-decoration: none; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); flex: none; }
.lang a { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

/* Buttons (store buttons are "coming soon", not links) */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 20px 6px 16px; border-radius: 12px; text-decoration: none; border: 1px solid var(--line); background: var(--bg); line-height: 1.1; color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; color: var(--ink2); font-weight: 600; }
.btn b { font-size: 16px; font-weight: 700; }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.btn.primary small { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }

/* Hero */
.hero { min-height: calc(100svh - 60px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 22px; max-width: 100%; }
.kicker i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 22%, transparent); }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 22px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(transparent 64%, color-mix(in srgb, var(--sun) 55%, transparent) 64%, color-mix(in srgb, var(--sun) 55%, transparent) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink2); max-width: 32em; line-height: 1.6; margin: 0 0 32px; text-wrap: pretty; }

/* Hero visual: a live sun scene with the app on top of it */
.hero-visual { position: relative; width: 100%; max-width: 540px; justify-self: center; }
.scene { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--sky-noon); border: 1px solid var(--line); box-shadow: 0 40px 90px -50px var(--shadow); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-visual .hero-phone { position: absolute; right: -12px; bottom: -56px; width: 42%; border-radius: 36px; padding: 8px; z-index: 2; }
.hero-visual .hero-phone .screen { border-radius: 29px; }
.chip { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 36px -20px var(--shadow); max-width: 62%; animation: floaty 6s ease-in-out infinite; }
.chip-k { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.chip-v { font-size: 15px; font-weight: 800; line-height: 1.3; }
.chip-a { left: 16px; top: 16px; }
.chip-a .clock { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.chip-b { left: -28px; bottom: 16%; animation-delay: -3s; }
.chip-b .chip-v { color: var(--good); display: flex; align-items: center; gap: 8px; }
.chip-b .chip-v i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid currentColor; flex: none; }
.verdict-sun { color: var(--warn); }
.verdict-none { color: var(--ink); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.scene-cap { position: absolute; z-index: 3; left: 16px; bottom: 14px; margin: 0; font-size: 12px; font-weight: 700; color: var(--ink2); background: color-mix(in srgb, var(--bg) 85%, transparent); padding: 3px 9px; border-radius: 8px; max-width: 52%; }

/* Phone frame around a real screenshot */
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 1206 / 2622; border-radius: 52px; padding: 11px; background: #050506; box-shadow: 0 0 0 1px rgba(127, 127, 127, .28), 0 50px 100px -30px var(--shadow), 0 30px 60px -30px rgba(0, 0, 0, .45); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .screen img.shot { opacity: 0; }
.phone .screen img.shot.on { opacity: 1; }
.phone.inline { display: none; }
.hero-phone .screen img.cyc { opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.hero-phone .screen img.cyc.on { opacity: 1; transform: none; }

/* Entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Sections */
section { padding: 120px 0; position: relative; }
section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.sub { color: var(--ink2); font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; margin: 0; text-wrap: pretty; }
.head { margin-bottom: 56px; }
.head .sub { margin-top: 4px; }
.lead p, .sub p { margin: 0; }
.lead p + p, .sub p + p { margin-top: .7em; }

/* How it works: sticky phone, steps scroll past */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.flow-phone { position: sticky; top: max(84px, calc(50vh - 340px)); align-self: start; justify-self: center; transform: perspective(1400px) rotateY(var(--fry, 0deg)) rotateX(var(--frx, 0deg)); transition: transform .3s linear; }
.flow-phone .shot { opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.flow-phone .shot.on { opacity: 1; transform: none; }
.flow-steps { counter-reset: s; position: relative; }
.flow-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
.flow-step.active { opacity: 1; }
.flow-step .n { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.flow-step .n::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sun); font-size: 13px; }
.flow-step h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; }
.flow-step p { color: var(--ink2); margin: 0; max-width: 30em; font-size: 18px; line-height: 1.65; }
.flow-steps::before, .flow-steps::after { content: ""; position: absolute; left: -32px; top: 12vh; bottom: 12vh; width: 2px; border-radius: 2px; background: var(--line); }
.flow-steps::after { background: var(--sun); transform-origin: top; transform: scaleY(var(--fp, 0)); }

/* Tools: cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.case { position: relative; border-radius: var(--radius-lg); padding: 24px 22px 22px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.case:hover { transform: translateY(-4px); border-color: var(--ink2); }
.case .time { font-size: 13px; color: var(--ink2); font-weight: 700; letter-spacing: .01em; padding-right: 52px; display: block; }
.case h3 { font-size: 19px; letter-spacing: -.015em; margin: 30px 0 8px; font-weight: 800; line-height: 1.25; }
.case p { color: var(--ink2); font-size: 15.5px; line-height: 1.6; margin: 0; }
.glyph { color: var(--ink); }
.glyph .s { color: var(--sun); }
.case .glyph { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; }
.glyph svg { width: 100%; height: 100%; display: block; }

/* Journal: two phones with reminders sliding over them */
.alerts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.alert-shots { position: relative; display: flex; gap: 22px; justify-content: center; }
.alert-shots figure { margin: 0; text-align: center; min-width: 0; }
.alert-shots figure:nth-child(3) { margin-top: 64px; }
.alert-shots .phone { width: min(250px, 40vw); border-radius: 42px; padding: 9px; transform: translateY(var(--py, 0px)); transition: transform .2s linear; }
.alert-shots .phone .screen { border-radius: 34px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--ink2); }
.notes { position: absolute; z-index: 3; left: 50%; top: 56px; width: min(360px, 94%); transform: translateX(-50%); height: 110px; pointer-events: none; }
.note { position: absolute; inset: 0 0 auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: color-mix(in srgb, var(--fill) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 24px 48px -20px var(--shadow); opacity: 0; transform: translateY(-26px) scale(.96); transition: opacity .55s var(--ease), transform .7s var(--ease); text-align: left; }
.note.on { opacity: 1; transform: none; }
.note.out { opacity: 0; transform: translateY(10px) scale(.94); }
.note img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.note div { min-width: 0; }
.note p { margin: 0; }
.note .nt { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink2); }
.note .nt b { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; }
.note .nh { font-size: 14.5px; font-weight: 800; margin-top: 2px; line-height: 1.3; }
.note .nb { font-size: 13.5px; color: var(--ink2); line-height: 1.4; }

/* Gallery (coverflow, values set in scene.js) */
.g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.g-nav { display: flex; gap: 10px; flex: none; }
.g-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; transition: background .2s, transform .2s; }
.g-btn:hover { background: var(--fill); }
.g-btn:active { transform: scale(.94); }
.g-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, calc((100vw - 1120px) / 2 + 24px)) 28px; scrollbar-width: none; cursor: grab; perspective: 1400px; }
.g-track::-webkit-scrollbar { display: none; }
.g-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.g-item { flex: none; margin: 0; scroll-snap-align: center; text-align: center; width: 230px; }
.g-item.cf { opacity: var(--o, 1); transform: rotateY(var(--ry, 0deg)) scale(var(--s, 1)) translateZ(var(--tz, 0px)); }
.g-item .phone { width: 230px; border-radius: 40px; padding: 8px; }
.g-item .phone .screen { border-radius: 33px; }
.g-item img { pointer-events: none; user-select: none; }

/* Honest numbers: four pillars and the data sources */
.sci-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sci-p { position: relative; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.sci-n { font-size: 13px; font-weight: 800; color: var(--ink2); }
.sci-p h3 { font-size: 18px; margin: 14px 0 8px; letter-spacing: -.01em; line-height: 1.25; }
.sci-p p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.sci-p .eg { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--fill); color: var(--ink); }
.sci-refs-box { margin-top: 28px; max-width: 900px; }
.sci-refs-label { font-size: 13px; font-weight: 800; color: var(--ink2); margin: 0 0 6px; }
.sci-refs { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.sci-refs li { margin: 4px 0; }

/* Facts */
.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.facts.in::before { transform: none; }
.fact { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.fact b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 6px; }
.fact span { color: var(--ink2); font-size: 15px; line-height: 1.55; display: block; }

/* Free and Pro (no prices on the site; they are shown in the app) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; }
.plan { position: relative; border-radius: var(--radius-lg); padding: 30px; background: var(--bg); border: 1px solid var(--line); }
.plan.pro { border-color: var(--ink); }
.plan h3 { font-size: 22px; margin: 0 0 4px; font-weight: 800; letter-spacing: -.015em; }
.plan .what { color: var(--ink2); font-size: 15px; margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle, var(--ink2) 0 3px, transparent 3.5px); }
.plan.pro li::before { background: radial-gradient(circle, var(--sun) 0 4px, transparent 4.5px); }
.plan-note { color: var(--ink2); font-size: 14px; margin: 18px 0 0; max-width: 46em; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.pro::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang), transparent 0 70%, var(--sun) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@keyframes spin { to { --ang: 360deg; } }

/* Cards light up where the pointer is. */
.case, .plan, .sci-p { --mx: 50%; --my: 0%; }
.case::before, .plan::before, .sci-p::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--sun) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.case:hover::before, .plan:hover::before, .sci-p:hover::before { opacity: 1; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { color: var(--ink2); margin: -6px 0 22px; max-width: 40em; }
.faq a, .sub a { text-underline-offset: 3px; }

/* Closing: a sun path draws itself over a skyline */
.closing { text-align: center; padding: 200px 0 140px; overflow: hidden; }
.closing h2 { font-size: clamp(30px, 4.2vw, 52px); }
.closing .sub { margin: 0 auto 36px; }
.closing .cta { justify-content: center; }
.closing .wrap { position: relative; }
.arc { position: absolute; left: 50%; top: 24px; width: min(440px, 86vw); transform: translateX(-50%); pointer-events: none; }
.arc .ap { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
.arc .sk { fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.arc .sd { fill: var(--sun); opacity: 0; transition: opacity .8s 2.4s; }
.arc .sh { fill: var(--sun); opacity: 0; transition: opacity .8s 2.4s; }
.arc.in .ap, .arc.in .sk { stroke-dashoffset: 0; }
.arc.in .sd { opacity: 1; }
.arc.in .sh { opacity: .18; }

/* Doc pages (404) */
main.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
main.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
main.doc p { color: var(--ink2); font-size: 16.5px; }
main.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--ink2); font-size: 14px; background: var(--bg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .credits { flex-basis: 100%; font-size: 13px; margin: 4px 0 0; }

/* Reading progress along the bottom of the header. */
header.top::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--sun); transform-origin: left; transform: scaleX(var(--read, 0)); pointer-events: none; }

/* Store buttons: a soft sheen on hover. */
.btn { position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 34px -18px var(--shadow); }

/* Word-by-word heading reveal (spans added by scene.js) */
h2.words .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms); }
h2.words.in .w { opacity: 1; transform: none; filter: none; }

/* Icons draw themselves in when their card arrives. */
.glyph svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .25s; }
.in .glyph svg .draw { stroke-dashoffset: 0; }

@media (pointer: fine) {
  .alert-shots .phone, .g-item .phone { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
  .alert-shots figure:hover .phone { transform: translateY(var(--py, 0px)) perspective(1000px) rotateX(4deg) scale(1.03); }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 104px; }
  .hero-visual { max-width: 520px; }
  .hero-visual .hero-phone { right: 12px; bottom: -64px; width: 38%; }
  .chip-b { left: 12px; bottom: 14px; }
  .scene-cap { display: none; }
  .cases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case { padding: 16px 14px; }
  .case .glyph { top: 14px; right: 14px; width: 28px; height: 28px; }
  .case .time { padding-right: 36px; }
  .case h3 { font-size: 16.5px; margin: 22px 0 4px; }
  .case p { font-size: 14.5px; line-height: 1.5; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sci-grid { grid-template-columns: 1fr 1fr; }
  .alerts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .notes { top: 40px; }
  /* Steps carry their own screenshot on narrow screens. */
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-phone { display: none; }
  .flow-step { min-height: 0; opacity: 1; padding: 0 0 72px; }
  .flow-step .phone.inline { display: block; margin: 32px auto 0; width: min(290px, 74vw); }
  .flow-steps::before, .flow-steps::after { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
  section { padding: 88px 0; }
  .head { margin-bottom: 40px; }
  .scene { border-radius: 22px; }
  .hero-visual .hero-phone { right: 8px; bottom: -56px; width: 40%; border-radius: 26px; padding: 6px; }
  .hero-visual .hero-phone .screen { border-radius: 21px; }
  .chip { padding: 8px 11px; border-radius: 12px; }
  .chip-a { left: 10px; top: 10px; max-width: 58%; }
  .chip-a .clock { font-size: 18px; }
  .chip-v { font-size: 13.5px; }
  .chip-k { font-size: 11.5px; }
  .chip-b { left: 10px; bottom: 10px; max-width: 50%; }
  .cases, .plans, .sci-grid { grid-template-columns: minmax(0, 1fr); }
  .case h3 { margin-top: 24px; font-size: 17px; }
  .fact b { font-size: 18px; }
  .facts { column-gap: 16px; }
  .fact { padding-right: 0; }
  .plan { padding: 24px; }
  .g-head { flex-direction: column; align-items: flex-start; }
  .g-item, .g-item .phone { width: 200px; }
  .alert-shots { gap: 12px; }
  .alert-shots .phone { width: 44vw; border-radius: 30px; padding: 7px; }
  .alert-shots .phone .screen { border-radius: 24px; }
  main.doc { padding: 36px 16px 64px; }
  .closing { padding-top: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .flow-phone .shot, .flow-step, .case, .btn, .btn::after, .facts::before, .note, .alert-shots .phone { transition: none; }
  .flow-phone { transform: none; }
  .chip, .plan.pro::after { animation: none; }
  h2.words .w { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-phone .screen img.cyc { transition: none; }
  .glyph svg .draw, .arc .ap, .arc .sk { transition: none; stroke-dashoffset: 0; }
  .arc .sd, .arc .sh { transition: none; }
  .arc .sd { opacity: 1; } .arc .sh { opacity: .18; }
}
