/* ==========================================================================
   Nexcorio Algorithms LLP - site stylesheet
   Hand-authored, no build step, no external requests. Dark-first.
   Sections: 1 tokens  2 base  3 layout  4 components  5 sections  6 pages
             7 responsive  8 motion/print
   ========================================================================== */

/* 1 -------------------------------------------------------------- tokens */
:root {
  --ink-950: #ffffff;
  --ink-900: #ffffff;
  --ink-850: #ffffff;
  --ink-800: #f7f7f7;
  --ink-750: #f2f2f2;
  --ink-700: #f2f2f2;
  --ink-600: #ebebeb;

  /* Monochrome theme. Notes for whoever edits this next:
     - the --ink-* scale is a *paper* scale here (name kept for compatibility with the components that use it);
       --text* holds ink. A rename to --surface-* would be a tidy follow-up.
     - there is no hue anywhere in the theme: the accent IS ink, and every grey is deliberate. */
  --line: rgba(17,17,17,0.14);
  --line-strong: rgba(17,17,17,0.28);

  --text: #111111;
  --text-muted: #3f3f3f;
  --text-dim: #5f5f5f;

  --mint: #111111;
  --sky: #2f2f2f;
  --violet: #3f3f3f;
  --amber: #4f4f4f;
  --rose: #5f5f5f;
  --lime: #666666;

  /* Flat ink rather than gradients; the names survive so every component keeps working. */
  --grad: #111111;
  --grad-soft: rgba(17,17,17,0.04);
  --grad-line: rgba(17,17,17,0.22);

  --panel: #ffffff;
  --panel-solid: #f7f7f7;
  --panel-hover: #f7f7f7;

  /* Institutional rectangles rather than rounded cards. */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-pill: 3px;

  /* Barely-there shadows: this is paper, not a glass panel. */
  --shadow-sm: 0 1px 2px rgba(17,17,17,0.06);
  --shadow: 0 10px 24px rgba(17,17,17,0.07);
  --shadow-glow: 0 0 0 1px rgba(17,17,17,0.16);

  --maxw: 1200px;
  --maxw-narrow: 860px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(2.75rem, 6vw, 5rem);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Flat paper: no washes and no glow. Hierarchy comes from rules and type, not colour. */
  background-color: var(--ink-850);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #111111;
}

h1,
.h1 {
  font-size: clamp(1.95rem, 4.4vw, 3rem);
  letter-spacing: -0.022em;
}

h2,
.h2 {
  font-size: clamp(1.45rem, 2.9vw, 2.1rem);
  letter-spacing: -0.018em;
}

h3,
.h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4,
.h4 {
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sky);
  text-decoration-color: rgba(17,17,17,0.35);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: #3a3a3a;
  text-decoration-color: currentColor;
}

strong,
b {
  color: #111111;
  font-weight: 620;
}

small {
  font-size: 0.82rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.35rem;
}

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

img {
  display: block;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(17,17,17,0.3);
  color: #111111;
}

/* 3 -------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.section--alt {
  background: linear-gradient(180deg, rgba(242,242,242,0) 0%, rgba(242,242,242,0.9) 12%, rgba(242,242,242,0.9) 88%, rgba(242,242,242,0) 100%);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--center .lead {
  margin-inline: auto;
}

.section__head--center .eyebrow::before {
  display: none;
}

.section__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 90ch;
}

.mt-sm {
  margin-top: 1rem !important;
}

.mt-md {
  margin-top: 1.5rem !important;
}

.mt-lg {
  margin-top: 2.25rem !important;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--sidebar {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 2rem;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--grad-line);
  opacity: 0.7;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* 4 ---------------------------------------------------------- components */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad);
}

.eyebrow--muted {
  color: var(--text-dim);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--text-muted);
  max-width: 68ch;
}

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-dim);
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}

.icon--xs {
  width: 0.95rem;
  height: 0.95rem;
}

