/* ============================================================
   RapidBio Systems — site styles
   Palette sampled from brand logo: green #22A931 · gold #FECC03
   Font: self-hosted Inter (variable)
   ============================================================ */

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

:root {
  /* brand */
  --green:      #22A931;
  --green-600:  #1c8f2a;
  --green-700:  #167026;
  --green-900:  #0e4a1b;
  --gold:       #FECC03;
  --gold-600:   #e2b400;

  /* neutrals */
  --ink:        #14181a;
  --body:       #33403a;
  --muted:      #5f6f66;
  --charcoal:   #21262a;
  --charcoal-2: #2b3136;
  --paper:      #ffffff;
  --paper-2:    #f6faf6;
  --mint:       #eaf4ea;
  --mint-2:     #def0e0;
  --line:       #e4eae4;

  /* system */
  --container: 1160px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20,40,25,.06), 0 2px 8px rgba(20,40,25,.05);
  --shadow:    0 12px 34px rgba(20,50,28,.10);
  --shadow-lg: 0 26px 60px rgba(16,55,26,.16);
  --ease: cubic-bezier(.2,.7,.3,1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 650; }
/* Em dashes in headings: display sizes and tight tracking make a full-width
   dash read much heavier than the same dash in body copy. Scale heading
   dashes back so every em dash on the site looks the same weight. */
.mdash { font-size: .62em; vertical-align: .12em; margin-inline: .04em; letter-spacing: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--tight { padding: clamp(24px, 3vw, 36px) 0; }
.section--tight-bottom { padding-bottom: clamp(24px, 3vw, 36px); }
.section--tight-top { padding-top: clamp(24px, 3vw, 36px); }
.section--mint { background: linear-gradient(180deg, #f2f9f2, var(--mint)); }
.section--dark { background: var(--charcoal); color: #d7ded9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.16rem; color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(34,169,49,.28); }
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: 0 12px 26px rgba(34,169,49,.34); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-700); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--gold); color: var(--ink); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: 9px 15px; border-radius: var(--r-sm);
  color: var(--body); font-weight: 550; font-size: .98rem; transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--mint); color: var(--green-700); }
.nav__links a.is-active { color: var(--green-700); }
.nav__links > li:last-child { display: none; } /* in-menu CTA: hidden on desktop, shown in mobile menu */
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 20px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 82% 8%, #f2f9f2 0%, #ffffff 58%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 76px); }
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 1.22rem; color: var(--muted); max-width: 40ch; margin-bottom: 30px; }
.hero__tagline {
  color: var(--ink); line-height: 1.12; letter-spacing: -.035em; font-weight: 750;
  font-size: clamp(1.9rem, 4.1vw, 3.2rem); margin: 0 0 26px; white-space: nowrap;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.hero__trust b { color: var(--green-700); white-space: nowrap; }
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: 4% 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,169,49,.14), rgba(34,169,49,0) 68%);
  z-index: 0;
}
.hero__media img { position: relative; z-index: 1; margin-inline: auto; max-height: 560px; width: auto; filter: drop-shadow(0 30px 40px rgba(16,45,20,.18)); }

/* dot flourish */
.flourish { position: absolute; z-index: 0; opacity: .5; pointer-events: none; }

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.stat--gold::before { background: var(--gold); }
.stat__num { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; color: var(--green-700); line-height: 1; margin-bottom: 6px; }
.stat--gold .stat__num { color: var(--ink); }
.stat__label { font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.stat__desc { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: var(--pill);
  background: #fff; border: 1.5px solid var(--mint-2); font-size: .95rem; color: var(--body); box-shadow: var(--shadow-sm);
}
.chip b { color: var(--green-700); font-weight: 750; font-size: 1.05rem; letter-spacing: -.02em; }
.chip--gold { border-color: #f6e3a0; }
.chip--gold b { color: var(--gold-600); }

/* ---------- split / feature layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }
.split__media--panel {
  background: linear-gradient(160deg, #f3f9f3, var(--mint)); border-radius: var(--r-lg);
  padding: 34px; border: 1px solid var(--mint-2); box-shadow: var(--shadow);
}
.split__media img { margin-inline: auto; }

/* full-width technology diagram — bleeds past the text container so the
   diagram itself can render larger than a normal content-width figure */
.diagram-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.6vw, 32px); box-shadow: var(--shadow); overflow-x: auto; max-width: 839px; margin-inline: auto; }
.diagram-panel img { display: block; width: 100%; min-width: 320px; max-width: 775px; margin-inline: auto; }
.diagram-hint { display: none; text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.claims { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.claims li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.claims .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--green-700); display: grid; place-items: center; flex: none; margin-top: 2px; }
.claims b { display: block; color: var(--ink); font-size: 1.04rem; }
.claims span.d { color: var(--muted); font-size: .96rem; }

