/* KinLab marketing site: landing page + shared tokens, nav, buttons, footer
   (legal.css builds on top of this file). */

/* ---------- Font (self-hosted Inter, SIL OFL 1.1, see fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0f766e;
  --accent-ink: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --btn-bg: #0f766e;
  --btn-ink: #ffffff;
  --btn-bg-hover: #0c625b;
  --frame: #ffffff;
  --frame-bar: #f2f2f4;
  --bezel: #1d1d1f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.1),
    0 24px 48px -24px rgba(0, 0, 0, 0.12);
  --shadow-device: 0 1px 1px rgba(0, 0, 0, 0.04), 0 4px 10px -2px rgba(0, 0, 0, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.16), 0 60px 120px -40px rgba(0, 0, 0, 0.22);
  /* product UI crops in the features bento */
  --shot-line: rgba(0, 0, 0, 0.1);
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -16px rgba(0, 0, 0, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --nav-h: 56px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --bg-soft: #111113;
    --bg-elev: #161618;
    --tile: #141416;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #2dd4bf;
    --accent-ink: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --btn-bg: #2dd4bf;
    --btn-ink: #042f2a;
    --btn-bg-hover: #5eead4;
    --frame: #1c1c1e;
    --frame-bar: #232326;
    --bezel: #2c2c2e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-device: 0 1px 1px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.8),
      0 60px 120px -40px rgba(0, 0, 0, 0.6);
    --shot-line: rgba(255, 255, 255, 0.1);
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-feature-settings: "cv11", "ss03";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: calc(780px + var(--gutter) * 2);
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.br-wide {
  display: none;
}

@media (min-width: 761px) {
  .br-wide {
    display: inline;
  }
}

/* One line-icon style for the whole page: 24px, 1.75px stroke, round caps. */
.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent-ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn svg {
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
}

.btn--primary:active,
.btn--ghost:active {
  transform: scale(0.98);
}

.btn--ghost {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent-ink);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 7px 15px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row--center {
  justify-content: center;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* the logo is a rounded-square app tile; show it as drawn */
.brand img {
  border-radius: 22%;
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 12px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--accent-ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 64px);
}

.hero__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(42px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.048em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 14ch;
}

@media (min-width: 761px) {
  .hero__title {
    max-width: none;
  }
}

.hero__title-soft {
  color: var(--accent-ink);
}

.hero__sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
  font-weight: 450;
  text-wrap: balance;
}

.hero .cta-row {
  margin-top: 40px;
}

.hero__meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Device stage: a laptop browser with a phone overlapping its corner */
.stage {
  position: relative;
  max-width: 1040px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-right: 9%;
  padding-bottom: 7%;
}

.browser {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--frame);
  box-shadow: var(--shadow-device), 0 0 0 1px var(--line);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(26px, 3.4vw, 40px);
  padding-inline: clamp(10px, 1.4vw, 16px);
  background: var(--frame-bar);
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  display: flex;
  gap: clamp(4px, 0.6vw, 8px);
  flex: 1 1 0;
}

