/* ==========================================================================
   Accruna — accruna.xyz
   Single shared stylesheet for the whole site.
   --------------------------------------------------------------------------
   Contents
   01. Design tokens (colour, type, spacing, radii, shadow)
   02. Base / reset
   03. Typography
   04. Layout primitives
   05. Buttons
   06. Header + navigation
   07. Hero
   08. Section headers
   09. Cards, tiles, panels
   10. Product UI mockups
   11. Process + flow
   12. Stat / number strips
   13. Accordion (FAQ)
   14. Tabs
   15. Tables + comparison
   16. Forms
   17. Footer
   18. Utilities
   19. Motion + scroll reveal
   20. Responsive
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Surfaces: warm paper, not cold grey ------------------------------ */
  --paper:        #F6F1E9;
  --paper-deep:   #EFE8DC;
  --surface:      #FFFFFF;
  --surface-2:    #FAF7F1;
  --surface-3:    #F2ECE2;

  /* --- Ink ------------------------------------------------------------- */
  --ink:          #17181A;
  --ink-2:        #3B3D42;
  --ink-3:        #5F6469;
  --ink-4:        #62676D;

  /* --- Brand: letterpress brick red ------------------------------------ */
  --accent:       #C2452D;
  --accent-600:   #A93B25;
  --accent-700:   #8E301C;
  --accent-300:   #E8B4A5;
  --accent-text:  #AA3E26;
  --accent-100:   #EFD9D1;
  --accent-050:   #FBEEE9;

  /* --- Secondary: deep ledger olive ------------------------------------ */
  --olive:        #33463A;
  --olive-100:    #E4EBE3;

  /* --- Status ---------------------------------------------------------- */
  --ok:           #2F6B4F;
  --ok-bg:        #E6EFE9;
  --warn:         #8A6412;
  --warn-bg:      #F7EEDC;
  --flag:         #A93B25;
  --flag-bg:      #F8E7E3;
  --info:         #35506E;
  --info-bg:      #E8EDF3;

  /* --- Borders --------------------------------------------------------- */
  --line:         #E3DCD0;
  --line-strong:  #948A78;

  /* --- Dark surfaces --------------------------------------------------- */
  --dark:         #1B1D1F;
  --dark-2:       #24272A;
  --dark-3:       #2E3236;
  --on-dark:      #F3EEE6;
  --on-dark-2:    #AEB3B9;

  /* --- Type ------------------------------------------------------------ */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
               Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.35rem, 1.4rem + 3.1vw, 4rem);
  --fs-h1:      clamp(2rem, 1.3rem + 2.4vw, 3.05rem);
  --fs-h2:      clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem);
  --fs-h3:      clamp(1.22rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h4:      1.075rem;
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.6875rem;

  /* --- Space scale ----------------------------------------------------- */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* --- Radii: restrained, not pill-shaped everywhere ------------------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* --- Shadow: crisp and shallow, never glowing ------------------------ */
  --sh-1: 0 1px 2px rgba(23, 24, 26, 0.05);
  --sh-2: 0 1px 2px rgba(23, 24, 26, 0.04), 0 4px 10px -6px rgba(23, 24, 26, 0.10);
  --sh-3: 0 2px 4px rgba(23, 24, 26, 0.04), 0 12px 28px -14px rgba(23, 24, 26, 0.16);
  --sh-4: 0 4px 8px rgba(23, 24, 26, 0.05), 0 28px 56px -24px rgba(23, 24, 26, 0.22);

  --focus: 0 0 0 3px rgba(194, 69, 45, 0.28);
  --header-h: 68px;
  --wrap: 1200px;
}

