/* ==========================================================================
   Vyara Digital — dark theme
   Brand: ink #0E1330, accent #8B7BFF, Sora (from logo)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces (built from brand ink #0E1330) */
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --surface: #111114;
  --surface-2: #18181D;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F4F5F7;
  --text-muted: #A1A1AA;   /* 8.1:1 on --bg */
  --text-dim: #85858F;     /* 5.8:1 on --bg */

  /* Brand */
  --accent: #8B7BFF;       /* 6.3:1 on --bg */
  --accent-hover: #A397FF;
  --accent-soft: rgba(139, 123, 255, 0.12);
  --on-accent: #0E1330;    /* 5.9:1 on --accent */
  --success: #3DDC97;
  --danger: #FF8A8A;

  /* Type */
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 250ms;

  --z-header: 100;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary .icon { transition: transform var(--dur) var(--ease-out); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(0, 0, 0, 0.9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.brand-word { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.brand-word b { font-weight: 700; }
.brand-word span { font-weight: 300; }

.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav a:not(.btn) {
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.925rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; cursor: pointer;
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: var(--s-6) 0 var(--s-8); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(139, 123, 255, 0.16), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(190, 140, 255, 0.07), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero-grid > *, .split > *, .cta-grid > *, .faq-wrap > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: var(--s-5);
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.035em; }
.accent-text { color: var(--accent); }
.lead { margin-top: var(--s-5); font-size: 1.125rem; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.925rem; color: var(--text-muted); }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent); }

/* Hero sample dashboard */
.dash {
  margin: 0; padding: var(--s-5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.dash-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.kpi { padding: var(--s-3); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.kpi-label { display: block; font-size: 0.75rem; color: var(--text-dim); }
.kpi-val { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.dash-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 120px;
  margin: var(--s-4) 0; padding: var(--s-3);
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
}
.dash-chart span {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(161, 161, 170, 0.5), rgba(161, 161, 170, 0.15));
  transform-origin: bottom; transition: transform 700ms var(--ease-out);
}
.dash-chart span.hi { background: linear-gradient(180deg, var(--accent), rgba(139, 123, 255, 0.35)); }
.dash.is-hidden .dash-chart span { transform: scaleY(0.2); }
.dash-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted);
}
.dash-rows li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pill { flex: none; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.ok { color: var(--success); background: rgba(61, 220, 151, 0.12); }
.pill.neg { color: var(--danger); background: rgba(255, 138, 138, 0.12); }
.dash figcaption { margin-top: var(--s-3); font-size: 0.8rem; color: var(--text-dim); }

/* Strip ------------------------------------------------------------------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner { display: flex; align-items: center; gap: var(--s-6); padding-top: var(--s-5); padding-bottom: var(--s-5); }
.strip p { flex: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.strip ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.strip li { font-family: var(--font-display); font-weight: 600; font-size: 0.975rem; color: var(--text-muted); }

/* Sections ---------------------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-3);
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
.sub { margin-top: var(--s-4); font-size: 1.075rem; color: var(--text-muted); max-width: 640px; }

.card {
  padding: var(--s-6); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), background-color var(--dur) ease;
}
.card h3 { font-size: 1.2rem; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
.card p { color: var(--text-muted); font-size: 0.975rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.problem .icon.neg { color: var(--danger); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.service:hover, .why-card:hover { border-color: rgba(139, 123, 255, 0.4); transform: translateY(-3px); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(139, 123, 255, 0.25);
}
.icon-tile .icon { width: 22px; height: 22px; }

/* Reporting split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.checklist { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-muted); }
.checklist b { color: var(--text); font-weight: 600; }
.checklist .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); stroke-width: 3;
}
/* Lead journey timeline */
.journey {
  margin: 0; padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.journey-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.journey-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.journey-steps { position: relative; display: grid; gap: var(--s-5); }
.journey-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-4); align-items: center; }
.journey-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 20px; width: 2px; height: calc(100% + var(--s-5));
  background: var(--border-strong);
}
.journey-steps li:nth-last-child(2)::before { background: linear-gradient(180deg, var(--border-strong), var(--accent)); }
.j-dot { align-self: start; }
.journey-steps li > div { min-width: 0; }
.j-dot {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-muted);
}
.j-dot .icon { width: 18px; height: 18px; }
.j-title { font-family: var(--font-display); font-weight: 600; font-size: 0.975rem; }
.j-meta { font-size: 0.85rem; color: var(--text-muted); overflow-wrap: anywhere; }
.j-when {
  font-size: 0.75rem; font-weight: 600; color: var(--text-dim); white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border);
}
.is-won .j-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.is-won .j-dot .icon { stroke-width: 3; }
.is-won .j-when { color: var(--accent); border-color: rgba(139, 123, 255, 0.4); }
.journey-foot {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
}
.journey-foot .icon { color: var(--accent); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border-strong) 60%);
}
.step { position: relative; }
.step-num {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--bg-alt); color: var(--accent); border: 1px solid rgba(139, 123, 255, 0.5);
}
.step:first-child .step-num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step h3 { font-size: 1.1rem; font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.step p { font-size: 0.95rem; color: var(--text-muted); }

/* Niches */
.niches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.niche { padding: var(--s-6); background: var(--bg); transition: background-color var(--dur) ease; }
.niche:hover { background: var(--surface); }
.niche .icon { width: 26px; height: 26px; color: var(--accent); }
.niche h3 { font-size: 1.1rem; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
.niche p { font-size: 0.95rem; color: var(--text-muted); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.founding {
  margin-top: var(--s-7); padding: var(--s-7);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-7);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(139, 123, 255, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid rgba(139, 123, 255, 0.3);
}
.founding h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; margin-bottom: var(--s-3); }
.founding p:not(.kicker) { color: var(--text-muted); max-width: 620px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
.faq { display: grid; gap: var(--s-3); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--dur) ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 600; font-size: 1.025rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); }

/* CTA + form */
.cta-section { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 20% 20%, rgba(139, 123, 255, 0.13), transparent 70%);
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.cta-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.mini-head { font-size: 1rem; font-weight: 600; margin-top: var(--s-6); }
.cta-copy .checklist { margin-top: var(--s-4); }
.next-steps { counter-reset: n; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.next-steps li { counter-increment: n; display: flex; gap: var(--s-3); color: var(--text-muted); }
.next-steps li::before {
  content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  border: 1px solid var(--border-strong); color: var(--text);
}

.audit-form {
  padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.audit-form h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: var(--s-5); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field label { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg); font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.25);
}
.field.invalid input { border-color: var(--danger); }
.err { min-height: 0; font-size: 0.85rem; color: var(--danger); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: var(--s-3); font-size: 0.95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--success); }
.form-status.fail { color: var(--danger); }
.form-note { margin-top: var(--s-3); font-size: 0.825rem; color: var(--text-dim); text-align: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-brand p { margin-top: var(--s-3); color: var(--text-muted); font-size: 0.95rem; }
.footer-links { display: grid; gap: var(--s-1); align-content: start; }
.footer-links a, .footer-contact a { color: var(--text-muted); text-decoration: none; padding: 6px 0; font-size: 0.95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { display: grid; gap: var(--s-2); align-content: start; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); }
.footer-base {
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  padding-top: var(--s-5); padding-bottom: var(--s-5); border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-dim);
}
.footer-base a { color: var(--text-dim); }
.footer-base a:hover { color: var(--text); }

