/* Wiodo.com — shared styles
 * Dark-first, terminal-leaning, mono & sans.
 */

:root {
  --bg: #0a0b0d;
  --bg-1: #101114;
  --bg-2: #16181c;
  --bg-3: #1c1f24;
  --line: #22262c;
  --line-2: #2c3138;
  --fg: #e7e5df;
  --fg-1: #b8b5ad;
  --fg-2: #7a786f;
  --fg-3: #50504a;
  --accent: #0489fc;                       /* Wiodo blue */
  --accent-dim: rgba(4, 137, 252, 0.14);
  --accent-ink: #ffffff;
  --warn: oklch(0.8 0.15 60);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --radius: 4px;
  --maxw: 1280px;
  --pad: clamp(16px, 3vw, 40px);

  /* ── Spacing scale ── 4px base; --space-N = N × 4px. Use for padding/margin/gap. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Type scale ── 15px base, ~1.2 modular. xs→3xl are fixed; display-* stay fluid. */
  --text-xs: 11px;      /* eyebrows, labels, mono captions */
  --text-sm: 13px;      /* mono UI: nav, buttons, table/body mono */
  --text-base: 15px;    /* sans body (matches html font-size) */
  --text-lg: 18px;      /* lead paragraphs, hero-sub */
  --text-xl: 20px;      /* h3 */
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-display-md: clamp(28px, 3.6vw, 44px);  /* current h2 */
  --text-display-lg: clamp(40px, 6vw, 76px);    /* current h1 */

  /* ── Line-height scale ── unitless; pairs with the type scale. */
  --leading-none: 1;        /* single-line labels, icon rows */
  --leading-tight: 1.1;     /* large headings */
  --leading-snug: 1.3;      /* subheads, ascii, compact UI */
  --leading-normal: 1.5;    /* body default (matches base line-height) */
  --leading-relaxed: 1.6;   /* roomy prose blocks */
  --leading-loose: 1.7;     /* terminal / mono output */
}

html[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-1: #ecebe4;
  --bg-2: #e3e1d9;
  --bg-3: #d9d6cb;
  --line: #d0ccbf;
  --line-2: #b8b3a3;
  --fg: #111214;
  --fg-1: #3a3c40;
  --fg-2: #64665d;
  --fg-3: #8a8c82;
  --accent: #0489fc;
  --accent-dim: rgba(4, 137, 252, 0.12);
  --accent-ink: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────
 * Breakpoint convention (desktop-first; max-width). Phase-1 standard.
 * CSS vars can't be used inside @media conditions, so this comment is the
 * documented source of truth; per-page @media queries get aligned to these
 * values in a later phase. Full-desktop layout is the base (no query),
 * with content capped by --maxw (1280px).
 *
 *   Mobile    ≤  640px   small phones            (consolidates 480/560/600)
 *   Tablet    ≤  768px   large phones / tablets   (consolidates 720/780)
 *   Desktop   ≤ 1024px   small laptops           (consolidates 900/1100)
 *   Wide       > 1024px  base · no query · content caps at 1280px
 * ───────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}

body { overflow-x: clip; }

.btn-label-short { display: none; }

body {
  background-image:
    radial-gradient(1200px 600px at 85% -20%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    linear-gradient(to bottom, var(--bg), var(--bg));
  min-height: 100vh;
}

/* subtle grid — removed per request */

main, header, footer, section { position: relative; z-index: 1; }

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

/* ─── Typography ─── */
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0; color: var(--fg-1); }

