/* Anti-Theft Kit website. Colours are the app's light theme (ui/theme/Theme.kt, muted teal);
   the Motion alarm part uses the app's dark theme (amber on night). Light only, by the owner's choice.
   html.motion is set by main.js when scripts run and the visitor allows motion; without it every part
   is a plain, still page. */

@font-face {
  font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --bg: #F1F5F3;
  --glow: #E6EFEB;
  --card: #FFFFFF;
  --line: #D6E0DC;
  --text: #263B3A;
  --soft: #5F6E6B;
  --muted: #697976;
  --teal: #356D69;
  --teal-2: #608781;
  --teal-3: #8AAEAA;
  --teal-tint: #E4ECE8;
  --red: #BF4149;
  --red-tint: #FBE9E9;
  --orange: #B8501A;
  --amber: #F2B33D;
  --amber-tint: #FBF1DD;
  --night: #0F1317;
  --night-card: #161C22;
  --night-line: #26303A;
  --night-text: #DCE3EA;
  --night-soft: #A9B5C1;
  --night-red: #F0605F;
  --silver-1: #9AA3B0;
  --silver-2: #F4F6F9;
  --foil-mint: #B7E3DC;
  --foil-gold: #F1D9A8;
  --foil-lilac: #D9C8F0;
  --radius: 26px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(38, 59, 58, .06), 0 12px 32px -12px rgba(38, 59, 58, .22);
  --shadow-big: 0 2px 6px rgba(38, 59, 58, .08), 0 40px 80px -30px rgba(38, 59, 58, .38);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.6 "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); font-weight: 800; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

[data-play="soon"] .when-live, [data-play="live"] .when-soon { display: none !important; }

/* ---------- Type ---------- */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink, var(--teal));
}
.label .ico { width: 18px; height: 18px; stroke-width: 2.2; }
h2, .h2-like { font-size: clamp(38px, 6vw, 80px); line-height: .98; font-weight: 900; letter-spacing: -.028em; }
.h2-like { font-size: clamp(30px, 4vw, 52px); }
.intro { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; font-weight: 600; color: var(--soft); max-width: 640px; margin-top: 22px; }
.small { font-size: 15px; color: var(--muted); }

/* Words rise one by one (main.js splits [data-split] headings). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > i { display: inline-block; font-style: normal; }
.motion [data-split] .w > i { transform: translateY(105%) rotate(4deg); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.motion [data-split].is-in .w > i { transform: none; }
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .5s var(--spring), translate .35s var(--ease-out);
}
.btn:active { transform: scale(.94); transition-duration: .05s; }
.btn-solid { background: var(--teal); color: #fff; box-shadow: 0 10px 28px -10px rgba(53, 109, 105, .7); }
.btn-solid:hover { background: #2B5D59; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--text); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal-3); background: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn-play .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
/* Before the app is public: a label, not a button. */
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 22px; border-radius: 999px; background: var(--amber-tint); border: 1px solid #EBCB8B; color: #4A3205; font-size: 16px; font-weight: 800; white-space: nowrap; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25); }
.soon-big { min-height: 60px; font-size: 17px; }

