/* ==========================================================
   Sunup — mysunup.com
   Fraunces (display) · Inter (body) · JetBrains Mono (time & labels)
   Colors follow the Sunup app's dark theme and sunrise gradient.
   ========================================================== */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --night: #0f0d18;
  --bg: #15131f;
  --bg-2: #1a1727;
  --surface: #211e30;
  --surface-2: #2a2640;
  --line: rgba(255, 240, 228, 0.09);
  --line-strong: rgba(255, 240, 228, 0.18);
  --glass: rgba(33, 30, 48, 0.55);

  --ink: #f7f0e8;
  --muted: #bdb2c4;
  --dim: #8c829a;

  --sun-a: #f2705e;
  --sun-b: #f7963e;
  --sun-c: #ffc54d;
  --accent: #ff8a73;
  --ok: #4fca9c;
  --danger: #ff6b63;
  --violet: #9b7cf6;

  --grad-sun: linear-gradient(120deg, var(--sun-a), var(--sun-b) 55%, var(--sun-c));
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 30px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--sun-c); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun-c); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(247, 150, 62, .45); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--sun-b); color: #221d33; padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 10px; }

/* ---------- Type ---------- */
.display, .display-2 {
  font-family: var(--font-display); font-weight: 560; letter-spacing: -0.035em; line-height: .98;
  font-variation-settings: "opsz" 144;
}
.display, .display-2 { text-wrap: balance; }
.display { font-size: clamp(44px, 8vw, 112px); }
.display-2 { font-size: clamp(36px, 5.4vw, 74px); line-height: 1.02; }
.display em, .display-2 em {
  font-style: italic; font-weight: 500;
  background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 640px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sun-c); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin-top: 18px; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .sub { margin-inline: auto; }
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  will-change: transform; overflow: hidden; isolation: isolate;
}
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-sun { background: var(--grad-sun); color: #2a1405; box-shadow: 0 10px 40px -10px rgba(247, 150, 62, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-sun::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-sun:hover { color: #2a1405; box-shadow: 0 16px 50px -10px rgba(247, 150, 62, .9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-sun:hover::after { transform: translateX(120%); }
.btn-glass {
  background: rgba(255, 245, 235, .07); color: var(--ink); border-color: var(--line-strong);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn-glass:hover { color: var(--ink); background: rgba(255, 245, 235, .12); border-color: rgba(255, 197, 77, .5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.link-btn { background: none; border: 0; color: var(--sun-c); cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 4px; }

/* ---------- Chrome: progress, cursor, nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); background: var(--grad-sun); box-shadow: 0 0 12px rgba(247,150,62,.8); }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s, width .4s, height .4s, margin .4s;
  background: radial-gradient(circle, rgba(247, 150, 62, .16), rgba(242, 112, 94, .06) 40%, transparent 70%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); mix-blend-mode: screen;
}
.has-cursor .cursor-glow { opacity: 1; }
.cursor-hot .cursor-glow { width: 240px; height: 240px; margin: -120px 0 0 -120px; background: radial-gradient(circle, rgba(255, 197, 77, .3), transparent 70%); }

.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto; max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(21, 19, 31, .45); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background .4s, box-shadow .4s, border-color .4s;
}
.scrolled .nav-pill { background: rgba(21, 19, 31, .78); border-color: var(--line-strong); box-shadow: 0 18px 50px -20px rgba(0,0,0,.7); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.nav nav { flex: 1; display: flex; justify-content: center; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-here { color: var(--ink); background: rgba(255,245,235,.07); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .3s, background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 230vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-fallback { display: none; position: absolute; inset: 0; background:
  radial-gradient(40vmax 40vmax at 50% 72%, rgba(255, 197, 77, .55), transparent 60%),
  linear-gradient(180deg, #120f22 0%, #2b1840 45%, #8a3b55 72%, #f2705e 86%, #1c1428 86.3%); }
.no-webgl .sky { display: none; }
.no-webgl .sky-fallback { display: block; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(70% 55% at 50% 30%, rgba(15, 13, 24, .55), transparent 70%),
  linear-gradient(180deg, rgba(15, 13, 24, .55) 0%, transparent 30%, transparent 75%, var(--bg) 100%); }

.hero-copy {
  position: absolute; left: 50%; top: clamp(108px, 16svh, 180px); width: min(1060px, 100% - 2 * var(--gutter));
  text-align: center; z-index: 3;
  transform: translate(-50%, calc(var(--p, 0) * -90px)) scale(calc(1 - var(--p, 0) * .06));
  opacity: calc(1 - var(--fade, 0)); will-change: transform, opacity;
}
.hero-copy .lead { margin: 26px auto 0; text-shadow: 0 2px 20px rgba(15,13,24,.6); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  background: rgba(255, 245, 235, .08); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-c); box-shadow: 0 0 0 0 rgba(255,197,77,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,197,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,197,77,0); } }
.local-time { margin: 26px auto 0; max-width: 560px; font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); text-wrap: balance; }
.lt-dot { display: inline-block; vertical-align: middle; margin: 0 8px 2px 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lt-dot.closed { background: var(--sun-b); box-shadow: 0 0 10px var(--sun-b); }

.hero-phone {
  position: absolute; left: 50%; top: 50%; z-index: 2; height: min(68svh, 640px); aspect-ratio: 9 / 19.5;
  transform: translate(-50%, calc(-50% + (1 - var(--pp, 0)) * 66svh)) perspective(1400px) rotateX(calc((1 - var(--pp, 0)) * 34deg)) scale(calc(.84 + var(--pp, 0) * .16));
  will-change: transform;
}
.device {
  position: relative; width: 100%; height: 100%; border-radius: 13% / 6%; padding: 3.2%;
  background: linear-gradient(150deg, #3b3550, #15131f 45%, #2a2640);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 50px 120px -30px rgba(0,0,0,.85), 0 0 120px -20px rgba(247,150,62,.35);
}
.device > img, .device-live { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10.5% / 4.9%; }
.device::after { /* glass sheen */
  content: ""; position: absolute; inset: 3.2%; border-radius: 10.5% / 4.9%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 30%, transparent 70%, rgba(255,255,255,.05));
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(33, 30, 48, .7); border: 1px solid var(--line-strong); white-space: nowrap;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); font-size: 14px; line-height: 1.3;
  opacity: var(--chips, 0); transition: opacity .2s;
}
.chip b { display: block; font-weight: 600; }
.chip small { color: var(--muted); font-size: 13px; }
.chip-ok { color: var(--ok); font-weight: 700; margin-left: 6px; }
.chip-a { right: 86%; top: 20%; transform: translateX(calc((1 - var(--chips, 0)) * 40px)); }
.chip-b { left: 86%; top: 44%; transform: translateX(calc((1 - var(--chips, 0)) * -40px)); }
.chip-c { right: 90%; top: 70%; transform: translateX(calc((1 - var(--chips, 0)) * 40px)); }
.chip-sun { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-sun); box-shadow: 0 0 20px rgba(247,150,62,.7); }

