/* ===========================================================================
   SonoScribe — sonoscribe.africa
   Light clinical: off-white canvas, navy type, vivid azure accents.
   Palette is the app's own brand package (aitranscribe/lib/theme/app_colors.dart).
   =========================================================================== */

/* ---------- fonts ------------------------------------------------------- */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* brand */
  --navy: #132338;
  --navy-2: #2b3d55;
  --slate: #4e6a7f;
  --cyan: #14b8d1;
  --teal: #1b6665;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #dce3ec;

  /* derived */
  --cyan-tint: #e7f8fb;
  --cyan-tint-2: #d0f0f6;
  --teal-tint: #eef6f5;
  --amber: #9a5c00;
  --amber-tint: #fdf3e2;
  --ink-muted: #5a7590;
  /* Vivid azure is a fill colour, not a text colour — it only reaches 2.3:1
     on the light canvas. This is the darkened form for anything readable. */
  --cyan-ink: #0d8ba1;

  /* type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* space */
  --gutter: 24px;
  --container: 1140px;
  --radius: 20px;
  --radius-sm: 12px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(19, 35, 56, .05);
  --shadow: 0 1px 2px rgba(19, 35, 56, .04), 0 12px 32px -14px rgba(19, 35, 56, .18);
  --shadow-lg: 0 2px 4px rgba(19, 35, 56, .04), 0 28px 64px -24px rgba(19, 35, 56, .28);
  --shadow-cyan: 0 20px 48px -20px rgba(20, 184, 209, .5);
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(54px, 6.6vw, 88px); }
.section--tight { padding-block: clamp(40px, 4.6vw, 60px); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 50px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section-head--center .eyebrow::before { display: none; }

/* The leading rule reads as a stray dash once a centred eyebrow wraps. */
@media (max-width: 640px) {
  .hero .eyebrow::before { display: none; }
}

h2.section-title { font-size: clamp(29px, 3.7vw, 42px); }

.section-lede {
  margin-top: 18px;
  font-size: clamp(16.5px, 1.55vw, 19px);
  color: var(--slate);
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease,
              background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn svg { flex: none; }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(19, 35, 56, .8);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(20, 184, 209, .7);
}

.btn--ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--teal);
}

.btn--sm { padding: 10px 18px; font-size: 14.5px; }

.btn--block { width: 100%; }

