/* =============================================================================
   Grow Theory — Components
   Ported from the v4 site's inline styles into real classes, plus the
   vocabulary v4 never had: mobile nav, forms, focus states, tables.
   ========================================================================== */

/* =========================================================================
   BUTTONS — every button in this brand is a full pill.
   Bordered variants carry 1px less padding so optical height matches fills.
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: var(--tr-body);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--d-base) var(--ease),
    border-color     var(--d-base) var(--ease),
    color            var(--d-base) var(--ease),
    transform        var(--d-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-iris-fill); color: #ffffff; }
.btn-primary:hover { background: var(--c-iris-fill-hover); }

.btn-white { background: var(--c-text); color: var(--c-void); }
.btn-white:hover { background: var(--c-linen); }

.btn-ghost {
  padding: 11px 23px;
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text);
}
.btn-ghost:hover { background: var(--c-white-wash); border-color: var(--c-text-muted); }

.btn-sm { padding: 9px 18px; font-size: var(--t-xs); }
.btn-sm.btn-ghost { padding: 8px 17px; }
.btn-lg { padding: 14px 28px; font-size: var(--t-lead); }
.btn-lg.btn-ghost { padding: 13px 27px; }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row-center { justify-content: center; }

/* =========================================================================
   PILLS & BADGES
   ====================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

/* Hero eyebrow — gradient fill with a glowing ember dot */
.pill-hero {
  padding: 5px 14px;
  background: var(--g-eyebrow);
  border: 1px solid var(--c-iris-ring);
  color: var(--c-text);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}
/* The hero pill is the one pill whose text is too long to stay on one line on a
   phone; .pill sets nowrap, which clipped it below ~483px. */
@media (max-width: 520px) {
  .pill-hero { white-space: normal; text-align: center; max-width: 100%; }
}

.pill-hero::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-ember);
  box-shadow: 0 0 8px var(--c-ember);
  flex-shrink: 0;
}

.pill-iris  { background: var(--c-iris-wash);  color: var(--c-iris-text); }
.pill-ember { background: var(--c-ember-wash); color: var(--c-ember); }
.pill-quiet { background: var(--c-white-wash); color: var(--c-text-muted); }

.pill-outline {
  padding: 6px 14px;
  border: 1px solid var(--c-border-subtle);
  color: var(--c-text-body);
  font-size: var(--t-micro);
}

/* NOTE: there is deliberately no release-status badge ("Planned", "Partial").
   A sales page does not publish what it cannot yet do — see docs/claims.md.
   tools/check.mjs fails the build if one reappears. */

/* =========================================================================
   CARDS — border + lift on hover, never a shadow change.
   ====================================================================== */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.card-link {
  display: block;
  transition:
    border-color var(--d-slow) var(--ease),
    transform    var(--d-slow) var(--ease);
}
.card-link:hover { border-color: var(--c-iris-ring); transform: translateY(-2px); }

.card-inner {
  background: var(--c-well);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}

.card-quiet {
  background: var(--c-card);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

/* Featured card — iris border with a corner radial bloom */
.card-featured {
  position: relative;
  overflow: hidden;
  border-color: var(--c-iris);
}
.card-featured::after {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--c-iris-glow), transparent 70%);
  pointer-events: none;
}
.card-featured > * { position: relative; z-index: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--c-white-wash);
  color: var(--c-iris-text);
  margin-bottom: var(--s-4);
}
.card-icon-brand { background: var(--g-brand); color: #ffffff; }

.card h3, .card .card-title {
  font-family: var(--f-display);
  font-size: var(--t-h4);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: var(--s-2);
}
.card p { color: var(--c-text-body); font-size: var(--t-sm); }

/* =========================================================================
   PRODUCT FRAME — the signature. A light product surface floating in a dark
   frame, with an aurora bleeding out behind it and a linen tab on the edge.
   ====================================================================== */
.frame { position: relative; }

.frame::before {
  content: '';
  position: absolute;
  inset: 14% 2%;
  background: linear-gradient(135deg, rgba(86,131,218,0.26), rgba(255,137,100,0.22));
  filter: blur(52px);
  pointer-events: none;
}

.frame-body {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: 8px;
}

.frame-label {
  position: absolute;
  top: -12px;
  left: 14px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--r-md);
  background: var(--c-linen);
  border: 1px solid #d7d7da;
  color: #17191c;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  white-space: nowrap;
}

