/* ASD Tracker: Paper and Path, for the web.
   Labyrinth blue for action, path gold for what is done, warm paper by day and a deep navy night.
   Lexend throughout, self hosted. No third party anything. */

@font-face { font-family: "Lexend"; src: url("/fonts/lexend-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/fonts/lexend-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/fonts/lexend-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/fonts/lexend-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/fonts/lexend-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --paper: #F4F2EC;
  --paper-2: #ECE9E1;
  --card: #FFFFFF;
  --ink: #141B34;
  --ink-2: #596178;
  --line: #E3DFD5;
  --hair: #E8E5DD;
  --control: #858A99;
  --action: #1B3576;
  --on-action: #FFFFFF;
  --link: #1B3576;
  --blue-bright: #2E5BBF;
  --blue-soft: #E5EBF7;
  --gold: #E2A93B;
  --gold-soft: #FBF0D6;
  --gold-ink: #80570B;
  --on-gold: #1C1504;
  --track: #D8D2C4;
  --stool: #7A5638;
  --better: #1D7552;
  --better-soft: #DDEFE5;
  --same: #596178;
  --same-soft: #ECEDF2;
  --worse: #A94E1C;
  --worse-soft: #F8E6DA;
  --warn-soft: #FBEED4;
  --warn-ink: #93560E;

  --hero-1: #3463C7;
  --hero-2: #1B3576;
  --hero-3: #101F4A;
  --night: #0A0F1F;
  --night-card: #151B2F;
  --night-line: #262F4B;
  --night-ink: #EDF0F8;
  --night-ink-2: #A6AEC4;
  --night-gold: #F0C25A;

  --shadow-card: 0 1px 2px rgba(27, 35, 64, .05), 0 10px 30px -14px rgba(27, 35, 64, .22);
  --shadow-float: 0 30px 80px -30px rgba(11, 21, 52, .55), 0 12px 30px -18px rgba(11, 21, 52, .45);
  --focus: #2E5BBF;
  --bezel: 3.2%;

  --r-device: 54px;
  --r-panel: 30px;
  --r-card: 22px;
  --r-control: 14px;

  --fs-0: 13px;
  --fs-1: 15px;
  --fs-2: 17px;
  --fs-3: 20px;
  --fs-4: clamp(21px, 1.9vw, 25px);
  --fs-5: clamp(27px, 3.1vw, 38px);
  --fs-6: clamp(34px, 4.6vw, 58px);
  --fs-7: clamp(42px, 6.6vw, 92px);

  --gutter: 16px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0A0F1F;
    --paper-2: #10172B;
    --card: #151B2F;
    --ink: #EDF0F8;
    --ink-2: #A6AEC4;
    --line: #262F4B;
    --hair: #222A44;
    --control: #636F93;
    --action: #93B1FF;
    --on-action: #0A1430;
    --link: #A9C1FF;
    --blue-bright: #6F94F2;
    --blue-soft: #1B2952;
    --gold: #F0C25A;
    --gold-soft: #3A2D0E;
    --gold-ink: #F0C25A;
    --track: #323C5E;
    --stool: #A98463;
    --better: #5FCB9C;
    --better-soft: #12352A;
    --same: #A6AEC4;
    --same-soft: #1E2641;
    --worse: #F2A16C;
    --worse-soft: #3F2516;
    --warn-soft: #3A2D0E;
    --warn-ink: #F0C25A;
    --shadow-card: 0 0 0 1px rgba(147, 177, 255, .06), 0 14px 40px -20px rgba(0, 0, 0, .8);
    --focus: #93B1FF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0A0F1F;
  --paper-2: #10172B;
  --card: #151B2F;
  --ink: #EDF0F8;
  --ink-2: #A6AEC4;
  --line: #262F4B;
  --hair: #222A44;
  --control: #636F93;
  --action: #93B1FF;
  --on-action: #0A1430;
  --link: #A9C1FF;
  --blue-bright: #6F94F2;
  --blue-soft: #1B2952;
  --gold: #F0C25A;
  --gold-soft: #3A2D0E;
  --gold-ink: #F0C25A;
  --track: #323C5E;
  --stool: #A98463;
  --better: #5FCB9C;
  --better-soft: #12352A;
  --same: #A6AEC4;
  --same-soft: #1E2641;
  --worse: #F2A16C;
  --worse-soft: #3F2516;
  --warn-soft: #3A2D0E;
  --warn-ink: #F0C25A;
  --shadow-card: 0 0 0 1px rgba(147, 177, 255, .06), 0 14px 40px -20px rgba(0, 0, 0, .8);
  --focus: #93B1FF;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (min-width: 960px) { body { font-size: 17px; } }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-navy :focus-visible, .hero :focus-visible, .tryit :focus-visible, .release :focus-visible, .page-hero :focus-visible,
.site-header:not(.is-solid) :focus-visible, .site-header.on-dark :focus-visible { outline-color: #F0C25A; }
/* inside the drawn app the screen is paper or card, so the ring goes back to blue there; Calm stays gold */
.tryit .app :focus-visible { outline-color: var(--focus); }
.tryit .calm :focus-visible { outline-color: #F0C25A; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-card); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.tnum { font-variant-numeric: tabular-nums; }

/* theme switched images: only the image for the active theme is shown, so only it is fetched */
.th-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-light { display: none !important; }
  :root:not([data-theme="light"]) .th-dark { display: block !important; }
}
:root[data-theme="dark"] .th-light { display: none !important; }
:root[data-theme="dark"] .th-dark { display: block !important; }

/* ------------------------------------------------------------------ section rhythm */

.section { padding-block: clamp(64px, 8.5vw, 124px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-6); }
.section-head p { margin-top: 18px; font-size: var(--fs-3); color: var(--ink-2); line-height: 1.5; max-width: 40em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-1); font-weight: 600; color: var(--gold-ink); margin-bottom: 18px; }
.kicker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.on-navy .kicker, .hero .kicker { color: #F0C25A; }
.on-navy .kicker::before { box-shadow: 0 0 0 4px rgba(240, 194, 90, .18); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid.on-dark {
  background: color-mix(in srgb, #0B1430 74%, transparent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.brand small { display: none; font-weight: 400; font-size: 13px; opacity: .74; letter-spacing: 0; }
@media (min-width: 1100px) { .brand small { display: inline; margin-left: 2px; } }
.nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; opacity: .88; }
.nav a:hover { opacity: 1; background: rgba(127, 140, 180, .14); }
.nav a[aria-current="true"] { opacity: 1; background: rgba(127, 140, 180, .16); }
@media (min-width: 1000px) { .nav { display: flex; } }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1000px) { .header-tools { margin-left: 8px; } }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  background: rgba(127, 140, 180, .16); border: 0; color: inherit;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(127, 140, 180, .26); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-btn .moon { display: none; }
.theme-btn.is-dark .sun { display: none; }
.theme-btn.is-dark .moon { display: block; }
.menu-btn { display: inline-grid; }
@media (min-width: 1000px) { .menu-btn { display: none; } }
.menu-sheet {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.menu-sheet.is-open { display: block; }
.menu-sheet a { display: flex; align-items: center; min-height: 52px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--hair); }
.menu-sheet a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(91, 141, 239, .55), transparent 55%),
    radial-gradient(90% 70% at 92% 90%, rgba(226, 169, 59, .12), transparent 60%),
    linear-gradient(165deg, var(--hero-1) 0%, var(--hero-2) 46%, var(--hero-3) 100%);
  padding-top: 108px;
  padding-bottom: clamp(48px, 6vw, 88px);
  min-height: 100svh;
  display: grid;
  align-content: center;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 36, .35));
}
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); } }
.release-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(8, 16, 44, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92);
}
@media (max-width: 520px) { .release-pill { border-radius: 22px; padding-right: 12px; } }
.release-pill b { background: #F0C25A; color: #1C1504; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 10.6vw, 64px); line-height: 1; letter-spacing: -0.045em; margin-top: 26px; }
.hero h1 .line { display: block; }
.hero-copy { container-type: inline-size; }
/* each line on 1 line at desktop, sized to the column so the longest one always fits */
@media (min-width: 960px) { .hero h1 { font-size: clamp(52px, 5vw, 76px); font-size: min(84px, 9.8cqi); } .hero h1 .line { white-space: nowrap; } }
.hero-lede { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 33em; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-label {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 20px 10px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: #fff; line-height: 1.2;
}
.store-label svg { width: 26px; height: 26px; flex: none; opacity: .9; }
.store-label span { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.store-label strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; min-height: 44px; padding: 6px 4px;
  color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 15px; font-weight: 500;
}
.hero-scroll svg { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.hero-scroll:hover { color: #fff; }
.js .hero-scroll svg { animation: nudge 2.6s var(--ease) 3.6s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(5px); } }

.hero-art { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 1 / 1; }
@media (max-width: 959px) { .hero-art { max-width: 520px; margin-top: 8px; } }
.labyrinth { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-art .labyrinth { inset: -4% -4% auto auto; width: 92%; height: 92%; opacity: .98; transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); transition: transform .6s var(--ease); }
.hero-art::before {
  content: ""; position: absolute; inset: 22% 40% 2% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 194, 90, .24), transparent); filter: blur(30px); pointer-events: none;
}
.hero-phone {
  position: absolute; left: -4%; bottom: -8%; width: 56%;
  transform: perspective(1600px) rotateY(calc(16deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg))) rotateZ(-3deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transform-origin: 50% 60%;
  transition: transform .5s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(4, 10, 30, .55));
}
@media (max-width: 959px) { .hero-phone { left: 2%; bottom: -6%; width: 46%; } }
.hero-phone .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 5px #05070F, 0 0 0 1px rgba(255, 255, 255, .10), 0 50px 120px -40px rgba(0, 0, 0, .7); }

