/* 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.woff2") format("woff2"), url("/assets/EudoxusSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Eudoxus Sans"; src: url("/assets/EudoxusSans-SemiBold.woff2") format("woff2"), url("/assets/EudoxusSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Eudoxus Sans"; src: url("/assets/EudoxusSans-Bold.woff2") format("woff2"), 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);
  /* Hover and press: solid, deeper shades of the accent (no gradients) */
  --blue-hover: #0068DB;
  --blue-press: #0057B8;
  --blue-tint-hover: rgba(0, 122, 255, 0.16);
  --card-hover: #F7FAFF;
  --chip-hover: #E9EEF5;
  --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);
  --blue-hover: #2A8CFF;
  --blue-press: #0066D6;
  --blue-tint-hover: rgba(0, 122, 255, 0.28);
  --card-hover: #18191C;
  --chip-hover: #1E1F23;
  --glow: rgba(0, 122, 255, 0.32);
  --t-plans: #3DBBAE;
  --t-work: #E2B06E;
  --t-sleep: #8C88DE;
  --t-free: rgba(230, 230, 230, 0.22);
  --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; }

/* Hidden until a keyboard user tabs to it, then it sits over the nav. */
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-64px); transition: transform 0.2s; }
.skip:focus { transform: none; }
.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), background-color 0.2s; }
.theme:hover { transform: rotate(-12deg) scale(1.06); background: var(--chip-hover); }
.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: background-color 0.2s, transform 0.35s var(--ease-spring); white-space: nowrap; }
.pill:hover { background: var(--blue-hover); }
.pill:active { background: var(--blue-press); 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.2s, color 0.2s, box-shadow 0.2s; }
a.ghost:hover { background: var(--blue-tint-hover); color: var(--blue-hover); box-shadow: inset 0 0 0 1.5px var(--blue-hover); }
a.ghost:active { background: var(--blue-tint-hover); color: var(--blue-press); box-shadow: inset 0 0 0 1.5px var(--blue-press); }

/* ── 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; background: var(--c); box-shadow: 0 2px 8px color-mix(in srgb, var(--c) 30%, transparent); 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; overflow: hidden; background: var(--a-card); border-radius: 0 0 20px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); z-index: 4; }
/* Calendar: 54 status + 68 toolbar + 194 header. The header's contents run
   10 pt past 194, and the app clips them there, so this does too. */