/* ---------- Top bar ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(214, 224, 220, .9);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 30px -14px rgba(38, 59, 58, .3);
  transition: transform .5s var(--ease-out), background .4s, border-color .4s;
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 20px)); }
.nav.is-night { background: rgba(22, 28, 34, .74); border-color: rgba(58, 70, 84, .8); color: var(--night-text); }
.nav.is-night .brand, .nav.is-night .nav-links a { color: var(--night-text); }
.nav.is-night .brand small { color: var(--night-soft); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 16px; line-height: 1.1; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: none; gap: 4px; }
.nav-links a { position: relative; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 800; padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav-links a:hover { background: rgba(53, 109, 105, .08); }
.nav-links a.is-on { background: var(--teal); color: #fff; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.sound {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
}
.nav.is-night .sound { background: var(--night-card); border-color: var(--night-line); color: var(--night-text); }
.sound .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; position: absolute; left: 7px; top: 10px; }
.sound .bars { position: absolute; left: 22px; top: 13px; height: 14px; display: flex; gap: 2px; align-items: center; }
.sound .bars i { width: 2px; height: 3px; border-radius: 2px; background: currentColor; opacity: .5; transition: height .3s; }
.sound[aria-pressed="true"] .bars i { opacity: 1; animation: eq 1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.4s; }
.sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.7s; }
.sound[aria-pressed="false"] .bars { display: none; }
.sound[aria-pressed="false"]::before, .sound[aria-pressed="false"]::after { content: ""; position: absolute; left: 22px; top: 19px; width: 9px; height: 1.8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.sound[aria-pressed="false"]::after { transform: rotate(-45deg); }
@keyframes eq { from { height: 3px; } to { height: 13px; } }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand small { display: none; } .nav .btn-small { padding: 0 14px; } }

/* ---------- Hero: the core ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; }
.motion .hero { height: 210vh; }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.motion .hero-stage { position: sticky; top: 0; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at var(--cx, 68%) var(--cy, 50%), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 70% at var(--cx, 68%) var(--cy, 50%), var(--glow), var(--bg) 75%);
}
.core-back, .core-front { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.core-back { z-index: 1; }
.core-front { z-index: 4; }
.core-front { pointer-events: none; }
.shield-wrap { position: absolute; z-index: 3; left: 0; top: 0; width: 120px; height: 132px; transform-origin: 50% 50%; will-change: transform; display: none; }
.has-core .shield-wrap { display: block; }
.shield { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; filter: drop-shadow(0 18px 24px rgba(38, 59, 58, .25)); transition: transform .5s var(--spring); }
.shield:active { transform: scale(.9); transition-duration: .05s; }
.shield-svg { width: 100%; height: 100%; overflow: visible; }
.shield-glint { transform-box: view-box; animation: glint 3s var(--ease-out) infinite; }
@keyframes glint { 0%, 55% { transform: translateX(-10px) skewX(-18deg); } 90%, 100% { transform: translateX(260px) skewX(-18deg); } }
.shield-tilt { transform-box: view-box; transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(32deg); }
.badges { position: absolute; inset: 0; pointer-events: none; }
.badge {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: none; place-items: center; color: var(--teal); background: #fff; text-decoration: none; pointer-events: auto;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 3.5px var(--silver-1), 0 10px 22px -8px rgba(38, 59, 58, .45);
  will-change: transform, opacity;
}
.has-core .badge { display: grid; }
.badge .ico { width: 24px; height: 24px; stroke-width: 2; }
.badge span {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 4px); white-space: nowrap;
  font-size: 13px; font-weight: 900; color: var(--text); background: #fff; border-radius: 999px; padding: 4px 10px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .35s var(--spring);
}
.badge:hover span, .badge:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.flash { position: absolute; z-index: 6; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--cx, 68%) var(--cy, 50%), #fff 0%, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, 0) 70%); }
.foil-ring {
  position: absolute; z-index: 6; left: var(--cx, 68%); top: var(--cy, 50%); width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax;
  border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.1);
  background: conic-gradient(from 20deg, var(--silver-1), var(--silver-2), var(--foil-mint), var(--silver-2), var(--silver-1), var(--foil-gold), var(--silver-2), var(--silver-1));
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67.5%, #000 69%, transparent 70.5%);
  mask: radial-gradient(circle, transparent 66%, #000 67.5%, #000 69%, transparent 70.5%);
}
.foil-ring.go { animation: ring-out 1.1s var(--ease-out) forwards; }
@keyframes ring-out { 0% { opacity: 1; transform: scale(.12); } 100% { opacity: 0; transform: scale(2.6); } }
.flash.go { animation: flash .9s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.hero-copy {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(26px, 6vh, 64px);
  text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy::before {
  content: ""; position: absolute; inset: -60px -20px 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 75%, rgba(241, 245, 243, .92), rgba(241, 245, 243, 0) 75%);
}
.hero-title { font-size: clamp(40px, 10.6vw, 84px); line-height: .96; font-weight: 900; letter-spacing: -.035em; max-width: 13ch; }
.hero-lead { margin: 18px 0 0; max-width: 34ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--soft); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hero-facts { display: flex; gap: 18px; margin: 18px 0 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-3); }
.hero-hint { position: absolute; z-index: 7; left: 50%; bottom: 14px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; border: 2px solid var(--teal-3); opacity: .8; display: none; }
.hero-hint span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: hint 1.6s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.motion .hero-hint { display: block; }
.motion .hero-copy .eyebrow, .motion .hero-lead, .motion .hero-actions, .motion .hero-facts { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion .hero-copy.is-in .eyebrow, .motion .hero-copy.is-in .hero-lead, .motion .hero-copy.is-in .hero-actions, .motion .hero-copy.is-in .hero-facts { opacity: 1; transform: none; }
.motion .hero-copy.is-in .hero-lead { transition-delay: .25s; }
.motion .hero-copy.is-in .hero-actions { transition-delay: .35s; }
.motion .hero-copy.is-in .hero-facts { transition-delay: .45s; }
@media (min-width: 960px) and (min-aspect-ratio: 6/5) {
  .hero-copy { left: max(var(--gutter), calc(50% - 600px)); right: auto; top: 0; bottom: 0; width: min(46%, 620px); padding: 90px 0 0; justify-content: center; align-items: flex-start; text-align: left; }
  .hero-copy::before { inset: 10% -10% 10% -30%; background: radial-gradient(60% 55% at 40% 50%, rgba(241, 245, 243, .9), rgba(241, 245, 243, 0) 75%); }
  .hero-title { font-size: clamp(56px, 6vw, 96px); max-width: 11ch; }
  .hero-actions { justify-content: flex-start; }
}
@media (max-height: 640px) and (max-width: 959px) { .hero-lead { display: none; } }
@media (max-width: 600px) { .hero-actions .btn-ghost { display: none; } .hero-lead { font-size: 16px; margin-top: 12px; } .hero-actions { margin-top: 18px; } .hero-facts { margin-top: 14px; } }

/* ---------- Guards: foil cards ---------- */
.guards { position: relative; padding: clamp(60px, 10vw, 140px) 0 clamp(80px, 12vw, 160px); }
.statement { font-size: clamp(28px, 4.2vw, 58px); line-height: 1.12; font-weight: 900; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto clamp(48px, 7vw, 96px); text-align: center; color: var(--text); text-wrap: balance; }
.statement strong { color: var(--teal); font-weight: 900; }
.motion .statement .sw { opacity: .14; transition: opacity .3s; }
.motion .statement .sw.on { opacity: 1; }
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); perspective: 1400px; }
.card { position: relative; aspect-ratio: 63 / 88; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hyp: 0; transform-style: preserve-3d; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip, 0deg))); transition: transform .7s var(--spring); }
.card.is-live .card-inner { transition: transform .12s linear; }
.card.is-flipped { --flip: 180deg; }
.card-face {
  position: absolute; inset: 0; border-radius: 22px; padding: 9px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, #DDE2E8, #F7F9FB 22%, #AEB6C1 45%, #F4F6F9 62%, #C2C9D2 80%, #EEF1F5);
  box-shadow: var(--shadow-big);
  display: flex; flex-direction: column;
}
.card-front { background-color: var(--tint); }
.card-front::before { content: ""; position: absolute; inset: 9px; border-radius: 15px; background: var(--tint); }
.card-front > * { position: relative; }
.card-back { transform: rotateY(180deg); }
.card-back::before { content: ""; position: absolute; inset: 9px; border-radius: 15px; background: var(--ink); }
.card-back > * { position: relative; }
.card-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.card-top b { margin-left: auto; font-size: 12px; opacity: .6; }
.card-top .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.card-art { flex: 1; min-height: 0; margin: 12px 14px 0; border-radius: 12px; background: rgba(255, 255, 255, .55); display: grid; place-items: center; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transform: translateZ(0); }
.card h3 { padding: 14px 16px 18px; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.08; font-weight: 900; letter-spacing: -.015em; color: var(--text); padding-right: 64px; }
.card-flip {
  position: absolute !important; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; z-index: 3;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3);
  transition: transform .5s var(--spring);
}
.card-flip:hover { transform: rotate(180deg); }
.card-flip .ico { width: 20px; height: 20px; stroke-width: 2.2; }
.card-back .card-top { color: rgba(255, 255, 255, .85); }
.card-back p { margin: 18px 18px 0; color: #fff; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; font-weight: 700; }
.card-back p + p { margin-top: 12px; font-weight: 600; opacity: .92; }
.card-link { margin: auto 18px 22px; color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; text-decoration: none; align-self: flex-start; }
.card-link .ico { transform: rotate(-90deg); transition: transform .4s var(--spring); }
.card-link:hover .ico { transform: rotate(-90deg) translateY(4px); }
.card .holo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge;
  opacity: calc(.12 + var(--hyp) * .5);
  background:
    repeating-linear-gradient(118deg, rgba(244, 246, 249, .0) 0%, rgba(183, 227, 220, .55) 6%, rgba(217, 200, 240, .5) 12%, rgba(241, 217, 168, .55) 18%, rgba(244, 246, 249, 0) 24%),
    repeating-linear-gradient(62deg, rgba(255, 255, 255, .0) 0 3px, rgba(255, 255, 255, .12) 3px 4px);
  background-size: 260% 260%, 100% 100%;
  background-position: var(--mx) var(--my), 0 0;
  filter: brightness(.9) contrast(1.3) saturate(.9);
  transition: opacity .4s;
}
.card .glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .8) 8%, rgba(255, 255, 255, .25) 24%, rgba(0, 0, 0, .15) 90%);
  opacity: calc(var(--hyp) * .9); transition: opacity .4s;
}
.card-front::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%);
  background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: soft-light;
  animation: card-glint 6s var(--ease-out) infinite; animation-delay: var(--delay, 0s);
}
@keyframes card-glint { 0%, 70% { background-position: 120% 0; } 92%, 100% { background-position: -40% 0; } }
.motion .card { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, 120px), 0) rotate(var(--dr, 0deg)) scale(.7); transition: opacity .5s, transform 1.1s var(--spring); }
.motion .deck.is-dealt .card { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .deck {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 24px var(--gutter) 40px;
    margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; perspective: none;
  }
  .deck::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(76vw, 340px); scroll-snap-align: center; }
  .card h3 { font-size: 24px; }
}

