/* VanCraft referral landing page. Tokens measured from van-craft.com. */
@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --orange: #d7440a;
  --orange-dark: #b53707;
  --sand: #d8c8a9;
  --black: #000;
  --white: #fff;
  --tint: #f0f0f0;
  --muted: #475467;
  --line: #d0d5dd;
  --error: #b42318;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 9vw, 3.85rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.95rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--black); color: var(--white); }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 0.9em;
}
.eyebrow--dark { color: var(--orange-dark); }
.fine { font-size: 0.9rem; color: var(--muted); }

.btn {
  display: inline-block; border: 0; border-radius: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.06rem; letter-spacing: 0.5px;
  text-decoration: none; text-align: center;
  padding: 16px 28px; min-height: 56px;
  transition: background-color 0.15s ease;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.test-strip {
  margin: 0; padding: 8px var(--gutter); text-align: center;
  background: #ffb92a; color: var(--black); font-size: 0.85rem; font-weight: 700;
}

/* Hero */
.hero { position: relative; min-height: 92svh; display: flex; color: var(--white); background: var(--black); isolation: isolate; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -1; }
.hero__media img { object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.82) 100%);
}
.hero__inner { display: flex; flex-direction: column; justify-content: space-between; padding-top: 24px; padding-bottom: 44px; }
.hero__logo img { width: 190px; }
.hero__copy { max-width: 640px; }
.hero__sub { font-size: 1.15rem; font-weight: 500; margin-bottom: 1.5em; max-width: 30em; }

/* Offer */
.offer__grid { display: grid; gap: 32px; align-items: center; }
.offer__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--black); padding-top: 18px; }
.steps li::before {
  content: "0" counter(step); display: block;
  font-size: 0.95rem; font-weight: 700; color: var(--orange-dark); margin-bottom: 10px;
}
.steps p { margin: 0; color: var(--muted); }

/* Meet VanCraft */
.intro { display: grid; gap: 28px; align-items: center; margin-bottom: 48px; }
.intro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.models { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.model img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--black); margin-bottom: 16px; }
.model h3 { margin-bottom: 0.3em; }
.model p { margin: 0 0 0.5em; font-size: 1rem; color: var(--muted); }
.model .model__spec { font-size: 0.88rem; font-weight: 600; color: var(--black); }

/* Form */
.claim { display: grid; gap: 28px; }
.claim__copy p { color: #e4e7ec; max-width: 28em; }
.claim__phone a { color: var(--sand); font-weight: 600; }
.card { background: var(--white); color: var(--black); padding: 24px 20px; }
.row { display: grid; gap: 0 16px; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 4px; }
input, select {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--black);
  background: var(--white); border: 1px solid #98a2b3; border-radius: 0;
}
input:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { margin: 6px 0 0; font-size: 0.88rem; color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.form-error { background: #fef3f2; border: 1px solid var(--error); padding: 12px 14px; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { padding: 12px 0; }
.success h3 { font-size: 1.9rem; }
.success:focus { outline: none; }
.success a { font-weight: 600; }

/* FAQ and terms */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 20px 36px 20px 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--orange); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-right: 24px; }
.terms { margin-top: 48px; font-size: 0.85rem; color: var(--muted); }
.terms h3 { font-size: 0.95rem; color: var(--black); }

/* Footer */
.footer { background: var(--black); color: var(--white); padding: 48px 0 28px; font-size: 0.95rem; }
.footer__grid { display: grid; gap: 28px; align-items: start; }
.footer__grid > img:first-child { width: 220px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__rvia { width: 150px; }
.footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #344054; font-size: 0.82rem; color: #d0d5dd; }
.footer__legal p { margin: 0 0 6px; }

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .section { padding: 96px 0; }
  .hero { min-height: 88vh; }
  .hero__inner { padding-top: 36px; padding-bottom: 72px; }
  .hero__logo img { width: 249px; }
  .hero__media::after {
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.1) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
  }
  .offer__grid, .intro { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .claim { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .card { padding: 40px; }
  .row--two { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1.5fr 1fr; }
  .footer__legal { display: flex; justify-content: space-between; }
}

@media (min-width: 1040px) {
  .models { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

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