.frame-screen {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--c-light-line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  overflow: hidden;
}

/* Below 900px the blur is expensive and the label collides with stacked
   content, so both are dialled back rather than removed. */
@media (max-width: 899px) {
  .frame::before { filter: blur(34px); inset: 20% 6%; }
  .frame-label { left: 10px; font-size: 10px; padding: 3px 9px; }
}

/* =========================================================================
   AURORA — hero atmosphere
   ====================================================================== */
.aurora { position: relative; overflow: hidden; isolation: isolate; }

.aurora-beam {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 20%;
  transform: translateX(-50%);
  background: var(--g-aurora);
  filter: blur(70px);
  animation: gt-beam 9s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.aurora-floor {
  position: absolute;
  left: 50%; bottom: -30%;
  width: min(1100px, 130%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,170,129,0.30), transparent 65%);
  filter: blur(40px);
  animation: gt-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gt-beam { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes gt-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }

/* A 70px blur across a full-height element is a real cost on low-end phones */
@media (max-width: 767px) {
  .aurora-beam  { filter: blur(44px); width: 46%; }
  .aurora-floor { filter: blur(30px); }
}

/* =========================================================================
   NAVIGATION
   ====================================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--d-base) ease,
    border-color     var(--d-base) ease,
    backdrop-filter  var(--d-base) ease;
}
.nav.is-scrolled {
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-border-faint);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: 64px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--f-body);
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.brand-word b { font-weight: 700; }
.brand-word span { font-weight: 300; }

.nav-links { display: none; align-items: center; gap: var(--s-1); }
@media (min-width: 1000px) { .nav-links { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  color: var(--c-text-body);
  transition: color var(--d-base) var(--ease), background-color var(--d-base) var(--ease);
}
.nav-link:hover { color: var(--c-text); background: var(--c-white-wash); }
.nav-link[aria-current='page'] { color: var(--c-iris-text); }
.nav-link svg { transition: transform var(--d-base) var(--ease); }
.nav-link[aria-expanded='true'] svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.nav-actions .btn { display: none; }
@media (min-width: 640px) { .nav-actions .btn { display: inline-flex; } }

/* ---- Mega-menu (desktop only) ---- */
.megamenu {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100vw - 2 * var(--gutter)));
  background: var(--c-card);
  border: 1px solid var(--c-overlay);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease), visibility var(--d-base);
}
.megamenu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: gt-pop var(--d-base) var(--ease);
}
@keyframes gt-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.megamenu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-1) var(--s-4); }

.megamenu-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background-color var(--d-base) var(--ease);
}
.megamenu-item:hover { background: var(--c-elevated); }
.megamenu-item b {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 2px;
}
.megamenu-item span { font-size: var(--t-micro); color: var(--c-text-muted); line-height: 1.4; }

.megamenu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border-faint);
  font-size: var(--t-micro);
  color: var(--c-text-muted);
}
.megamenu-foot .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-ember);
  margin-right: 8px;
}

