/* Vance & Kross — shared styles */

:root {
  --bg: #f8f7f2;
  --bg-warm: #f3f1e9;
  --ink: #1a1a1a;
  --muted: #6b6b66;
  --gold: #c4a02a;
  --gold-deep: #a68620;
  --dark: #1c1c1a;
  --dark-2: #262622;
  --line: #e4e2da;
  --card: #ffffff;
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 32px;
  height: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
}

.nav a:not(.btn) {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.nav a:not(.btn):hover {
  color: var(--gold-deep);
}

.nav .btn-solid {
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: #fff;
}

.btn-solid:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost.on-dark {
  border-color: #fff;
  color: #fff;
}

.btn-ghost.on-dark:hover {
  background: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Type helpers */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.gold {
  color: var(--gold-deep);
}

.lede {
  color: var(--muted);
  max-width: 38rem;
}

.display {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.gold {
  color: var(--gold);
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0.85rem 0 1.15rem;
}

.hero .lede {
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.hero-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(26 26 26 / 0.06);
  padding: 1.4rem 1.5rem 1.5rem;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.bar-track {
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  position: relative;
  background: linear-gradient(90deg, var(--bg-warm) 0 72%, var(--gold) 72% 100%);
}

.bar-knob {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}

.hero-card p {
  text-align: center;
  margin-top: 1.6rem;
  font-size: 0.98rem;
}

/* Split */

.split {
  padding: 1rem 0 4.5rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.split h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.7rem;
}

.split p {
  color: var(--muted);
  max-width: 28rem;
}

/* Cards */

.section {
  padding: 2rem 0 5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 520;
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.card {
  padding: 1.6rem 1.5rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card:nth-child(3n),
.card:last-child {
  border-right: 0;
}

.card:nth-child(n+4) {
  border-bottom: 0;
}

.card-num {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  color: var(--ink);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Dark band */

.band {
  background: var(--dark);
  color: #f4f2ea;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.band .eyebrow {
  color: var(--gold);
}

.band h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 0.7rem 0 0.85rem;
  max-width: 16ch;
}

.band .lede {
  color: #b8b6ad;
}

.band .btn-row {
  margin-top: 1.5rem;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.compare {
  border: 1px solid #3a3a34;
  padding: 1.25rem 1.3rem 1.4rem;
}

.compare-title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  color: #b8b6ad;
}

.compare-row:last-child {
  margin-bottom: 0;
}

.compare-bar {
  height: 8px;
  background: #3a3a34;
  border-radius: 99px;
}

.compare-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4a4a44;
}

.compare-bar.ours {
  height: 12px;
}

.compare-bar.ours span {
  background: var(--gold);
}

.compare-note {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: #8a887e;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #3a3a34;
}

.trait h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.45rem;
}

.trait p {
  color: #b8b6ad;
  font-size: 0.95rem;
}

/* Steps */

.steps {
  padding: 4.5rem 0 5rem;
}

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

.step {
  display: grid;
  grid-template-columns: 3rem 14rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  color: var(--muted);
}

.ruler {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  height: 12px;
  border-top: 1px solid var(--line);
}

.ruler span {
  width: 1px;
  height: 8px;
  background: var(--line);
}

/* Funnel */

.funnel {
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.funnel-row {
  display: grid;
  grid-template-columns: 10rem 1fr 3.5rem;
  gap: 1rem;
  align-items: center;
}

.funnel-row p {
  font-size: 0.95rem;
}

.funnel-bar {
  height: 28px;
  background: var(--gold);
  border-radius: 2px;
}

.funnel-row:nth-child(2) .funnel-bar {
  width: 40%;
  background: color-mix(in srgb, var(--gold) 80%, var(--ink));
}

.funnel-row:nth-child(3) .funnel-bar {
  width: 15%;
  background: color-mix(in srgb, var(--gold) 55%, var(--ink));
}

.funnel-row:nth-child(4) .funnel-bar {
  width: 4%;
  background: var(--ink);
}

.funnel-n {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

.note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* FAQ */

.faq {
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold-deep);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 38rem;
}

/* CTA card */

.cta {
  padding: 0 0 5.5rem;
}

.cta-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgb(26 26 26 / 0.06);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.cta-card p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 12rem;
}

/* Values */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.value p {
  color: var(--muted);
}

/* Library */

.lib-features {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.lib-features li {
  display: grid;
  grid-template-columns: 3rem 12rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.lib-features li:last-child {
  border-bottom: 1px solid var(--line);
}

.lib-features strong {
  font-size: 1.05rem;
}

.lib-features span {
  color: var(--muted);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.lib-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem 1.15rem 1.4rem;
}

.lib-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.lib-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Get started form */

.start-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 5rem;
}

.start-layout .lede + .lede {
  margin-top: 1rem;
}

.start-form {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(26 26 26 / 0.06);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.start-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 550;
}

.start-form .form-full {
  margin: 1rem 0 1.25rem;
}

.start-form input,
.start-form select,
.start-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}

.start-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231A1A1A' d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.start-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.start-form input:focus,
.start-form select:focus,
.start-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.start-form .btn {
  width: 100%;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--gold-deep, #a8791f);
}

.form-status.is-error {
  color: #a33a1e;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Page hero (inner pages) */

.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
}

.page-hero .eyebrow {
  color: var(--gold-deep);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  max-width: 14ch;
  margin: 0.7rem 0 1rem;
}

.page-hero .lede {
  font-size: 1.12rem;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid,
  .split-grid,
  .band-grid,
  .cta-card,
  .card-grid,
  .trait-grid,
  .value-grid,
  .start-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card:nth-child(n+4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card:last-child {
    border-bottom: 0;
  }

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

  .step,
  .lib-features li {
    grid-template-columns: 2.4rem 1fr;
  }

  .step p,
  .lib-features span {
    grid-column: 2;
  }

  .funnel-row {
    grid-template-columns: 1fr 3.2rem;
  }

  .funnel-row p {
    grid-column: 1 / -1;
  }

  .nav {
    gap: 1rem;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 0.85rem;
    min-height: 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

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

  .cta-actions {
    min-width: 0;
  }

  .start-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
