/* luxco.app: the app's Grafite skin (docs/visual-guide.md), light and dark from the system.
   No JavaScript: every animation is CSS, plays once or follows the scroll, and the page
   without it (old browser, reduced motion) shows the finished state. */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/assets/fonts/sora-variable.fa26406eed.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plex-sans-400.3b646991d3.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plex-sans-500.0717336fb3.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plex-sans-600.8960851d69.woff2) format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #f2f0ec;
  --surface: #fefdfb;
  --raised: #fefdfb;
  --surface-2: #ebe8e2;
  --ink: #16140f;
  --muted: #736c63;
  --line: color-mix(in srgb, var(--ink) 9%, transparent);
  --accent: #17687d;
  --accent-soft: #dcecef;
  --accent-deep: #0d4858;
  --on-mark: #fff;
  --od: #c23b33;
  --os: #2a5fc0;
  --ok: #2c8150;
  --caution: #7d6608;
  --pri-top: #1f7a90;
  --pri-bottom: #135c6f;
  --pri-ink: #fff;
  --pri-lift: 0 1px 2px rgb(13 72 88 / 0.22), 0 6px 14px -6px rgb(13 72 88 / 0.5);
  --frame: #26231f;
  --mark-ring: #17687d;
  --mark-light: #cf8d27;
  --muted-strong: color-mix(in srgb, var(--muted) 72%, var(--ink));
  --tint-1: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
  --tint-2: color-mix(in srgb, var(--surface-2) 75%, var(--surface));
  --tint-3: var(--surface-2);
  --well: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
  --track: rgb(22 20 15 / 0.065);
  --sh-c: 38 28 16;
  --e-ctl: 0 1px 1px rgb(var(--sh-c) / 0.05), 0 1px 3px rgb(var(--sh-c) / 0.06);
  --e-card: 0 0 0 1px rgb(var(--sh-c) / 0.05), 0 1px 2px rgb(var(--sh-c) / 0.04), 0 12px 28px -14px rgb(var(--sh-c) / 0.12);
  --e-card-rest: 0 1px 2px rgb(var(--sh-c) / 0.04), 0 12px 28px -14px rgb(var(--sh-c) / 0.12);
  --e-device: 0 2px 4px rgb(var(--sh-c) / 0.08), 0 40px 80px -30px rgb(var(--sh-c) / 0.45);
  --e-sheet: 0 -1px 0 rgb(var(--sh-c) / 0.04), 0 -14px 34px -14px rgb(var(--sh-c) / 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --display: 'Sora', 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --surface: #1a1917;
    --raised: #23211e;
    --surface-2: #262420;
    --ink: #efeae2;
    --muted: #9a938a;
    --line: color-mix(in srgb, #fff 9%, transparent);
    --accent: #62b4c8;
    --accent-soft: #12313a;
    --accent-deep: #8fcddc;
    --on-mark: #06232b;
    --od: #f07b71;
    --os: #7fa9f5;
    --ok: #6cc795;
    --caution: #d9c25a;
    --pri-top: #9ad6e4;
    --pri-bottom: #62b4c8;
    --pri-ink: #06232b;
    --pri-lift: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 14px -6px rgb(0 0 0 / 0.7);
    --frame: #36332e;
    --mark-ring: #efeae2;
    --mark-light: #f2bd5c;
    --tint-2: color-mix(in srgb, #fff 9%, var(--surface));
    --tint-3: color-mix(in srgb, #fff 13%, var(--surface));
    --track: rgb(255 250 240 / 0.08);
    --e-ctl: 0 1px 2px rgb(0 0 0 / 0.45);
    --e-card: 0 0 0 1px rgb(255 248 236 / 0.06), inset 0 1px 0 rgb(255 248 236 / 0.035);
    --e-card-rest: inset 0 1px 0 rgb(255 248 236 / 0.035);
    --e-device: 0 0 0 1px rgb(255 248 236 / 0.06), 0 40px 80px -30px rgb(0 0 0 / 0.9);
    --e-sheet: 0 0 0 1px rgb(255 248 236 / 0.08), inset 0 1px 0 rgb(255 248 236 / 0.06);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 128px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* Type: tracking tightens as the size grows; body stays at 0 */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
/* Headlines are Sora, the wordmark's face (its round bowls repeat the Pupila), set light and
   tight. The phrase that carries the contrast closes the headline on a line of its own, in
   the wordmark's weight and the accent. Everything else is the app's Plex Sans. */
h1,
h2 {
  font-family: var(--display);
  font-weight: 300;
}
h1 {
  font-size: clamp(34px, 8.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(27px, 5.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h1 em,
h2 em {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-deep);
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}
strong {
  font-weight: 600;
}
::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--ink);
}

/* Drawn marks (the app's check and a chevron), so no icon depends on a font's glyphs */
.rx-steps .done::before,
.rx-sign .now::before,
.nrow i::before,
.paid::before,
.assure li::before {
  content: '';
  flex: none;
  display: inline-block;
  width: 0.34em;
  height: 0.62em;
  margin: 0 0.5em 0.12em 0.14em;
  border: solid currentColor;
  border-width: 0 0.13em 0.13em 0;
  transform: rotate(42deg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
/* A reading column that keeps the page's left edge */
.narrow > * {
  max-width: 720px;
}

/* Brand: the "Pupila" lockup (D35), inline so its colours follow the theme */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  display: block;
  height: 30px;
  width: auto;
}
.logo-ring {
  fill: var(--mark-ring);
}
.logo-light {
  fill: var(--mark-light);
}
.logo-word {
  fill: var(--ink);
}

/* Top bar: floating glass, no bar. The links sit in a frosted capsule; one raised pill rests
   on the tab of the section being read and glides to the tab under the pointer (hero.js),
   like a segmented control. Where the page scrolls under, it fades and blurs into the
   background instead of meeting a hairline (a scroll edge), which comes in over the first
   48 px. The hero lamp's light reaches up behind the bar, so the glass shows it, and the
   capsule's rim and the button's edge catch it on the side that faces the lamp until the
   hero scrolls away. Everything that follows the scroll is an opacity, off the main thread. */
.top {
  --nav-track: color-mix(in srgb, var(--surface) 30%, transparent);
  --glass: color-mix(in srgb, var(--surface) 42%, transparent);
  --glass-edge: color-mix(in srgb, var(--ink) 8%, transparent);
  --glass-hi: rgb(255 255 255 / 0.6);
  --glass-lift: 0 1px 1px rgb(var(--sh-c) / 0.03), 0 8px 22px -14px rgb(var(--sh-c) / 0.2);
  --pill: var(--surface);
  --pill-lift: 0 0 0 1px var(--glass-edge), 0 1px 2px rgb(var(--sh-c) / 0.08), 0 3px 10px -4px rgb(var(--sh-c) / 0.16);
  --catch: color-mix(in srgb, var(--mark-light) 75%, transparent);
  --catch-from: to top;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: env(safe-area-inset-top);
}
@media (prefers-color-scheme: dark) {
  .top {
    --nav-track: rgb(255 248 236 / 0.03);
    --glass: color-mix(in srgb, var(--raised) 60%, transparent);
    --glass-edge: rgb(255 248 236 / 0.09);
    --glass-hi: rgb(255 248 236 / 0.09);
    --glass-lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 30px -12px rgb(0 0 0 / 0.75);
    --pill: rgb(255 248 236 / 0.1);
    --pill-lift: inset 0 1px 0 rgb(255 248 236 / 0.08), 0 1px 3px rgb(0 0 0 / 0.35);
    --catch: color-mix(in srgb, var(--mark-light) 60%, transparent);
  }
}
/* the lamp sits beside the copy once the hero has two columns */
@media (min-width: 980px) {
  .top {
    --catch-from: to top left;
  }
}
.top::before {
  content: '';
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  background: linear-gradient(color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 70%, transparent) 60%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}
.top-in {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'brand cta' 'nav nav';
  align-items: center;
  gap: 4px 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
}
.top .brand {
  grid-area: brand;
  justify-self: start;
}
.top .btn {
  grid-area: cta;
  justify-self: end;
  position: relative;
  gap: 6px;
  padding: 0 15px 0 19px;
}
.go {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 180ms var(--ease-out);
}
.nav {
  grid-area: nav;
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--nav-track);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    inset 0 1px 0 var(--glass-hi);
}
/* The frosted glass and its lift come in with the scroll edge. At the top of the page the
   capsule is only a track the hero's light shows through: a blur over the lamp's turning
   rays would be redone every frame. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    inset 0 1px 0 var(--glass-hi),
    var(--glass-lift);
  pointer-events: none;
}
.nav a {
  position: relative;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: color 160ms var(--ease-out);
}
/* The pill: placed by hero.js with transform and width, gliding on the drawer curve. It
   only glides once placed (data-pill="on"); a jump is instant. */
.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--pill);
  box-shadow: var(--pill-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out);
}
.nav[data-pill='on'] .nav-pill {
  transition:
    transform 320ms var(--ease-drawer),
    width 320ms var(--ease-drawer),
    opacity 160ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .nav[data-pill='on'] .nav-pill {
    transition: opacity 160ms var(--ease-out);
  }
}
.nav a[aria-current] {
  color: var(--ink);
}
/* the ink follows the pill: while another tab is pointed at, the current one steps back */
.nav[data-pill]:hover a[aria-current]:not(:hover) {
  color: var(--muted-strong);
}
/* pressed: the highlight is there the moment the finger lands */
.nav a:active {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav[data-pill] a:active {
  background: none;
  opacity: 0.7;
}
/* the warm rim: a 1 px ring, brightest on the side towards the lamp */
.nav::after,
.top .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(var(--catch-from), var(--catch), transparent 55%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .top::before,
  .nav::before {
    animation: edge-in linear both;
    animation-timeline: scroll();
    animation-range: 0 48px;
  }
  @keyframes edge-in {
    from {
      opacity: 0;
    }
  }
  .nav::after,
  .top .btn::after {
    animation: catch-out linear both;
    animation-timeline: scroll();
    animation-range: 0 640px;
  }
  @keyframes catch-out {
    to {
      opacity: 0;
    }
  }
}
/* Without the script: the tab of the section on screen takes the ink, where the browser can follow the scroll */
@supports (animation-timeline: view()) {
  body {
    timeline-scope: --recursos, --planos, --privacidade;
  }
  .sec-recursos {
    view-timeline: --recursos block;
  }
  .sec-planos {
    view-timeline: --planos block;
  }
  .sec-privacidade {
    view-timeline: --privacidade block;
  }
  .nav:not([data-pill]) a {
    animation: nav-on linear;
    animation-range: entry 60% exit 40%;
  }
  .nav a[href$='#recursos'] {
    animation-timeline: --recursos;
  }
  .nav a[href$='#planos'] {
    animation-timeline: --planos;
  }
  .nav a[href$='#privacidade'] {
    animation-timeline: --privacidade;
  }
  @keyframes nav-on {
    from,
    to {
      color: var(--ink);
    }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .top::before {
    background: linear-gradient(var(--bg) 70%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav,
  .nav::before {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .top {
    --glass: var(--surface);
    --glass-edge: color-mix(in srgb, var(--ink) 45%, transparent);
  }
  .nav::after,
  .top .btn::after {
    display: none;
  }
}
@media (min-width: 760px) {
  .top-in {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 'brand nav cta';
    padding-block: 12px;
  }
  .nav a {
    flex: none;
  }
}

/* Buttons: the primary is solid Petróleo with a lit top edge; the secondary is a warm tonal capsule */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 500 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  transition:
    transform 120ms var(--ease-out),
    background-color 160ms var(--ease-out),
    filter 160ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-pri {
  background: linear-gradient(var(--pri-top), var(--pri-bottom));
  color: var(--pri-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    var(--pri-lift);
}
.btn-quiet {
  background: var(--tint-2);
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-quiet:hover {
    background: var(--tint-3);
  }
  .btn-pri:hover {
    filter: brightness(1.06);
  }
  .nav a:hover {
    color: var(--ink);
  }
  .nav:not([data-pill]) a:hover {
    background: color-mix(in srgb, var(--ink) 5%, transparent);
  }
  .top .btn:hover .go {
    translate: 2px 0;
  }
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.lead {
  margin-top: 20px;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
}
.lead strong {
  color: var(--ink);
  font-weight: 500;
}
/* Three facts under the hero buttons: the questions a clinic asks before it reads on */
.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14.5px;
}
.assure li {
  display: flex;
  align-items: center;
}
.assure li::before {
  color: var(--ok);
}

/* ───────────── Home: hero ───────────── */
.hero {
  overflow-x: clip;
  /* The light reaches up behind the glass header and flows on below the hero */
  clip-path: inset(-140px 0 -600px 0);
  padding-block: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(36px, 9.4vw, 72px);
  line-height: 1.02;
}
.hero h1 span {
  display: block;
}
.hero .lead {
  margin-top: clamp(20px, 3vw, 32px);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.hero-copy .lead {
  margin-inline: auto;
}
.hero-copy .ctas,
.hero-copy .assure {
  justify-content: center;
}
@media (min-width: 980px) {
  .hero-in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .hero-copy .lead {
    margin-inline: 0;
  }
  .hero-copy .ctas,
  .hero-copy .assure {
    justify-content: flex-start;
  }
}

/* The refraction card: a first visit recorded in a few gestures (decorative, sample values) */
.demo {
  position: relative;
  width: min(460px, 100%);
  margin: 0;
  justify-self: center;
  text-align: center;
}
/* Behind the record: the Pupila at instrument scale, its light over the card's top corner
   like the lamp over the exam. Everything is sized from the card's width, so the composition
   is the same at every width. The drawing fades out radially and towards the copy above, so
   it has no edge of its own. */
.demo {
  isolation: isolate;
}
.demo::before {
  content: '';
  display: block;
  aspect-ratio: 100 / 36;
}
.iris,
.lamp {
  position: absolute;
  z-index: -1;
  top: 0;
  left: -16.5%;
  width: 205%;
  aspect-ratio: 1;
  margin-top: -70.5%;
}
.iris {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%), linear-gradient(transparent 27%, #000 41%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%), linear-gradient(transparent 27%, #000 41%);
  mask-composite: intersect;
}
/* The lamp's light, over the whole hero. Every layer is small and scaled up to its size on
   screen, and only transforms and opacity ever change. */
.lamp {
  --ray: #cf8d27;
  --shade: rgb(52 36 12 / 0.17);
  /* no stacking context of its own, so its layers sit under the record: the card stays the
     top layer and nothing ever crosses its text */
  z-index: auto;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .lamp {
    --ray: #ffdf9e;
    --shade: rgb(8 7 6 / 0.68);
  }
}
.lamp-rays,
.lamp-core,
.lamp-shade {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
}
.lamp-rays {
  width: 62.5%;
  aspect-ratio: 1;
  translate: -50% -50%;
  scale: 4;
}
/* The two fields of rays are images (tools/rays.mjs), each its own small texture however
   large it is shown. Drawn here as gradients, a turning field would be a layer of several
   thousand pixels a side, and two of them are more than a phone's GPU keeps whole. */
.lamp-rays picture {
  display: contents;
}
.lamp-rays img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  /* keeps each image a texture of its own size; without it the browser redraws it at the
     size shown */
  will-change: transform;
}
.lamp-core {
  width: 9%;
  aspect-ratio: 1;
  margin: -4.5% 0 0 -4.5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ray) 34%, transparent), color-mix(in srgb, var(--ray) 9%, transparent) 46%, transparent);
  opacity: 0;
  scale: 4;
}
/* What the pointer casts: a wedge of shadow, drawn pointing right from its own left edge.
   The script moves that edge to the pointer and turns the wedge away from the lamp. */
.lamp-shade {
  width: 30%;
  height: 15%;
  margin-top: -7.5%;
  background: conic-gradient(from 76deg at 0 50%, transparent 0deg, var(--shade) 11deg, var(--shade) 17deg, transparent 28deg);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 30%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 30%, transparent);
  transform-origin: 0 50%;
  opacity: 0;
}
.demo .rx {
  z-index: 1;
}
/* The light is built in layers so it reads as light, not as a disc: an ambient bloom, the
   rings of a corneal topographer, the axis scale of a trial frame (TABO, top half numbered),
   iris fibres lit from the pupil's edge outwards, and a core with a hot spot and reflexes. */
/* Each part that moves is its own box, so it is painted once and only its transform and
   opacity change: the bloom breathes, the ring and the axis scale turn with the scroll, two fibre
   fields drift inside the ring's shape (a mask, which stays put while they turn), the core narrows on
   load. A transform on an element inside one SVG would repaint the whole drawing, every
   frame. Each box is cropped to its drawing (viewBox in the markup, offsets in 512ths). */
.iris > *,
.iris-ring > *,
.iris-fibres > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.iris-amb {
  inset: calc(41 / 512 * 100%);
  width: calc(430 / 512 * 100%);
  height: calc(430 / 512 * 100%);
}
.iris .iris-ring {
  inset: calc(105 / 512 * 100%);
  width: calc(302 / 512 * 100%);
  height: calc(302 / 512 * 100%);
}
.iris .iris-scale {
  inset: calc(70 / 512 * 100%);
  width: calc(372 / 512 * 100%);
  height: calc(372 / 512 * 100%);
}
.iris-fibres {
  -webkit-mask: url(/assets/iris-ring.fd33a3e8d1.svg) center / 100% 100% no-repeat;
  mask: url(/assets/iris-ring.fd33a3e8d1.svg) center / 100% 100% no-repeat;
}
.iris-halo {
  inset: calc(56 / 512 * 100%);
  width: calc(400 / 512 * 100%);
  height: calc(400 / 512 * 100%);
  opacity: 0.6;
}
.iris .iris-light {
  inset: calc(214 / 512 * 100%);
  width: calc(84 / 512 * 100%);
  height: calc(84 / 512 * 100%);
}
.iris {
  --hot: #fff0cc;
  --deep: color-mix(in srgb, var(--mark-light) 90%, #6b2f00);
  --amb: 0.2;
  --fibre: color-mix(in srgb, var(--ink) 55%, var(--mark-light));
}
@media (prefers-color-scheme: dark) {
  .iris {
    --amb: 0.32;
  }
}
.amb-0 {
  stop-color: var(--mark-light);
  stop-opacity: var(--amb);
}
.amb-1 {
  stop-color: var(--mark-light);
  stop-opacity: 0.07;
}
.amb-2 {
  stop-color: var(--mark-light);
  stop-opacity: 0;
}
.body-0 {
  stop-color: color-mix(in srgb, var(--mark-light) 30%, transparent);
}
.body-1 {
  stop-color: color-mix(in srgb, var(--ink) 8%, transparent);
}
.body-2 {
  stop-color: color-mix(in srgb, var(--ink) 3.5%, transparent);
}
.fib-0 {
  stop-color: var(--mark-light);
  stop-opacity: 0.95;
}
.fib-1 {
  stop-color: var(--fibre);
  stop-opacity: 0.4;
}
.fib-2 {
  stop-color: var(--ink);
  stop-opacity: 0.1;
}
.core-0 {
  stop-color: var(--hot);
}
.core-1 {
  stop-color: var(--mark-light);
}
.core-2 {
  stop-color: var(--deep);
}
.iris-rings circle {
  stroke: var(--ink);
  stroke-width: 0.45;
  opacity: 0.11;
}
.iris-rings circle:nth-child(2) {
  opacity: 0.085;
}
.iris-rings circle:nth-child(3) {
  opacity: 0.06;
}
.iris-rings circle:nth-child(4) {
  opacity: 0.04;
}
.iris-rings circle:nth-child(5) {
  opacity: 0.025;
}
.iris-scale .tick {
  stroke: var(--ink);
  opacity: 0.42;
}
.iris-scale .tick-major {
  opacity: 0.85;
}
.iris-scale text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 7px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}
.fibre-b {
  opacity: 0.7;
}
.fibre-c {
  opacity: 0.9;
}
.iris-rim {
  stroke: var(--mark-light);
  stroke-width: 0.7;
  opacity: 0.85;
}
.iris-edge {
  stroke: var(--ink);
  stroke-width: 0.45;
  opacity: 0.16;
}
.iris-limb {
  stroke: var(--hot);
  stroke-width: 0.6;
  opacity: 0.55;
}
.iris-spark {
  fill: #fff;
  opacity: 0.85;
}
/* blurred once; the box around it carries the rest of its opacity and the load animation */
.iris-halo circle {
  fill: var(--mark-light);
  opacity: 0.7;
  filter: blur(26px);
  transform-box: fill-box;
  transform-origin: center;
  scale: 1.5;
}
/* The lamp reaches the record: a warm spill on the corner nearest the light */
.rx {
  position: relative;
}
.rx::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--mark-light) 13%, transparent), transparent 55%),
    linear-gradient(to bottom left, color-mix(in srgb, var(--hot, #fff0cc) 55%, transparent), transparent 22%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  border: 1px solid transparent;
  pointer-events: none;
}
.rx::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--mark-light) 11%, transparent), transparent 60%);
  pointer-events: none;
}
.demo figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.rx {
  --v: clamp(20px, 6.9cqi, 32px);
  --row: 1.3em;
  container-type: inline-size;
  padding: clamp(18px, 4vw, 26px);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--e-device);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  user-select: none;
}
.rx-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rx-name {
  font-size: 17px;
  font-weight: 600;
}
.rx-meta {
  color: var(--muted);
}
.rx-sync {
  align-self: center;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ok);
}
.rx-steps {
  display: flex;
  gap: 6px;
  margin: 14px 0 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.rx-steps span {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 500;
}
.rx-steps .done::before {
  color: var(--ok);
}
.rx-steps .cur {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.rx-grid {
  display: grid;
  grid-template-columns: 2.1em repeat(3, 1fr);
  align-items: center;
  gap: 8px;
  font-size: var(--v);
}
.rx-k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.rx-eye {
  font-size: 0.68em;
  font-weight: 600;
}
.rx-eye.od,
.rx b.od {
  color: var(--od);
}
.rx-eye.os,
.rx b.os {
  color: var(--os);
}
.cell {
  position: relative;
  display: block;
  height: var(--row);
  border-radius: 14px;
  background: var(--track);
}
.strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--n) * -1 * var(--row)));
}
.win {
  display: block;
  height: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.cell {
  overflow: hidden;
}
.strip span {
  flex: none;
  height: var(--row);
  line-height: var(--row);
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  opacity: 0;
}
.c1 { --n: 9; --at: 0.8s; --dur: 0.9s; }
.c2 { --n: 3; --at: 1.75s; --dur: 0.5s; }
.c3 { --n: 10; --at: 2.35s; --dur: 0.75s; }
.c4 { --n: 7; --at: 3.2s; --dur: 0.85s; }
.c5 { --n: 2; --at: 4.1s; --dur: 0.45s; }
.c6 { --n: 10; --at: 4.65s; --dur: 0.75s; }
.c7 { --at: 5.5s; }
.c8 { --at: 5.7s; }
.rx-av {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rx-av .rx-k {
  margin-right: auto;
  text-align: left;
}
.av {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}
.av b {
  margin-right: 4px;
}
.rx .av b.od {
  color: color-mix(in srgb, var(--od) 82%, var(--ink));
}
.rx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.rx-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.rx-doc::before {
  content: 'PDF';
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--tint-2);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rx-sign {
  display: inline-grid;
}
.rx-sign > * {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.rx-sign .was {
  background: linear-gradient(var(--pri-top), var(--pri-bottom));
  color: var(--pri-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), var(--pri-lift);
}
.rx-sign .now {
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  color: color-mix(in srgb, var(--ok) 72%, var(--ink));
  font-weight: 600;
}

/* Two states in one cell: the later one shows at rest; the animation plays the swap */
.swap,
.rx-sign {
  display: inline-grid;
}
.swap > *,
.rx-sign > * {
  grid-area: 1 / 1;
}
.was {
  opacity: 0;
}

/* ───────────── Sections ───────────── */
.band {
  padding-block: clamp(64px, 11vw, 128px);
}
.band-alt {
  background: var(--well);
}
.band h2 + * {
  margin-top: 28px;
}
.sec-hd {
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-hd p,
.band .sec-hd h2 + p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.5;
}
.split {
  display: grid;
  gap: 40px;
}
.split > div > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }
}
.page-hd {
  padding-block: clamp(40px, 8vw, 88px) 8px;
}
.page-hd + .band {
  padding-top: clamp(32px, 5vw, 48px);
}
.page-hd .ctas {
  margin-bottom: 64px;
}
.more {
  margin-top: 28px;
  font-weight: 500;
}
.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 6px;
}
.more a::after {
  content: '';
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.5em;
  border: solid currentColor;
  border-width: 0.12em 0.12em 0 0;
  transform: rotate(45deg);
  transition: translate 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .more a:hover::after {
    translate: 3px 0;
  }
}

