/* Vyoma's site, in the phone app's look: a soft accent-tinted canvas (true black in the dark),
   clear glass cards with lit rims, coloured squircle badges, Inter, springy presses. */

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #edeef2;
  --text: #0b0c0e;
  --text2: #50565f;
  --card: rgba(255, 255, 255, .42);
  --card-lit: rgba(255, 255, 255, .5);
  --raised: rgba(255, 255, 255, .62);
  --rim-hi: rgba(255, 255, 255, .95);
  --rim-lo: rgba(255, 255, 255, .6);
  --rim-ring: rgba(255, 255, 255, .5);
  --band: rgba(255, 255, 255, .75);
  --hair: rgba(11, 12, 14, .08);
  --shadow: 0 1px 2px rgba(22, 28, 45, .05), 0 12px 32px -8px rgba(22, 28, 45, .12);
  --accent: #e8572a;
  --accent-deep: #c4461d;
  --glow-a: rgba(232, 87, 42, .22);
  --glow-b: rgba(50, 173, 230, .2);
  --chrome: rgba(255, 255, 255, .5);
  --ok: #34c759;

  --red: #ff3b30; --orange: #ff9500; --yellow: #f5b800; --green: #34c759; --mint: #00c7be;
  --teal: #30b0c7; --cyan: #32ade6; --blue: #007aff; --pink: #ff2d55; --brown: #a2845e; --gray: #8e8e93;

  /* Filled tiles carry white words: the system colours darkened until they read at 4.5:1. */
  --t-blue: #0a62d0; --t-orange: #b25400; --t-red: #cc2a22; --t-cyan: #0b74a3; --t-teal: #0f7686;
  --t-pink: #c81e47; --t-mint: #00756e; --t-green: #1c7a3a; --t-brown: #7f6040; --t-yellow: #f5b800;

  --gutter: 16px;
  --max: 1120px;
  --r-card: 26px;
  --r-tile: 20px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --text: #f7f8fa;
    --text2: #aeb3bb;
    --card: rgba(255, 255, 255, .06);
    --card-lit: rgba(255, 255, 255, .1);
    --raised: rgba(255, 255, 255, .1);
    --rim-hi: rgba(255, 255, 255, .45);
    --rim-lo: rgba(255, 255, 255, .22);
    --rim-ring: rgba(255, 255, 255, .1);
    --band: rgba(255, 255, 255, .16);
    --hair: rgba(255, 255, 255, .1);
    --shadow: 0 0 #0000;
    --accent: #ff9a73;
    --glow-a: rgba(255, 154, 115, .16);
    --glow-b: rgba(100, 210, 255, .12);
    --chrome: rgba(16, 16, 18, .38);
    --ok: #30d158;

    --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --green: #30d158; --mint: #63e6e2;
    --teal: #40c8e0; --cyan: #64d2ff; --blue: #0a84ff; --pink: #ff375f; --brown: #ac8e68;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, pre { font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--accent-deep); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Press: every edge moves 3 px in, then it springs back like water ---------- */