/* ─── Layout ─── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* ─── Navbar ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center;
  color: var(--fg);
}
.logo-lockup {
  display: inline-flex; align-items: center;
  color: var(--fg);
}
.logo-lockup img {
  height: 50px;
  width: auto;
  display: block;
}
.logo-lockup svg {
  height: 22px;
  width: auto;
  display: block;
}
/* footer uses a slightly larger lockup */
footer.site .logo-lockup img { height: 54px; }
footer.site .logo-lockup svg { height: 28px; }
/* invert lockup on light theme so colored mark stays vibrant; PNG is bright on dark by default */
html[data-theme="light"] .logo-lockup img { filter: none; }
.logo-mark {
  width: 26px; height: 26px;
  display: inline-flex;
  color: var(--fg);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo b { font-weight: 600; }
.logo span { color: var(--fg-2); }

.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-1);
}
.nav-links a.active { color: var(--fg); }
.nav-links a { position: relative; }
.nav-links a.active::before {
  content: ""; position: absolute; inset: auto 0 -19px 0; height: 1px; background: var(--accent);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-signin {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-1);
  padding: 8px 4px;
  transition: color .15s;
}
.nav-signin:hover { color: var(--fg); }
@media (max-width: 480px) { .nav-signin { display: none; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.btn:hover { border-color: var(--fg-2); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
}
.btn svg { width: 12px; height: 12px; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--fg-1);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-2); }

/* ─── Hero ─── */
.hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-top: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 span.accent {
  color: var(--accent);
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--fg-1);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero-meta {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
}
.hero-meta b { color: var(--fg); font-weight: 500; }

.hero-form {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  max-width: 520px;
}
.hero-form input {
  flex: 1 1 260px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-1);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.hero-form input:focus { border-color: var(--accent); }
.hero-form .btn { height: 44px; }
.hero-form-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
}

/* ─── Terminal / hero viz ─── */
.term {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6), 0 0 0 1px color-mix(in oklab, var(--accent) 0%, transparent);
}
.term-head {
  display: flex; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  gap: 10px;
}
.term-dots { display: flex; gap: 6px; margin-right: 6px; }
.term-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
}
.term-title { flex: 1; }
.term-status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
}
.term-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.term-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-1);
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.term-body::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-1));
  pointer-events: none;
}
.term-body .line { white-space: pre-wrap; word-break: break-word; }
.term-body .line .t { color: var(--fg-3); margin-right: 12px; }
.term-body .line .lvl { display: inline-block; width: 50px; color: var(--fg-2); }
.term-body .line .lvl.info { color: var(--accent); }
.term-body .line .lvl.run  { color: oklch(0.78 0.06 230); }
.term-body .line .lvl.ok   { color: var(--accent); }
.term-body .line .lvl.warn { color: var(--warn); }
.term-body .line .k { color: var(--fg); }
.term-body .cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* graph side */
.graph {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--bg-1);
}
.graph-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; justify-content: space-between;
}

/* ─── Section header ─── */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head .sec-title { max-width: 64ch; }
.sec-head h2 { margin-top: 12px; text-wrap: balance; }
.sec-head p { margin-top: 14px; max-width: 54ch; }
.sec-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.18em;
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.steps > .step:last-child { border-right: none; }
@media (max-width: 900px) {
  .steps > .step:nth-child(2n) { border-right: none; }
}
.step-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: 0.92;
}
.step-icon svg { width: 100%; height: 100%; stroke-width: 0.7; }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.12em;
}
.step h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 500;
}
.step p {
  margin-top: 10px;
  color: var(--fg-1);
  font-size: 13.5px;
}
.step .tag {
  margin-top: 16px;
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-2);
}

/* ─── Metrics ─── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.metric-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: 0.92;
}
.metric-icon svg { width: 100%; height: 100%; stroke-width: 0.7; }
.metrics > .metric:last-child { border-right: none; }
@media (max-width: 900px) {
  .metrics > .metric:nth-child(2n) { border-right: none; }
  .metrics > .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.metric .num {
  font-family: var(--mono);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 2px;
}
.metric .num .unit { font-size: 18px; color: var(--fg-2); margin-left: 4px; }
.metric .lbl {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}
.metric .sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-1);
  max-width: 30ch;
  text-wrap: pretty;
}

/* ─── Use cases ─── */
.cases {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
  min-height: 480px;
}
@media (max-width: 780px) { .cases { grid-template-columns: 1fr; } }