/* Tiles: the app's card, no border, depth from a warm shadow */
.bento {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }
  .tile {
    grid-column: span 5;
  }
  .tile:nth-child(4n + 1),
  .tile:nth-child(4n) {
    grid-column: span 7;
  }
}
.tile {
  padding: 24px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--e-card);
}
.tile p {
  margin-top: 8px;
  color: var(--muted);
}
.tile-art {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  height: 172px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--well);
  font-size: 13px;
  user-select: none;
}
.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 232px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.mini b {
  font-size: 15px;
}
.mini.od {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--od) 38%, transparent), var(--e-card-rest);
}
.mini.os {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--os) 38%, transparent), var(--e-card-rest);
}
.mini.od b {
  color: var(--od);
}
.mini.os b {
  color: var(--os);
}
.mini-chip,
.nrow i {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.mini-chip {
  position: relative;
  margin-top: 4px;
}
/* Where the thumb lands: only ever seen inside the loop below */
.mini-chip::after,
.art-wheel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  opacity: 0;
}
.art-wheel {
  position: relative;
}
.art-wheel::after {
  margin-left: 34px;
}
.art-normal {
  gap: 6px;
}
.art-normal .mini-chip {
  margin: 0 0 2px;
}
/* The wheel: the window stays put and the values travel through it */
.drum {
  position: relative;
  width: 150px;
  height: 160px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  -webkit-mask-image: linear-gradient(transparent, #000 36%, #000 64%, transparent);
  mask-image: linear-gradient(transparent, #000 36%, #000 64%, transparent);
}
.drum-strip {
  display: block;
  margin-top: -64px;
}
.drum-strip span {
  display: block;
  height: 32px;
  line-height: 32px;
  text-align: center;
}
.drum-win {
  position: absolute;
  inset: 64px 0 auto;
  height: 32px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 19px;
  font-weight: 600;
}
.drum-win .drum-strip {
  margin-top: -128px;
}
.nrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 236px;
  padding: 4px 6px 4px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--e-card-rest);
  font-size: 14px;
  font-weight: 500;
}
.spill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--e-card-rest);
  font-size: 14px;
  font-weight: 500;
}
.spill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.spill.wait i {
  background: var(--caution);
}
.spill.done i {
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}
.spill.wait {
  color: var(--muted);
}