/* ==========================================================================
   02. BASE / RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

::selection { background: var(--accent-100); color: var(--accent-700); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #FFFFFF;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-md) 0;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.24; }
h4 { font-size: var(--fs-h4); line-height: 1.32; letter-spacing: -0.012em; }
h5 { font-size: var(--fs-sm); letter-spacing: -0.005em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-600); text-decoration: underline; }

strong, b { font-weight: 650; color: var(--ink); }

.display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.03rem, 0.97rem + 0.3vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--dark { color: var(--accent-300); }
.eyebrow--dark::before { background: var(--accent-300); }

.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tiny  { font-size: var(--fs-xs); }
.card--dark .tiny, .section--dark .tiny { color: var(--on-dark-2); }
.num   { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Financial figures: tabular mono keeps columns and totals aligned */
.ledger .num,
.kv-list .v,
.meter__value,
.chart__axis text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Headline figures keep the display face — mono is for columns, not headlines */
.stat-band__value,
.display .num,
h1 .num,
h2 .num { font-family: var(--font-sans); }
.accent-text { color: var(--accent-text); }

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); }

.section--paper  { background: var(--paper); }
.section--surface{ background: var(--surface); }
.section--sunken { background: var(--surface-3); }
.section--dark   { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark p { color: var(--on-dark-2); }

/* Dark surfaces re-point the semantic text tokens at their light-on-dark
   equivalents, so any rule that reads them resolves to a legible value no
   matter how specific that rule is. Individual components additionally state
   their own dark colour where a light-surface rule would otherwise win. */
.card--dark,
.section--dark {
  --ink:         #FFFFFF;
  --ink-2:       var(--on-dark-2);
  --ink-3:       var(--on-dark-2);
  --ink-4:       #9BA1A8;
  --paper:       var(--dark);
  --paper-deep:  var(--dark);
  --surface:     var(--dark-2);
  --surface-2:   var(--dark-3);
  --surface-3:   var(--dark-3);
  --line:        var(--dark-3);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent:      var(--accent-300);
  --accent-text: var(--accent-300);
}

.rule-top    { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-5); }
.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--gap-lg { gap: var(--sp-6); }
.grid--gap-sm { gap: var(--sp-4); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--wide-left  { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

.stack > * + * { margin-top: var(--sp-4); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ==========================================================================
   05. BUTTONS
   ========================================================================== */

/* Button role tokens also exist at :root so a .btn used outside the base rule
   (or overridden per context) always resolves. */
:root {
  --btn-bg: var(--accent);
  --btn-fg: #FFFFFF;
  --btn-bd: var(--accent);
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: -0.008em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--accent-600);
  --btn-bd: var(--accent-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn--secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--secondary:hover {
  --btn-bg: var(--surface);
  --btn-bd: var(--ink);
  color: var(--ink);
  box-shadow: var(--sh-1);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-bd: transparent;
}
.btn--ghost:hover { --btn-fg: var(--accent); --btn-bd: transparent; box-shadow: none; }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn--light:hover { --btn-bg: var(--paper); --btn-bd: var(--paper); color: var(--ink); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.34);
}
.btn--outline-light:hover {
  --btn-bg: rgba(255,255,255,0.08);
  --btn-bd: rgba(255,255,255,0.62);
  color: #fff;
}

.btn--lg { padding: 0.88rem 1.55rem; font-size: 0.9688rem; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn .arrow { transition: transform .18s ease; flex: none; }
.btn:hover .arrow { transform: translateX(3px); }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--accent-text);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: none; color: var(--accent-600); }
.link-arrow .arrow { transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   06. HEADER + NAVIGATION
   ========================================================================== */

.announce {
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 550;
  position: relative;
  z-index: 60;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  min-height: 42px;
  padding-block: 0.4rem;
  text-align: center;
  position: relative;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: #fff; opacity: .85; }
.announce__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--r-xs);
}
.announce__close:hover { color: #fff; background: rgba(255,255,255,0.14); }
.announce.is-hidden { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(23,24,26,.04), 0 10px 26px -22px rgba(23,24,26,.4); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  flex: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { line-height: 1; padding-bottom: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: var(--sp-5);
  flex: 1 1 auto;
}
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--surface-3); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--accent-text); font-weight: 650; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
  margin-inline-start: auto;
}
.header-actions .link-quiet {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.header-actions .link-quiet:hover { color: var(--accent-text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle:hover { border-color: var(--ink-3); }
.nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .16s ease, top .2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; margin: 0; padding: var(--sp-3) 0 var(--sp-2); }
.mobile-nav__list a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list li:last-child a { border-bottom: 0; }
.mobile-nav__list a[aria-current="page"] { color: var(--accent-text); }
.mobile-nav__cta { padding: var(--sp-4) 0 var(--sp-5); display: grid; gap: var(--sp-3); }

/* ==========================================================================
   07. HERO
   ========================================================================== */

.hero {
  background: var(--paper);
  padding-top: clamp(2.25rem, 1.2rem + 4vw, 4.25rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead { margin-bottom: var(--sp-6); max-width: 32rem; }
.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.hero__visual { position: relative; }

/* Handwritten margin note — a human annotation on machine output */
.margin-note {
  position: absolute;
  font-family: "Caveat", "Segoe Script", cursive;
  color: var(--accent-text);
  font-size: 1.35rem;
  line-height: 1.05;
  transform: rotate(-7deg);
  pointer-events: none;
  font-weight: 600;
  text-align: center;
}
.margin-note svg { display: block; margin: 0 auto; opacity: .8; }

/* Vertically stacked micro-caption (letterpress detail) */
.vertical-caption {
  position: absolute;
  right: -2.25rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-4);
  pointer-events: none;
  white-space: nowrap;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--paper);
  padding-top: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  padding-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
.page-hero h1 { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.034em; }
.page-hero__body > p.lead { max-width: 40rem; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }

/* ==========================================================================
   08. SECTION HEADERS
   ========================================================================== */

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
}
.sec-head__title { margin-bottom: 0; }
.sec-head__aside { font-size: var(--fs-sm); color: var(--ink-3); padding-bottom: 0.4rem; max-width: 34rem; }
.sec-head__aside p { margin-bottom: 0; }

/* ==========================================================================
   09. CARDS, TILES, PANELS
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card--pad-sm { padding: var(--sp-5); }
.card--pad-lg { padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.card--flush { padding: 0; overflow: hidden; }
.card--sunken { background: var(--surface-2); }
.card--dark   { background: var(--dark-2); border-color: var(--dark-3); color: var(--on-dark); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: var(--on-dark-2); }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.card--link:hover .card__title { color: var(--accent-text); }
.card__title { transition: color .16s ease; }

/* Non-interactive elevation for comparison cards (pricing tiers). These are not
   links, so unlike .card--link this deliberately avoids link affordance. */
.card--hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}
/* Featured tier: accent border and resting elevation, authored here so the
   inline style attribute cannot outrank the rule above on hover. */
.card--featured {
  border-color: var(--accent);
  box-shadow: var(--sh-3);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-050);
  border: 1px solid var(--accent-100);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  flex: none;
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--olive { background: var(--olive-100); border-color: #D3E0D3; color: var(--olive); }
.card__icon--ink   { background: var(--surface-3); border-color: var(--line); color: var(--ink); }
.card--dark .card__icon { background: rgba(255,255,255,0.07); border-color: var(--dark-3); color: var(--accent-300); }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.card__body { flex: 1 1 auto; }
.card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.card--dark .card__foot { border-top-color: var(--dark-3); }

.card--dark .card__kicker,
.section--dark .card__kicker { color: var(--on-dark-2); }

.card__kicker {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-2);
}
.card h3, .card h4 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-2); font-size: var(--fs-sm); }
.card--dark p,
.section--dark .card p,
.card--dark p { color: var(--on-dark-2); }