/* ---- Mobile drawer ---- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--c-void);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease), visibility var(--d-base);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--c-border-faint);
  flex-shrink: 0;
}

.drawer-body { padding: var(--s-6) var(--gutter) var(--s-10); }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border-faint);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-text);
  text-align: left;
}
.drawer-link svg { transition: transform var(--d-base) var(--ease); color: var(--c-text-muted); }
.drawer-link[aria-expanded='true'] svg { transform: rotate(180deg); }

.drawer-sub {
  display: grid;
  gap: 2px;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--d-slow) var(--ease);
}
.drawer-sub.is-open { max-height: 720px; }
.drawer-sub a {
  padding: 12px 0 12px 14px;
  border-left: 1px solid var(--c-border-faint);
  font-size: var(--t-sm);
  color: var(--c-text-body);
}
.drawer-sub a:hover { color: var(--c-text); }
.drawer-sub li:first-child a { padding-top: var(--s-4); }

.drawer-cta { margin-top: var(--s-8); display: grid; gap: var(--s-3); }
.drawer-cta .btn { width: 100%; }

body.is-locked { overflow: hidden; }

/* =========================================================================
   MARQUEE
   ====================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: gt-marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-right: clamp(28px, 4vw, 52px);
  opacity: 0.6;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.marquee-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--c-overlay);
  color: var(--c-text-body);
  font-size: 9px;
  font-weight: 700;
}
@keyframes gt-marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   TABS / SEGMENTED CONTROL
   ====================================================================== */
.segmented {
  display: inline-flex;
  gap: var(--s-1);
  padding: var(--s-1);
  background: var(--c-card);
  border: 1px solid var(--c-overlay);
  border-radius: var(--r-pill);
}
.segmented button {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.segmented button[aria-selected='true'] { background: var(--c-text); color: var(--c-void); }

.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tabs button {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  background: var(--c-white-wash);
  color: var(--c-text-body);
  transition: all var(--d-base) var(--ease);
}
.tabs button[aria-selected='true'] { background: var(--c-text); color: var(--c-void); }
.band-light .tabs button { background: var(--c-light-panel); color: #303236; }
.band-light .tabs button[aria-selected='true'] { background: #090a0c; color: #ffffff; }

/* =========================================================================
   ACCORDION — v4's version had no ARIA and unmounted the panel.
   ====================================================================== */
.acc-item { border-bottom: 1px solid var(--c-border-faint); }
.band-light .acc-item { border-bottom-color: #d1d1d1; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  font-size: var(--t-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-text);
  transition: color var(--d-base) var(--ease);
}
.acc-trigger:hover { color: var(--c-iris-text); }
.acc-trigger svg { flex-shrink: 0; color: var(--c-text-muted); transition: transform var(--d-base) var(--ease); }
.acc-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-slow) var(--ease);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 4px 22px;
  max-width: 68ch;
  font-size: var(--t-sm);
  color: var(--c-text-body);
}

/* =========================================================================
   FORMS — none of this existed in v4.
   ====================================================================== */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 7px; }

.field label {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--c-text);
}
.field .req { color: var(--c-ember); margin-left: 2px; }
.field-hint { font-size: var(--t-micro); color: var(--c-text-muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--t-sm);
  transition: border-color var(--d-base) var(--ease), background-color var(--d-base) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--c-decor-dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-border); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-iris);
  box-shadow: 0 0 0 3px var(--c-iris-wash);
}
.textarea { min-height: 128px; resize: vertical; line-height: var(--lh-body); }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395979e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}
.select option { background: var(--c-card); color: var(--c-text); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input {
  appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-card);
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.checkbox input:checked {
  background: var(--c-iris) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--c-iris);
}
.checkbox span { font-size: var(--t-xs); color: var(--c-text-body); }

/* Error state */
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--c-ember); }
.field-error {
  display: none;
  font-size: var(--t-micro);
  color: var(--c-ember);
}
.field.has-error .field-error { display: block; }

.form-status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-subtle);
  background: var(--c-well);
  font-size: var(--t-sm);
}
.form-status.is-ok { border-color: var(--c-ok); color: var(--c-text); }

/* Honeypot — must never be visible or focusable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================================
   VALUE CALCULATOR
   Arithmetic on the visitor's own numbers — it never asserts a result of ours.
   ====================================================================== */
.calc-out {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-border-faint);
}
@media (min-width: 640px) { .calc-out { grid-template-columns: 1fr 1fr; } }

.calc-figure { display: flex; flex-direction: column; gap: var(--s-2); }
.calc-figure .t-stat {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.25rem);
  background: var(--g-brand);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* If background-clip:text is unsupported the gradient is ignored and the
     declared colour shows through, so the number is never invisible. */
  -webkit-text-fill-color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .calc-figure .t-stat { color: var(--c-text); -webkit-text-fill-color: currentColor; }
}
.calc-unit { font-size: var(--t-sm); color: var(--c-text-muted); }