.btn[aria-disabled='true'],
.btn:disabled {
  background: #e6eaf0;
  color: var(--slate);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--slate);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1.5px solid rgba(20, 184, 209, .35);
  padding-bottom: 1px;
  transition: border-color .18s ease, gap .18s ease;
}
.link-arrow:hover { border-color: var(--cyan); gap: 10px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(245, 246, 248, .92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand__mark { width: 20px; height: 38px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .085em;
  color: var(--navy);
}

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  transition: color .16s ease, background-color .16s ease;
}
.site-nav__list a:hover { color: var(--navy); background: rgba(19, 35, 56, .05); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 940px) {
  .site-nav,
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-cta {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    padding: 0 var(--gutter);
  }
  .site-header.is-open .site-nav {
    top: 72px;
    margin-left: 0;
    background: rgba(245, 246, 248, .97);
    border-bottom: 1px solid var(--line);
    padding-block: 8px;
  }
  .site-header.is-open .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-header.is-open .site-nav__list a { padding: 12px 4px; font-size: 16px; }
  .site-header.is-open .header-cta {
    top: calc(72px + 8px);
    transform: translateY(100%);
    background: rgba(245, 246, 248, .97);
    border-bottom: 1px solid var(--line);
    padding-block: 14px;
    gap: 12px;
  }
  .site-header.is-open .header-cta .btn { flex: 1; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(52px, 7vw, 90px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero__aura {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 76% 12%, rgba(20, 184, 209, .22), transparent 68%),
    radial-gradient(40% 46% at 16% 4%, rgba(27, 102, 101, .13), transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, .9), transparent 72%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(78, 106, 127, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 106, 127, .085) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 8%, #000 12%, transparent 76%);
  mask-image: radial-gradient(72% 62% at 50% 8%, #000 12%, transparent 76%);
}

.hero__copy { max-width: 1000px; margin-inline: auto; text-align: center; }

.hero h1 {
  font-size: clamp(37px, 5.4vw, 62px);
  letter-spacing: -.032em;
}
.hero h1 .accent {
  display: block;
  /* Both stops clear 3:1 on the canvas, so the headline still passes AA
     for large text where a flat --cyan would not. */
  background: linear-gradient(100deg, #16605f 4%, #1394ab 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 22px auto 0;
  max-width: 700px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--slate);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
}
.hero__cta .btn { padding-inline: 28px; }

.hero__cta-group { display: flex; flex-direction: column; align-items: center; }

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.platform-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
}
.platform-pills svg { width: 15px; height: 15px; color: var(--teal); }

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

.demo-wrap { position: relative; margin-top: clamp(44px, 6vw, 68px); }

.demo-sonar {
  position: absolute;
  left: 50%;
  top: -70px;
  width: min(880px, 108%);
  transform: translateX(-50%);
  z-index: -1;
  color: var(--cyan);
  opacity: .5;
  pointer-events: none;
}
.demo-sonar path { animation: sonar 3.6s ease-out infinite; transform-origin: 50% 100%; }
.demo-sonar path:nth-child(2) { animation-delay: .5s; }
.demo-sonar path:nth-child(3) { animation-delay: 1s; }
.demo-sonar path:nth-child(4) { animation-delay: 1.5s; }

@keyframes sonar {
  0%   { opacity: 0;   transform: scale(.86); }
  35%  { opacity: .85; }
  100% { opacity: 0;   transform: scale(1.06); }
}

.demo {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo__pane { padding: 22px; min-width: 0; }
.demo__pane + .demo__pane { border-left: 1px solid var(--line); }
.demo__pane--capture {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfcfd, #f7f9fb);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.demo__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.demo__chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cyan-tint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.demo__chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e5484d;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.demo__scan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
  margin-bottom: 16px;
}
.demo__scan strong { font-weight: 600; }
.demo__scan span { color: var(--ink-muted); }

.wave {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 62px;
  padding: 0 2px;
  margin-bottom: 16px;
}
/* Continuous resting baseline — the bars themselves would read as a dashed
   line at rest, which looks like a rendering fault rather than silence. */
.wave::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: #c6d2de;
  opacity: 0;
  transition: opacity .3s ease;
}
.demo.is-idle .wave::after { opacity: .7; }
.wave span {
  flex: 1;
  min-width: 2px;
  height: calc(var(--h, .3) * 100%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  opacity: .85;
  transition: height .16s ease, opacity .3s ease, background .3s ease;
}
.demo.is-idle .wave span { height: 2px; opacity: 0; }

.demo__transcript {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--navy-2);
  min-height: 156px;
}
.demo__transcript .w { opacity: 0; transition: opacity .22s ease; }
.demo__transcript .w.is-said { opacity: 1; }
.demo__caret {
  display: inline-block;
  width: 2px;
  height: 1.02em;
  vertical-align: -2px;
  margin-left: 1px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
}

.demo__hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* right pane: findings + report */

.demo__stack { position: relative; min-height: 396px; }
.demo__view { transition: opacity .4s ease, transform .4s ease; }
.demo__view[hidden] { display: none; }
.demo__view.is-entering { opacity: 0; transform: translateY(10px); }

.findings { display: grid; gap: 7px; }

/* Resting state = the template checklist as the app shows it during
   recording: every field listed, none answered yet. */
.finding {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px dashed #e0e6ee;
  border-radius: 12px;
  background: transparent;
  transition: opacity .34s ease, border-color .34s ease,
              background-color .34s ease, border-style .34s ease;
}
.finding.is-in {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}
.finding.is-flash { border-color: var(--cyan); background: var(--cyan-tint); }

.finding__tick {
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #b6c4d3;
  transition: background-color .34s ease, color .34s ease;
}
.finding.is-in .finding__tick { background: var(--cyan-tint-2); color: var(--teal); }
.finding__tick svg { width: 13px; height: 13px; }

.finding__label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #7b90a6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .34s ease;
}
.finding.is-in .finding__label { color: var(--slate); }

.finding__value {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #94a7ba;
  font-variant-numeric: tabular-nums;
  transition: color .34s ease;
}
.finding.is-in .finding__value { color: var(--navy); }
.finding--derived.is-in .finding__value { color: var(--teal); }

.finding--pending.is-in { border-style: dashed; border-color: #ecd9b4; background: var(--amber-tint); }
.finding--pending.is-in .finding__tick { background: #f7e6c8; color: var(--amber); }
.finding--pending.is-in .finding__value { color: var(--amber); font-size: 12.5px; }

.demo__report {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.demo__report-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
}
.demo__report-head h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.35;
}
.demo__report-head svg { width: 16px; height: 16px; flex: none; opacity: .8; }

.demo__report-body { padding: 14px; font-size: 13px; line-height: 1.66; color: var(--navy-2); }
.demo__report-body p + p { margin-top: 9px; }
.demo__report-body b { font-weight: 600; color: var(--navy); }

.demo__report-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}
.review-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
}
.review-chip svg { width: 13px; height: 13px; }

.mini-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}
.mini-btn--solid { background: var(--teal); border-color: var(--teal); color: #fff; }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo__pane + .demo__pane { border-left: 0; border-top: 1px solid var(--line); }
  .demo__transcript { min-height: 0; }
}