.card__go {
  color: var(--ink-4);
  flex: none;
  transition: transform .18s ease, color .18s ease;
}
.card--link:hover .card__go { color: var(--accent-text); transform: translateX(3px); }

/* Feature card with embedded mini product panel */
.card__demo {
  margin-top: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: var(--sp-4);
  font-size: var(--fs-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.card__demo .ledger { min-width: 220px; }
.card--dark .card__demo { background: var(--dark-3); border-color: var(--dark-3); }

/* Numbered "how it works" step */
.step {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--ink);
}
.step__num {
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.step h3, .step h4 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 0; }

/* Horizontal step rail with connecting arrows */
.rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-5);
}
.rail--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rail__step { position: relative; }
.rail__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  right: calc(var(--sp-5) / -2 - 5px);
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.rail__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-2);
}
.rail__num {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.rail__step h4 { margin: 0; font-size: var(--fs-sm); }
.rail__step p { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }

/* Two-column listing with left icon */
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.list-check li:last-child { margin-bottom: 0; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: var(--r-xs);
  background: var(--accent-050);
  border: 1px solid var(--accent-100);
}
.list-check li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.62em;
  width: 4px;
  height: 7px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(42deg);
}
.list-check--dark li { color: var(--on-dark-2); }
.list-check--dark li::before { background: rgba(255,255,255,0.07); border-color: var(--dark-3); }
.list-check--dark li::after { border-color: var(--accent-300); }