.case-tabs {
  border-right: 1px solid var(--line);
  padding: 8px;
  background: var(--bg-2);
}
@media (max-width: 780px) { .case-tabs { border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; } }
.case-tab {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 12.5px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
  transition: background .15s, color .15s, border-color .15s;
}
@media (max-width: 780px) {
  .case-tab { flex: 0 0 auto; margin-bottom: 0; margin-right: 4px; }
}
.case-tab:hover { color: var(--fg); }
.case-tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--line-2);
}
.case-tab .k { color: var(--fg-3); font-size: 11px; }

.case-body { padding: 28px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.case-body h3 { font-size: 22px; font-weight: 500; }
.case-body .case-sub { font-size: 14px; color: var(--fg-1); margin-top: 8px; max-width: 60ch; text-wrap: pretty; }
.case-flow {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.case-flow .row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12.5px;
}
.case-flow .row .agent { color: var(--accent); }
.case-flow .row .desc { color: var(--fg-1); }
.case-flow .row .dur { color: var(--fg-3); }
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.case-stats .stat { padding: 16px; border-right: 1px solid var(--line); }
.case-stats .stat:last-child { border-right: none; }
.case-stats .stat .num { font-family: var(--mono); font-size: 22px; color: var(--fg); }
.case-stats .stat .lbl { font-family: var(--mono); font-size: 11px; color: var(--fg-2); margin-top: 4px; }

/* ─── Pricing ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  padding: 28px;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.pricing > .plan:last-child { border-right: none; }
@media (max-width: 900px) {
  .pricing > .plan { border-right: none; border-bottom: 1px solid var(--line); }
  .pricing > .plan:last-child { border-bottom: none; }
}
.plan.featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, var(--bg-1)), var(--bg-1));
  position: relative;
}
.plan.featured::before {
  content: "RECOMMENDED";
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 2px;
}
.plan-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.plan-price {
  margin-top: 16px;
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono);
  font-size: 44px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.plan-price .per { font-size: 13px; color: var(--fg-2); }
.plan-onboarding { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.02em; }
.plan-desc { margin-top: 10px; font-size: 13px; color: var(--fg-1); min-height: 3em; text-wrap: pretty; }
.plan .btn { margin-top: 20px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--fg-1); }
.plan ul li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  display: flex; gap: 10px; align-items: flex-start;
}
.plan ul li::before {
  content: "+";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ─── Security ─── */
.security {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .security { grid-template-columns: 1fr; } }

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.badge {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
}
.badge .mark {
  font-size: 20px;
  font-family: var(--serif);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.badges .badge:nth-child(3n) { border-right: none; }
.badges .badge:nth-last-child(-n+3) { border-bottom: none; }

.sec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
.sec-list li {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.sec-list li:last-child { border-bottom: none; }
.sec-list li .k {
  font-family: var(--mono); font-size: 11px; color: var(--fg-2);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 2px;
}
.sec-list li .v {
  font-size: 14px; color: var(--fg); font-family: var(--mono);
}
.sec-list li .v em {
  font-style: normal; color: var(--fg-1); display: block; margin-top: 4px;
  font-family: var(--sans); font-size: 13px;
}

/* ─── Waitlist ─── */
.waitlist {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 0% 0%, var(--accent-dim), transparent 60%),
    var(--bg-1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 780px) { .waitlist { grid-template-columns: 1fr; } }
.waitlist .label { color: var(--accent); }
.waitlist h2 { margin-top: 12px; }
.waitlist p { margin-top: 12px; max-width: 44ch; }
.invite-from {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.invite-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.invite-meta { display: flex; flex-direction: column; gap: 2px; }
.invite-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.invite-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.waitlist .form-wrap { display: flex; flex-direction: column; gap: 10px; }
.waitlist-success {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding: 14px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: var(--accent-dim);
  display: none;
}
.waitlist-success.show { display: block; }

/* ─── Footer ─── */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 {
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 500;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:hover { color: var(--fg); }
.foot-bottom {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--fg-3);
}

/* ─── About page specifics ─── */
.about-hero {
  padding: clamp(48px, 6vw, 96px) var(--pad) clamp(32px, 4vw, 56px);
  border-top: none;
}
.about-hero h1 { max-width: 14ch; }
.about-hero p { margin-top: 24px; max-width: 64ch; font-size: 17px; text-wrap: pretty; }

.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-1); overflow: hidden;
}
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 28px; border-right: 1px solid var(--line); }
.principles .principle:last-child { border-right: none; }
@media (max-width: 900px) {
  .principles .principle { border-right: none; border-bottom: 1px solid var(--line); }
  .principles .principle:last-child { border-bottom: none; }
}
.principle .k {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.14em;
}
.principle h3 { margin-top: 12px; font-size: 20px; }
.principle p { margin-top: 10px; font-size: 14px; }

.team {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
.teammate {
  border: 1px solid var(--line); border-radius: 6px; padding: 16px;
  background: var(--bg-1);
}
.teammate .photo {
  aspect-ratio: 1;
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 8px, var(--bg-3) 8px 16px);
  background-size: cover;
  background-position: center top;
  border: 1px dashed var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  border-radius: 4px;
  margin-bottom: 14px;
}
.teammate h4 { font-size: 15px; font-weight: 500; }
.teammate .role { font-family: var(--mono); font-size: 11px; color: var(--fg-2); margin-top: 4px; letter-spacing: 0.08em; }

/* ─── Pricing page specifics ─── */
.ppage-hero { padding: clamp(48px, 6vw, 96px) var(--pad) clamp(24px, 3vw, 40px); border-top: none; text-align: left; }
.ppage-hero p { max-width: 64ch; margin-top: 16px; font-size: 17px; text-wrap: pretty; }

.compare {
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  background: var(--bg-1);
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
.compare th, .compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare th:last-child, .compare td:last-child { border-right: none; }
.compare tr:last-child td { border-bottom: none; }
.compare thead th {
  background: var(--bg-2);
  font-weight: 500;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.compare thead th.feat-col { color: var(--fg-2); }
.compare thead th.featured { color: var(--accent); }
.compare tbody th {
  color: var(--fg-1);
  font-weight: 400;
}
.compare td { color: var(--fg); }
.compare .muted { color: var(--fg-3); }
.compare .check { color: var(--accent); }

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 780px) { .faq { grid-template-columns: 1fr; } }
.faq .q {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq .q:nth-child(2n) { border-right: none; }
.faq .q h4 { font-size: 16px; font-weight: 500; font-family: var(--sans); }
.faq .q p { margin-top: 10px; font-size: 14px; color: var(--fg-1); }

/* ─── Tweaks panel ─── */
.tweaks {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 100;
  width: 260px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  display: none;
}
.tweaks.show { display: block; }
.tweaks header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.tweaks header .title {
  color: var(--fg); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px;
}
.tweaks header .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.tweaks .body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tweaks .row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tweaks .seg {
  display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.tweaks .seg button {
  border: none; background: transparent; color: var(--fg-1); font-family: var(--mono); font-size: 11px;
  padding: 6px 10px; cursor: pointer;
}
.tweaks .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* utility */
.text-accent { color: var(--accent); }
.ascii { font-family: var(--mono); white-space: pre; color: var(--fg-2); font-size: 12px; line-height: 1.3; }

/* ─── Responsive overrides ─── */

/* Founder block on About */
.team.team-founder {
  display: grid;
  grid-template-columns: var(--founder-col, 480px) 1fr;
}
@media (max-width: 780px) {
  .team.team-founder { grid-template-columns: 1fr; gap: 24px !important; }
}

/* Compare table — horizontal scroll on mobile */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
.compare-wrap > .compare {
  border: none;
  border-radius: 0;
}
@media (max-width: 780px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-wrap > .compare { min-width: 640px; }
}

@media (max-width: 780px) {
  /* Nav */
  .nav-inner { height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .logo-lockup img { height: 42px; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    font-size: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a.active::before { bottom: -8px; }
  .nav-cta { gap: 6px; flex-shrink: 0; }
  .nav-cta .btn { padding: 0 10px; font-size: 12px; height: 34px; }
  .nav-cta .btn .btn-label-long { display: none; }
  .nav-cta .btn .btn-label-short { display: inline; }
  .theme-toggle { width: 34px; height: 34px; }

  /* Workflow tabs — kill the 100% width and let them be a horizontal strip */
  .cases { min-width: 0; }
  .case-tabs { min-width: 0; max-width: 100%; }
  .case-tab { width: auto; flex: 0 0 auto; }

  /* Section padding */
  section { padding: 56px 0; }

  /* Hero */
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .hero-sub { font-size: 16px; margin-top: 18px; }
  .hero-meta { gap: 16px; margin-top: 24px; font-size: 11px; }
  .hero-form input, .hero-form .btn { height: 42px; }

  /* Section headers */
  .sec-head { gap: 16px; margin-bottom: 28px; }

  /* Workflow cases */
  .cases { min-height: 0; }
  .case-body { padding: 18px; gap: 18px; }
  .case-body h3 { font-size: 18px; }
  .case-flow .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }
  .case-flow .row .agent { font-size: 13px; }
  .case-flow .row .desc { font-size: 12px; }
  .case-flow .row .dur { font-size: 11px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .case-stats .stat:last-child { border-bottom: none; }
  .case-stats .stat .num { font-size: 18px; }
  .case-tab { padding: 8px 10px; font-size: 12px; white-space: nowrap; }

  /* Metrics: 1 col on small phones */
  .metrics { grid-template-columns: 1fr; }
  .metrics > .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metrics > .metric:last-child { border-bottom: none; }
  .metric { padding: 22px; }

  /* Pricing */
  .plan { padding: 22px; }
  .plan-price { font-size: 36px; flex-wrap: wrap; }
  .plan.featured::before { top: 10px; right: 10px; font-size: 9px; }

  /* Waitlist */
  .waitlist { padding: 28px 22px; }

  /* Footer */
  .foot-grid { gap: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Timeline (about) */
  .timeline .row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .timeline .when { padding-top: 0; font-size: 11px; }

  /* About hero */
  .about-hero p { font-size: 15px; margin-top: 18px; }

  /* Pricing hero */
  .ppage-hero p { font-size: 15px; margin-top: 14px; }

  /* FAQ on pricing — single column already at 780; tighten padding */
  .faq .q { padding: 18px; border-right: none; }

  /* Mini FAQ on landing */
  .mini-faq .q { padding: 18px; border-right: none; }

  /* Body grid backdrop a bit smaller */
  body::before { background-size: 40px 40px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 10vw, 56px); }
  h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .hero h1 { font-size: clamp(34px, 11vw, 60px) !important; }
  .container { padding-left: 16px; padding-right: 16px; }
  .logos { padding: 16px; gap: 12px; }
  .logos .label, .logos .l { font-size: 11px; }
  .logos .items { gap: 16px; }
  .nav-links { gap: 12px; }
  .case-stats .stat .num { font-size: 16px; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .badges .badge:nth-child(3n) { border-right: 1px solid var(--line); }
  .badges .badge:nth-child(2n) { border-right: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * PHASE 2 — Refined public pages  (scoped to body.refined)
 * BOLD pass: dramatic type hierarchy, premium spacing, deliberate Wiodo-blue
 * focal points, layered depth (--bg / --bg-1/2/3) + crafted hover states.
 * Same dark/technical identity — every value is a token or theme var, so dark
 * AND light both follow. Applied to pricing.html only for now (calibration).
 * ═══════════════════════════════════════════════════════════════════════ */

/* Generous, premium section rhythm */
.refined section { padding-block: clamp(var(--space-20), 10vw, 128px); }

/* Section headers — bigger heading, accent index */
.refined .sec-head { margin-bottom: var(--space-12); gap: var(--space-8); }
.refined .sec-head h2 { margin-top: var(--space-4); font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; }
.refined .sec-idx { color: var(--accent); letter-spacing: 0.22em; }

/* ── Hero — dramatic headline ── */
.refined .ppage-hero {
  padding-block: clamp(var(--space-20), 13vw, 168px) clamp(var(--space-10), 6vw, 80px);
}
.refined .ppage-hero .eyebrow { font-size: var(--text-xs); }
.refined .ppage-hero h1 {
  margin-top: var(--space-6);
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.97;
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.refined .ppage-hero p {
  margin-top: var(--space-7);
  max-width: 52ch;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
}

/* ── Pricing — substantial, separated, hover-lift cards ── */
.refined .pricing {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border: none;
  background: none;
  overflow: visible;
  border-radius: 0;
}
.refined .pricing > .plan {
  padding: clamp(var(--space-7), 2.6vw, var(--space-10));
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.refined .pricing > .plan:hover {
  transform: translateY(-4px);
  background: var(--bg-2);
  border-color: var(--line-2);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.7);
}
.refined .plan-name { font-size: var(--text-xs); letter-spacing: 0.2em; color: var(--fg-2); }
.refined .plan-price {
  margin-top: var(--space-5);
  font-size: clamp(40px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  flex-wrap: wrap;
}
.refined .plan-price .per { font-size: var(--text-sm); color: var(--fg-2); letter-spacing: 0; }
.refined .plan-onboarding { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--fg-2); }
.refined .plan-desc {
  margin-top: var(--space-4);
  min-height: 3.6em;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
}
.refined .plan .btn { margin-top: var(--space-6); width: 100%; justify-content: center; height: 46px; }
.refined .plan ul { margin-top: var(--space-7); }
.refined .plan ul li { padding: var(--space-3) 0; gap: var(--space-3); font-size: var(--text-sm); color: var(--fg-1); }
.refined .plan ul li::before { color: var(--accent); }

/* Featured — strong blue presence + glow, intensifies on hover */
.refined .plan.featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 13%, var(--bg-1)), var(--bg-1) 68%);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow:
    inset 0 3px 0 var(--accent),
    0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent),
    0 30px 64px -32px color-mix(in oklab, var(--accent) 30%, transparent);
}
.refined .plan.featured:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 16%, var(--bg-1)), var(--bg-1) 66%);
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  box-shadow:
    inset 0 3px 0 var(--accent),
    0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent),
    0 40px 80px -30px color-mix(in oklab, var(--accent) 40%, transparent);
}
.refined .plan.featured::before { top: var(--space-5); right: var(--space-5); letter-spacing: 0.18em; }

/* Primary CTAs — accent glow focal point */
.refined .btn-primary { box-shadow: 0 10px 26px -14px color-mix(in oklab, var(--accent) 65%, transparent); }
.refined .btn-primary:hover { box-shadow: 0 14px 32px -12px color-mix(in oklab, var(--accent) 75%, transparent); }

/* ── Compare table — accent header + column, row hover ── */
.refined .compare { font-size: var(--text-sm); }
.refined .compare th, .refined .compare td { padding: var(--space-4); }
.refined .compare thead th {
  background: var(--bg-2);
  color: var(--fg);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
}
.refined .compare thead th.featured {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-2));
}
.refined .compare tbody th { color: var(--fg-1); }
.refined .compare tbody tr { transition: background .15s ease; }
.refined .compare tbody tr:hover td, .refined .compare tbody tr:hover th {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.refined .compare .check { color: var(--accent); }

/* ── FAQ — bigger questions, hover depth ── */
.refined .faq .q { padding: var(--space-7); transition: background .15s ease; }
.refined .faq .q:hover { background: var(--bg-2); }
.refined .faq .q h4 { font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: -0.01em; }
.refined .faq .q p { margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--fg-1); }

