/* ─── FONTS ─── */
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/commit-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/commit-mono-500.woff2") format("woff2");
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Brand is all-sans — \`--serif\` aliases to the same family so any
     legacy \`var(--serif)\` reference inherits the unified type voice. */
  --serif: "Space Grotesk", -apple-system, sans-serif;
  --mono: "Commit Mono", ui-monospace, "SF Mono", monospace;
  /* No real italic shipped with Space Grotesk — stop the browser from
     synthesizing a slanted glyph that doesn't match the rest of the
     family. Accent emphasis on \`em\` is carried by color + weight. */
  font-synthesis: none;
  --accent: #1a3a2a;
  --bg: #ffffff;
  --bg-2: #f6f5f2;
  --paper: #fcfcfb;
  --fg: #16231c;
  --fg-muted: #4a5449;
  --fg-dim: #7a7f74;
  --line: #e6e3dc;
  --line-strong: #1a2a20;
  --accent-soft: color-mix(in oklch, var(--accent), var(--paper) 82%);
  --accent-ink: #ffffff;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* All `<em>` accents lose their italic with the Space Grotesk-only
   stack. Per-component rules continue to set accent color and weight,
   so emphasis still reads — just upright. */
em {
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.13 0 0 0 0 0.1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 13px;
}

.nav .logo {
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav .logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav .nav-center {
  display: flex;
  gap: 28px;
  color: var(--fg-muted);
}

.nav .nav-center a:hover {
  color: var(--fg);
}

.nav .nav-right {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
}

.nav-demo-link {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── INLINE FORMS ─── */
.inline-form {
  display: flex;
  justify-content: center;
  gap: 0;
}

.inline-form input[type="email"] {
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-right: none;
  border-radius: 3px 0 0 3px;
  background: var(--paper);
  color: var(--fg);
  outline: none;
  width: 200px;
}

.inline-form input[type="email"]::placeholder {
  color: var(--fg-dim);
}

.inline-form input[type="email"]:focus {
  border-color: var(--accent);
}

.inline-form button[type="submit"] {
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 3px 3px 0;
  white-space: nowrap;
  cursor: pointer;
}

.inline-form button[type="submit"]:hover {
  opacity: 0.88;
}

.inline-form.large input[type="email"] {
  padding: 14px 18px;
  font-size: 15px;
  width: 280px;
}

.inline-form.large button[type="submit"] {
  padding: 14px 24px;
  font-size: 15px;
}

.beta-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in oklch, var(--accent-ink), var(--accent) 20%);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

.form-success {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 0;
}

/* ─── TICKER ─── */
.ticker {
  padding: 7px 40px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 28px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--accent), transparent);
}

.ticker .scrolling {
  animation: loop 30s linear infinite;

  .scroll-two {
    transform: translateX(100%);
    animation-delay: 5s;
  }
}

@keyframes loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker .bullet {
  opacity: 0.45;
}

/* ─── HERO ─── */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 40px 96px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.hero::before {
  top: 56px;
  left: 32px;
  border-right: 0;
  border-bottom: 0;
}

.hero::after {
  top: 56px;
  right: 32px;
  border-left: 0;
  border-bottom: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-end;
  padding-bottom: 22px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.hero-folio {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-folio span:nth-child(2) {
  opacity: 0.4;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.kicker .pill {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  border-radius: 2px;
  margin-right: 10px;
  letter-spacing: 0.08em;
}

.date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.hero-lead {
  margin-bottom: 56px;
  max-width: 1240px;
}

.hero-headline {
  font-family: var(--sans);
  font-size: clamp(54px, 7.6vw, 108px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-headline em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.hero-lede {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 62ch;
  margin: 0;
  letter-spacing: 0;
  font-weight: 400;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-estimate-card {
  max-width: none;
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(22, 35, 28, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-estimate-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.estimate-card-copy {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-top: 8px;
}

.estimate-card-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.estimate-card-copy strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--fg);
}

.estimate-card-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-top: 12px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-cta a {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border-color: var(--line);
  color: var(--fg-muted);
}

.hero-secondary:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}

.hero-estimate-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.hero-estimate-note span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 2px;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-meta b {
  color: var(--fg);
  font-weight: 500;
  margin-left: 4px;
}

.hero-meta .hm-sep {
  opacity: 0.35;
}

/* ─── HERO DEMO (animated) ─── */
.demo {
  position: relative;
  align-self: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 32px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 14px 28px rgba(22, 35, 28, 0.05);
}

.demo::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 32px;
  height: 1px;
  background: var(--accent);
  z-index: 10;
}

.demo-label {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.demo-label .n {
  color: var(--accent);
  float: left;
  margin-right: 8px;
}

.demo-phase {
  position: absolute;
  left: 28px;
  top: 0;
  opacity: 0;
  white-space: nowrap;
}

.demo-phase[data-phase="scan"] {
  animation: phase-label 8s infinite;
}
.demo-phase[data-phase="extract"] {
  animation: phase-label 8s infinite;
  animation-delay: 2s;
}
.demo-phase[data-phase="transfer"] {
  animation: phase-label 8s infinite;
  animation-delay: 4s;
}
.demo-phase[data-phase="done"] {
  animation: phase-label-done 8s infinite;
  animation-delay: 6s;
}

.rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--fg-dim) 0 3px,
    transparent 3px 8px
  );
  opacity: 0.28;
}

.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 10px 22px rgba(22, 35, 28, 0.08);
  animation: arrow-loop 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.arrow::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.arrow::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.doc,
.rpt {
  position: absolute;
  top: 18%;
  bottom: 12%;
  height: auto;
  width: 40%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  font-size: 9px;
  line-height: 1.35;
  box-shadow: 0 14px 32px rgba(22, 35, 28, 0.08);
  overflow: hidden;
}

.doc {
  left: 5%;
  transform: rotate(-3deg);
  animation: doc-loop 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.rpt {
  right: 5%;
  transform: rotate(3deg);
  animation: rpt-loop 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.doc-hdr,
.rpt-hdr {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.doc h5,
.rpt h5 {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  color: var(--fg-muted);
}

.doc-row b {
  color: var(--fg);
  font-weight: 600;
}

.scan-beam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 36%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in oklch, var(--accent), transparent 88%) 40%,
    color-mix(in oklch, var(--accent), transparent 70%) 50%,
    color-mix(in oklch, var(--accent), transparent 88%) 60%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
  animation: scan-beam 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 4;
}

.highlight-row {
  position: relative;
}

.highlight-row::after {
  content: "";
  position: absolute;
  inset: -1px -4px;
  border: 1px solid var(--accent);
  background: color-mix(in oklch, var(--accent), transparent 92%);
  opacity: 0;
  pointer-events: none;
  animation: row-highlight 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.donut {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, var(--accent-soft) 0);
  margin: 8px auto 4px;
  position: relative;
  animation: donut-fill 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 50%;
}

.donut-label {
  position: relative;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: -44px;
  z-index: 2;
}

.donut-label > span {
  display: block;
  font-size: 7px;
  color: var(--fg-dim);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-top: 2px;
}

.donut-value {
  position: relative;
  display: inline-block;
  min-width: 3ch;
  text-align: center;
}

.donut-value .tick {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: 8s infinite;
}
.donut-value .tick.t0 {
  animation-name: tick-0;
  color: var(--fg-dim);
  position: static;
  opacity: 1;
}
.donut-value .tick.t1 {
  animation-name: tick-1;
  color: var(--fg-dim);
}
.donut-value .tick.t2 {
  animation-name: tick-2;
  color: var(--fg-muted);
}
.donut-value .tick.t3 {
  animation-name: tick-3;
  color: var(--accent);
}
.donut-value .tick.t4 {
  animation-name: tick-4;
  color: var(--accent);
}
.donut-value .tick.t5 {
  animation-name: tick-5;
  color: var(--accent);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 8px;
}
.bar-row .lbl {
  width: 38%;
  color: var(--fg-muted);
}
.bar-row .bar {
  flex: 1;
  height: 4px;
  background: var(--accent-soft);
  position: relative;
}
.bar-row .bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 50%);
  background: var(--accent);
  animation: bar-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.bar-row .val {
  width: 22%;
  text-align: right;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--mono);
}

.flow-particles {
  position: absolute;
  top: 50%;
  left: 30%;
  right: 30%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
}

.flow-particles .p {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particle 8s linear infinite;
}

.flow-particles .p1 {
  animation-delay: 4s;
}
.flow-particles .p2 {
  animation-delay: 4.2s;
}
.flow-particles .p3 {
  animation-delay: 4.4s;
}
.flow-particles .p4 {
  animation-delay: 4.6s;
}
.flow-particles .p5 {
  animation-delay: 4.8s;
}

.data-ghost {
  position: absolute;
  top: 44%;
  left: 30%;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  box-shadow: 0 8px 20px color-mix(in oklch, var(--accent), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  animation: data-ghost 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ─── ANIMATION KEYFRAMES ─── */
@keyframes doc-loop {
  0%,
  20% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-2px);
  }
  75% {
    transform: rotate(-4deg) translate(-4px, 2px);
    opacity: 0.88;
  }
  100% {
    transform: rotate(-3deg) translateY(0);
    opacity: 1;
  }
}
@keyframes rpt-loop {
  0%,
  25% {
    transform: rotate(3deg) translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: rotate(3deg) translateY(-1px) scale(1);
    opacity: 1;
  }
  75% {
    transform: rotate(3deg) translate(2px, -3px) scale(1.015);
    opacity: 1;
  }
  100% {
    transform: rotate(3deg) translateY(0) scale(1);
    opacity: 0.9;
  }
}
@keyframes arrow-loop {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
      0 10px 22px rgba(22, 35, 28, 0.08),
      0 0 0 6px color-mix(in oklch, var(--accent), transparent 88%);
  }
}
@keyframes scan-beam {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  22% {
    transform: translateY(280%);
    opacity: 1;
  }
  26% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(280%);
  }
}
@keyframes row-highlight {
  0%,
  22% {
    opacity: 0;
    transform: scale(1);
  }
  28% {
    opacity: 1;
    transform: scale(1.02);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
  55% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}
@keyframes data-ghost {
  0%,
  30% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(0.85);
  }
  35% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  55% {
    opacity: 1;
    transform: translateX(110%) translateY(-4%) scale(1);
  }
  62% {
    opacity: 0;
    transform: translateX(130%) translateY(-4%) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translateX(130%) translateY(-4%) scale(0.7);
  }
}
@keyframes donut-fill {
  0%,
  50% {
    background: conic-gradient(var(--accent) 0%, var(--accent-soft) 0);
  }
  65% {
    background: conic-gradient(var(--accent) 34%, var(--accent-soft) 0);
  }
  75% {
    background: conic-gradient(var(--accent) 54%, var(--accent-soft) 0);
  }
  85%,
  100% {
    background: conic-gradient(var(--accent) 68%, var(--accent-soft) 0);
  }
}
@keyframes bar-pulse {
  0%,
  50% {
    width: var(--w);
    opacity: 0.85;
  }
  55% {
    width: 0%;
    opacity: 0.5;
  }
  75% {
    width: var(--w);
    opacity: 1;
  }
  100% {
    width: var(--w);
    opacity: 0.85;
  }
}
@keyframes particle {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.5);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  22% {
    left: 100%;
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes phase-label {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  3%,
  22% {
    opacity: 1;
    transform: translateY(0);
  }
  25%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes phase-label-done {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  3%,
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  27%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes tick-0 {
  0%,
  50% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}
@keyframes tick-1 {
  0%,
  50% {
    opacity: 0;
  }
  55%,
  60% {
    opacity: 1;
  }
  63%,
  100% {
    opacity: 0;
  }
}
@keyframes tick-2 {
  0%,
  62% {
    opacity: 0;
  }
  65%,
  69% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}
@keyframes tick-3 {
  0%,
  71% {
    opacity: 0;
  }
  74%,
  78% {
    opacity: 1;
  }
  81%,
  100% {
    opacity: 0;
  }
}
@keyframes tick-4 {
  0%,
  80% {
    opacity: 0;
  }
  83%,
  86% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0;
  }
}
@keyframes tick-5 {
  0%,
  87% {
    opacity: 0;
  }
  90%,
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo * {
    animation: none !important;
  }
  .donut {
    background: conic-gradient(
      var(--accent) 68%,
      var(--accent-soft) 0
    ) !important;
  }
  .bar-row .bar::after {
    width: var(--w) !important;
  }
  .demo-phase[data-phase="done"] {
    opacity: 1 !important;
  }
}

/* ─── FRAMEWORKS ─── */
.frameworks {
  background: var(--paper);
  padding: 56px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.frameworks::before,
.frameworks::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.frameworks::before {
  top: 6px;
}

.frameworks::after {
  bottom: 6px;
}

.frameworks .head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.frameworks .head::before,
.frameworks .head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.frameworks-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.fw {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 8px 24px;
  text-align: left;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  transition: background 0.2s ease;
}

.fw:first-child {
  border-left: 0;
}

.fw:hover {
  background: color-mix(in oklch, var(--accent), transparent 96%);
}

.fw .fw-name {
  font-family: var(--sans);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--fg);
}
.fw .fw-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ─── SECTIONS ─── */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 40px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  align-items: flex-end;
  position: relative;
}

.section-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head .kicker {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.section-head .kicker .num {
  color: var(--fg);
  margin-right: 8px;
  font-weight: 500;
}

.section-head .folio {
  font-family: var(--sans);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: -8px;
}

.section-head .folio-rule {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head .folio-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 60px;
}

.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 500;
}

.section-head h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.section-head .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 58ch;
  margin-top: 16px;
}

/* ─── REVEAL ON SCROLL ─── */
/* Default state: visible. The `.js-enabled` class is added by an inline
   script at the top of index.html before paint, so JS-enabled visitors
   get the fade-in animation. No-JS / CSP-blocked / failed-parse users
   still see content. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── STORY TABS ─── */
.story-tabs {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  margin-bottom: 28px;
  background: var(--paper);
}

.story-tabs button {
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-right: 1px solid var(--line);
}

.story-tabs button:last-child {
  border-right: none;
}
.story-tabs button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.story-panel {
  display: none;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
}

.story-panel.active {
  display: grid;
}

.story-panel h3 {
  font-family: var(--sans);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
  font-weight: 500;
}

.story-panel p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 20px;
  max-width: 44ch;
}

.step-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-panel ul {
  border-top: 1px solid var(--line);
}

.story-panel li {
  font-size: 14px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.story-panel li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── VISUAL PANELS ─── */
.visual {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
}

.vhead {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.vhead .vtitle {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.vhead .vsub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
}

.vstatus {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--accent-ink);
}

.vstatus.soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.upload-box {
  flex: 1;
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 24px;
}

.upload-box .ic {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.upload-box .hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  font-size: 12px;
  border: 1px solid var(--line);
}

.file-row .f-ic {
  width: 28px;
  height: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.file-row .f-meta {
  flex: 1;
}
.file-row .f-meta .fn {
  font-weight: 500;
}
.file-row .f-meta .fs {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.file-row .f-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 14px;
  font-size: 11px;
}
.col.accent-col {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.col .c-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.col.accent-col .c-title {
  color: var(--accent);
}
.col .kv {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.col .kv:last-child {
  border-bottom: none;
}
.col .kv .k {
  color: var(--fg-muted);
}
.col .kv .v {
  font-weight: 600;
}
.col .big {
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: -0.012em;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
}

/* ─── REPORTS GRID ─── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.report-card {
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.18s ease;
  position: relative;
}

.report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.report-card:hover {
  background: color-mix(in oklch, var(--accent), var(--paper) 96%);
}

.report-card:hover::before {
  width: 100%;
}

.report-card .rc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-card .code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.report-card .stamp {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.report-card .stamp.optional {
  color: var(--fg-dim);
  border-color: var(--line);
}
.report-card h4 {
  font-family: var(--sans);
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-weight: 500;
}
.report-card .desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.report-card .foot {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

/* ─── AUDIENCE ─── */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 14px 28px rgba(22, 35, 28, 0.04);
}

.audience > div {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.audience > div:last-child {
  border-right: none;
}
.audience > div::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 36px;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.audience .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-top: 14px;
  display: inline-block;
}
.audience h4 {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  font-weight: 500;
}
.audience p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  max-width: 42ch;
}
.audience ul {
  margin: 24px 0 0;
  padding: 0;
  margin-top: auto;
  padding-top: 24px;
}
.audience li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--fg);
  display: flex;
  gap: 12px;
  align-items: center;
}
.audience li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
}

/* ─── CTA ─── */
.cta {
  max-width: 1400px;
  margin: 0 auto;
  padding: 110px 40px;
  text-align: center;
}

.cta h2 {
  font-family: var(--sans);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  font-weight: 500;
}
.cta h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.cta .lede {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 44ch;
  margin: 0 auto 36px;
  line-height: 1.5;
  font-weight: 400;
}
.cta .btn-primary {
  padding: 16px 28px;
  font-size: 15px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-actions > .btn-primary {
  padding: 14px 24px;
  font-size: 15px;
}
.cta .note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── CONTACT FORM ─── */
.contact {
  max-width: 1400px;
  margin: 0 auto;
  padding: 84px 40px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-info .kicker {
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.contact-info h2 {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 16px;
}
.contact-info h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.contact-info p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 36ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--fg);
  outline: none;
  border-radius: 3px;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.contact-form button[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  opacity: 0.88;
}

.contact-form .form-success {
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─── FOOTER ─── */
footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 40px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   MOBILE  (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* NAV */
  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
    gap: 12px;
  }

  .nav .nav-center {
    display: none;
  }

  .nav .nav-right {
    gap: 8px;
  }

  .nav .nav-right > a[href="#contacto"],
  .nav .nav-right > a[href$="#contacto"] {
    display: none;
  } /* hide Contacto link on mobile — footer covers it */

  .nav-demo-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .nav .nav-right .inline-form {
    display: none;
  }

  .inline-form input[type="email"] {
    width: 140px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .inline-form button[type="submit"] {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* TICKER */
  .ticker {
    padding: 8px 20px;
    gap: 16px;
    font-size: 10px;
  }

  /* HERO */
  .hero {
    padding: 36px 20px 56px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: flex-start;
  }
  .hero-top .date {
    display: none;
  }

  .hero-folio {
    font-size: 9px;
  }

  .hero-lead {
    margin-bottom: 32px;
  }

  .hero-lede {
    font-size: 17px;
    padding-left: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo {
    height: 340px;
    min-height: 340px;
    padding: 24px 16px;
  }

  .doc,
  .rpt {
    top: 22%;
    bottom: 12%;
    height: auto;
    width: 38%;
  }

  .doc {
    left: 5%;
  }

  .rpt {
    right: 5%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-estimate-card {
    max-width: 100%;
    padding: 18px;
  }
  .hero-primary {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .hero-secondary {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .inline-form.hero-inline input[type="email"] {
    width: 100%;
  }

  .hero-estimate-note {
    margin-top: 14px;
  }

  .hero-estimate-note span {
    font-size: 9px;
  }

  /* FRAMEWORKS */
  .frameworks {
    padding: 36px 20px;
  }
  .frameworks .head {
    font-size: 9px;
    margin-bottom: 24px;
  }
  .frameworks .head::before,
  .frameworks .head::after {
    max-width: 30px;
  }
  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .fw {
    padding: 14px 16px;
    min-height: 80px;
  }
  .fw:nth-child(odd) {
    border-left: 0;
  }
  .fw:nth-child(3),
  .fw:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .fw .fw-name {
    font-size: 26px;
  }

  /* SECTIONS */
  .section {
    padding: 48px 20px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .section-head .folio {
    font-size: 64px;
    margin-bottom: -4px;
  }

  .section-head .folio-rule::after {
    max-width: 40px;
  }

  /* STORY TABS */
  .story-tabs {
    display: flex;
    width: 100%;
  }
  .story-tabs button {
    flex: 1;
    padding: 10px 8px;
    font-size: 10px;
  }

  .story-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .story-panel.active {
    display: flex;
    flex-direction: column;
  }

  /* VISUAL PANELS */
  .visual {
    min-height: auto;
  }
  .two-col {
    grid-template-columns: 1fr;
  }

  /* REPORTS */
  .reports-grid {
    grid-template-columns: 1fr;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .report-card {
    border-right: 0;
    padding: 24px 22px 28px;
    min-height: auto;
  }

  /* AUDIENCE */
  .audience {
    grid-template-columns: 1fr;
  }
  .audience > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 24px;
  }
  .audience > div::before {
    top: 28px;
    left: 24px;
  }
  .audience > div:last-child {
    border-bottom: none;
  }

  /* CTA */
  .cta {
    padding: 64px 20px;
  }
  .cta .inline-form.large {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .cta .inline-form.large input[type="email"] {
    width: 100%;
    border-right: 1px solid var(--line-strong);
    border-radius: 3px;
    border-bottom: none;
  }
  .cta .inline-form.large button[type="submit"] {
    border-radius: 3px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }
  .cta-actions > .btn-primary {
    width: 100%;
  }
  .cta-actions > .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* CONTACT */
  .contact {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 20px;
  }
  .contact-form .row-2 {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 28px 20px;
    text-align: center;
    align-items: center;
  }
}

/* ═══════════════════════════════════════
   TABLET  (769px – 1024px)
═══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav {
    padding: 16px 28px;
  }
  .nav .nav-center {
    gap: 18px;
    font-size: 12px;
  }

  .nav-demo-link {
    padding: 9px 12px;
  }

  .nav .nav-right .inline-form {
    display: none;
  }

  .hero {
    padding: 48px 28px 60px;
  }
  .hero-grid {
    gap: 36px;
  }
  .hero-estimate-card {
    max-width: 560px;
  }

  .section {
    padding: 64px 28px;
  }

  .frameworks {
    padding: 40px 28px;
  }

  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    grid-template-columns: 1fr 1.5fr;
  }

  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 28px;
  }

  footer {
    padding: 32px 28px;
  }
}

/* ─── REGULATION CHECKER WIDGET ─── */

.reg-checker {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 40px;
  border-top: 1px solid var(--line);
}

.wg-widget {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* progress */
.wg-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

/* Track line connecting all step dots. Stops at the first/last dot
   centers (32px container padding + 14px dot half = 46px). Steps overlay
   it via z-index so the line is only visible in the gaps. */
.wg-progress::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.wg-progress-line {
  display: none;
}

.wg-progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--paper);
}

.wg-progress-step span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-family: var(--sans);
  font-weight: 500;
}

.wg-progress-step.active span {
  color: var(--fg);
}
.wg-progress-step.done span {
  color: var(--fg-muted);
}

.wg-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg-dim);
  flex-shrink: 0;
}

.wg-progress-step.active .wg-progress-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.wg-progress-step.done .wg-progress-dot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* step */
.wg-step {
  padding: 36px 32px;
}

.wg-step-hdr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.wg-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding: 6px 0;
  flex-shrink: 0;
}

.wg-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 4px;
}

.wg-title em {
  font-style: normal;
  color: var(--accent);
}

.wg-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* fields */
.wg-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.wg-field-full {
  width: 100%;
}

.wg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wg-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--mono);
}

.wg-select,
.wg-input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--fg);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.wg-select:focus,
.wg-input:focus {
  border-color: var(--accent);
}

.wg-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5449' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.wg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.wg-pill {
  flex: 1 1 0;
  text-align: center;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--fg-muted);
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s,
    color 0.12s;
}

.wg-pill:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.wg-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.wg-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  grid-column: 1 / -1;
  padding: 4px 0;
}

.wg-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* button */
.wg-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.wg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wg-btn:not(:disabled):hover {
  opacity: 0.85;
}

.wg-btn-sm {
  padding: 10px 20px;
  font-size: 12px;
  flex-shrink: 0;
}

.wg-privacy {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 12px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* results */
.wg-results-hdr {
  margin-bottom: 28px;
}

.wg-results-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.wg-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.wg-reg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wg-reg-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px 18px;
  background: var(--bg);
}

.wg-reg-card.is-mandatory {
  border-color: var(--accent);
  background: var(--paper);
}

.wg-reg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wg-reg-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2px;
}

.wg-reg-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.wg-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.wg-badge.mandatory {
  background: var(--accent);
  color: var(--accent-ink);
}

.wg-badge.optional {
  background: var(--bg-2);
  color: var(--fg-muted);
  border: 1px solid var(--line);
}

.wg-reg-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.wg-reg-note {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: 2px;
  margin-bottom: 8px;
}

.wg-reg-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.wg-cta-box {
  margin-top: 28px;
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wg-cta-box strong {
  font-size: 13px;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.wg-cta-box p {
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .reg-checker {
    padding: 64px 20px;
  }
  .wg-step {
    padding: 24px 20px;
  }
  .wg-fields {
    grid-template-columns: 1fr;
  }
  .wg-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .wg-progress {
    padding: 16px 20px;
  }
  .wg-progress span {
    display: none;
  }
}

/* --- DEMO FUNNEL --- */

.estimate-page .nav .logo {
  color: var(--fg);
}

.estimate-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  border-bottom: 1px solid var(--line);
}

.estimate-hero-copy {
  max-width: 1180px;
}

.estimate-hero-copy h1 {
  font-family: var(--sans);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 18ch;
  margin: 24px 0;
}

.estimate-hero-copy p {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 72ch;
  font-weight: 400;
}

.estimate-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.estimate-trust span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 2px;
}

.estimate-form-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}

.estimate-widget {
  max-width: 900px;
}

.demo-grid-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-grid-fields .wg-field-full:last-child {
  grid-column: 1 / -1;
}

.wg-input.has-error,
.wg-select.has-error {
  border-color: #9f2f28;
}

.demo-field-error,
.demo-file-error,
.demo-submit-error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #9f2f28;
  margin-top: 4px;
}

.demo-submit-error {
  padding: 10px 12px;
  border: 1px solid color-mix(in oklch, #9f2f28, var(--paper) 40%);
  background: color-mix(in oklch, #9f2f28, var(--paper) 90%);
  margin-top: 16px;
}

.demo-file-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 28px;
  border: 1px dashed var(--accent);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  margin-bottom: 18px;
}

.demo-file-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.demo-drop-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.demo-file-picker strong {
  font-size: 15px;
  color: var(--fg);
}

.demo-file-picker small {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

.demo-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}

.demo-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.demo-file-row.has-error {
  border-color: #9f2f28;
}

.demo-file-main {
  min-width: 0;
}

.demo-file-main strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-file-main small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin-top: 3px;
}

.demo-remove {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 10px;
  border-radius: 2px;
}

.demo-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.demo-btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.demo-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-top: 12px;
}

.demo-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.demo-success-box {
  padding: 22px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  margin: 24px 0;
}

.demo-success-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.demo-success-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}

.demo-success-box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.estimate-notes {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 40px 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.estimate-notes h2 {
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 12px 0;
}

.estimate-notes p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .estimate-hero {
    padding: 44px 20px 36px;
  }

  .estimate-hero-copy h1 {
    max-width: none;
  }

  .estimate-form-section {
    padding: 36px 20px 56px;
  }

  .demo-grid-fields {
    grid-template-columns: 1fr;
  }

  .demo-file-row {
    grid-template-columns: 1fr;
  }

  .estimate-notes {
    grid-template-columns: 1fr;
    padding: 44px 20px 64px;
  }
}
