/* officialtempo.app — the same look as the app (lib/theme/theme.dart) and
   link.officialtempo.app: Eudoxus Sans, #007AFF, #F5F5F5 / true black,
   flat 16px cards. Light by default; the nav toggle sets data-theme on
   <html> (remembered per visitor). Layout: one centered column of story
   sections; the tour pins a phone while its steps scroll past. */

@font-face { font-family: "Eudoxus Sans"; src: url("/assets/EudoxusSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Eudoxus Sans"; src: url("/assets/EudoxusSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Eudoxus Sans"; src: url("/assets/EudoxusSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5F5F5;
  --bg-2: #ECEEF2;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-2: #475569;
  --text-3: #94A3B8;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #007AFF;
  --blue-tint: rgba(0, 122, 255, 0.10);
  --glow: rgba(0, 122, 255, 0.22);
  --t-you: #007AFF;
  --t-plans: #2BA59A;
  --t-work: #D9A15B;
  --t-sleep: #6F6BC6;
  --t-free: rgba(30, 41, 59, 0.12);
  --green: #34C759;
  --shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.35);
  /* Inside the phone: the app's own surfaces */
  --p-bg: #F5F5F5;
  --p-card: #FFFFFF;
  --p-text: #1E293B;
  --p-text-2: #475569;
  --p-text-3: #94A3B8;
  --p-frame: #0B0D12;
  --p-tab: rgba(255, 255, 255, 0.94);
  --p-tab-off: #9CA3AF;
  --font: "Eudoxus Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0A0A0B;
  --card: #121212;
  --text: #E6E6E6;
  --text-2: #AAAAAA;
  --text-3: #666666;
  --line: rgba(255, 255, 255, 0.09);
  --blue-tint: rgba(0, 122, 255, 0.18);
  --glow: rgba(0, 122, 255, 0.32);
  --t-plans: #3DBBAE;
  --t-work: #E2B06E;
  --t-sleep: #8C88DE;
  --t-free: rgba(230, 230, 230, 0.16);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  --p-bg: #000000;
  --p-card: #161616;
  --p-text: #E6E6E6;
  --p-text-2: #AAAAAA;
  --p-text-3: #666666;
  --p-frame: #1C1C1E;
  --p-tab: rgba(28, 28, 30, 0.94);
  --p-tab-off: #5C5C60;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* Theme switch: a circle that grows from the toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal 0.7s var(--ease-out); }
@keyframes reveal { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 32px)); } to { clip-path: circle(var(--vr, 150vmax) at var(--vx, 90%) var(--vy, 32px)); } }