/* Lists */
.checks {
  display: grid;
  align-content: start;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 32px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(42deg);
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  margin-top: 32px;
  font-size: 17px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  min-height: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--e-card);
  color: var(--accent-deep);
  font-weight: 600;
}

/* "Chegou": the desk marks the arrival, the doctor's phone shows it */
@media (min-width: 880px) {
  .live-split {
    align-items: center;
  }
}
.live {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 14px;
  user-select: none;
}
.live-side {
  width: 100%;
  min-width: 0;
}
.live-side:last-child {
  max-width: 250px;
}
@media (min-width: 560px) {
  .live {
    grid-template-columns: minmax(0, 1.37fr) 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }
}
/* A device's caption: whose it is, then what it is */
.dev-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.dev-cap b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
/* A computer, drawn: a screen in a thin frame on a neck and a foot */
.pc {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pc-screen {
  align-self: stretch;
  min-width: 0;
  padding: 14px 14px 8px;
  border: 6px solid var(--frame);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--e-device);
}
.pc::before,
.pc::after {
  content: '';
  background: var(--frame);
}
.pc::before {
  order: 1;
  width: 48px;
  height: 14px;
  background: linear-gradient(color-mix(in srgb, var(--frame) 78%, #000), var(--frame));
}
.pc::after {
  order: 2;
  width: 116px;
  height: 6px;
  border-radius: 6px 6px 2px 2px;
}
.live-phone {
  padding: 16px 14px 10px;
  border: 7px solid var(--frame);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--e-device);
}
/* The wire between them: what the desk marks travels to the phone. The dot rides the wire
   with the scroll (below); the arrowhead says which way even when nothing moves. */
.live-link {
  --wire: color-mix(in srgb, var(--ink) 30%, transparent);
  position: relative;
  container-type: size;
  width: 2px;
  height: 34px;
  background: repeating-linear-gradient(var(--wire) 0 3px, transparent 3px 8px);
}
.live-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--wire);
  border-width: 0 2px 2px 0;
  translate: -50% 0;
  rotate: 45deg;
}
.live-link i {
  --go: 0 calc(100cqh - 8px);
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0;
}
@media (min-width: 560px) {
  .live-link {
    width: 100%;
    height: 2px;
    margin-top: 14px;
    background: repeating-linear-gradient(to right, var(--wire) 0 3px, transparent 3px 8px);
  }
  .live-link::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -1px;
    translate: 0 -50%;
    rotate: -45deg;
  }
  .live-link i {
    --go: calc(100cqw - 8px) 0;
    top: -3px;
    left: 0;
  }
}
.live-hd {
  margin-bottom: 6px;
  font-weight: 600;
}
.live-row {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
}
.live-row .t {
  flex: none;
  color: var(--muted);
}
.st,
.swap > * {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.live-row .st {
  margin-left: auto;
}
.st.on,
.swap .now {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.st.swap {
  display: inline-grid;
  justify-items: end;
  padding: 0;
  background: none;
}
.live-row.arrive {
  height: 44px;
  overflow: hidden;
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 12px;
  border-top-color: transparent;
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.cursor {
  position: absolute;
  right: 18px;
  top: 26px;
  width: 15px;
  height: 21px;
  background: var(--ink);
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 60% 93%, 43% 55%, 84% 55%);
  filter: drop-shadow(0 0 1px var(--surface));
  opacity: 0;
  pointer-events: none;
}

/* Photos, warm-graded to the paper (tools/photos.sh) */
.human {
  padding-top: clamp(48px, 8vw, 96px);
}
.eye img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--surface-2);
}