/* ── Waitlist — accent block ── */
.refined .waitlist {
  padding: clamp(var(--space-10), 6vw, 80px);
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  border-color: color-mix(in oklab, var(--accent) 28%, var(--line-2));
  background:
    radial-gradient(720px 360px at 0% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
    var(--bg-1);
}
.refined .waitlist .label { color: var(--accent); letter-spacing: 0.2em; }
.refined .waitlist h2 { margin-top: var(--space-4); font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; }
.refined .waitlist p { margin-top: var(--space-4); font-size: var(--text-lg); line-height: var(--leading-relaxed); max-width: 44ch; }
.refined .waitlist .btn-primary { height: 50px; padding-inline: var(--space-7); }

/* ════ Responsive — consolidated to 640 / 768 / 1024 ════ */
@media (max-width: 1024px) {
  .refined .ppage-hero h1 { font-size: clamp(48px, 8.5vw, 84px); }
}
@media (max-width: 768px) {
  .refined .pricing { grid-template-columns: 1fr; }
  .refined .faq { grid-template-columns: 1fr; }
  .refined .faq .q { border-right: none; }
  .refined .waitlist { grid-template-columns: 1fr; }
  .refined .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .refined .compare-wrap > .compare { min-width: 640px; }
}
@media (max-width: 640px) {
  .refined section { padding-block: var(--space-16); }
  .refined .container { padding-inline: var(--space-4); }
  .refined .ppage-hero { padding-block: var(--space-16) var(--space-10); }
  .refined .ppage-hero h1 { font-size: clamp(40px, 12vw, 60px); max-width: 14ch; }
  .refined .ppage-hero p { font-size: var(--text-lg); }
  .refined .sec-head { margin-bottom: var(--space-8); }
  .refined .sec-head h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .refined .pricing > .plan { padding: var(--space-7); }
  .refined .plan-price { font-size: clamp(40px, 11vw, 48px); }
  .refined .faq .q { padding: var(--space-6); }
  .refined .waitlist { padding: var(--space-8) var(--space-6); }
  .refined .waitlist h2 { font-size: clamp(28px, 7.5vw, 36px); }
}

/* ── Legal pages (privacy / terms) — hierarchy, spacing, readability ──
 * Text-first: bigger confident headings, premium section rhythm, comfortable
 * line-height/measure, restrained accent. No cards. `.refined .legal-page`
 * outranks the page's own inline .legal-page rules (extra class), so it wins. */
.refined .legal-page { max-width: 768px; padding-block: clamp(var(--space-16), 9vw, 112px); }
.refined .legal-page .eyebrow { font-size: var(--text-xs); }
.refined .legal-page h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: var(--space-5) 0 var(--space-4);
}
.refined .legal-page .lede {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-left-color: var(--accent);
  padding-left: var(--space-5);
  margin-block: var(--space-6) var(--space-10);
}
.refined .legal-page .meta-row { padding-block: var(--space-3); margin-bottom: var(--space-8); }
.refined .legal-page .toc { padding: var(--space-5) var(--space-6); margin-bottom: var(--space-12); border-radius: 8px; }
.refined .legal-page section { margin-bottom: var(--space-12); }
.refined .legal-page section h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}
.refined .legal-page section h2 .num { color: var(--accent); }
.refined .legal-page section h3 { margin: var(--space-6) 0 var(--space-2); }
.refined .legal-page p, .refined .legal-page li { font-size: var(--text-base); line-height: var(--leading-loose); }
.refined .legal-page p { margin-bottom: var(--space-3); }
.refined .legal-page table th { background: var(--bg-2); }
@media (max-width: 640px) {
  .refined .legal-page { padding-block: var(--space-12); }
  .refined .legal-page h1 { font-size: clamp(34px, 11vw, 48px); }
  .refined .legal-page .toc ol { columns: 1; }
}