.icon--sm {
  width: 1.05rem;
  height: 1.05rem;
}

.icon--lg {
  width: 1.6rem;
  height: 1.6rem;
}

.icon--xl {
  width: 2rem;
  height: 2rem;
}

/* buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--primary {
  --btn-bg: var(--grad);
  --btn-fg: #ffffff;
  --btn-border: transparent;
  box-shadow: 0 14px 34px rgba(17,17,17,0.10);
}

.btn--primary:hover {
  box-shadow: 0 18px 42px rgba(17,17,17,0.14);
  color: #ffffff;
}

.btn--ghost {
  --btn-bg: rgba(17,17,17,0.04);
  --btn-fg: var(--text);
}

.btn--ghost:hover {
  --btn-bg: rgba(17,17,17,0.09);
  border-color: var(--mint);
  color: #111111;
}

.btn--outline {
  --btn-border: rgba(17,17,17,0.55);
  --btn-fg: var(--mint);
}

.btn--outline:hover {
  --btn-bg: rgba(17,17,17,0.10);
  color: #333333;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn--lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

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

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sky);
  font-weight: 600;
}

.btn--link:hover {
  transform: none;
  text-decoration: underline;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* cards */
.card {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(17,17,17,0.42);
  background: var(--panel-hover);
  box-shadow: var(--shadow);
}

.card--flat {
  background: rgba(17,17,17,0.025);
}

.card--feature {
  background: var(--grad-soft);
  border-color: rgba(17,17,17,0.28);
}

.card--link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.card--link:hover {
  text-decoration: none;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,0.3);
  background: rgba(17,17,17,0.10);
  color: var(--mint);
}

.card__icon--sky {
  border-color: rgba(17,17,17,0.3);
  background: rgba(17,17,17,0.1);
  color: var(--sky);
}

.card__icon--violet {
  border-color: rgba(17,17,17,0.34);
  background: rgba(17,17,17,0.12);
  color: #4a4a4a;
}

.card__icon--amber {
  border-color: rgba(17,17,17,0.32);
  background: rgba(17,17,17,0.12);
  color: var(--amber);
}

.card__icon--rose {
  border-color: rgba(17,17,17,0.32);
  background: rgba(17,17,17,0.12);
  color: var(--rose);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mint);
}

.card--link:hover .card__cta {
  gap: 0.7rem;
}

/* A card title link is a plain inline link whose ::after covers the whole card,
   so the entire card is clickable without nesting anchors. */
.card--link h3 a {
  display: inline;
  color: #111111;
  text-decoration: none;
}

.card--link h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card--link:hover h3 a {
  color: var(--mint);
}

/* badges, pills, tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(17,17,17,0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--mint {
  border-color: rgba(17,17,17,0.4);
  background: rgba(17,17,17,0.12);
  color: #333333;
}

.badge--sky {
  border-color: rgba(17,17,17,0.4);
  background: rgba(17,17,17,0.12);
  color: #333333;
}

.badge--amber {
  border-color: rgba(17,17,17,0.4);
  background: rgba(17,17,17,0.12);
  color: #2f2f2f;
}

.badge--violet {
  border-color: rgba(17,17,17,0.4);
  background: rgba(17,17,17,0.14);
  color: #444444;
}

.badge--rose {
  border-color: rgba(17,17,17,0.4);
  background: rgba(17,17,17,0.12);
  color: #4a4a4a;
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.pill-row li {
  margin: 0;
}

/* tick list */
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tick-list li {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.tick-list .icon {
  margin-top: 0.28rem;
  color: var(--mint);
}

.tick-list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
}

.tick-list--2col li {
  margin-bottom: 0;
}

/* stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 1.35rem 1.25rem;
  background: rgba(255,255,255,0.92);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111111;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.stat__value .unit {
  font-size: 0.62em;
  color: var(--mint);
  margin-left: 0.15em;
}

/* code windows, figures, diagrams */
.figure {
  margin: 0;
}