.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.a-mom { background: linear-gradient(135deg, #4fca9c, #1f8a6a); }
.a-jr { background: linear-gradient(135deg, #9b7cf6, #5b3fc4); }
.a-sam { background: linear-gradient(135deg, #ff8a73, #c94a3b); }
.a-you { background: var(--grad-sun); color: #2a1405; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 10px;
  color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: calc(1 - var(--fade, 0) * 2);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--sun-c), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 36px; padding: 18px 0 18px 36px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Panels / Try it ---------- */
.panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(42, 38, 64, .7), rgba(26, 23, 39, .7));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.panel-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-top h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; }
.step-tag { font-family: var(--font-mono); font-size: 12px; color: var(--sun-c); border: 1px solid rgba(255,197,77,.4); border-radius: 999px; padding: 4px 10px; }
.try-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }

.mini-sky { position: relative; height: 150px; border-radius: 18px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); transition: background .6s var(--ease); background: linear-gradient(180deg, #2b1840, #f2705e); }
.mini-sun { position: absolute; left: 50%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: radial-gradient(circle, #fff4d6, #ffc54d 45%, #f7963e 70%); box-shadow: 0 0 60px 12px rgba(255,197,77,.5); bottom: var(--sun-y, 20px); transition: bottom .6s var(--ease); }
.mini-ridge { position: absolute; left: -5%; right: -5%; bottom: -18px; height: 54px; border-radius: 50% 50% 0 0; background: #1c1428; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.preset { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .25s; }
.preset:hover { color: var(--ink); border-color: rgba(255,197,77,.5); }
.preset.is-on { background: rgba(247,150,62,.16); color: var(--ink); border-color: rgba(247,150,62,.7); }
.range-label { display: block; font-size: 13px; color: var(--dim); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #2b1840, #8a3b55, var(--sun-a), var(--sun-c)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #2b1840, #8a3b55, var(--sun-a), var(--sun-c)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle, #fff4d6, #ffc54d 60%); border: 3px solid #15131f; box-shadow: 0 0 0 1px rgba(255,197,77,.8), 0 0 20px rgba(255,197,77,.7); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff4d6, #ffc54d 60%); border: 3px solid #15131f; box-shadow: 0 0 0 1px rgba(255,197,77,.8), 0 0 20px rgba(255,197,77,.7); }
.window-readout { margin: 14px 0 6px; font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 30px); }
.window-readout strong { font-weight: 700; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.window-note { color: var(--muted); margin: 0; font-size: 15px; }

.hold-panel { display: flex; flex-direction: column; }
.hold-wrap { position: relative; display: grid; justify-items: center; padding: 10px 0 6px; }
.burst { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none; z-index: 3; }
.hold {
  position: relative; width: 220px; height: 220px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hold-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,245,235,.08); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--sun-c); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 628.32; stroke-dashoffset: calc(628.32 * (1 - var(--hold, 0))); filter: drop-shadow(0 0 10px rgba(255,197,77,.8)); }
.hold-face {
  position: absolute; inset: 18px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 30%, #ffd98a, var(--sun-b) 55%, var(--sun-a));
  box-shadow: 0 0 calc(30px + var(--hold, 0) * 70px) calc(var(--hold, 0) * 18px) rgba(247,150,62,.55), inset 0 -10px 30px rgba(120, 30, 10, .35), inset 0 6px 14px rgba(255,255,255,.4);
  transform: scale(calc(1 - var(--hold, 0) * .05)); transition: transform .2s var(--ease), background .4s;
  color: #2a1405;
}
.hold-label { font-family: var(--font-display); font-size: 36px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.hold-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; opacity: .75; }
.hold.is-done .hold-face { background: radial-gradient(circle at 50% 30%, #c8f5df, var(--ok) 70%); color: #06261a; box-shadow: 0 0 80px 10px rgba(79,202,156,.45), inset 0 6px 14px rgba(255,255,255,.4); }
.hold.is-done .ring-fill { stroke: var(--ok); filter: drop-shadow(0 0 10px rgba(79,202,156,.8)); }
.hold-help { color: var(--dim); font-size: 13px; margin: 14px 0 0; }
.feed { display: grid; margin-top: 8px; }
.feed-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,245,235,.05); border: 1px solid var(--line);
  opacity: 0; transform: translateY(14px) scale(.98); max-height: 0; padding-block: 0; margin-top: 0; border-width: 0; overflow: hidden;
  transition: opacity .5s var(--ease), transform .6s var(--ease-spring), max-height .5s var(--ease), padding .5s var(--ease), margin .5s var(--ease);
}
.feed-item.show { opacity: 1; transform: none; max-height: 90px; padding-block: 12px; margin-top: 10px; border-width: 1px; }
.feed-item div { flex: 1; line-height: 1.3; }
.feed-item b { display: block; font-size: 15px; }
.feed-item small { color: var(--muted); font-size: 13px; }
.feed-item time { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.feed-item.done { border-color: rgba(79,202,156,.35); background: rgba(79,202,156,.07); }

/* ---------- Scroll story ---------- */
.story { position: relative; height: 700vh; background: linear-gradient(180deg, var(--bg), var(--night) 12%, var(--night) 88%, var(--bg)); }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-stage::before { /* red alert ambience that grows with urgency */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--urgency, 0); transition: opacity .6s;
  background: radial-gradient(60% 60% at 30% 55%, rgba(255, 107, 99, .18), transparent 70%);
}
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: clamp(30px, 6vw, 90px); row-gap: 28px; align-items: center; }
.story-head { grid-column: 1 / -1; }
.story-head .display-2 { font-size: clamp(32px, 4.4vw, 60px); }
.story-phone { display: grid; justify-items: center; }
.story-phone .device { height: min(62svh, 600px); width: auto; aspect-ratio: 9 / 19.5; }
.device-live { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #3a2350, #15131f 70%); }

.scr { position: absolute; inset: 0; padding: 18% 7% 8%; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(1.06); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s; }
.scr.is-active { opacity: 1; transform: none; filter: none; }
.ls-time { font-size: clamp(44px, 6.2svh, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; font-feature-settings: "tnum"; }
.ls-date { font-size: 13px; color: rgba(255,255,255,.7); margin: 6px 0 22px; font-weight: 500; }
.notif { display: flex; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 16px; margin-bottom: 9px; text-align: left; background: rgba(255,255,255,.13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 1.35; animation: drop .7s var(--ease-spring) both; }
.notif img, .n-ico { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.n-ico { display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 15px; }
.notif p { margin: 0; }
.n-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px !important; }
.n-head span { color: rgba(255,255,255,.55); font-size: 11px; }
.n-head .ts { color: #ffb0a8; font-weight: 600; }
.notif-urgent { border-color: rgba(255,107,99,.6); box-shadow: 0 0 0 1px rgba(255,107,99,.25), 0 0 30px -6px rgba(255,107,99,.6); }
.n-actions { display: flex; gap: 6px; margin-top: 8px !important; }
.n-actions span { flex: 1; text-align: center; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.14); font-weight: 600; }
.scr-urgent { background: radial-gradient(90% 60% at 50% 20%, rgba(255,107,99,.3), transparent 70%); }
.scr-urgent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(255,107,99,.6); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.scr:not(.is-active) .notif { animation: none; }
.whose { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-c); background: rgba(255,197,77,.12); border: 1px solid rgba(255,197,77,.3); padding: 4px 10px; border-radius: 999px; margin: -6% 0 14px; }
.scr-call { justify-content: flex-start; background: linear-gradient(180deg, #2a1d3d, #120f1c); }
.call-label { color: rgba(255,255,255,.7); font-size: 13px; margin: 6% 0 22px; }
.call-avatar { position: relative; width: 34%; aspect-ratio: 1; display: grid; place-items: center; }
.call-avatar img, .call-avatar span { width: 100%; height: 100%; border-radius: 28%; position: relative; z-index: 1; }
.call-avatar span { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #4fca9c, #1f8a6a); font-weight: 700; font-size: 26px; }
.call-avatar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,197,77,.6); animation: ring 2s var(--ease) infinite; }
.call-avatar i:nth-child(3) { animation-delay: .6s; }
.call-avatar i:nth-child(4) { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.call-name { font-size: clamp(24px, 3.4svh, 30px); font-weight: 600; margin: 18px 0 2px; }
.call-sub { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }
.call-btns { margin-top: auto; display: flex; gap: 34%; padding-bottom: 6%; }
.cb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; border: 0; }
.cb.decline { background: #ff4d4d; cursor: pointer; }
.cb.accept { background: #34c759; animation: wiggle 1.2s infinite; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }
.scr-packet, .scr-wellness { text-align: center; }
.scr-packet h4, .scr-wellness h4 { font-family: var(--font-display); font-size: 22px; margin: 12px 0 14px; }
.scr-packet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; width: 100%; }
.scr-packet li { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); font-size: 12.5px; line-height: 1.3; }
.scr-packet li small { color: rgba(255,255,255,.7); }
.scr-packet li b { display: block; }
.scr-packet li > span { font-size: 18px; }
.lock { position: relative; width: 54px; height: 60px; }
.lock .body { position: absolute; bottom: 0; left: 0; right: 0; height: 36px; border-radius: 10px; background: var(--grad-sun); box-shadow: 0 0 30px rgba(247,150,62,.6); }
.lock .shackle { position: absolute; left: 11px; top: 0; width: 32px; height: 36px; border: 6px solid #ffd98a; border-bottom: 0; border-radius: 18px 18px 0 0; transform-origin: 85% 100%; transition: transform .8s var(--ease-spring) .3s; }
.scr-packet.is-active .shackle { transform: rotate(28deg) translate(6px, -8px); }
.wc-icon { font-size: 44px; margin-top: 8%; filter: drop-shadow(0 0 20px rgba(255,197,77,.6)); }
.scr-wellness p { color: rgba(255,255,255,.75); font-size: 13px; }
.wc-btn { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--grad-sun); color: #2a1405; font-weight: 600; font-size: 12.5px; }

.story-side { min-width: 0; }
.clock { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-weight: 700; font-size: clamp(54px, 7vw, 96px); letter-spacing: -.04em; line-height: 1; margin-bottom: 22px; font-feature-settings: "tnum"; }
.clock span { background: linear-gradient(180deg, #fff, #c9bccf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock small { font-size: .3em; color: var(--dim); letter-spacing: .1em; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ladder li {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 14px;
  padding: 11px 14px; border-radius: 16px; color: var(--dim); transition: background .4s, color .4s, transform .5s var(--ease);
}
.ladder li::before {
  content: attr(data-n); grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--dim); transition: all .4s;
}
.ladder b { font-weight: 600; font-size: 16px; color: inherit; }
.ladder span { grid-column: 2 / 4; font-size: 14px; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.tier { grid-column: 3; grid-row: 1; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; align-self: center; }
.tier.free { color: var(--ok); background: rgba(79,202,156,.1); }
.tier.pro { color: var(--sun-c); background: rgba(255,197,77,.12); }
.ladder li.is-past { color: var(--muted); }
.ladder li.is-past::before { content: "✓"; color: var(--ok); border-color: rgba(79,202,156,.5); }
.ladder li.is-active { color: var(--ink); background: rgba(255,245,235,.06); transform: translateX(6px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ladder li.is-active::before { background: var(--grad-sun); color: #2a1405; border-color: transparent; box-shadow: 0 0 20px rgba(247,150,62,.7); }
.ladder li.is-active span { max-height: 80px; opacity: 1; color: var(--muted); margin-top: 4px; }
.story-note { margin: 22px 0 0; color: var(--dim); font-size: 14px; }

/* Mock-screen type scales with the phone, not the window (container query units). */
.device-live { container-type: inline-size; }
.device-live .ls-time { font-size: 22cqw; }
.device-live .ls-date { font-size: 4.7cqw; margin: 2cqw 0 8cqw; }
.device-live .notif { gap: 3.6cqw; padding: 4cqw 4.3cqw; border-radius: 5.8cqw; margin-bottom: 3.2cqw; font-size: 4.5cqw; }
.device-live .notif img, .device-live .n-ico { width: 11cqw; height: 11cqw; border-radius: 3cqw; }
.device-live .n-ico { font-size: 5.4cqw; }
.device-live .n-head span { font-size: 4cqw; }
.device-live .n-actions span { padding: 2.2cqw; border-radius: 3.6cqw; }
.device-live .whose { font-size: 3.8cqw; padding: 1.4cqw 3.6cqw; }
.device-live .call-label { font-size: 4.7cqw; }
.device-live .call-name { font-size: 10cqw; }
.device-live .call-sub { font-size: 4.7cqw; }
.device-live .cb { width: 19cqw; height: 19cqw; font-size: 8cqw; }
.device-live .scr-packet h4, .device-live .scr-wellness h4 { font-size: 8cqw; margin: 4cqw 0 5cqw; }
.device-live .scr-packet ul { gap: 3.2cqw; }
.device-live .scr-packet li { padding: 3.6cqw 4.3cqw; border-radius: 5cqw; font-size: 4.4cqw; gap: 3.6cqw; }
.device-live .scr-packet li > span { font-size: 6.5cqw; }
.device-live .lock { width: 19.5cqw; height: 21.7cqw; }
.device-live .lock .body { height: 13cqw; border-radius: 3.6cqw; }
.device-live .lock .shackle { left: 4cqw; width: 11.6cqw; height: 13cqw; border-width: 2.2cqw; border-radius: 6.5cqw 6.5cqw 0 0; }
.device-live .wc-icon { font-size: 16cqw; }
.device-live .scr-wellness p { font-size: 4.7cqw; }
.device-live .wc-btn { padding: 3.6cqw 5cqw; border-radius: 4.3cqw; font-size: 4.5cqw; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; grid-column: span 4; border-radius: var(--r-lg); padding: 22px 24px 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(42, 38, 64, .55), rgba(26, 23, 39, .8)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.tile::before { /* spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247,150,62,.14), transparent 45%);
}
.tile::after { /* spotlight border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,197,77,.8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; margin: 18px 0 8px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.t-sos { grid-column: span 5; grid-row: span 2; }
.t-moments { grid-column: span 7; }
.t-packet { grid-column: span 7; }
.tile-demo { position: relative; height: 200px; border-radius: 20px; background: rgba(15, 13, 24, .55); border: 1px solid var(--line); overflow: hidden; }
.t-sos .tile-demo { height: 420px; }

.radar { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,107,99,.12), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.03) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.03) 39px 40px), rgba(15,13,24,.6); }
.radar i { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 1px solid rgba(255,107,99,.6); animation: sonar 3s var(--ease) infinite; }
.radar i:nth-child(2) { animation-delay: 1s; }
.radar i:nth-child(3) { animation-delay: 2s; }
@keyframes sonar { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.sos-btn { position: relative; z-index: 2; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: #fff; background: radial-gradient(circle at 50% 35%, #ff8f87, #e5392f 70%); box-shadow: 0 0 60px rgba(255,77,77,.6), inset 0 -8px 20px rgba(100,0,0,.4), inset 0 4px 10px rgba(255,255,255,.35); }
.ping { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); opacity: 0; animation: pingIn 6s infinite; }
.ping::after { content: "!"; font-weight: 700; color: var(--danger); font-size: 14px; }
.p1 { left: 18%; top: 22%; animation-delay: .8s; }
.p2 { right: 16%; top: 34%; animation-delay: 1.2s; }
.p3 { left: 30%; bottom: 16%; animation-delay: 1.6s; }
@keyframes pingIn { 0%, 10% { opacity: 0; transform: scale(.4); } 18%, 80% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.8); } }

.moments { display: flex; align-items: center; gap: 22px; padding: 18px 22px; }
.m-ring { flex: none; width: 140px; height: 140px; transform: rotate(-90deg); }
.m-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 8; }
.m-fill { fill: none; stroke: var(--sun-b); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 8px rgba(247,150,62,.7)); }
.m-info { min-width: 0; }
.moments .m-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-c); margin: 0 0 4px; }
.moments .m-time { font-family: var(--font-mono); font-weight: 700; font-size: 38px; letter-spacing: -.03em; margin: 0 0 4px; font-feature-settings: "tnum"; }
.moments .m-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.fake-call { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 12px 0; background: linear-gradient(180deg, #2a1d3d, #120f1c); animation: drop .5s var(--ease-spring); }
.fake-call[hidden] { display: none; }
.fake-call .call-label { margin: 0 0 8px; }
.fake-call .call-avatar { width: 64px; }
.fake-call .call-name { margin: 8px 0 0; font-size: 20px; }
.fake-call .call-btns { gap: 80px; padding: 0; }
.fake-call .cb { width: 44px; height: 44px; font-size: 18px; }

.packet { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: auto; min-height: 200px; }
.packet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.packet li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.packet code { font-family: var(--font-mono); font-size: 14px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.packet.is-open code { color: var(--ink); }
.packet .btn { align-self: flex-start; }

.orbit { display: grid; place-items: center; }
.orbit-sun { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #fff4d6, var(--sun-c) 45%, var(--sun-b) 75%); box-shadow: 0 0 70px 16px rgba(247,150,62,.45); }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,245,235,.14); animation: spin linear infinite; }
.orbit-ring .avatar { position: absolute; top: -18px; left: 50%; margin-left: -18px; animation: spin linear infinite reverse; animation-duration: inherit; }
.r1 { width: 120px; height: 120px; margin: -60px; animation-duration: 12s; }
.r2 { width: 180px; height: 180px; margin: -90px; animation-duration: 18s; animation-direction: reverse; }
.r2 .avatar { animation-direction: normal; }
.r3 { width: 240px; height: 240px; margin: -120px; animation-duration: 26s; }
@keyframes spin { to { transform: rotate(360deg); } }

.smart { display: grid; place-items: center; }
.smart-app { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: tap 3.2s var(--ease) infinite; }
.smart-check { position: absolute; left: calc(50% + 26px); top: calc(50% - 50px); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #06261a; font-weight: 800; box-shadow: 0 0 24px rgba(79,202,156,.8); animation: pop 3.2s var(--ease-spring) infinite; }
@keyframes tap { 0%, 100% { transform: scale(1); } 20% { transform: scale(.88); } 30% { transform: scale(1.04); } 40% { transform: scale(1); } }
@keyframes pop { 0%, 30% { transform: scale(0); opacity: 0; } 42%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

.private { display: grid; place-items: center; }
.grid-map { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.05) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.05) 23px 24px); -webkit-mask: radial-gradient(circle, #000 30%, transparent 75%); mask: radial-gradient(circle, #000 30%, transparent 75%); }
.pin { position: relative; font-size: 46px; filter: grayscale(.2); animation: hover 3s ease-in-out infinite; }
.slash { position: absolute; width: 120px; height: 4px; border-radius: 4px; background: var(--danger); box-shadow: 0 0 16px rgba(255,107,99,.8); transform: rotate(-40deg) scaleX(0); animation: slash 3s var(--ease) infinite; }
@keyframes hover { 50% { transform: translateY(-8px); } }
@keyframes slash { 0%, 20% { transform: rotate(-40deg) scaleX(0); } 45%, 85% { transform: rotate(-40deg) scaleX(1); } 100% { transform: rotate(-40deg) scaleX(0); } }

.multi { display: grid; align-content: center; padding: 0 22px; gap: 12px; }
.day { position: relative; height: 46px; border-radius: 14px; background: linear-gradient(90deg, #1b1630, #4a2a52 25%, #f2705e 45%, #ffc54d 60%, #8a3b55 80%, #1b1630); opacity: .9; }
.day i { position: absolute; top: -4px; bottom: -4px; left: var(--s); width: var(--w); border-radius: 12px; border: 2px solid #fff; box-shadow: 0 0 18px rgba(255,255,255,.4); animation: glowpulse 2.4s infinite; }
.day i.eve { animation-delay: 1.2s; }
.day-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; padding: 0 12% 0 18%; }
@keyframes glowpulse { 50% { box-shadow: 0 0 30px rgba(255,197,77,.7); border-color: var(--sun-c); } }

/* ---------- Kinetic marquee ---------- */
.kinetic { overflow: hidden; padding: clamp(30px, 6vw, 70px) 0; border-block: 1px solid var(--line); }
.kinetic-track { display: flex; align-items: center; width: max-content; gap: clamp(24px, 3vw, 48px); animation: marquee 40s linear infinite; transform: skewX(var(--skew, 0deg)); }
.kinetic span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(56px, 11vw, 160px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.kinetic .k-out { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 197, 77, .7); }
.kinetic .k-sun { width: clamp(36px, 5vw, 70px); height: clamp(36px, 5vw, 70px); border-radius: 50%; background: var(--grad-sun); box-shadow: 0 0 40px rgba(247,150,62,.6); flex: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(14px, 3vw, 36px); align-items: center; perspective: 1400px; }
.g-card { margin: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.g-card img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 32px; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(42,38,64,.6); }
.g-card figcaption { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); letter-spacing: .06em; }
.g-mid { --lift: -34px; }
.g-mid img { box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(42,38,64,.6), 0 0 100px -20px rgba(247,150,62,.55); }

/* ---------- Pricing ---------- */
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.bill { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 11px 22px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .3s; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.bill.is-on { color: #2a1405; }
.bill-thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--grad-sun); transition: transform .5s var(--ease-spring); }
.billing.is-year .bill-thumb { transform: translateX(100%); }
.save { font-size: 11px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 999px; background: rgba(79,202,156,.2); color: var(--ok); }
.bill.is-on .save { background: rgba(42,20,5,.15); color: #2a1405; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 24px; align-items: start; }
.plan { position: relative; padding: 34px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.plan h3 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.price .cur { font-size: 28px; font-weight: 600; color: var(--muted); }
.price .amt { font-family: var(--font-display); font-weight: 650; font-size: 68px; letter-spacing: -.04em; line-height: 1; font-feature-settings: "tnum"; display: inline-block; }
.price .per { margin-left: 8px; color: var(--muted); }
.amt.flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { filter: blur(4px); transform: translateY(-4px); opacity: .6; } }
.price-alt { color: var(--dim); font-size: 14px; margin: 6px 0 0; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(79,202,156,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fca9c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan-pro { background: linear-gradient(170deg, #34213a, var(--surface) 55%); border-color: transparent; box-shadow: 0 30px 80px -30px rgba(247,150,62,.45); }
.plan-pro::before { /* rotating conic border */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--sun-a), var(--sun-c), transparent 30%, transparent 60%, var(--sun-b), var(--sun-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotate-ang 6s linear infinite;
}
@keyframes rotate-ang { to { --ang: 360deg; } }
.plan-pro li::before { background-color: rgba(255,197,77,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc54d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan-badge { position: absolute; top: -14px; left: 34px; padding: 6px 13px; border-radius: 999px; background: var(--grad-sun); color: #2a1405; font-weight: 700; font-size: 12.5px; box-shadow: 0 10px 30px -8px rgba(247,150,62,.8); }
.fine { text-align: center; color: var(--dim); font-size: 14px; max-width: 640px; margin: 30px auto 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; interpolate-size: allow-keywords; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(247,150,62,.45); background: linear-gradient(180deg, #2a2133, var(--surface)); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 400; border: 1px solid var(--line-strong); transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad-sun); color: #2a1405; border-color: transparent; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Finale ---------- */
.finale { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.finale::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, rgba(15,13,24,.6) 100%), radial-gradient(55% 42% at 50% 46%, rgba(15,13,24,.72), rgba(15,13,24,.35) 55%, transparent 80%); }
.finale-inner { position: relative; z-index: 2; padding-block: 120px; }
.finale-icon { width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 80px -10px rgba(247,150,62,.6); animation: hover 4s ease-in-out infinite; }
.finale .lead { margin: 24px auto 0; color: var(--ink); text-shadow: 0 2px 24px rgba(15,13,24,.8); }
.finale .display { text-shadow: 0 6px 40px rgba(15,13,24,.55); }
.cta-row.center { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--night); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.f-brand p { color: var(--dim); margin: 14px 0 0; max-width: 340px; font-size: 15px; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.f-links a { color: var(--muted); font-size: 15px; }
.f-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }

/* ---------- Reveal animations (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.w { display: inline-block; white-space: pre; }
.js [data-split] .w { opacity: 0; transform: translateY(.45em) rotate(3deg); filter: blur(12px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.js [data-split].is-in .w { opacity: 1; transform: none; filter: none; }
.js [data-split] em { background: none; }
.display em .w, .display-2 em .w { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 100px; position: relative; }
.legal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 460px; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(242,112,94,.22), transparent 70%); }
.legal .container { max-width: 820px; position: relative; }
.legal h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 10px; }
.legal .lede { color: var(--muted); font-size: 18px; margin: 0 0 6px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--dim); margin-bottom: 34px; }
.legal h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; margin: 46px 0 14px; scroll-margin-top: 110px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .eyebrow { color: var(--sun-c); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .caps { font-size: 14px; }
.callout { margin: 0 0 22px; padding: 20px 22px; border-radius: var(--r); background: rgba(79,202,156,.07); border: 1px solid rgba(79,202,156,.3); color: var(--muted); }
.callout.warn { background: rgba(255,107,99,.08); border-color: rgba(255,107,99,.4); }
.toc { margin: 30px 0 10px; padding: 22px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--sun-c); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--sun-c); }
.legal-nav .nav-pill { justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .try-grid { grid-template-columns: 1fr; }
  .tile, .t-sos, .t-moments, .t-packet { grid-column: span 6; grid-row: auto; }
  .t-sos .tile-demo { height: 240px; }
  .chip-a { right: 78%; } .chip-b { left: 78%; } .chip-c { right: 82%; }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 14px; justify-items: center; text-align: center; }
  .story-head .display-2 { font-size: clamp(28px, 7vw, 40px); }
  .story-head .eyebrow { margin-bottom: 8px; }
  .story-phone .device { height: min(54svh, 480px); }
  .clock { display: none !important; }
  .story-side { width: 100%; max-width: 460px; }
  .clock { justify-content: center; font-size: clamp(40px, 11vw, 60px); margin-bottom: 10px; }
  .ladder li { display: none; text-align: left; }
  .ladder li.is-active { display: grid; transform: none; }
  .story-note { margin-top: 10px; font-size: 13px; }
}
@media (max-width: 760px) {
  .nav nav { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); flex: none; }
  .nav-links { flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(21,19,31,.95); border: 1px solid var(--line-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease); }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 17px; }
  .nav-pill { justify-content: space-between; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .hero-phone { height: min(60svh, 520px); }
  .chip { padding: 9px 12px 9px 9px; font-size: 12.5px; gap: 9px; }
  .chip small { font-size: 11.5px; }
  .chip .avatar, .chip-sun { width: 28px; height: 28px; font-size: 11px; }
  .chip-a { right: auto; left: -18%; top: 8%; }
  .chip-b { left: auto; right: -20%; top: 40%; }
  .chip-c { right: auto; left: -14%; top: 74%; }
  .tile, .t-sos, .t-moments, .t-packet { grid-column: 1 / -1; }
  .moments { flex-direction: column; align-items: flex-start; gap: 10px; height: auto; min-height: 200px; }
  .m-ring { width: 84px; height: 84px; position: absolute; right: 16px; top: 16px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .g-card img { border-radius: 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); }
  .g-card figcaption { font-size: 10.5px; }
  .g-mid { --lift: -16px; }
  .plans { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .btn { padding: 15px 22px; }
  .cta-row .btn { width: 100%; max-width: 360px; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .hold { width: 190px; height: 190px; }
  .hold-label { font-size: 30px; }
}

/* ---------- Reduced motion: no choreography, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; padding: 120px 0 60px; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; opacity: 1; }
  .hero-phone { position: relative; left: auto; top: auto; transform: none; margin: 50px auto 0; }
  .chip, .scroll-cue { display: none; }
  .story { height: auto; }
  .story-stage { position: relative; height: auto; padding: 100px 0; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; filter: none; }
  .ticker-track, .kinetic-track { animation: none; }
  .ladder li { display: grid !important; }
  .ladder span { max-height: none; opacity: 1; }
}

/* ---------- Launch-list dialog ---------- */
.notify {
  width: min(460px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 0; border-radius: 28px; color: var(--ink); overflow: auto;
  background: linear-gradient(170deg, #34213a, var(--surface) 45%);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 120px -30px rgba(247,150,62,.5);
}
.notify::backdrop { background: rgba(10, 8, 18, .62); backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); }
.notify[open] { animation: notifyIn .5s var(--ease-spring); }
.notify[open]::backdrop { animation: fadeIn .35s var(--ease); }
@keyframes notifyIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes fadeIn { from { opacity: 0; } }
.notify-form, .notify-done { padding: 34px 30px 26px; text-align: center; }
.notify-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.notify-close:hover { background: rgba(255,255,255,.12); }
.notify-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px -10px rgba(247,150,62,.6); }
.notify h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 10px; }
.notify-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; }
.notify .field { text-align: left; }
.notify label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 7px 4px; }
.notify input {
  width: 100%; padding: 15px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(15, 13, 24, .6); border: 1px solid var(--line-strong); outline: none; transition: border-color .2s, box-shadow .2s;
}
.notify input::placeholder { color: var(--dim); }
.notify input:focus { border-color: rgba(255,197,77,.7); box-shadow: 0 0 0 4px rgba(247,150,62,.18); }
.notify input[aria-invalid="true"] { border-color: rgba(255,107,99,.8); box-shadow: 0 0 0 4px rgba(255,107,99,.15); }
.or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--dim); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-error { min-height: 1.4em; margin: 12px 0 6px; color: #ff9d96; font-size: 14px; font-weight: 500; }
.notify-error:empty { min-height: 0; margin: 8px 0 0; }
.notify-submit { width: 100%; margin-top: 8px; }
.notify-submit[aria-busy="true"] { pointer-events: none; }
.notify-submit[aria-busy="true"] span { opacity: .4; }
.notify-submit[aria-busy="true"]::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #2a1405; border-right-color: transparent; animation: spin .7s linear infinite; }
.notify-fine { color: var(--dim); font-size: 12.5px; line-height: 1.5; margin: 16px 0 0; }
.notify-done p { color: var(--muted); margin: 0 0 24px; }
.done-sun { width: 96px; height: 96px; margin: 6px auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff4d6, var(--sun-c) 45%, var(--sun-b) 80%); box-shadow: 0 0 80px 14px rgba(247,150,62,.45); animation: popIn .7s var(--ease-spring); }
.done-sun span { font-size: 40px; font-weight: 800; color: #2a1405; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }

/* ---------- Support page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.support .container { max-width: 1080px; }
.support h1 { margin-bottom: 12px; }
.support .lede { margin-bottom: 24px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 8px; }
.sup-card { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: linear-gradient(170deg, #2c2238, var(--surface) 50%); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.sup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sup-field { position: relative; margin-bottom: 16px; }
.sup-field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 7px 4px; }
.sup-field label::after { content: " *"; color: var(--sun-b); }
.sup-field input, .sup-field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(15, 13, 24, .6); border: 1px solid var(--line-strong); outline: none; transition: border-color .2s, box-shadow .2s;
}
.sup-field textarea { resize: vertical; min-height: 150px; line-height: 1.5; padding-bottom: 30px; }
.sup-field input::placeholder, .sup-field textarea::placeholder { color: var(--dim); }
.sup-field input:focus, .sup-field textarea:focus { border-color: rgba(255,197,77,.7); box-shadow: 0 0 0 4px rgba(247,150,62,.18); }
.sup-field [aria-invalid="true"] { border-color: rgba(255,107,99,.8); box-shadow: 0 0 0 4px rgba(255,107,99,.15); }
.sup-count { position: absolute; right: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); pointer-events: none; }
.sup-submit { width: 100%; margin-top: 4px; }
.sup-submit[aria-busy="true"] { pointer-events: none; }
.sup-submit[aria-busy="true"] span { opacity: .4; }
.sup-submit[aria-busy="true"]::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #2a1405; border-right-color: transparent; animation: spin .7s linear infinite; }
.sup-card .notify-fine { text-align: center; }
.sup-done { text-align: center; padding: 20px 0 6px; outline: none; }
.sup-done h2 { font-family: var(--font-display); font-size: 32px; margin: 0 0 8px; }
.sup-done p { color: var(--muted); margin: 0 0 22px; }
.sup-help { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sup-help h2 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-c); margin: 0 0 14px; }
.sup-help ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sup-help li { margin: 0; }
.sup-help li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.sup-help li span { color: var(--muted); font-size: 15px; }
.sup-links { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sup-row { grid-template-columns: 1fr; gap: 0; } }