.list-dot { list-style: none; margin: 0; padding: 0; }
.list-dot li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.card--dark .list-dot li,
.section--dark .list-dot li { color: var(--on-dark-2); }
.card--dark .list-dot li::before,
.section--dark .list-dot li::before { background: rgba(255, 255, 255, 0.32); }
.card--dark strong,
.section--dark strong { color: #FFFFFF; }

.list-dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Dashed-lead list: pairs a label with its explanation on one row */
.list-lead { list-style: none; margin: 0; padding: 0; }
.list-lead li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.list-lead li:last-child { border-bottom: 0; }
.list-lead li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-300);
}
.list-lead strong { color: var(--ink); }

/* Definition-style rows */
.def-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.def-row:first-child { border-top: 1px solid var(--line); }
.def-row dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0;
  padding-top: 0.15rem;
}
.def-row dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.card--dark .def-row dt, .section--dark .def-row dt { color: var(--on-dark-2); }
.card--dark .def-row dd, .section--dark .def-row dd { color: var(--on-dark-2); }

/* Tag / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.chip--ok    { background: var(--ok-bg);   color: var(--ok);   border-color: #CFE0D6; }
.chip--warn  { background: var(--warn-bg); color: var(--warn); border-color: #E7D9B7; }
.chip--flag  { background: var(--flag-bg); color: var(--flag); border-color: #EFCFC6; }
.chip--info  { background: var(--info-bg); color: var(--info); border-color: #D2DCE8; }
.chip--accent{ background: var(--accent-050); color: var(--accent-text); border-color: var(--accent-100); }
.chip--dark  { background: rgba(255,255,255,0.08); color: var(--on-dark); border-color: var(--dark-3); }

/* Callout / note block */
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-050);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.note--neutral { border-left-color: var(--line-strong); background: var(--surface-2); }
.note--dark { background: var(--dark-3); border-left-color: var(--accent-300); color: var(--on-dark-2); }
.note strong { color: var(--ink); }
.note--dark strong { color: #FFFFFF; }

/* Pull quote */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.quote__mark { color: var(--accent-300); }
.quote__text {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 550;
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1 1 auto;
}
.quote__source {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.quote--dark { background: var(--dark-2); border-color: var(--dark-3); }
.quote--dark .quote__text { color: var(--on-dark); }
.quote--dark .quote__source { border-top-color: var(--dark-3); color: var(--on-dark-2); }

/* ==========================================================================
   10. PRODUCT UI MOCKUPS
   ========================================================================== */

.ui {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.5;
}
.ui--lift { box-shadow: var(--sh-4); }
.ui--flat { box-shadow: none; }

.ui__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ui__dots { display: flex; gap: 5px; flex: none; }
.ui__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: block; }
.ui__dots i:first-child { background: var(--accent-300); }
.ui__crumb {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui__bar-right { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; flex: none; }

.ui__body { padding: clamp(0.9rem, 0.7rem + 0.8vw, 1.25rem); }
.ui__body--flush { padding: 0; }

.ui__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.ui__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
.ui__meta { font-size: 0.6875rem; color: var(--ink-4); }

/* Progress meter */
.meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-4);
}
.meter__track {
  flex: 1 1 auto;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--accent-100);
  overflow: hidden;
}
.meter__fill { height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.meter__value { font-size: 0.6875rem; font-weight: 700; color: var(--accent-text); }

/* Ledger table */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.ledger th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ledger td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover td { background: var(--surface-2); }
.ledger .r { text-align: right; }
.ledger .num { font-variant-numeric: tabular-nums; }
.ledger .name { font-weight: 600; color: var(--ink); }
.ledger .status { font-size: 0.6875rem; font-weight: 650; }
.status--ok   { color: var(--ok); }
.status--warn { color: var(--warn); }
.status--flag { color: var(--flag); }

/* The mockup body scrolls rather than compressing on narrow screens */
.ui__body--flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ui .ledger { min-width: 300px; }
.ui .ui__body .chart { min-width: 260px; }

/* Source icon in ledger rows */
.src {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.src__badge {
  width: 20px; height: 20px; flex: none;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; font-weight: 800; color: var(--ink-2);
  letter-spacing: -0.02em;
}

/* Exception / inbox rows */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem clamp(0.75rem, 0.5rem + 0.8vw, 1.1rem);
  border-bottom: 1px solid var(--line);
}
.inbox__item:last-child { border-bottom: 0; }
.inbox__flag {
  width: 26px; height: 26px; flex: none;
  border-radius: var(--r-sm);
  background: var(--flag-bg);
  color: var(--flag);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 800;
}
.inbox__flag--warn { background: var(--warn-bg); color: var(--warn); }
.inbox__flag--info { background: var(--info-bg); color: var(--info); }
.inbox__text { flex: 1 1 auto; min-width: 0; }
.inbox__label { font-weight: 650; color: var(--ink); font-size: var(--fs-xs); }
.inbox__detail {
  font-size: 0.6875rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox__action { flex: none; }

/* Chart: inline SVG bars + line */
.chart { width: 100%; height: auto; display: block; }
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__bar { fill: var(--accent-300); }
.chart__axis { font-size: 9px; fill: var(--ink-4); font-family: var(--font-sans); }

.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: 0.6875rem; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); display: block; }
.legend i.is-muted { background: var(--accent-300); }

