/* Public site: landing page and the privacy and account pages (public/base.html).
   Scoped to body.public so the admin portal keeps Pico's look. */

body.public {
  --brand: #6855e0;
  --brand-2: #8f7bff;
  --sky: #a2d2ff;
  --bg: #fbfaff;
  --bg-2: #f2f0fb;
  --fg: #17142b;
  --muted: #625e78;
  --card: #ffffff;
  --border: rgba(23, 20, 43, 0.09);
  --shadow: 0 18px 50px -18px rgba(54, 38, 160, 0.28);
  /* The watch apps' colors (android/wear TasksPage, garmin/source/TasksView.mc). */
  --w-surface: #202124;
  --w-circle: #34353a;
  --w-alert: #f28b82;
  --w-alert-circle: #5c2b29;
  --w-accent: #4f6bed;
  --w-dim: #b0b0b8;

  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  body.public {
    --bg: #0d0b18;
    --bg-2: #141126;
    --fg: #f1effa;
    --muted: #a7a2c2;
    --card: #181530;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  }
}

.public h1, .public h2, .public h3 { color: var(--fg); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.public h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.05; font-weight: 800; }
.public h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; font-weight: 800; }
.public h3 { font-size: 1.12rem; font-weight: 700; }
.public p { margin: 0 0 1rem; color: inherit; }
.public a { color: var(--brand); }
.public section { margin: 0; }
.public figure { margin: 0; }
.public .muted { color: var(--muted); }
.public .small { font-size: 0.85rem; }
.public .center { text-align: center; }
.public .lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.public .lead.center { margin-inline: auto; }
.public h1, .public h2, .public .lead { text-wrap: balance; }
.grad {
  background: linear-gradient(95deg, var(--brand) 10%, var(--brand-2) 45%, #5fb4ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--fg) !important; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--fg); }
.public .btn {
  display: inline-block; padding: 0.5rem 1.05rem; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(104, 85, 224, 0.7); transition: transform 0.2s, box-shadow 0.2s;
}
.public .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(104, 85, 224, 0.8); }
@media (max-width: 620px) { .hide-sm { display: none; } .nav-links { gap: 1rem; } }

.site-footer { border-top: 1px solid var(--border); padding-block: 1.6rem; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* Privacy and account pages */
main.page { padding-block: 2.5rem 3rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose li { margin-bottom: 0.35rem; }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.6rem 0 1rem; }
.badge-play img { height: 68px; width: auto; margin: -11px -10px; display: block; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; height: 46px; padding: 0 1rem 0 0.8rem;
  border-radius: 9px; background: #000; color: #fff !important; text-decoration: none;
  border: 1px solid #a6a6a6; line-height: 1.05; font-weight: 600; font-size: 1.02rem; white-space: nowrap;
}
.store-badge small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-badge.garmin svg { color: #7fd0ff; }
span.store-badge.garmin { cursor: default; }
.store-badge.soon { background: transparent; color: var(--muted) !important; border: 1px dashed color-mix(in srgb, var(--muted) 60%, transparent); }
.store-badge.soon small { color: var(--brand); opacity: 1; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero: the headline, then the showcase (templates/public/_showcase.html, landing.js) */
body.public {
  --map-bg: #f0eff6; --road: #ffffff; --road-edge: #e6e3ef; --park: #d9eedf; --water: #d4e3f9;
  --poi: #aaa5c0; --label: #8a86a0; --puck: #2f7bff;
  --screen: #fbfaff; --screen-fg: #17142b; --screen-muted: #6c6884;
}
@media (prefers-color-scheme: dark) {
  body.public {
    --map-bg: #15132a; --road: #26233f; --road-edge: #1c1a33; --park: #172f2a; --water: #14233c;
    --poi: #5a5580; --label: #77729a;
    --screen: #15132a; --screen-fg: #f1effa; --screen-muted: #a7a2c2;
  }
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.show svg:not(.show-map), .show-tabs svg {
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none;
}

.hero { position: relative; padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before { /* a soft light behind the headline */
  content: ""; position: absolute; left: 50%; top: -18%; width: min(1100px, 140%); height: 720px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-head { position: relative; max-width: 860px; text-align: center; }
.hero-head .badges { justify-content: center; }

/* The stage: a muted map, the phone in front, the detected context floating over it */
.show {
  position: relative; isolation: isolate; height: clamp(580px, 50vw, 660px); margin-top: clamp(1.8rem, 4vw, 2.8rem);
  scroll-margin-top: 90px;
  border-radius: 36px; overflow: hidden; background: var(--map-bg);
  border: 1px solid var(--border);
  box-shadow: 0 50px 110px -50px rgba(40, 25, 130, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.show::after { /* fades the map into the stage's edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, color-mix(in srgb, var(--map-bg) 90%, transparent));
}
.show-map { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.7s, filter 0.7s; }
.show.quiet .show-map { opacity: 0.5; filter: saturate(0.4); }
.map-water { fill: var(--water); }
.map-park { fill: var(--park); }
.road-edge { fill: none; stroke: var(--road-edge); stroke-linecap: square; }
.road { fill: none; stroke: var(--road); stroke-linecap: square; }
.map-route-base, .map-route { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-route-base { stroke: color-mix(in srgb, var(--brand) 22%, transparent); }
.map-route { stroke: var(--brand); }
.poi { transition: opacity 0.6s; }
.poi.faded { opacity: 0.28; }
.poi .dot { fill: var(--poi); stroke: var(--map-bg); stroke-width: 3; transition: fill 0.4s; }
.poi text { font-size: 12.5px; font-weight: 600; fill: var(--label); transition: fill 0.4s; }
.poi.hot .dot { fill: var(--brand); }
.poi.hot text { fill: var(--brand); font-weight: 700; }
.poi .glyph { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.poi-zone { fill: color-mix(in srgb, var(--brand) 10%, transparent); stroke: color-mix(in srgb, var(--brand) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.poi-zone.lit { fill: color-mix(in srgb, var(--brand) 22%, transparent); stroke: var(--brand); stroke-dasharray: none; stroke-width: 2; }
.poi-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.pin-body { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.pin-hole { fill: #fff; }
.puck-dot { fill: var(--puck); stroke: #fff; stroke-width: 3.5; }
.puck-halo { fill: color-mix(in srgb, var(--puck) 18%, transparent); transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
.puck-cone { fill: color-mix(in srgb, var(--puck) 20%, transparent); }
.puck-car rect { fill: var(--puck); stroke: #fff; stroke-width: 2.5; }
.puck-car rect.car-glass { fill: rgba(255, 255, 255, 0.85); stroke: none; }
.puck-car { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
@keyframes halo { 50% { transform: scale(0.75); } }

/* The phone */
.phone {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 292px; height: 600px; margin: -300px 0 0 -146px;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(155deg, #4a4957 0%, #17161d 38%, #0c0b10 70%, #34333e 100%);
  box-shadow: inset 0 0 0 1.5px #5b5a68, inset 0 0 0 4px #0b0a0f,
    0 60px 90px -40px rgba(20, 10, 70, 0.6), 0 25px 40px -25px rgba(0, 0, 0, 0.55);
}
.phone-btn { position: absolute; right: -2.5px; width: 3.5px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #2a2932, #55545f); }
.phone-btn.b1 { top: 128px; height: 58px; }
.phone-btn.b2 { top: 204px; height: 92px; }
.phone.buzz { animation: buzz 0.5s ease; }
@keyframes buzz { 15%, 55% { transform: translateX(-3px) rotate(-0.6deg); } 35%, 75% { transform: translateX(3px) rotate(0.6deg); } }
.ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 42px; background: var(--screen); color: var(--screen-fg); }
.ph-island { position: absolute; z-index: 5; top: 11px; left: 50%; width: 94px; height: 27px; margin-left: -47px; border-radius: 20px; background: #000; }
.ph-status {
  position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 28px 0; font-size: 13.5px; font-weight: 650; transition: color 0.5s;
}
.ph-sys { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.ph-sys i { width: 3px; border-radius: 1px; background: currentColor; }
.ph-sys i:nth-child(1) { height: 5px; } .ph-sys i:nth-child(2) { height: 8px; } .ph-sys i:nth-child(3) { height: 11px; }

.ph-app { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 70px 22px 30px; transition: opacity 0.5s, transform 0.5s; }
.ph-app-title { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--screen-muted); }
.ph-transcript { min-height: 3.9em; margin: 12px 0 0; font-size: 23px; line-height: 1.28; font-weight: 650; letter-spacing: -0.015em; }
.ph-transcript .caret { display: none; width: 2.5px; height: 1.05em; margin-left: 2px; vertical-align: -0.12em; background: var(--brand); }
.show.listening .ph-transcript .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; min-height: 70px; align-content: flex-start; }
.ph-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 11px 0 9px; border-radius: 11px;
  font-size: 13px; font-weight: 650; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--screen)); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  opacity: 0; transform: scale(0.7);
}
.ph-chip svg { width: 16px; height: 16px; }
.ph-chip.on { animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.ph-saved {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 14.5px; font-weight: 650; color: #1e9e5a;
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s;
}
.ph-saved svg { width: 20px; height: 20px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ph-saved.on { opacity: 1; transform: none; }
.ph-saved.on svg { transition: stroke-dashoffset 0.45s 0.1s ease; stroke-dashoffset: 0; }
.ph-mic { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity 0.4s; }
.ph-wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.ph-wave i { width: 4px; height: 5px; border-radius: 3px; background: var(--brand); transition: height 0.12s; }
.ph-mic-btn {
  position: relative; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--brand) 90%, transparent);
}
.ph-mic-btn svg { width: 28px; height: 28px; stroke-width: 2.1; }
.ph-mic-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: 0; z-index: -1; }
.show.listening .ph-mic-btn::before { animation: ping 1.5s ease-out infinite; }
@keyframes ping { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.ph-mic small { font-size: 12.5px; color: var(--screen-muted); min-height: 1.2em; }
.show.saved .ph-mic { opacity: 0.35; }

.ph-lock {
  position: absolute; inset: 0; padding: 66px 14px 0; color: #fff; opacity: 0; transition: opacity 0.6s;
  background:
    radial-gradient(110% 65% at 10% 0%, #9886ff 0%, transparent 62%),
    radial-gradient(90% 55% at 100% 100%, #49a6ff 0%, transparent 62%),
    linear-gradient(180deg, #31288a, #141038);
}
.phone.locked .ph-lock { opacity: 1; }
.phone.locked .ph-app { opacity: 0; transform: scale(0.95); }
.phone.locked .ph-status { color: #fff; }
.ph-lock-date { text-align: center; font-size: 14.5px; font-weight: 500; opacity: 0.88; }
.ph-lock-date.flip { animation: flip 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph-lock-time { text-align: center; font-size: 78px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ph-lock-time.flip { animation: flip 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes flip { from { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
.ph-notif {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 30px; padding: 12px 13px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.8); color: #17142b; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  opacity: 0; transform: translateY(-34px) scale(0.95);
}
@media (prefers-color-scheme: dark) { .ph-notif { background: rgba(32, 29, 54, 0.82); color: #f1effa; } }
.ph-notif.on { animation: drop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.12) forwards; }
@keyframes drop { to { opacity: 1; transform: none; } }
.ph-notif img { width: 28px; height: 28px; border-radius: 50%; flex: none; margin-top: 1px; }
.ph-notif small { display: block; font-size: 11px; opacity: 0.6; }
.ph-notif b { display: block; font-size: 14.5px; }
.ph-notif span { font-size: 13px; opacity: 0.8; }

/* The context the phone detected, floating beside it */
.ctx {
  position: absolute; z-index: 3; top: 12%; display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 17px 9px 9px; border-radius: 18px; font-size: 15px; font-weight: 650; color: var(--fg);
  background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 24px 48px -22px rgba(30, 20, 100, 0.45);
  white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.45s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ctx.on { opacity: 1; transform: none; }
.ctx.left { left: clamp(16px, 7%, 96px); }
.ctx.right { right: clamp(16px, 7%, 96px); }
.ctx-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; }
.ctx-icon svg { width: 20px; height: 20px; }

/* Choosing a story */
.show-tabs {
  display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 1.4rem auto 0; padding: 5px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 30px -20px rgba(30, 20, 100, 0.4);
}
.show-tabs button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.45rem; width: auto; margin: 0;
  padding: 0.55rem 1.15rem; border: 0; border-radius: 999px; background: transparent; box-shadow: none; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 650; color: var(--muted); transition: color 0.25s, background 0.25s;
}
.show-tabs button svg { width: 18px; height: 18px; }
.show-tabs button:hover { color: var(--fg); }
.show-tabs button[aria-selected="true"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.show-tabs button i { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0; border-radius: 2px; background: var(--brand); }
.show-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 700px) {
  .show { height: 650px; border-radius: 26px; }
  .phone { top: 46%; transform: scale(0.78); }
  .phone.buzz { animation: buzz-sm 0.5s ease; }
  @keyframes buzz-sm { 0%, 100% { transform: scale(0.78); } 25%, 65% { transform: scale(0.78) translateX(-3px); } 45%, 85% { transform: scale(0.78) translateX(3px); } }
  .ctx { top: auto; bottom: 16px; font-size: 13.5px; padding: 7px 14px 7px 7px; }
  .ctx.left, .ctx.right { left: 50%; right: auto; translate: -50% 0; }
  .ctx-icon { width: 32px; height: 32px; }
  .show-tabs { flex-wrap: wrap; width: auto; border-radius: 22px; }
  .show-tabs button { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
}
@media (max-width: 400px) { .show-tabs button svg { display: none; } }

@keyframes spin { to { transform: rotate(360deg); } } /* the watch's sending spinner */

/* Watches */
.watches { padding-block: clamp(3rem, 8vw, 6rem); background: var(--bg-2); overflow: hidden; }
.watch-row { display: flex; justify-content: center; gap: clamp(2rem, 8vw, 7rem); margin-top: 3rem; flex-wrap: wrap; }
.watch-fig { display: flex; flex-direction: column; align-items: center; text-align: center; }
.watch-fig figcaption { margin-top: 1.8rem; color: var(--fg); }
.watch-fig figcaption b { display: block; font-size: 1.15rem; }
.watch-fig figcaption span { color: var(--muted); font-size: 0.92rem; }
.watch-fig .badges { justify-content: center; margin-top: 1rem; }

.watch { --size: 250px; position: relative; width: var(--size); height: var(--size); margin-block: 70px; }
.watch .band { position: absolute; left: 50%; width: 46%; height: 95px; transform: translateX(-50%); z-index: 0; }
.watch .band.top { bottom: 88%; border-radius: 26px 26px 6px 6px; }
.watch .band.bottom { top: 88%; border-radius: 6px 6px 26px 26px; }
.watch-face { position: absolute; inset: 0; border-radius: 50%; z-index: 1; }
.watch-screen { position: absolute; border-radius: 50%; overflow: hidden; background: #000; }

.watch.pixel .band { background: linear-gradient(90deg, #c9c3b8, #e6e1d8 50%, #c9c3b8); }
.watch.pixel .watch-face { background: linear-gradient(145deg, #e9e9ec, #9d9da4); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.6); }
.watch.pixel .watch-screen { inset: 9px; box-shadow: inset 0 0 0 3px #050505; }
.watch.pixel .watch-screen::after { /* the dome's shine */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(70% 50% at 30% 15%, rgba(255,255,255,0.22), transparent 60%);
}
.watch.pixel .crown {
  position: absolute; right: -11px; top: 50%; width: 15px; height: 40px; margin-top: -20px; z-index: 0;
  border-radius: 6px; background: repeating-linear-gradient(180deg, #bdbdc3 0 3px, #8e8e95 3px 5px);
}

.watch.garmin { --size: 262px; }
.watch.garmin .band { width: 44%; background: linear-gradient(90deg, #2c3038, #3d424c 50%, #2c3038); }
.watch.garmin .watch-face { background: linear-gradient(145deg, #5d636e, #23262c); box-shadow: var(--shadow), inset 0 0 0 2px #6b717c; }
.watch.garmin .bezel {
  position: absolute; inset: 10px; border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, #c9ccd2 0 2deg, transparent 2deg 30deg),
    radial-gradient(circle, transparent 66%, #1a1c20 66.5%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 64.5%); mask: radial-gradient(circle, transparent 64%, #000 64.5%);
  background-color: #1a1c20;
}
.watch.garmin .watch-screen { inset: 30px; }
.btn-side { position: absolute; width: 12px; height: 26px; border-radius: 4px; background: linear-gradient(90deg, #7a808b, #4a4f58); z-index: 0; }
.btn-side.l1 { left: -6px; top: 22%; transform: rotate(-38deg); }
.btn-side.l2 { left: -9px; top: 45%; }
.btn-side.l3 { left: -6px; top: 68%; transform: rotate(38deg); }
.btn-side.r1 { right: -6px; top: 22%; transform: rotate(38deg); }
.btn-side.r2 { right: -6px; top: 68%; transform: rotate(-38deg); }
.btn-side.start { background: linear-gradient(90deg, #4a4f58, #c0392b); transition: box-shadow 0.2s, filter 0.2s; }
.btn-side.start.pressed { filter: brightness(1.5); box-shadow: 0 0 14px 3px rgba(242, 139, 130, 0.8); }

/* The watch task list */
.wl { padding: 16% 9% 0; font-size: 11.5px; color: #fff; text-align: left; }
.wl-head { text-align: center; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.wl-row {
  position: relative; display: flex; align-items: center; gap: 7px; height: 38px; margin-bottom: 5px; padding: 0 9px;
  border-radius: 19px; background: var(--w-surface); overflow: hidden;
  transition: height 0.25s ease, margin 0.25s ease, opacity 0.2s ease;
}
.wl-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--w-accent) 85%, transparent); }
.wl-icon { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--w-circle); font-size: 13px; }
.wl-icon.alert { background: var(--w-alert-circle); }
.wl-icon b { font-weight: normal; transition: transform 0.2s; }
.wl-check { position: absolute; inset: 0; display: grid; place-items: center; transform: scale(0); transition: transform 0.22s; }
.wl-check::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.wl-text { position: relative; min-width: 0; line-height: 1.2; }
.wl-text b, .wl-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-text b { font-weight: 500; }
.wl-text small { font-size: 10px; color: var(--w-dim); }
.wl-text small.alert { color: var(--w-alert); }
.wl-section { text-align: center; font-size: 10.5px; color: var(--w-dim); margin: 7px 0 5px; }
.watch.garmin .wl { padding-top: 13%; font-size: 10.5px; }
.watch.garmin .wl-row { height: 34px; }
/* The hold (landing.js): fill, check, fold away. */
.wl-target.holding .wl-fill { width: 100%; transition: width 1s linear; }
.wl-target.done .wl-check { transform: scale(1); }
.wl-target.done .wl-icon b { transform: scale(0); }
.wl-target.done .wl-text small { color: var(--w-dim); }
.watch .wl-target.fold { height: 0; margin-bottom: 0; opacity: 0; }
.touch {
  position: absolute; left: 58%; top: 33%; width: 30px; height: 30px; margin: -15px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 2px rgba(255,255,255,0.5); opacity: 0; transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.touch.on { opacity: 1; transform: scale(1); }
.touch.at-mic { left: 50%; top: 50%; }

/* Wear OS: the mic page, then a swipe to the tasks (landing.js). */
.wpages { display: flex; width: 200%; height: 100%; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.wpages.tasks { transform: translateX(-50%); }
.wpage { position: relative; width: 50%; height: 100%; flex: none; }
.rec { color: #fff; }
.rec-layer {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 0 30px; text-align: center; opacity: 0; transition: opacity 0.3s;
}
.rec[data-rec="idle"] .st-idle, .rec[data-rec="listening"] .st-listening,
.rec[data-rec="sending"] .st-sending, .rec[data-rec="saved"] .st-saved { opacity: 1; }
.rec-title { font-size: 14px; font-weight: 500; }
.rec-dim { font-size: 12px; color: var(--w-dim); }
.rec-mic {
  position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--w-accent);
}
.rec-mic::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9V21h2v-3.1A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9V21h2v-3.1A7 7 0 0 0 19 11h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rec-mic.big { width: 66px; height: 66px; }
.rec-mic.big::after { width: 33px; height: 33px; }
.rec[data-rec="listening"] .rec-mic.big { animation: voice 0.7s ease-in-out infinite alternate; }
@keyframes voice { from { transform: scale(1); } to { transform: scale(1.12); } }
.rec-partial { min-height: 34px; font-size: 13px; line-height: 1.3; }
.rec-quote { font-size: 13px; line-height: 1.3; }
.rec-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--w-circle); border-top-color: var(--w-accent); }
.rec[data-rec="sending"] .rec-spinner { animation: spin 0.8s linear infinite; }
.rec-ok { font-size: 13px; color: var(--w-accent); font-weight: 600; }
.rec-saved-title { font-size: 15px; font-weight: 500; }
/* Without motion the Pixel shows its task list, like the Garmin. */
html:not(.anim) .wpages { transform: translateX(-50%); }

/* Counters */
.stats { padding-block: clamp(2.5rem, 7vw, 5rem); }
.stats-row { display: flex; justify-content: center; gap: clamp(2rem, 10vw, 7rem); flex-wrap: wrap; text-align: center; }
.stat b { display: block; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }

/* Closing call to action */
.cta { padding-block: 1rem clamp(3rem, 8vw, 5rem); }
.cta-box {
  max-width: 1080px; text-align: center; padding: clamp(2.2rem, 6vw, 3.8rem) 1.5rem; border-radius: 34px; color: #fff;
  background: radial-gradient(80% 120% at 0% 0%, #8f7bff, transparent 60%), radial-gradient(80% 120% at 100% 100%, #4aa8ff, transparent 60%), #4b3bc4;
  box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #fff; opacity: 0.9; }
.cta-box .badges { justify-content: center; }
.cta-box .store-badge.soon { color: #fff !important; border-color: rgba(255,255,255,0.6); }
.cta-box .store-badge.soon small { color: #fff; }

/* Scroll reveal (landing.js adds .anim, then .shown as each comes into view). */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim .reveal.shown { opacity: 1; transform: none; }

/* Layout */
@media (max-width: 600px) {
  body.public { font-size: 16px; }
  .watch { margin-block: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .public *, .public *::before, .public *::after { animation: none !important; transition: none !important; }
}
