/* ============================================================
   Ventorify — shared stylesheet
   Layers: fonts → tokens → base → utilities → components
           → header → footer → CTA band → sections → mockup kit
           → responsive
   Radius system (documented rule): surfaces/cards 16px,
   inner rows/chips 10px, interactive buttons/pills 999px.
   One accent: indigo #2B4ACB (violet only inside glow fields).
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Brand */
  --indigo: #2b4acb;
  --indigo-hover: #22399f;
  --indigo-tint: #eef1fc;
  --indigo-soft: #d9e0f9;
  --violet: #7c5cfc;

  /* Neutrals */
  --ink: #101828;
  --ink-deep: #0b1022;          /* dark sections / footer */
  --ink-panel: #131a33;         /* raised surfaces on dark */
  --slate: #475467;
  --slate-light: #667085;
  --border: #e4e7ec;
  --border-soft: #eceef4;
  --canvas: #fbfbfe;
  --surface: #ffffff;

  /* Semantic */
  --success: #0e9384;
  --success-tint: #e8f7f4;
  --warning: #f79009;
  --warning-tint: #fef4e6;
  --critical: #d92d20;
  --critical-tint: #fdecea;

  /* On-dark */
  --on-dark: #f4f5fb;
  --on-dark-muted: #9aa3c0;
  --on-dark-border: rgb(255 255 255 / 0.09);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-display: clamp(2.7rem, 1.2rem + 5.4vw, 4.4rem);
  --text-h2: clamp(1.85rem, 1.2rem + 2.4vw, 2.7rem);
  --text-h3: 1.3rem;
  --text-lead: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.78rem;
  --track-display: -0.034em;
  --track-h2: -0.028em;

  /* Space & shape */
  --container: 1160px;
  --pad: 24px;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --r-card: 16px;
  --r-chip: 10px;
  --r-pill: 999px;

  /* Shadow (tinted, never pure black) */
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-card: 0 2px 6px rgb(16 24 40 / 0.04), 0 14px 32px -10px rgb(16 24 40 / 0.1);
  --shadow-float:
    0 2px 6px rgb(16 24 40 / 0.05),
    0 24px 56px -16px rgb(43 74 203 / 0.22),
    0 48px 96px -32px rgb(124 92 252 / 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;

  --focus-ring: 0 0 0 2px var(--canvas), 0 0 0 4px var(--indigo);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* decorative glow halos may extend past the viewport; clip, never scroll */
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

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

a {
  color: var(--indigo);
  text-decoration: none;
}
a:hover {
  color: var(--indigo-hover);
}

::selection {
  background: var(--indigo);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- Utilities ---------- */

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

.tnum {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-chip);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Section headline group */
.section {
  padding-block: var(--section);
}
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 {
  font-size: var(--text-h2);
  font-weight: 680;
  letter-spacing: var(--track-h2);
  line-height: 1.08;
}
.section-head .lead {
  margin-top: 1rem;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--slate);
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.9rem;
}

/* ---------- Reveal system ----------
   Hidden pre-animation state is gated on BOTH html.js and
   no-preference: raw HTML and reduced-motion users always see
   the finished page. JS adds .is-revealed via IntersectionObserver. */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.js [data-reveal="fade"] {
    transform: none;
  }
  html.js [data-reveal="scale"] {
    transform: translateY(14px) scale(0.97);
  }
  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 1em;
  height: 1em;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 1px 2px rgb(43 74 203 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.btn-primary:hover {
  background: var(--indigo-hover);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgb(43 74 203 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--slate-light);
  background: #fff;
}

/* On dark surfaces */
.btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.btn-on-dark:hover {
  background: var(--indigo-tint);
  color: var(--ink);
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1.02rem;
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.link-arrow svg {
  width: 0.9em;
  height: 0.9em;
  transition: transform var(--dur-fast) var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Status pills (semantic, brief-approved labels only) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-micro);
  font-weight: 600;
  line-height: 1;
  padding: 0.42em 0.85em;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill-success {
  color: var(--success);
  background: var(--success-tint);
}
.pill-warning {
  color: #b35c00;
  background: var(--warning-tint);
}
.pill-critical {
  color: var(--critical);
  background: var(--critical-tint);
}
.pill-neutral {
  color: var(--slate);
  background: #f2f4f7;
}
.pill-indigo {
  color: var(--indigo);
  background: var(--indigo-tint);
}
.pill-plain::before {
  display: none;
}

/* ---------- Ring motif (open ring — never closed) ---------- */

.ring {
  display: inline-block;
  width: 1em;
  height: 1em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 251 254 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 24px -18px rgb(16 24 40 / 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-link,
.nav-group > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 560;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-link:hover {
  color: var(--ink);
  background: #f2f4f7;
}
.nav-link.is-active {
  color: var(--indigo);
}
.nav-caret {
  width: 0.7em;
  height: 0.7em;
  transition: transform var(--dur-fast) var(--ease-out);
}

/* CSS dropdown: hover + focus-within, works without JS */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    visibility var(--dur-fast);
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret {
  transform: rotate(180deg);
}
.nav-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-chip);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 520;
}
.nav-menu a:hover {
  background: var(--indigo-tint);
  color: var(--indigo-hover);
}
.nav-menu a.is-active {
  color: var(--indigo);
  font-weight: 640;
}
.nav-menu .nav-menu-note {
  display: block;
  font-size: var(--text-micro);
  color: var(--slate-light);
  font-weight: 480;
  margin-top: 1px;
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-chip);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle:hover {
  background: #f2f4f7;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .icon-close {
  display: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--on-dark);
  border-radius: calc(var(--r-card) * 1.5);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 30% 118%, rgb(43 74 203 / 0.72), transparent 70%),
    radial-gradient(38% 48% at 74% 116%, rgb(124 92 252 / 0.5), transparent 70%);
}
.cta-band h2 {
  font-size: var(--text-h2);
  font-weight: 680;
  letter-spacing: var(--track-h2);
  line-height: 1.1;
  max-width: 24ch;
  margin-inline: auto;
}
.cta-band p {
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin: 1rem auto 0;
}
.cta-band .cta-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .cta-note {
  margin-top: 1.1rem;
  font-size: var(--text-small);
  color: var(--on-dark-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 2.2rem;
  font-size: var(--text-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  max-width: 26ch;
  line-height: 1.55;
}
.footer-col h3 {
  color: var(--on-dark);
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--on-dark-muted);
  transition: color var(--dur-fast);
}
.footer-col a:hover {
  color: var(--on-dark);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--on-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-muted);
}
.footer-status .ring {
  color: #5b78e8;
  width: 0.95em;
  height: 0.95em;
}

/* ---------- Mockup kit (schematic product illustrations) ----------
   Hand-coded schematics per content brief §8: stylized, semantically
   true, brief-approved labels and data only. */

.mock {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  font-size: var(--text-small);
}
.mock-float {
  box-shadow: var(--shadow-float);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
}
.mock-title {
  font-weight: 640;
  font-size: 0.86rem;
  color: var(--ink);
}
.mock-body {
  padding: 1.1rem;
}

/* Rows (channel rows, list rows) */
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
}
.mock-row + .mock-row {
  border-top: 1px solid var(--border-soft);
}