/* The real app, recorded (Playwright, sample data) and framed in a CSS-drawn Android phone.
   Reduced motion: the <source>s don't match, so the video shows only its poster. */
.reel {
  padding-top: 0;
}
.phones {
  display: flex;
  gap: clamp(20px, 5vw, 64px);
  margin-inline: calc(-1 * max(20px, env(safe-area-inset-left)));
  padding: 8px max(20px, env(safe-area-inset-left)) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.phones::-webkit-scrollbar {
  display: none;
}
.phone-fig {
  flex: none;
  width: min(300px, 74vw);
  margin: 0;
  scroll-snap-align: center;
}
/* Centred while they fit, scrollable from the first one when they don't */
.phone-fig:first-child {
  margin-left: auto;
}
.phone-fig:last-child {
  margin-right: auto;
}
.phone-fig figcaption {
  margin-top: 22px;
  padding-inline: 8px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.phone-fig strong {
  color: var(--ink);
}
.phone {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: var(--frame);
  box-shadow:
    var(--e-device),
    inset 0 0 0 1.5px rgb(255 248 236 / 0.09);
}
/* Power and volume keys on the right edge */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--frame);
}
.phone::before {
  top: 22%;
  height: 9%;
}
.phone::after {
  top: 35%;
  height: 15%;
}
.phone-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 2px 22px 0 26px;
  border-radius: 37px 37px 0 0;
  background: var(--app-bg, #f2f0ec);
  color: #16140f;
  font-size: 12px;
  font-weight: 600;
}
/* Punch-hole camera */
.phone-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 9px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #0b0a09;
}
/* Battery */
.phone-bar i {
  width: 20px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(to right, #16140f 70%, rgb(22 20 15 / 0.25) 70%);
}
.phone-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 412 / 915;
  border-radius: 0 0 37px 37px;
  background: var(--app-bg, #f2f0ec);
  object-fit: cover;
}

.live-row > span:not(.st) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Privacy: the one dark band, whatever the system theme */
.band-dark {
  --ink: #efeae2;
  --muted: #a39b90;
  --line: rgb(255 248 236 / 0.1);
  --accent-deep: #8fcddc;
  --mark-light: #f2bd5c;
  background: #141311;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .band-dark {
    background: #1a1917;
    box-shadow:
      inset 0 1px 0 rgb(255 248 236 / 0.06),
      inset 0 -1px 0 rgb(255 248 236 / 0.06);
  }
}
.band-dark {
  padding-top: 0;
}
.eye {
  display: block;
  margin-left: calc(-1 * max(20px, env(safe-area-inset-left)));
  margin-right: calc(-1 * max(20px, env(safe-area-inset-right)));
  margin-bottom: clamp(-72px, -6vw, -24px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.eye img {
  aspect-ratio: 16 / 10;
  object-position: 78% 50%;
  background: none;
}
@media (min-width: 700px) {
  .eye img {
    aspect-ratio: 21 / 9;
    object-position: center;
  }
}
@media (min-width: 1120px) {
  .eye {
    margin-inline: 0;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 55%, transparent),
      linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, #000 55%, transparent),
      linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
}
.band-dark .split {
  position: relative;
}
.facts {
  display: grid;
  align-content: start;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.facts li:last-child {
  border-bottom: 1px solid var(--line);
}
.facts li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark-light);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--mark-light) 55%, transparent);
}

