@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400&family=Plus+Jakarta+Sans:wght@400;500&display=swap");

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ede8;
  --bg-parchment: #e8e4dd;
  --surface: #ffffff;
  --primary: #1b3d2f;
  --primary-muted: #4a6358;
  --accent: #c67b5c;
  --accent-hover: #b36a4d;
  --text-headline: #2c2c2c;
  --text-body: #2c2c2c;
  --text-secondary: #6b6560;
  --text-muted: #9a9590;
  --border: #e8e4dd;
  --shadow-card: 0 2px 8px rgba(44, 44, 44, 0.04), 0 8px 24px rgba(44, 44, 44, 0.06);
  --shadow-hover: 0 4px 12px rgba(44, 44, 44, 0.06), 0 16px 32px rgba(44, 44, 44, 0.08);
  --max-width: 1200px;
  --section-padding-v: 160px;
  --card-padding: 32px;
  --card-radius: 2px;
  --margin-desktop: 120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-body);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.005em;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  background: var(--bg);
}

.container {
  width: min(calc(100% - (var(--margin-desktop) * 2)), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding-v) 0;
}

.section.alt {
  background: var(--bg-alt);
}

/* ─── TYPOGRAPHY UTILITIES ─── */
.overline {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

.overline.center {
  text-align: center;
}

.h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--text-headline);
}

.body-lg {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  letter-spacing: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 16px 32px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #2a4f3f;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  padding: 18px 36px;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-inverted-primary {
  background: var(--bg);
  color: var(--primary);
  padding: 18px 40px;
}

.btn-inverted-primary:hover {
  background: var(--bg-alt);
}

.btn-inverted-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(250, 248, 245, 0.5);
  padding: 16px 32px;
}

.btn-inverted-secondary:hover {
  background: rgba(250, 248, 245, 0.1);
}

/* ─── STICKY NAV ─── */
.feature-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.feature-nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(calc(100% - 80px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.wordmark {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-headline);
}

.nav-link.active {
  color: var(--text-headline);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  border-bottom: 1px solid var(--text-headline);
}

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile-panel {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.nav-mobile-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ─── HERO ─── */
.feature-hero {
  margin-top: 80px;
  background: linear-gradient(180deg, #faf8f5 0%, #f0ede8 100%);
  padding: 128px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: center;
}

.hero-title {
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.015em;
  font-weight: 300;
  color: var(--text-headline);
}

.hero-subhead {
  margin: 0 0 40px;
  max-width: 520px;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-fine-print {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

/* Hero mockup — DOP record view */
.hero-mockup-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  animation: heroMockupIn 0.7s ease-out 0.3s forwards;
}

@keyframes heroMockupIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mockup-spec-header {
  border-left: 3px solid var(--primary);
  background: #fcfbf8;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.mockup-spec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-spec-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-headline);
}

.mockup-status-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  background: #eef3f0;
  border: 1px solid #d5e3da;
  color: var(--primary);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.mockup-spec-fields {
  display: grid;
}

.mockup-field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 18px;
  align-items: baseline;
}

.mockup-field-row.alt {
  background: #faf8f5;
}

.mockup-field-label {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.mockup-field-value {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-headline);
}

.mockup-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.mockup-price-item {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}

.mockup-price-item strong {
  font-weight: 500;
  color: var(--text-headline);
}

.mockup-price-sep {
  color: var(--text-muted);
  font-size: 12px;
}

.mockup-spec-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: #f0f5f2;
}

.mockup-spec-footer svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.mockup-linked-text {
  font-size: 11px;
  line-height: 16px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── THE PROBLEM ─── */
.problem-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem-intro .h2 {
  margin-bottom: 24px;
}

.problem-body {
  max-width: 680px;
  margin: 0 auto 64px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  text-align: center;
}

.problem-cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.problem-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
}

.problem-card:hover {
  box-shadow: var(--shadow-hover);
}

.problem-card-num {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 300;
  color: var(--primary-muted);
  opacity: 0.3;
}

.problem-card-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--text-headline);
}

.problem-card-body {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
}

/* ─── HOW IT WORKS ─── */
.how-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.how-intro .h2 {
  margin-bottom: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  transition: box-shadow 0.4s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
}

.step-num {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  color: var(--primary);
  opacity: 0.4;
}

.step-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--text-headline);
}

.step-body {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

/* ─── FEATURE DEEP DIVE ─── */
.deep-dive-block {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: center;
}

.deep-dive-block + .deep-dive-block {
  margin-top: 96px;
}

.deep-dive-block.reverse {
  grid-template-columns: 45% 55%;
}

.deep-dive-overline {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--primary);
}

.deep-dive-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 36px;
  font-weight: 500;
  color: var(--text-headline);
}

.deep-dive-copy {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-secondary);
}

.capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
}

.capability-list svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── DEEP DIVE MOCKUPS ─── */
.deep-mockup {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid #f0ede8;
  overflow: hidden;
}

.deep-mockup-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  background: #fcfbf8;
  font-weight: 500;
}

.deep-mockup-body {
  padding: 16px 18px 18px;
}

/* DOP two-vendor mockup */
.dop-vendor-section {
  margin-bottom: 4px;
}

.dop-vendor-label {
  margin-bottom: 6px;
}