/* Channel identity chip */
.chan {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
}
.chan-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.chan-shopify .chan-dot {
  background: #4a8a3c;
}
.chan-amazon .chan-dot {
  background: #232f3e;
}
.chan-ebay .chan-dot {
  background: #31509b;
}
.chan-note {
  font-size: var(--text-micro);
  font-weight: 480;
  color: var(--slate-light);
}

/* Schematic tables */
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.mock-table th {
  text-align: left;
  font-size: var(--text-micro);
  font-weight: 600;
  color: var(--slate-light);
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.mock-table td {
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.mock-table tr:last-child td {
  border-bottom: 0;
}
.mock-table .num {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.mock-product {
  font-weight: 600;
  color: var(--ink);
}
.mock-sku {
  display: block;
  font-size: var(--text-micro);
  color: var(--slate-light);
  font-weight: 480;
}

/* Event feed */
.mock-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mock-feed li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.84rem;
  color: var(--slate);
}
.mock-feed li + li {
  border-top: 1px dashed var(--border-soft);
}
.mock-feed .feed-time {
  flex: none;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: var(--text-micro);
  color: var(--slate-light);
  min-width: 3.2em;
}
.mock-feed .feed-chan {
  font-weight: 640;
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .mock-feed li.feed-enter {
    animation: feed-in 0.45s var(--ease-out) both;
  }
}
@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Value flash when a number settles */
@media (prefers-reduced-motion: no-preference) {
  html.js .value-flash {
    animation: value-flash 0.9s var(--ease-out);
  }
}
@keyframes value-flash {
  0% {
    background: var(--indigo-tint);
    box-shadow: 0 0 0 3px var(--indigo-tint);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 3px transparent;
  }
}

/* Glow field behind floating mockups */
.glow-field {
  position: relative;
  isolation: isolate;
}
.glow-field::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -8%;
  background:
    radial-gradient(46% 58% at 24% 62%, rgb(43 74 203 / 0.3), transparent 70%),
    radial-gradient(42% 54% at 76% 40%, rgb(124 92 252 / 0.24), transparent 72%),
    radial-gradient(30% 42% at 55% 92%, rgb(43 74 203 / 0.18), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

/* ---------- FAQ accordion (native details, JS-enhanced) ---------- */

.faq {
  max-width: 46rem;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  font-weight: 620;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--indigo-hover);
}
.faq .faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--slate-light);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq details[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--indigo);
}
.faq .faq-body {
  overflow: hidden;
}
.faq .faq-body > p {
  padding: 0 0.2rem 1.3rem;
  color: var(--slate);
  max-width: 60ch;
}

/* ---------- Tabs (stacked without JS, tablist with JS) ---------- */