/* ── Homepage (index) — bold type/spacing/accent on its richer structure ──
 * Hero background left as-is (dedicated hero pass later). The pricing preview,
 * waitlist, and section headers already inherit the shared .refined rules. */

/* Hero — sharpen type + premium spacing (headline + bg untouched) */
.refined .hero { padding-block: clamp(var(--space-16), 11vw, 144px) clamp(var(--space-12), 8vw, 104px); }
.refined .hero-sub { margin-top: var(--space-6); font-size: var(--text-xl); line-height: var(--leading-relaxed); max-width: 60ch; color: var(--fg-1); }
.refined .hero-form { margin-top: var(--space-8); }
.refined .hero .btn-primary { height: 52px; padding-inline: var(--space-7); }

/* Partner strip */
.refined .logos { padding-block: var(--space-6); }
.refined .logos .label { font-size: var(--text-xs); letter-spacing: 0.16em; }

/* How it works — separated step cards with hover-lift + accent */
.refined .steps { gap: var(--space-4); border: none; background: none; overflow: visible; border-radius: 0; }
.refined .steps > .step {
  padding: clamp(var(--space-6), 2.2vw, var(--space-8));
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.refined .steps > .step:hover {
  transform: translateY(-3px);
  background: var(--bg-2);
  border-color: var(--line-2);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.7);
}
.refined .step-icon { color: var(--accent); }
.refined .step-num { color: var(--accent); letter-spacing: 0.16em; }
.refined .step h3 { margin-top: var(--space-4); font-size: var(--text-xl); }
.refined .step p { margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* Workflows — accent selected tab, hover rows, bigger panel heading */
.refined .cases { border-radius: 10px; }
.refined .case-tab[aria-selected="true"] {
  background: color-mix(in oklab, var(--accent) 16%, var(--bg));
  color: var(--fg);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2));
}
.refined .case-tab .k { color: var(--accent); }
.refined .case-body h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.refined .case-body .case-sub { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.refined .case-flow .row { transition: border-color .15s ease, background .15s ease; }
.refined .case-flow .row:hover { border-color: var(--line-2); background: var(--bg-2); }
.refined .case-flow .row .agent { color: var(--accent); }
.refined .case-stats .stat .num { font-size: clamp(20px, 2.4vw, 28px); color: var(--fg); }

/* Mini FAQ — match the bold pricing-FAQ treatment */
.refined .mini-faq .q { padding: var(--space-7); transition: background .15s ease; }
.refined .mini-faq .q:hover { background: var(--bg-2); }
.refined .mini-faq h4 { font-size: var(--text-lg); }
.refined .mini-faq p { margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--fg-1); }