/* Key/value summary panel */
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-xs);
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list .k { color: var(--ink-3); }
.kv-list .v { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

.delta { font-size: 0.6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--ok); }
.delta--down { color: var(--flag); }

/* Avatar cluster (abstract, non-photographic) */
.team-row { display: flex; align-items: center; gap: 0.75rem; }
.faces { display: flex; flex: none; }
.faces span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--surface-3);
  color: var(--ink-3);
  font-size: 0.625rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.faces span:first-child { margin-left: 0; }
.faces span:nth-child(1) { background: var(--accent-100); color: var(--accent-700); }
.faces span:nth-child(2) { background: var(--olive-100); color: var(--olive); }
.faces span:nth-child(3) { background: var(--info-bg); color: var(--info); }
.faces span.faces__more { background: var(--surface-3); color: var(--ink-3); }

/* Integration tile */
.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.int-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 96px;
  transition: background-color .16s ease;
}
.int-tile:hover { background: var(--surface-2); }
.int-tile__top { display: flex; align-items: center; gap: 0.6rem; }
.int-tile__glyph {
  width: 26px; height: 26px; flex: none;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.int-tile__glyph--olive { background: var(--olive); }
.int-tile__glyph--accent { background: var(--accent); }
.int-tile__glyph--info { background: var(--info); }
.int-tile__glyph--warn { background: var(--warn); }
.int-tile__name { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.int-tile__cat { font-size: 0.6875rem; color: var(--ink-3); }

/* Logo/trust strip (text-only wordmarks — no third-party brand art) */
.strip-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.strip {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 2.5vw, 2.75rem);
  flex-wrap: wrap;
}
.strip__item {
  font-size: 0.9688rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .16s ease;
}
.strip__item:hover { color: var(--ink); }

/* Trust/integration strip: label first, marks after, wrapping without cramping */
.strip--centered { justify-content: space-between; row-gap: 0.75rem; }
.strip--centered .strip-label { flex: 0 0 auto; }
@media (max-width: 768px) {
  .strip--centered { justify-content: flex-start; }
  .strip--centered .strip-label { flex: 1 0 100%; margin-bottom: 0.35rem; }
}

/* ==========================================================================
   11. PROCESS + FLOW
   ========================================================================== */

.flow {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.flow__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1.5fr) minmax(0, 1.1fr) auto;
  gap: var(--sp-4);
  align-items: center;
  padding: 1rem clamp(1rem, 0.7rem + 1vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.flow__row:last-child { border-bottom: 0; }
.flow__row:nth-child(odd) { background: var(--surface-2); }
.flow__num {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: var(--fs-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.flow__name { font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }
.flow__desc { font-size: var(--fs-xs); color: var(--ink-3); }
.flow__tag { justify-self: end; }

/* Owner band showing agent vs human split */
.owner-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.owner-band__col {
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border-right: 1px solid var(--line);
  text-align: center;
}
.owner-band__col:last-child { border-right: 0; }
.owner-band__col h4 { margin-bottom: 0.25rem; }
.owner-band__col p { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.owner-band__figure {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.15rem;
  color: var(--accent-text);
}

/* ==========================================================================
   12. STAT / NUMBER STRIPS
   ========================================================================== */

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-band--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-band__cell {
  padding: clamp(1.2rem, 1rem + 1.2vw, 2rem);
  border-right: 1px solid var(--line);
}
.stat-band__cell:last-child { border-right: 0; }
.stat-band__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.5rem;
}
.stat-band__value {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.stat-band__value em { font-style: normal; color: var(--accent-text); }
.stat-band__desc { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; line-height: 1.5; }

/* ==========================================================================
   13. ACCORDION (FAQ)
   ========================================================================== */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 1.15rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: clamp(0.9688rem, 0.93rem + 0.2vw, 1.0625rem);
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.4;
  cursor: pointer;
  transition: color .16s ease;
}
.faq-q:hover { color: var(--accent-text); }
.faq-q__icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  margin-top: 0.15rem;
  color: var(--ink-4);
  transition: transform .22s ease, color .16s ease;
}
.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity .2s ease, transform .22s ease;
}
.faq-q__icon::before { left: 3px; right: 3px; top: 10px; height: 2px; }
.faq-q__icon::after  { top: 3px; bottom: 3px; left: 10px; width: 2px; }
.faq-item.is-open .faq-q { color: var(--accent-text); }
.faq-item.is-open .faq-q__icon { color: var(--accent-text); transform: rotate(180deg); }
.faq-item.is-open .faq-q__icon::after { opacity: 0; }

.faq-a {
  overflow: hidden;
  height: 0;
  transition: height .26s ease;
}
.faq-a__inner {
  padding: 0 3rem clamp(1.15rem, 1rem + 0.6vw, 1.6rem) 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 60rem;
}
.faq-a__inner p { margin-bottom: var(--sp-3); }
.faq-a__inner p:last-child { margin-bottom: 0; }
.faq-a__inner ul { margin: 0 0 var(--sp-3); }

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.faq-split__aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   14. TABS
   ========================================================================== */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
}
.tabs__tab {
  flex: 1 1 auto;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
.tabs__tab:focus-visible { outline: none; box-shadow: var(--focus); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .3s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   15. TABLES + COMPARISON
   ========================================================================== */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.cmp th, .cmp td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 1;
}
.cmp thead th.is-highlight { color: var(--accent-text); background: var(--accent-050); }
.cmp tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--ink-2); }
.cmp .is-highlight { background: rgba(194, 69, 45, 0.035); }
.cmp .yes { color: var(--ok); font-weight: 650; }
.cmp .no  { color: var(--ink-4); }
.cmp__group th {
  background: var(--surface-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

/* Two-column comparison */
.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.versus__col { padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); }
.versus__col:first-child { border-right: 1px solid var(--line); background: var(--surface-2); }
.versus__tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.75rem;
}
.versus__col--accent .versus__tag { color: var(--accent-text); }
.versus__col h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }

