/* ============================================================
   Unframe — design system v2
   Oxblood on porcelain. Precision grotesk (General Sans).
   Light page with one dark act; the live export panel and the
   closing oxblood band carry the brand's commitment.
   ============================================================ */

:root {
  color-scheme: light;

  /* color */
  --bg: oklch(98.7% 0.004 40);
  --surface: oklch(96.8% 0.006 40);
  --ink: oklch(22% 0.015 20);
  --ink-muted: oklch(44% 0.015 25);
  --border: oklch(90% 0.008 30);
  --accent: oklch(42% 0.14 20);
  --accent-strong: oklch(35% 0.13 20);
  --accent-soft: oklch(94% 0.02 20);
  --error: oklch(52% 0.19 32);

  /* dark act + panel: near-black maroon */
  --panel: oklch(21% 0.025 15);
  --panel-2: oklch(25% 0.028 16);
  --panel-ink: oklch(96% 0.008 30);
  --panel-muted: oklch(71% 0.018 25);
  --panel-border: oklch(33% 0.024 18);
  --panel-accent: oklch(75% 0.11 20);
  --panel-warn: oklch(84% 0.1 85);

  /* type */
  --font-sans: "General Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  /* shape & motion */
  --radius: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-card: 0 1px 2px oklch(22% 0.015 20 / 0.05), 0 12px 32px -16px oklch(22% 0.015 20 / 0.12);
  --shadow-panel: 0 32px 64px -32px oklch(21% 0.03 15 / 0.5);

  --z-header: 10;
}

/* ---------- base ---------- */

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

/* author display values must never resurrect [hidden] elements */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

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

a {
  color: var(--accent);
}

::selection {
  background: var(--accent-soft);
}

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

section[id],
[id="top"] {
  scroll-margin-top: 88px;
}

/* the header CTA deep-links straight to the input */
#url {
  scroll-margin-top: 120px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.mono,
.mono-inline {
  font-family: var(--font-mono);
}

.mono-inline {
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: calc(var(--z-header) + 1);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 200ms var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- type scale ---------- */

h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 4.8vw + 1rem, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 2.5vw + 1rem, 2.8rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

/* marker highlight for one phrase per act */
.hl {
  background-image: linear-gradient(transparent 58%, var(--accent-soft) 58%);
}

.act-dark .hl {
  background-image: linear-gradient(transparent 58%, oklch(75% 0.11 20 / 0.3) 58%);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 36rem;
  margin-top: 22px;
  text-wrap: pretty;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-sub {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font: 500 1rem var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-small {
  height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--panel-ink);
  box-shadow: inset 0 0 0 1px var(--panel-border);
}

.btn-quiet {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-strong);
  }
  .btn-light:hover {
    background: oklch(96% 0.012 25);
  }
  .btn-ghost:hover {
    box-shadow: inset 0 0 0 1px var(--panel-muted);
  }
  .btn-quiet:hover {
    background: var(--surface);
  }
  .site-nav a:hover,
  .footer-col a:hover {
    color: var(--ink);
  }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.wordmark {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: 12px;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.header-cta {
  margin-left: auto;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(64px, 9vh, 108px) clamp(64px, 8vw, 96px);
  background: radial-gradient(1100px 520px at 50% -12%, oklch(93% 0.022 20 / 0.35), transparent 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.hero-inner > h1 {
  animation: fade-up 480ms var(--ease-out) backwards;
}
.hero-inner > .lede {
  animation: fade-up 480ms var(--ease-out) 60ms backwards;
}
.hero-inner > .tool-card {
  animation: fade-up 480ms var(--ease-out) 120ms backwards;
}
.hero-inner > .hero-panel {
  animation: fade-up 480ms var(--ease-out) 180ms backwards;
}
.hero-inner > .hosts-line {
  animation: fade-up 480ms var(--ease-out) 240ms backwards;
}

.tool-card {
  width: min(720px, 100%);
  margin-top: 36px;
  padding: 20px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  font: 400 1rem var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease;
}

.input-row input::placeholder {
  color: var(--ink-muted);
}

.input-row input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.form-error {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--error);
}

.trust {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hosts-line {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ============================================================
   The live export panel (signature element)
   ============================================================ */

.hero-panel {
  width: min(720px, 100%);
  margin-top: 20px;
}

#tool {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 24px 28px 26px;
  background: var(--panel);
  color: var(--panel-ink);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--panel-muted);
  transition: background-color 200ms ease;
}

#tool[data-state="queued"] .panel-dot,
#tool[data-state="crawling"] .panel-dot,
#tool[data-state="assets"] .panel-dot,
#tool[data-state="zipping"] .panel-dot,
#tool[data-state="submitting"] .panel-dot,
#tool[data-state="done"] .panel-dot {
  background: var(--panel-accent);
}

#tool[data-state="error"] .panel-dot,
#tool[data-state="expired"] .panel-dot {
  background: var(--panel-warn);
}

.panel-title {
  font-size: 0.9375rem;
  font-weight: 500;
}

.panel-host {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--panel-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.phase-status {
  margin-top: 18px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* phase rail: four station cells across the wide console */

.phase-rail {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.phase-rail li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 9px;
  row-gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  transition: border-color 200ms ease;
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--panel-border);
  background: transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.rail-label {
  font-size: 0.875rem;
  color: var(--panel-muted);
  transition: color 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-note {
  grid-column: 2;
  font-size: 0.75rem;
  color: var(--panel-muted);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}

.phase-rail li.is-active {
  border-color: color-mix(in oklch, var(--panel-accent) 55%, var(--panel-border));
}

.phase-rail li.is-active .rail-dot {
  border-color: var(--panel-accent);
  background: var(--panel-accent);
}

@keyframes rail-pulse {
  from {
    box-shadow: 0 0 0 0 oklch(75% 0.11 20 / 0.45);
  }
  to {
    box-shadow: 0 0 0 8px oklch(75% 0.11 20 / 0);
  }
}

.phase-rail li.is-active .rail-dot {
  animation: rail-pulse 1.6s var(--ease-out) infinite;
}

.phase-rail li.is-active .rail-label {
  color: var(--panel-ink);
  font-weight: 500;
}

.phase-rail li.is-done .rail-dot {
  border-color: var(--panel-accent);
  background: var(--panel-accent);
}

.phase-rail li.is-done .rail-label {
  color: var(--panel-ink);
}

#tool[data-state="idle"] .phase-rail {
  opacity: 0.55;
}

#tool[data-state="done"] .phase-rail,
#tool[data-state="error"] .phase-rail,
#tool[data-state="expired"] .phase-rail {
  display: none;
}

/* keep the live region rendered (display:none would mute it for
   screen readers); just remove it from the visual layout */
#tool[data-state="done"] .phase-status,
#tool[data-state="error"] .phase-status,
#tool[data-state="expired"] .phase-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#tool:not([data-state="idle"]) .idle-hint {
  display: none;
}

/* progress bar (assets phase only — the one honest determinate moment) */

.progress-wrap {
  margin-top: 14px;
}

#progress-bar {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-border);
}

