* {
  box-sizing: border-box;
}

:root {
  --df-bg: #f7f7f4;
  --df-ink: #17202a;
  --df-muted: #5d6873;
  --df-subtle: #8a929a;
  --df-soft: #f0f2ef;
  --df-surface: #ffffff;
  --df-panel: rgba(255, 255, 255, 0.78);
  --df-border: #d9ded8;
  --df-border-strong: #b9c2bb;
  --df-accent: #b3522b;
  --df-accent-dark: #843b20;
  --df-green: #176b55;
  --df-blue: #245f78;
  --df-radius: 8px;
  --df-radius-tight: 7px;
  --df-shadow: 0 16px 44px rgba(23, 32, 42, 0.09);
  --ink: var(--df-ink);
  --paper: var(--df-bg);
  --paper-strong: var(--df-surface);
  --line: var(--df-border);
  --line-strong: var(--df-border-strong);
  --shadow: var(--df-shadow);
  --accent: var(--df-accent);
  --accent-strong: var(--df-accent-dark);
  --accent-soft: rgba(179, 82, 43, 0.1);
  --signal-good: var(--df-green);
  --signal-bad: #9f3d31;
  --signal-warn: #8b6a18;
  --muted: var(--df-muted);
  --surface: var(--df-surface);
  --surface-muted: var(--df-soft);
  --surface-warm: #f7efe7;
  --subtle: var(--df-subtle);
  --green: var(--df-green);
  --blue: var(--df-blue);
  --red: #9f3d31;
  --yellow: #8b6a18;
  --hero-a: #f7efe7;
  --hero-b: #f0f2ef;
  --hero-c: var(--df-accent);
  --hero-d: var(--df-ink);
  --sans: Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif:
    Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html {
  background: var(--df-bg);
}

body {
  margin: 0;
  color: var(--df-ink);
  background: var(--df-bg);
  font-family:
    Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  text-underline-offset: 0.18em;
}

.shell {
  width: min(1160px, calc(100vw - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  border-bottom: 1px solid rgba(217, 222, 216, 0.82);
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.shell.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  color: var(--df-ink);
  text-decoration: none;
}

.brand-mark,
.brand .brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: var(--df-radius);
  background: var(--df-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand:not(:has(.brand-mark))::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--df-radius);
  background:
    linear-gradient(#f6f2eb, #f6f2eb) 11px 8px / 4px 26px no-repeat,
    linear-gradient(#f6f2eb, #f6f2eb) 19px 8px / 4px 26px no-repeat,
    linear-gradient(#f6f2eb, #f6f2eb) 27px 8px / 4px 26px no-repeat,
    linear-gradient(var(--df-accent), var(--df-accent)) 7px 17px / 28px 7px
      no-repeat,
    var(--df-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-copy strong,
.brand strong {
  color: var(--df-ink);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-copy span,
.brand span {
  color: var(--df-muted);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--df-muted);
  font-size: 14px;
}

nav a,
.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 9px 10px;
  color: var(--df-muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
}

nav a:hover,
.topbar nav a:hover {
  color: var(--df-ink);
  background: rgba(23, 32, 42, 0.05);
}

main {
  overflow: hidden;
}

.hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--df-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 52%),
    var(--df-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 44px;
  align-items: center;
}

h1,
h2,
h3 {
  font-family:
    Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.hero h1,
.hero-copy h1,
.hero-card h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--df-ink);
  font-family:
    Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead,
.hero-copy p,
.hero-card p,
.section-head p,
.section-copy p,
.contact-copy p,
.cta p {
  color: rgba(31, 36, 43, 0.76);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  letter-spacing: 0;
}

.eyebrow,
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin-bottom: 18px;
  padding: 6px 8px;
  color: var(--df-accent-dark);
  border: 1px solid var(--df-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--df-accent);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 15px;
  border-radius: var(--df-radius-tight);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: normal;
}

.button {
  color: #fff;
  background: var(--df-ink);
  border: 1px solid var(--df-ink);
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.16);
}

.button-secondary {
  color: var(--df-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--df-border-strong);
}

.hero-actions,
.section-actions,
.card-actions,
.contact-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: clamp(36px, 6vw, 78px) 0;
}

.section-card,
.hero-copy,
.hero-card,
.hero-rail,
.hero-proof,
.hero-panel,
.product-board,
.rail-card,
.proof-card,
.faq-card,
.fit-card,
.source-card,
.contact-card,
.note-card,
.value-card,
.plan-card,
.step-card,
.workflow-card,
.replay-card,
.hero-fit-card,
.metric,
.cta-card {
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius);
  background: var(--df-panel);
  box-shadow: var(--df-shadow);
}

.hero-copy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.hero-copy::before {
  content: none;
}

.section-card,
.hero-card,
.hero-rail,
.hero-proof,
.hero-panel,
.product-board,
.rail-card,
.proof-card,
.faq-card,
.fit-card,
.source-card,
.contact-card,
.note-card,
.value-card,
.plan-card,
.step-card,
.workflow-card,
.replay-card,
.hero-fit-card,
.metric,
.cta-card {
  padding: clamp(22px, 4vw, 42px);
}

.section-head,
.section-copy {
  display: grid;
  gap: 12px;
}

.section h2,
.section-head h2,
.contact-copy h2,
.cta h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--df-ink);
  font-family:
    Inter, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section h3,
.faq-card h3,
.fit-card h3,
.contact-card h3,
.note-card h3,
.replay-card h3,
.plan-card h3,
.rail-card h3,
.proof-card h3 {
  color: var(--df-ink);
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.faq-card small,
.note-card small,
.proof-card small,
.rail-card small,
.fit-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--df-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.faq-card h3,
.note-card h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 5vw, 28px);
}