.tabs-nav {
  display: none;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
html.js .tabs-nav {
  display: flex;
}
.tabs-nav [role="tab"] {
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  border: 1px solid var(--border);
  background: transparent;
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.tabs-nav [role="tab"]:hover {
  color: var(--ink);
  border-color: var(--slate-light);
}
.tabs-nav [role="tab"][aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tab-panel > .tab-panel-title {
  font-size: var(--text-h3);
  font-weight: 660;
  margin-bottom: 0.8rem;
}
html.js .tabs.is-enhanced .tab-panel > .tab-panel-title {
  display: none;
}
html.js .tabs.is-enhanced .tab-panel[hidden] {
  display: none;
}
.tab-panel + .tab-panel {
  margin-top: 2.4rem;
}
html.js .tabs.is-enhanced .tab-panel + .tab-panel {
  margin-top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .tabs.is-enhanced .tab-panel:not([hidden]) {
    animation: tab-in 0.35s var(--ease-out);
  }
}
@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Generic content blocks shared across pages ---------- */

/* Fact strip: concrete product facts (replaces social proof — none exists) */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-block: 1px solid var(--border-soft);
}
.fact {
  background: var(--canvas);
  padding: 1.6rem 1.4rem;
}
.fact .fact-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.fact .fact-label {
  margin-top: 0.3rem;
  color: var(--slate);
  font-size: var(--text-small);
  max-width: 30ch;
}

/* Split section: copy beside a mockup */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split.split-flip > .split-copy {
  order: 2;
}
.split.split-flip > .split-visual {
  order: 1;
}
.split-copy h2,
.split-copy h3 {
  font-size: var(--text-h2);
  font-weight: 680;
  letter-spacing: var(--track-h2);
  line-height: 1.08;
}
.split-copy p {
  margin-top: 1rem;
  color: var(--slate);
  max-width: 52ch;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--ink);
}
.checklist li strong {
  font-weight: 640;
}
.checklist .check {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--success);
  transform: translateY(2px);
}
.checklist li span {
  color: var(--slate);
}
.checklist li span b,
.checklist li span strong {
  color: var(--ink);
  font-weight: 640;
}

/* Feature card (bordered, hover lift) */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 1.6rem;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--indigo-soft);
    box-shadow: var(--shadow-card);
  }
}
.card h3 {
  font-size: 1.08rem;
  font-weight: 660;
}
.card p {
  margin-top: 0.5rem;
  color: var(--slate);
  font-size: var(--text-small);
  line-height: 1.6;
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-chip);
  background: var(--indigo-tint);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 19px;
  height: 19px;
}

/* Page hero (feature/integration pages) */
.page-hero {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--section);
}
.page-hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.04;
  max-width: 15ch;
}
.page-hero .lead {
  margin-top: 1.2rem;
}
.page-hero .hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) var(--pad) var(--section);
}
.legal-main h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: var(--track-h2);
  line-height: 1.1;
}
.legal-updated {
  margin-top: 0.8rem;
  color: var(--slate-light);
  font-size: var(--text-small);
}
.legal-main h2 {
  margin-top: 2.6rem;
  font-size: 1.25rem;
  font-weight: 660;
}
.legal-main p,
.legal-main ul {
  margin-top: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}
.legal-main ul {
  padding-left: 1.2rem;
}
.legal-main li + li {
  margin-top: 0.35rem;
}

/* ---------- Responsive ---------- */

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

@media (max-width: 899px) {
  /* Mobile nav: collapse only when JS is present; no-JS users get
     the full stacked nav (always readable). */
  .nav-toggle {
    display: inline-flex;
  }
  html.js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0.8rem var(--pad) 1.2rem;
    background: var(--canvas);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 24px 40px -24px rgb(16 24 40 / 0.25);
    display: none;
  }
  html.js .site-header.is-open .site-nav {
    display: flex;
  }
  html.js .site-header.is-open .nav-toggle .icon-menu {
    display: none;
  }
  html.js .site-header.is-open .nav-toggle .icon-close {
    display: block;
  }
  html:not(.js) .site-nav {
    flex-wrap: wrap;
  }
  .header-inner {
    justify-content: space-between;
  }
  .site-nav .nav-link {
    width: 100%;
    justify-content: space-between;
  }
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.4rem 0.9rem;
    min-width: 0;
  }
  .nav-caret {
    display: none;
  }
  .split,
  .split.split-flip {
    grid-template-columns: 1fr;
  }
  .split.split-flip > .split-copy {
    order: 0;
  }
  .split.split-flip > .split-visual {
    order: 0;
  }
}

@media (max-width: 679px) {
  /* keep decorative glows inside the viewport on phones */
  .glow-field::before {
    inset: -10% 0;
  }
  .fact-strip {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band {
    border-radius: var(--r-card);
  }
}

@media (max-width: 479px) {
  :root {
    --pad: 18px;
  }
  .btn-lg {
    width: 100%;
  }
  .page-hero .hero-actions .btn {
    width: 100%;
  }
  /* Header must fit 380px: logo + CTA + burger */
  .header-inner {
    gap: 0.75rem;
  }
  .header-cta .btn {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }
  .brand img {
    height: 23px;
  }
}