#progress-bar::-webkit-progress-bar {
  background: var(--panel-border);
}

#progress-bar::-webkit-progress-value {
  background: var(--panel-accent);
  border-radius: 999px;
}

#progress-bar::-moz-progress-bar {
  background: var(--panel-accent);
  border-radius: 999px;
}

.progress-detail {
  margin-top: 12px;
  min-height: 1.4em;
  font-size: 0.8125rem;
  color: var(--panel-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idle-hint {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--panel-muted);
}

/* result / error / expired blocks */

.result,
.job-error {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

@starting-style {
  .result,
  .job-error {
    opacity: 0;
    transform: translateY(6px);
  }
}

.result-zip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.icon-check {
  flex: none;
  color: var(--panel-accent);
}

.result-meta {
  font-size: 0.875rem;
  color: var(--panel-muted);
  font-variant-numeric: tabular-nums;
}

.result-warn {
  font-size: 0.875rem;
  color: var(--panel-warn);
}

.result .btn-primary {
  margin-top: 6px;
  background: var(--panel-accent);
  color: var(--panel);
}

@media (hover: hover) and (pointer: fine) {
  .result .btn-primary:hover {
    background: oklch(81% 0.1 20);
  }
}

.result-note {
  font-size: 0.8125rem;
  color: var(--panel-muted);
  text-align: center;
}

.job-error p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--panel-warn);
  text-wrap: pretty;
}

#tool :focus-visible {
  outline-color: var(--panel-accent);
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(76px, 9vw, 118px);
}

.section-tinted {
  background: var(--surface);
}

/* how it works */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-card);
}

.step-num {
  display: block;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-top: 18px;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-muted);
  max-width: 40ch;
  text-wrap: pretty;
}

/* what's inside */

.inside-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.inside-grid > *,
.footer-grid > *,
.faq-grid > *,
.compare-grid > *,
.proof-grid > * {
  min-width: 0;
}

.tree-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px 22px;
  box-shadow: var(--shadow-card);
}

.tree {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}

.tree-card figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.inside-list {
  margin-top: 32px;
}

.inside-list > div + div {
  margin-top: 28px;
}

