:root {
  --bg: #ffffff;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-solid: #ffffff;
  --paper-soft: #f7f8fb;
  --ink: #0f1117;
  --muted: #626b7c;
  --soft: #eef2f8;
  --line: rgba(15, 17, 23, 0.11);
  --line-strong: rgba(15, 17, 23, 0.22);
  --violet: #4b35ff;
  --blue: #1677ff;
  --green: #16a765;
  --amber: #ffb23f;
  --shadow: 0 24px 80px rgba(19, 29, 49, 0.1);
  --shadow-tight: 0 14px 42px rgba(19, 29, 49, 0.08);
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(15, 17, 23, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(75, 53, 255, 0.045) 18.2%, transparent 18.7% 100%),
    linear-gradient(65deg, transparent 0 64%, rgba(22, 119, 255, 0.04) 64.2%, transparent 64.8% 100%);
  animation: pageSweep 12s ease-in-out infinite alternate;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

section {
  scroll-margin-top: 92px;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2 + 20px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
}

.site-nav.scrolled {
  box-shadow: 0 16px 40px rgba(19, 29, 49, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(19, 29, 49, 0.07);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-5px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(5px);
}

.site-nav.menu-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-nav.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.menu-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.button,
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button::after,
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-120%);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button:hover::after,
.nav-cta:hover::after {
  animation: buttonSweep 780ms ease;
}

.nav-cta,
.button.primary {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(15, 17, 23, 0.16);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper-solid);
}

.button.primary:hover,
.nav-cta:hover {
  border-color: var(--violet);
  background: var(--violet);
}

.button.secondary:hover {
  border-color: var(--ink);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 5.55rem;
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 1.08;
}

h3 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.16;
}

.hero {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 30px;
  align-items: start;
}

.hero-copy {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  min-width: 0;
  text-align: center;
}

.hero-sub,
.section-intro p,
.systems-copy p,
.codey-copy p,
.access p {
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.6;
}

.hero-sub {
  max-width: 760px;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof,
.firm-process-card {
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-tight);
}

.hero-proof {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
}

.process-panel {
  justify-content: start;
  gap: 16px;
}

.process-banner {
  position: relative;
  overflow: hidden;
  margin: -10px -10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
  aspect-ratio: 2 / 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.process-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.48) 50%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: imageSweep 7.4s ease-in-out infinite;
}

.process-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: processImagePulse 8s ease-in-out infinite alternate;
}

.hero-proof > span,
.firm-process-card > span,
.feature-card > span,
.better-card > span,
.firm-ledger > span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--violet);
  background: #f1efff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof p,
.firm-process-card p {
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.18;
  text-wrap: balance;
}

.hero-proof ul,
.firm-process-card ul {
  display: grid;
  gap: 10px;
}

.process-flow {
  display: grid;
  gap: 9px;
}

.hero-proof li,
.firm-process-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(247, 248, 251, 0.72);
  font-size: 0.96rem;
  line-height: 1.45;
}

.process-flow li {
  position: relative;
  min-height: 60px;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
}

.hero-proof li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 167, 101, 0.1);
}

.process-flow li::before {
  content: attr(data-step);
  display: inline-flex;
  width: 30px;
  height: 30px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 53, 255, 0.24);
  color: var(--violet);
  background: #f1efff;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.process-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 2px;
  height: 10px;
  background: linear-gradient(180deg, rgba(75, 53, 255, 0.36), rgba(22, 167, 101, 0.34));
}

.process-flow strong,
.process-flow em {
  display: block;
}

.process-flow strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.process-flow em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}

.hero-showcase,
.firm-showcase,
.codey-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.hero-showcase {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  align-self: start;
  justify-self: center;
  width: min(100%, 960px);
  aspect-ratio: 4 / 3;
  margin-top: 0;
  background: #f8faff;
}

.firm-showcase {
  margin-bottom: 20px;
}