.figure__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247,247,247,1), rgba(255,255,255,1));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(17,17,17,0.10), transparent 42%);
}

.figure__frame img {
  width: 100%;
  display: block;
}

.figure__caption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.figure__caption strong {
  color: var(--text-muted);
  font-weight: 600;
}

.code-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f7f7;
  overflow: hidden;
}

.code-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(17,17,17,0.03);
}

.code-card__dots {
  display: flex;
  gap: 0.35rem;
}

.code-card__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c9c9;
}

.code-card__dots span:nth-child(1) {
  background: #5f5f5f;
}

.code-card__dots span:nth-child(2) {
  background: #4f4f4f;
}

.code-card__dots span:nth-child(3) {
  background: #111111;
}

.code-card__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.code-card__lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.code-card__copy {
  margin-left: auto;
}

.code-card pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #111111;
  tab-size: 2;
}

.code-card code {
  font-size: inherit;
  white-space: pre;
}

.code-card .cm {
  color: #6b6b6b;
  font-style: italic;
}

.code-card .kw {
  color: #111111;
}

.code-card .st {
  color: #333333;
}

.code-card .ty {
  color: #3a3a3a;
}

.code-card .fn {
  color: #2f2f2f;
}

.code-card .num {
  color: #4a4a4a;
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(249,249,249,0.9);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}

.table caption {
  caption-side: top;
  padding: 1rem 1.15rem 0.25rem;
  text-align: left;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.table th,
.table td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  position: sticky;
  top: 0;
  background: rgba(242,242,242,1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  z-index: 1;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: rgba(17,17,17,0.045);
}

.table .is-yes {
  color: var(--mint);
  font-weight: 600;
}

.table .is-no {
  color: var(--text-dim);
}

.table--compact th,
.table--compact td {
  padding: 0.6rem 0.9rem;
}

/* steps / timeline */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-top: 2.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mint);
}

.steps li::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 2.6rem;
  right: 0;
  height: 1px;
  background: rgba(17,17,17,0.12);
}

.steps li:last-child::after {
  background: linear-gradient(90deg, rgba(17,17,17,0.6), transparent);
}

.steps strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #111111;
  font-size: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-850);
  border: 2px solid var(--mint);
}

.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mint);
  text-transform: uppercase;
}

/* tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tab {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(17,17,17,0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.tab:hover {
  color: #111111;
  border-color: rgba(17,17,17,0.45);
}

.tab[aria-selected="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #ffffff;
}

.tabpanel[hidden] {
  display: none;
}

/* faq */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(249,249,249,0.9);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  cursor: pointer;
  font-weight: 580;
  color: #111111;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--mint);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details[open] summary {
  color: var(--mint);
}

.faq .faq__body {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* quotes / testimonials */
.quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.quote blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.quote figcaption {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.quote figcaption strong {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--amber);
}

/* forms */
.form {
  display: grid;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 560;
  color: var(--text-muted);
}

.field .req {
  color: var(--rose);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(249,249,249,0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b6b6b;
}

.field__hint {
  font-size: 0.79rem;
  color: var(--text-dim);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--rose);
}

.form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form__consent input {
  width: auto;
  margin-top: 0.25rem;
  flex: none;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--mint);
}

.form-status[data-state="error"] {
  color: var(--rose);
}

.form-success {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(17,17,17,0.42);
  border-radius: var(--radius);
  background: rgba(17,17,17,0.08);
}

.form-success[hidden] {
  display: none;
}

.form-success > .icon {
  margin-top: 0.15rem;
  flex: none;
  color: var(--mint);
}

.form-success strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.04rem;
}

.form-success p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.checkbox-grid label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-grid input {
  margin-top: 0.3rem;
}

/* 5 ------------------------------------------------------------- chrome */
.topbar {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(17,17,17,0.10), rgba(17,17,17,0.08) 50%, rgba(17,17,17,0.1));
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 40px;
  padding-block: 0.35rem;
}