/* ---------- feature card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section--dark .card { background: var(--charcoal-2); border-color: #363d42; color: #c8d0cb; }
.icon-badge {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--green-700); margin-bottom: 18px;
}
.section--dark .icon-badge { background: rgba(34,169,49,.16); color: #7fe08b; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .97rem; color: var(--muted); }
.section--dark .card p { color: #aab4ae; }

/* ---------- steps / workflow ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px; box-shadow: var(--shadow-sm); text-align: center; }
.step__n { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 750; display: grid; place-items: center; font-size: 1.05rem; }
.step:nth-child(5) .step__n { background: var(--green-700); }
.step h4 { font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 16px; height: 16px;
  border-top: 2px solid var(--mint-2); border-right: 2px solid var(--mint-2);
  transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.ttr-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 22px;
  background: var(--gold); color: var(--ink); font-weight: 700; border-radius: var(--pill); font-size: 1rem;
}

/* ---------- product spec bar ---------- */
.spec-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 56px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.spec-bar__item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 26px 30px; }
.spec-bar__item + .spec-bar__item { border-left: 1px solid var(--line); }
.spec-bar__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--green-700); display: grid; place-items: center; }
.spec-bar b { display: block; color: var(--ink); font-size: 1.2rem; line-height: 1.3; }
.spec-bar .d { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* ---------- use-case photo cards ---------- */
.usecases__head { text-align: center; font-size: 1.32rem; margin: 0 0 26px; }
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usecase {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
.usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.usecase img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.usecase figcaption { padding: 22px 24px 26px; }
.usecase h3 { font-size: 1.08rem; margin-bottom: 6px; }
.usecase p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- photo panel (product / cartridge detail) ---------- */
.photo-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.photo-panel img { width: 100%; border-radius: var(--r-sm); }
.photo-panel--center img { max-width: 775px; margin-inline: auto; }
.photo-panel--center { max-width: 803px; margin: 36px auto 0; }
.panel-label { text-align: center; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 40px 0 14px; }

/* ---------- comparison ---------- */
.compare { display: grid; gap: 12px; margin-top: 8px; }
.compare__row { display: grid; grid-template-columns: 58px 150px 1fr; gap: 16px; align-items: center; }
.compare__thumb {
  width: 58px; height: 58px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; overflow: hidden;
}
.compare__thumb img { width: 100%; height: 100%; object-fit: contain; }
.compare__row--us .compare__thumb { border-color: var(--mint-2); background: var(--mint); }
.compare__thumb--icon { background: var(--mint); border-color: var(--mint-2); color: var(--green-700); display: grid; place-items: center; }
.compare__label { font-weight: 650; color: var(--ink); font-size: .98rem; }
.compare__label small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.compare__track { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--pill); height: 40px; display: flex; align-items: center; overflow: hidden; }
.compare__bar { height: 100%; border-radius: var(--pill); flex: none; }
.compare__bar--us { background: linear-gradient(90deg, var(--green), var(--green-600)); box-shadow: 0 2px 8px rgba(34,169,49,.3); }
.compare__bar--slow { background: #b9c4bc; }
.compare__bar--slower { background: #cdd5cd; }
.compare__bar--seg-start { border-radius: var(--pill) 0 0 var(--pill); }
.compare__bar--seg-end { border-radius: 0 var(--pill) var(--pill) 0; }
.compare__bar--range {
  background-color: #dde4de;
  background-image: repeating-linear-gradient(45deg, #b9c4bc 0, #b9c4bc 5px, transparent 5px, transparent 10px);
}
.compare__cap { padding: 0 12px; font-size: .85rem; font-weight: 700; white-space: nowrap; color: var(--green-700); }
.compare__axis { margin: 14px 0 0; text-align: right; font-size: .8rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.compare__note { margin-top: 22px; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--paper-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.compare__note b { color: var(--green-700); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.member { text-align: center; }
.member__photo {
  width: 168px; height: 168px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(160deg, #f2f9f2, var(--mint));
  border: 1px solid var(--mint-2); box-shadow: var(--shadow-sm); overflow: hidden;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 0 0 2px; }
.member .role { color: var(--green-700); font-weight: 650; font-size: .92rem; letter-spacing: .01em; margin-bottom: 8px; }
.member p { font-size: .95rem; color: var(--muted); margin: 0 auto; max-width: 30ch; }
.advisory { margin-top: 44px; padding: 28px 30px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.advisory h3 { font-size: 1.05rem; margin-bottom: 10px; }
.advisory p { margin: 0; color: var(--muted); }
.advisory p b { color: var(--green-700); font-weight: 700; }

/* ---------- full bios ---------- */
.bio-entry { padding: 44px 0; border-bottom: 1px solid var(--line); }
.bio-entry:last-child { border-bottom: none; }
.bio-entry__head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.bio-entry__head .member__photo { margin: 0; flex: none; }
.bio-entry__body p { color: var(--body); }
.bio-entry__body ul { margin: 0 0 1rem; padding-left: 1.2em; color: var(--body); }
.bio-entry__body li { margin-bottom: 6px; }

/* ---------- partners / logos ---------- */
.partners { margin-top: 8px; }
.partners__label { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.partners__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: center; justify-items: center;
  gap: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 40px);
}
.partners__row img { height: 34px; width: auto; }
.partners__row img.logo-compact { height: 80px; }
.partners__row img.logo-empirewest { height: 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green)); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn--onDark { box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ---------- form ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper-2);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(34,169,49,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--r-sm); font-weight: 600; margin-bottom: 20px; }
.form-status.show { display: block; }
.form-status.ok { background: var(--mint); color: var(--green-900); border: 1px solid var(--mint-2); }
.form-status.err { background: #fdecec; color: #9a2b2b; border: 1px solid #f6cccc; }

.contact-aside h3 { margin-bottom: 6px; }
.contact-aside .lead { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .icon-badge { margin: 0; width: 44px; height: 44px; }
.contact-list b { display: block; color: var(--ink); font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--muted); font-size: .96rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: #9aa5a0; padding: 60px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #363d42; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 40px; width: auto; }
.footer__wordmark { color: #fff; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.1; }
.footer__wordmark span { display: block; font-weight: 500; font-size: .8rem; color: var(--gold); letter-spacing: .02em; }
.footer__tag { max-width: 34ch; font-size: .95rem; color: #9aa5a0; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b7c0bb; font-size: .96rem; }
.site-footer a:hover { color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .86rem; color: #7f8a85; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 26px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 320px; }
  .nav__brand img { height: 38px; }
  .diagram-hint { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: -1; }
  .stats { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .usecases { grid-template-columns: 1fr 1fr; }
  .spec-bar { grid-template-columns: 1fr; }
  .spec-bar__item + .spec-bar__item { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  /* mobile nav */
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 20px;
    box-shadow: var(--shadow); transform-origin: top;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links > li:last-child { display: block; }
  .nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav__links .btn { display: flex; width: 100%; margin-top: 8px; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 44px 104px 1fr; gap: 10px; }
  .compare__thumb { width: 44px; height: 44px; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .partners__row { grid-template-columns: repeat(2, 1fr); }
}

/* very narrow phones: keep the long CTA label inside the viewport */
@media (max-width: 360px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 15px 20px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