/* ==========================================================================
   16. FORMS
   ========================================================================== */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1.1rem + 1.4vw, 2.25rem);
  box-shadow: var(--sh-2);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-4);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field .req { color: var(--accent-text); margin-left: 2px; }
.field .hint { font-size: 0.75rem; color: var(--ink-4); }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  /* A hairline fill distinguishes the control so the accessible 3:1 boundary
     can stay thin rather than heavy. */
  background: #FDFCFA;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.62rem 0.75rem;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
  appearance: none;
}
.textarea { min-height: 118px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236B6F76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.1rem;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--flag);
  background: #FFFCFB;
}
.field__error {
  font-size: 0.75rem;
  color: var(--flag);
  font-weight: 600;
  min-height: 0;
  display: none;
}
.field.has-error .field__error { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.55;
}
.check input { margin: 0.18rem 0 0; flex: none; width: 15px; height: 15px; accent-color: var(--accent-text); }

.form-status {
  margin-top: var(--sp-4);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-error {
  display: block;
  background: var(--flag-bg);
  color: var(--flag);
  border: 1px solid #EFCFC6;
}

/* Success state replaces the form */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(1.5rem, 1.2rem + 2vw, 3rem) 1rem;
}
.form-success.is-visible { display: block; animation: fadeUp .4s ease both; }
.form-success__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.form-success h3 { margin-bottom: var(--sp-3); }
.form-success p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 34rem; margin-inline: auto; }
.form-success__meta {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.is-hidden { display: none !important; }

/* Contact side panel */
.contact-aside { display: grid; gap: var(--sp-4); }
.contact-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line__icon {
  width: 34px; height: 34px; flex: none;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-line h4 { margin: 0 0 0.15rem; font-size: var(--fs-sm); }
.contact-line .contact-line__title { margin: 0 0 0.15rem; font-size: var(--fs-sm); line-height: 1.35; }
.contact-line p { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.site-footer__brand { max-width: 24rem; }
.site-footer__brand .brand { margin-bottom: var(--sp-4); }
.site-footer__desc { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-4); }
.site-footer__domain {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-footer__col h4 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-4);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 0.55rem; }
.site-footer__list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.site-footer__list a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-5) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.site-footer__legal a { color: var(--ink-3); text-decoration: none; }
.site-footer__legal a:hover { color: var(--accent-text); }
.site-footer__stamp {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.05rem;
  color: var(--accent-300);
  transform: rotate(-3deg);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */

/* Final CTA band */
.cta-band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}
.cta-band h2 { margin-bottom: var(--sp-3); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: flex-end;
}
.cta-stamp {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  border: 1.5px solid var(--accent-300);
  color: var(--accent-300);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  display: none;
}
@media (min-width: 1200px) { .cta-stamp { display: block; } }