.hero-showcase::after,
.firm-showcase::after,
.codey-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.42) 48%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: imageSweep 6.8s ease-in-out infinite;
}

.hero-showcase img,
.firm-showcase img,
.codey-showcase img {
  width: 100%;
  transform-origin: center;
  animation: mediaDrift 10s ease-in-out infinite alternate;
}

.hero-showcase img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: none;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-strip span,
.system-chips span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #273144;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(19, 29, 49, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-strip span:hover,
.system-chips span:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.firm,
.model-fusion,
.roadmap-section,
.features,
.better,
.systems,
.codey,
.access {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 104px);
}

.hero + .firm {
  padding-top: clamp(32px, 4vw, 52px);
}

.section-intro {
  max-width: 930px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-intro.compact {
  margin-bottom: 42px;
}

.section-intro p {
  max-width: 780px;
  margin: 22px auto 0;
}

.model-fusion {
  padding-top: clamp(56px, 7vw, 92px);
}

.model-fusion-frame {
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.model-fusion-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.firm-grid,
.feature-grid,
.better-grid {
  display: grid;
  gap: 14px;
}

.firm-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.firm-card,
.feature-card,
.better-card,
.road-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(19, 29, 49, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.firm-card,
.feature-card {
  min-height: 230px;
  padding: 24px;
}

.firm-card:hover,
.feature-card:hover,
.better-card:hover,
.road-step:hover {
  border-color: rgba(75, 53, 255, 0.38);
  box-shadow: 0 24px 70px rgba(19, 29, 49, 0.09);
  transform: translateY(-4px);
}

.firm-card strong {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.firm-card h3,
.feature-card h3 {
  margin-top: 28px;
  font-size: 1.48rem;
  text-wrap: balance;
}

.firm-card p,
.feature-card p,
.better-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.firm-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.86));
  box-shadow: 0 18px 52px rgba(19, 29, 49, 0.06);
}

.firm-ledger > span {
  grid-column: 1 / -1;
}

.firm-ledger div {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.firm-ledger strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.firm-ledger p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.firm-process-section {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 52px);
}

.firm-process-card {
  width: min(100%, 860px);
}

.firm-model {
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(19, 29, 49, 0.06);
  overflow: hidden;
}

.firm-model-copy {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
  justify-items: center;
  text-align: center;
}

.firm-model-copy .eyebrow {
  margin: 0;
}

.firm-model-copy h3 {
  max-width: 860px;
  font-size: clamp(1.7rem, 3.2vw, 3.05rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.firm-model-frame {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.firm-model-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 56px;
  align-items: start;
}

.roadmap-rail {
  position: sticky;
  top: 92px;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 24px;
  min-height: 520px;
  align-self: start;
}

.rail-line {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.1);
}

.rail-line span {
  display: block;
  width: 100%;
  height: calc(var(--rail, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--violet), var(--blue), var(--green));
}

.rail-nav {
  align-self: start;
  display: grid;
  gap: 2px;
}

.rail-nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  opacity: 0.5;
  transition: color 0.28s ease, opacity 0.28s ease;
}

.rail-nav a:hover {
  opacity: 0.85;
  color: var(--ink);
}

.rail-nav .rail-num {
  min-width: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: inherit;
}

/* Active step (in focus while scrolling): darker, bold, near-black. */
.rail-nav a.active {
  color: #0a0c11;
  font-weight: 800;
  opacity: 1;
}

.rail-nav a.active .rail-num {
  color: var(--violet);
}

.roadmap-steps {
  display: grid;
  gap: clamp(42px, 7vw, 76px);
}

.road-step {
  min-height: 420px;
  padding: 36px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.step-kicker {
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.road-step h3 {
  font-size: 2.85rem;
  line-height: 1.12;
}

.road-step p:not(.step-kicker) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.58;
}

.fill-line {
  --fill: 0%;
  display: block;
  max-width: 100%;
  padding-bottom: 0.04em;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--ink) 0 var(--fill), rgba(15, 17, 23, 0) var(--fill) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  will-change: background;
}

.better {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.better-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.better-card {
  min-height: 270px;
  padding: 28px;
}

.better-card.active {
  border-color: rgba(75, 53, 255, 0.44);
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
}

.better-card p {
  margin-top: 26px;
  font-size: 1.08rem;
}

.systems {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.systems-copy p {
  margin-top: 24px;
}

.system-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.codey {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.codey-copy p {
  margin-top: 24px;
}

.access {
  max-width: 900px;
  text-align: center;
}

.access p {
  max-width: 760px;
  margin: 24px auto 0;
}

.access .button {
  margin-top: 32px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2 + 20px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pageSweep {
  from {
    transform: translateY(-16px);
  }
  to {
    transform: translateY(16px);
  }
}

@keyframes imageSweep {
  0%,
  42% {
    transform: translateX(-120%);
  }
  68%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes buttonSweep {
  to {
    transform: translateX(120%);
  }
}

@keyframes quietLift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes processImagePulse {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.025);
  }
}

@keyframes mediaDrift {
  from {
    transform: scale(1.012) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.035) translate3d(0, -10px, 0);
  }
}

@media (max-width: 1100px) {
  .site-nav {
    padding: 0 24px;
  }

  .nav-links {
    gap: 16px;
  }

  h1 {
    max-width: 900px;
    font-size: 4.35rem;
  }

  h2 {
    font-size: 3.6rem;
  }

  .hero-head,
  .better,
  .systems,
  .codey {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-showcase,
  .hero-proof {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-showcase {
    order: 3;
    margin-top: 0;
  }

  .hero-proof {
    order: 2;
    width: 100%;
    justify-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 16px 24px;
    align-items: start;
    padding: 24px;
  }

  .hero-proof.process-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .process-panel .process-banner {
    grid-column: 1 / -1;
    margin: 0;
  }

  .hero-proof.process-panel > span,
  .hero-proof.process-panel > p {
    grid-column: 1;
  }

  .process-panel .process-flow {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .hero-proof > span {
    grid-column: 1 / -1;
  }

  .hero-proof.process-panel > span {
    grid-column: 1;
  }

  .hero-proof p {
    font-size: 1.42rem;
  }

  .firm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .firm-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .roadmap-rail {
    display: none;
  }

  .roadmap-steps {
    gap: 28px;
  }

  .road-step {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-nav {
    min-height: 60px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    order: 4;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-tight);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(22px) saturate(1.2);
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(247, 248, 251, 0.82);
  }

  .site-nav.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-cta {
    order: 3;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: 3.25rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 2.85rem;
  }

  h3,
  .road-step h3 {
    font-size: 2.15rem;
  }

  .hero-sub,
  .section-intro p,
  .systems-copy p,
  .codey-copy p,
  .access p,
  .road-step p:not(.step-kicker) {
    font-size: 1.05rem;
  }

  .firm,
  .roadmap-section,
  .features,
  .better,
  .systems,
  .codey,
  .access {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero + .firm {
    padding-top: 30px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-proof.process-panel,
  .process-panel .process-flow,
  .hero-proof.process-panel > span,
  .hero-proof.process-panel > p {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-proof ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .better-grid {
    grid-template-columns: 1fr;
  }

  .road-step,
  .hero-proof,
  .firm-card,
  .feature-card,
  .better-card,
  .firm-ledger {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2.18rem;
  }

  h3,
  .road-step h3 {
    font-size: 1.62rem;
  }

  .hero-actions,
  .hero-strip,
  .system-chips {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-strip span,
  .system-chips span {
    min-height: 34px;
    font-size: 0.8rem;
  }

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

  .firm-ledger {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-proof p {
    font-size: 1.24rem;
  }

  .hero-proof {
    width: 100%;
  }

  .hero-proof.process-panel {
    grid-template-columns: 1fr;
  }

  .process-panel .process-flow,
  .hero-proof.process-panel > span,
  .hero-proof.process-panel > p {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-proof ul {
    grid-template-columns: 1fr;
  }

  .road-step,
  .hero-proof,
  .firm-card,
  .feature-card,
  .better-card,
  .firm-ledger {
    padding: 20px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 32px;
  }

  .firm,
  .roadmap-section,
  .features,
  .better,
  .systems,
  .codey,
  .access {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero + .firm {
    padding-top: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .site-nav {
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 3.4rem;
  }

  .hero-sub {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-showcase {
    margin-top: 24px;
  }

  .hero + .firm {
    padding-top: 28px;
  }

  .firm,
  .roadmap-section,
  .features,
  .better,
  .systems,
  .codey,
  .access {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}

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

/* ───────────────────────── header account entry ───────────────────────── */

.nav-auth {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-solid);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  transition: border-color 180ms ease, transform 180ms ease;
}

.nav-auth:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}

.nav-auth.nav-user {
  padding: 0 13px 0 6px;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(160deg, var(--violet), var(--blue));
  font-size: 0.7rem;
  font-weight: 900;
}

.nav-auth .nav-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links .nav-auth-mobile {
  display: none;
}

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

  .nav-links .nav-auth-mobile {
    display: flex;
    font-weight: 850;
  }
}

/* ───────────────────────── beta request form ───────────────────────── */

.beta-form {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin: 32px auto 0;
  text-align: left;
}

.beta-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
}

.beta-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-solid);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.beta-form input::placeholder {
  color: var(--muted);
}

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

.beta-form input.locked {
  background: var(--paper-soft);
  color: var(--muted);
  cursor: default;
}

.beta-form .button {
  width: 100%;
  margin-top: 4px; /* overrides .access .button's 32px inside the grid */
  cursor: pointer;
  font-family: inherit;
}

.beta-form .button[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.beta-status {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.beta-status.error {
  color: #c22944;
}

.beta-status.success {
  color: var(--green);
}

.beta-done {
  width: min(560px, 100%);
  margin: 32px auto 0;
  padding: 26px 22px;
  border: 1px solid rgba(22, 167, 101, 0.32);
  border-radius: var(--radius);
  background: rgba(22, 167, 101, 0.07);
  text-align: center;
}

.beta-done strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
}

.beta-done p {
  margin: 8px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .beta-fields {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────── download modal ───────────────────────── */

.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.uc-modal[hidden] { display: none; }

.uc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.45);
  backdrop-filter: blur(4px);
}

.uc-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 34px 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
  box-shadow: var(--shadow);
  text-align: center;
  animation: modalIn 200ms ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.uc-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-solid);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.uc-modal-x:hover { color: var(--ink); border-color: var(--line-strong); }
.uc-modal-x:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.uc-modal-logo { margin: 0 auto 14px; border-radius: 50%; }

.uc-modal-card h2 {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
}

#dl-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.uc-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.uc-modal-actions .button { width: 100%; cursor: pointer; }

.uc-modal-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .uc-modal-card { animation: none; }
}

/* ───────────────────── reduced motion (site-wide) ─────────────────────
   Honor the OS "reduce motion" setting: stop the ambient sweeps, the
   scroll-reveal/Ken-Burns animations, and all transitions. site.js also
   reads the same preference (no smooth scroll, fill-lines shown in full). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fill-line { --fill: 100% !important; }
}

/* ───────────────────── accessibility: focus ring + skip link ─────────────────────
   Site-wide visible keyboard focus (every page loads style.css) and the
   skip-to-content link styling (so the link works on pages that don't load
   docs.css). */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible,
.nav-auth:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 100;
  padding: 9px 15px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
  font-size: 0.88rem;
  transition: top 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* Status-text contrast (WCAG 1.4.3) — darker than the brand tokens for small text. */
.beta-status.success { color: #0d6b41; }
.firm-card strong { color: #0d5bd1; }
