/* tactra.app — the marketing site and legal pages. Light, with a dark theme (bottom of the file).
   (The shared-routine pages under /r/ keep their own /style.css.) */

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --blue: #0071e3;
  --blue-ink: #0066cc;
  --holo: #2aa8ff;
  --night: #05070d;
  --radius-lg: 28px;
  --radius-md: 18px;
  --gutter: 22px;
  --max: 1024px;
  --wide: 1200px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not hidden: that would break the sticky hero */
}
img { display: block; max-width: 100%; height: auto; }
/* pictures (the phones, the hand, the hologram) can't be picked up, dragged out or highlighted; text still can */
img, canvas, .hand, .hero-stage, .iphone, .shot, .holo-view, .screen-ui, .hero-holo {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Navigation ----------
   TACTRA's own bar: a floating glass capsule, like the app's tab bar. A dark pill slides under the
   section you're reading (site.js moves it); the capsule tightens once the page scrolls. */
:root { --nav-h: 60px; --nav-top: 14px; }
.nav {
  position: fixed; z-index: 50; top: var(--nav-top); left: 50%; transform: translateX(-50%);
  width: min(960px, calc(100% - 24px)); height: var(--nav-h);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 30px -14px rgba(0, 0, 0, .22);
  transform-origin: 50% 0;
  transition: height .4s var(--ease-out), top .4s var(--ease-out), transform .5s var(--ease-out), box-shadow .4s var(--ease), background .4s var(--ease);
}
/* Scrolling back up: the whole bar swells a size bigger; scrolling down puts it back (site.js sets .up) */
.nav.up:not(.open) { transform: translateX(-50%) scale(1.1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 18px 40px -16px rgba(0, 0, 0, .3); }
@media (max-width: 833px) { .nav.up:not(.open) { transform: translateX(-50%) scale(1.04); } }
.nav.scrolled { --nav-h: 54px; --nav-top: 10px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 14px 34px -14px rgba(0, 0, 0, .28); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 7px 0 10px; width: auto; margin: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .22em; padding: 0 8px 0 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: width .4s var(--ease-out), height .4s var(--ease-out); }
.nav.scrolled .brand img { width: 34px; height: 34px; }
.nav-links { position: relative; display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .045); }
.nav-links li { position: relative; z-index: 1; }
.nav-links a { display: block; color: var(--ink-2); font-size: 14px; font-weight: 500; letter-spacing: -0.008em; padding: 8px 16px; border-radius: 999px; transition: color .3s var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.on, .nav-links a[aria-current="page"] { color: #fff; }
.nav-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s var(--ease); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #fff; background: var(--ink);
  padding: 0 18px; height: calc(var(--nav-h) - 14px); border-radius: 999px; letter-spacing: -0.005em; white-space: nowrap;
  transition: height .4s var(--ease-out), background .2s;
}
.nav-cta::after { content: ""; width: 6px; height: 6px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.nav-cta:hover { text-decoration: none; background: #000; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: rgba(0,0,0,.05); border-radius: 50%; padding: 0; cursor: pointer; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 12px; width: 16px; height: 1.6px; background: var(--ink); border-radius: 1px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 22px; }
.nav.open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }
main { padding-top: calc(var(--nav-top) + 60px + 6px); }

@media (max-width: 860px) {
  .nav { width: calc(100% - 20px); }
  .nav-toggle { display: block; order: 3; }
  .nav-cta { order: 2; margin-left: auto; padding: 0 14px; }
  .brand { letter-spacing: .18em; }
  .nav-ind { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 10px; border-radius: 26px;
    background: rgba(255, 255, 255, .985);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 50px -20px rgba(0,0,0,.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .25s var(--ease), transform .4s var(--ease-out), visibility 0s .4s;
  }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .4s var(--ease-out); }
  .nav-links a { font-size: 20px; font-weight: 600; color: var(--ink); padding: 14px 16px; border-radius: 16px; }
  .nav-links a:hover, .nav-links a.on { background: rgba(0,0,0,.05); color: var(--ink); }
  .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(0,0,0,.05); }
}
@media (max-width: 430px) { .brand { gap: 8px; font-size: 13px; letter-spacing: .16em; } .brand img { width: 30px; height: 30px; } .nav-cta { font-size: 12px; padding: 0 12px; } }
@media (max-width: 330px) { .brand span { display: none; } }

/* ---------- Type ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: -0.01em; }
.eyebrow.holo { background: linear-gradient(90deg, #0a84ff, #2aa8ff 45%, #64d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.headline { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; color: var(--ink-2); font-weight: 500; letter-spacing: -0.015em; margin: 18px 0 0; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.center .lede { margin-inline: auto; max-width: 760px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 980px;
  background: var(--blue); color: #fff; transition: background .2s, transform .2s;
}
.btn:hover { text-decoration: none; background: #0077ed; }
.btn:active { transform: scale(.98); }
.link-arrow { font-size: 17px; color: var(--blue-ink); }
.link-arrow::after { content: " ›"; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px;
  line-height: 1.1; text-align: left;
}
.store-badge:hover { text-decoration: none; }
.store-badge svg { width: 24px; height: 28px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: 11px; letter-spacing: .01em; opacity: .9; }
.store-badge strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- iPhone ----------
   Each screenshot is pre-rendered inside an iPhone 17 frame with its shadow baked in
   (img/device-*.webp, 1000×1850, share-site/tools/device_frame.py). No CSS filters: they flashed
   a grey box while images decoded. --w is the phone's width. */
.iphone { --w: 300px; position: relative; width: var(--w); flex: none; }
.iphone img { display: block; width: 124%; max-width: none; height: auto; margin: -12%; } /* the image carries a 12% margin for its own shadow */

/* ---------- Hero ----------
   The name, huge, with a hand-held iPhone rising up in front of it. site.js plays it once on load with
   the Web Animations API (on the compositor): the hand lifts the phone up from below the fold, the light
   behind it blooms (.lit), then the two side notes glide in. Until then (.js, not .shown) they wait hidden.
   The section is the page's own white (no seam with the next section) and runs up under the floating top bar. */
.hero { position: relative; background: var(--paper); margin-top: calc(-1 * (var(--nav-top) + 66px)); padding-top: calc(var(--nav-top) + 66px); }
.hero-track { --ih: min(92vh, 940px, 190vw); --fs: min(23vw, var(--ih) * .34); --wt: calc(var(--ih) * .03 + 14px); position: relative; }
.hero-sticky { position: relative; height: calc(var(--ih) * .97); overflow: hidden; }

/* The rig (img/hand-phone.webp, 2010×3328): the hand with the phone held in it, its edge just behind the thumb
   and palm. The phone's body is 54.3% of the width, centred at 51.84%, its bottom edge at 69.2% of the height. */
.hero-stage { position: absolute; inset: 0; }
.hero-word {
  position: absolute; left: 0; right: 0; top: var(--wt); margin: 0;
  text-align: center; font-weight: 800; line-height: .8; letter-spacing: -0.06em;
  font-size: var(--fs);
  color: transparent; background: linear-gradient(180deg, #1d1d1f 0%, #1d1d1f 45%, #c7c7cc 100%);
  -webkit-background-clip: text; background-clip: text;
  padding-right: .06em; /* the tight tracking pulls the last letter in; keep the word centred */
}
.hand-in { /* the phone's top edge comes up over the lower part of the word */
  position: absolute; left: 50%; top: calc(min(var(--ih) * .2, var(--wt) + var(--fs) * .58) - var(--ih) * var(--lift, .045)); /* the rig has .045 of air above the phone */ width: 0; height: 0; z-index: 2; }
.hand {
  position: absolute; left: 0; top: 0;
  height: var(--ih); aspect-ratio: 2010 / 3328;
  transform: translateX(-51.84%);
  transform-origin: 51.84% 100%; /* low, at the hand: the front raise tips the phone up about it */
  will-change: transform, opacity;
}
/* The phone's screen, live: the picture's screen is black (img/hand-phone-live.webp); the hologram is drawn
   by hologram.js with the screen as a window with depth: what is behind the glass shows only through the
   screen, what is in front of it (the front of the pad, coming toward you) runs out over the phone. The screen's own words sit over the hologram inside
   the screen, as in the app. All of it rides the hand's animation (it's inside .hand). Screen rectangle in
   the rig: 26.534% / 1.735%, 49.444% × 65.936% (tools/hand_rig.py, K = 2). */
.hand-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-holo { position: absolute; left: 1.84%; top: -30%; width: 100%; height: 100%; z-index: 1; pointer-events: none; } /* larger than the screen: what comes out of it is drawn over the frame (hologram.js clips the rest to the screen) */ /* exactly the screen, its corners too: the hologram stays inside the phone */
.hero-holo .holo3d { cursor: default; pointer-events: none; }
.screen-ui {
  position: absolute; z-index: 2; left: 26.551%; top: 1.747%; width: 50.556%; height: 66.385%;
  container-type: inline-size; pointer-events: none; color: #fff; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
}
.screen-ui > * { position: absolute; left: 0; right: 0; margin: auto; }
/* the words stay readable over the glowing body, as the app's do */
.su-title, .su-tick { box-shadow: 0 0 0 1.2cqw rgba(0,0,0,.35), 0 0 6cqw rgba(0,0,0,.6); }
.su-tick { top: 9.153%; width: 11.94cqw; height: 11.94cqw; border-radius: 50%; background: #30d159; display: grid; place-items: center; }
.su-tick svg { width: 62%; height: 62%; }
.su-title { top: 18.5%; transform: translateY(-50%); font-size: 7.96cqw; line-height: 1.2; font-weight: 700; letter-spacing: -0.019em; white-space: nowrap; }
.su-done { top: 88.75%; left: 4.975%; right: 4.975%; height: 13.93cqw; border-radius: 99px; background: #fff; color: #000; display: grid; place-items: center; font-size: 4.23cqw; font-weight: 600; }
.hand.no-live .screen-ui, .hand.no-live .hero-holo { display: none; }

.hero-stage::after { /* the hand runs off the bottom: melt it into the page white, no seam */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 3; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), var(--paper) 92%);
}
/* Two columns either side of the phone, both sitting on the same line low down by the hand:
   what TACTRA is (left) and three facts (right). They glide in after the phone has landed (site.js). */
.hero-side {
  position: absolute; z-index: 4; bottom: calc(var(--ih) * .13); margin: 0;
  --edge: max(var(--gutter) + 8px, 50% - 590px);
  /* never reaches the fingers or thumb (about .23 of the hand's height out from the middle) */
  width: min(330px, 50% - var(--ih) * .23 - var(--edge) - 24px);
}
.hero-side.left { left: var(--edge); }
.hero-side.right { right: var(--edge); }
.js .hero:not(.shown) .hand, .js .hero:not(.shown) .hero-side { opacity: 0; }
.hero-side .eyebrow { margin: 0 0 10px; }
.hero-side h2 { margin: 0; font-size: 40px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.hero-lede { margin: 14px 0 0; font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.hero-side.right { list-style: none; padding: 0; width: min(250px, 50% - var(--ih) * .23 - var(--edge) - 24px); display: grid; gap: 0; }
.hero-side.right li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(0,0,0,.08); }
.hero-side.right li:last-child { border-bottom: 1px solid rgba(0,0,0,.08); }
.hero-side.right strong { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.hero-side.right span { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
/* a soft blue light behind the phone, as if the hologram on its screen lit the room */
.hero-stage::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: calc(var(--ih) * .3);
  width: calc(var(--ih) * .9); height: calc(var(--ih) * .7); transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(42,168,255,.20), rgba(42,168,255,.06) 55%, transparent);
  opacity: 0; scale: .85; pointer-events: none;
  transition: opacity 1.6s var(--ease), scale 2s var(--ease-out);
}
.hero.lit .hero-stage::before { opacity: 1; scale: 1; }
.hero-under { display: none; }

/* load-in: the name fades up first, then the phone rises in front of it */
.js .hero [data-in] { opacity: 0; transform: translateY(24px); }
.js.ready .hero [data-in] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease-out); }

@media (max-width: 1099px) {
  .hero-side, .hero-side.right { display: none; }
  .hero-under { display: block; position: relative; z-index: 4; margin-top: calc(var(--ih) * -.12); padding-bottom: 56px; }
  .hero-under h2 { margin: 0; font-size: clamp(34px, 7vw, 44px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
  .hero-under p { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 460px; margin: 14px auto 0; }
  .hero-under .actions { margin-top: 24px; }
}
@media (max-width: 560px) {
  .hero-track { --wt: calc(var(--ih) * .03 + 22px); --lift: 0; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.band { padding: clamp(90px, 12vw, 150px) 0; }
.band.mist { background: var(--mist); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
.wrap.split { width: min(1160px, 100% - 2 * var(--gutter)); } /* a little wider than the text column */
.split .iphone { --w: clamp(270px, 30vw, 390px); margin-inline: auto; }
.split .eyebrow { font-size: 19px; }
.split .headline { font-size: clamp(38px, 5.8vw, 74px); }
.split .copy .lede { margin-top: 20px; }
@media (max-width: 833px) {
  .split, .split.flip { grid-template-columns: 1fr; text-align: center; }
  .split.flip > :first-child { order: 0; }
  .split .copy .lede { margin-inline: auto; max-width: 560px; }
}

/* Hologram: the words on the white page, the live body beside them with no box around it, standing on
   the app's own pad (hologram.js). On white the hologram reads as glass with its muscles lit inside. */
.holo-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
/* the text and the hologram sit together on one soft grey panel, the grey of the band after it */
.holo-panel {
  background: var(--mist); border-radius: clamp(28px, 3.4vw, 44px);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px) clamp(28px, 3vw, 40px);
}
.holo-copy .lede { margin-top: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); font-size: 14px; font-weight: 500; color: var(--ink); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend .red { background: #ff453a; }
.legend .orange { background: #ff9f0a; }
.legend .green { background: #30d158; }
.holo-view { position: relative; height: clamp(660px, 60vw, 860px); }
.holo-still { position: absolute; inset: 4% 14% 8%; width: 72%; height: 88%; object-fit: cover; border-radius: var(--radius-lg); }
.holo-view.live .holo-still { display: none; }
.holo-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px;
  z-index: 2; font-size: 13px; color: var(--ink-3); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.holo-view.live .holo-hint { opacity: 1; }
@media (max-width: 833px) {
  .holo-split { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .holo-panel { padding: 44px 22px 22px; }
  .holo-copy .lede { margin-inline: auto; max-width: 560px; }
  .legend { justify-content: center; }
  .holo-view { height: clamp(520px, 140vw, 720px); }
}
@media (max-width: 430px) {
  .legend { gap: 6px; }
  .legend li { padding: 8px 11px; font-size: 13px; gap: 6px; }
}

/* Big number */
.stat-big { font-size: clamp(56px, 9vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 26px 0 0; font-variant-numeric: tabular-nums; }
.stat-big small { font-size: .38em; letter-spacing: -0.02em; color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.stat-cap { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 980px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.band.mist .chips li { background: #fff; }
@media (max-width: 833px) { .chips { justify-content: center; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.tile {
  position: relative; overflow: hidden;
  background: var(--mist); border-radius: var(--radius-lg);
  padding: 36px 36px 0;
  display: flex; flex-direction: column; min-height: 520px;
}
.tile h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
.tile p { color: var(--ink-2); margin: 10px 0 0; font-size: 17px; }
.tile .shot { margin-top: auto; padding-top: 32px; display: flex; justify-content: center; }
.tile .iphone { --w: 250px; margin-bottom: -46%; }
/* With a mouse: the phone pops up out of its tile a little while the tile is under the pointer
   (on the picture itself, so it never fights the stand-up's transform on .iphone) */
@media (hover: hover) and (pointer: fine) {
  .tile .iphone img { transform-origin: 50% 100%; transition: translate .7s var(--ease-out), scale .7s var(--ease-out); }
  .tile:hover .iphone img { translate: 0 -18px; scale: 1.045; }
}
@media (prefers-reduced-motion: reduce) { .tile:hover .iphone img { translate: none; scale: none; } }
.tile.dark { background: #0b0d12; color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.t-3 { grid-column: span 3; }
.t-2 { grid-column: span 2; }
.t-4 { grid-column: span 4; }
.tile.row { flex-direction: row; align-items: stretch; gap: 30px; padding-bottom: 0; }
.tile.row .tcopy { flex: 1; align-self: center; padding-bottom: 36px; }
.tile.row .shot { margin: 0; padding: 0; align-self: flex-end; }
.tile.row .iphone { margin-bottom: -38%; }
.tile .big { font-size: clamp(54px, 6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 0 0 10px; }
.tile.simple { min-height: 300px; padding-bottom: 36px; justify-content: flex-end; }
@media (max-width: 1068px) {
  .t-2 { grid-column: span 3; }
  .t-4 { grid-column: span 6; }
}
@media (max-width: 734px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .t-2, .t-3, .t-4 { grid-column: auto; }
  .tile { padding: 30px 26px 0; min-height: 480px; text-align: center; }
  .tile.row { flex-direction: column; }
  .tile.row .tcopy { padding-bottom: 0; }
  .tile.row .shot { align-self: center; }
  .tile.simple { min-height: 0; padding-bottom: 30px; }
  .tile .iphone { --w: 230px; }
}

/* 442 exercises: two drifting rows of demo stills */
.ex-tile { justify-content: flex-start; }
.marquee { margin: auto -36px 0; padding: 28px 0 32px; display: grid; gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 12px; width: max-content; animation: drift 38s linear infinite; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 44s; }
.mq-track img { width: 104px; height: 104px; border-radius: 18px; background: #fff; object-fit: cover; flex: none; }
.mq-track img:nth-child(n) { margin: 0; }
@keyframes drift { to { transform: translateX(calc(-50% - 6px)); } }

/* Share: an iMessage-style link preview */
.share-tile { justify-content: flex-start; }
.bubble { width: min(300px, 100%); margin: 6px auto 34px; border-radius: 20px; overflow: hidden; background: #e9e9eb; box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); transform: rotate(-2deg); }
.bubble img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.bubble-cap { padding: 10px 14px 12px; text-align: left; line-height: 1.25; }
.bubble-cap strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.bubble-cap span { font-size: 13px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
@media (max-width: 734px) { .marquee { margin-inline: -26px; } }

/* Apple Health tile: drawn, not a screenshot */
.health-art { position: relative; flex: none; width: min(300px, 46%); align-self: center; padding: 10px 0 36px; }
.h-icon { width: 92px; height: 92px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -12px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05); margin: 0 0 -24px 22px; position: relative; z-index: 1; }
.h-icon svg { width: 54px; height: 54px; fill: #ff2d55; }
.h-card { background: #fff; border-radius: 20px; padding: 34px 22px 20px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.04); }
.h-title { margin: 0 0 14px; font-weight: 600; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2d55; }
.h-row { display: flex; gap: 18px; }
.h-row span { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.h-row small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-bottom: 2px; }
.h-row i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
@media (max-width: 734px) { .health-art { width: min(300px, 88%); margin: 0 auto; } }

/* ---------- Privacy points ---------- */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin-top: 64px; padding: 0; list-style: none; }
.points li { text-align: left; }
.points svg { width: 34px; height: 34px; color: var(--ink); margin-bottom: 14px; }
.points h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.02em; }
.points p { color: var(--ink-2); margin: 0; font-size: 16px; }
@media (max-width: 1068px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; text-align: center; } .points li { text-align: center; } }

/* ---------- Pro ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; justify-content: center; margin-top: 56px; }
.plan {
  position: relative; background: #fff; border-radius: var(--radius-md); padding: 32px 30px;
  box-shadow: inset 0 0 0 1px var(--line); text-align: left;
}
.plan.best { box-shadow: inset 0 0 0 2px var(--blue); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 980px; letter-spacing: 0; }
.plan h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin: 14px 0 0; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.plan .per { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
.included { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px 40px; list-style: none; padding: 0; margin: 48px 0 0; font-size: 17px; }
.included li { display: flex; align-items: center; gap: 10px; }
.included svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.fine { color: var(--ink-3); font-size: 12px; line-height: 1.5; margin: 40px auto 0; max-width: 680px; }
@media (max-width: 734px) {
  .plans { grid-template-columns: 1fr; }
  .included { grid-template-columns: repeat(2, auto); gap: 14px 26px; }
}

/* ---------- Closing ---------- */
.closing { padding: clamp(100px, 12vw, 150px) 0; text-align: center; }
.closing .hero-mark { /* the app icon: centred above the headline on phones and tablets */
  width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 28px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 30px -10px rgba(0,0,0,.25);
}
@media (min-width: 1024px) { /* on desktop it sits in the grey section's top-left corner instead */
  .closing { position: relative; }
  .closing .hero-mark { position: absolute; top: 24px; left: 24px; width: 128px; height: 128px; border-radius: 29px; margin: 0; }
}

/* ---------- Footer ---------- */
.footer { background: var(--mist); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 22px 0 28px; letter-spacing: -0.01em; }
.footer .fine-print { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.footer .fine-print p { margin: 0 0 8px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot-cols h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: 7px; }
.foot-cols a { color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 16px; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 0; }
.foot-base nav a { color: var(--ink-2); padding: 0 10px; border-left: 1px solid var(--line); }
.foot-base nav a:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Scroll scrubs ----------
   Phones stand up from about 80° to 90° as they come in, like the hero; the hologram tile grows
   into place; headline words fill from grey to ink. */
.iphone[data-scrub] {
  transform-origin: 50% 100%;
  transform: perspective(1500px) rotateX(calc((1 - var(--in, 1)) * 13deg)) translateY(calc((1 - var(--in, 1)) * 70px));
}
[data-words] .w { opacity: clamp(.16, calc(var(--in, 1) * (var(--n) + 3) - var(--i)), 1); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="scale"].in { transform: none; }
.js [data-delay="1"] { transition-delay: .1s; }
.js [data-delay="2"] { transition-delay: .2s; }
.js [data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero [data-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hand { transform: translateX(-51.84%); opacity: 1; }
  .hero-side { opacity: 1; transform: none; }
  .iphone[data-scrub] { transform: none; }
  [data-words] .w { opacity: 1; }
  .mq-track { animation: none; }
}

/* ---------- Documents (privacy, terms, support) ---------- */
.doc-head { padding: clamp(56px, 8vw, 96px) 0 34px; border-bottom: 1px solid var(--line); }
.doc-head .display { font-size: clamp(40px, 6vw, 64px); }
.doc-head .meta { color: var(--ink-2); margin: 14px 0 0; font-size: 17px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 48px 0 110px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0 0 9px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.prose { max-width: 692px; }
.prose .summary { font-size: 21px; line-height: 1.45; color: var(--ink); letter-spacing: -0.015em; margin: 0 0 12px; }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; margin: 56px 0 14px; scroll-margin-top: 80px; }
.prose h2:first-of-type { margin-top: 40px; }
.prose h3 { font-size: 19px; letter-spacing: -0.02em; margin: 28px 0 8px; }
.prose p, .prose li { color: #333336; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.callout { background: var(--mist); border-radius: var(--radius-md); padding: 24px 26px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .toc { position: static; background: var(--mist); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 8px; }
  .toc ol { columns: 2; column-gap: 20px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .prose td { border: 0; padding: 3px 0; }
  .prose td:first-child { font-weight: 600; color: var(--ink); }
}
@media (max-width: 600px) { .toc { display: none; } }

/* Support */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; }
.help-card { background: var(--mist); border-radius: var(--radius-md); padding: 28px; }
.help-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.help-card p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 834px) { .help-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.75px solid var(--ink-2); border-bottom: 1.75px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .3s var(--ease-out), margin .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 680px; }

/* Support: the message form (posts to /api/contact, which emails it on) */
.help-card .link-arrow { display: table; margin-top: 2px; }
.message { max-width: 760px; margin: 0 auto; padding: 96px 0 0; scroll-margin-top: 72px; }
.message-head { margin-bottom: 28px; }
.message-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 19px; letter-spacing: -0.015em; }
.message-form, .message-done { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 7px; letter-spacing: -0.01em; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin: 0; font: inherit; font-size: 17px; color: var(--ink); letter-spacing: -0.022em;
  background: var(--paper); border: 0; border-radius: 12px; padding: 13px 15px;
  box-shadow: inset 0 0 0 1px var(--line); outline: none; -webkit-appearance: none; appearance: none;
  transition: box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.47; }
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center; background-size: 12px 8px; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field.bad input, .field.bad textarea { box-shadow: inset 0 0 0 2px #e30000; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.message-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.message-note.err { color: #d70015; }
.message-form .btn { border: 0; cursor: pointer; font-family: inherit; min-width: 112px; justify-content: center; flex: none; }
.message-form .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.message-done { text-align: center; padding-block: 52px; outline: none; animation: message-in .6s var(--ease-out) both; }
.message-done h3 { margin: 16px 0 6px; font-size: 24px; letter-spacing: -0.025em; }
.message-done p { margin: 0; color: var(--ink-2); }
.message-done b { color: var(--ink); font-weight: 600; }
.message-tick { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #30d158; color: #fff; }
.message-tick svg { width: 28px; height: 28px; }
@keyframes message-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (max-width: 600px) {
  .message { padding-top: 72px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .message-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .message-form .btn { width: 100%; padding-block: 14px; }
}

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }

/* The live hologram (hologram.js): a canvas filling the view once it has loaded; the picture is its stand-in */
.holo3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.holo3d.grabbing { cursor: grabbing; }

/* ---------- Theme switch (sun / moon in the top bar) ---------- */
.theme-toggle {
  flex: none; width: 36px; height: 36px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity .45s var(--ease), transform .7s var(--ease-out); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
@media (max-width: 860px) {
  .theme-toggle { order: 2; margin-left: auto; width: 40px; height: 40px; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Dark ----------
   Apple's dark: a true-black page, cards a step up (#161617), soft white type, the brighter blue.
   Everything that isn't a token is tuned here by hand. html[data-theme="dark"] is set before the
   first paint from the visitor's last choice (the inline script in each page's head). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --line: #38383a;
  --paper: #000000;
  --mist: #161617;
  --blue: #0a84ff;
  --blue-ink: #2997ff;
}
[data-theme="dark"] .theme-toggle:hover { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }

/* the bar: smoked glass with a hairline of light round it */
[data-theme="dark"] .nav { background: rgba(28, 28, 30, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 34px -14px rgba(0, 0, 0, .8); }
[data-theme="dark"] .nav.scrolled { background: rgba(28, 28, 30, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 38px -14px rgba(0, 0, 0, .85); }
[data-theme="dark"] .nav.up:not(.open) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11), 0 20px 44px -16px rgba(0, 0, 0, .9); }
[data-theme="dark"] .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
[data-theme="dark"] .nav-links { background: rgba(255, 255, 255, .07); }
[data-theme="dark"] .nav-links a.on, [data-theme="dark"] .nav-links a[aria-current="page"] { color: #000; }
[data-theme="dark"] .nav-cta { color: #000; }
[data-theme="dark"] .nav-cta:hover { background: #fff; }
[data-theme="dark"] .nav-toggle { background: rgba(255, 255, 255, .08); }
@media (max-width: 860px) {
  [data-theme="dark"] .nav-links { background: rgba(28, 28, 30, .97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 24px 50px -20px rgba(0, 0, 0, .9); }
  [data-theme="dark"] .nav-links a.on, [data-theme="dark"] .nav-links a:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
  [data-theme="dark"] .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
}

/* hero: the name in silver fading into the dark, the hand melting into black */
[data-theme="dark"] .hero-word { background-image: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 40%, #3a3a3c 100%); }
[data-theme="dark"] .hero-stage::after { background: linear-gradient(rgba(0, 0, 0, 0), #000 92%); }
[data-theme="dark"] .hero-stage::before { background: radial-gradient(closest-side, rgba(42, 168, 255, .26), rgba(42, 168, 255, .07) 55%, transparent); }
[data-theme="dark"] .hero-side.right li { border-color: rgba(255, 255, 255, .12); }
/* the hand was lit for a white page: on black it is dimmed a touch and its highlights pulled in, so it sits in the dark */
[data-theme="dark"] .hand-img { filter: brightness(.68) contrast(1.08) saturate(.9); }

/* cards and small surfaces */
[data-theme="dark"] .chips li, [data-theme="dark"] .band.mist .chips li { background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
[data-theme="dark"] .tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
[data-theme="dark"] .tile.dark { background: #0a0c11; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
[data-theme="dark"] .bubble { background: #26262a; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .h-card { background: #1c1c1e; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .07); }
[data-theme="dark"] .h-icon { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .9); }
[data-theme="dark"] .plan { background: #161617; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
[data-theme="dark"] .plan.best { box-shadow: inset 0 0 0 2px var(--blue); }
[data-theme="dark"] .legend li { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
[data-theme="dark"] .holo-panel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
[data-theme="dark"] .store-badge { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
[data-theme="dark"] .closing .hero-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 30px -10px rgba(0, 0, 0, .9); }
[data-theme="dark"] .help-card, [data-theme="dark"] .callout { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
[data-theme="dark"] .prose p, [data-theme="dark"] .prose li { color: #d1d1d6; }
[data-theme="dark"] .message-form, [data-theme="dark"] .message-done { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background-color: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
[data-theme="dark"] .field.bad input, [data-theme="dark"] .field.bad textarea { box-shadow: inset 0 0 0 2px #ff453a; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] .message-note.err { color: #ff453a; }
[data-theme="dark"] .footer { background: #0b0b0c; }

/* the switch itself cross-fades the whole page where the browser can (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.25, .1, .25, 1); }