/* Legal pages --------------------------------------------------------------- */
.footer-base p { max-width: 760px; }
.form-note a { color: var(--text-muted); }
.form-note a:hover { color: var(--text); }

.legal { padding: var(--s-7) 0 var(--s-9); }
.legal-inner { max-width: 820px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: var(--s-5);
  font-size: 0.925rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
}
.back-link:hover { color: var(--text); }
.back-link .icon { width: 18px; height: 18px; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.legal-updated { margin-top: var(--s-3); color: var(--text-dim); font-size: 0.925rem; }
.legal-toc {
  margin: var(--s-6) 0 var(--s-7); padding: var(--s-5) var(--s-6);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%), var(--surface);
}
.legal-toc > p { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--s-3); }
.legal-toc ol { list-style: decimal; padding-left: 1.25rem; columns: 2; column-gap: var(--s-6); }
.legal-toc li { padding: 3px 0; color: var(--text-dim); break-inside: avoid; }
.legal-toc a { color: var(--text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

.prose { color: var(--text-muted); font-size: 1.025rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.prose h3 { margin-top: var(--s-5); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ul li + li { margin-top: var(--s-2); }
.prose ul li::marker { color: var(--accent); }
.prose ul.details { list-style: none; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prose ul.details li { display: grid; grid-template-columns: 170px 1fr; gap: var(--s-4); margin: 0; padding: 12px var(--s-5); color: var(--text); overflow-wrap: anywhere; }
.prose ul.details li + li { border-top: 1px solid var(--border); }
.prose ul.details span { color: var(--text-dim); font-size: 0.925rem; }

@media (max-width: 640px) {
  .legal { padding: var(--s-5) 0 var(--s-8); }
  .legal-toc { padding: var(--s-4) var(--s-5); }
  .legal-toc ol { columns: 1; }
  .prose ul.details li { grid-template-columns: 1fr; gap: 2px; padding: 12px var(--s-4); }
}

/* Cookie banner ------------------------------------------------------------ */
.footer-legal-links { display: flex; align-items: center; gap: var(--s-5); }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-dim); font-size: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }
.footer-base a, .link-btn { min-height: 24px; }

.cookie-banner {
  position: fixed; left: var(--s-4); bottom: var(--s-4); z-index: 200;
  width: min(440px, calc(100% - 2 * var(--s-4)));
  padding: var(--s-5); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%), var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}
.cookie-banner[hidden] { display: none; }
.cookie-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.cookie-text { margin-top: var(--s-2); font-size: 0.9rem; color: var(--text-muted); }
.cookie-text a { color: var(--accent); text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.btn-consent { min-width: 0; padding-left: 12px; padding-right: 12px; white-space: normal; background: var(--text); color: var(--bg); }
.btn-consent:hover { background: #FFFFFF; }
.link-inline { color: var(--accent); font-size: inherit; }
.link-inline:hover { color: var(--accent-hover); }
.prose code { font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }

/* Reveal motion ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dash.is-hidden .dash-chart span { transform: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-7); }
  .steps::before { display: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--s-1);
    position: fixed; top: var(--header-h); left: 0; right: 0;
    padding: var(--s-4) var(--s-5) var(--s-6);
    background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.open a:not(.btn) { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav.open .nav-cta-mobile { display: inline-flex; margin-top: var(--s-4); min-height: 52px; }

  .hero-grid, .split, .cta-grid, .faq-wrap { grid-template-columns: 1fr; gap: var(--s-7); }
  .services, .cards-3, .niches { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .founding { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-5) 0 var(--s-7); }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .eyebrow { font-size: 0.8rem; }
  .services, .cards-3, .niches, .why, .steps { grid-template-columns: 1fr; }
  .steps { row-gap: var(--s-6); }
  .card, .niche { padding: var(--s-5); }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .strip ul { gap: var(--s-2) var(--s-5); }
  .dash { padding: var(--s-4); }
  .dash-kpis { gap: 6px; }
  .kpi { padding: 10px; }
  .kpi-val { font-size: 0.9rem; }
  .journey { padding: var(--s-5) var(--s-4); }
  .journey-steps li { grid-template-columns: 40px 1fr; row-gap: 4px; }
  .j-when { grid-column: 2; justify-self: start; }
  .founding { padding: var(--s-5); }
  .founding .btn { width: 100%; white-space: normal; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .audit-form { padding: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Graphite surfaces: faint top highlight gives depth without glare */
.card, .journey, .faq details, .audit-form, .niche {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%), var(--surface);
}
.niche { background: var(--bg); }
.niche:hover { background: var(--surface); }
.dash { box-shadow: 0 30px 80px -20px rgba(139, 123, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