.browser__dots i {
  width: clamp(7px, 0.9vw, 12px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: clamp(9px, 1vw, 13px);
  font-weight: 500;
  white-space: nowrap;
}

.browser__url svg {
  width: 0.9em;
  height: 0.9em;
}

.browser__spacer {
  flex: 1 1 0;
}

.browser__screen {
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: var(--bg-soft);
}

.browser__screen picture {
  height: 100%;
}

.browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* ---------- Device frame (phones) ----------
   Sized with container query units so one frame scales from the hero to
   the step cards. The status bar is drawn here; screenshots start below it. */
.iphone {
  --app-bg: #f6f7f8;
  --app-ink: #0f172a;
  container-type: inline-size;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .iphone {
    --app-bg: #0b0f12;
    --app-ink: #e8edf0;
  }
}

.iphone__body {
  position: relative;
  padding: 3.1cqi;
  border-radius: 16.5cqi;
  background: linear-gradient(150deg, #4a5058 0%, #1b1e22 14%, #0c0d0f 48%, #1b1e22 86%, #4a5058 100%);
  box-shadow:
    inset 0 0 0 0.45cqi #2f343a,
    0 0 0 0.3cqi #050607,
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 24px 48px -16px rgba(15, 23, 42, 0.32),
    0 50px 90px -30px rgba(15, 23, 42, 0.28);
}

/* side buttons */
.iphone__body::before,
.iphone__body::after {
  content: "";
  position: absolute;
  width: 0.9cqi;
  border-radius: 1cqi;
  background: linear-gradient(90deg, #2a2e33, #4a5058);
}

.iphone__body::before {
  left: -0.7cqi;
  top: 22%;
  height: 11cqi;
  box-shadow: 0 15cqi 0 #3a3f45;
}

.iphone__body::after {
  right: -0.7cqi;
  top: 30%;
  height: 18cqi;
}

.iphone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 393 / 852;
  border-radius: 13.6cqi;
  background: var(--app-bg);
  isolation: isolate;
}

.iphone__status {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 6.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6% 8.5% 0 10.5%;
  color: var(--app-ink);
  font: 600 3.95cqi/1 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.iphone__status svg {
  width: 17cqi;
  height: auto;
  fill: currentColor;
}

.iphone__island {
  position: absolute;
  z-index: 3;
  top: 2.4cqi;
  left: 50%;
  width: 29cqi;
  height: 8.6cqi;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}

.iphone__screen picture {
  position: absolute;
  inset: 6.1% 0 0 0;
}

.iphone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* hero phone overlaps the laptop's lower-right corner */
.phone--hero {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -2%;
  width: 25%;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.042em;
  font-weight: 700;
  text-wrap: balance;
}

.section__lead {
  margin: 24px auto 0;
  max-width: 50ch;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--muted);
}

/* ---------- How it works ---------- */
.how {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.step {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--tile);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .step {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

/* the phone sits whole on a flat surface at the top of each card */
.step__shot {
  position: relative;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  background: var(--tile);
}

.step__shot .iphone {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 46%;
  transform: translateX(-50%);
}

.step__text {
  padding: 24px clamp(24px, 2.4vw, 32px) 32px;
}

.step__num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.step h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Doctor links ---------- */
.share__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 36px;
  background: var(--bg-soft);
}

@media (prefers-color-scheme: dark) {
  .share__stage {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.share__device {
  justify-self: center;
  width: min(330px, 86%);
}

/* chat */
.chat {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border-radius: 24px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  overflow: hidden;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid var(--line);
}

.chat__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chat__who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chat__who b {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.chat__who small {
  font-size: 12px;
  color: var(--muted);
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 24px;
  background: var(--tile);
}

.bubble {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.bubble time {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bubble--out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
}

.bubble--in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--line);
}

.bubble--card {
  padding: 4px 4px 8px;
  width: 86%;
}

.bubble--card p,
.bubble--card time {
  padding-inline: 8px;
}

.bubble--card p {
  margin-top: 8px;
}

.linkcard {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--line);
}

.linkcard__hero {
  display: grid;
  place-items: center;
  height: 96px;
  background: var(--tile);
  border-bottom: 1px solid var(--line);
}

.linkcard__hero img {
  border-radius: 22%;
}

.linkcard__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 12px;
}

.linkcard__body b {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.linkcard__body span {
  font-size: 12px;
  color: var(--muted);
}

/* three beats */
.beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-inline: clamp(0px, 2vw, 24px);
}

.beat__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
}

.beat h3 {
  margin-top: 16px;
  font-size: clamp(21px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.beat p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.share__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.share__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
}

.share__facts .tick {
  width: 22px;
  height: 22px;
  margin-top: 0;
}

.share__facts .tick svg {
  width: 12px;
  height: 12px;
}

.share__note {
  margin: 16px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  text-wrap: balance;
}

.share__note a {
  color: var(--accent-ink);
  font-weight: 500;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Features bento ----------
   Media tiles hold real product UI crops that rise out of the tile's bottom
   edge; compact tiles are type-only with one 24px line icon. */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.tile {
  --pad: clamp(24px, 2.8vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  border-radius: var(--radius-lg);
  background: var(--tile);
  overflow: hidden;
  grid-column: span 3;
}

@media (prefers-color-scheme: dark) {
  .tile {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.tile h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.032em;
  font-weight: 650;
  text-wrap: balance;
}

.tile p {
  margin-top: 8px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.tile--wide {
  grid-column: span 7;
}

.tile--narrow {
  grid-column: span 5;
}

/* media tiles: copy on top, UI crop flush with the bottom edge */
.tile--media {
  gap: 32px;
  padding-bottom: 0;
}

.shot {
  position: relative;
  z-index: 0;
  margin-top: auto;
  align-self: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shot-shadow), 0 0 0 1px var(--shot-line);
}

.shot img {
  width: 100%;
  height: auto;
  /* trims the crop's last few pixels so the UI runs off the tile edge */
  margin-bottom: -3%;
}

.shot--highlights {
  max-width: 480px;
}

/* the results card fills the frame: trim the app background around it */
.shot--ranges {
  max-width: 400px;
  border-radius: 22px 22px 0 0;
}

.shot--ranges img {
  width: 104.42%;
  max-width: none;
  margin: -1.71% 0 -3% -2.14%;
}

/* the add-report sheet already has its own rounded top: clip to it */
.shot--sheet {
  max-width: 420px;
  border-radius: 5.6% 5.6% 0 0 / 6.8% 6.8% 0 0;
}

.shot--family {
  max-width: 240px;
}

.shot--family img {
  margin-bottom: -5%;
}

/* family: copy left, switcher rising from the bottom on the right */
.tile--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.tile--split .shot {
  align-self: end;
  margin-top: 32px;
}

/* compact type-only tiles */
.tile--compact .icon {
  margin-bottom: 24px;
}

.tile--compact h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.tile--compact p {
  font-size: 15px;
}

/* ---------- Privacy (dark panel) ---------- */
.privacy {
  padding-top: 0;
}

.privacy__panel {
  --muted: #a1a1a6;
  --accent-ink: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --line: rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  padding: clamp(32px, 7vw, 96px);
  border-radius: 36px;
  background: #0a0a0b;
  color: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  .privacy__panel {
    background: #111113;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.privacy__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.042em;
  font-weight: 700;
  text-wrap: balance;
}

.privacy__note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 46ch;
}

.privacy__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.privacy__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy__list {
  display: grid;
  align-content: center;
}

.privacy__list li {
  display: flex;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.privacy__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.privacy__list li:last-child {
  padding-bottom: 0;
}

.tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-top: 1px;
}

.privacy__list h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.privacy__list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Add to home screen ---------- */
.devices {
  background: var(--bg-soft);
}

.howto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 920px;
  margin-inline: auto;
}

.howto__card {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .howto__card {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.howto__kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.howto__card h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.howto__steps {
  margin-top: 24px;
  counter-reset: howto;
  display: grid;
  gap: 16px;
}

.howto__steps li {
  counter-increment: howto;
  position: relative;
  padding-left: 40px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.howto__steps li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}

.howto__steps strong {
  color: var(--ink);
  font-weight: 600;
}

.howto__steps a {
  color: var(--accent-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.glyph {
  display: inline-block;
  vertical-align: -3px;
  color: var(--accent-ink);
}

/* ---------- FAQ ---------- */
.faq__list {
  border-top: 1px solid var(--line);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.35;
  border-radius: 6px;
  transition: color 0.2s var(--ease);
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary:hover {
  color: var(--accent-ink);
}

.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.faq__list summary::after {
  transform: rotate(90deg);
}

.faq__list details[open] summary::after {
  transform: rotate(0deg);
}

.faq__a {
  padding: 0 48px 24px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.faq__list details[open] .faq__a {
  animation: faq-in 0.35s var(--ease-out);
}

.faq__a a {
  color: var(--accent-ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Maker ---------- */
.maker {
  text-align: center;
  padding-bottom: calc(var(--section) * 0.6);
}

.maker__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maker__logo {
  border-radius: 22%;
  margin-bottom: 32px;
}

.maker__quote p {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.042em;
  font-weight: 650;
  text-wrap: balance;
}

.maker__by {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

/* ---------- Final CTA ---------- */
.cta {
  padding-top: 0;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.cta__band {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px);
  border-radius: 36px;
  background: var(--bg-soft);
}

@media (prefers-color-scheme: dark) {
  .cta__band {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.cta__band h2 {
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.048em;
  font-weight: 700;
  text-wrap: balance;
}

.cta__band > p {
  margin: 16px auto 0;
  text-wrap: balance;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
}

.cta__band .cta-row {
  margin-top: 40px;
}

.cta__band .cta__small {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 32px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: start;
}

.footer .brand {
  color: var(--ink);
  font-size: 15px;
}

.footer__disclaimer {
  margin-top: 16px;
  max-width: 60ch;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 48px;
  padding-top: 4px;
}

.footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__base {
  margin-top: 32px;
}

.footer__base p {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .stage {
  animation: stage-in 1.4s var(--ease-out) 0.25s both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  [data-parallax] {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tile--wide,
  .tile--narrow {
    grid-column: span 6;
  }
  .tile--compact {
    grid-column: span 6;
  }
  .tile--split {
    display: flex;
  }
  .tile--split .shot {
    align-self: center;
    margin-top: auto;
  }
  .steps {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .step__shot {
    aspect-ratio: 1 / 1.14;
  }
  .step__shot .iphone {
    width: 44%;
  }
  .privacy__panel {
    grid-template-columns: 1fr;
  }
  .share__stage {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }
  .chat {
    justify-self: center;
  }
  .share__device {
    width: min(300px, 78%);
  }
  .beats {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
    padding-inline: 0;
  }
  .beat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
  }
  .beat__num {
    grid-row: span 2;
  }
  .beat h3 {
    margin-top: 2px;
  }
  /* media tiles go full width so the UI crops stay legible */
  .tile--wide,
  .tile--narrow {
    grid-column: 1 / -1;
  }
  .tile--split {
    display: grid;
  }
  .tile--split .shot {
    align-self: end;
    margin-top: 32px;
  }
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .stage {
    padding-right: 14%;
  }
  .browser {
    border-radius: 10px;
  }
  .howto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .tile--compact {
    grid-column: 1 / -1;
  }
  .tile--media {
    gap: 24px;
  }
  .tile--split {
    display: flex;
  }
  .tile--split .shot {
    align-self: center;
    margin-top: auto;
    max-width: 220px;
  }
  .phone--hero {
    width: 33%;
    bottom: -4%;
  }
  .step__shot {
    aspect-ratio: 1 / 1.24;
  }
  .step__shot .iphone {
    width: 50%;
  }
  .hero .cta-row,
  .cta__band .cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }
  .btn--lg {
    width: 100%;
  }
  .privacy__panel,
  .cta__band,
  .share__stage {
    border-radius: var(--radius-lg);
  }
  .share__stage {
    padding: 24px 16px;
  }
  .share__facts {
    flex-direction: column;
    align-items: flex-start;
    max-width: 340px;
    margin-inline: auto;
  }
  .share__note {
    text-align: left;
    max-width: 340px;
    text-wrap: pretty;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__links {
    grid-template-columns: 1fr;
  }
}

/* ---------- Private by design (USP) ---------- */
.private {
  background: var(--bg-soft);
}

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  counter-reset: none;
}

.flow__step {
  position: relative;
  text-align: center;
}

.flow__step + .flow__step::before {
  content: "";
  position: absolute;
  top: 96px;
  left: calc(clamp(16px, 2.4vw, 32px) / -2 - 9px);
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.55;
}

.flow__art {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.flow__step h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.flow__step p {
  margin: 8px auto 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Step 1: a paper report, personal details highlighted */
.paper {
  width: min(200px, 80%);
  padding: 16px 16px 14px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 11px;
  transform: rotate(-2.5deg);
}

.paper__lab {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.paper__pii,
.paper__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.paper__pii i,
.paper__row i {
  font-style: normal;
  color: var(--muted);
}

.paper__pii s {
  flex: 1;
  height: 7px;
  max-width: 90px;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.28);
}

.paper__row {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.paper__row b {
  font-weight: 650;
  color: var(--ink);
}

/* Step 2: the device, reading locally */
.device {
  position: relative;
  width: 96px;
  height: 132px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
}

.device__scan {
  position: absolute;
  inset-inline: 10px;
  top: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px var(--accent);
  animation: kl-scan 2.4s var(--ease) infinite alternate;
}

@keyframes kl-scan {
  to {
    top: calc(100% - 20px);
  }
}

.device__label {
  position: absolute;
  bottom: 14px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.flow__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}

/* Step 3: only results kept */
.kept {
  width: min(220px, 84%);
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.kept__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.kept__row i {
  font-style: normal;
  color: var(--ink-2);
}

.kept__row b {
  font-weight: 650;
  color: var(--ink);
}

.kept__file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

/* Promises */
.promises {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(48px, 6vw, 80px);
}

.promise {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
}

.promise h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.promise h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .promise h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232dd4bf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.promise p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.private__note {
  margin: 28px auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.private__note a {
  color: var(--accent-ink);
  font-weight: 600;
}

@media (max-width: 900px) {
  .flow,
  .promises {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }

  .flow {
    gap: 48px;
  }

  .flow__step + .flow__step::before {
    top: -33px;
    left: calc(50% - 9px);
    transform: rotate(135deg);
  }
}


@media (prefers-reduced-motion: reduce) {
  .device__scan {
    animation: none;
    top: 50%;
  }
}

/* Hero trust chips */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 28px auto 0;
  padding: 0;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =====================================================================
   Renovated sections: USPs, comparison, family, visit summary, no-download,
   languages demo, accessibility.
   ===================================================================== */

:root {
  --high: #b42318;
  --high-soft: rgba(180, 35, 24, 0.09);
  --low: #b54708;
  --low-soft: rgba(181, 71, 8, 0.1);
  --ok: #067647;
  --ok-soft: rgba(6, 118, 71, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --high: #fda29b;
    --high-soft: rgba(253, 162, 155, 0.13);
    --low: #fec84b;
    --low-soft: rgba(254, 200, 75, 0.12);
    --ok: #75e0a7;
    --ok-soft: rgba(117, 224, 167, 0.12);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: clamp(13px, 1.2vw, 15px);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.section__title--left,
.section__lead--left {
  text-align: left;
  margin-inline: 0;
}

/* status tags (words + colour, never colour alone) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.tag--high {
  background: var(--high-soft);
  color: var(--high);
}

.tag--low {
  background: var(--low-soft);
  color: var(--low);
}

.tag--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag--lg {
  padding: 8px 16px;
  font-size: 16px;
}

/* ---------- Why: six promises ---------- */
.usps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.usp a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--tile);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (prefers-color-scheme: dark) {
  .usp a {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.usp a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}

.usp__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.usp h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

.usp p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.usp__more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
}

.usp__more::after {
  content: " →";
}

/* the privacy promise leads, on the brand colour */
.usp--hero a {
  background: #0f766e;
  color: #fff;
  box-shadow: none;
}

.usp--hero .usp__icon {
  background: rgba(255, 255, 255, 0.16);
}

.usp--hero .icon,
.usp--hero .usp__more {
  color: #fff;
}

.usp--hero p {
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Comparison ---------- */
.compare {
  margin-top: clamp(56px, 7vw, 88px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  overflow-x: auto;
}

.compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th,
.compare td {
  padding: 18px clamp(16px, 2.4vw, 32px);
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.compare thead th {
  border-top: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}

.compare thead .compare__us {
  color: var(--accent-ink);
  font-size: 16px;
}

.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 38%;
}

.compare td {
  color: var(--muted);
}

.compare td.compare__us {
  background: var(--accent-soft);
}

.yes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.yes::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f766e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- Split layout (copy + art) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.split--reverse .split__copy {
  order: 2;
}

.split__art {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.checks li b {
  color: var(--ink);
  font-weight: 600;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f766e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232dd4bf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* ---------- Family ---------- */
.family {
  background: var(--bg-soft);
}

.family-card {
  width: min(300px, 80%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-device), 0 0 0 1px var(--line);
}

.family-card img {
  width: 100%;
  height: auto;
}

.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.people li {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  line-height: 1.2;
}

.people b {
  font-size: 14px;
  font-weight: 650;
}

.people small {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}

.avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.avatar--a { background: #0f766e; }
.avatar--b { background: #4f46e5; }
.avatar--c { background: #c2410c; }
.avatar--d { background: #0369a1; }

/* ---------- Visit summary ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 36px;
  background: var(--bg-soft);
}

@media (prefers-color-scheme: dark) {
  .visit {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.visit__copy h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.visit__copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
}

.visit__doc {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  font-size: 13px;
  transform: rotate(1.5deg);
}

.visit__doc > b {
  font-size: 15px;
  letter-spacing: -0.015em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.visit__h {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.visit__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.visit__row i {
  font-style: normal;
}

.visit__row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.visit__q {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--tile);
  color: var(--ink-2);
}

/* ---------- No download ---------- */
.nodl__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.nodl__fact {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--tile);
}

@media (prefers-color-scheme: dark) {
  .nodl__fact {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.nodl__big {
  display: block;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.05em;
  color: var(--accent-ink);
}

.nodl__fact h3 {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.nodl__fact p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.nodl .howto__card {
  background: var(--tile);
  box-shadow: none;
}

/* ---------- Languages ---------- */
.langs {
  background: var(--bg-soft);
}

.langs__switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
}

.langs__switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.langs__switch button:hover {
  color: var(--accent-ink);
}

.langs__switch button[aria-pressed="true"] {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.langs__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* a small, live mock of the KinLab home screen */
.mock {
  width: min(360px, 100%);
  padding: 20px 18px 0;
  border-radius: 32px;
  background: var(--bg);
  box-shadow: var(--shadow-device), 0 0 0 1px var(--line);
  overflow: hidden;
  font-size: 14px;
  transition: opacity 0.2s var(--ease);
}

.mock.is-switching {
  opacity: 0.35;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock__title {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.mock__btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.mock__h {
  margin: 20px 4px 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mock__card {
  border-radius: 18px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mock__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.mock__row + .mock__row {
  border-top: 1px solid var(--line);
}

.mock__test {
  font-weight: 600;
}

.mock__row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mock__foot {
  margin: 16px 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.mock__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -18px;
  padding: 12px 6px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.mock__nav .is-on {
  color: var(--accent-ink);
}

.mock:lang(hi),
.mock:lang(bn) {
  line-height: 1.6;
}

/* ---------- Accessibility ---------- */
.access__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.access__tile {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--tile);
}

@media (prefers-color-scheme: dark) {
  .access__tile {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.access__art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 8px;
  min-height: 136px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
}

.access__tile h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.access__tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.access__art--words {
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  text-align: center;
}

.access__art--words s {
  color: var(--muted);
  text-decoration-color: var(--high);
  text-decoration-thickness: 2px;
}

.access__art--words b {
  font-size: 16px;
  color: var(--ink);
}

.sr-bubble {
  position: relative;
  max-width: 260px;
  padding: 12px 16px 12px 44px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.sr-bubble::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.access__art--modes {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mode {
  flex: 1;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 136px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mode--light {
  background: #ffffff;
  color: #1d1d1f;
}

.mode--dark {
  background: #0b0f12;
  color: #e8edf0;
}

.offline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elev));
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.offline .icon {
  width: 20px;
  height: 20px;
}

.signin {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(260px, 100%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  font-weight: 600;
}

.signin .g {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 750;
}

/* CTA chips without the tinted pill */
.trust--plain {
  margin-top: 32px;
}

.trust--plain li {
  background: var(--bg-elev);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Responsive: new sections ---------- */
@media (max-width: 1024px) {
  .usps,
  .access__grid,
  .nodl__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .split,
  .visit {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--reverse .split__copy {
    order: 0;
  }
  .split__copy {
    max-width: 600px;
  }
  .visit__doc {
    width: 100%;
    max-width: 380px;
    justify-self: center;
    transform: none;
  }
}

@media (max-width: 640px) {
  .usps,
  .access__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nodl__big {
    font-size: 44px;
  }
  .langs__switch {
    display: flex;
    width: 100%;
  }
  .langs__switch button {
    flex: 1;
    padding-inline: 8px;
  }
  .visit {
    border-radius: var(--radius-lg);
    padding: 24px 18px;
  }
  .compare th,
  .compare td {
    padding: 14px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .nodl__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* comparison: one card per question on phones */
@media (max-width: 640px) {
  .compare {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    min-width: 0;
    width: auto;
  }
  .compare thead {
    display: none;
  }
  .compare tr {
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
    overflow: hidden;
  }
  .compare tbody th {
    width: auto;
    border-top: 0;
    padding: 16px 16px 10px;
    font-size: 16px;
  }
  .compare td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    text-align: right;
  }
  .compare td::before {
    content: attr(data-label);
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .compare td.compare__us::before {
    color: var(--accent-ink);
  }
  .compare .yes {
    text-align: right;
  }
}

.brand svg {
  display: block;
}

.hero__title-soft {
  display: block;
}

/* =====================================================================
   Motion. Every effect has a still final state, and the reduced-motion
   rule above turns all of it off.
   ===================================================================== */

@keyframes kl-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes kl-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.12);
  }
}

@keyframes kl-slide-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes kl-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll progress, a hairline under the nav */
.nav {
  position: sticky;
}

.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* Hero: the second line catches the light once */
.js .hero__title-soft {
  background: linear-gradient(100deg, var(--accent-ink) 0%, var(--accent-ink) 40%,
      color-mix(in srgb, var(--accent-ink) 35%, #fff) 50%, var(--accent-ink) 60%, var(--accent-ink) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kl-shine 2.4s var(--ease) 1.1s both;
}

@keyframes kl-shine {
  to {
    background-position: 0% 0;
  }
}

/* Primary buttons: a soft sheen on hover */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}

.btn--primary:hover::after {
  transform: translateX(110%);
}

/* Floating result chips around the hero devices */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  white-space: nowrap;
  animation: kl-pop 0.6s var(--ease-out) backwards, kl-bob 6s ease-in-out infinite;
}

.float-chip--a {
  left: -3%;
  top: 22%;
  animation-delay: 1.2s, 1.8s;
}

.float-chip--b {
  left: 8%;
  bottom: 4%;
  animation-delay: 1.5s, 3s;
}

.float-chip--c {
  right: 21%;
  top: -4%;
  animation-delay: 1.8s, 0.6s;
}

.float-chip b {
  font-variant-numeric: tabular-nums;
}

.float-chip__name {
  color: var(--muted);
}

.float-chip__tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f766e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.float-chip--c > span:last-child {
  display: grid;
  line-height: 1.2;
}

.float-chip small {
  font-size: 0.82em;
  font-weight: 500;
  color: var(--muted);
}

.float-chip .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* Six promises: icons pop in as the cards arrive */
.usp.is-visible .usp__icon {
  animation: kl-pop 0.55s var(--ease-out) 0.25s backwards;
}

.usp a:hover .usp__icon {
  transform: rotate(-6deg) scale(1.06);
  transition: transform 0.3s var(--ease-out);
}

/* Privacy flow plays in order: report, reading, values kept */
.flow.is-visible .flow__step {
  animation: kl-rise 0.7s var(--ease-out) backwards;
}

.flow.is-visible .flow__step:nth-child(2) {
  animation-delay: 0.5s;
}

.flow.is-visible .flow__step:nth-child(3) {
  animation-delay: 1s;
}

.flow.is-visible .paper__pii s {
  animation: kl-grow 0.6s var(--ease-out) 0.4s backwards;
  transform-origin: 0 50%;
}

@keyframes kl-grow {
  from {
    transform: scaleX(0);
  }
}

.flow.is-visible .flow__badge {
  animation: kl-pop 0.5s var(--ease-out) 1.1s backwards;
}

.flow.is-visible .kept__row {
  animation: kl-slide-in 0.5s var(--ease-out) backwards;
}

.flow.is-visible .kept__row:nth-child(1) {
  animation-delay: 1.4s;
}

.flow.is-visible .kept__row:nth-child(2) {
  animation-delay: 1.6s;
}

.flow.is-visible .kept__file {
  animation: kl-rise 0.5s var(--ease-out) 1.9s backwards;
}

/* Comparison: KinLab's answers tick in, row by row */
.compare.is-visible .yes::before {
  animation: kl-pop 0.45s var(--ease-out) backwards;
}

.compare.is-visible tr:nth-child(1) .yes::before { animation-delay: 0.2s; }
.compare.is-visible tr:nth-child(2) .yes::before { animation-delay: 0.35s; }
.compare.is-visible tr:nth-child(3) .yes::before { animation-delay: 0.5s; }
.compare.is-visible tr:nth-child(4) .yes::before { animation-delay: 0.65s; }
.compare.is-visible tr:nth-child(5) .yes::before { animation-delay: 0.8s; }

/* Family: people join one by one, the switcher floats */
.split__art.is-visible .people li {
  animation: kl-pop 0.5s var(--ease-out) backwards;
}

.split__art.is-visible .people li:nth-child(1) { animation-delay: 0.3s; }
.split__art.is-visible .people li:nth-child(2) { animation-delay: 0.45s; }
.split__art.is-visible .people li:nth-child(3) { animation-delay: 0.6s; }
.split__art.is-visible .people li:nth-child(4) { animation-delay: 0.75s; }

.family-card {
  animation: kl-bob 7s ease-in-out infinite;
}

/* Doctor chat: the link is sent, the doctor types, then replies */
.bubble--typing {
  display: none;
}

.share__stage.is-visible .bubble--out {
  animation: kl-rise 0.5s var(--ease-out) 0.3s backwards;
}

.chat__body {
  position: relative;
}

.share__stage.is-visible .bubble--typing {
  display: inline-flex;
  position: absolute;
  left: 16px;
  bottom: 24px;
  gap: 4px;
  padding: 12px 14px;
  opacity: 0;
  animation: kl-typing-window 2.1s linear forwards;
}

.bubble--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: kl-dot 0.9s ease-in-out infinite;
}

.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes kl-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* visible from about 0.9s to 2.05s, then the reply takes its place */
@keyframes kl-typing-window {
  0%, 42% { opacity: 0; }
  46%, 96% { opacity: 1; }
  100% { opacity: 0; }
}

.share__stage.is-visible .bubble--in:not(.bubble--typing) {
  animation: kl-rise 0.45s var(--ease-out) 2.1s backwards;
}

/* Visit summary fills in line by line */
.visit.is-visible .visit__doc > * {
  animation: kl-slide-in 0.45s var(--ease-out) backwards;
}

.visit.is-visible .visit__doc > :nth-child(1) { animation-delay: 0.2s; }
.visit.is-visible .visit__doc > :nth-child(2) { animation-delay: 0.35s; }
.visit.is-visible .visit__doc > :nth-child(3) { animation-delay: 0.5s; }
.visit.is-visible .visit__doc > :nth-child(4) { animation-delay: 0.65s; }
.visit.is-visible .visit__doc > :nth-child(5) { animation-delay: 0.8s; }
.visit.is-visible .visit__doc > :nth-child(6) { animation-delay: 0.95s; }
.visit.is-visible .visit__doc > :nth-child(7) { animation-delay: 1.1s; }
.visit.is-visible .visit__doc > :nth-child(8) { animation-delay: 1.25s; }

/* Accessibility tiles */
.access__tile.is-visible .tag--lg {
  animation: kl-pop 0.5s var(--ease-out) backwards;
}

.access__tile.is-visible .tag--lg:nth-child(2) { animation-delay: 0.15s; }
.access__tile.is-visible .tag--lg:nth-child(3) { animation-delay: 0.3s; }

.access__tile.is-visible .mode--dark {
  animation: kl-wipe 0.9s var(--ease-out) 0.3s backwards;
}

@keyframes kl-wipe {
  from {
    clip-path: inset(0 0 0 100%);
  }
}

.access__tile.is-visible .access__art--words s {
  animation: kl-rise 0.5s var(--ease-out) 0.2s backwards;
}

.access__tile.is-visible .access__art--words b {
  animation: kl-rise 0.5s var(--ease-out) 0.7s backwards;
}

.sr-bubble.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: kl-caret 0.8s steps(1) infinite;
}

@keyframes kl-caret {
  50% { opacity: 0; }
}

/* An older phone, for the "Fine on older phones" tile */
.access__art--phone {
  flex-direction: column;
  gap: 10px;
}

.oldphone {
  position: relative;
  width: 46px;
  height: 78px;
  border-radius: 10px;
  border: 3px solid var(--ink-2);
  background: var(--bg);
}

.oldphone::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink-2);
  transform: translateX(-50%);
}

.oldphone i {
  position: absolute;
  inset: 8px 6px 18px;
  border-radius: 3px;
  background: linear-gradient(var(--accent) 0 0) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 0 12px / 70% 4px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 0 20px / 85% 4px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 0 28px / 60% 4px no-repeat,
    var(--accent-soft);
}

.access__tile.is-visible .oldphone {
  animation: kl-pop 0.6s var(--ease-out) 0.2s backwards;
}

.oldphone__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* Counters roll down to zero */
.nodl__big {
  font-variant-numeric: tabular-nums;
}

.nodl__fact.is-visible .nodl__big {
  animation: kl-pop 0.5s var(--ease-out) backwards;
}

/* Language preview text swaps softly */
.mock [data-t] {
  transition: opacity 0.2s var(--ease);
}

@media (max-width: 760px) {
  .float-chip--a {
    left: -2%;
    top: 12%;
  }
  .float-chip--b {
    left: 2%;
    bottom: -2%;
  }
  .float-chip--c {
    display: none;
  }
}

@media (max-width: 640px) {
  .float-chip--b {
    display: none;
  }
  .float-chip--a {
    top: -8%;
    left: 0;
    font-size: 10.5px;
    padding: 5px 9px;
  }
  .float-chip {
    padding: 7px 10px;
    border-radius: 12px;
    gap: 6px;
  }
}

/* ---------- Early users ---------- */
.reviews {
  background: var(--bg-soft);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.8vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.quote blockquote p {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.quote blockquote p::before {
  content: "";
  display: block;
  width: 34px;
  height: 26px;
  margin-bottom: 18px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V15C0 6.7 4.3 1.7 12.8 0l1.5 3.4C9.9 4.7 7.6 7.4 7.2 11.2H13V26zm20 0V15C20 6.7 24.3 1.7 32.8 0l1.5 3.4c-4.4 1.3-6.7 4-7.1 7.8H33V26z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V15C0 6.7 4.3 1.7 12.8 0l1.5 3.4C9.9 4.7 7.6 7.4 7.2 11.2H13V26zm20 0V15C20 6.7 24.3 1.7 32.8 0l1.5 3.4c-4.4 1.3-6.7 4-7.1 7.8H33V26z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}

.quote__av {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-weight: 750;
  font-size: 18px;
}

.quote__by b {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.quote__by small {
  font-size: 14px;
  color: var(--muted);
}

.quotes__note {
  margin: 22px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Feedback ---------- */
.fb {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  background: var(--bg-soft);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .fb {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

.fb__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 750;
  text-wrap: balance;
}

.fb__lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.fb__faces {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  margin: 28px 0 24px;
}

.fb__faces button {
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  border-radius: 20px;
  border: 2px solid transparent;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: clamp(26px, 6vw, 32px);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.fb__faces button:hover {
  transform: translateY(-2px);
}

.fb__faces button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.12);
}

.fb__field {
  display: block;
  margin-top: 14px;
  text-align: left;
}

.fb__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.fb__field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.fb__field textarea,
.fb__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.fb__field textarea:focus,
.fb__field input:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
}

.fb__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fb__send {
  margin-top: 22px;
  min-width: 240px;
}

.fb__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fb__status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-ink);
}

.fb__status.err {
  color: #c4320a;
}

.fb__fine {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.fb__fine a {
  color: var(--accent-ink);
}

@media (max-width: 900px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}