/* Closing: the Pupila, its light a little brighter */
.finale {
  text-align: center;
  padding-block: clamp(48px, 8vw, 96px) clamp(80px, 12vw, 144px);
}
.finale-in {
  display: grid;
  justify-items: center;
}
.pupil {
  width: clamp(88px, 14vw, 120px);
  height: auto;
  margin-bottom: 28px;
  overflow: visible;
  filter: drop-shadow(0 8px 28px color-mix(in srgb, var(--mark-light) 45%, transparent));
}
.pupil-ring {
  fill: var(--mark-ring);
}
.pupil-light {
  fill: var(--mark-light);
  transform-box: fill-box;
  transform-origin: center;
}
.finale .ctas {
  justify-content: center;
}

/* Plans */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--e-card);
}
.plan-main {
  box-shadow:
    0 0 0 1.5px var(--accent),
    var(--e-card-rest);
}
.plan h3 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.plan .plan-tag {
  margin-top: -10px;
  color: var(--muted);
}
.plan .price {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan .checks {
  flex: 1;
}
.plan .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* Changing systems: the objection that follows the plans, answered with the patient's
   timeline where the old system's records sit under today's */
.move {
  display: grid;
  gap: 32px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.move h3 {
  font-family: var(--display);
  font-size: clamp(23px, 3.4vw, 32px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.move h3 em {
  display: block;
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 600;
}
.move-copy > p {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
}
.move .checks {
  max-width: 34em;
  margin-top: 24px;
}
.move .btn {
  margin-top: 28px;
}
.move-art {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  padding-left: 26px;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}
.move-art::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 6px;
  width: 1px;
  background: var(--line);
}
.tl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px 8px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--e-card);
}
.tl::before {
  content: '';
  position: absolute;
  left: -24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl b {
  flex: none;
  width: 66px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tl i {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.tl.imp {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted-strong);
}
.tl.imp::before {
  background: var(--muted);
}
.tl.imp i {
  background: var(--tint-2);
  color: var(--muted-strong);
}
@media (min-width: 880px) {
  .move {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
  }
}

/* Disclosures: the questions and the privacy detail share one ruled list */
.sub-hd {
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.faq .checks {
  padding-bottom: 22px;
  max-width: 46em;
}
/* The day rail: the rest of the clinic's day as five stops in order, each one a small
   piece of the real screen rather than a list of features */
.day {
  display: grid;
  gap: 22px;
  list-style: none;
}
.day > li {
  display: grid;
  grid-template-columns: 148px 1fr;
  grid-template-rows: 1fr auto 1fr;
  column-gap: 18px;
}
.day-art {
  grid-row: 1 / span 3;
  align-self: center;
  display: grid;
  align-content: center;
  gap: 5px;
  height: 108px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--e-card);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  user-select: none;
}
.day-t {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.day h4 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
}
.day p {
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.day-team {
  max-width: 46em;
  margin-top: 28px;
  color: var(--muted);
}
@media (min-width: 640px) and (max-width: 919.98px) {
  .day {
    grid-template-columns: 1fr 1fr;
    gap: 26px 28px;
  }
}
@media (min-width: 920px) {
  .day {
    position: relative;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    padding-top: 18px;
  }
  .day::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--line);
  }
  .day > li {
    display: block;
    align-content: start;
  }
  .day-t {
    position: relative;
    display: block;
    margin-bottom: 12px;
  }
  .day-t::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }
  .day-art {
    margin-bottom: 16px;
  }
}
.k-od {
  color: var(--od);
}
.k-os {
  color: var(--os);
}
.slot {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--well);
}
.slot b {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.slot.on {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.slot.on b {
  color: inherit;
}
.plot-hd,
.doc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plot-hd span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.plot-hd i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.plot-hd i + i {
  margin-left: 6px;
}
.plot {
  width: 100%;
  height: 56px;
  overflow: visible;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plot path {
  vector-effect: non-scaling-stroke;
}
.plot-lim {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.plot-od {
  stroke: var(--od);
}
.plot-os {
  stroke: var(--os);
}
.doc-hd {
  margin-bottom: 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.doc-hd i,
.meths i {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--well);
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}
.doc-row {
  display: flex;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.paid {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--ok);
  font-size: 15px;
  font-weight: 600;
}
.meths {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.meths .on {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.rank {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 8px;
}
.rank i {
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  transform-origin: left;
}
.rank.r2 i {
  scale: 0.62 1;
}
.rank.r3 i {
  scale: 0.36 1;
}
.plot-w,
.plot-i {
  display: block;
}
.plot-w {
  overflow: hidden;
}
.priv {
  margin-top: clamp(40px, 6vw, 72px);
}
.priv details p {
  max-width: 46em;
}
.priv details p + p {
  margin-top: -6px;
}
/* FAQ */
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover {
    color: var(--accent-deep);
  }
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.faq details p {
  padding-bottom: 18px;
  color: var(--muted);
}

/* Footer */
.foot {
  padding-block: 40px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.foot-in {
  display: grid;
  gap: 20px;
}
.foot-brand p {
  margin-top: 4px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover {
    text-decoration: underline;
  }
}
.foot-legal {
  font-size: 13.5px;
}

/* ───────────── Motion ─────────────
   Hero: once on load, a first visit's refraction is recorded: each wheel is flicked from
   plano to its value (OD, then OE), acuity is picked, the exam is signed and the glasses
   prescription is ready. Scroll: the desk marks "Chegou" and the row
   arrives on the phone (the app's 8 px drop), and the Pupila's light narrows as you reach it.
   The resting styles above are the end state, so nothing is lost without these. */
@media (prefers-reduced-motion: no-preference) {
  /* The one authored moment: the headline starts out of focus and is brought in over two
     clicks of the lens, line by line, while the Pupila opens behind the record and its
     light narrows. The copy and the card follow once there is something to read. */
  .hero h1 span,
  .hero h1 em {
    animation: focus-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 em {
    animation-delay: 260ms;
  }
  .hero .lead,
  .hero .ctas,
  .hero .assure {
    animation: settle 700ms var(--ease-out) 760ms both;
  }
  .hero .ctas {
    animation-delay: 860ms;
  }
  .hero .assure {
    animation-delay: 960ms;
  }
  .rx {
    animation: settle 900ms var(--ease-out) 180ms both;
  }
  /* The light's entrances keep their end state (fill both), and the bloom is a layer from the
     first frame, so the set of layers never changes once the page is up. When a layer was
     given back as its entrance ended, the browser redrew what was under it, and a phone
     being scrolled at that moment showed the rough copy first: the light flickered. */
  .iris {
    animation: iris-open 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .iris-light {
    animation: constrict 1500ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
  }
  .iris-halo {
    animation: halo 1800ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
  }
  .iris-amb {
    will-change: transform, opacity;
  }
  /* Hippus: a resting pupil is never quite still */
  .iris-amb {
    animation: hippus 6800ms ease-in-out 2200ms infinite alternate;
  }
  @keyframes ripple {
    from {
      scale: 0.7;
      opacity: 0;
    }
  }
  @keyframes hippus {
    to {
      scale: 1.07;
      opacity: 0.78;
    }
  }
  @keyframes focus-in {
    0% {
      filter: blur(18px);
      opacity: 0.35;
    }
    45%,
    58% {
      filter: blur(5px);
      opacity: 0.8;
    }
    100% {
      filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes settle {
    from {
      opacity: 0;
      translate: 0 14px;
    }
  }
  @keyframes iris-open {
    from {
      opacity: 0;
      scale: 0.84;
      rotate: -24deg;
    }
  }
  @keyframes constrict {
    from {
      scale: 1.7;
    }
  }
  @keyframes halo {
    from {
      scale: 2;
      opacity: 1;
    }
  }

  .strip {
    animation: flick var(--dur) cubic-bezier(0.16, 1, 0.3, 1) var(--at) both;
  }
  .cell::after {
    animation: focus calc(var(--dur) + 0.45s) ease var(--at-ring, calc(var(--at) - 0.2s)) both;
  }
  .cell::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 1.1em;
    height: 1.1em;
    margin: -0.55em 0 0 -0.55em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 16%, transparent);
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--surface) 70%, transparent);
    opacity: 0;
    animation: swipe calc(var(--dur) * 0.7) ease-out calc(var(--at) - 0.12s) both;
  }
  .av {
    animation: pop 320ms var(--ease-out) var(--at) both;
  }
  .rx-sign {
    animation: press 240ms ease 6.1s both;
  }
  .rx-sign .was {
    animation: fade-out 160ms linear 6.25s both;
  }
  .rx-sign .now {
    animation: fade-in 160ms linear 6.25s both;
  }
  .rx-doc {
    animation: rise 400ms var(--ease-out) 6.55s both;
  }

  @keyframes flick {
    from {
      transform: translateY(0);
    }
  }
  @keyframes focus {
    0%,
    100% {
      opacity: 0;
    }
    15%,
    80% {
      opacity: 1;
    }
  }
  @keyframes swipe {
    0% {
      opacity: 0;
      transform: translateY(0.5em) scale(0.8);
    }
    20% {
      opacity: 1;
      transform: translateY(0.4em);
    }
    100% {
      opacity: 0;
      transform: translateY(-0.9em);
    }
  }
  @keyframes pop {
    from {
      opacity: 0;
      transform: scale(0.85);
    }
  }
  @keyframes press {
    50% {
      transform: scale(0.95);
    }
  }
  @keyframes fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }

  @supports (animation-timeline: view()) {
    .live {
      view-timeline: --live block;
    }
    .live .cursor,
    .live .swap > *,
    .live .arrive {
      animation-timeline: --live;
      animation-range: entry 50% cover 52%;
      animation-fill-mode: both;
      animation-timing-function: linear;
    }
    .live .cursor {
      animation-name: cursor-click;
    }
    .live .swap .was {
      animation-name: status-was;
    }
    .live .swap .now {
      animation-name: status-now;
    }
    .live .arrive {
      animation-name: row-arrive;
    }
    .live-link i {
      animation: link-go linear both;
      animation-timeline: --live;
      animation-range: entry 50% cover 52%;
    }
    @keyframes link-go {
      0%,
      50% {
        opacity: 0;
        translate: 0 0;
      }
      53% {
        opacity: 1;
        translate: 0 0;
      }
      62% {
        opacity: 1;
        translate: var(--go);
      }
      66%,
      100% {
        opacity: 0;
        translate: var(--go);
      }
    }
    @keyframes cursor-click {
      0% {
        opacity: 0;
        transform: translate(36px, 34px);
      }
      20% {
        opacity: 1;
      }
      45% {
        transform: translate(0, 0);
      }
      50% {
        transform: scale(0.82);
      }
      55%,
      78% {
        opacity: 1;
        transform: none;
      }
      100% {
        opacity: 0;
        transform: none;
      }
    }
    @keyframes status-was {
      0%,
      50% {
        opacity: 1;
      }
      54%,
      100% {
        opacity: 0;
      }
    }
    @keyframes status-now {
      0%,
      50% {
        opacity: 0;
      }
      54%,
      100% {
        opacity: 1;
      }
    }
    @keyframes row-arrive {
      0%,
      58% {
        height: 0;
        min-height: 0;
        opacity: 0;
        transform: translateY(-8px);
      }
      66% {
        height: 44px;
        min-height: 44px;
        opacity: 0;
        transform: translateY(-8px);
      }
      78%,
      100% {
        opacity: 1;
        transform: none;
      }
    }

    .finale {
      view-timeline: --finale block;
    }
    .pupil-light {
      animation: pupil linear both;
      animation-timeline: --finale;
      animation-range: entry 20% cover 45%;
    }
    @keyframes pupil {
      from {
        transform: scale(1.7);
      }
    }
  }
}

/* "1 ou 2?": the question of the subjective refraction, asked about the record. The first
   lens stays out of focus; the second is the sharp one. */
.choice-q {
  font-family: var(--display);
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.choice-q em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-deep);
}
.lenses {
  display: grid;
  gap: 16px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.lens {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: 26px;
  overflow: hidden;
}
.lens-1 {
  color: var(--muted-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lens-2 {
  background: var(--surface);
  box-shadow: var(--e-card);
}
.lens-n {
  display: block;
  font-family: var(--display);
  font-size: clamp(88px, 13vw, 136px);
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.lens-1 .lens-n {
  color: var(--muted);
  filter: blur(5px);
  opacity: 0.75;
}
.lens-2 .lens-n {
  color: var(--accent);
}
.lens h4 {
  margin: 22px 0 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lens-2 h4 {
  color: var(--ink);
}
.lens h4 span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.lens ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.lens ul li {
  position: relative;
  padding-left: 30px;
}
.lens-1 ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.lens-2 ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (min-width: 760px) {
  .lenses {
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
  }
  .lens {
    padding: 36px 36px 40px;
  }
}

/* The closing lines step down like an acuity chart, the fraction in the margin. */
.chart {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  width: 100%;
  max-width: 880px;
}
.chart h2 {
  display: grid;
  gap: clamp(6px, 1vw, 10px);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}
.chart .ln {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  align-items: baseline;
  column-gap: 8px;
  margin: 0;
  text-wrap: balance;
}
.chart .va {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--muted);
}
.chart .l1,
.chart .l2 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.chart .l1 {
  font-size: clamp(34px, 8.4vw, 76px);
  font-weight: 300;
}
.chart .l2 {
  font-size: clamp(27px, 6.2vw, 54px);
  font-weight: 600;
  color: var(--accent-deep);
}
.chart .l3 {
  font-size: clamp(19px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.chart .l4 {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted-strong);
}
.chart .l5 {
  font-size: 13px;
  color: var(--muted-strong);
}
@media (min-width: 700px) {
  .chart .ln {
    grid-template-columns: 4rem 1fr 4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lens-2 .lens-n {
      animation: lens-focus linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 42%;
    }
    @keyframes lens-focus {
      from {
        filter: blur(9px);
        opacity: 0.45;
      }
    }
  }
}

/* Sync: what is tapped on the phone travels to the other screens. The record goes to the
   doctor's computer; the front desk gets the visit's progress and nothing clinical. */
.flow {
  --flow-t: 7s;
  display: grid;
  justify-items: stretch;
  max-width: 940px;
  font-size: 14px;
  user-select: none;
}
.flow-from {
  justify-self: center;
  width: min(290px, 100%);
}
/* the tablet in the exam room */
.flow-src {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  padding: 40px 18px 18px;
  border: 9px solid var(--frame);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--e-device);
}
.flow-src::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--frame);
  translate: -50% 0;
}
.flow-pt {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.flow-pt span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}
.flow-src .flow-hd {
  margin-top: 14px;
}
.flow-src .fv {
  font-size: 16px;
}
.flow-src .spill {
  align-self: flex-start;
  margin-top: auto;
}
.flow-gets {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.flow-gets.quiet {
  background: var(--tint-2);
  color: var(--muted-strong);
}
.flow-hd {
  font-weight: 600;
}
.flow-hd .od {
  color: var(--od);
}
.flow-vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.fv {
  padding: 7px 0;
  border-radius: 11px;
  background: var(--tint-2);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: center;
}
.flow-src .spill {
  padding: 6px 12px;
  background: var(--tint-1);
  box-shadow: none;
  font-size: 12.5px;
}
.flow-dst {
  display: grid;
  gap: 22px;
  align-content: center;
}
.flow-dst .pc-screen {
  padding-bottom: 14px;
}
.flow-b .pc-screen {
  padding-bottom: 6px;
}
.flow-st {
  display: inline-grid;
  justify-items: end;
  margin-left: auto;
}
.flow-st > * {
  grid-area: 1 / 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.flow-st .was {
  opacity: 0;
}
.flow-st .now {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.flow-wires {
  overflow: visible;
  fill: none;
}
.flow-wires path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.wire {
  stroke: color-mix(in srgb, var(--ink) 16%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 2 5;
}
.pulse {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 9 200;
  stroke-dashoffset: 9;
}
.pulse.to-b {
  stroke: var(--muted);
}
/* The front desk hears once, when the visit starts; the values never travel that wire */
.pulse.to-b.p2,
.pulse.to-b.p3 {
  display: none;
}
.flow-wires-h {
  display: none;
}
.flow-wires-v {
  justify-self: center;
  width: 20px;
  height: 56px;
}
@media (min-width: 820px) {
  .flow {
    grid-template-columns: minmax(0, 290px) minmax(64px, 1fr) minmax(0, 400px);
    align-items: center;
  }
  /* each computer sits in its own half, so the wires (drawn to 24% and 76%) meet them */
  .flow-dst {
    align-self: stretch;
    grid-template-rows: 1fr 1fr;
    align-items: center;
  }
  .flow-wires-h {
    display: block;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 240px;
  }
  .flow-wires-v {
    display: none;
  }
}
.flow-notes {
  display: grid;
  gap: 0;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.flow-notes li {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.flow-notes strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}
@media (min-width: 820px) {
  .flow-notes {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: flow-travel var(--flow-t) linear infinite backwards;
  }
  @keyframes flow-travel {
    0% { stroke-dashoffset: 9; }
    6%, 100% { stroke-dashoffset: -100; }
  }
  @keyframes flow-s1 {
    0%, 7.9% { opacity: 0; scale: 0.9; }
    11%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.s1 { animation: flow-s1 var(--flow-t) var(--ease-out) infinite; }
  @keyframes flow-d1 {
    0%, 14.9% { opacity: 0; scale: 0.9; }
    18%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.d1 { animation: flow-d1 var(--flow-t) var(--ease-out) infinite; }
  .pulse.p1 { animation-delay: calc(var(--flow-t) * 0.09); }
  @keyframes flow-s2 {
    0%, 29.9% { opacity: 0; scale: 0.9; }
    33%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.s2 { animation: flow-s2 var(--flow-t) var(--ease-out) infinite; }
  @keyframes flow-d2 {
    0%, 36.9% { opacity: 0; scale: 0.9; }
    40%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.d2 { animation: flow-d2 var(--flow-t) var(--ease-out) infinite; }
  .pulse.p2 { animation-delay: calc(var(--flow-t) * 0.31); }
  @keyframes flow-s3 {
    0%, 51.9% { opacity: 0; scale: 0.9; }
    55%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.s3 { animation: flow-s3 var(--flow-t) var(--ease-out) infinite; }
  @keyframes flow-d3 {
    0%, 58.9% { opacity: 0; scale: 0.9; }
    62%, 90% { opacity: 1; scale: 1; }
    96%, 100% { opacity: 0; scale: 1; }
  }
  .fv.d3 { animation: flow-d3 var(--flow-t) var(--ease-out) infinite; }
  .pulse.p3 { animation-delay: calc(var(--flow-t) * 0.53); }
  .flow-st .was { animation: flow-was var(--flow-t) linear infinite; }
  .flow-st .now { animation: flow-now var(--flow-t) linear infinite; }
  @keyframes flow-was {
    0%, 14% { opacity: 1; }
    17%, 94% { opacity: 0; }
    98%, 100% { opacity: 1; }
  }
  @keyframes flow-now {
    0%, 14% { opacity: 0; }
    17%, 94% { opacity: 1; }
    98%, 100% { opacity: 0; }
  }
}

/* Bento: one 12 s cycle shared by the four tiles, three seconds each, in reading order, so
   only one tile acts at a time. Each one resets, shows the gesture, and settles back on the
   resting (finished) state. Negative delays place a tile's slot without a first-run gap. */
@media (prefers-reduced-motion: no-preference) {
  .art-eyes .mini-v {
    display: inline-block;
    animation: bento-fill 12s infinite;
  }
  .mini-chip {
    animation: bento-press 12s infinite;
  }
  .mini-chip::after {
    animation: bento-tap 12s infinite;
  }
  .drum-strip {
    animation: bento-spin 12s -9s infinite;
  }
  .art-wheel::after {
    animation: bento-flick 12s -9s infinite;
  }
  .art-normal .mini-chip,
  .art-normal .mini-chip::after {
    animation-delay: -6s;
  }
  .nrow i {
    animation: bento-pill 12s -6s infinite;
  }
  .nrow:nth-child(3) i {
    animation-delay: -5.94s;
  }
  .nrow:nth-child(4) i {
    animation-delay: -5.88s;
  }
  .art-sync .done {
    animation: bento-synced 12s -3s infinite;
  }
  .art-sync .wait {
    animation: bento-offline 12s -3s infinite;
  }
  @keyframes bento-fill {
    0% { opacity: 1; transform: none; }
    2.5% { opacity: 0; transform: none; }
    9.5% { opacity: 0; transform: translateY(5px); animation-timing-function: var(--ease-out); }
    13%, 100% { opacity: 1; transform: none; }
  }
  @keyframes bento-pill {
    0% { opacity: 1; transform: none; }
    2.5% { opacity: 0; transform: none; }
    9.5% { opacity: 0; transform: scale(0.9); animation-timing-function: var(--ease-out); }
    12.5%, 100% { opacity: 1; transform: none; }
  }
  @keyframes bento-press {
    0%, 7% { transform: none; }
    8.5% { transform: scale(0.97); }
    10.5%, 100% { transform: none; }
  }
  @keyframes bento-tap {
    0%, 6% { opacity: 0; transform: scale(0.7); animation-timing-function: var(--ease-out); }
    8% { opacity: 1; transform: none; }
    9.5% { opacity: 1; transform: none; }
    12%, 100% { opacity: 0; transform: scale(1.3); }
  }
  @keyframes bento-spin {
    0% { transform: none; animation-timing-function: ease-in-out; }
    3.5% { transform: translateY(64px); }
    8.5% { transform: translateY(64px); animation-timing-function: var(--ease-out); }
    18%, 100% { transform: none; }
  }
  @keyframes bento-flick {
    0%, 6.5% { opacity: 0; transform: translateY(30px) scale(0.7); animation-timing-function: var(--ease-out); }
    8.5% { opacity: 1; transform: translateY(30px); animation-timing-function: var(--ease-out); }
    12% { opacity: 1; transform: translateY(-26px); }
    14%, 100% { opacity: 0; transform: translateY(-30px); }
  }
  @keyframes bento-synced {
    0% { opacity: 1; transform: none; }
    2.5% { opacity: 0; transform: none; }
    11% { opacity: 0; transform: translateY(8px); animation-timing-function: var(--ease-out); }
    15%, 100% { opacity: 1; transform: none; }
  }
  @keyframes bento-offline {
    0% { opacity: 0.5; }
    2.5%, 11% { opacity: 1; }
    15%, 100% { opacity: 0.5; }
  }
}

/* The hero light is alive: its two fields of rays turn slowly against each other, so the
   beams cross and part, and the bloom breathes. Each is one small layer. */
@media (prefers-reduced-motion: no-preference) {
  .lamp-rays {
    animation: rays-in 2400ms var(--ease-out) 500ms backwards;
  }
  .rays-a {
    animation: rays-turn 160s linear infinite;
  }
  .rays-b {
    animation: rays-turn 110s linear infinite reverse;
  }
  @keyframes rays-in {
    from { opacity: 0; }
  }
  @keyframes rays-turn {
    to { rotate: 360deg; }
  }
}
/* With a mouse, so on a computer: the fibres drift a few degrees against each other, the
   ring turns with the scroll like a dial, and hero.js lets the pointer get in the light's
   way (a shadow across the hero, a flare near the lamp; it only writes transform and
   opacity). Each of these keeps a layer the size of the drawing for as long as it runs, and
   together they are what a phone's GPU could not hold: pieces of the light dropped out. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* the rings ripple out on load; each is a layer while it does, and gives it back after */
  .iris-rings circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: ripple 1700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .iris-rings circle:nth-child(1) { animation-delay: 380ms; }
  .iris-rings circle:nth-child(2) { animation-delay: 470ms; }
  .iris-rings circle:nth-child(3) { animation-delay: 560ms; }
  .iris-rings circle:nth-child(4) { animation-delay: 650ms; }
  .iris-rings circle:nth-child(5) { animation-delay: 740ms; }
  .fibre-b {
    animation: fibre-drift 11s ease-in-out infinite alternate;
  }
  .fibre-c {
    animation: fibre-drift 17s ease-in-out infinite alternate-reverse;
  }
  @keyframes fibre-drift {
    from { rotate: -2.2deg; }
    to { rotate: 2.2deg; }
  }
  @supports (animation-timeline: scroll()) {
    .iris-ring {
      animation: dial linear both;
      animation-timeline: scroll();
      animation-range: 0 900px;
    }
    @keyframes dial {
      to { rotate: 38deg; }
    }
  }
  .lamp-core,
  .lamp-shade {
    will-change: transform, opacity;
  }
}
/* The axis scale turns with the scroll on every device, phones included, against the ring
   (the other way, 18deg over the first 700px): a dial being set. It is one layer cropped to its drawing,
   so this is the only motion a phone's GPU carries here. It is the whole svg that turns,
   never something inside it. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .iris-scale {
      animation: scale-set linear both;
      animation-timeline: scroll();
      animation-range: 0 700px;
    }
    @keyframes scale-set {
      to { rotate: -18deg; }
    }
  }
}

/* The day rail plays the day: one 15 s cycle, three seconds a stop, in order. A marker walks
   the rail to the stop that is acting; there the encaixe drops into the agenda, the pressure
   lines are drawn, the prescription is written, the payment lands and the report's bars grow.
   Each stop resets just before its turn and rests on the finished state. */
@media (prefers-reduced-motion: no-preference) {
  .day > li:nth-child(2) { --d: -12s; }
  .day > li:nth-child(3) { --d: -9s; }
  .day > li:nth-child(4) { --d: -6s; }
  .day > li:nth-child(5) { --d: -3s; }
  .slot.on,
  .doc-row,
  .doc-hd i,
  .paid {
    animation: day-in 15s var(--d, 0s) infinite;
  }
  .doc-row:nth-child(3) {
    animation-delay: calc(var(--d, 0s) + 80ms);
  }
  .doc-hd i {
    animation-delay: calc(var(--d, 0s) + 220ms);
  }
  .meths .on {
    animation: day-press 15s var(--d, 0s) infinite;
  }
  .plot-w {
    animation: day-wipe 15s var(--d, 0s) infinite;
  }
  .plot-i {
    animation: day-wipe-back 15s var(--d, 0s) infinite;
  }
  .rank i {
    animation: day-bar 15s var(--d, 0s) infinite;
  }
  .rank.r2 i {
    animation-delay: calc(var(--d, 0s) + 70ms);
  }
  .rank.r3 i {
    animation-delay: calc(var(--d, 0s) + 140ms);
  }
  @keyframes day-in {
    0% { opacity: 1; transform: none; }
    2% { opacity: 0; transform: none; }
    6% { opacity: 0; transform: translateY(6px); animation-timing-function: var(--ease-out); }
    10%, 100% { opacity: 1; transform: none; }
  }
  @keyframes day-press {
    0%, 4% { transform: none; }
    5% { transform: scale(0.94); }
    6.5%, 100% { transform: none; }
  }
  @keyframes day-wipe {
    0% { opacity: 1; transform: none; animation-timing-function: linear; }
    2% { opacity: 0; transform: none; animation-timing-function: linear; }
    5.9% { opacity: 0; transform: translateX(-100%); animation-timing-function: linear; }
    6% { opacity: 1; transform: translateX(-100%); animation-timing-function: var(--ease-out); }
    15%, 100% { opacity: 1; transform: none; }
  }
  @keyframes day-wipe-back {
    0% { transform: none; animation-timing-function: linear; }
    2% { transform: none; animation-timing-function: linear; }
    5.9% { transform: translateX(100%); animation-timing-function: linear; }
    6% { transform: translateX(100%); animation-timing-function: var(--ease-out); }
    15%, 100% { transform: none; }
  }
  @keyframes day-bar {
    0% { opacity: 1; transform: none; }
    2% { opacity: 0; transform: none; }
    5.9% { opacity: 0; transform: scaleX(0.05); }
    6% { opacity: 1; transform: scaleX(0.05); animation-timing-function: var(--ease-out); }
    12%, 100% { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 920px) {
  .day::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: calc((100% - 88px) / 5);
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    animation: day-walk 15s infinite;
  }
  .day-t::before {
    animation: day-dot 15s var(--d, 0s) infinite;
  }
  @keyframes day-walk {
    0%, 17% { transform: none; opacity: 1; animation-timing-function: var(--ease-out); }
    20%, 37% { transform: translateX(calc(100% + 22px)); animation-timing-function: var(--ease-out); }
    40%, 57% { transform: translateX(calc(200% + 44px)); animation-timing-function: var(--ease-out); }
    60%, 77% { transform: translateX(calc(300% + 66px)); animation-timing-function: var(--ease-out); }
    80%, 97% { transform: translateX(calc(400% + 88px)); opacity: 1; }
    98.4% { transform: translateX(calc(400% + 88px)); opacity: 0; }
    98.5% { transform: none; opacity: 0; }
    100% { transform: none; opacity: 1; }
  }
  @keyframes day-dot {
    0% { transform: none; animation-timing-function: var(--ease-out); }
    2.5% { transform: scale(1.8); animation-timing-function: var(--ease-out); }
    9%, 100% { transform: none; }
  }
}