/* The rotated caption needs the wider gutter, so only show it on large screens */
@media (max-width: 1199px) { .vertical-caption { display: none; } }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--sp-2) !important; }
.mb-3 { margin-bottom: var(--sp-3) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mb-5 { margin-bottom: var(--sp-5) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mt-7 { margin-top: var(--sp-7) !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-3 { gap: var(--sp-3) !important; }
.gap-4 { gap: var(--sp-4) !important; }
.border-top { border-top: 1px solid var(--line) !important; }

/* ==========================================================================
   19. MOTION + SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .nav { gap: 0; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.875rem; }
  .header-actions .link-quiet { display: none; }
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); row-gap: var(--sp-6); }
}

@media (max-width: 992px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: var(--sp-2); }
  .header-actions .link-quiet {
    display: inline-block;
    font-size: var(--fs-xs);
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
  }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .hero__copy { max-width: none; }
  .vertical-caption { display: none; }
  .margin-note { display: none; }

  .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .split,
  .split--wide-left,
  .split--wide-right { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }

  .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--sp-4); }
  .sec-head__aside { padding-bottom: 0; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rail, .rail--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
  .rail__step:not(:last-child)::after { display: none; }

  .faq-split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .faq-split__aside { position: static; }

  .stat-band--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band--4 .stat-band__cell:nth-child(2) { border-right: 0; }
  .stat-band--4 .stat-band__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .cta-band__inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .cta-band__actions { justify-content: flex-start; }

  .flow__row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; row-gap: 0.35rem; }
  .flow__desc { grid-column: 2 / -1; }
  .flow__tag { grid-row: 1; grid-column: 3; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stat-band, .stat-band--4 { grid-template-columns: minmax(0, 1fr); }
  .stat-band__cell,
  .stat-band--4 .stat-band__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-band__cell:last-child,
  .stat-band--4 .stat-band__cell:last-child { border-bottom: 0; }

  .versus { grid-template-columns: minmax(0, 1fr); }
  .versus__col:first-child { border-right: 0; border-bottom: 1px solid var(--line); }

  .owner-band { grid-template-columns: minmax(0, 1fr); }
  .owner-band__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .owner-band__col:last-child { border-bottom: 0; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .def-row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .def-row dt { padding-top: 0; }

  .tabs__list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs__tab { flex: 0 0 auto; }

  .cta-band__actions .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }

  .faq-a__inner { padding-right: 0; }

  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow__row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-block: 1.1rem; }
  .flow__desc, .flow__tag { grid-column: auto; grid-row: auto; justify-self: start; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --fs-body: 0.9688rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .announce { font-size: var(--fs-xs); }
  .announce__inner { padding-right: 2rem; }
  .brand { font-size: 1.15rem; }
  .brand__mark { width: 27px; height: 27px; }
  .int-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Print: keep legal pages readable */
@media print {
  .site-header, .announce, .mobile-nav, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
}


/* ==========================================================================
   Dark-surface button resolution
   --------------------------------------------------------------------------
   In a dark context the default button is a light plate with dark ink, because
   the accent token resolves to a light tint there. The outline variants invert
   that: transparent plate, light label. Stated explicitly so the outcome does
   not depend on rule order.
   ========================================================================== */

.card--dark .btn,
.section--dark .btn {
  --btn-bg: var(--accent-300);
  --btn-fg: var(--dark);
  --btn-bd: var(--accent-300);
  color: var(--dark);
}
.card--dark .btn:hover,
.section--dark .btn:hover {
  --btn-bg: #F2CDC1;
  --btn-bd: #F2CDC1;
  color: var(--dark);
}

/* Outline and ghost variants invert the plate: transparent fill, light label. */
.card--dark .btn--outline-light,
.section--dark .btn--outline-light,
.card--dark .btn--ghost,
.section--dark .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #FFFFFF;
  --btn-bd: rgba(255, 255, 255, 0.34);
  color: #FFFFFF;
}
.card--dark .btn--outline-light:hover,
.section--dark .btn--outline-light:hover {
  --btn-bg: #3A3E43;
  --btn-bd: rgba(255, 255, 255, 0.62);
  color: #FFFFFF;
}

/* The light variant keeps a light plate with dark ink. */
.card--dark .btn--light,
.section--dark .btn--light {
  --btn-bg: #FFFFFF;
  --btn-fg: var(--dark);
  --btn-bd: #FFFFFF;
  color: var(--dark);
}