/* ---------- stat band --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat__value em { font-style: normal; color: var(--cyan-ink); }
.stat__label { margin-top: 10px; font-size: 13.5px; color: var(--slate); }

@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- problem ----------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.pain-list { display: grid; gap: 14px; margin-top: 26px; }
.pain-list li {
  position: relative;
  padding-left: 34px;
  color: var(--slate);
  font-size: 16px;
}
.pain-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.gain-card {
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(231, 248, 251, .8), rgba(255, 255, 255, .9));
  box-shadow: var(--shadow);
}
.gain-list { display: grid; gap: 16px; margin-top: 22px; }
.gain-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.gain-list .tick {
  flex: none;
  margin-top: 3px;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.gain-list .tick svg { width: 12px; height: 12px; }

/* ---------- steps ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step { position: relative; padding-top: 26px; }
.step::before {
  content: '';
  position: absolute;
  left: 0; right: -20px; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(20, 184, 209, .18));
}
.step:last-child::before { right: 0; }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--cyan-tint);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18.5px; margin-bottom: 9px; }
.step p { font-size: 14.8px; color: var(--slate); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features ---------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 209, .45);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--cyan-tint), var(--teal-tint));
  color: var(--teal);
  margin-bottom: 18px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: -.015em; }
.feature p { font-size: 14.6px; color: var(--slate); }

@media (max-width: 1040px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- download ---------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dl-card--featured {
  border-color: rgba(20, 184, 209, .5);
  box-shadow: var(--shadow), var(--shadow-cyan);
}

/* In flow, not absolutely positioned — at narrow widths an overlay badge
   collides with the card title. */
.dl-badge {
  margin-left: auto;
  align-self: flex-start;
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cyan-tint);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dl-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 16px;
}
.dl-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
}
.dl-card__icon svg { width: 20px; height: 20px; }
.dl-card h3 { font-size: 19px; }
.dl-card__meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.dl-card > p { font-size: 14.6px; color: var(--slate); }

.dl-card .btn { margin-top: 22px; }

.dl-steps {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  font-size: 13.4px;
  color: var(--slate);
  counter-reset: dl;
}
.dl-steps li { position: relative; padding-left: 24px; }
.dl-steps li::before {
  counter-increment: dl;
  content: counter(dl);
  position: absolute;
  left: 0; top: 1px;
  width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.dl-card__note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.6px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.dl-card__note strong { color: var(--slate); font-weight: 600; }

.dl-foot {
  margin-top: 26px;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}

@media (max-width: 940px) { .download-grid { grid-template-columns: 1fr; } }

/* ---------- safety ------------------------------------------------------ */

.safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid #cfe4e2;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal-tint);
}
.safety__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
}
.safety__icon svg { width: 22px; height: 22px; }
.safety h2 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 14px; }
.safety p { color: #33544f; font-size: 15.6px; }
.safety p + p { margin-top: 12px; }

@media (max-width: 620px) { .safety { grid-template-columns: 1fr; } }

/* ---------- developers -------------------------------------------------- */

.devs {
  background: var(--navy);
  color: #dbe4ee;
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  align-items: center;
}
.devs h2 { color: #fff; font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 12px; }
.devs p { font-size: 15.4px; color: #9fb3c8; }
.devs__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.devs__links a {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #e8eff7;
  transition: border-color .18s ease, background-color .18s ease;
}
.devs__links a:hover { border-color: var(--cyan); background: rgba(20, 184, 209, .13); }

.code-block {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.6px;
  line-height: 1.85;
  white-space: pre;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  color: #cfe0f0;
}
.code-block .c { color: #7d93aa; }
.code-block .k { color: var(--cyan); }

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

.site-footer {
  background: var(--navy);
  color: #93a8bd;
  padding-block: clamp(44px, 5vw, 64px) 34px;
}
.site-footer .brand__word { color: #fff; }
.site-footer .brand__mark { --mark-ink: #f5f6f8; --mark-body: #132338; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-about { margin-top: 16px; font-size: 14.4px; max-width: 360px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7d95ac;
  margin-bottom: 14px;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 14.6px; transition: color .16s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13.4px;
  color: #7d95ac;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ----------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
              transform .6s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .demo-sonar path,
  .demo__chip::before,
  .demo__caret { animation: none; }
  .btn:hover, .feature:hover { transform: none; }
  .wave span { transition: none; }
  .demo__view { transition: none; }
}