[data-press] {
  transition: transform .5s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
[data-press].pressed { transition: transform .12s var(--ease); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  --rr: var(--r-card);
  border-radius: var(--rr);
  background-color: var(--card);
  background-image: radial-gradient(130% 70% at 50% 0%, var(--card-lit), transparent 62%);
  /* The rim is painted by the card itself, so it always has the card's own outline in every browser
     (a separate rim layer, masked to fade, split from the card or faded out at the corners in Firefox):
     a faint ring all round, light from above on the top edge and about half as much on the bottom,
     and a soft band of light just inside, which is what makes it read as glass. */
  box-shadow:
    inset 0 0 0 1px var(--rim-ring),
    inset 0 1px 0 var(--rim-hi),
    inset 0 -1px 0 var(--rim-lo),
    inset 0 10px 16px -12px var(--band),
    inset 0 -8px 14px -12px var(--band),
    var(--shadow);
  isolation: isolate;
}

/* Smoother corners, in Chromium: Firefox and its forks (Zen...) draw this newer corner unevenly with the GPU,
   so they keep plain round ones. */
@supports (corner-shape: superellipse(1.6)) and (not (-moz-appearance: none)) {
  .glass, .badge, .tile, .shot-pc { corner-shape: superellipse(1.6); }
  .glass { --rr: calc(var(--r-card) * 1.25); }
  .tile { border-radius: calc(var(--r-tile) * 1.25); }
}

.raised {
  position: relative;
  background: var(--raised);
  border: 0;
  color: inherit;
  box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 -1px 0 var(--hair), 0 2px 6px -2px rgba(0, 0, 0, .12);
}

.badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  color: #fff;
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .08);
  flex: none;
}
.badge.blue { background: var(--blue); } .badge.green { background: var(--green); }
.badge.red { background: var(--red); } .badge.teal { background: var(--teal); }
.badge.orange { background: var(--orange); } .badge.gray { background: var(--gray); }
.badge.cyan { background: var(--cyan); } .badge.yellow { background: var(--yellow); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 16px/1 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.pill .icon { font-size: 20px; }
.pill.prominent {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 18px -6px rgba(196, 70, 29, .55);
}
.pill.tinted { background: var(--raised); color: var(--text); box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 -1px 0 var(--hair); }

/* ---------- Nav: floating chrome capsule ---------- */
.nav {
  position: fixed;
  top: 12px; left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 6px;
  height: 56px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  backdrop-filter: blur(8px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .18), 0 10px 30px -10px rgba(0, 0, 0, .35);
  color: var(--text);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav.over-hero { background: rgba(255, 255, 255, .1); color: #fff; }
.nav.refract { -webkit-backdrop-filter: url(#nav-fx) blur(3px) saturate(1.5); backdrop-filter: url(#nav-fx) blur(3px) saturate(1.5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; padding-right: 8px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 550; opacity: .85;
}
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.nav .gh { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.nav .gh svg { width: 22px; height: 22px; fill: currentColor; }
.nav .pill { min-height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .gh { margin-left: auto; }
}

/* ---------- Hero: the first run's dunes ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px; max-height: 1100px;
  overflow: hidden;
  color: #fff;
  background: #2a5d9a;
}
.scene, .scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The word's size and centre follow the screen's height too, so on a short laptop screen it stays clear of
   the headline and buttons below it. */
.hero {
  --wf: clamp(92px, min(21vw, 27vh), 236px);
  --wy: min(37%, calc(100% - 385px - var(--wf) * .5));
}
.word {
  position: absolute; left: 0; right: 0; top: var(--wy);
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: var(--wf);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  font-variation-settings: "opsz" 32;
  text-shadow: 0 2px 4px rgba(20, 40, 80, .18), 0 8px 40px rgba(20, 40, 80, .25);
  user-select: none;
}
.hint {
  position: absolute; left: 0; right: 0; top: calc(var(--wy) + var(--wf) * .63);
  margin: 0; text-align: center;
  font-size: 15px; font-weight: 550; letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(30, 40, 60, .35);
  transition: opacity .6s var(--ease);
}
.no-js .hint, .hint.gone { opacity: 0; }
@media (max-height: 700px) { .hint { display: none; } }

.lens {
  position: absolute; left: 0; top: 0;
  width: var(--d); height: var(--d);
  --d: clamp(132px, 24vw, 250px);
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  z-index: 3;
  will-change: transform;
  filter: drop-shadow(0 16px 22px rgba(40, 20, 10, .28));
}
.no-js .lens { display: none; }
.js .lens { opacity: 0; }
.lens.held { cursor: grabbing; }
.lens-view { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.lens-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  /* Lit where it faces the sun and, softer, opposite; the band inside the rim; a faint dark side-on edge. */
  background:
    radial-gradient(closest-side, transparent 86%, rgba(255, 255, 255, .22) 97%, transparent 100%),
    conic-gradient(from var(--la, 140deg), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 55deg, rgba(0, 0, 0, .14) 90deg,
      rgba(255, 255, 255, 0) 125deg, rgba(255, 255, 255, .72) 180deg, rgba(255, 255, 255, 0) 235deg, rgba(0, 0, 0, .14) 270deg,
      rgba(255, 255, 255, 0) 305deg, rgba(255, 255, 255, .95));
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
}
.lens::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .22), inset 0 0 3px rgba(255, 255, 255, .35);
}

.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 7vh, 80px);
  text-align: center;
  z-index: 4;
}
.tagline {
  margin: 0 auto 22px;
  max-width: 16ch;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 32;
  text-shadow: 0 2px 18px rgba(60, 20, 10, .35);
}
.tagline span { color: rgba(255, 255, 255, .78); }
.hero-sub {
  margin: -8px auto 24px;
  max-width: 60ch;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 12px rgba(60, 20, 10, .45);
}
@media (max-height: 600px) { .hero-sub { display: none; } }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .pill { min-height: 54px; padding: 0 28px; font-size: 17px; color: #fff; }
.glass-btn {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(4px) saturate(1.4);
  backdrop-filter: blur(4px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(255, 255, 255, .3), inset 0 0 14px rgba(255, 255, 255, .12),
    0 12px 26px -10px rgba(60, 20, 10, .45);
}
.glass-btn.warm { background: rgba(214, 102, 40, .42); }
.facts {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 14px; font-weight: 550; color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(60, 20, 10, .4);
}
@media (max-height: 820px) { .facts { display: none; } }

/* ---------- Canvas below the hero: the aurora ---------- */
main { position: relative; }
.canvas {
  position: relative;
  background:
    radial-gradient(min(720px, 90vw) 560px at 28% 0, var(--glow-b), transparent 70%),
    radial-gradient(min(720px, 90vw) 560px at 72% 0, var(--glow-a), transparent 70%);
  background-repeat: no-repeat;
}

.section { padding: 104px var(--gutter) 24px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.kicker { display: block; text-align: center; font-size: 14px; font-weight: 650; letter-spacing: .02em; color: var(--accent); margin-bottom: 10px; }
h2 {
  margin: 0 auto 14px; max-width: 20ch;
  text-align: center;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06; letter-spacing: -.035em; font-weight: 750;
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}
.lede { margin: 0 auto 48px; max-width: 58ch; text-align: center; font-size: 19px; color: var(--text2); text-wrap: pretty; }
h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 680; }
p { text-wrap: pretty; }

/* ---------- Pillars ---------- */
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pillar { padding: 24px 24px 26px; }
.pillar .badge { margin-bottom: 18px; }
.pillar p { margin: 10px 0 0; color: var(--text2); font-size: 16px; }

/* ---------- Showcase rows ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 24px; }
.show + .show { margin-top: 96px; }
.show.flip .show-art { order: 2; }
.show-copy h3 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.1; font-weight: 750; }
.show-copy p { color: var(--text2); font-size: 18px; margin: 14px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 15px; font-weight: 560; }
.chips .icon { font-size: 19px; }
.show-art { position: relative; display: grid; place-items: center; }
.show-art::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 30% 60%, var(--glow-b), transparent);
  filter: blur(20px); z-index: -1;
}
.phone {
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2c2d31, #0d0d0f 40%, #1b1c1f);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 540 / 1162; object-fit: cover; }
.shot-pc {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -24px rgba(0, 0, 0, .4);
}
@media (max-width: 860px) {
  .show { grid-template-columns: 1fr; gap: 32px; }
  .show.flip .show-art { order: 0; }
  .show-copy { text-align: center; }
  .chips { justify-content: center; }
}

/* ---------- Feature tiles: the Home screen's filled tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 168px;
  padding: 16px 16px 18px;
  border-radius: var(--r-tile);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .1), 0 10px 24px -14px rgba(0, 0, 0, .45);
}
.tile .icon { font-size: 30px; }
.tile h3 { margin-top: auto; padding-top: 18px; font-size: 18px; }
.tile p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.tile.blue { background: var(--t-blue); } .tile.orange { background: var(--t-orange); } .tile.red { background: var(--t-red); }
.tile.cyan { background: var(--t-cyan); } .tile.teal { background: var(--t-teal); } .tile.pink { background: var(--t-pink); }
.tile.mint { background: var(--t-mint); } .tile.green { background: var(--t-green); } .tile.brown { background: var(--t-brown); }
.tile.yellow { background: var(--t-yellow); color: #1c1c1e; }
.tile.yellow p { color: rgba(28, 28, 30, .8); }
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 150px; padding: 14px; }
  .tile p { display: none; }
  .tile h3 { font-size: 16px; }
}
.more { text-align: center; margin-top: 28px; }

/* ---------- The connection doctor, as the phone shows it ---------- */
.doctor { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.away { padding: 22px; max-width: 480px; justify-self: center; width: 100%; }
.away-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.away-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); box-shadow: 0 0 0 4px rgba(142, 142, 147, .2); }
.away-head strong { font-size: 18px; }
.away-head span { color: var(--text2); font-size: 15px; margin-left: auto; }
.finding { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.finding + .finding { border-top: 1px solid var(--hair); }
.finding .badge { width: 36px; height: 36px; border-radius: 11px; font-size: 21px; }
.finding b { display: block; font-size: 16px; font-weight: 650; }
.finding small { display: block; color: var(--text2); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.finding .pill { min-height: 36px; padding: 0 14px; font-size: 14px; margin-top: 10px; }
.doctor-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.doctor-copy li { display: flex; gap: 12px; color: var(--text2); }
.doctor-copy li .icon { font-size: 22px; color: var(--ok); margin-top: 1px; }
.doctor-copy li b { color: var(--text); font-weight: 650; }
.doctor-copy h2, .doctor-copy .kicker, .doctor-copy .lede { text-align: left; margin-left: 0; }
.doctor-copy .lede { margin-bottom: 24px; }
@media (max-width: 860px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor-copy h2, .doctor-copy .kicker, .doctor-copy .lede { text-align: center; margin-left: auto; }
}

/* ---------- Get started ---------- */
.steps { display: grid; gap: 12px; }
.step { padding: 26px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; }
.step-n {
  grid-row: span 3;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 750; font-size: 19px; color: #fff; background: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.step p { margin: 6px 0 0; color: var(--text2); }
.step p code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--raised); color: var(--text); }
.step-body { min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }

.seg {
  position: relative;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 999px;
  background: var(--raised);
  box-shadow: inset 0 1px 0 var(--rim-hi), inset 0 -1px 0 var(--hair);
  margin-top: 16px;
}
.seg button {
  position: relative; z-index: 1;
  min-width: 84px; min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; color: var(--text2);
  font: 600 15px/1 "Inter", sans-serif; cursor: pointer;
}
.seg button[aria-selected="true"] { color: var(--text); }
.seg .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 999px;
  background: rgba(118, 118, 128, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .55s var(--spring);
}
.seg[data-at="1"] .thumb { transform: translateX(100%); }

.code {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .78);
  color: #f2f3f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (prefers-color-scheme: dark) { .code { background: rgba(255, 255, 255, .07); } }
.code pre { margin: 0; flex: 1; min-width: 0; overflow-x: auto; padding: 12px 0; font-size: 14.5px; line-height: 1.5; scrollbar-width: thin; }
.code pre span { color: #8e8e93; }
.copy {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.copy .icon { font-size: 21px; }

.fp { margin-top: 14px; }
.fp summary { cursor: pointer; color: var(--text2); font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.fp summary::-webkit-details-marker { display: none; }
.fp summary .icon { font-size: 18px; color: var(--green); }
.fp code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--raised); font-size: 13px; line-height: 1.55; word-break: break-all; }

.pair-art { margin-top: 18px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -24px rgba(0, 0, 0, .35); max-width: 560px; }

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; padding: 22px 18px; }
  .step-n { grid-row: auto; margin-bottom: 6px; }
}

/* ---------- FAQ: glass list rows ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 6px 0; }
.faq details { padding: 0 22px; }
.faq details + details { border-top: 1px solid var(--hair); }
.faq summary {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  cursor: pointer; list-style: none;
  font-weight: 620; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; font-size: 24px; color: var(--text2); transition: transform .45s var(--spring); }
.faq details[open] .chev { transform: rotate(90deg); }
.faq details p { margin: -6px 0 18px; color: var(--text2); font-size: 16px; }

/* ---------- Footer ---------- */
footer {
  background: radial-gradient(min(640px, 90vw) 420px at 38% 42%, var(--glow-b), transparent 70%), radial-gradient(min(640px, 90vw) 420px at 62% 42%, var(--glow-a), transparent 70%);
  padding: 96px var(--gutter) 48px; text-align: center; color: var(--text2); font-size: 15px; }
footer .end { max-width: 640px; margin: 0 auto 32px; padding: 32px 24px; }
footer .end img { width: 72px; height: 72px; margin: 0 auto 14px; }
footer .end h2 { font-size: clamp(28px, 4vw, 38px); color: var(--text); }
footer .end p { margin: 0 0 20px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 16px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer small { display: block; max-width: 60ch; margin: 0 auto; font-size: 13.5px; }

/* ---------- Status bubble: drops from the top like the app's ---------- */
.bubble {
  position: fixed; top: 80px; left: 50%; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: 999px;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .2), 0 14px 30px -12px rgba(0, 0, 0, .4);
  font-weight: 600; font-size: 15px;
  transform: translate(-50%, -140px) scale(.6, .4);
  transition: transform .55s var(--spring);
  pointer-events: none;
}
.bubble .icon { font-size: 20px; color: var(--ok); }
.bubble.show { transform: translate(-50%, 0) scale(1); }

/* ---------- Entrances: rise in once, 40 ms apart ---------- */
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--spring); transition-delay: var(--delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; }
  [data-press], .seg .thumb, .bubble, .faq summary .chev { transition: none; }
}
