/* ============================================================
   DataPhant design system — "Monastic"
   One typeface (Inter), one accent (green), hairlines, 4px radii.
   ============================================================ */

:root {
  --ink: #08090a;
  --body: #3f4247;
  --muted: #85888e;
  --hairline: #f2f2f2;
  --border: #dddddd;
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --green: #009b77;
  --green-dark: #00795d;
  --green-bright: #00cc9c;
  --amber-text: #b45309;
  --amber-bg: #fef3c7;
  --gray-chip-text: #3f4247;
  --gray-chip-bg: #e5e7eb;
  --red-text: #b91c1c;
  --red-bg: #fee2e2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
}

.App {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 57px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.lede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--body);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn--ink {
  background: var(--ink);
  color: #ffffff;
}

.btn--paper {
  background: #ffffff;
  color: var(--ink);
}

.btn--small {
  font-size: 14px;
  padding: 8px 16px;
}

.arrow-link {
  font-size: 15px;
  font-weight: 500;
}

.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;
}

/* ---------- Navbar ---------- */

.nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav__link:hover {
  color: var(--green);
}

.nav__link--active {
  color: var(--green);
  font-weight: 600;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 820px) {
  .nav__burger {
    display: block;
  }

  .nav__links {
    display: none;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 40px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 620px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.hero__art {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art img {
  width: min(420px, 80%);
  height: auto;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: left;
  }

  .hero__copy,
  .hero__art {
    flex: none;
  }

  .hero__art img {
    width: min(300px, 70%);
  }
}

/* ---------- Results strip ---------- */

.results {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  padding-bottom: 24px;
}

.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
}

.results__head-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results__nav {
  display: flex;
  gap: 8px;
}

.results__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.results__arrow:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.results__arrow:disabled {
  color: var(--border);
  cursor: default;
}

.results__viewport {
  position: relative;
}

.results__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 24px;
  width: 96px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.results__row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.results__row::-webkit-scrollbar {
  display: none;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--paper);
}

.result-card--featured {
  background: var(--paper);
}