.inside-list dt {
  font-size: 1.0625rem;
  font-weight: 600;
}

.inside-list dd {
  margin-top: 6px;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ============================================================
   Dark act: comparison + proof
   ============================================================ */

.act-dark {
  /* aurora glow in brand hues (Roman's bg-image idea, recolored to ours) */
  background:
    radial-gradient(1000px 520px at 78% 8%, oklch(46% 0.15 20 / 0.4), transparent 65%),
    radial-gradient(760px 460px at 18% 92%, oklch(58% 0.16 0 / 0.22), transparent 62%),
    var(--panel);
  color: var(--panel-ink);
  padding-block: clamp(80px, 10vw, 128px);
}

.act-dark .section-sub {
  color: var(--panel-muted);
}

.act-dark :focus-visible {
  outline-color: var(--panel-accent);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}

.compare-col {
  padding: 32px;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

.compare-col-hero {
  border-color: color-mix(in oklch, var(--panel-accent) 50%, var(--panel-border));
}

.compare-col h3 {
  color: var(--panel-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.compare-price {
  margin-top: 14px;
  color: var(--panel-muted);
  font-size: 0.9375rem;
}

.compare-amount {
  display: inline-block;
  margin-right: 8px;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--panel-ink);
  font-variant-numeric: tabular-nums;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.compare-list li {
  padding-block: 10px;
  border-top: 1px solid var(--panel-border);
  font-size: 0.9375rem;
  color: var(--panel-ink);
}

.compare-col-hero .btn {
  margin-top: 20px;
}

.compare-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--panel-muted);
}

/* proof (placeholder slots until real quotes/numbers exist) */

.proof {
  margin-top: clamp(64px, 8vw, 96px);
}

.proof-head {
  text-align: center;
}

.proof-head h3 {
  font-size: 1.375rem;
}

.proof-head p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--panel-muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 20px;
  margin-top: 36px;
}

.quote-card,
.stat-tile {
  padding: 26px;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--panel-ink);
  text-wrap: pretty;
}

.quote-card figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--panel-muted);
}

.stat-stack {
  display: grid;
  gap: 20px;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--panel-ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--panel-muted);
}

/* ---------- use cases ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 72px);
}

.case {
  border-top: 1px solid var(--border);
  padding-block: 26px 30px;
}

.case p {
  margin-top: 8px;
  color: var(--ink-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- pricing ---------- */

.pricing-wrap {
  text-align: center;
}

.price-card {
  max-width: 420px;
  margin-inline: auto;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-per {
  font-size: 1rem;
  color: var(--ink-muted);
}

.price-copy {
  margin: 16px 0 26px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.price-honesty {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.faq-head {
  text-align: left;
  position: sticky;
  top: 96px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--ink-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- closing CTA band (the drenched moment) ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(76px, 9vw, 112px);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin-top: 12px;
  color: oklch(88% 0.03 20);
}

.cta-band .btn {
  margin-top: 28px;
}

.cta-band :focus-visible {
  outline-color: #fff;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.85fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.wordmark-footer {
  font-size: 1rem;
}

.footer-line {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.notify {
  max-width: 360px;
  margin-top: 24px;
}

.notify label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.notify .input-row input,
.notify .btn {
  height: 44px;
}

.notify .input-row input {
  background: #fff;
}

.notify-msg {
  margin-top: 8px;
  min-height: 1.4em;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.notify-msg.is-error {
  color: var(--error);
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  padding-block: 8px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-fact {
  padding-block: 5px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-bottom {
  margin-top: 48px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.footer-mark {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(110px, 16vw, 230px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.72;
  text-align: center;
  color: oklch(94.5% 0.01 25);
  user-select: none;
  pointer-events: none;
  margin-top: 20px;
  margin-bottom: -0.16em;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .inside-grid,
  .faq-grid,
  .compare-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .faq-head {
    position: static;
  }

  .tree-card {
    order: 2;
    max-width: 480px;
  }

  .stat-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .phase-rail {
    grid-template-columns: 1fr 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 br {
    display: none;
  }

  #export-form .input-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-stack {
    grid-template-columns: 1fr;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner > h1,
  .hero-inner > .lede,
  .hero-inner > .tool-card,
  .hero-inner > .hero-panel,
  .hero-inner > .hosts-line {
    animation: none;
  }

  .phase-rail li.is-active .rail-dot {
    animation: none;
  }

  .result,
  .job-error {
    transition: opacity 240ms ease;
  }

  @starting-style {
    .result,
    .job-error {
      transform: none;
    }
  }

  .btn:active {
    transform: none;
  }
}
