@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);
}

/* ─── 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);
}

/* ─── NAV LOGIN LINK ─── */
.nav-login-link {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-login-link:hover {
  color: var(--primary-muted);
}

/* ─── 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-cta-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.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 — Budget overview */
.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-budget-header {
  border-left: 3px solid var(--primary);
  background: #fcfbf8;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

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

.mockup-budget-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;
}

/* Budget table */
.mockup-budget-table {
  display: grid;
  font-size: 12px;
}

.mockup-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 1fr 0.8fr;
  gap: 8px;
  padding: 8px 14px;
  background: #f8f5f0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mockup-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-size: 12px;
  line-height: 18px;
}

.mockup-table-row.alt {
  background: #fdfcf9;
}

.mockup-item-name {
  font-weight: 500;
  color: var(--text-headline);
  font-size: 12px;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-specified {
  background: #eef3f0;
  border: 1px solid #d5e3da;
  color: var(--primary);
}

.badge-ordered {
  background: #e8eff7;
  border: 1px solid #c8d8ea;
  color: #2a4a6b;
}

.badge-pending {
  background: #f5f0e8;
  border: 1px solid #e0d4be;
  color: #7a6240;
}

/* Budget footer */
.mockup-budget-footer {
  padding: 12px 14px;
  background: #f0f5f2;
  border-top: 1px solid #d5e3da;
}

.mockup-footer-totals {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mockup-footer-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mockup-footer-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-footer-item strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-headline);
}

.mockup-margin {
  color: var(--primary) !important;
}

.mockup-footer-sep {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: auto;
  padding-bottom: 2px;
}

.mockup-budget-bar {
  height: 4px;
  background: rgba(27, 61, 47, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.mockup-budget-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ─── BENEFITS BAR ─── */
.benefits-bar {
  background: var(--bg-alt);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 0 32px;
}

.benefit-number {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 300;
  color: var(--primary);
}

.benefit-label {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── 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: 16px;
}

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

.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 (shared) ─── */
.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;
}

/* Budget Dashboard (Block 1) */
.budget-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.budget-summary-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  text-align: center;
  background: #f8f5f0;
  border-right: 1px solid var(--border);
}

.budget-summary-col:last-child {
  border-right: none;
}

.budget-summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.budget-summary-val {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-headline);
  line-height: 1.2;
}

.budget-margin-val {
  color: var(--primary);
}

.budget-categories {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.budget-cat-row {
  display: grid;
  grid-template-columns: 80px 1fr 56px;
  gap: 10px;
  align-items: center;
}

.budget-cat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.budget-cat-bar-wrap {
  height: 4px;
  background: rgba(27, 61, 47, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.budget-cat-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.budget-cat-bar--labor {
  background: var(--primary-muted);
}

.budget-cat-amount {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.budget-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #eef3f0;
  border: 1px solid #d5e3da;
  border-radius: 2px;
}

.budget-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.budget-status-dot--green {
  background: var(--primary);
}

.budget-status-text {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

/* Markup Rules (Block 2) */
.markup-rules-list {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.markup-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 16px;
}

.markup-rule-row.alt {
  background: #fdfcf9;
}

.markup-rule-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.markup-rule-category {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-headline);
  line-height: 18px;
}

.markup-rule-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 16px;
}

.markup-rule-pct {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
}

.markup-override-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f5f0e8;
  border: 1px solid #e0d4be;
  border-radius: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

.markup-override-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #7a6240;
}

.markup-override-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CSV Export (Block 3) */
.csv-preview {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 11px;
}

.csv-header-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 0.6fr;
  gap: 6px;
  padding: 8px 12px;
  background: #f8f5f0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.csv-data-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 0.6fr;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  align-items: center;
}

.csv-data-row:last-child {
  border-bottom: none;
}

.csv-data-row.alt {
  background: #fdfcf9;
}

.csv-data-row span:first-child {
  font-weight: 500;
  color: var(--text-headline);
}

.csv-export-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f0f5f2;
  border: 1px solid #d5e3da;
  border-radius: 2px;
}

.csv-export-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

.csv-export-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.csv-export-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

/* ─── USE CASE SPOTLIGHT ─── */
.use-case-spotlight {
  position: relative;
  background: var(--primary);
  padding: 128px 0;
  overflow: hidden;
}

.use-case-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;
}

.use-case-spotlight .container {
  position: relative;
  z-index: 1;
}

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

.use-case-overline {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.5);
}

.use-case-title {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: #faf8f5;
}

.use-case-body {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 28px;
  color: rgba(250, 248, 245, 0.75);
}

.use-case-body:last-child {
  margin-bottom: 0;
}

.use-case-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-card {
  background: rgba(250, 248, 245, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(250, 248, 245, 0.12);
  padding: 24px 28px;
  border-radius: 2px;
}

.use-case-card-number {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  color: #faf8f5;
}

.use-case-card-label {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(250, 248, 245, 0.7);
}

/* ─── RELATED FEATURES ─── */
.related-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.related-intro .h2 {
  margin-bottom: 16px;
}

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

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

.related-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  transition: box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.related-card-body {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
  flex: 1;
}

.related-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
  display: inline-block;
}

.related-card-link:hover {
  color: var(--primary-muted);
}

/* ─── CTA SECTION ─── */
.cta-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.cta-body {
  margin: 0 auto 48px;
  max-width: 620px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}

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

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

/* ─── 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;
  }

  .use-case-title {
    font-size: 34px;
    line-height: 42px;
  }

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

@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,
  .related-cards-grid { grid-template-columns: 1fr; gap: 20px; }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefit-divider {
    width: 60px;
    height: 1px;
    margin: 0 auto;
  }

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

  .use-case-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@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; }

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

  .use-case-title { font-size: 30px; line-height: 38px; }

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

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

  .benefit-number { font-size: 28px; }

  .mockup-table-head span:nth-child(3),
  .mockup-table-row span:nth-child(3) { display: none; }

  .mockup-table-head,
  .mockup-table-row { grid-template-columns: 2fr 1fr 1fr 0.9fr; }

  .csv-header-row span:nth-child(2),
  .csv-data-row span:nth-child(2) { display: none; }

  .csv-header-row,
  .csv-data-row { grid-template-columns: 2fr 0.8fr 0.8fr 0.6fr; }

  .budget-summary-val { font-size: 15px; }
}

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

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

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