/* ── Scroll progress ───────────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--t-sleep), var(--t-plans)); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.pill) { text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.nav-links a:not(.pill):hover { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.pill) { display: none; } .nav-links { gap: 10px; } }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform 0.35s var(--ease-spring); }
.theme:hover { transform: rotate(-12deg) scale(1.06); }
.theme svg { width: 19px; height: 19px; position: absolute; transition: transform 0.6s var(--ease-spring), opacity 0.35s; }
.theme .moon { transform: translateY(26px) rotate(-60deg); opacity: 0; }
[data-theme="dark"] .theme .sun-i { transform: translateY(-26px) rotate(60deg); opacity: 0; }
[data-theme="dark"] .theme .moon { transform: none; opacity: 1; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 999px; transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out); box-shadow: 0 6px 20px -6px var(--glow); white-space: nowrap; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--glow); }
.pill:active { transform: scale(0.97); }
.pill.big { font-size: 17px; padding: 16px 26px; }
.pill svg { transition: transform 0.35s var(--ease-spring); }
.pill:hover svg { transform: translateX(3px); }
.ghost { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; padding: 16px 22px; border-radius: 999px; color: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, 0.55); transition: background-color 0.25s; }
.ghost:hover { background: var(--blue-tint); }

/* ── Reveal helpers ────────────────────────────────────────────────────── */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.split.in .w > span, .ready .split .w > span { transform: none; }
.js .fade { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .ready .fade, .js .fade.in { opacity: 1; transform: none; }
.js .pop { opacity: 0; transform: translateY(28px) scale(0.96); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-spring); transition-delay: var(--d, 0ms); }
.js .pop.in { opacity: 1; transform: none; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 140px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero-copy { margin-inline: auto; } .hero-actions { justify-content: center; } }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; z-index: 0; filter: blur(70px); opacity: 0.85; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 { width: 560px; height: 560px; left: 52%; top: 6%; background: radial-gradient(circle, rgba(0,122,255,0.36), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 460px; height: 460px; left: 66%; top: 34%; background: radial-gradient(circle, rgba(111,107,198,0.30), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 420px; height: 420px; left: 40%; top: 40%; background: radial-gradient(circle, rgba(43,165,154,0.22), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(70px, -50px) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-60px, -70px) scale(1.15); } }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-tint); padding: 7px 13px; border-radius: 999px; margin-bottom: 22px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, var(--t-sleep) 55%, var(--t-plans) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin: 0 0 32px; max-width: 520px; text-wrap: pretty; }
@media (max-width: 920px) { .lede { margin-inline: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-foot { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* ── Phone ─────────────────────────────────────────────────────────────────
   Each screen is laid out at a real iPhone's size (393 × 852 pt) with the
   values from the Flutter code (padding, radii, font sizes, colors), then
   scaled into the frame. Change a screen in the app → change it here. */
.stage { position: relative; z-index: 1; display: grid; place-items: center; perspective: 1400px; min-height: 760px; }
.device { position: relative; width: 300px; }
.phone {
  position: relative; width: 300px; height: 625px; border-radius: 52px; padding: 11px; background: var(--p-frame);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.06) inset, 0 50px 100px -30px rgba(15, 23, 42, 0.45), 0 30px 60px -40px var(--glow);
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) rotateZ(var(--rz, 1.5deg)); transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out); will-change: transform;
}
.phone.flat { transform: none; }
/* The mask keeps Safari clipping to the rounded corners while the phone is
   tilted in 3D; without it the island and content slip past the edge. */
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--a-bg); text-align: left; isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); }

