/* ==========================================================================
   Certisto — Physical AI Certification Platform
   Design system: flat, enterprise, certification-lab.
   Rules: solid colors only. No shadows, gradients, glassmorphism, blur, glow.
   ========================================================================== */

/* ---------- Fonts (Inter + IBM Plex Mono) ---------- */
@font-face { font-family: "Inter"; font-display: swap; src: local("Inter"); }

/* ---------- Design tokens ---------- */
:root {
  /* Color — solid, WCAG AA. Layered neutrals for engineered depth. */
  --ink:        #0a0e0d;   /* primary text / dark surfaces (deepened) */
  --ink-2:      #141a18;   /* dark surface alt */
  --ink-3:      #1e2523;   /* dark surface hairline / raised */
  --paper:      #ffffff;
  --paper-2:    #fbfcfb;   /* faint raised light surface */
  --subtle:     #f4f6f5;   /* light section fill */
  --subtle-2:   #eaeeec;
  --border:     #e2e6e3;
  --border-2:   #d1d7d4;
  --border-3:   #bcc4c0;   /* stronger hairline on hover */
  --muted:      #4f5751;   /* secondary text (AA on paper, deepened) */
  --muted-2:    #767e79;

  /* Primary — certified green */
  --accent:     #0e7a53;
  --accent-ink: #0a5c3e;   /* accent hover / text-on-light */
  --accent-hi:  #13a06d;   /* brighter tick / active */
  --accent-soft:#e6f2ec;   /* accent tint fill */
  --accent-line:#bfe0d1;   /* accent hairline */

  /* Secondary — measurement blue (used sparingly for data / signals) */
  --signal:     #2563a8;
  --signal-ink: #1c4e86;
  --signal-soft:#e8eef7;

  /* Status (used sparingly for cert states) */
  --pass:       #0e7a53;
  --pass-soft:  #e6f2ec;
  --warn:       #8a6d00;
  --warn-soft:  #f6f0dd;
  --fail:       #98332b;
  --fail-soft:  #f6e6e4;

  --on-dark:      #f4f6f5;
  --on-dark-muted:#a4ada8;
  --border-dark:  #29302d;
  --border-dark-2:#39423e;
  --accent-on-dark:#6fd6a8;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Background patterns — flat, solid-color (no gradients/shadows) */
  --pat-dots:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1' cy='1' r='1' fill='%230a0e0d' fill-opacity='0.05'/%3E%3C/svg%3E");
  --pat-grid:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%230a0e0d' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
  --pat-grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  --pat-dots-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");

  /* Spacing — 8px scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  /* Extended rhythm steps (40 / 56 / 80 / 120 / 160) for larger section breathing room */
  --s-40: 40px; --s-56: 56px; --s-80: 80px; --s-120: 120px; --s-160: 160px;

  /* Fluid section rhythm — more generous whitespace on wide screens, graceful on mobile */
  --section-y: clamp(4rem, 7.5vw, 7rem);      /* ~64px → ~112px */
  --section-y-tight: clamp(3rem, 5.5vw, 5rem); /* ~48px → ~80px */

  /* ---- Semantic color system (aliases over the base palette; no visual change) ---- */
  --primary:        var(--accent);       /* certified green */
  --primary-hover:  var(--accent-ink);
  --primary-active: var(--accent-hi);
  --primary-soft:   var(--accent-soft);
  --secondary:      var(--signal);       /* measurement blue */
  --secondary-soft: var(--signal-soft);
  --success:        var(--pass);
  --success-soft:   var(--pass-soft);
  --warning:        var(--warn);
  --warning-soft:   var(--warn-soft);
  --danger:         var(--fail);
  --danger-soft:    var(--fail-soft);
  --info:           var(--signal);
  --info-soft:      var(--signal-soft);
  --background:     var(--paper);
  --surface:        var(--paper-2);
  --surface-subtle: var(--subtle);
  --text-primary:   var(--ink);
  --text-secondary: var(--muted);
  --text-tertiary:  var(--muted-2);
  --divider:        var(--border);

  /* Optimal reading measure (≈60–75 characters) */
  --measure: 68ch;

  --container: 1200px;
  --container-wide: 1360px;
  --radius: 4px;
  --radius-lg: 8px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1, "calt" 1;
  font-variant-ligatures: contextual;
  letter-spacing: -0.006em;
}
img, svg { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--subtle { background: var(--subtle); }
.section--border-top { border-top: 1px solid var(--border); }
.section--dark .section-title { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--dark .lead, .section--dark .section-intro { color: var(--on-dark-muted); }

/* ---------- Background patterns (flat, solid-color only) ---------- */
.hero, .page-hero { background-image: var(--pat-dots); background-position: 0 0; }
.section--subtle { background-color: var(--subtle); background-image: var(--pat-dots); }
.section--dark { background-image: var(--pat-grid-dark); background-position: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 640; line-height: 1.12; letter-spacing: -0.022em; color: inherit; text-wrap: balance; }
.h-display { font-size: clamp(2.6rem, 5.2vw, 4.25rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1.02; }
.h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.028em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.h4 { font-size: 1.05rem; font-weight: 620; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; letter-spacing: -0.01em; text-wrap: pretty; max-width: var(--measure); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow--plain::before { display: none; }

/* Section header block */
.section-header { max-width: 720px; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-title { margin-top: var(--s-4); }
.section-intro { margin-top: var(--s-4); font-size: 1.075rem; color: var(--muted); max-width: var(--measure); }
.section-header--center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 560; font-size: .95rem; letter-spacing: -0.01em;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn--on-dark:hover { background: var(--subtle); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--border-dark); }
.btn--ghost-dark:hover { border-color: var(--on-dark); }
.btn--sm { padding: 9px 14px; font-size: .875rem; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--link { padding: 0; border: 0; background: none; color: var(--accent-ink); font-weight: 560; }
.btn--link:hover { color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--on-dark:focus-visible, .btn--ghost-dark:focus-visible, .btn--dark:focus-visible { outline-color: var(--accent-on-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 560; font-size: .95rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .15s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--border-2); border-radius: 100px; color: var(--muted);
}
.badge--accent { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.badge--pass { color: var(--pass); border-color: var(--pass); background: var(--pass-soft); }
.badge--warn { color: var(--warn); border-color: #d8c68a; background: var(--warn-soft); }
.badge--fail { color: var(--fail); border-color: #d8a8a2; background: var(--fail-soft); }
.badge--dark { color: var(--on-dark-muted); border-color: var(--border-dark); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper);
  padding: var(--s-6); transition: border-color .15s ease;
}
.card--hover:hover { border-color: var(--ink); background: var(--paper-2); }
.card--subtle { background: var(--subtle); }
.card--flush { padding: 0; overflow: hidden; }
.card--dark { background: var(--ink-2); border-color: var(--border-dark); color: var(--on-dark); }
.card__icon {
  width: 42px; height: 42px; border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent-ink); margin-bottom: var(--s-4);
}
.card__icon svg { width: 20px; height: 20px; }
.card__title { margin-bottom: var(--s-2); }
.card__text { color: var(--muted); font-size: .96rem; }
.card__body { padding: var(--s-5); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--gap-lg { gap: var(--s-6); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cluster--gap-lg { gap: var(--s-5); }

/* ---------- Stats ---------- */
.stat__value { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 660; letter-spacing: -0.03em; line-height: 1; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: var(--s-3); color: var(--muted); font-size: .92rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-row .stat { padding: var(--s-2) var(--s-5); border-left: 1px solid var(--border); }
.stat-row .stat:first-child { border-left: 0; padding-left: 0; }
.section--dark .stat-row .stat { border-color: var(--border-dark); }

/* ---------- Eyebrow row / meta ---------- */
.meta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 15px; height: 15px; color: var(--accent-ink); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); background-image: var(--pat-dots-dark); color: var(--on-dark); font-size: .85rem;
  border-bottom: 1px solid var(--border-dark);
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 9px; text-align: center; }
.announce .badge--accent { background: transparent; color: #6fd6a8; border-color: #2f6b52; }
.announce a { color: #fff; font-weight: 560; display: inline-flex; align-items: center; gap: 5px; }
.announce a:hover { color: #9fe6c3; }
.announce svg { width: 15px; height: 15px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-6); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; font-size: 1.12rem; }
.brand__mark { width: 26px; height: 26px; }
.nav__menu { display: flex; align-items: center; gap: 2px; margin-left: var(--s-2); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: var(--radius);
  font-size: .93rem; font-weight: 520; color: var(--ink); transition: background .12s ease, color .12s ease;
}
.nav__link:hover { background: var(--subtle); }
.nav__link[aria-current="page"] { color: var(--accent-ink); }
.nav__link svg { width: 13px; height: 13px; color: var(--muted-2); transition: transform .15s ease; }
.nav__item--has-menu:hover .nav__link svg,
.nav__item--open .nav__link svg { transform: rotate(180deg); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 560px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.nav__item--has-menu:hover .mega,
.nav__item--open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega--right { left: auto; right: 0; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-6); }
.mega__col-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 0 10px; margin-bottom: var(--s-2); }
.mega__link { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); transition: background .12s ease; }
.mega__link:hover { background: var(--subtle); }
.mega__link-ico { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; color: var(--accent-ink); flex-shrink: 0; transition: background .12s ease, border-color .12s ease; }
.mega__link:hover .mega__link-ico { background: var(--accent-soft); border-color: var(--accent-line); }
.mega__link-ico svg { width: 16px; height: 16px; }
.mega__link-title { font-weight: 560; font-size: .92rem; }
.mega__link-desc { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.mega__foot { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* Mobile nav */
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: var(--radius); background: none; align-items: center; justify-content: center; }
.nav__toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); background-image: var(--pat-grid-dark); background-position: center top; color: var(--on-dark-muted); border-top: 1px solid var(--border-dark); padding-block: var(--s-9) var(--s-6); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid var(--border-dark); }
.footer .brand { color: #fff; }
.footer__blurb { margin-top: var(--s-4); max-width: 300px; font-size: .9rem; color: var(--on-dark-muted); }
.footer__col-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--s-4); }
.footer__links li + li { margin-top: 10px; }
.footer__links a { color: #cdd4d0; font-size: .9rem; transition: color .12s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); font-size: .84rem; }
.footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer__social { display: flex; gap: var(--s-2); }
.footer__social a { width: 34px; height: 34px; border: 1px solid var(--border-dark); border-radius: var(--radius); display: grid; place-items: center; color: #cdd4d0; }
.footer__social a:hover { border-color: var(--on-dark); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: var(--s-9) var(--s-8); border-bottom: 1px solid var(--border); }
.page-hero__inner { max-width: 780px; }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero__actions { margin-top: var(--s-6); }
.breadcrumb { display: flex; gap: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); margin-bottom: var(--s-5); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb span { color: var(--border-2); }

/* ---------- Home hero ---------- */
.hero { padding-block: var(--s-9) var(--s-8); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.hero h1 { margin-top: var(--s-5); }
.hero .lead { margin-top: var(--s-5); max-width: 540px; }
.hero__actions { margin-top: var(--s-6); }
.hero__note { margin-top: var(--s-5); font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* Certificate visual (flat, border-based) */
.cert {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.cert__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--s-5); border-bottom: 1px solid var(--border); background: var(--subtle); }
.cert__bar-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; color: var(--muted); }
.cert__body { padding: var(--s-6); }
.cert__score { display: flex; align-items: baseline; gap: 10px; }
.cert__score-num { font-family: var(--font-mono); font-size: 3.2rem; font-weight: 640; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cert__score-max { font-family: var(--font-mono); color: var(--muted-2); font-size: 1.1rem; }
.cert__meter { height: 8px; background: var(--subtle-2); border-radius: 100px; margin-top: var(--s-5); overflow: hidden; }
.cert__meter-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.cert__rows { margin-top: var(--s-5); }
.cert__row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.cert__row-label { color: var(--muted); font-family: var(--font-mono); font-size: .82rem; }
.cert__foot { padding: 14px var(--s-5); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); }

/* ---------- Logo row ---------- */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-7); }
.logo-row__item { font-weight: 640; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.logo-row__item svg { width: 22px; height: 22px; color: var(--muted-2); }
.logo-strip-label { text-align: center; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--s-6); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num { counter-increment: step; font-family: var(--font-mono); font-size: .9rem; color: var(--accent-ink); border: 1px solid var(--border-2); border-radius: var(--radius); width: 40px; height: 40px; display: grid; place-items: center; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title { font-weight: 600; margin-bottom: 6px; }
.step__text { color: var(--muted); font-size: .95rem; }

/* ---------- Feature list (checks) ---------- */
.check-list li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.check-list li + li { border-top: 1px solid var(--border); }
.check-list .ico { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.check-list .ico svg { width: 16px; height: 16px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; background: none; border: 0; text-align: left; font-weight: 560; font-size: 1.05rem; color: var(--ink);
}
.accordion__trigger:hover { color: var(--accent-ink); }
.accordion__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--muted); transition: transform .2s ease, opacity .2s ease; }
.accordion__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.accordion__icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.accordion__item[aria-expanded="true"] .accordion__icon::after { transform: rotate(90deg); opacity: 0; }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height .24s ease; }
.accordion__panel-inner { padding-bottom: var(--s-5); color: var(--muted); max-width: 760px; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .data-table { min-width: 520px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: 14px var(--s-5); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--subtle); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table .row-head { font-weight: 560; color: var(--ink); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-card { padding: var(--s-6); border-left: 1px solid var(--border); }
.price-card:first-child { border-left: 0; }
.price-card--featured { background: var(--ink); color: var(--on-dark); }
.price-card--featured .price__desc, .price-card--featured .price__period { color: var(--on-dark-muted); }
.price-card--featured .check-list li { border-color: var(--border-dark); }
.price__name { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card--featured .price__name { color: #6fd6a8; }
.price__amount { font-size: 2.75rem; font-weight: 660; letter-spacing: -0.03em; margin-top: var(--s-3); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.price__period { font-size: .9rem; color: var(--muted); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }
.price__desc { color: var(--muted); font-size: .92rem; margin-top: var(--s-2); min-height: 40px; }
.price__cta { margin-block: var(--s-5); }
.price-card--featured .check-list .ico { color: #6fd6a8; }

/* ---------- CTA section ---------- */
.cta { background: var(--ink); background-image: var(--pat-grid-dark); background-position: center; color: var(--on-dark); border-radius: var(--radius-lg); padding: var(--s-9) var(--s-7); text-align: center; }
.cta h2 { color: #fff; max-width: 640px; margin-inline: auto; }
.cta .lead { color: var(--on-dark-muted); margin-top: var(--s-4); max-width: 560px; margin-inline: auto; }
.cta__actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Callout / quote ---------- */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s-6); background: var(--subtle); }
.quote { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 520; letter-spacing: -0.02em; line-height: 1.35; }
.quote__author { margin-top: var(--s-5); display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--subtle-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--muted); }
.quote__name { font-weight: 560; font-size: .95rem; }
.quote__role { color: var(--muted); font-size: .85rem; }

/* ---------- Article / blog cards ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease; }
.post-card:hover { border-color: var(--ink); }
.post-card__top { padding: var(--s-5); border-bottom: 1px solid var(--border); background: var(--subtle); display: flex; align-items: center; justify-content: space-between; }
.post-card__cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.post-card__date { font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); }
.post-card__body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.post-card__title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-3); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card__foot { margin-top: var(--s-4); font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- Tabs (CSS radio) ---------- */
.tabs { }
.tabs__list { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; width: fit-content; }
.tabs__btn { padding: 8px 16px; border-radius: var(--radius); font-size: .9rem; font-weight: 520; color: var(--muted); border: 0; background: none; }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__panel { display: none; margin-top: var(--s-6); }
.tabs__panel.is-active { display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 540; }
.field .req { color: var(--fail); }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--paper); font: inherit; color: var(--ink); transition: border-color .12s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px;
}
.textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: .8rem; color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.checkbox input { margin-top: 4px; }

/* ---------- Misc utilities ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-mono); font-size: .76rem; padding: 4px 10px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); }
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.badge svg { width: 13px; height: 13px; }
.divide-top { border-top: 1px solid var(--border); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
.center-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.dl-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.dl-row dt { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.dl-row dd { color: var(--ink); }

/* Icon tile list */
.icon-list { display: grid; gap: var(--s-2); }
.icon-list__item { display: flex; gap: 14px; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); align-items: flex-start; transition: border-color .15s ease; }
.icon-list__item:hover { border-color: var(--ink); }
.icon-list__ico { width: 38px; height: 38px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); display: grid; place-items: center; color: var(--accent-ink); flex-shrink: 0; }
.icon-list__ico svg { width: 18px; height: 18px; }

/* Timeline */
.timeline { border-left: 1px solid var(--border); padding-left: var(--s-6); }
.timeline__item { position: relative; padding-bottom: var(--s-7); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: calc(var(--s-6) * -1 - 4px); top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline__date { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-ink); }
.timeline__title { font-weight: 600; margin: 4px 0 6px; }
.timeline__text { color: var(--muted); font-size: .94rem; }

/* Metric bar (comparison) */
.bar-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: var(--s-4); align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.bar-row__label { font-size: .9rem; }
.bar-track { height: 8px; background: var(--subtle-2); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.bar-fill--muted { background: var(--muted-2); }
.bar-row__val { font-family: var(--font-mono); font-size: .85rem; text-align: right; color: var(--muted); }

/* Two-col prose */
.prose { max-width: 720px; }
.prose p { color: var(--muted); margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { margin-top: var(--s-4); display: grid; gap: 8px; }
.prose ul li { display: flex; gap: 10px; color: var(--muted); }
.prose ul li::before { content: "—"; color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { border-left: 0; border-top: 1px solid var(--border); }
  .price-card:first-child { border-top: 0; }
}
@media (max-width: 900px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { margin-left: auto; }
  .mobile-nav.is-open { display: block; position: fixed; inset: var(--nav-h) 0 0; background: var(--paper); z-index: 99; overflow-y: auto; padding: var(--s-5); border-top: 1px solid var(--border); }
  .mobile-nav__group { border-bottom: 1px solid var(--border); }
  .mobile-nav__group > a, .mobile-nav__acc-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: var(--s-4) 0; font-size: 1.05rem; font-weight: 540; background: none; border: 0; text-align: left; color: var(--ink); }
  .mobile-nav__sub { padding: 0 0 var(--s-4) var(--s-4); display: none; }
  .mobile-nav__group.is-open .mobile-nav__sub { display: block; }
  .mobile-nav__sub a { display: block; padding: 8px 0; color: var(--muted); font-size: .95rem; }
  .mobile-nav__actions { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
  .mobile-nav__acc-trigger svg { width: 16px; transition: transform .2s; }
  .mobile-nav__group.is-open .mobile-nav__acc-trigger svg { transform: rotate(180deg); }
}
@media (max-width: 720px) {
  .section { padding-block: var(--s-8); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: var(--s-5) 0; }
  .stat-row .stat { border-left: 0; padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-row { grid-template-columns: 110px 1fr 48px; }
  .cta { padding: var(--s-8) var(--s-5); }
  .h-display { font-size: 2.25rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--s-4); }
  .footer__top { grid-template-columns: 1fr; }
  .logo-row { gap: var(--s-5); }
}
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}