.topbar__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.2);
}

.topbar__text {
  margin: 0;
  color: var(--text-muted);
}

.topbar__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--mint);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: 74px;
}

.header__progress {
  height: 2px;
  width: 0;
  background: var(--grad);
  transition: width 0.1s linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #111111;
}

.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav__group {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: #111111;
  background: rgba(17,17,17,0.06);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--mint);
}

.nav__toggle .icon {
  transition: transform var(--dur) var(--ease);
}

.nav__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.nav__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 70;
  width: min(640px, 78vw);
  padding: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.nav__panel[hidden] {
  display: none;
}

.nav__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.nav__card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.nav__card:hover {
  background: rgba(17,17,17,0.09);
  text-decoration: none;
}

.nav__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(17,17,17,0.12);
  color: var(--mint);
}

.nav__card-body {
  display: grid;
  gap: 0.15rem;
}

.nav__card-body strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.nav__card-body small {
  color: var(--text-dim);
  line-height: 1.45;
}

.nav__panel--list {
  width: 260px;
  padding: 0.55rem;
}

.nav__panel--list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav__panel--list a:hover {
  background: rgba(17,17,17,0.09);
  color: #111111;
  text-decoration: none;
}

.nav__panel--list a.is-active {
  background: rgba(17,17,17,0.12);
  color: var(--mint);
}

.nav__panel-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mint);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(17,17,17,0.04);
  color: var(--text);
  cursor: pointer;
}

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.5);
  backdrop-filter: blur(4px);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-left: 1px solid var(--line-strong);
  background: rgba(255,255,255,1);
  overflow-y: auto;
  animation: slideIn 0.3s var(--ease) both;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(17,17,17,0.04);
  color: var(--text);
  cursor: pointer;
}

.drawer__nav {
  display: grid;
  gap: 0.35rem;
}

.drawer__group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17,17,17,0.02);
  overflow: hidden;
}

.drawer__group summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #111111;
  list-style: none;
}

.drawer__group summary::-webkit-details-marker {
  display: none;
}

.drawer__group summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  color: var(--mint);
}

.drawer__group[open] summary::after {
  content: "\2212";
}

.drawer__group a {
  display: block;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.drawer__group a:hover {
  color: var(--mint);
  background: rgba(17,17,17,0.06);
  text-decoration: none;
}

.drawer__actions {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}

.drawer__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* 6 ---------------------------------------------------------- marketing */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.75rem 0 1.5rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.hero__proof .icon {
  color: var(--mint);
}

.hero__aside {
  display: grid;
  gap: 1rem;
}

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  max-width: 900px;
}

.breadcrumb {
  margin-bottom: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #b0b0b0;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--mint);
}

/* product rail - the landing hero leads with the product line */
.rail__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rail {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.rail li {
  margin: 0;
}

.rail__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17,17,17,0.03);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.rail__card:hover {
  border-color: rgba(17,17,17,0.45);
  background: rgba(17,17,17,0.07);
  transform: translateX(3px);
  text-decoration: none;
}

.rail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  border: 1px solid rgba(17,17,17,0.28);
  background: rgba(17,17,17,0.10);
  color: var(--mint);
}

.rail__icon--sky {
  border-color: rgba(17,17,17,0.3);
  background: rgba(17,17,17,0.1);
  color: var(--sky);
}

.rail__icon--violet {
  border-color: rgba(17,17,17,0.32);
  background: rgba(17,17,17,0.12);
  color: #4a4a4a;
}

.rail__icon--amber {
  border-color: rgba(17,17,17,0.3);
  background: rgba(17,17,17,0.12);
  color: var(--amber);
}

.rail__icon--rose {
  border-color: rgba(17,17,17,0.3);
  background: rgba(17,17,17,0.12);
  color: var(--rose);
}

.rail__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.rail__body strong {
  font-size: 0.95rem;
  font-weight: 620;
}