/* index responsive — 640 / 768 / 1024 */
@media (max-width: 1024px) {
  .refined .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .refined .hero-sub { font-size: var(--text-lg); }
  .refined .mini-faq { grid-template-columns: 1fr; }
  .refined .mini-faq .q { border-right: none; }
}
@media (max-width: 640px) {
  .refined .steps { grid-template-columns: 1fr; }
  .refined .hero { padding-block: var(--space-14) var(--space-12); }
  .refined .mini-faq .q { padding: var(--space-6); }
}

/* ── About page — reconcile its custom blocks with the bold language ──
 * The .process hero diagram is left intact (already accent/mono on-brand; it
 * keeps its functional 1100px → mobile-list switch). Waitlist + section
 * headers inherit the shared .refined rules above. */

/* Hero */
.refined .about-hero { padding-block: clamp(var(--space-16), 10vw, 132px) clamp(var(--space-12), 7vw, 96px); }
.refined .about-hero h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.035em; line-height: 1.03; }
.refined .about-hero p { margin-top: var(--space-6); font-size: var(--text-lg); line-height: var(--leading-relaxed); max-width: 48ch; }

/* "Why we exist" — confident serif quote */
.refined .about-quote { font-size: clamp(26px, 3.2vw, 42px); line-height: var(--leading-snug); max-width: 24ch; }

/* Principles — separated cards with hover-lift + accent labels */
.refined .principles {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border: none; background: none; overflow: visible; border-radius: 0;
}
.refined .principles > .principle {
  padding: clamp(var(--space-6), 2.4vw, var(--space-8));
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.refined .principles > .principle:hover {
  transform: translateY(-3px);
  background: var(--bg-2);
  border-color: var(--line-2);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.7);
}
.refined .principle .k { color: var(--accent); letter-spacing: 0.16em; }
.refined .principle h3 { margin-top: var(--space-3); font-size: var(--text-xl); }
.refined .principle p { margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* Team — larger names */
.refined .teammate h4 { font-size: var(--text-lg); }
.refined .team .role { color: var(--fg-2); letter-spacing: 0.1em; }

/* About responsive — 768 / 1024 (.process keeps its own 1100 switch) */
@media (max-width: 768px) {
  .refined .principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .refined .about-quote { font-size: clamp(24px, 7vw, 32px); }
}