/* ---------- Feature sections ---------- */
.feature { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.feature-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Snatch: scroll story */
.story { position: relative; }
.motion .story { height: 330vh; }
.story-stage { padding: 24px 0; }
.motion .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 76px 0 20px; }
.story-grid { display: grid; gap: 24px; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.story-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: opacity .5s, transform .6s var(--spring), border-color .4s, box-shadow .4s; }
.story-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); font-weight: 900; transition: background .3s, color .3s; }
.story-steps p { margin: 4px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; font-weight: 700; }
.motion .story-steps li { opacity: .38; transform: scale(.97); }
.motion .story-steps li.is-on { opacity: 1; transform: none; border-color: var(--teal-3); box-shadow: var(--shadow); }
.story-steps li.is-on b { background: var(--teal); color: #fff; }
.story-steps li.is-alert b { background: var(--red); }
.story-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #DCE5E2; box-shadow: var(--shadow-big); isolation: isolate; }
.story-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.story-zoom img { width: 100%; height: 100%; object-fit: cover; }
.lockscreen {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; background: radial-gradient(120% 90% at 50% 20%, #24403E, #0F1317 70%);
}
.motion .lockscreen { display: flex; opacity: 0; }
.ls-time { font-size: clamp(54px, 9vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.ls-date { font-size: 16px; font-weight: 700; opacity: .8; margin-bottom: 18px; }
.ls-lock { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35); }
.ls-lock .ico { width: 36px; height: 36px; stroke-width: 1.8; }
.ls-text { font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin-top: 8px; }
.ls-lock { position: relative; }
.ls-pulse { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--night-red); opacity: 0; }
.lockscreen.slam .ls-lock { animation: slam .6s var(--spring); }
.lockscreen.slam .ls-pulse { animation: pulse-out 1.2s var(--ease-out) .1s 2; }
@keyframes slam { 0% { transform: scale(2.2); opacity: 0; } 40% { transform: scale(.86); opacity: 1; } 100% { transform: none; } }
@keyframes pulse-out { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
.trace {
  position: absolute; left: 14px; right: 14px; bottom: 14px; max-width: 360px; padding: 10px 14px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  display: none;
}
.motion .trace { display: block; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--spring); }
.motion .trace.is-on { opacity: 1; transform: none; }
.trace-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trace-val { color: var(--teal); }
.trace-val.hot { color: var(--red); }
.trace svg, .toy-trace svg { width: 100%; height: 56px; display: block; overflow: visible; }
.trace-limit { stroke: var(--teal-2); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.trace-line { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hot .trace-line, .trace-line.hot { stroke: var(--red); }
.story-tag {
  position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); box-shadow: var(--shadow);
}
.motion .story-tag { display: inline-flex; }
.story-tag .dot, .toy-status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.story-tag.is-locked { color: var(--red); }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
}
@media (max-width: 899px) {
  .motion .story-grid { grid-template-rows: auto auto; }
  .motion .story-view { order: -1; }
  .motion .story-steps { position: relative; min-height: 150px; }
  .motion .story-steps li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(12px); pointer-events: none; }
  .motion .story-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .story-frame { aspect-ratio: 4 / 3.4; }
}

/* Snatch: the phone to throw */
.toy-wrap { display: grid; gap: 28px; margin-top: clamp(56px, 8vw, 110px); align-items: center; }
.toy-copy h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; }
.toy-copy > p { color: var(--soft); font-weight: 600; }
.toy-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.toy-box { position: relative; height: clamp(400px, 60vh, 560px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; }
.toy-grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line) 1.2px, transparent 1.4px); background-size: 22px 22px; opacity: .8; }
.toy-phone { position: absolute; left: 0; top: 0; width: 112px; height: 224px; border-radius: 22px; background: #11171C; padding: 6px; box-shadow: 0 18px 30px -16px rgba(15, 19, 23, .6); cursor: grab; touch-action: none; will-change: transform; }
.toy-phone:active { cursor: grabbing; }
.tp-screen { position: relative; width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: linear-gradient(160deg, #E6EFEB, #C9DAD5); }
.tp-home { position: absolute; inset: 0; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tp-time { font-size: 22px; font-weight: 900; color: var(--text); }
.tp-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tp-apps i { width: 17px; height: 17px; border-radius: 6px; background: var(--teal-3); }
.tp-apps i:nth-child(3n) { background: var(--amber); }
.tp-apps i:nth-child(4n+1) { background: var(--teal); }
.tp-locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: radial-gradient(120% 90% at 50% 20%, #24403E, #0F1317 70%); opacity: 0; transform: scale(1.3); transition: opacity .2s, transform .45s var(--spring); }
.tp-locked .ico { width: 34px; height: 34px; }
.tp-locked span { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.toy-box.is-locked .tp-locked { opacity: 1; transform: none; }
.toy-trace { position: absolute; left: 16px; right: 16px; top: 44px; pointer-events: none; max-width: 420px; }
.toy-status { position: absolute; left: 16px; top: 14px; margin: 0; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.toy-box.is-locked .toy-status { color: var(--red); }
.toy-box.is-locked { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (min-width: 900px) { .toy-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; } }

/* Segmented control, like the app's TwSegments with a gliding pill */
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 9px 22px; font-weight: 800; font-size: 15px; color: var(--soft); border-radius: 999px; transition: color .3s; }
.seg button[aria-checked="true"] { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--text); transform: translateX(calc(var(--k, 1) * 100%)); transition: transform .45s var(--spring); }

/* Intruder: PIN phone and the desk */
.pin-grid { display: grid; gap: 28px; align-items: center; }
.pin-phone {
  position: relative; width: min(320px, 66vw); aspect-ratio: 9 / 18.5; margin: 0 auto; padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #2A333B, #0D1115); box-shadow: var(--shadow-big), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.pp-camera { position: absolute; z-index: 3; left: 50%; top: 24px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05070A; box-shadow: inset 0 0 0 2px #1E262D; transition: box-shadow .2s, background .2s; }
.pin-phone.is-snap .pp-camera { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 0 30px 10px rgba(255, 255, 255, .8); }
.pp-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 62px 20px 26px; color: #fff; background: radial-gradient(110% 70% at 50% 0%, #2F5652, #0F1317 72%); }
.pp-time { font-size: 50px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.pp-hint { margin: 16px 0 10px; font-size: 15px; font-weight: 700; opacity: .85; min-height: 1.5em; transition: color .2s; }
.pp-hint.bad { color: #FFB3B5; opacity: 1; }
.pp-dots { display: flex; gap: 14px; height: 14px; margin-bottom: auto; }
.pp-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); transition: background .15s, transform .3s var(--spring); }
.pp-dots i.on { background: #fff; transform: scale(1.15); }
.pin-phone.is-wrong .pp-dots { animation: shake .45s; }
.pin-phone.is-wrong .pp-dots i { border-color: var(--night-red); background: var(--night-red); }
.pp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; width: 100%; max-width: 250px; }
.pp-keys button {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 26px; font-weight: 600; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background .25s, transform .4s var(--spring);
}
.pp-keys button small { font-size: 8.5px; font-weight: 800; letter-spacing: .14em; opacity: .6; margin-top: 3px; }
.pp-keys button:hover { background: rgba(255, 255, 255, .18); }
.pp-keys button:active, .pp-keys button.down { background: rgba(255, 255, 255, .36); transform: scale(.9); transition-duration: .05s; }
.pp-flash { position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; }
.pin-phone.is-snap .pp-flash { animation: snap .55s ease-out; }
@keyframes snap { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
.desk {
  position: relative; min-height: clamp(420px, 60vh, 540px); border-radius: var(--radius); overflow: hidden; touch-action: pan-y;
  background: radial-gradient(circle, rgba(214, 224, 220, .9) 1.2px, transparent 1.4px) 0 0 / 22px 22px, linear-gradient(160deg, #FFFFFF, #F4F8F6);
  border: 1px solid var(--line); box-shadow: inset 0 2px 30px rgba(38, 59, 58, .05);
}
.desk-empty { position: absolute; left: 50%; top: 50%; width: min(360px, 80%); transform: translate(-50%, -50%); text-align: center; color: var(--muted); font-weight: 600; transition: opacity .4s; }
.desk-empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }
.desk.has-photos .desk-empty { opacity: 0; }
.polaroid {
  position: absolute; left: 0; top: 0; width: 176px; padding: 10px 10px 0; background: #fff; border-radius: 6px; cursor: grab; touch-action: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 26px -12px rgba(15, 19, 23, .45); will-change: transform; user-select: none; -webkit-user-select: none;
}
.polaroid:active { cursor: grabbing; }
.polaroid .ph { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: linear-gradient(160deg, #CFDCD8, #9FB5B0); }
.polaroid .ph img { position: absolute; inset: 6% 6% 0; width: 88%; height: 94%; object-fit: contain; object-position: bottom; filter: saturate(0) brightness(1.6) blur(3px); transition: filter 1.6s ease-out; -webkit-user-drag: none; }
.polaroid.is-dev .ph img { filter: none; }
.polaroid .ph::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .9; transition: opacity 1.4s ease-out; }
.polaroid.is-dev .ph::after { opacity: 0; }
.polaroid .cap { display: flex; justify-content: space-between; gap: 6px; padding: 8px 2px 0; font-size: 12px; font-weight: 800; color: var(--soft); }
.polaroid .where { padding: 0 2px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid .cap b { color: var(--orange); letter-spacing: .08em; }
.polaroid .new { position: absolute; top: 16px; left: 16px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; z-index: 1; }
@media (min-width: 900px) { .pin-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; } }

.mail-grid { display: grid; gap: 32px; align-items: center; margin-top: clamp(70px, 10vw, 130px); }
.mail-copy > p:not(.label):not(.small) { color: var(--soft); font-weight: 600; margin-top: 16px; }
.mail-copy h3 { margin-top: 0; }
.inbox { margin: 22px 0; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 520px; }
.motion .inbox { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s, transform .7s var(--spring); }
.motion .inbox.is-in { opacity: 1; transform: none; }
.inbox-row { display: flex; align-items: center; gap: 12px; }
.inbox-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-tint); color: #B87A0A; }
.inbox-text { min-width: 0; flex: 1; line-height: 1.3; }
.inbox-text b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-text small { color: var(--muted); font-weight: 700; font-size: 13px; }
.inbox-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; object-position: top; background: linear-gradient(160deg, #CFDCD8, #9FB5B0); }
@media (min-width: 900px) { .mail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* Comic layers */
.ly-email, .ly-alarm, .ly-log, .ly-friends { position: relative; width: 100%; }
.ly { position: absolute; height: auto; will-change: transform; }

/* Motion alarm: night */
.alarm { color: var(--night-text); padding-block: clamp(120px, 15vw, 200px); }
.nightfall { position: fixed; inset: 0; z-index: 0; background: var(--night); opacity: 0; pointer-events: none; transition: background-color .6s; }
.nightfall.is-siren { background: #1C0E11; }
main, .foot { position: relative; z-index: 1; }
/* As the lights go down, the light parts fade and the night part fades in (main.js sets --night-k). */
#intruder, #log { opacity: calc(1 - var(--night-k, 0) * .9); }
.js .alarm > * { opacity: calc(.1 + var(--night-k, 0) * .9); }
html:not(.js) .alarm { background: var(--night); }
.alarm h2, .alarm h3 { color: #fff; }
.alarm .intro { color: var(--night-soft); }
.alarm-grid { display: grid; gap: 28px; align-items: center; }
.alarm-art { border-radius: var(--radius); background: #EEF2F0; overflow: hidden; }
.alarm-art .ly { transition: filter .4s; }
.alarm.is-siren .ly-alarm-arcs { animation: arcs .5s ease-in-out infinite alternate; }
@keyframes arcs { from { transform: scale(.92); opacity: .6; } to { transform: scale(1.12); opacity: 1; } }
.table { position: relative; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--night-line); padding: 28px 20px 24px; display: flex; flex-direction: column; align-items: center; overflow: hidden; isolation: isolate; }
.table::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(440px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #2B3540, #1A2129 62%, transparent 63%); z-index: -1; }
.table-ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.alarm-phone {
  position: relative; z-index: 1; width: 128px; height: 256px; margin: 34px 0 34px; border-radius: 26px; padding: 7px;
  background: linear-gradient(145deg, #2A333B, #0D1115); box-shadow: 0 30px 40px -24px #000, inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  touch-action: none; cursor: grab; will-change: transform; transition: box-shadow .3s;
}
.ap-screen { height: 100%; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #12181E; color: var(--night-soft); transition: background .3s, color .3s; }
.ap-bell { width: 34px; height: 34px; }
.ap-state { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ap-count { font-size: 40px; font-weight: 900; line-height: 1; color: #fff; min-height: 40px; font-variant-numeric: tabular-nums; }
.table.is-armed .ap-screen { color: var(--amber); }
.table.is-count .ap-screen { color: #FFB27A; }
.table.is-siren .ap-screen { background: #3A1316; color: #fff; animation: siren-screen .5s steps(1) infinite; }
@keyframes siren-screen { 50% { background: var(--night-red); } }
.table.is-siren .alarm-phone { animation: buzz .09s linear infinite; }
@keyframes buzz { 0% { translate: -1.5px 0; } 50% { translate: 1.5px .5px; } 100% { translate: -1px -.5px; } }
.table-note { position: relative; z-index: 1; margin: 0 0 16px; min-height: 1.6em; text-align: center; font-weight: 800; color: #fff; }
.arm { position: relative; z-index: 1; width: min(340px, 100%); }
.arm-track { position: relative; height: 64px; border-radius: 999px; background: #0D1115; border: 1px solid var(--night-line); overflow: hidden; }
.arm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * (100% - 64px) + 64px); border-radius: 999px; background: linear-gradient(90deg, rgba(242, 179, 61, .15), rgba(242, 179, 61, .4)); }
.arm-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 40px; font-weight: 800; color: var(--night-soft); opacity: calc(1 - var(--p, 0) * 1.6); }
.arm-label i { font-style: normal; color: var(--amber); animation: chev 1.4s infinite; opacity: .2; margin-left: 2px; }
.arm-label i:nth-child(2) { animation-delay: .15s; }
.arm-label i:nth-child(3) { animation-delay: .3s; }
@keyframes chev { 30% { opacity: 1; } 60% { opacity: .2; } }
.arm-knob {
  position: absolute; top: 4px; left: 4px; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: grab; touch-action: none;
  display: grid; place-items: center; background: var(--amber); color: var(--night); box-shadow: 0 6px 18px -6px rgba(242, 179, 61, .8);
  transform: translateX(calc(var(--p, 0) * (var(--w, 280px) - 64px)));
}
.arm-knob .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.arm.is-snap .arm-knob, .arm.is-snap .arm-fill { transition: transform .5s var(--spring), width .5s var(--spring); }
.table.is-armed .arm-label { opacity: 0; }
.alarm-buttons { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.btn-night { background: transparent; color: var(--night-text); border-color: #3A4654; min-height: 46px; font-size: 15px; }
.btn-night:not([disabled]):hover { border-color: var(--amber); color: #fff; }
.btn-night.is-hot { background: var(--amber); color: var(--night); border-color: var(--amber); }
.sound-tip { margin-top: 20px; text-align: center; color: var(--night-soft); font-size: 15px; font-weight: 700; }
.sound-on .sound-tip { visibility: hidden; }
@media (min-width: 900px) { .alarm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* Alert log */
.log-grid { position: relative; display: grid; gap: 40px; }
.log-art { max-width: 520px; margin-top: 28px; }
.timeline { display: grid; gap: 16px; align-content: start; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px; box-shadow: var(--shadow); }
.tl-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tl-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 64px; align-items: end; }
.tl-bars i { display: block; border-radius: 99px; background: var(--line); height: 6px; transform-origin: bottom; }
.tl-bars i.hit { background: var(--red); }
.motion .tl-bars i { transform: scaleY(0); transition: transform .7s var(--spring); transition-delay: calc(var(--i) * 45ms); }
.motion .timeline.is-in .tl-bars i { transform: none; }
.tl-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 8px; text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.tl-event { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-event:first-of-type { border-top: 0; }
.tl-badge { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1.5px solid currentColor; background: color-mix(in srgb, var(--ink) 8%, white); }
.tl-badge .ico { width: 18px; height: 18px; }
.tl-event b { color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tl-event small { color: var(--muted); font-weight: 800; font-size: 13px; margin-left: 6px; }
.tl-event p { margin: 2px 0 0; font-size: 15px; color: var(--soft); font-weight: 600; }
.tl-face { margin-left: auto; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; object-position: top; background: linear-gradient(160deg, #CFDCD8, #9FB5B0); }
.motion .tl-event { opacity: 0; transform: translateX(24px); transition: opacity .5s, transform .7s var(--spring); }
.motion .timeline.is-in .tl-event { opacity: 1; transform: none; }
.motion .timeline.is-in .tl-event:nth-of-type(2) { transition-delay: .5s; }
.motion .timeline.is-in .tl-event:nth-of-type(3) { transition-delay: .7s; }
.tl-map { position: relative; margin: 4px 0 8px 48px; border-radius: 16px; background: #EEF3F1; overflow: hidden; }
.tl-svg { display: block; width: 100%; height: auto; }
.tl-streets path { fill: none; stroke: #DCE5E2; stroke-width: 7; }
.tl-path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 0; }
.motion .tl-path { stroke-dashoffset: 340; transition: stroke-dashoffset 2.2s ease-in-out .4s; }
.motion .timeline.is-in .tl-path { stroke-dashoffset: 0; }
.tl-points circle { fill: #fff; stroke: var(--red); stroke-width: 2.5; }
.motion .tl-points circle { opacity: 0; transition: opacity .3s; }
.motion .timeline.is-in .tl-points circle { opacity: 1; }
.motion .timeline.is-in .tl-points circle:nth-child(2) { transition-delay: 1s; }
.motion .timeline.is-in .tl-points circle:nth-child(3) { transition-delay: 1.6s; }
.motion .timeline.is-in .tl-points circle:nth-child(4) { transition-delay: 2.4s; }
.tl-points .tl-last { fill: var(--red); transform-box: fill-box; transform-origin: center; animation: beacon 1.6s ease-out infinite; }
@keyframes beacon { 0% { stroke-width: 2.5; stroke-opacity: 1; } 100% { stroke-width: 22; stroke-opacity: 0; } }
.tl-where { position: absolute; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--text); box-shadow: var(--shadow); white-space: nowrap; }
.tl-where-1 { left: 8px; bottom: 8px; }
.tl-where-2 { right: 8px; top: 8px; color: var(--red); }
.motion .tl-where-2 { opacity: 0; transition: opacity .4s 2.6s; }
.motion .timeline.is-in .tl-where-2 { opacity: 1; }
@media (min-width: 960px) { .log-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } .timeline { margin-top: 30px; } }
@media (max-width: 520px) { .tl-map { margin-left: 0; } .tl-where { font-size: 10px; } }

/* App screens */
.screens { position: relative; padding: clamp(60px, 9vw, 120px) 0; }
.motion .screens { height: 380vh; padding: 0; }
.motion .screens-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.screens-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.screens-head .intro { margin-inline: auto; }
.motion .screens-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.motion .screens-head .intro { font-size: clamp(16px, 1.3vw, 19px); margin-top: 14px; }
.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px var(--gutter); }
.shot { margin: 0; flex: 0 0 min(64vw, 260px); scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone { position: relative; width: 100%; aspect-ratio: 540 / 1196; padding: 7px; border-radius: 38px; background: linear-gradient(145deg, #2A333B, #0D1115); box-shadow: var(--shadow-big), inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.phone img { width: 100%; height: 100%; border-radius: 31px; object-fit: cover; }
.phone::after { content: ""; position: absolute; inset: 7px; border-radius: 31px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 35%); }
.shot figcaption { font-weight: 800; font-size: 16px; text-align: center; max-width: 24ch; color: var(--text); }
.motion .carousel { position: relative; display: block; overflow: visible; height: min(62vh, 640px); margin-top: 10px; padding: 0; perspective: 1600px; }
.motion .shot { position: absolute; left: 50%; top: 0; width: min(25vh, 290px, 60vw); transform-style: preserve-3d; will-change: transform, opacity; }
.motion .shot figcaption { opacity: var(--cap, 0); transition: opacity .3s; }
.screens-progress { display: none; }
.motion .screens-progress { display: block; position: relative; height: 4px; max-width: 220px; margin: 14px auto 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.screens-progress span { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 4px; }
@media (max-height: 700px) { .motion .screens-head .intro { display: none; } }

/* Friends */
.friends-grid { display: grid; gap: 32px; align-items: center; }
.friends-art { max-width: 640px; }
@media (min-width: 900px) { .friends-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }

/* Private by design */
.private { background: linear-gradient(var(--bg), #E9F0ED); }
.private-grid { display: grid; gap: 36px; align-items: center; }
.vault { position: relative; height: clamp(440px, 66vh, 600px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; touch-action: pan-y; }
.vault canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vault-mail { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--amber-tint); color: #8A5A05; font-weight: 800; font-size: 14px; opacity: .5; transition: opacity .3s, transform .5s var(--spring); }
.vault.is-email .vault-mail { opacity: 1; }
.vault-mail.got { transform: scale(1.15); }
.vault-toggle { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; cursor: pointer; }
.vault-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: var(--line); transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .45s var(--spring), width .2s; }
.vault-toggle input:checked + .switch { background: var(--teal-3); box-shadow: inset 0 0 0 1px var(--teal-2); }
.vault-toggle input:checked + .switch::after { transform: translateX(20px); }
.vault-toggle input:focus-visible + .switch { outline: 3px solid var(--teal); outline-offset: 3px; }
.vault-toggle:active .switch::after { width: 30px; }
.checks { list-style: none; margin: 26px 0 22px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; font-size: 18px; line-height: 1.45; }
.checks .ico { margin-top: 2px; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--teal); color: #fff; stroke-width: 3; }
.motion .checks li { opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .6s var(--spring); }
.motion .is-in .checks li { opacity: 1; transform: none; }
.motion .is-in .checks li:nth-child(2) { transition-delay: .1s; }
.motion .is-in .checks li:nth-child(3) { transition-delay: .2s; }
.motion .is-in .checks li:nth-child(4) { transition-delay: .3s; }
.motion .is-in .checks li:nth-child(5) { transition-delay: .4s; }
@media (min-width: 900px) { .private-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* Get the app */
.get { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 100px); background: #E9F0ED; }
.get-grid { display: grid; gap: 40px; align-items: center; }
.facts { display: grid; gap: 14px; margin: 28px 0 30px; }
.facts div { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.facts b { display: block; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.facts p { margin: 0; color: var(--soft); font-weight: 600; font-size: 16px; }
.qr-card { position: relative; justify-self: center; width: min(420px, 100%); padding: 26px 26px 22px; border-radius: 32px; background: #fff; box-shadow: var(--shadow-big); text-align: center; }
.qr-canvas { display: block; width: 100%; aspect-ratio: 1; touch-action: pan-y; }
.qr-icon { position: absolute; left: 50%; width: 15%; aspect-ratio: 1; border-radius: 22%; transform: translate(-50%, -50%) scale(var(--s, 1)); box-shadow: 0 0 0 5px #fff; pointer-events: none; transition: transform .6s var(--spring); }
.qr-note { margin: 12px 0 0; color: var(--soft); font-weight: 700; font-size: 15px; }
.qr-soon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--amber-tint); border: 1px solid #EBCB8B; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #6E4A06; white-space: nowrap; }
@media (min-width: 900px) { .get-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } .facts { grid-template-columns: 1fr 1fr; } }

/* Contact and footer */
.contact { background: #E9F0ED; padding: 0 0 clamp(60px, 8vw, 100px); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 36px; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; }
.contact-pill { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; }
.contact-pill span.email { user-select: all; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; font-weight: 800; }
.copy .ico { width: 16px; height: 16px; }
.foot { background: var(--text); color: #C9D6D2; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot p { margin: 0 0 8px; max-width: 760px; }
.foot a { color: #fff; }
.foot-tech { opacity: .7; }

/* Cursor ring (fine pointers only, set up by cursor.js) */
.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; z-index: 90; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1.5px solid rgba(53, 109, 105, .55); pointer-events: none; transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .3s, border-color .3s, opacity .3s;
}
.has-cursor .cursor.is-big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(53, 109, 105, .9); border-color: transparent; }
.has-cursor .cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(53, 109, 105, .1); }
.has-cursor .cursor.is-night { border-color: rgba(242, 179, 61, .6); }
.has-cursor .cursor.is-night.is-big { background: rgba(242, 179, 61, .92); }
.has-cursor .cursor.is-hidden { opacity: 0; }
.cursor-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.is-night .cursor-label { color: var(--night); }
.cursor.is-big .cursor-label { opacity: 1; }

/* Still page for visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 600px) {
  .pp-screen { padding: 44px 14px 18px; }
  .pp-time { font-size: 40px; }
  .pp-keys { gap: 8px 12px; max-width: 210px; }
  .pp-keys button { font-size: 22px; }
  .contact-pill { border-radius: 22px; }
}