/* the labyrinth's 1 orchestrated moment */
.lx-walls { transform-box: view-box; transform-origin: 50% 50%; }
.lx-path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.lx-sphere { transform-box: fill-box; transform-origin: 50% 50%; }
.js .hero .lx-walls { animation: walls-in 1.5s var(--ease) .15s both; }
.js .hero .lx-path { animation: path-draw 2.1s cubic-bezier(.65, 0, .25, 1) 1s both; }
.js .hero .lx-core { animation: fade-in .5s ease-out .9s both; }
.js .hero .lx-sphere { animation: sphere-in .8s cubic-bezier(.3, 1.6, .5, 1) 2.9s both; }
.js .hero .hero-phone-in { animation: phone-in 1.4s var(--ease) .35s both; }
@keyframes walls-in { from { opacity: 0; transform: rotate(-24deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes path-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sphere-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ devices (frames) */

.phone {
  position: relative; width: 100%;
  padding: var(--bezel);
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #4A5068 0%, #20253A 22%, #0D1020 60%, #2A3048 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 5px #05070F, var(--shadow-float);
}
.phone .screen { position: relative; overflow: hidden; border-radius: 12.4% / 5.8%; background: #000; aspect-ratio: 600 / 1304; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .screen picture { display: contents; }
.phone.android { border-radius: 11% / 5%; }
.phone.android .screen { border-radius: 8.4% / 3.8%; aspect-ratio: 600 / 1347; }
.tablet {
  position: relative; width: 100%; padding: 2.6%; border-radius: 5.6%;
  background: linear-gradient(145deg, #4A5068 0%, #20253A 22%, #0D1020 60%, #2A3048 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 5px #05070F, var(--shadow-float);
}
.tablet .screen { position: relative; overflow: hidden; border-radius: 3.4%; background: #000; aspect-ratio: 960 / 1280; }
.tablet .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ statement */

.statement { padding-block: clamp(80px, 11vw, 160px) clamp(56px, 8vw, 110px); }
.statement-text { font-size: var(--fs-6); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; max-width: 19em; }
.statement-text .soft { color: var(--ink-2); font-weight: 500; }
.statement-foot { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 24px; max-width: 980px; }
@media (min-width: 860px) { .statement-foot { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.statement-foot p { color: var(--ink-2); font-size: var(--fs-2); }
.disclaimer {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 18px;
  font-size: var(--fs-1); color: var(--ink-2); line-height: 1.55;
}
.disclaimer strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ story */

.story { padding-top: clamp(32px, 4vw, 56px); }
.story-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .story-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 7vw, 120px); } }
@media (min-width: 1200px) { .story-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.steps { position: relative; padding-left: 58px; }
@media (min-width: 640px) { .steps { padding-left: 76px; } }
.rail { position: absolute; left: 0; top: 0; width: 60px; height: 100%; overflow: visible; pointer-events: none; }
.rail .track { fill: none; stroke: var(--track); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.5 9; }
.rail .gold { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.rail .stone { fill: var(--card); stroke: var(--control); stroke-width: 2.5; transition: fill .4s, stroke .4s, r .4s; }
.rail .stone.is-done { fill: var(--gold); stroke: var(--gold); }
.rail .stone.is-now { fill: var(--card); stroke: var(--action); stroke-width: 4; }
.rail .halo { fill: none; stroke: var(--action); stroke-opacity: .22; stroke-width: 8; opacity: 0; transition: opacity .4s; }
.rail .halo.is-now { opacity: 1; }
.rail .exit { fill: url(#sphere-grad); }
.step { padding-block: clamp(40px, 6vh, 72px); }
@media (min-width: 960px) { .step { min-height: 44vh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: clamp(48px, 8vh, 96px); } .step:first-child { min-height: 40vh; } }
.step-time { display: inline-block; font-size: var(--fs-1); font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.step h3 { font-size: var(--fs-5); max-width: 14em; }
.step > p { margin-top: 16px; font-size: var(--fs-2); color: var(--ink-2); max-width: 33em; }
.step .facts { list-style: none; margin-top: 22px; display: grid; gap: 10px; max-width: 34em; }
.step .facts li { position: relative; padding-left: 26px; font-size: var(--fs-1); line-height: 1.5; }
.step .facts li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gold); }
.step .quote { margin-top: 20px; font-size: var(--fs-1); color: var(--ink); background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-card); max-width: 32em; }
.step .quote::before { content: "On screen: "; color: var(--ink-2); }
.step-shot { margin-top: 28px; width: min(280px, 78%); }
@media (max-width: 959px) { .step-shot { margin-inline: auto; transform: translateX(-29px); } }
@media (min-width: 640px) and (max-width: 959px) { .step-shot { transform: translateX(-38px); } }
@media (min-width: 960px) { .step-shot { display: none; } }
.stage { display: none; }
@media (min-width: 960px) {
  .stage { display: block; position: sticky; top: max(84px, calc(50vh - 360px)); height: min(720px, calc(100vh - 110px)); }
  .stage .phone { width: auto; height: 100%; aspect-ratio: auto; max-width: 100%; margin-inline: auto; }
  .stage .phone .screen { height: 100%; aspect-ratio: 600 / 1304; margin-inline: auto; }
}
.stage .screen img { opacity: 0; transform: scale(1.02); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.stage .screen img.is-on { opacity: 1; transform: none; }
.stage-caption { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink-2); }

/* notification illustration over a screen */
.notif {
  position: absolute; left: 4.5%; right: 4.5%; top: 6.5%; z-index: 3;
  background: color-mix(in srgb, #F4F4F7 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  color: #111; border-radius: 22px; padding: 12px 14px 10px; font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-24px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.notif.is-on { opacity: 1; transform: none; }
.notif .n-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #555; margin-bottom: 4px; }
.notif .n-head img { width: 18px; height: 18px; border-radius: 5px; position: static; }
.notif .n-head .n-when { margin-left: auto; }
.notif b { font-weight: 600; display: block; color: #000; }
.notif .n-acts { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.notif .n-acts span { background: rgba(255, 255, 255, .78); border-radius: 12px; padding: 8px; text-align: center; font-weight: 600; color: #1B3576; }
.illus-tag { position: absolute; z-index: 4; left: 50%; bottom: 13%; transform: translateX(-50%); font-size: 11px; color: #fff; background: rgba(0, 0, 0, .6); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ------------------------------------------------------------------ try it (navy band) */

.on-navy { color: var(--night-ink); background: radial-gradient(90% 60% at 85% 0%, rgba(52, 99, 199, .35), transparent 60%), linear-gradient(180deg, #0C1533, #0A0F1F 70%); }
.on-navy .section-head p { color: var(--night-ink-2); }
.tabs {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  width: max-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs.can-scroll:not(.at-end), .chips.can-scroll:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.tab {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent;
  color: var(--night-ink-2); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: #F0C25A; color: #1C1504; }
.light-tabs { background: var(--card); box-shadow: var(--shadow-card); }
.light-tabs .tab { color: var(--ink-2); }
.light-tabs .tab:hover { color: var(--ink); }
.light-tabs .tab[aria-selected="true"] { background: var(--action); color: var(--on-action); }

.demo-grid { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 72px; align-items: start; } .demo-copy { position: sticky; top: 120px; padding-top: 24px; } }
.demo-copy > * { max-width: 34em; }
.demo-copy h3 { font-size: var(--fs-5); color: #fff; }
.demo-copy p { margin-top: 16px; color: var(--night-ink-2); font-size: var(--fs-2); max-width: 32em; }
.demo-copy .facts { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.demo-copy .facts li { position: relative; padding-left: 26px; font-size: var(--fs-1); color: var(--night-ink); }
.demo-copy .facts li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #F0C25A; }
.demo-note { margin-top: 24px; font-size: 14.5px; color: var(--night-ink-2); display: flex; gap: 10px; align-items: flex-start; }
.demo-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #F0C25A; }
.demo-device { width: min(390px, 100%); margin-inline: auto; }
.demo-device .phone { padding: 12px; border-radius: 56px; }
.demo-device .screen { aspect-ratio: auto; height: 720px; max-height: 78vh; min-height: min(600px, 70svh); border-radius: 44px; background: var(--paper); }
.tryit .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 0 0 5px #05070F, 0 0 0 1px rgba(120, 150, 230, .18), 0 40px 120px -30px rgba(52, 99, 199, .55); }
.try-cue { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(240, 194, 90, .14); box-shadow: inset 0 0 0 1px rgba(240, 194, 90, .3); color: #F0C25A; font-size: 14px; font-weight: 600; }
.try-cue svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .demo-device .phone { padding: 9px; border-radius: 46px; } .demo-device .screen { border-radius: 38px; height: 660px; } }
[role="tabpanel"][hidden] { display: none; }

/* ------------------------------------------------------------------ the app, drawn in HTML (demos) */

.app {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: auto;
  background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.4;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.app::-webkit-scrollbar { display: none; }
/* with a mouse the drawn phone keeps its own scroll; on touch a swipe passes on to the page at the end */
@media (hover: hover) and (pointer: fine) { .app { overscroll-behavior: contain; } }
.app-status { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; font-size: 14px; font-weight: 600; position: relative; z-index: 2; }
.app-status .island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.app-status .sys { display: flex; gap: 5px; align-items: center; }
.app-status .sys i { display: block; width: 16px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.app-status .sys i:first-child { width: 14px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.app-status .sys i:last-child { width: 22px; height: 11px; border-radius: 3px; }
.app-pad { padding: 0 16px 28px; }
.app-hero {
  color: #fff; padding: 0 18px 22px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
  background: radial-gradient(90% 90% at 0% 0%, rgba(91, 141, 239, .5), transparent 60%), linear-gradient(160deg, #3463C7, #1B3576 50%, #101F4A);
}
.app-hero .app-status { margin: 0 -18px; color: #fff; }
.app-hero .ghost { position: absolute; right: -60px; top: -10px; width: 220px; height: 220px; opacity: .14; pointer-events: none; }
.app-cap { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.app-hero .app-cap { color: rgba(255, 255, 255, .86); margin-top: 18px; }
.app-hero .name { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.app-hero .count { font-size: 17px; font-weight: 600; margin-top: 12px; }
.app-hero .path { margin-top: 10px; width: 100%; height: 46px; overflow: visible; }
.app-hero .next { font-size: 13px; color: rgba(255, 255, 255, .88); margin-top: 6px; min-height: 18px; }
.path .p-track { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.path .p-fill { fill: none; stroke: #F0C25A; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.path .p-stone { fill: rgba(16, 31, 74, .4); stroke: rgba(255, 255, 255, .7); stroke-width: 2; transition: fill .35s, stroke .35s; }
.path .p-stone.given { fill: #F0C25A; stroke: #F0C25A; }
.path .p-stone.notgiven { fill: rgba(16, 31, 74, .4); stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 3; }
.path .p-stone.next { stroke: #fff; stroke-width: 3; }
.path .p-ring { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 5; }
.path .p-shine { fill: #fff; opacity: .5; }

.app h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 20px; }
.app .sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.app-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card); margin-top: 12px; overflow: hidden; }
.round-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px 16px; }
.round-head .r-name { font-weight: 600; font-size: 15px; }
.round-head .r-icon { width: 18px; height: 18px; color: var(--gold-ink); }
.round-head .r-right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.chip-done { background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.mark-all { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--blue-soft); color: var(--action); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; min-height: 44px; }
.mark-all svg { width: 14px; height: 14px; }
.dose { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px 16px; border-top: 1px solid var(--hair); }
.round-head + .dose { border-top: 0; }
.dose .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--gold); }
.dose .d-text { flex: 1; min-width: 0; }
.dose .d-name { font-weight: 600; font-size: 15px; }
.dose .d-amt { font-size: 13px; color: var(--ink); margin-top: 1px; }
.dose .d-form, .dose .d-note { font-size: 12.5px; color: var(--ink-2); }
.dose .d-status { font-size: 12.5px; font-weight: 600; margin-top: 3px; min-height: 17px; color: var(--ink-2); }
.dose .d-status.given { color: var(--gold-ink); }
.dose-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--control); background: transparent; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.dose-btn:active { transform: scale(.94); }
.dose-btn svg { width: 18px; height: 18px; }
.dose-btn.give { border: 0; background: var(--blue-soft); color: var(--action); }
.dose-btn.give[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.dose-btn.notgive[aria-pressed="true"] { background: var(--same-soft); border-color: var(--ink-2); color: var(--ink); }
.app-done { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.app-done:not(.is-on) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-done.is-on { animation: fade-in .4s ease-out; }
.app-done svg { width: 20px; height: 20px; flex: none; }

/* calm */
.calm { position: absolute; inset: 0; background: #0A0F1F; color: #EDF0F8; display: flex; flex-direction: column; padding: 0 18px 22px; }
.calm .app-status { margin: 0 -18px; color: #EDF0F8; }
.calm-top { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.calm-top .app-cap { color: #F0C25A; }
.calm-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1E2641; color: #A6AEC4; display: grid; place-items: center; }
.calm-x svg { width: 18px; height: 18px; }
.calm-mid { margin-top: auto; text-align: center; }
.calm-since { color: #A6AEC4; font-size: 14px; }
.calm-time { font-size: 76px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 6px; transition: text-shadow 1.2s; }
.calm-time.pulse { animation: minute-pulse 1.6s ease-out; }
@keyframes minute-pulse { 0% { text-shadow: 0 0 0 rgba(240, 194, 90, 0); } 30% { text-shadow: 0 0 34px rgba(240, 194, 90, .55); } 100% { text-shadow: 0 0 0 rgba(240, 194, 90, 0); } }
.calm-line { color: #A6AEC4; font-size: 14px; margin-top: 10px; }
.calm-ask { text-align: center; color: #A6AEC4; font-weight: 600; font-size: 13px; margin-top: auto; }
.calm-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.calm-kind { min-height: 84px; border-radius: 20px; border: 1.5px solid #262F4B; background: #151B2F; color: #EDF0F8; font-weight: 600; font-size: 14px; display: grid; place-items: center; gap: 4px; padding: 10px 4px; }
.calm-kind svg { width: 24px; height: 24px; color: #93B1FF; }
.calm-kind[aria-pressed="true"] { border-color: #93B1FF; background: #1B2952; }
.calm-sos { margin-top: 10px; font-size: 12.5px; color: #F0C25A; text-align: center; line-height: 1.45; display: none; }
.calm-sos.is-on { display: block; }
.calm-over { margin-top: 16px; min-height: 64px; border-radius: 999px; border: 0; background: #F0C25A; color: #1C1504; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.calm-over svg { width: 22px; height: 22px; }
.calm-tap svg { width: 16px; height: 16px; flex: none; }
.calm-tap { margin: 12px auto 0; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #262F4B; background: transparent; color: #A6AEC4; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.calm-start { position: absolute; inset: 0; display: flex; flex-direction: column; }
.big-pill { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 72px; padding: 14px 16px; border-radius: 22px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); margin-top: 12px; }
.big-pill .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--action); color: var(--on-action); display: grid; place-items: center; flex: none; }
.big-pill .ico svg { width: 22px; height: 22px; }
.big-pill b { display: block; font-size: 16px; }
.big-pill small { display: block; color: var(--ink-2); font-size: 13px; }
.sheet-card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-card); margin-top: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--ink-2); }
.kv b { font-weight: 600; text-align: right; }
.app-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 999px; border: 0; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 16px; margin-top: 14px; }
.app-btn.ghost { background: var(--blue-soft); color: var(--action); }
.app-btn.gold { background: var(--gold); color: var(--on-gold); }
.app-note { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.app-banner { display: flex; gap: 10px; background: var(--blue-soft); color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.45; margin-top: 12px; }
.app-banner svg { flex: none; width: 18px; height: 18px; color: var(--action); margin-top: 1px; }
.app-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--control); opacity: .4; margin: 8px auto 4px; }

/* voice */
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.topics span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.mic-wrap { display: grid; place-items: center; margin: 22px 0 10px; position: relative; }
.mic-ring { width: 148px; height: 148px; transform: rotate(-90deg); }
.mic-ring .bg { fill: none; stroke: var(--track); stroke-width: 6; }
.mic-ring .fg { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.mic-btn { position: absolute; width: 112px; height: 112px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; box-shadow: 0 16px 32px -14px rgba(160, 110, 10, .8); }
.mic-btn svg { width: 40px; height: 40px; }
.mic-btn.is-live { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.mic-hint { text-align: center; font-size: 13px; color: var(--ink-2); min-height: 36px; }
.heard { min-height: 92px; font-size: 14.5px; line-height: 1.5; }
.heard .muted { color: var(--ink-2); }
.heard .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--action); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.field { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hair); }
.field:first-of-type { border-top: 0; }
.field .f-label { font-size: 13px; color: var(--ink-2); }
.field .f-value { font-weight: 600; font-size: 15px; }
.field .f-value.none { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.field .f-main { flex: 1; min-width: 0; }
.field .leave { border: 0; background: transparent; color: var(--action); font-size: 12.5px; font-weight: 600; min-height: 44px; padding: 0 4px; }
.field.is-in { animation: field-in .45s var(--ease) both; }
@keyframes field-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.trend.better { background: var(--better-soft); color: var(--better); }
.trend.same { background: var(--same-soft); color: var(--same); }
.toast { margin-top: 12px; border-radius: 16px; padding: 12px 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13px; font-weight: 600; display: none; }
.toast.is-on { display: block; animation: fade-in .3s; }

/* bristol */
.bristol { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.bristol button {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 16px;
  border: 1.5px solid var(--control); background: var(--card); color: var(--ink); text-align: left; font-size: 15px;
  transition: border-color .2s, background-color .2s;
}
.bristol button:hover { border-color: var(--ink-2); }
.bristol button[aria-checked="true"] { border-color: var(--action); background: var(--blue-soft); }
.bristol .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 13px; font-weight: 600; flex: none; }
.bristol button[aria-checked="true"] .num { background: var(--action); color: var(--on-action); }
.bristol svg { width: 72px; height: 32px; flex: none; }
.bristol .check { margin-left: auto; width: 20px; height: 20px; color: var(--action); opacity: 0; }
.bristol button[aria-checked="true"] .check { opacity: 1; }
.chosen { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 22px; }

/* rhythm */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.seg button { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--control); background: transparent; color: var(--ink); line-height: 1.2; font-weight: 600; font-size: 14px; }
.seg button small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.seg button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.filters { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.filters button { min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--control); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--action); color: var(--action); }
.rgrid { display: grid; grid-template-columns: 40px repeat(7, 1fr); gap: 3px; margin-top: 12px; }
.rgrid .wd { font-size: 11px; color: var(--ink-2); text-align: center; padding-bottom: 2px; }
.rgrid .hr { font-size: 10.5px; color: var(--ink-2); text-align: right; padding-right: 4px; display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.rgrid .night { margin-top: 6px; }
.cell { height: 24px; border-radius: 6px; border: 0; padding: 0; background: var(--paper-2); font-size: 11px; font-weight: 700; color: var(--on-gold); position: relative; transition: transform .15s, box-shadow .15s; }
.cell[data-n="0"] { cursor: default; }
.cell.l1 { background: color-mix(in srgb, var(--gold) 34%, var(--paper-2)); }
.cell.l2 { background: color-mix(in srgb, var(--gold) 58%, var(--paper-2)); }
.cell.l3 { background: color-mix(in srgb, var(--gold) 80%, var(--paper-2)); }
.cell.l4 { background: var(--gold); }
.cell:hover:not([data-n="0"]), .cell.is-sel { box-shadow: 0 0 0 2px var(--action); z-index: 1; }
.cell:focus-visible { outline-offset: 1px; outline-width: 2px; border-radius: 6px; }
.legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11.5px; color: var(--ink-2); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: block; background: var(--paper-2); }
.legend i:nth-of-type(2) { background: color-mix(in srgb, var(--gold) 34%, var(--paper-2)); }
.legend i:nth-of-type(3) { background: color-mix(in srgb, var(--gold) 58%, var(--paper-2)); }
.legend i:nth-of-type(4) { background: color-mix(in srgb, var(--gold) 80%, var(--paper-2)); }
.legend i:nth-of-type(5) { background: var(--gold); }
.rdetail { margin-top: 12px; min-height: 60px; font-size: 13.5px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-card); }
.rdetail b { font-weight: 600; }
.rtable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--hair); }
.rtable th { font-weight: 600; color: var(--ink-2); font-size: 11.5px; }
.rtable th[scope="row"] { text-align: left; white-space: nowrap; }
.rtable td.has { font-weight: 700; color: var(--gold-ink); }
.obs { margin-top: 12px; }
.obs .o-title { font-weight: 600; font-size: 14.5px; }
.obs p { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }

/* ------------------------------------------------------------------ gallery rail */

.gallery-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gallery-top .section-head { margin-bottom: 0; }
.rail-btns { display: flex; gap: 8px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--control); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-card); transition: transform .15s, opacity .2s; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 22px; height: 22px; }
.round-btn:active:not(:disabled) { transform: scale(.94); }
.shots {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 330px); gap: clamp(20px, 3vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 44px var(--edge) 28px; margin-top: 8px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.shots .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 5px #05070F, 0 24px 50px -28px rgba(11, 21, 52, .6); }
.shots h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-top: 20px; }
.shots p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.shots-edge { width: 100%; }

/* ------------------------------------------------------------------ privacy */

.privacy-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .privacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
@media (max-width: 959px) { .privacy-grid > :first-child { order: 2; } }
.vault { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.vault .v-phone {
  position: absolute; left: 50%; top: 50%; width: 52%; height: 84%; transform: translate(-50%, -50%);
  border-radius: 46px; background: #0E1530; overflow: hidden;
  box-shadow: inset 0 0 0 2px #262F4B, 0 0 0 10px #050811, 0 0 0 11px rgba(147, 177, 255, .16), 0 40px 100px -30px rgba(52, 99, 199, .6);
}
.vault .v-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .2; }
.vault .v-phone::after { content: ""; position: absolute; inset: 52px 30px; border-radius: 50%; border: 1.5px solid var(--track); }
.vault .v-phone::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 30%; height: 18px; border-radius: 12px; background: #050811; transform: translateX(-50%); }
.vault .v-core { position: absolute; left: 50%; top: 50%; width: 16%; transform: translate(-50%, -50%); }
@media (max-width: 560px) { .vault .v-phone { width: 60%; } .vault .v-core { width: 14%; } .orb { font-size: 11px; padding: 5px 9px; } .outside { font-size: 11px; padding: 4px 9px; } }
.vault .v-core svg { width: 100%; height: auto; border-radius: 24%; box-shadow: 0 10px 30px -10px rgba(27, 53, 118, .6); }
.orb {
  position: absolute; left: 0; top: 0; z-index: 2; transform: translate(-50%, -50%);
  padding: 6px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(128, 87, 11, .6);
}
.outside {
  position: absolute; z-index: 1; background: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line);
  text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--ink-2) 70%, transparent);
}
.inbound { position: absolute; left: 50%; top: 0; height: 12%; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); }
.inbound-label { position: absolute; left: 50%; top: -6px; transform: translate(10px, -100%); font-size: 12.5px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
@media (max-width: 700px) { .inbound-label { transform: translate(-50%, -100%); white-space: normal; text-align: center; width: 80%; top: -10px; } .vault { margin-top: 40px; } }
#privacy { overflow-x: clip; }
.envelope { position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; border-radius: 6px; background: var(--action); color: var(--on-action); display: grid; place-items: center; opacity: 0; pointer-events: none; z-index: 3; }
.envelope svg { width: 20px; height: 20px; }
.envelope.fly { animation: fly-out 2.4s var(--ease) forwards; }
@keyframes fly-out { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; transform: translate(0, 0) scale(1); } 78% { opacity: 1; transform: translate(var(--tx, 220px), var(--ty, -80px)) scale(.9); } 100% { opacity: 0; transform: translate(var(--tx, 220px), var(--ty, -80px)) scale(.7); } }
.mail-target {
  position: absolute; z-index: 2; right: 0; top: 33%; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--action), 0 10px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mail-target svg { width: 16px; height: 16px; color: var(--action); }
.mail-target.is-on { opacity: 1; transform: none; }
@media (max-width: 1180px) { .mail-target { right: 2%; top: 4%; } }
.vault-send { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; border: 0; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s, filter .2s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.truths { list-style: none; display: grid; gap: 0; }
.truths li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.truths li:last-child { border-bottom: 1px solid var(--line); }
.truths svg { width: 22px; height: 22px; color: var(--gold-ink); margin-top: 2px; }
.truths b { display: block; font-weight: 600; font-size: var(--fs-2); }
.truths span { display: block; color: var(--ink-2); font-size: var(--fs-1); margin-top: 3px; }
.site-promise { margin-top: 28px; padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); font-size: var(--fs-1); color: var(--ink-2); }
.site-promise b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ platforms */

.plat-panel { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .plat-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.plat-visual { position: relative; min-height: 300px; display: grid; place-items: center; }
.plat-visual .phone { width: min(300px, 70%); }
.plat-visual .tablet { width: min(560px, 100%); }
.float-card { position: absolute; z-index: 2; filter: drop-shadow(0 24px 40px rgba(11, 21, 52, .35)); }
.float-card img { border-radius: 26px; }
.fc-widget { width: min(190px, 38%); right: 0; top: 6%; }
.fc-short { width: min(230px, 44%); left: 0; bottom: 8%; }
.fc-lock {
  right: 2%; top: 10%; width: min(220px, 46%); border-radius: 24px; padding: 14px 16px; color: #fff;
  background: rgba(12, 18, 44, .84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 13px;
}
.fc-lock .lk-time { font-size: 44px; font-weight: 300; letter-spacing: -0.03em; text-align: center; line-height: 1; }
.fc-lock .lk-w { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .14); }
.fc-lock .lk-w svg { width: 64px; height: 18px; flex: none; }
.fc-lock .lk-w b { font-size: 16px; }
.fc-lock .illus { margin-top: 8px; font-size: 12px; color: #fff; text-align: center; }
.fc-notif { left: 0; bottom: 10%; width: min(270px, 56%); }
.fc-notif .notif { position: static; opacity: 1; transform: none; background: #F2F2F6; }
.ipad-switch { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.ipad-switch button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--control); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; }
.ipad-switch button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.tablet .screen img { opacity: 0; transition: opacity .45s var(--ease); }
.tablet .screen img.is-on { opacity: 1; }
.plat-copy h3 { font-size: var(--fs-5); }
.plat-copy > p { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-2); }
.spec { list-style: none; margin-top: 24px; display: grid; }
.spec li { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-1); }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec b { font-weight: 600; }
.spec span { color: var(--ink-2); }
@media (max-width: 520px) { .spec li { grid-template-columns: 1fr; gap: 2px; } }

/* accessibility strip */
.a11y { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .a11y { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .a11y { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a11y-head { grid-column: 1 / -1; padding: 28px 0 8px; }
.a11y-head h3 { font-size: var(--fs-4); }
.a11y-item { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.a11y-item b { display: block; font-weight: 600; }
.a11y-item span { display: block; color: var(--ink-2); font-size: var(--fs-1); margin-top: 4px; }

/* ------------------------------------------------------------------ kit module */

.kit { background: var(--paper-2); }
.kit-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .kit-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } .kit-shots { position: sticky; top: 110px; } }
.kit-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); max-width: 560px; margin-inline: auto; width: 100%; }
.kit-shots figure { margin: 0; }
.kit-shots figure:nth-child(2) { margin-top: 56px; }
.kit-shots figcaption, .caption { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; text-align: center; }
.kit-list { list-style: none; margin-top: 24px; display: grid; gap: 0; }
.kit-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.kit-list li:last-child { border-bottom: 1px solid var(--line); }
.kit-list b { font-weight: 600; }
.kit-list span { color: var(--ink-2); font-size: var(--fs-1); display: block; margin-top: 2px; }
.kit-note { margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ------------------------------------------------------------------ feature index */

.finder { position: sticky; top: 68px; z-index: 5; padding: 14px 0; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.finder-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; padding: 12px 56px 12px 46px; border-radius: 999px; border: 1.5px solid var(--control);
  background: var(--card); color: var(--ink); font-size: 16px; box-shadow: var(--shadow-card);
}
.search input::placeholder { color: var(--ink-2); }
.search input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 22%, transparent); }
.search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.f-count { font-size: 14px; color: var(--ink-2); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
@media (min-width: 960px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--control); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chips button span { color: var(--ink-2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chips button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.chips button[aria-pressed="true"] span { color: inherit; opacity: .8; }
.index { margin-top: 28px; }
.group { padding-top: 32px; }
.group[hidden] { display: none; }
.group-title { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-4); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.group-title .n { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.feats { list-style: none; display: grid; }
@media (min-width: 860px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.feat { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.feat[hidden] { display: none; }
.feat h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; display: block; }
.feat p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.feat .on { display: inline-block; margin-left: 4px; vertical-align: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); }
.feat .t + .on { margin-left: 8px; }
.feat mark { background: color-mix(in srgb, var(--gold) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 .06em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-2); display: none; }
.empty.is-on { display: block; }
.empty b { color: var(--ink); }

/* ------------------------------------------------------------------ faq */

.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } .faq-grid .section-head { position: sticky; top: 100px; align-self: start; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 0; font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .3s var(--ease), background-color .2s; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold-soft); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-2); font-size: var(--fs-2); }
.faq .answer p + p { margin-top: 12px; }

/* ------------------------------------------------------------------ release */

.release { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; background: radial-gradient(70% 70% at 50% 0%, rgba(91, 141, 239, .5), transparent 70%), linear-gradient(180deg, #1B3576, #101F4A 70%, #0A0F1F); }
.release .labyrinth { position: relative; inset: auto; width: min(220px, 50vw); height: auto; margin: 0 auto; aspect-ratio: 1 / 1; }
.release h2 { font-size: var(--fs-6); letter-spacing: -0.045em; margin-top: 24px; }
.release .r-sub { margin-top: 18px; font-size: var(--fs-3); color: rgba(255, 255, 255, .86); }
.release .store-row { justify-content: center; }
.release .r-mail { margin-top: 36px; font-size: var(--fs-1); color: rgba(255, 255, 255, .78); }
.release .r-mail a { color: #F0C25A; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ footer */

.site-footer { padding-block: 56px 40px; background: var(--paper); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.site-footer .brand { color: var(--ink); }
.site-footer .by { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.site-footer .disc { color: var(--ink-2); font-size: 14px; margin-top: 18px; max-width: 36em; line-height: 1.55; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
@media (min-width: 860px) { .foot-links { justify-content: flex-end; } }
.foot-small { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------------ reveal (1 quiet entrance for large blocks) */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ simple pages (support, 404) */

.page-hero { padding: 132px 0 64px; color: #fff; background: radial-gradient(120% 90% at 10% 0%, rgba(91, 141, 239, .5), transparent 60%), linear-gradient(165deg, var(--hero-1), var(--hero-2) 50%, var(--hero-3)); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--fs-6); }
.page-hero p { margin-top: 16px; font-size: var(--fs-3); color: rgba(255, 255, 255, .86); max-width: 34em; }
.page-hero .labyrinth { position: absolute; inset: 40px -80px auto auto; width: 360px; height: 360px; opacity: .3; }
@media (max-width: 700px) { .page-hero .labyrinth { inset: auto -70px -60px auto; width: 220px; height: 220px; opacity: .18; } }
.prose { max-width: 760px; padding-block: 64px 96px; }
.faq .section-head a { overflow-wrap: anywhere; }
.prose h2 { font-size: var(--fs-4); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: var(--fs-2); margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--ink); font-weight: 600; }
.contact-card { margin-top: 24px; padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-card); }
.contact-card a { font-weight: 600; font-size: var(--fs-3); overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 400px) { .contact-card { padding: 18px; } .contact-card a { font-size: clamp(14px, 4.3vw, 17px); } }
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 64px; }
.nf .labyrinth { position: relative; width: 200px; height: 200px; margin: 0 auto 28px; }
.nf h1 { font-size: var(--fs-6); }
.nf p { margin-top: 16px; font-size: var(--fs-3); color: rgba(255, 255, 255, .86); }
.nf .btn { margin-top: 32px; background: #F0C25A; color: #1C1504; }
.nf .nf-legal { margin-top: 10px; font-size: var(--fs-2); }
.nf .nf-legal a { color: #F0C25A; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ story: the night band and the closing step */

.story { isolation: isolate; overflow-x: clip; }
.step.is-night { position: relative; color: var(--night-ink); }
.step.is-night::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -100vw;
  background: linear-gradient(180deg, #0E1838 0%, #060A16 20%, #060A16 80%, #0E1838 100%);
  border-block: 1px solid rgba(147, 177, 255, .12);
}
.step.is-night::after {
  content: ""; position: absolute; z-index: -1; inset: 8% 20% 8% -30%;
  background: radial-gradient(closest-side, rgba(52, 99, 199, .28), transparent); pointer-events: none;
}
@media (min-width: 960px) { .step.is-night { min-height: 100vh; justify-content: center; } }
.step.is-night h3 { color: #fff; }
.step.is-night > p { color: var(--night-ink-2); }
.step.is-night .step-time { color: #F0C25A; }
.step.is-night .facts li { color: var(--night-ink); }
.step.is-night .facts li::before { border-color: #F0C25A; }
.step.is-night .quote { background: #151B2F; color: var(--night-ink); box-shadow: inset 0 0 0 1px #262F4B; }
.step.is-night .quote::before { color: var(--night-ink-2); }
.step.is-night :focus-visible { outline-color: #F0C25A; }
.stage-caption { transition: color .4s; }
.story.night-on .stage-caption { color: var(--night-ink-2); }
.step.is-finale h3 { font-size: var(--fs-6); }
@media (min-width: 960px) { .step.is-finale { min-height: 64vh; } }

/* ------------------------------------------------------------------ privacy: a deep vault band, the night palette on any theme */

.vault-band {
  color-scheme: dark;
  --paper: #0A0F1F; --paper-2: #10172B; --card: #151B2F; --ink: #EDF0F8; --ink-2: #A6AEC4; --line: #262F4B; --hair: #222A44;
  --control: #636F93; --action: #93B1FF; --on-action: #0A1430; --link: #A9C1FF; --blue-soft: #1B2952;
  --gold: #F0C25A; --gold-soft: #3A2D0E; --gold-ink: #F0C25A; --track: #323C5E; --focus: #93B1FF;
  --shadow-card: 0 0 0 1px rgba(147, 177, 255, .06), 0 14px 40px -20px rgba(0, 0, 0, .8);
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 22% 45%, rgba(52, 99, 199, .34), transparent 70%),
    radial-gradient(45% 45% at 95% 100%, rgba(240, 194, 90, .08), transparent 70%),
    linear-gradient(180deg, #0C1533, #0A0F1F 72%);
}

/* ------------------------------------------------------------------ the Log screen drawn for the Calm Mode demo */

.log-badge { display: inline-flex; margin-top: 8px; padding: 3px 9px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-ink); font-size: 12px; font-weight: 600; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.log-head b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.log-head span { font-size: 13px; font-weight: 600; color: var(--action); }
.log-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.log-tiles div { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.log-tiles .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--action); color: var(--on-action); }
.log-tiles .ico svg { width: 18px; height: 18px; }
.big-pill.is-cue { box-shadow: 0 0 0 2px var(--gold), var(--shadow-card); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 10px; }
.stepper span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--action); }
.stepper span svg { width: 18px; height: 18px; }
.stepper strong { font-size: 30px; font-weight: 800; }
.log-stepper b { font-weight: 600; }

/* ------------------------------------------------------------------ small layout fixes */

.hairline { border-top: 1px solid var(--line); }
@media (max-width: 639px) { .finder { position: static; padding-bottom: 4px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-phone { transform: perspective(1600px) rotateY(16deg) rotateX(5deg) rotateZ(-3deg); }
}

/* print: the content, plainly */
@media print {
  .site-header, .menu-sheet, .tryit, .finder, .rail-btns, .stage { display: none !important; }
  .hero, .release, .on-navy { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------------ helpers moved out of markup (strict CSP: no inline styles) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.ipad-wrap { width: 100%; }
.o1 { left: 2%; top: 15%; }
.o2 { right: 0; top: 22%; }
.o3 { left: 0; top: 43%; }
.o4 { right: 0; top: 52%; }
.o5 { left: 1%; top: 72%; }
.o6 { right: 2%; top: 81%; }

/* demo details */
.app .app-cap { color: var(--gold-ink); }
.app-hero .app-cap { color: rgba(255, 255, 255, .86); }
.bristol svg:not(.check) { color: var(--stool); fill: currentColor; }
.bristol .so { stroke: var(--ink); stroke-opacity: .22; stroke-width: 1; }
.bristol .gap { fill: none; stroke: var(--card); stroke-width: 1.6; stroke-linecap: round; }
.bristol button[aria-checked="true"] .gap { stroke: var(--blue-soft); }
.bristol .rope { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.bristol .check { fill: none; }
.app h4 + .sub { margin-bottom: 4px; }

/* privacy on small screens: what stays out is listed under the phone instead of around it */
.nots { display: none; list-style: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.nots li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
@media (max-width: 1180px) {
  .vault .outside { display: none; }
  .nots { display: flex; }
}
@media (max-width: 700px) {
  .vault { aspect-ratio: 1 / 1.12; }
  .vault .v-phone { width: 66%; height: 88%; }
}
.fc-lock { min-width: 176px; }
.fc-lock .lk-w b { white-space: nowrap; }

.shots:focus-visible { outline-offset: -3px; border-radius: 0; }

/* while you move through the feature list, anything focused lands below the header and the sticky search */
@media (min-width: 640px) { html:has(#features :focus-visible) { scroll-padding-top: 170px; } }