/* The app, at 1 pt = 1 px before scaling. */
.ui {
  position: absolute; left: 0; top: 0; width: 393px; height: 852px; overflow: hidden;
  transform: scale(0.70738); transform-origin: 0 0;
  background: var(--a-bg); color: var(--a-text); font-family: var(--font);
  font-size: 14px; line-height: 1.35; letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
:root {
  --a-bg: #F5F5F5; --a-card: #FFFFFF; --a-text: #1E293B; --a-text-2: #475569;
  --a-muted: #757575; --a-primary: #007AFF; --a-ios-blue: #007AFF; --a-line: rgba(30,41,59,0.08);
  --a-nav: #FFFFFF; --a-nav-border: #E0E0E0; --a-nav-on: #000000; --a-nav-off: rgba(128,128,128,0.6);
  --a-pick: rgba(230,224,233,0.3);
}
:root[data-theme="dark"] {
  --a-bg: #000000; --a-card: #121212; --a-text: #E6E6E6; --a-text-2: #AAAAAA;
  --a-muted: #757575; --a-primary: #0062CC; --a-line: rgba(230,230,230,0.08);
  --a-nav: #1A1A1A; --a-nav-border: #2C2C2E; --a-nav-on: #FFFFFF; --a-nav-off: rgba(255,255,255,0.5);
  --a-pick: rgba(54,52,59,0.3);
}
.ui svg { width: 1em; height: 1em; flex: none; }

/* iOS status bar: 54 pt, Dynamic Island 126 × 37 */
/* Each side of the island is its own centered "ear", like iOS lays it out. */
.a-status { position: absolute; inset: 0 0 auto 0; height: 54px; padding-top: 6px; z-index: 6; display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: var(--a-text); }
.a-status > span { width: 134px; display: flex; align-items: center; justify-content: center; }
.a-status > span:first-child { padding-left: 10px; }
.a-status > span:last-child { padding-right: 6px; }
/* The app's ScrollTopBlur: invisible at rest, fades in over the first
   120 pt of scroll (opacity set by site.js). Full blur behind the status
   bar, falling off to nothing 56 pt below it. */
.a-topblur { position: absolute; inset: 0 0 auto 0; height: 110px; z-index: 5; pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--a-bg) 72%, transparent), color-mix(in srgb, var(--a-bg) 50%, transparent) 49%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 49%, transparent); mask-image: linear-gradient(to bottom, #000 49%, transparent); }
.a-island { position: absolute; top: 11px; left: 50%; margin-left: -63px; width: 126px; height: 37px; border-radius: 20px; background: #000; z-index: 7; }
.a-sig { display: flex; align-items: center; gap: 5px; }
.ui .sb-cell { width: 18px; height: 12px; }
.ui .sb-wifi { width: 16px; height: 12px; }
.ui .sb-batt { width: 27.5px; height: 13px; }

/* Floating nav bar: 85% wide, 56 tall, radius 28, 24 from the bottom */
.a-nav { position: absolute; left: 29.5px; bottom: 32px; width: 334px; height: 56px; border-radius: 28px; background: var(--a-nav); border: 0.8px solid var(--a-nav-border); box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-around; align-items: center; z-index: 5; }
.a-nav span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; color: var(--a-nav-off); font-size: 10px; font-weight: 500; }
.a-nav span.on { color: var(--a-nav-on); }
.a-nav svg { font-size: 22px; }

/* Home: content starts 16 below the status bar, 16 side padding */
.a-scroll { position: absolute; left: 0; top: 0; width: 393px; padding: 70px 16px 140px; will-change: transform; }
.a-greet { display: flex; align-items: center; padding: 16px 0; }
.a-greet > svg { font-size: 36px; margin-right: 16px; }
.a-greet h6 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.33; color: var(--a-text); }
.a-greet p { margin: 4px 0 0; font-size: 14px; letter-spacing: 0.25px; line-height: 1.43; color: var(--a-text-2); min-height: 40px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-caret { display: inline-block; width: 2px; height: 1em; background: var(--a-ios-blue); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.a-advisor { margin-bottom: 16px; background: var(--a-primary); border-radius: 16px; padding: 16px; display: flex; align-items: center; color: #fff; }
.a-advisor .box { padding: 10px; border-radius: 12px; background: #fff; color: var(--a-primary); font-size: 24px; display: grid; place-items: center; margin-right: 16px; }
.a-advisor .txt { flex: 1; min-width: 0; }
.a-advisor b { display: block; font-size: 16px; letter-spacing: 0.15px; font-weight: 700; }
.a-advisor span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 14px; letter-spacing: 0.25px; line-height: 1.43; color: rgba(255,255,255,0.9); }
.a-advisor > svg { font-size: 24px; color: rgba(255,255,255,0.8); margin-left: 8px; }
.a-nli { margin: 8px 4px 16px; padding: 14px 16px; background: var(--a-card); border-radius: 16px; border: 1px solid rgba(0,122,255,0.15); display: flex; align-items: center; color: var(--a-ios-blue); }
.a-nli > svg:first-child { font-size: 20px; margin-right: 12px; }
.a-nli span { flex: 1; min-width: 0; color: var(--a-text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-nli > svg:last-child { font-size: 22px; }
.a-card { background: var(--a-card); border-radius: 16px; margin-bottom: 16px; }
.a-rem { padding: 12px 16px 16px; }
.a-rem-head { display: flex; align-items: center; gap: 16px; }
.a-rem-head h6 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.15px; }
.a-rem-head .plus { font-size: 20px; color: var(--a-primary); }
.a-rem-head .hist { font-size: 22px; color: var(--a-text); }
.a-rem-list { margin-top: 12px; }
.a-rem-row { display: flex; align-items: center; padding: 4px 0; font-size: 14px; letter-spacing: 0.25px; }
.a-check { width: 24px; height: 24px; display: grid; place-items: center; margin-right: 8px; }
.a-check i { width: 18px; height: 18px; border-radius: 2px; border: 2px solid var(--a-text-2); }
.a-rem-row small { margin-left: 6px; font-size: 12px; letter-spacing: 0.4px; color: color-mix(in srgb, var(--a-text) 50%, transparent); }
.a-snap { padding: 20px 16px; text-align: center; }
.a-snap h6, .a-qa h6 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.15px; text-align: center; }
.a-snap-row { display: flex; margin-top: 24px; }
.a-snap-row > div { flex: 1; display: flex; flex-direction: column; align-items: center; }
.a-snap .ib { padding: 10px; border-radius: 10px; font-size: 22px; display: grid; place-items: center; }
.a-snap b { margin-top: 8px; font-size: 16px; font-weight: 700; }
.a-snap small { margin-top: 4px; font-size: 12px; letter-spacing: 0.4px; line-height: 1.33; color: var(--a-text-2); white-space: pre-line; }
.a-qa { padding: 10px 16px 16px; }
.a-qa h6 { padding: 10px 0 0; }
.a-qa-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 10px; }
.a-qa-grid div { height: 70px; border-radius: 16px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; }
.a-qa-grid svg { font-size: 22px; }

/* App bars (Calendar, Insights): white, bottom radius 20, elevation 4 */
.a-bar { position: absolute; inset: 0 0 auto 0; background: var(--a-card); border-radius: 0 0 20px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); z-index: 4; }
.a-bar-top { height: 68px; margin-top: 54px; display: flex; align-items: center; justify-content: center; position: relative; }
.a-bar-top.short { height: 56px; }
.a-bar-top h6 { margin: 0; font-size: 22px; font-weight: 700; color: var(--a-text); }
.a-bar-top .acts { position: absolute; right: 16px; display: flex; gap: 4px; }
.a-bar-top .acts span { width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; color: var(--a-text); }
.a-month { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.a-month span { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; color: var(--a-text); }
.a-month b { font-size: 16px; font-weight: 500; color: var(--a-text); }
.a-days { display: flex; height: 80px; padding: 0 16px; overflow: hidden; }
.a-days div { flex: none; width: 60px; margin: 0 4px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--a-text); }
.a-days div small { font-size: 12px; font-weight: 700; }
.a-days div b { margin-top: 4px; font-size: 18px; font-weight: 700; }
.a-days div.on { background: var(--a-primary); color: #fff; }
.a-status-line { padding: 12px 20px 14px; }
.a-status-line > div { height: 34px; padding-top: 10px; border-top: 1px solid var(--a-line); display: flex; align-items: center; font-size: 14px; }
.a-status-line i { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; flex: none; }
.a-status-line .lbl { flex: 1; font-weight: 600; color: var(--a-text); }
.a-status-line .lbl em { font-style: normal; font-weight: 500; color: color-mix(in srgb, var(--a-text) 75%, transparent); }
.a-status-line .chg { color: var(--a-primary); font-weight: 600; display: flex; align-items: center; }
.a-status-line .chg svg { font-size: 14px; }

/* Calendar timeline: 52 rail, dot, card */
.a-events { position: absolute; left: 0; right: 0; top: 332px; padding: 0 16px; }
.a-row { display: flex; align-items: stretch; }
.a-row > .a-dot { align-self: flex-start; }
.a-rail { width: 52px; flex: none; display: flex; flex-direction: column; }
.a-rail time { display: flex; height: 40px; align-items: center; justify-content: flex-end; padding-right: 12px; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: right; color: var(--a-text-2); white-space: pre-line; }
.a-rail i { display: block; width: 1.5px; flex: 1; margin-left: calc(52px - 12px - 1.5px); background: color-mix(in srgb, var(--a-primary) 15%, transparent); }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-primary); margin: 12px 10px 0 0; flex: none; }
.a-ev { flex: 1; min-width: 0; padding-bottom: 8px; }
.a-ev-card { background: var(--a-card); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.a-ev-title { display: flex; align-items: flex-start; gap: 8px; }
.a-ev-title b { flex: 1; font-size: 16px; font-weight: 700; color: var(--a-text); }
.a-wx { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 8px; background: color-mix(in srgb, var(--a-text) 7%, transparent); color: color-mix(in srgb, var(--a-text) 55%, transparent); font-size: 11px; font-weight: 500; }
.a-wx svg { font-size: 11px; }
.a-ev-row { display: flex; align-items: flex-start; margin-top: 8px; }
.a-ev-chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-time { padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--a-primary) 10%, transparent); color: var(--a-primary); font-size: 12px; font-weight: 600; letter-spacing: 0.1px; white-space: nowrap; }
.a-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.a-tag svg { font-size: 11px; }
.a-btns { display: flex; gap: 4px; margin-left: 8px; }
.a-btns span { width: 38px; height: 38px; display: grid; place-items: center; }
.a-btns span i { padding: 8px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.a-btns .edit i { background: color-mix(in srgb, var(--a-primary) 10%, transparent); color: var(--a-primary); }
.a-btns .hide i { background: color-mix(in srgb, var(--a-text) 8%, transparent); color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.a-btns .del i { background: rgba(179,38,30,0.1); color: #B3261E; }
/* Insights: app bar + tabs, then the Balance cards */
.a-tabs { display: flex; height: 46px; }
.a-tabs span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #757575; position: relative; }
.a-tabs span.on { color: var(--a-ios-blue); font-weight: 700; }
.a-tabs span.on::after { content: ""; position: absolute; bottom: 0; left: 50%; margin-left: -30px; width: 60px; height: 2px; background: var(--a-ios-blue); }
.a-ins { position: absolute; left: 0; right: 0; top: 156px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.a-bc { background: var(--a-card); border-radius: 16px; padding: 16px; }
.a-bc h6 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.15px; }
.a-bc .sub { margin-top: 2px; font-size: 12px; letter-spacing: 0.4px; color: var(--a-text-2); }
.a-wbar { margin-top: 14px; height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: var(--t-free); }
.a-wbar i { display: block; height: 100%; }
.a-leg { margin-top: 14px; }
.a-leg div { display: flex; align-items: center; padding: 5px 0; font-size: 14px; }
.a-leg i { width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; flex: none; }
.a-leg small { margin-left: 6px; font-size: 12px; color: var(--a-text-2); }
.a-leg b { margin-left: auto; font-weight: 600; }
.a-dbars { margin-top: 14px; height: 120px; display: flex; }
.a-dbars span { flex: 1; padding: 0 3px; display: flex; }
.a-dbars span > div { flex: 1; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.a-dbars i { display: block; }
.a-dlab { display: flex; margin-top: 6px; }
.a-dlab span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--a-text-2); }
.a-dleg { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--a-text-2); }
.a-dleg span { display: flex; align-items: center; gap: 5px; }
.a-dleg i { width: 8px; height: 8px; border-radius: 2px; }

/* Things to do: full-bleed map, floating controls, bottom panel */
.a-map { position: absolute; inset: 0; background: #F2EFE9; overflow: hidden; }
:root[data-theme="dark"] .a-map { background: #22252B; }
.a-map svg.roads { position: absolute; inset: 0; width: 393px; height: 852px; }
.a-top { position: absolute; left: 16px; right: 16px; top: 62px; z-index: 3; }
.a-top-row { display: flex; align-items: center; gap: 8px; }
.a-round { width: 44px; height: 44px; border-radius: 22px; background: var(--a-card); display: grid; place-items: center; font-size: 20px; color: var(--a-text); box-shadow: 0 2px 8px rgba(0,0,0,0.12); flex: none; }
.a-pillc { height: 44px; border-radius: 22px; background: var(--a-card); display: flex; align-items: center; gap: 6px; padding: 0 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: 15px; font-weight: 600; color: var(--a-text); white-space: nowrap; }
.a-pillc svg { font-size: 18px; color: var(--a-primary); }
.a-pillc.mode { padding: 0 14px; color: var(--a-primary); }
.a-pillc.mode svg { font-size: 16px; }
.a-filters { display: flex; gap: 8px; margin-top: 10px; }
.a-filters span { height: 36px; padding: 0 14px; border-radius: 12px; background: var(--a-card); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--a-text); box-shadow: 0 2px 8px rgba(0,0,0,0.1); white-space: nowrap; }
.a-filters span.on { background: var(--a-primary); color: #fff; }
.a-filters svg { font-size: 15px; }
.a-mpin { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.25); animation: drop 0.8s var(--ease-spring) both; }
.a-mpin.sel { width: 42px; height: 42px; font-size: 22px; }
.a-me { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #007AFF; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(0,122,255,0.18); }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 470px; background: var(--a-card); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,0.12); padding: 12px 20px 0; z-index: 3; }
.a-handle { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--a-text) 20%, transparent); margin: 0 auto 12px; }
.a-seg { display: flex; justify-content: center; }
.a-seg div { height: 32px; border-radius: 16px; background: #F5F5F5; display: flex; padding: 0; }
:root[data-theme="dark"] .a-seg div { background: rgba(0,0,0,0.26); }
.a-seg span { height: 28px; margin: 2px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; font-size: 13px; color: var(--a-text); }
.a-seg span.on { background: var(--a-primary); color: #fff; font-weight: 700; box-shadow: 0 2px 4px color-mix(in srgb, var(--a-primary) 30%, transparent); }
.a-facts { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--a-text); }
.a-facts span { display: flex; align-items: center; gap: 8px; }
.a-facts svg { font-size: 18px; }
.a-picks { margin-top: 16px; }
.a-pick { display: flex; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--a-pick); border: 1px solid color-mix(in srgb, var(--a-text) 10%, transparent); margin-bottom: 12px; }
.a-pick.sel { background: color-mix(in srgb, var(--a-primary) 10%, transparent); border: 2px solid var(--a-primary); padding: 15px; }
.a-pick .ci { padding: 8px; border-radius: 8px; font-size: 24px; display: grid; place-items: center; margin-right: 16px; }
.a-pick .bd { flex: 1; min-width: 0; }
.a-pick .nm { display: flex; align-items: baseline; gap: 8px; }
.a-pick .nm b { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; color: var(--a-text); }
.a-pick .nm small, .a-pick .cat { font-size: 12px; letter-spacing: 0.4px; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.a-pick .cat { display: block; margin-top: 2px; }
.a-why { display: flex; gap: 6px; margin-top: 6px; font-size: 12px; letter-spacing: 0.4px; line-height: 1.35; color: color-mix(in srgb, var(--a-text) 80%, transparent); }
.a-why svg { font-size: 14px; color: var(--a-primary); margin-top: 1px; }

/* Spotlight: outlines the part of the screen being explained, dims the rest */
/* The hero Home screen really scrolls (wheel, trackpad or finger). */
#heroScroll { height: 852px; overflow-y: auto; scrollbar-width: none; will-change: auto; -webkit-overflow-scrolling: touch; }
#heroScroll::-webkit-scrollbar { display: none; }
#heroPhone .ui :is(.a-greet, .a-advisor, .a-nli, .a-rem, .a-snap, .a-qa, .a-nav) { cursor: pointer; }
/* It's a screen, not a page: no text selection or image dragging inside. */
.ui { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ui * { -webkit-user-drag: none; }
#heroScroll.dragging, #heroScroll.dragging * { cursor: grabbing; }
.a-spot { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; border-radius: 16px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 3px #007AFF, 0 0 0 9999px rgba(15,23,42,0.16); transition: opacity 0.45s, left 0.75s var(--ease-out), top 0.75s var(--ease-out), width 0.75s var(--ease-out), height 0.75s var(--ease-out), border-radius 0.75s; }
:root[data-theme="dark"] .a-spot { box-shadow: 0 0 0 3px #0A84FF, 0 0 0 9999px rgba(0,0,0,0.45); }
.a-spot.on { opacity: 1; }

/* Floating chips anchored to the phone's edges (never over its text) */
.float { position: absolute; z-index: 5; background: var(--card); color: var(--text); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 18px 40px -18px rgba(15,23,42,0.35), 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; animation: bob 6s ease-in-out infinite; text-align: left; }
.float small { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; }
.float .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .dot svg { width: 16px; height: 16px; }
.f1 { right: calc(100% - 2px); top: 132px; animation-delay: -1s; }
.f2 { left: calc(100% - 2px); top: 300px; animation-delay: -3s; }
.f3 { right: calc(100% - 2px); top: 470px; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
/* Without room beside the phone, any chip would sit on the screen, so the
   caption under the phone carries the story on its own. */
@media (max-width: 1240px) { .float { display: none; } }

/* Caption under the hero phone: what the highlighted part does */
.guide { position: relative; z-index: 1; width: 320px; max-width: 100%; margin-top: 30px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: 0 18px 40px -22px rgba(15,23,42,0.35), 0 0 0 1px var(--line); text-align: left; }
.g-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--blue); transition: background-color 0.5s, color 0.5s; }
.g-ic svg { width: 19px; height: 19px; }
.g-tx { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.g-tx b { font-size: 14.5px; letter-spacing: -0.01em; }
.g-tx span { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.g-tx.swap { animation: gSwap 0.55s var(--ease-out); }
@keyframes gSwap { from { opacity: 0; transform: translateY(6px); } }
.guide { transition: box-shadow 0.4s; }
.guide.picked { box-shadow: 0 18px 40px -22px rgba(15,23,42,0.35), 0 0 0 1.5px color-mix(in srgb, var(--blue) 55%, transparent); }

/* ── Marquee ribbon ────────────────────────────────────────────────────── */
.ribbon { padding: 26px 0; overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon .track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.ribbon:hover .track { animation-play-state: paused; }
.ribbon span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); }
.ribbon span i { width: 8px; height: 8px; border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.band { padding: 120px 0; position: relative; }
.band.alt { background: var(--bg-2); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
.sub { font-size: 18px; color: var(--text-2); margin: 0; max-width: 580px; text-wrap: pretty; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* Why: a short note, then three promises */
.note-card { max-width: 760px; margin: 0 auto; text-align: left; font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--text); letter-spacing: -0.01em; }
.note-card p { margin: 0 0 18px; }
.note-card .hl { color: var(--text-3); transition: color 0.6s var(--ease-out); }
.note-card .hl.lit { color: var(--text); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }
.glow-card { position: relative; overflow: hidden; background: var(--card); border-radius: 22px; isolation: isolate; transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.glow-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); }
.glow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.glow-card:hover::before { opacity: 1; }
.promise { padding: 28px; text-align: left; }
.promise .num { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; }
.promise h3 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.promise p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.promise .glyph { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.promise .glyph svg { width: 22px; height: 22px; }

/* Tour: steps scroll past a pinned phone */
.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.tour .steps { display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.6s var(--ease-out); }
.step.active { opacity: 1; }
.step .tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); margin-bottom: 18px; }
.step h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }
.step p { font-size: 17.5px; color: var(--text-2); margin: 0; max-width: 470px; }
.step ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.step li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pin-col { position: relative; }
.pinned { position: sticky; top: calc(50vh - 315px); display: grid; place-items: center; }
.tour .screen > .view { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); }
.tour .screen > .view.show { opacity: 1; transform: none; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.5s var(--ease-out), background-color 0.5s; }
.dots i.on { width: 26px; background: var(--blue); }
.step .mini-device { display: none; }
@media (max-width: 920px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .pin-col { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; }
  .step .mini-device { display: grid; place-items: center; margin-top: 30px; }
  .step .mini-device .phone { transform: none; }
}

/* Feature scenes */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .copy { order: 2; }
@media (max-width: 920px) { .feature { grid-template-columns: 1fr; gap: 40px; } .feature.flip .copy { order: 0; } }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; color: var(--text-2); font-size: 16px; }
.points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 2px; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.panel { background: var(--card); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.panel h4 { margin: 0; font-size: 18px; }
.panel .muted { color: var(--text-2); font-size: 13.5px; margin: 2px 0 18px; }

.lifelist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lifelist span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); }
.week { display: grid; gap: 9px; }
.slot { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.slot .when { font-size: 13px; font-weight: 700; color: var(--text-3); }
.slot .lane { height: 50px; border-radius: 14px; background: var(--t-free); position: relative; overflow: hidden; }
.slot .busy { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--t-work) 38%, transparent); border-right: 2px solid var(--card); }
.slot .busy::after { content: "Work"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--t-work) 70%, var(--text)); }
.placed { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; padding: 0 12px; gap: 7px; white-space: nowrap; transform: translateX(60px) scale(0.9); opacity: 0; transition: transform 0.9s var(--ease-spring), opacity 0.5s; transition-delay: var(--d, 0ms); }
.in .placed { transform: none; opacity: 1; }
.placed svg { width: 14px; height: 14px; }