.a-bar.cal { height: 316px; }
/* Today's events that have already ended fade back, like the app. */
.a-row.past { opacity: 0.38; }
.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; white-space: pre; overflow: hidden; text-overflow: ellipsis; 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: 320px; padding: 0 16px; }
.a-row { display: flex; align-items: flex-start; }
.a-row > .a-dot { align-self: flex-start; }
.a-rail { width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; }
.a-rail time { display: flex; align-self: stretch; 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; height: 110px; margin-right: 12px; 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-dlab span.today { font-weight: 800; }
/* Insights draws its title and recap icon in pure black (white in dark). */
.a-bar-top .ink, .a-bar-top .acts .ink { color: #000; }
:root[data-theme="dark"] .a-bar-top .ink, :root[data-theme="dark"] .a-bar-top .acts .ink { color: #fff; }
/* Calendar's "Your plans" button: 16 pt in, a red count badge */
.a-bar-top .lead { position: absolute; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; color: var(--a-text); }
.a-badge { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #FF3B30; color: #fff; font-size: 11px; font-weight: 500; line-height: 16px; text-align: center; }
.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 (things_to_do_page.dart): Apple Maps underneath, floating
   controls on the card color with the nav bar's soft shadow, and the
   sheet in the theme's card color (#F5F5F5) with 20 pt top corners. */
.t-map { position: absolute; inset: 0; overflow: hidden; }
.ui .t-tiles { position: absolute; inset: 0; width: 393px; height: 852px; }
.t-tiles .land { fill: #F7F3EB; }
.t-tiles .blocks rect { fill: #EFEADF; stroke: #FFFFFF; stroke-width: 6; }
.t-tiles .blocks rect.biz { fill: #FBEFC9; }
.t-tiles .park { fill: #C9E6B8; }
.t-tiles .park-path { fill: none; stroke: #E6F3DC; stroke-width: 3; }
.t-tiles .pond { fill: #A9D6F2; }
.t-tiles .water { fill: #A9D6F2; }
.t-tiles .avenue path { fill: none; stroke: #FFFFFF; stroke-width: 9; }
.t-tiles .labels text { font: 600 7.5px var(--font); letter-spacing: 0.6px; fill: #8D877C; }
.t-tiles .hood { font: 700 10px var(--font); letter-spacing: 1px; fill: #6F6A61; }
.t-tiles .hood.park-name { fill: #4E7A43; }
.t-tiles .met { fill: #E8DCC3; stroke: #FFFFFF; stroke-width: 3; }
.t-tiles .avenue path.minor { stroke-width: 5; }
:root[data-theme="dark"] .t-tiles .met { fill: #3A362B; stroke: #45453F; }
:root[data-theme="dark"] .t-tiles .hood.park-name { fill: #8DB582; }
:root[data-theme="dark"] .t-tiles .land { fill: #262624; }
:root[data-theme="dark"] .t-tiles .blocks rect { fill: #2F2F2C; stroke: #3B3B38; }
:root[data-theme="dark"] .t-tiles .blocks rect.biz { fill: #3A362B; }
:root[data-theme="dark"] .t-tiles .park { fill: #263A27; }
:root[data-theme="dark"] .t-tiles .park-path { stroke: #2F4630; }
:root[data-theme="dark"] .t-tiles .pond { fill: #1E3A4E; }
:root[data-theme="dark"] .t-tiles .water { fill: #1E3A4E; }
:root[data-theme="dark"] .t-tiles .avenue path { stroke: #45453F; }
:root[data-theme="dark"] .t-tiles .labels text, :root[data-theme="dark"] .t-tiles .hood { fill: #9A958B; }

/* Apple-style markers: a white-ringed glyph balloon with its name under it */
.t-pin, .t-cluster { position: absolute; width: 0; height: 0; animation: drop 0.8s var(--ease-spring) both; }
.t-pin i, .t-cluster b { position: absolute; left: -15px; top: -30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.t-pin i { background: var(--c); color: #fff; font-size: 16px; }
.t-pin i::after, .t-cluster b::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -4px; border: 4px solid transparent; border-top: 5px solid #fff; }
.t-cluster b { background: #1E88E5; color: #fff; font-size: 15px; font-weight: 700; }
.t-pin em, .t-cluster em { position: absolute; top: 4px; left: 0; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 600; color: #3A3A3C; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
:root[data-theme="dark"] .t-pin em, :root[data-theme="dark"] .t-cluster em { color: #E6E6E6; text-shadow: 0 0 2px #000, 0 0 3px #000; }
.t-me { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #007AFF; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }

/* Floating controls: 12 pt in from the safe area */
.t-top { position: absolute; left: 12px; right: 12px; top: 66px; z-index: 3; }
.t-row { display: flex; align-items: center; gap: 8px; }
.t-round { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--a-card); display: grid; place-items: center; font-size: 20px; color: var(--a-text); box-shadow: 0 3px 12px rgba(0,0,0,0.12); }
.t-chip { height: 44px; padding: 0 12px; border-radius: 22px; background: var(--a-card); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--a-text); white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,0.12); }
.t-chip svg { font-size: 18px; }
.t-chip svg.blue { color: #007AFF; }
.t-chip svg.green { color: #4CAF50; }
.t-chip svg.dn { font-size: 14px; margin-left: -2px; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
/* The chip row scrolls in the app; fade its right edge so the last chip
   reads as "more this way" instead of a clipped word. Padding keeps the
   chip shadows inside the mask. */
.t-filters { display: flex; gap: 8px; margin: -2px -12px -14px; padding: 12px 12px 14px; height: 72px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 91%); mask-image: linear-gradient(to right, #000 70%, transparent 91%); }
.t-filters span { flex: none; padding: 10px 14px; border-radius: 12px; background: var(--a-card); border: 1px solid color-mix(in srgb, var(--a-text) 10%, transparent); font-size: 14px; font-weight: 500; color: var(--a-text); box-shadow: 0 3px 12px rgba(0,0,0,0.12); white-space: nowrap; }
.t-filters span.on { background: linear-gradient(rgba(0,122,255,0.1), rgba(0,122,255,0.1)), var(--a-card); border: 2px solid #007AFF; padding: 9px 13px; color: #007AFF; font-weight: 600; }

/* The sheet */
.t-sheet { position: absolute; left: 0; right: 0; top: 483px; bottom: 0; z-index: 4; background: var(--a-bg); border-radius: 20px 20px 0 0; box-shadow: 0 -3px 16px rgba(0,0,0,0.12); padding: 8px 20px 0; }
.t-handle { width: 40px; height: 5px; border-radius: 3px; margin: 0 auto; background: color-mix(in srgb, var(--a-text) 20%, transparent); }
.t-seg { display: flex; justify-content: center; margin-top: 12px; height: 32px; }
.t-seg span { height: 28px; margin: 2px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; font-size: 13px; color: rgba(0,0,0,0.54); }
:root[data-theme="dark"] .t-seg span { color: rgba(255,255,255,0.7); }
.t-seg span.on { background: #007AFF; color: #fff; font-weight: 700; box-shadow: 0 2px 4px rgba(0,122,255,0.3); }
.t-facts { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--a-text); }
.t-facts span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.t-facts svg { font-size: 18px; }
.t-facts em { font-style: normal; font-weight: 500; margin-left: 4px; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.t-card { display: flex; align-items: flex-start; margin-top: 16px; }
.t-ci { flex: none; padding: 8px; border-radius: 8px; margin-right: 16px; font-size: 24px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.t-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-body b { font-size: 22px; line-height: 1.27; font-weight: 700; color: var(--a-text); }
.t-sub { margin-top: 4px; font-size: 14px; letter-spacing: 0.25px; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.t-hours, .t-why { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; letter-spacing: 0.4px; line-height: 1.33; }
.t-hours { margin-top: 4px; font-weight: 600; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.t-hours svg { font-size: 14px; }
.t-hours.open { color: #4CAF50; }
.t-why { margin-top: 6px; color: color-mix(in srgb, var(--a-text) 80%, transparent); }
.t-why svg { font-size: 14px; color: #007AFF; margin-top: 1px; }
.t-hide { flex: none; width: 48px; height: 48px; margin: -8px -12px 0 0; display: grid; place-items: center; font-size: 20px; color: color-mix(in srgb, var(--a-text) 40%, transparent); }
.t-add { margin-top: 20px; height: 48px; border-radius: 24px; background: #007AFF; color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; box-shadow: 0 2px 3px rgba(0,0,0,0.2); }
.t-two { display: flex; gap: 12px; margin-top: 12px; }
.t-two span { flex: 1; height: 48px; border-radius: 24px; background: rgba(0,122,255,0.1); color: #007AFF; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; }
.t-two svg { font-size: 18px; }

/* 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, background-color 0.3s; }
.glow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--card-hover); }.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; }

/* Benefit cards: icon tile in the feature's color, a bold promise, a short
   line, and a proof chip. Replaces plain checklists. */
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 520px; }
.perks li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -22px rgba(15, 23, 42, 0.35); }
.js .perks li.pop { transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-spring), background-color 0.2s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.perks li:hover { background: var(--card-hover); }
.pk-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); transition: background-color 0.2s, color 0.2s; }
.perks li:hover .pk-ic { background: var(--c); color: #fff; }
.pk-ic svg { width: 21px; height: 21px; }
.pk-tx { min-width: 0; }
.pk-tx b { display: block; font-size: 16.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.pk-tx span { display: block; font-size: 14.5px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.pk-tag { margin-left: auto; flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 78%, var(--text)); }
@media (max-width: 440px) { .pk-tag { display: none; } }
.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; cursor: pointer; }
.dots i.on { width: 26px; background: var(--blue); }
/* Taps land on the screen you can see, never one that's faded out. */
.tour #tourPhone .screen > .view { pointer-events: none; }
.tour #tourPhone .screen > .view.show { pointer-events: auto; }
#tourPhone .ui { cursor: pointer; }
.pinned .guide { margin-top: 16px; }
.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; } }
.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; } }

/* ── Live touches on the tour screens ──────────────────────────────────
   Each screen plays one small, real-feeling moment whenever it comes
   into view (site.js adds .live). Nothing floats over the screen. */
/* Home: the request types itself, then the reminder lands in the list */
.view.live .a-nli span { animation: twType 1.5s steps(34, end) 0.4s both; }
.view.live .a-rem-list .a-rem-row.new { overflow: hidden; animation: twRowOpen 0.6s var(--ease-spring) 2s both; }
@keyframes twType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes twRow { from { opacity: 0; transform: translateY(-8px) scale(0.96); } }
@keyframes twRowOpen { from { max-height: 0; padding-block: 0; opacity: 0; transform: translateY(-6px); } to { max-height: 40px; } }
/* Calendar: events slide in, and the next one's dot pings */
.view.live .a-events .a-row { animation: twRow 0.6s var(--ease-out) both; }
.view.live .a-events .a-row:nth-child(2) { animation-delay: 0.12s; }
.view.live .a-events .a-row:nth-child(3) { animation-delay: 0.24s; }
.a-events .a-row:nth-child(2) .a-dot { position: relative; }
.view.live .a-events .a-row:nth-child(2) .a-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--a-primary); animation: twPing 1.8s ease-out 0.8s infinite; }
@keyframes twPing { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.4); opacity: 0; } }
/* Insights: the week fills left to right, then each day grows up */
.view.live[data-tab="2"] .a-wbar { animation: twFill 1.1s var(--ease-out) 0.2s both; }
@keyframes twFill { from { clip-path: inset(0 100% 0 0 round 7px); } to { clip-path: inset(0 0 0 0 round 7px); } }
.a-dbars span > div { transform-origin: 50% 100%; }
.view.live[data-tab="2"] .a-dbars span > div { animation: twGrow 0.7s var(--ease-spring) both; }
.view.live[data-tab="2"] .a-dbars span:nth-child(1) > div { animation-delay: 0.5s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(2) > div { animation-delay: 0.58s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(3) > div { animation-delay: 0.66s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(4) > div { animation-delay: 0.74s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(5) > div { animation-delay: 0.82s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(6) > div { animation-delay: 0.9s; }
.view.live[data-tab="2"] .a-dbars span:nth-child(7) > div { animation-delay: 0.98s; }
@keyframes twGrow { from { transform: scaleY(0.04); } }
/* Things to do: your location pulses like Apple Maps; the open pick bobs */
.view.live .t-me { animation: twHalo 2s ease-out infinite; }
@keyframes twHalo { from { box-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 0 0 0 rgba(0,122,255,0.4); } to { box-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 0 0 22px rgba(0,122,255,0); } }
.view.live .t-pin.sel i { animation: twBob 2.4s ease-in-out 1s infinite; }
@keyframes twBob { 50% { transform: translateY(-4px); } }

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); }
.perks a { color: var(--blue); font-weight: 600; text-decoration: none; }
.perks a:hover { color: var(--blue-hover); }


/* ── More screens: Insights tabs, Meditate, Connections ─────────────────
   Values from insights_page.dart, your_time_tab.dart, meditation_page.dart
   and connection_log_page.dart. */
:root { --a-text-3: #94A3B8; --a-inset: #F5F5F5; }
:root[data-theme="dark"] { --a-text-3: #666666; --a-inset: #000000; }

/* Insights: three tabs side by side; site.js sets --tab and data-tab */
.a-tabs { position: relative; }
.a-tabs span.on::after { content: none; }
.a-tabs span { transition: color 0.25s; }
.a-tabs::after { content: ""; position: absolute; bottom: 0; width: 60px; height: 2px; background: var(--a-ios-blue); left: calc((var(--tab, 0) + 0.5) * (100% / 3) - 30px); transition: left 0.45s var(--ease-spring); }
.a-ins.pane { transform: translateX(calc((var(--i) - var(--tab, 0)) * 100%)); transition: transform 0.6s var(--ease-out); }

/* Make Time */
.mt-label { font-size: 11.5px; letter-spacing: 0.6px; font-weight: 700; text-transform: uppercase; color: var(--a-text-3); }
.mt-total { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--a-text-2); }
.mt-total b { font-size: 30px; letter-spacing: -0.5px; font-weight: 700; color: var(--a-text); }
.mt-up { margin-top: 4px; font-size: 13px; font-weight: 700; color: #34C759; }
.mt-bars { margin-top: 14px; height: 64px; display: flex; align-items: flex-end; }
.mt-bars i { flex: 1; margin: 0 3.5px; border-radius: 7px; background: rgba(0,122,255,0.2); transform-origin: 50% 100%; }
.mt-bars i.today { background: #007AFF; }
.mt-days { display: flex; margin-top: 6px; }
.mt-days span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--a-text-3); }
.mt-days span.today { font-weight: 700; color: #007AFF; }
.mt-head { display: flex; align-items: center; gap: 10px; }
.mt-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(0,122,255,0.1); color: #007AFF; font-size: 17px; flex: none; }
.mt-head b { flex: 1; font-size: 17px; font-weight: 700; }
.mt-quiet { padding: 12px 8px; font-size: 14px; font-weight: 700; color: var(--a-text-2); }
.mt-slot { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--a-bg); display: flex; align-items: center; gap: 12px; }
.mt-date { width: 44px; padding: 6px 0; border-radius: 12px; background: var(--a-card); display: flex; flex-direction: column; align-items: center; flex: none; }
.mt-date small { font-size: 10.5px; letter-spacing: 0.4px; font-weight: 700; color: #D23F5E; }
.mt-date b { font-size: 18px; line-height: 1.1; font-weight: 700; }
.mt-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-what b { font-size: 16px; font-weight: 700; }
.mt-what span { font-size: 13px; color: var(--a-text-2); }
.mt-tile { width: 34px; height: 34px; border-radius: 10.9px; display: grid; place-items: center; background: rgba(0,122,255,0.14); color: #007AFF; font-size: 16.3px; flex: none; }
.ui .mt-why { max-width: none; margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--a-text-2); }
.mt-btns { display: flex; gap: 8px; margin-top: 14px; }
.mt-btns span { flex: 1; padding: 12px 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; }
.mt-btns .solid { background: #007AFF; color: #fff; box-shadow: 0 6px 20px -6px rgba(0,122,255,0.4); }
.mt-btns .solid svg { font-size: 15px; }
.mt-btns .outline { color: #007AFF; box-shadow: inset 0 0 0 1.5px rgba(0,122,255,0.55); }

/* Health */
.h-tiles { display: flex; margin: 0 -4px; }
.h-tiles > div { flex: 1; height: 100px; margin: 0 4px; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(to bottom right, color-mix(in srgb, var(--bg) 90%, #fff), var(--bg)); }
.h-tiles svg { font-size: 24px; color: var(--ic); }
.h-tiles b { margin-top: 6px; font-size: 14px; font-weight: 700; color: #fff; }
.h-tiles small { margin-top: 2px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8); }
.h-head { display: flex; align-items: center; justify-content: space-between; }
.h-head h6 { margin: 0; font-size: 16px; font-weight: 700; }
.h-chip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.h-chip svg { font-size: 16px; }
.h-chart { display: flex; height: 200px; margin-top: 30px; }
.h-axis { width: 34px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: color-mix(in srgb, var(--a-text) 70%, transparent); padding-bottom: 2px; }
.h-axis span { line-height: 1; }
.h-bars { flex: 1; display: flex; justify-content: space-around; align-items: flex-end; }
.h-bars span { width: 16px; height: 100%; border-radius: 8px 8px 0 0; background: #EEEEEE; display: flex; align-items: flex-end; overflow: hidden; }
:root[data-theme="dark"] .h-bars span { background: #424242; }
.h-bars i { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 0 0; overflow: hidden; transform-origin: 50% 100%; }
.h-bars em { display: block; }
.h-days { display: flex; justify-content: space-around; margin: 6px 0 0 34px; font-size: 11px; color: color-mix(in srgb, var(--a-text) 70%, transparent); }
.h-days span { width: 16px; text-align: center; }
.h-leg { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 12px; color: color-mix(in srgb, var(--a-text) 70%, transparent); }
.h-leg span { display: flex; align-items: center; gap: 4px; }
.h-leg i { width: 10px; height: 10px; border-radius: 50%; }
.h-card:last-child { min-height: 220px; }

/* Things to do: the walking route */
.t-tiles .t-route { fill: none; stroke: #007AFF; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Meditate (Campfire) */
/* A few points taller than the 852 frame so no page background peeks under the dark scene. */
.m-ui { height: 860px; background: linear-gradient(#1A1A2E, #16213E 50%, #0F3460); color: #fff; }
.a-status.light { color: #fff; }
.m-embers i { position: absolute; bottom: 40px; width: 4px; height: 4px; border-radius: 50%; background: #FF6B35; box-shadow: 0 0 6px 1px rgba(255,107,53,0.7); opacity: 0; }
.view.live .m-embers i { animation: mEmber var(--t) linear var(--d) infinite; }
@keyframes mEmber { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 0; } 22% { opacity: 0.9; } 70% { opacity: 0.6; } 100% { transform: translate(18px, -600px); opacity: 0; } }
.m-bar { position: absolute; left: 0; right: 0; top: 54px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 8px; z-index: 2; }
.m-bar span { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; color: rgba(255,255,255,0.92); }
.m-bar h6 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.m-col { position: absolute; left: 24px; right: 24px; top: 110px; bottom: 82px; display: flex; flex-direction: column; align-items: center; }
.m-orb { margin-top: 64px; width: 180px; height: 180px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle, #FFE4C4 0%, #FFD4A3 60%, #FFC078 100%); box-shadow: 0 0 50px 15px rgba(255,228,196,0.4), 0 0 80px 25px rgba(255,159,28,0.2); color: rgba(255,159,28,0.85); font-size: 48px; }
.view.live .m-orb { animation: mBreathe 8s ease-in-out infinite; }
@keyframes mBreathe { 0%, 100% { transform: scale(1); } 45%, 55% { transform: scale(1.08); box-shadow: 0 0 64px 22px rgba(255,228,196,0.55), 0 0 96px 32px rgba(255,159,28,0.3); } }
.m-status { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.m-status b { font-size: 24px; font-weight: 600; }
.m-status span { font-size: 16px; color: rgba(255,255,255,0.8); }
.m-pats { margin-top: 24px; display: flex; align-items: flex-start; }
.m-pats span { margin: 0 4px; padding: 8px 12px; border-radius: 20px; background: rgba(255,255,255,0.15); display: flex; flex-direction: column; align-items: center; }
.m-pats em { font-style: normal; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.m-pats svg { font-size: 14px; }
.m-pats span.on { background: #fff; }
.m-pats span.on em { color: #FF9F1C; }
.ui .m-desc { max-width: none; margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.7); }
.m-themes { margin-top: auto; padding: 8px; border-radius: 30px; background: rgba(0,0,0,0.2); display: flex; }
.m-themes span { padding: 10px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: rgba(255,255,255,0.6); }
.m-themes span.on { background: rgba(255,255,255,0.25); color: #fff; }
.m-goal { margin-top: 16px; padding: 8px 16px; border-radius: 24px; background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.85); }
.m-goal svg { font-size: 14px; color: rgba(255,255,255,0.7); }
.m-begin { margin-top: 16px; width: 100%; padding: 16px 0; border-radius: 30px; background: #fff; color: #FF9F1C; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; }
.m-begin svg { font-size: 20px; }

/* Connections (Places) */
.c-bar { position: absolute; left: 0; right: 0; top: 54px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 8px; }
.c-bar h6 { margin: 0; font-size: 20px; font-weight: 700; }
.c-back { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; }
.c-add { width: 34px; height: 34px; border-radius: 50%; background: #007AFF; color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 14px -4px rgba(0,122,255,0.5); }
.c-seg { position: absolute; left: 16px; right: 16px; top: 114px; height: 38px; padding: 3px; border-radius: 19px; background: var(--a-card); display: flex; }
.c-seg i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 19px; background: #007AFF; box-shadow: 0 6px 16px -6px rgba(0,122,255,0.5); }
.c-seg span { position: relative; flex: 1; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: var(--a-text-2); }
.c-seg span.on { color: #fff; font-weight: 700; }
.c-list { position: absolute; left: 16px; right: 16px; top: 166px; display: flex; flex-direction: column; gap: 8px; }
.c-row { padding: 16px 16px 16px 14px; border-radius: 20px; background: var(--a-card); display: flex; align-items: center; }
.c-pin { width: 48px; height: 48px; border-radius: 15px; background: var(--a-inset); color: #007AFF; display: grid; place-items: center; font-size: 22px; flex: none; }
.c-pin.top { background: #007AFF; color: #fff; box-shadow: 0 6px 16px -6px rgba(0,122,255,0.6); }
.c-tx { flex: 1; min-width: 0; margin-left: 14px; display: flex; flex-direction: column; }
.c-tx b { font-size: 17px; font-weight: 700; }
.c-tx span { font-size: 14px; color: var(--a-text-2); }
.c-faces { display: flex; margin: 0 6px 0 8px; }
.c-faces i, .c-people i { border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--k); background: var(--a); }
.c-faces i { width: 34px; height: 34px; font-size: 11.6px; box-shadow: 0 0 0 2px var(--a-card); }
.c-faces i + i { margin-left: -8px; }
.c-caret { font-size: 15px; color: var(--a-text-3); display: grid; transition: transform 0.35s var(--ease-spring); }
.c-people { overflow: hidden; padding: 0 4px 0 12px; }
.c-people div { display: flex; align-items: center; padding: 9px 10px; }
.c-people i { width: 38px; height: 38px; font-size: 12.9px; flex: none; }
.c-people b { flex: 1; margin-left: 12px; font-size: 16px; font-weight: 600; }
.c-people small { font-size: 13.5px; color: var(--a-text-3); }
:root[data-theme="dark"] .c-faces i, :root[data-theme="dark"] .c-people i { background: color-mix(in srgb, var(--k) 24%, #121212); }
.c-place.open .c-people { padding-top: 8px; padding-bottom: 6px; }
.c-place.open .c-caret { transform: rotate(90deg); }

/* Connections: Places, People and Trends side by side; the pill follows --tab */
.c-list.pane { transform: translateX(calc((var(--i) - var(--tab, 0)) * (100% + 32px))); transition: transform 0.6s var(--ease-out); }
.c-seg i { transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform 0.45s var(--ease-spring); }
.c-seg span { transition: color 0.25s; }
.c-person > i, .c-top > i { border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--k); background: var(--a); flex: none; }
.c-search { height: 48px; padding: 0 14px; border-radius: 16px; background: var(--a-card); display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--a-text-3); }
.c-search svg { font-size: 17px; }
.c-person { margin-top: 2px; padding: 15px 16px 15px 14px; border-radius: 20px; background: var(--a-card); display: flex; align-items: center; }
.c-person > i { width: 48px; height: 48px; font-size: 16.3px; }
.c-person .c-tx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-person em { margin: 0 6px 0 8px; padding: 5px 10px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--a-text-2); background: rgba(148,163,184,0.18); flex: none; }
.c-person em.many { color: #007AFF; background: rgba(0,122,255,0.1); }
.c-stats { display: flex; gap: 10px; }
.c-stats div { flex: 1; padding: 14px 16px; border-radius: 18px; background: var(--a-card); display: flex; flex-direction: column; }
.c-stats b { font-size: 28px; line-height: 1.15; font-weight: 800; }
.c-stats em { font-style: normal; font-size: 17px; color: #26A148; }
.c-stats span { font-size: 14px; color: var(--a-text-2); }
.c-hero { margin-top: 4px; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(to bottom right, #1A8CFF, #0062CC); box-shadow: 0 16px 30px -14px rgba(0,122,255,0.6); }
.c-hero small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.c-hero > b { display: block; margin-top: 6px; font-size: 26px; line-height: 1.2; font-weight: 800; }
.c-pills { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.c-pills span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.2); font-size: 12.5px; font-weight: 700; }
.c-new { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.c-new .c-faces { margin: 0; }
.c-new .c-faces i { box-shadow: 0 0 0 2px #1272E0; }
.c-sect { margin-top: 4px; padding: 16px 18px 10px; border-radius: 20px; background: var(--a-card); }
.c-sect h6 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.c-top { display: flex; align-items: center; padding: 8px 0; }
.c-top > i { width: 40px; height: 40px; font-size: 13.6px; }
.c-top > div { flex: 1; margin-left: 12px; }
.c-top p { margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.c-top p b { font-size: 16px; font-weight: 600; }
.c-top p span { font-size: 13.5px; color: var(--a-text-2); }
.c-top s { display: block; margin-top: 6px; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(148,163,184,0.18); }
.c-top u { display: block; height: 100%; transform-origin: 0 50%; }
:root[data-theme="dark"] .c-person > i, :root[data-theme="dark"] .c-top > i { background: color-mix(in srgb, var(--k) 24%, #121212); }
.view.live[data-tab="1"] .c-person { animation: twRow 0.5s var(--ease-out) both; }
.view.live[data-tab="1"] .c-person:nth-child(3) { animation-delay: 0.06s; }
.view.live[data-tab="1"] .c-person:nth-child(4) { animation-delay: 0.12s; }
.view.live[data-tab="1"] .c-person:nth-child(5) { animation-delay: 0.18s; }
.view.live[data-tab="1"] .c-person:nth-child(6) { animation-delay: 0.24s; }
.view.live[data-tab="2"] .c-top u { animation: cBar 0.8s var(--ease-out) 0.3s both; }
@keyframes cBar { from { transform: scaleX(0); } }
/* Live moments for the new screens */
.view.live[data-tab="0"] .mt-bars i { animation: twGrow 0.8s var(--ease-spring) both; }
.view.live[data-tab="0"] .mt-bars i:nth-child(2) { animation-delay: 0.06s; }
.view.live[data-tab="0"] .mt-bars i:nth-child(3) { animation-delay: 0.12s; }
.view.live[data-tab="1"] .h-bars i { animation: twGrow 0.8s var(--ease-out) both; }
.view.live[data-tab="1"] .h-bars span:nth-child(2) i { animation-delay: 0.06s; }
.view.live[data-tab="1"] .h-bars span:nth-child(3) i { animation-delay: 0.12s; }
.view.live[data-tab="1"] .h-bars span:nth-child(4) i { animation-delay: 0.18s; }
.view.live[data-tab="1"] .h-bars span:nth-child(5) i { animation-delay: 0.24s; }
.view.live[data-tab="1"] .h-bars span:nth-child(6) i { animation-delay: 0.3s; }
.view.live[data-tab="1"] .h-bars span:nth-child(7) i { animation-delay: 0.36s; }
/* Things to do: Add to plan gets tapped, then the walk draws itself */
.view.live .t-add { animation: tTap 0.5s ease 1.2s both; }
@keyframes tTap { 40% { transform: scale(0.96); background: #0057B8; } }
.view.live .t-route { animation: tRoute 1.3s ease-in-out 1.6s both; }
@keyframes tRoute { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Connections: places come in, then the busiest one opens */
.view.live[data-tab="0"] .c-place { animation: twRow 0.5s var(--ease-out) both; }
.view.live[data-tab="0"] .c-place:nth-child(2) { animation-delay: 0.08s; }
.view.live[data-tab="0"] .c-place:nth-child(3) { animation-delay: 0.16s; }
.view.live[data-tab="0"] .c-place:nth-child(4) { animation-delay: 0.24s; }
.view.live[data-tab="0"] .c-place.open .c-people { animation: cOpen 0.55s var(--ease-out) 0.9s both; }
@keyframes cOpen { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } to { max-height: 200px; } }
.view.live[data-tab="0"] .c-place.open .c-caret { animation: cTurn 0.45s var(--ease-spring) 0.9s both; }
@keyframes cTurn { from { transform: rotate(0); } to { transform: rotate(90deg); } }
.t-add { cursor: pointer; }
/* Anchor links land with the section heading below the sticky nav. */
section[id] { scroll-margin-top: 72px; }
@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; }
}

/* ── Legal documents (Privacy Policy / Terms) ─────────────────────────── */
.legal-page { overflow-x: hidden; }
.legal-doc {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 0 72px;
}
.legal-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.legal-doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.legal-updated {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 18px;
}
.legal-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text-2);
  margin: 0 0 28px;
}
.legal-note a, .legal-doc a { color: var(--blue); text-decoration: none; font-weight: 600; }
.legal-note a:hover, .legal-doc a:hover { color: var(--blue-hover); }
.legal-doc h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.legal-doc p {
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-doc ul {
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.legal-doc li { margin: 0 0 6px; }
.legal-copy {
  margin-top: 36px;
  color: var(--text-3);
  font-size: 13px;
}
