/* Miryvo marketing site. Warm world, 12 October 2026: the app's own canvas
   (white, ink actions, one ember accent, warm top light, 3D renders) carried
   to the web. Type is the visitor's system face: SF Pro on Apple devices, the
   same face the app uses, so no font request leaves this site. */

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

:root {
  /* A warm neutral ramp: the app's Body greys (#F5F0EB) set its temperature. */
  --neutral-0: #FFFFFF;
  --neutral-50: #FBF9F7;
  --neutral-100: #F6F2EE;
  --neutral-200: #ECE6E0;
  --neutral-300: #DAD3CC;
  --neutral-400: #ABA49D;
  --neutral-500: #7B756F;
  --neutral-600: #5A554F;
  --neutral-700: #45403B;
  --neutral-800: #2A2725;
  --neutral-900: #1A1817;
  --neutral-950: #0C0B0A;

  /* The one effort colour (canvas BRAND), its readable ink and its wash. */
  --ember: #F46A1F;
  --ember-ink: #B93D0C;
  --ember-wash: #FFF1E8;

  /* Area accent, ink and wash: the app's own triples (canvas build_areas). */
  --face-accent: #E11D48;
  --face-ink: #BE123C;
  --face-wash: #FFF1F2;
  --hair-accent: #CA8A04;
  --hair-ink: #854D0E;
  --hair-wash: #FEFCE8;
  --body-accent: #F46A1F;
  --body-ink: #9A3412;
  --body-wash: #FFF7ED;
  --style-accent: #C026D3;
  --style-ink: #86198F;
  --style-wash: #FDF4FF;
  --food-accent: #059669;
  --food-ink: #066B4B;
  --food-wash: #ECFDF5;
  --mind-accent: #0891B2;
  --mind-ink: #155E75;
  --mind-wash: #ECFEFF;
  --cognitive-accent: #2563EB;
  --cognitive-ink: #1D4ED8;
  --cognitive-wash: #EFF6FF;
  --voice-accent: #7C3AED;
  --voice-ink: #6D28D9;
  --voice-wash: #F5F3FF;
  --sleep-accent: #4F46E5;
  --sleep-ink: #363899;
  --sleep-wash: #EEF2FF;

  /* Three radii, plus the drawn device frame's own corner. */
  --radius-control: 16px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-phone: 44px;

  /* System faces. Rounded headlines carry the app's warmth on Apple devices. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Depth: one card shadow and one floating shadow, both warm and offset. */
  --raised: 0 1px 2px rgba(60, 40, 20, 0.05), 0 6px 20px -8px rgba(60, 40, 20, 0.12);
  --float: 0 16px 40px -14px rgba(40, 26, 14, 0.28), 0 2px 6px rgba(40, 26, 14, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Light theme roles. */
  --base: var(--neutral-100);
  --card: var(--neutral-0);
  --sunken: var(--neutral-200);
  --recess: var(--neutral-100);
  --inset: var(--neutral-300);
  --inverse: #111113;
  --tx: #111113;
  --tx2: var(--neutral-600);
  --tx3: #66605A;
  --txinv: #FFFFFF;
  --hair: var(--neutral-200);
  --edge: transparent;
  --strong: var(--neutral-400);
  --focus: var(--ember-ink);
  --track: var(--neutral-200);
  --prod: #111113;
  --prodwash: var(--ember-wash);
  --knob: var(--neutral-0);
  --switchoff: var(--neutral-300);
  --tick: var(--neutral-500);
  --tickmajor: var(--neutral-700);
  --glow: var(--ember);

  /* The signal field: the region the product signal owns. It does not invert
     between themes, so the instrument reads the same on a dark page. */
  --field: #1C1A18;
  --fieldlight: #3A322C;
  --fieldtx: #FBF9F7;
  --fieldtx2: #D9D2CB;
  --fieldtx3: #ABA49D;
  --fieldarc: #F6F2EE;
  --fieldtrack: rgba(255, 255, 255, 0.14);
  --fieldtick: rgba(255, 255, 255, 0.34);
  --fieldtickmajor: #F6F2EE;
  --fieldstrong: rgba(255, 255, 255, 0.42);
  --fieldrecess: rgba(255, 255, 255, 0.12);
  --fieldhair: rgba(255, 255, 255, 0.16);
  --field-light-gradient: radial-gradient(
    140% 100% at 50% 34%,
    var(--fieldlight) 0%,
    var(--field) 62%
  );
}

[data-domain="face"] { --acc: var(--face-accent); --accink: var(--face-ink); --accwash: var(--face-wash); }
[data-domain="hair"] { --acc: var(--hair-accent); --accink: var(--hair-ink); --accwash: var(--hair-wash); }
[data-domain="body"] { --acc: var(--body-accent); --accink: var(--body-ink); --accwash: var(--body-wash); }
[data-domain="style"] { --acc: var(--style-accent); --accink: var(--style-ink); --accwash: var(--style-wash); }
[data-domain="food"] { --acc: var(--food-accent); --accink: var(--food-ink); --accwash: var(--food-wash); }
[data-domain="mind"] { --acc: var(--mind-accent); --accink: var(--mind-ink); --accwash: var(--mind-wash); }
[data-domain="cognitive"] { --acc: var(--cognitive-accent); --accink: var(--cognitive-ink); --accwash: var(--cognitive-wash); }
[data-domain="voice"] { --acc: var(--voice-accent); --accink: var(--voice-ink); --accwash: var(--voice-wash); }
[data-domain="sleep"] { --acc: var(--sleep-accent); --accink: var(--sleep-ink); --accwash: var(--sleep-wash); }

/* Dark keeps the iOS greys, as the app does; ember lifts to stay readable. */
@media (prefers-color-scheme: dark) {
  :root {
    --ember: #FF7A33;
    --ember-ink: #FF9A5C;
    --ember-wash: #3A1F10;
    --base: #000000;
    --card: #1C1C1E;
    --sunken: #2C2C2E;
    --recess: #2C2C2E;
    --inset: #3A3A3C;
    --inverse: #F5F5F7;
    --tx: #F5F5F7;
    --tx2: #C7C7CC;
    --tx3: #A1A1A6;
    --txinv: #111113;
    --hair: rgba(255, 255, 255, 0.12);
    --edge: rgba(255, 255, 255, 0.1);
    --strong: rgba(255, 255, 255, 0.4);
    --focus: var(--ember-ink);
    --track: #2C2C2E;
    --prod: #F5F5F7;
    --prodwash: var(--ember-wash);
    --knob: #1C1C1E;
    --switchoff: #7C7C80;
    --tick: rgba(255, 255, 255, 0.4);
    --tickmajor: #C7C7CC;
    --glow: var(--ember);
    --raised: none;
    --float: 0 16px 40px -14px rgba(0, 0, 0, 0.7);
    --field: #1C1C1E;
    --fieldlight: #3A3A3C;
    --fieldtx2: #C7C7CC;
    --fieldtx3: #A1A1A6;
    --fieldarc: #E5E5EA;
    --fieldtickmajor: #E5E5EA;
  }

  [data-domain="face"] { --acc: #FB7185; --accink: #FFC3CD; --accwash: #4C0519; }
  [data-domain="hair"] { --acc: #FACC15; --accink: #FDE68A; --accwash: #422006; }
  [data-domain="body"] { --acc: #FF7A33; --accink: #FFCCA5; --accwash: #431407; }
  [data-domain="style"] { --acc: #E879F9; --accink: #F4C4FC; --accwash: #4A044E; }
  [data-domain="food"] { --acc: #34D399; --accink: #C7F9E3; --accwash: #064E3B; }
  [data-domain="mind"] { --acc: #22D3EE; --accink: #A5F3FC; --accwash: #083344; }
  [data-domain="cognitive"] { --acc: #60A5FA; --accink: #BFDBFE; --accwash: #172554; }
  [data-domain="voice"] { --acc: #A78BFA; --accink: #DDD6FE; --accwash: #2E1065; }
  [data-domain="sleep"] { --acc: #8B8DF9; --accink: #C7C8FF; --accwash: #1E1B4B; }
}

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ember-wash);
  color: var(--tx);
}

html {
  caret-color: var(--ember);
  accent-color: var(--ember);
  scroll-padding-top: 88px;
}

/* ------------------------------------------------------------ type roles */

.t-display,
.t-metric,
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.t-display {
  font-size: 64px;
  line-height: 64px;
  font-weight: 600;
  letter-spacing: -2px;
}

.t-metric {
  font-size: 32px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.t-title {
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.t-heading {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.t-body {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.t-label {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.t-caption {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.15px;
}

.t-title,
.t-heading,
.h-hero,
.h-sec {
  text-wrap: balance;
}

.t-display,
.t-metric,
.t-title,
.h-hero,
.h-sec,
h1,
h2 {
  font-family: var(--font-round);
}

.tone2 { color: var(--tx2); }
.tone3 { color: var(--tx3); }

.h-hero {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.h-sec {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.prose {
  font-size: 16px;
  line-height: 24px;
  max-width: 62ch;
}

/* Read by assistive technology, never drawn. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- layout */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.sec {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sec + .sec {
  border-top: 1px solid var(--hair);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

/* Plans keep their own height: a short card does not stretch to the yearly one. */
#plans {
  align-items: start;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gap-4 { gap: 4px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* The few layout primitives the markup needs by name, so a page carries no
   inline style and the composition stays in one file. */
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.centered { align-items: center; }
.top { align-items: flex-start; gap: 12px; }
.subarea { margin-top: 4px; }
.subarea strong { color: var(--tx); font-weight: 600; }
.narrow { max-width: 52ch; }
.bare { padding: 0; }
.finish { align-items: center; margin-top: 8px; }

ul.plain,
ol.plain {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

ul.rows {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul.rows > li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* -------------------------------------------------------------- surfaces */

/* A plate: white on the pearl canvas, separated by tone, never by a hairline
   box; --edge is transparent in light and a white alpha in dark, where
   luminance and boundary carry the depth. */
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--raised);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .card {
  background: var(--recess);
}

.card.flat {
  box-shadow: none;
}

.hair {
  display: block;
  height: 1px;
  background: var(--hair);
  border: 0;
  margin: 0;
}

.field .card {
  background: var(--fieldrecess);
  border-color: transparent;
}

/* -------------------------------------------------------------- controls */

.focusable:focus-visible,
summary.focusable:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lbtn {
  min-height: 48px;
  min-width: 44px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  background: var(--inverse);
  color: var(--txinv);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 420ms var(--ease-spring),
    box-shadow 240ms var(--ease-out),
    opacity 160ms var(--ease-out);
}

.lbtn.secondary {
  background: transparent;
  border: 1px solid var(--strong);
  color: var(--tx);
}

.lbtn .apple-glyph {
  width: 18px;
  height: 18px;
  margin-top: -3px;
  flex-shrink: 0;
}

.lbtn.text {
  background: transparent;
  color: var(--tx);
  text-decoration: underline;
  text-decoration-color: var(--strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.lbtn.lg { min-height: 52px; }

.lbtn.xl {
  min-height: 64px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.lbtn.block {
  width: 100%;
  align-self: stretch;
}

@media (hover: hover) {
  .lbtn:hover { transform: translateY(-1px); box-shadow: var(--float); }
}

.lbtn:active { transform: scale(0.97); transition-duration: 90ms; box-shadow: none; }

/* The stepper hides what it replaces; a component's own display would
   otherwise out-rank the browser's rule for the attribute. */
[hidden] {
  display: none !important;
}

.navlink {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--tx);
  text-decoration: none;
}

@media (hover: hover) {
  .navlink:hover {
    background: var(--sunken);
  }
}

.navlink[aria-current="page"] {
  background: var(--sunken);
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -9999px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  margin: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--inverse);
  color: var(--txinv);
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

/* --------------------------------------------------------- header, menu */

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--base) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--tx);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
}

.brand .t-heading {
  font-family: var(--font-round);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.header-cta {
  align-self: center;
}

/* The menu is a native disclosure, so it opens and closes without scripts. */
.menu > summary {
  min-height: 44px;
  padding: 0 12px 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--strong);
  background: var(--card);
  color: var(--tx);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary .close-label,
.menu[open] > summary .open-label {
  display: none;
}

.menu[open] > summary .close-label {
  display: inline;
}

.menu[open] > summary .chev {
  transform: rotate(180deg);
}

.primary-nav {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--base);
  box-shadow: var(--float);
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.primary-nav .navlink {
  min-height: 48px;
}

/* The header is sticky, so a tall menu scrolls inside the viewport. */
@media (max-width: 1199px) {
  .primary-nav {
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.language-switch { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.language-switch a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: var(--radius-control); }
.language-switch a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 600px) { .language-switch { gap: 0; } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--tx);
  text-decoration: none;
  border-radius: var(--radius-control);
}

.text-link .i {
  width: 18px;
  height: 18px;
  transition: transform 360ms var(--ease-spring);
}

@media (hover: hover) {
  .text-link:hover .i { transform: translateX(4px); }
}

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

.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--sunken);
  margin-top: auto;
}

.site-footer .shell {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col > .t-label {
  padding: 8px 0 4px;
}

.footer-col .navlink {
  padding-left: 0;
}

.site-footer .row img {
  width: 34px;
  height: 34px;
  border-radius: 22%;
}

.site-footer .row .t-heading {
  font-family: var(--font-round);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.legal-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --------------------------------------------------- field · instrument */

/* The field owns its stacking level: above the scroll fade, below pinned
   chrome. The light sits behind the instrument, two opaque stops. */
.field {
  position: relative;
  z-index: 1;
  background: var(--field-light-gradient);
  background-color: var(--field);
  color: var(--fieldtx);
  border-radius: var(--radius-card);
  overflow: hidden;
  --card: var(--fieldrecess);
  --sunken: var(--fieldrecess);
  --recess: var(--fieldrecess);
  --tx: var(--fieldtx);
  --tx2: var(--fieldtx2);
  --tx3: var(--fieldtx3);
  --hair: var(--fieldhair);
  --edge: var(--fieldhair);
  --strong: var(--fieldstrong);
  --focus: var(--fieldtx);
  --track: var(--fieldtrack);
  --prod: var(--fieldarc);
  --glow: var(--fieldarc);
  --tick: var(--fieldtick);
  --tickmajor: var(--fieldtickmajor);
  --raised: none;
  --float: none;
}

.field .t-body {
  line-height: 25px;
  letter-spacing: 0.1px;
  font-weight: 450;
}

.field .t-caption {
  line-height: 19px;
  letter-spacing: 0.25px;
}

/* The instrument box: the arc with its bezel, the numeral inside, the label
   in the southern gap. The bezel is the ruler — it carries no value. */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.photo-pair > span {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--track);
}

.photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.photo-pair small {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--base);
  font-size: 12px;
  font-weight: 600;
}

.hero-arc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.arc-text {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- phone stage */

/* A drawn app frame is a picture of the product: the frame is inert, every
   control inside it is out of the tab order, and one role="img" with a written
   label stands for the whole thing. */
.stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.stage-box.s72 {
  --sc: 0.72;
}

.stage-box {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  max-width: 100%;
  width: calc(390px * var(--sc));
  height: calc(844px * var(--sc));
  --sc: 0.78;
}

/* A drawn screen is a picture: its buttons take no hand cursor. */
[inert],
[inert] * {
  cursor: default;
}

.stage-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--sc));
  transform-origin: top left;
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-phone);
  border: 1px solid var(--strong);
  background: var(--base);
  color: var(--tx);
}

.phone .safe-top {
  height: 47px;
  flex: 0 0 auto;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px 8px;
}

.phone-body {
  flex: 1 1 auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.phone-body > * {
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--recess);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: var(--tx2);
}

.score-block {
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.score-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fieldtx);
}

.tabbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  margin: 4px 16px 16px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: var(--float);
}

.tabbar > span {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--tx3);
}

.tabbar > span.on {
  color: var(--tx);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--inverse);
  color: var(--txinv);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-dot {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--inverse);
  color: var(--txinv);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
}

.scrollfade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--base) 82%);
}

.bubble {
  align-self: flex-end;
  max-width: 82%;
  background: var(--inverse);
  color: var(--txinv);
  border-radius: var(--radius-control);
  padding: 10px 14px;
}

.switch {
  width: 51px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--switchoff);
  padding: 2px;
  display: flex;
  justify-content: flex-start;
}

.switch.on {
  background: var(--inverse);
  justify-content: flex-end;
}

.switch > span {
  width: 27px;
  height: 27px;
  border-radius: var(--radius-pill);
  background: var(--knob);
}

.setrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.c-set { width: 28px; }
.c-prev { width: 64px; }
.c-num { flex: 1; text-align: center; }

.c-done {
  width: 44px;
  display: flex;
  justify-content: center;
}

.scope {
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.setcell {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: 1px solid var(--strong);
  border-radius: var(--radius-control);
  padding: 6px 4px;
  background: var(--card);
}

/* ----------------------------------------------------------- page parts */

.eyebrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pagelink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--tx);
  border-radius: var(--radius-card);
}

.pagelink:hover {
  background: var(--recess);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 14px;
  border-radius: var(--radius-control);
  border: 1px dashed var(--strong);
  background: var(--card);
  color: var(--tx);
  text-decoration: none;
  align-self: flex-start;
}

.badge.off {
  background: var(--sunken);
  color: var(--tx3);
}

.answer {
  padding: 0;
  gap: 0;
}

.answer > summary {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: var(--radius-card);
  list-style: none;
}

.answer > summary::-webkit-details-marker {
  display: none;
}

.answer > summary > .t-heading {
  flex: 1;
  font-size: 17px;
  line-height: 23px;
}

.answer[open] > summary .chev {
  transform: rotate(180deg);
}

.answer-body {
  padding: 0 16px 16px;
}

.steptabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-card);
  border: 1px solid var(--edge);
  background: var(--sunken);
}

.steptab {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  background: transparent;
  color: var(--tx2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.steptab[aria-selected="true"] {
  border-color: var(--tx);
  background: var(--card);
  color: var(--tx);
}

.arealine {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
}

.areaglyph {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-control);
  background: var(--accwash);
  color: var(--accink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.note > svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

.chev {
  flex: 0 0 auto;
  transition: transform 120ms cubic-bezier(0.32, 0.72, 0, 1);
}

.header-cta {
  display: none;
}

.step + .step {
  margin-top: 32px;
}

.steptabs + .steps {
  margin-top: 8px;
}

/* ------------------------------------------------------------ adaptive */

/* Below the 390 reference artboard the drawn frame steps down so a picture of
   the product never pushes the page sideways. */
@media (max-width: 359px) {
  .stage-box {
    --sc: 0.7;
  }

  .stage-box.s72 {
    --sc: 0.66;
  }
}

@media (min-width: 600px) {
  .grid.c2,
  .grid.c3,
  .grid.c4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .shell {
    padding-left: 40px;
    padding-right: 40px;
  }

  .sec {
    padding: 88px 0;
    gap: 32px;
  }

  .h-hero {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -1.2px;
  }

  .h-sec {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.8px;
  }

  .prose {
    font-size: 18px;
    line-height: 28px;
  }

  .grid.c3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .grid.c4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .split {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .split > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .steps {
    gap: 64px;
  }

  /* A step's copy is short and its picture is tall: the two sit together,
     centred on each other, instead of a half-empty column beside the phone. */
  .steps .split,
  .step .split {
    align-items: center;
    justify-content: center;
  }

  .step .split > .stack {
    flex: 0 1 28rem;
  }

  .step .split > .stage {
    flex: 0 0 auto;
  }

  .site-header .shell {
    min-height: 72px;
    gap: 24px;
  }

  .hero-cta {
    width: auto;
    align-self: flex-start;
  }

  #hero .stage-box {
    --sc: 0.9;
  }

  .footer-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-top > .stack {
    flex: 1 1 0;
  }

  .footer-cols {
    flex: 2 1 0;
  }
}

/* The shared header holds six destinations and the call to action on one
   line from 1200 px; below that they live in the menu. */
@media (min-width: 1200px) {
  .header-cta {
    display: inline-flex;
    white-space: nowrap;
  }

  /* Above the collapse the destinations are inline: the disclosure control
     goes away and its list is shown whether or not the details is open. */
  .menu {
    display: contents;
  }

  .menu > summary {
    display: none;
  }

  .menu::details-content {
    content-visibility: visible;
    block-size: auto;
  }

  .primary-nav {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .primary-nav .navlink {
    min-height: 44px;
    white-space: nowrap;
  }

  .primary-nav .hair,
  .primary-nav .lbtn.menu-cta {
    display: none;
  }
}

/* --------------------------------- motion, forced colours, print, media */

/* Buttons press and lift; the preference removes that motion too. */
@media (prefers-reduced-motion: reduce) {
  .lbtn,
  .chev {
    transition: none;
  }

  .lbtn:hover,
  .lbtn:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .card,
  .lbtn,
  .badge,
  .phone,
  .menu > summary {
    border: 1px solid CanvasText;
  }

  .focusable:focus-visible {
    outline: 2px solid Highlight;
  }
}

@media print {
  .site-header,
  .stage,
  .lbtn {
    display: none;
  }

  body {
    background: Canvas;
    color: CanvasText;
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 360px) {
  .site-header .shell { padding-inline: 16px; gap: 6px; }
  .brand { gap: 6px; }
  .brand .t-heading { font-size: 19px; }
  .menu > summary { padding-inline: 7px; gap: 6px; }
}