.invite { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--bg); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.person b { display: block; font-size: 14.5px; }
.person small { color: var(--text-2); font-size: 12.5px; }
.rsvp { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease-spring); }
.rsvp.pending { background: rgba(142,142,147,0.15); color: #8E8E93; }
.rsvp.going { background: rgba(52,199,89,0.15); color: #26A148; transform: scale(1.06); }
.rsvp.maybe { background: rgba(255,149,0,0.15); color: #E08600; }
.toast { margin-top: 6px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #1F2937; color: #fff; font-size: 13.5px; transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease-spring), opacity 0.4s; }
.toast.show { transform: none; opacity: 1; }
.toast i { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; flex: none; }
.toast i svg { width: 14px; height: 14px; color: #fff; }

/* Everything else */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.tile { padding: 26px; }
.tile .glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; transition: transform 0.6s var(--ease-spring); }
.tile:hover .glyph { transform: rotate(-8deg) scale(1.08); }
.tile .glyph svg { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Privacy */
.shield { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); margin-bottom: 24px; position: relative; }
.shield svg { width: 36px; height: 36px; }
.shield::after { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 1.5px solid var(--glow); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.3; } }

/* Closing */
.cta { padding: 150px 0 130px; text-align: center; overflow: hidden; }
.orbit { position: relative; width: 320px; height: 320px; margin: 0 auto 36px; }
.orbit .icon { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 24px; box-shadow: 0 30px 60px -20px var(--glow); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-2deg); } }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); animation: turn 60s linear infinite; }
.orbit .ring.r2 { inset: 52px; animation-duration: 40s; animation-direction: reverse; }
.orbit .sat { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.orbit .sat span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--card); box-shadow: 0 10px 24px -10px rgba(15,23,42,0.35), 0 0 0 1px var(--line); animation: turn 60s linear infinite reverse; }
.orbit .r2 .sat span { animation-duration: 40s; animation-direction: normal; }
.orbit .sat svg { width: 20px; height: 20px; }
@keyframes turn { to { transform: rotate(360deg); } }
.ripple { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 1.5px solid var(--glow); animation: rip 5s var(--ease-out) infinite; pointer-events: none; }
.ripple.b { animation-delay: 1.7s; }
.ripple.c { animation-delay: 3.4s; }
@keyframes rip { from { transform: scale(0.5); opacity: 0.8; } to { transform: scale(3.4); opacity: 0; } }

footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--text-2); }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .phone { transform: none; }
  .ribbon .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ribbon .track [aria-hidden] { display: none; }
}