.dop-vendor-role {
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dop-vendor-role.com-role {
  color: var(--primary);
}

.dop-vendor-rows {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.dop-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.dop-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.dop-divider-label {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.com-detail-rows {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.com-detail-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 9px 12px;
  align-items: baseline;
}

.com-detail-row.alt {
  background: #faf8f5;
}

.com-detail-key {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.com-detail-val {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-headline);
}

.com-spec-linked {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f0f5f2;
  border: 1px solid #d5e3da;
  border-radius: 2px;
}

.com-linked-label {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-muted);
  font-weight: 500;
  white-space: nowrap;
}

.com-linked-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.com-chip {
  padding: 2px 8px;
  border-radius: 2px;
  background: #eef3f0;
  border: 1px solid #c4d9ce;
  font-size: 10px;
  line-height: 16px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Graded / selection table */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 18px;
}

.grade-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f8f5f0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.grade-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
}

.grade-table tr:last-child td {
  border-bottom: none;
}

.grade-table tr:nth-child(even) td {
  background: #fdfcf9;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grade-badge.grade-i   { background: #f0ede8; color: #6b6560; }
.grade-badge.grade-ii  { background: #eaf0ed; color: #4a6358; }
.grade-badge.grade-iii { background: #e4ecf0; color: #3d5f6a; }
.grade-badge.grade-iv  { background: #1b3d2f; color: #faf8f5; }

.grade-table-footer {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8f5f0;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grade-footer-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.grade-footer-total {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* ─── ONBOARDING FLOW ─── */
.onboard-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.onboard-intro .h2 {
  margin-bottom: 20px;
}

.onboard-subhead {
  max-width: 680px;
  margin: 0 auto 56px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}

.onboard-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.onboard-step {
  flex: 1;
  min-width: 0;
}

.onboard-step-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 2px solid var(--border);
  transition: box-shadow 0.4s ease;
}

.onboard-step-card:hover {
  box-shadow: var(--shadow-hover);
}

.onboard-step-card--active {
  border-top-color: var(--primary);
}

.onboard-step-label {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-headline);
}

.onboard-step-sub {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}

.onboard-arrow {
  flex-shrink: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.onboard-arrow svg {
  width: 28px;
  height: 10px;
}

/* ─── DARK CTA SECTION ─── */
.dark-cta {
  position: relative;
  background: var(--primary);
  padding: 128px 0;
  overflow: hidden;
}

.dark-cta-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 25% 20%, #ffffff 1px, transparent 1.2px),
    radial-gradient(circle at 75% 75%, #ffffff 1px, transparent 1.2px);
  background-size: 12px 12px, 14px 14px;
  pointer-events: none;
}

.dark-cta .container {
  position: relative;
  z-index: 1;
}

.dark-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dark-cta-h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--bg);
}

.dark-cta-sub {
  margin: 0 auto 40px;
  max-width: 600px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(250, 248, 245, 0.7);
}

.dark-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dark-cta-fine {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(250, 248, 245, 0.5);
}

/* ─── FOOTER ─── */
.feature-footer {
  background: var(--primary);
  color: var(--bg);
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bg);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.footer-tagline {
  margin: 0;
  max-width: 240px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(250, 248, 245, 0.6);
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bg);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0 0 2px;
}

.footer-links a {
  color: rgba(250, 248, 245, 0.65);
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 248, 245, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-copy,
.footer-bottom-links {
  font-size: 13px;
  line-height: 20px;
  color: rgba(250, 248, 245, 0.4);
}

.footer-bottom-links a:hover {
  color: var(--bg);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  :root {
    --margin-desktop: 64px;
    --section-padding-v: 96px;
  }

  .hero-title {
    font-size: 54px;
    line-height: 62px;
  }

  .hero-grid,
  .deep-dive-block,
  .deep-dive-block.reverse {
    gap: 52px;
  }

  .dark-cta-h2 {
    font-size: 38px;
    line-height: 46px;
  }
}

@media (max-width: 1024px) {
  :root { --margin-desktop: 40px; }

  .nav-inner { width: min(calc(100% - 48px), var(--max-width)); }
  .nav-center { gap: 24px; }

  .hero-grid,
  .deep-dive-block,
  .deep-dive-block.reverse {
    grid-template-columns: 1fr;
  }

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

  .problem-cards-grid { grid-template-columns: 1fr; gap: 20px; }

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

  .onboard-flow {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  :root {
    --margin-desktop: 20px;
    --section-padding-v: 64px;
  }

  .nav-inner {
    width: calc(100% - 40px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-center,
  .nav-cta-wrap { display: none; }

  .nav-mobile-toggle { display: inline-flex; }

  .feature-hero { padding: 96px 0 64px; }

  .hero-title { font-size: 40px; line-height: 48px; }

  .hero-subhead { font-size: 17px; line-height: 28px; }

  .h2 { font-size: 32px; line-height: 40px; }

  .body-lg { font-size: 17px; line-height: 27px; }

  .dark-cta-h2 { font-size: 30px; line-height: 38px; }

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

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

  .grade-table th:nth-child(n+4),
  .grade-table td:nth-child(n+4) { display: none; }

  .onboard-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .onboard-step {
    width: 100%;
  }

  .onboard-arrow {
    justify-content: center;
    padding: 6px 0;
    transform: rotate(90deg);
  }

  .mockup-field-row { grid-template-columns: 90px 1fr; }
}

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

  .btn,
  .nav-link,
  .nav-mobile-panel,
  .step-card,
  .problem-card,
  .onboard-step-card,
  .reveal,
  .hero-mockup-card {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .hero-mockup-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