.rail__body small {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}

.rail__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.rail__arrow {
  color: var(--mint);
}

.rail__note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .rail__card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .rail__tag {
    display: none;
  }
}

/* logo / capability strip */
.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.strip > div {
  padding: 1.1rem 1rem;
  background: rgba(249,249,249,1);
  text-align: center;
}

.strip__name {
  display: block;
  font-weight: 600;
  color: #111111;
  font-size: 0.92rem;
}

.strip__sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* media rows (image + copy) */
.media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.media--reverse .media__figure {
  order: 2;
}

.media__body > :last-child {
  margin-bottom: 0;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(249,249,249,0.9);
}

.plan--featured {
  border-color: rgba(17,17,17,0.45);
  background: var(--grad-soft);
  box-shadow: var(--shadow-glow);
}

.plan__tag {
  align-self: flex-start;
  margin-bottom: 0.9rem;
}

.plan__price {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
}

.plan__price small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 400;
}

.plan__desc {
  margin: 0.75rem 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan .tick-list {
  margin-bottom: 1.4rem;
}

.plan .btn {
  margin-top: auto;
}

/* cta band */
.cta-band {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-block: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(17,17,17,0.12), rgba(17,17,17,0.08) 48%, rgba(17,17,17,0.14));
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.cta-band__list {
  display: grid;
  gap: 0.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-band__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.cta-band__list .icon {
  color: var(--mint);
}

.cta-band__actions {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.cta-band__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* footer */
.site-footer {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(247,247,247,0.95));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.footer__blurb {
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.footer__address {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-dim);
}

.footer__address .icon {
  margin-top: 0.2rem;
  color: var(--mint);
}

.footer__contact {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-dim);
}

.footer__contact .icon {
  color: var(--mint);
}

.footer__contact a {
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.footer__social a:hover {
  border-color: var(--mint);
  background: rgba(17,17,17,0.10);
  color: #111111;
}

.footer__col h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--mint);
}

.footer__pulse p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.4rem;
}

.footer__form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(249,249,249,0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.footer__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer__legal {
  padding-bottom: 2rem;
}

.footer__risk {
  padding: 1.15rem 1.25rem;
  border: 1px dashed rgba(17,17,17,0.35);
  border-radius: var(--radius-sm);
  background: rgba(17,17,17,0.05);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer__risk strong {
  color: var(--amber);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__bottom-links li {
  margin: 0;
}

.footer__built {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6b6b6b;
}

.to-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(249,249,249,0.95);
  color: var(--text);
  cursor: pointer;
  transform: rotate(180deg);
  backdrop-filter: blur(8px);
  transition: all var(--dur) var(--ease);
}

.to-top[hidden] {
  display: none;
}

.to-top:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* 7 ------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes slideIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 8 -------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .footer__pulse {
    grid-column: 1 / -1;
  }

  .header__cta-secondary {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid--4,
  .stat-grid,
  .plans,
  .strip,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner,
  .cta-band__inner,
  .grid--sidebar,
  .media,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .media--reverse .media__figure {
    order: 0;
  }

  .steps li::after {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    justify-content: space-between;
  }

  .drawer__panel {
    width: min(400px, 94vw);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.97rem;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .stat-grid,
  .plans,
  .strip,
  .steps,
  .form__row,
  .checkbox-grid,
  .tick-list--2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header__actions .btn--primary {
    display: none;
  }

  .topbar__text {
    font-size: 0.78rem;
  }

  .topbar__link {
    display: none;
  }

  .cta-band__actions .btn {
    width: 100%;
  }
}

/* 9 ------------------------------------------------------------- print */
@media print {
  body {
    background: #111111;
    color: #111111;
  }

  .site-header,
  .topbar,
  .drawer,
  .to-top,
  .cta-band,
  .site-footer {
    display: none !important;
  }

  .card,
  .figure__frame,
  .table-wrap {
    border-color: #d4d4d4;
    background: #111111;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