/* Hide the spinners — they invite click-stepping on a figure people type */
.calc input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
.calc input[type='number']::-webkit-outer-spin-button,
.calc input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =========================================================================
   STATS
   ====================================================================== */
.stats { display: grid; gap: var(--s-8); }
@media (min-width: 768px) { .stats-3 { grid-template-columns: repeat(3, 1fr); } }
.stat-item { text-align: center; }
@media (min-width: 768px) {
  .stat-item + .stat-item { border-left: 1px solid var(--c-border-faint); padding-left: var(--s-8); }
  .band-light .stat-item + .stat-item { border-left-color: #e0e0e2; }
}
.stat-item p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--c-text-body); max-width: 30ch; margin-inline: auto; }

/* ---- Practice types: who this is built for ---- */
.verticals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
.vertical {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  color: var(--c-text-strong);
  white-space: nowrap;
}
.vertical::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--g-brand);
  flex-shrink: 0;
}

/* =========================================================================
   COMPARISON TABLE — stacks into definition blocks on small screens
   ====================================================================== */
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.compare th, .compare td { padding: 16px var(--s-4); text-align: left; vertical-align: top; }
.compare thead th {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
.compare tbody tr { border-bottom: 1px solid var(--c-border-faint); }
.compare tbody th { font-weight: 500; color: var(--c-text); }
.compare td { color: var(--c-text-body); }
.compare .is-yes { color: var(--c-iris-text); }

@media (max-width: 767px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding: var(--s-5) 0; }
  .compare tbody th { padding: 0 0 var(--s-3); font-size: var(--t-lead); }
  .compare td { padding: 6px 0 6px 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--t-eyebrow);
    letter-spacing: var(--tr-caps);
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 2px;
  }
}

/* =========================================================================
   FEATURE LIST — checkmark rows
   ====================================================================== */
.checklist { display: grid; gap: 11px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); color: var(--c-text-strong); line-height: 1.45; }
.checklist svg { flex-shrink: 0; margin-top: 2px; color: var(--c-iris-text); }

/* =========================================================================
   NUMBERED STEP ROWS — "01 · Capture"
   ====================================================================== */
.step-num {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-iris-wash);
  color: var(--c-iris-text);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-caps);
  margin-bottom: var(--s-4);
}

/* =========================================================================
   FOOTER
   ====================================================================== */
.footer {
  background: var(--c-void);
  border-top: 1px solid var(--c-border-faint);
  padding: var(--s-14) 0 var(--s-10);
}
.footer-grid { display: grid; gap: var(--s-10); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-12); } }

.footer-brand p { margin-top: var(--s-4); max-width: 30ch; font-size: var(--t-sm); color: var(--c-text-muted); }

.footer h2 {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-4);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: var(--t-sm); color: var(--c-text-muted); transition: color var(--d-base) var(--ease); }
.footer-col a:hover { color: var(--c-text); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border-faint);
  font-size: var(--t-eyebrow);
  color: var(--c-text-muted);
}

/* Compact single-row footer used on sub-pages in v4 — retained as a variant */
.footer-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }

/* =========================================================================
   CTA BAND
   ====================================================================== */
.cta {
  text-align: center;
  padding-block: var(--section-y-lg);
  position: relative;
  overflow: hidden;
}
.cta .t-lead { margin: var(--s-5) auto var(--s-8); max-width: 52ch; }

/* =========================================================================
   MISC
   ====================================================================== */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: var(--c-overlay);
  color: var(--c-text-body);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.divider { height: 1px; background: var(--c-border-faint); border: 0; margin-block: var(--s-10); }

.note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-subtle);
  background: var(--c-well);
  font-size: var(--t-xs);
  color: var(--c-text-body);
}
.note svg { flex-shrink: 0; margin-top: 1px; color: var(--c-text-muted); }