.faq-card p,
.note-card p {
  margin: 0;
  color: rgba(23, 32, 42, 0.82);
  line-height: 1.58;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
}

.status-pill,
.proof-chip,
.pill,
.badge,
.replay-chip,
.contact-tag,
.price-chip,
.fit-item,
.status-badge {
  border-radius: 999px;
  letter-spacing: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--df-border);
  color: var(--df-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.status-pill.good {
  color: var(--df-green);
  background: rgba(23, 107, 85, 0.1);
  border-color: rgba(23, 107, 85, 0.18);
}

.status-pill.warn {
  color: var(--df-accent-dark);
  background: rgba(179, 82, 43, 0.1);
  border-color: rgba(179, 82, 43, 0.18);
}

.status-pill.blue {
  color: var(--df-blue);
  background: rgba(36, 95, 120, 0.1);
  border-color: rgba(36, 95, 120, 0.18);
}

footer,
.footer {
  padding: 30px 0 42px;
  color: var(--df-muted);
}

footer .shell,
.footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

footer a,
.footer a {
  color: var(--df-accent-dark);
  font-weight: 700;
}

@media (max-width: 860px) {
  .shell {
    width: min(100vw - 24px, 100%);
  }

  .topbar {
    padding-top: 0;
  }

  .topbar-inner,
  .shell.topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 14px;
    white-space: nowrap;
  }

  .brand-mark,
  .brand .brand-mark,
  .brand:not(:has(.brand-mark))::before {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .hero {
    padding: 34px 0 30px;
  }

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

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

  .hero h1,
  .hero-copy h1,
  .hero-card h1 {
    max-width: none;
    font-size: 40px;
    line-height: 1.04;
  }

  .hero-lead,
  .hero-copy p,
  .hero-card p,
  .section-head p,
  .section-copy p,
  .contact-copy p,
  .cta p {
    font-size: 17px;
  }

  .section h2,
  .section-head h2,
  .contact-copy h2,
  .cta h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .status-row {
    gap: 8px;
  }

  .status-pill {
    width: 100%;
  }
}
