/* =========================================================
   Pass with Tom — design system
   Aesthetic: premium product page / flagship car-brand style
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --ink:         #191456;
  --ink-soft:    #2d2a6e;
  --ink-muted:   #6b67a0;
  --paper:       #FFFFFF;
  --paper-soft:  #F6F5F2;
  --paper-warm:  #ECEAE4;
  --hairline:    rgba(25, 20, 86, 0.12);
  --hairline-soft: rgba(25, 20, 86, 0.07);

  /* Type */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --pad-inline: clamp(24px, 5vw, 96px);
  --section-pad: clamp(80px, 12vh, 160px);

  /* Radius */
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.005em;
}

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; padding-inline: var(--pad-inline); }
.wrap--wide { max-width: 1600px; margin-inline: auto; padding-inline: var(--pad-inline); }
.wrap--narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--pad-inline); }

section { position: relative; }
section + section { /* natural spacing comes from internal padding */ }

.section { padding-block: var(--section-pad); }
.section--soft { background: var(--paper-soft); }
.section--warm { background: var(--paper-warm); }
.section--ink  { background: var(--ink); color: var(--paper); }
.section--ink .muted { color: rgba(255,255,255,0.6); }

/* ---------- Typography ---------- */
.display-xl {
  font-size: clamp(52px, 9vw, 156px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.display-l {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display-m {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.display-s {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.body-xl {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.body-lg {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.body { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.small { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label--dark { color: var(--ink); }
.label--light { color: rgba(255,255,255,0.7); }

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.muted { color: var(--ink-muted); }
.soft  { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: 1600px; margin-inline: auto;
  padding-inline: var(--pad-inline);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 16px; letter-spacing: -0.02em;
}
.brand__mark {
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink);
}
.site-nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease;
}
.site-nav__cta:hover { transform: translateY(-1px); background: #0f0d3a; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper);
    padding: 24px var(--pad-inline) 32px;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .site-nav.open a { font-size: 18px; }
}

/* ---------- Hero (full-bleed sky-extended image, text sits in the sky) ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh;
  min-height: 720px;
  max-height: 1100px;
  background: var(--paper);
  isolation: isolate;
}
.hero__bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: -150px;
  background: url("../images/hero-road-v3.jpg") center 60% / cover no-repeat;
  transform: translate3d(0,0,0);
  will-change: transform;
  z-index: 0;
}
/* White at the top so text sits on a clean background; fades to transparent
   by mid-hero revealing the car and greenery below. */
.hero__fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1)    0%,
    rgba(255,255,255,0.96) 10%,
    rgba(255,255,255,0.78) 24%,
    rgba(255,255,255,0.3)  40%,
    rgba(255,255,255,0)    52%,
    rgba(255,255,255,0)    100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin-inline: auto; width: 100%;
  height: 100%;
  padding: clamp(48px, 8vh, 104px) var(--pad-inline) clamp(40px, 6vh, 72px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(24px, 3vh, 40px);
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: ""; width: 24px; height: 1px; background: var(--ink-muted);
}
.hero__headline {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(42px, 7.2vw, 124px);
}
.hero__sub {
  margin-top: clamp(18px, 2.6vh, 28px);
  max-width: 56ch; margin-inline: auto;
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: clamp(24px, 3.5vh, 36px);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
/* Ghost button in the hero sits on white — use standard styling. */
.hero__actions .btn--ghost {
  background: transparent;
  border-color: rgba(10,10,10,0.22);
}
.hero__actions .btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
}
.hero__spacer { flex: 1 1 auto; min-height: clamp(40px, 8vh, 120px); }
.hero__badge {
  position: relative; z-index: 2;
  margin-top: auto;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(10,10,10,0.5);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.hero__badge sup { font-size: 0.6em; margin-left: 1px; }

@media (max-width: 820px) {
  .hero {
    /* Mobile: let the image's own aspect define the hero; no min-100vh override
       so we don't distort the frame. */
    aspect-ratio: auto;
    min-height: 100vh;
    max-height: none;
  }
  .hero__bg {
    background-image: url("../images/hero-road-mobile-v3.jpg");
    background-position: center center;
  }
  .hero__inner { padding-top: clamp(28px, 5vh, 48px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #0f0d3a; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper-soft); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Stat strip ---------- */
.stats {
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--ink);
  color: var(--paper);
}
.stats .stat__label { color: rgba(255,255,255,0.65); }
.stats .muted { color: rgba(255,255,255,0.4); }
.stats__inner {
  max-width: 960px; margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-inline);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stat__num {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.1vw, 17px);
}
@media (max-width: 720px) {
  .stats__inner { grid-template-columns: 1fr; }
}

/* ---------- Intro / About-on-home ---------- */
.intro__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.intro__photo {
  display: flex;
  justify-content: center;
}
.intro__avatar {
  width: clamp(200px, 28vw, 400px);
  height: clamp(200px, 28vw, 400px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid var(--hairline);
  display: block;
}
.intro__heading { margin-bottom: clamp(20px, 2.5vw, 32px); }
.intro__copy p + p { margin-top: 22px; }
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .intro__photo { justify-content: flex-start; }
}

/* ---------- Pricing tiles ---------- */
.pricing__head {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px);
  align-items: end; margin-bottom: clamp(48px, 7vw, 96px);
}
.pricing__head h2 { max-width: 14ch; }
.pricing__intro { max-width: 52ch; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  min-height: 360px;
  transition: border-color .25s ease, transform .25s ease;
}
.tier:hover { border-color: var(--ink); transform: translateY(-2px); }
.tier__label { margin-bottom: auto; }
.tier__price {
  margin-top: clamp(48px, 8vw, 120px);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 500; line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.tier__per { color: var(--ink-muted); font-size: 15px; margin-top: 6px; }
.tier__name { margin-top: 28px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.tier__desc { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.tier__cta { margin-top: 28px; }
@media (max-width: 720px) {
  .pricing__head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .pricing__grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonial / pull quote ---------- */
.quote {
  max-width: 1600px; margin-inline: auto; padding: var(--section-pad) var(--pad-inline);
}
.quote__label { margin-bottom: 40px; }
.quote__text {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500; line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.quote__mark {
  display: inline-block; color: var(--ink-muted);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1em; line-height: 0; vertical-align: -0.12em;
  margin-right: 0.15em;
}
.quote__attrib {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex; align-items: center; gap: 16px;
  color: var(--ink-soft);
}
.quote__attrib::before {
  content: ""; width: 44px; height: 1px; background: var(--ink);
}

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%; height: auto; border-radius: var(--r-md);
  aspect-ratio: 4/5; object-fit: cover;
}
.split__media--wide img { aspect-ratio: 4/3; }
.split__body h2 { margin-bottom: 28px; }
.split__body p + p { margin-top: 20px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- FAQ ---------- */
.faq__head {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px);
  align-items: end; margin-bottom: clamp(40px, 6vw, 80px);
}
.faq__list {
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(28px, 3vw, 44px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.faq__item h3 {
  font-size: clamp(20px, 2vw, 28px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
}
.faq__item p {
  color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65; max-width: 60ch;
}
.faq__item p + p { margin-top: 16px; }
@media (max-width: 820px) {
  .faq__head, .faq__item { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.contact-side { position: sticky; top: 96px; }
.contact-side h2 { margin-bottom: 28px; }
.contact-methods { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.contact-method__label { color: var(--ink-muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.contact-method__value { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.02em; }
.contact-method__value a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.field--half { grid-column: span 1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline);
  transition: border-color .2s ease;
  font-size: 16px; font-family: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink);
}
.field__hint { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-side { position: static; }
  .field--half { grid-column: span 2; }
}

/* ---------- CTA strip (footer-adjacent) ---------- */
.cta-strip {
  background: var(--ink); color: var(--paper);
}
.cta-strip__inner {
  max-width: 1600px; margin-inline: auto;
  padding: clamp(80px, 12vw, 160px) var(--pad-inline);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.cta-strip h2 { color: var(--paper); max-width: 16ch; }
.cta-strip p { color: rgba(255,255,255,0.65); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; max-width: 48ch; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 820px) {
  .cta-strip__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline-soft);
}
.site-footer__inner {
  max-width: 1600px; margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--pad-inline) 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 48px);
}
.site-footer h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; font-family: var(--font-mono); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--ink-soft); font-size: 15px; transition: color .2s ease; }
.site-footer a:hover { color: var(--ink); }
.site-footer__wordmark {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 16px;
}
.site-footer__bar {
  max-width: 1600px; margin-inline: auto;
  padding: 24px var(--pad-inline);
  border-top: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--ink-muted); font-size: 13px;
}
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Testimonial cards ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tcard {
  background: var(--paper-soft);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.tcard__text {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
}
.tcard__attrib {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tcard__attrib::before {
  content: ""; width: 24px; height: 1px; background: var(--ink);
}
.tcard__name {
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.tcard__detail {
  font-size: 13px;
  color: var(--ink-muted);
}
@media (max-width: 860px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__car { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.page-intro {
  padding: clamp(96px, 14vh, 180px) var(--pad-inline) clamp(48px, 8vh, 96px);
  max-width: 1600px; margin-inline: auto;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-intro .label { margin-bottom: 32px; }
.page-intro h1 { max-width: 18ch; }
.page-intro .body-xl { max-width: 54ch; margin-top: 28px; }