.result-card__publisher {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.result-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.result-card__stat {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.result-card__stat small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.result-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.result-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.result-card__link {
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* ---------- Product cards (Home) ---------- */

.product-grid {
  display: flex;
  gap: 32px;
}

.product-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
  background: var(--paper);
}

.product-card__art {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__art img {
  width: 220px;
  height: auto;
}

.product-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.product-card__title {
  min-height: 63px;
}

.product-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  min-height: 50px;
}

.product-card__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.product-card__point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}

.product-card__point .dot {
  width: 6px;
  height: 6px;
  margin-top: 7px;
}

.product-card__link {
  font-size: 15px;
  font-weight: 500;
  margin-top: auto;
}

@media (max-width: 900px) {
  .product-grid {
    flex-direction: column;
  }

  .product-card {
    padding: 32px;
  }

  .product-card__title,
  .product-card__desc {
    min-height: 0;
  }
}

/* ---------- Feature rows (product pages + services) ---------- */

.feature-rows {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

.feature-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.feature-row__icon {
  width: 60px;
  flex-shrink: 0;
}

.feature-row__icon svg {
  transform: translateY(4px);
}

.feature-row__title {
  width: 280px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 600;
}

.feature-row__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}

@media (max-width: 900px) {
  .feature-row {
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
  }

  .feature-row__title {
    width: calc(100% - 76px);
  }

  .feature-row__desc {
    width: 100%;
  }
}

/* ---------- Feature cards (Cerebro: errors / Q&A / agenda) ---------- */

.feature-cards {
  display: flex;
  gap: 32px;
  padding-bottom: 32px;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  background: var(--paper);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 16px 18px;
}

.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-card__name {
  font-size: 14px;
  font-weight: 600;
}

.mini-card__body {
  font-size: 14px;
  color: var(--body);
}

.mini-card__sub {
  font-size: 13px;
  color: var(--muted);
}

.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.chip--warning {
  color: var(--amber-text);
  background: var(--amber-bg);
}

.chip--neutral {
  color: var(--gray-chip-text);
  background: var(--gray-chip-bg);
}

.chip--due {
  color: var(--red-text);
  background: var(--red-bg);
}

.qa-bubble {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.qa-bubble--q {
  align-self: flex-end;
  background: var(--green);
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
}

.qa-bubble--a {
  align-self: flex-start;
  background: #f4f4f5;
  color: var(--ink);
  border-radius: 12px 12px 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qa-bubble__cite {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.qa-input {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .feature-cards {
    flex-direction: column;
  }
}

/* ---------- Video ---------- */

.video-section {
  padding-bottom: 40px;
}

.video-frame {
  background: #203449;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 28px;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  border-radius: 24px;
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-top: 0;
  margin-bottom: 72px;
}

.cta-band__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-band__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #ffffff;
}

.cta-band__sub {
  margin: 0;
  font-size: 17px;
  color: #b8bbc0;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.cta-band__email {
  font-size: 15px;
  font-weight: 500;
  color: var(--green-bright);
}

@media (max-width: 900px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
    margin-bottom: 64px;
  }
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  padding-bottom: 72px;
}

.contact__grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.contact__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form-wrap {
  flex: 1;
  position: relative;
  border: 1px solid rgba(0, 155, 119, 0.35);
  border-radius: 8px;
  padding: 40px;
  background: var(--paper);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 16px 36px -4px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 155, 119, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact__form-wrap:hover {
  border-color: rgba(0, 155, 119, 0.5);
  box-shadow: 
    0 6px 12px -2px rgba(0, 0, 0, 0.04),
    0 24px 48px -6px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 155, 119, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: flex;
  gap: 16px;
}

.contact-form__row > * {
  flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 155, 119, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .error-border {
  border-color: #c0392b;
}

.contact-form__error {
  font-size: 13px;
  color: #c0392b;
}

.contact-form__status {
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 4px;
}

.contact-form__status--success {
  background: #e6f5f0;
  color: #00654e;
}

.contact-form__status--error {
  background: var(--red-bg);
  color: var(--red-text);
}

@media (max-width: 900px) {
  .contact__grid {
    flex-direction: column;
    gap: 32px;
  }

  .contact__form-wrap {
    width: 100%;
    padding: 24px;
  }

  .contact-form__row {
    flex-direction: column;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper-soft);
}

.footer__grid {
  display: flex;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 380px;
  flex-shrink: 0;
}

.footer__brand img {
  height: 26px;
  width: auto;
  align-self: flex-start;
}

.footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 300px;
}

.footer__spacer {
  flex: 1;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 160px;
  flex-shrink: 0;
}

.footer__col--wide {
  width: 220px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__col a {
  font-size: 14px;
  color: var(--body);
}

.footer__col a:hover {
  color: var(--green);
}

.footer__col a.footer__email {
  color: var(--green);
}

.footer__address {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer__grid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__brand {
    width: 100%;
  }
  /* The spacer only makes sense on one row; wrapped, it steals a slot. */
  .footer__spacer {
    display: none;
  }
}


/* ============================================================
   Append to the END of src/App.css. Overrides existing rules.
   ============================================================ */

/* ---------- Ink navbar ---------- */
.nav { background: var(--ink); border-bottom: none; }
.nav__link { color: #b8bbc0; }
.nav__link:hover { color: var(--paper); }
.nav__link--active {
  color: var(--paper);
  font-weight: 600;
  border-bottom: 2px solid var(--green-bright);
  padding-bottom: 2px;
}
.nav__burger { width: 44px; height: 44px; margin-right: -10px; }
.nav__burger span { background: var(--paper); }
@media (max-width: 820px) {
  .nav__links--open {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav__links--open .nav__link { padding: 14px 0; font-size: 16px; border-bottom: none; }
  .nav__links--open .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Hero band (transparent for circuit background) ---------- */
.hero-band { background: transparent; }
.btn--paper.btn--small { padding: 8px 16px; font-size: 14px; }
.hero--text { padding-bottom: 48px; }
.hero--text .hero__copy { max-width: 820px; }

/* ---------- Services (split) ---------- */
.services { border-top: 1px solid var(--hairline); }
.services__grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 40px;
}
.services__copy {
  flex: 0 1 380px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services__copy .arrow-link { margin-top: 8px; }
.services__rows { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; }
.service-row { display: flex; gap: 32px; padding: 36px 0; }
.service-row:first-child { padding-top: 0; border-bottom: 1px solid var(--border); }
.service-row:last-child { padding-bottom: 0; }
.service-row__icon { width: 48px; flex-shrink: 0; padding-top: 6px; display: flex; }
.service-row__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.service-row__body p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }

/* ---------- Results strip ---------- */
.results__all { display: inline-block; margin-top: 8px; }

/* ---------- Results page ---------- */
.pub-rows { display: flex; flex-direction: column; }
.pub-row {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  align-items: flex-start;
  flex-wrap: wrap;
}
.pub-row:last-child { border-bottom: 1px solid var(--hairline); }
.pub-row__venue { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.pub-row__publisher { font-size: 15px; font-weight: 700; }
.pub-row__meta { font-size: 13px; color: var(--muted); }
.pub-row__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pub-row__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.pub-row__detail { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.pub-row__authors { font-size: 14px; color: var(--body); }
.pub-row__authors span { color: var(--muted); }
.pub-row__stat { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.pub-row__num { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.pub-row__note { font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .cta-band { padding: 40px 28px; }
  .product-card { padding: 28px; }
  .contact__form-wrap { padding: 28px; }
  .feature-row__title { width: 100%; }
  .pub-row__venue, .pub-row__stat { width: 100%; }
  .footer__brand { width: 100%; }
  .footer__col { width: calc(50% - 24px); }
}
@media (max-width: 480px) {
  .footer__col { width: 100%; }
}

/* ============================================================
   Technical Circuit Background & Elevation System
   ============================================================ */
.circuit-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 2;
}

.product-card,
.result-card,
.feature-card,
.contact__form-wrap,
.mini-card {
  position: relative;
  z-index: 5;
  background-color: var(--paper);
}

.hero__copy,
.hero__art,
.services__copy,
.services__rows,
.section__head,
.contact__copy {
  position: relative;
  z-index: 4;
}

/* ============================================================
   Above-the-fold proof
   The hero is kept short so "Numbers you can check" and the first
   result cards are visible on arrival without scrolling, on desktop
   laptops (768px tall) and on phones.
   ============================================================ */
.hero {
  gap: 48px;
  padding-top: 36px;
  padding-bottom: 20px;
}
.hero__copy { gap: 18px; }
.hero .h1 { font-size: clamp(30px, 3.9vw, 50px); }
.hero .lede { font-size: clamp(16px, 1.4vw, 19px); }
.hero__actions { margin-top: 2px; }

.results { padding-top: 22px; }
.results__head { padding-bottom: 18px; }
.results__head-copy { gap: 6px; }
.results__head .h2 { font-size: clamp(24px, 2.6vw, 34px); }
.result-card { padding: 22px 24px; gap: 12px; }

@media (max-width: 900px) {
  /* Phone hero: a small mascot sits beside the headline instead of
     above it, so the proof cards still make the first screen. */
  .hero { padding-top: 16px; padding-bottom: 18px; gap: 16px; }
  .hero .h1 { font-size: 30px; }
  .hero--home {
    display: grid;
    /* Headline column hugs its text; the mascot is centred in what is
       left, so it sits midway between the title and the screen edge. */
    grid-template-columns: min-content minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    row-gap: 12px;
    padding-top: 16px;
    padding-bottom: 18px;
  }
  .hero--home .hero__copy { display: contents; }
  .hero--home .eyebrow { grid-column: 1; grid-row: 1; }
  .hero--home .h1 { grid-column: 1; grid-row: 2; font-size: 25px; }
  .hero--home .lede { grid-column: 1 / -1; grid-row: 3; }
  .hero--home .hero__actions { grid-column: 1 / -1; grid-row: 4; }
  /* Mascot spans the eyebrow and headline rows, bottom-aligned so its
     ground line sits on the "Private deployment." baseline. */
  .hero--home .hero__art {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: center;
  }
  .hero--home .hero__art img { width: 116px; max-width: none; flex-shrink: 0; }
  .hero .lede { font-size: 16px; }
  .results { padding-top: 14px; }
  .results__head { padding-bottom: 12px; }
  .results__head .h2 { font-size: 24px; }
  /* Two whole cards per view on phones; snap points then land exactly
     where a swipe ends, so nothing snaps back or shows half a card. */
  .results__row { gap: 12px; scroll-snap-type: x mandatory; }
  .results__fade { display: none; }
  .result-card { width: calc((100% - 12px) / 2); padding: 16px 14px; gap: 8px; }
  .result-card__publisher { font-size: 13px; }
  .result-card__stat { font-size: 28px; }
  .result-card__stat small { display: block; font-size: 12px; margin-top: 4px; line-height: 1.2; }
  .result-card__title { font-size: 13.5px; line-height: 1.3; }
  .result-card__desc { font-size: 12.5px; line-height: 1.45; }
  .result-card__link { font-size: 13px; }
}

/* Circuit traces are drawn only in the side gutters; phones have none. */
@media (max-width: 899px) {
  .circuit-canvas { display: none; }
}

/* Phone hero sizing steps (see the 900px block above for the layout).
   The mascot never shrinks; the headline is sized fluidly to the width
   left beside it so both phrases stay on one line each. 11.4 is the
   headline's width-per-font-px for "Published track record." */
@media (min-width: 600px) and (max-width: 899px) {
  .hero--home .h1 { font-size: clamp(28px, calc((100vw - 250px) / 11.4), 34px); }
  .hero--home .hero__art img { width: 190px; }
}
@media (min-width: 400px) and (max-width: 599px) {
  .hero--home .h1 { font-size: clamp(20px, calc((100vw - 160px) / 11.4), 26px); }
  .hero--home .hero__art img { width: 100px; }
}
@media (min-width: 341px) and (max-width: 399px) {
  .hero--home .h1 { font-size: clamp(18px, calc((100vw - 148px) / 11.4), 22px); }
  .hero--home .hero__art img { width: 88px; }
}
@media (max-width: 340px) {
  /* 320px phones: the headline takes three lines; keep it readable. */
  .hero--home .h1 { font-size: 20px; }
  .hero--home .hero__art img { width: 88px; }
}

/* ---------- Nav: Products dropdown ---------- */
.nav__item { position: relative; }
.nav__item-row { display: flex; align-items: center; gap: 6px; }
.nav__caret {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  color: #b8bbc0;
}
.nav__caret::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.nav__item--open .nav__caret::after { transform: rotate(225deg); top: 6px; }
.nav__item:hover .nav__caret, .nav__item--open .nav__caret { color: var(--paper); }
.nav__submenu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 260px;
  padding: 8px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 50;
}
/* Invisible bridge so the pointer can travel from the link to the menu. */
.nav__submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--open .nav__submenu { display: block; }
.nav__sublink {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--paper);
  text-decoration: none;
}
.nav__sublink:hover, .nav__sublink.active { background: rgba(255, 255, 255, 0.08); color: var(--paper); }
.nav__sublink-label { font-size: 14px; font-weight: 600; }
.nav__sublink-hint { font-size: 12px; color: #b8bbc0; }
.nav__sublink.active .nav__sublink-label { color: var(--green-bright); }

@media (max-width: 820px) {
  .nav__links--open .nav__item { display: flex; flex-direction: column; }
  .nav__links--open .nav__item-row { justify-content: space-between; }
  .nav__links--open .nav__caret { width: 44px; height: 44px; margin-right: -12px; }
  .nav__links--open .nav__caret::after { left: 18px; top: 16px; width: 8px; height: 8px; }
  .nav__links--open .nav__item--open .nav__caret::after { top: 20px; }
  .nav__links--open .nav__submenu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    margin-left: 4px;
  }
  .nav__links--open .nav__submenu::before { display: none; }
}

/* Visually hidden, still read by screen readers and crawlers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Results strip: swipe + arrow placement ---------- */
.results__row {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.results__row--dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.results__row--animating { scroll-snap-type: none !important; }
.results__nav--bottom { display: none; }
@media (max-width: 900px) {
  .results__nav--top { display: none; }
  .results__nav--bottom {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 4px 0 12px;
  }
}

/* Product cards: tighter above the mascot (heading -> card -> image). */
.section .product-grid { margin-top: -16px; }
.product-card { padding-top: 28px; }
.product-card__art { height: 150px; align-items: flex-end; }

/* ---------- FAQ (native <details>, Monastic hairlines) ---------- */
.faq .section__head { margin-bottom: 8px; }
.faq__list { max-width: 820px; }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--green-dark); }
.faq__chevron {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__chevron { transform: translateY(3px) rotate(225deg); }
.faq__a { padding: 0 0 22px; max-width: 720px; }
.faq__a p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}
.faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .faq__q { font-size: 16px; padding: 16px 0; }
  .faq__a p { font-size: 16px; }
}

/* ---------- Nav: language switcher ---------- */
.nav__lang { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav__lang-link {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8a8d92;
  border-radius: 3px;
}
.nav__lang-link:hover { color: var(--paper); }
.nav__lang-link--active { color: var(--paper); background: rgba(255, 255, 255, 0.1); }
@media (max-width: 820px) {
  .nav__links--open .nav__lang { margin: 6px 0 4px; gap: 8px; }
  .nav__links--open .nav__lang-link { font-size: 14px; padding: 6px 10px; }
}

/* ---------- Results strip: whole cards on desktop, counter ---------- */
.results__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 901px) {
  /* Exactly three cards per view, so nothing is cut in half. */
  .result-card { width: calc((100% - 40px) / 3); }
  .results__row { scroll-snap-type: x mandatory; }
  .results__fade { display: none; }
}

/* ---------- 404 page ---------- */
.notfound-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(70vh + 1vh);
    text-align: center;
    background-color: #f9f9f9;
    padding: calc(2rem + 1vw);
}

.notfound-image {
    max-width: calc(12rem + 15vw);
    height: auto;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease;
}

.notfound-text {
    font-size: calc(1.5rem + 1vw);
    font-weight: 500;
    color: #333;
    animation: fadeIn 0.9s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elements toggled by js/site.js */
[hidden] { display: none !important; }
