/* WAWI prelaunch — palette and type carried over from the "WAWI Landing Page" design */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #16202a;
  --ink-deep: #0b1014;
  --paper: #f3f0e8;
  --line: #ddd6c6;
  --rust: #d03d0e;
  --rust-dark: #b5360c;
  --ember: #f08a5d;
  --sand: #e9e2d2;
  --kraft: #c9a97e;
  --gum: #3f5446;
  --gum-text: #dfe3dc;
  --stone: #b9b4a8;
  --dune: #e6e1d4;

  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--rust);
  scrollbar-color: var(--ink) var(--sand);
}

::selection { background: var(--rust); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--rust); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  padding: 16px 26px;
  border: 1.5px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn[disabled] { cursor: progress; opacity: 0.75; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
  padding: 6px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 84px; }
.header-end { display: flex; align-items: center; gap: 20px; }
.launch-note { font-size: 14px; font-weight: 600; color: #4d4637; }
.site-header .btn { padding: 11px 18px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: min(86svh, 880px);
  min-height: min(86vh, 880px);
  background: var(--ink-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 60%;
}
.hero-media { z-index: -2; }
.hero-media img { animation: settle 1800ms var(--ease-out) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,16,20,0.82) 0%, rgba(11,16,20,0.5) 42%, rgba(11,16,20,0) 72%),
    linear-gradient(0deg, rgba(11,16,20,0.55) 0%, rgba(11,16,20,0) 45%);
}
@keyframes settle {
  from { transform: scale(1.07); filter: blur(6px) saturate(0.8); }
  to   { transform: scale(1);    filter: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }

.hero-body {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; max-width: 780px;
  padding: 96px var(--gutter) clamp(48px, 7vw, 80px);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
  max-width: 10ch; /* three short lines keep the headline clear of the vehicle */
}
@media (min-width: 600px) {
  .hero-body { max-width: min(780px, 60vw); }
}
.hero-lede {
  max-width: 34ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--dune);
  text-wrap: pretty;
}

/* Waitlist form */
.waitlist { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.waitlist-row { display: flex; flex-wrap: wrap; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--paper); border-radius: 0;
  background: var(--paper); color: var(--ink);
}
.waitlist input[type="email"]::placeholder { color: #6e6757; opacity: 1; }
.waitlist input[type="email"]:focus-visible { outline-offset: 0; outline-width: 3px; }
.waitlist input[aria-invalid="true"] { border-color: var(--ember); box-shadow: inset 0 -3px 0 var(--ember); }
.waitlist .btn { flex: 0 1 auto; }
.waitlist-status { font-size: 14px; color: var(--stone); min-height: 1.5em; }
.waitlist[data-state="error"] .waitlist-status { color: var(--ember); font-weight: 600; }
.waitlist[data-state="success"] .waitlist-status { color: var(--paper); font-weight: 600; }
.waitlist[data-state="success"] .waitlist-row { display: none; }
.waitlist[data-state="success"] .waitlist-status { font-size: 18px; }

.waitlist-light input[type="email"] { border-color: var(--ink); }
.waitlist-light .waitlist-status { color: #3a3226; }
.waitlist-light[data-state="error"] .waitlist-status { color: #6b1d04; }
.waitlist-light[data-state="success"] .waitlist-status { color: var(--ink); }
.waitlist-privacy { align-self: flex-start; font-size: 13px; color: var(--stone); }
.waitlist-privacy:hover { color: var(--paper); }
.waitlist-light .waitlist-privacy { color: #3a3226; }
.waitlist-light .waitlist-privacy:hover { color: var(--ink); }

/* Promises strip */
.promises { background: var(--ink); color: var(--paper); border-top: 3px solid var(--rust); }
.promises ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.promises li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px var(--gutter);
}
.promises li + li { border-left: 1px solid #2a3540; }
.promises strong { font-size: 16px; font-weight: 700; }
.promises span { font-size: 14px; color: var(--stone); }

/* Country / terrains */
.country {
  display: flex; flex-direction: column; gap: 40px;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head h2, .story h2, .join h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head p { font-size: 18px; color: #4d4637; max-width: 48ch; }

.terrain-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.terrain {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.terrain img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.terrain-text {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 72px 24px 24px;
  background: linear-gradient(0deg, rgba(11,16,20,0.88), rgba(11,16,20,0));
}
.terrain h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.terrain p { font-size: 14px; color: var(--dune); }

@media (max-width: 999px) { .terrain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .terrain-grid { grid-template-columns: 1fr; gap: 12px; }
  .terrain { aspect-ratio: 4 / 3; }
}

/* Story */
.story {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--gum); color: var(--paper);
}
.story-media { position: relative; min-height: 520px; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.story-body {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 80px);
}
.story h2 { margin-bottom: 8px; }
.story p { max-width: 46ch; color: var(--gum-text); text-wrap: pretty; }

@media (max-width: 899px) {
  .story { grid-template-columns: 1fr; }
  .story-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Join */
.join { position: relative; background: var(--kraft); overflow: hidden; isolation: isolate; }
.join::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/kraft.webp") center / 320px repeat;
  opacity: 0.6;
}
.join-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(72px, 8vw, 104px) var(--gutter);
}
.join-copy { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.join-copy p { color: #2b2419; max-width: 44ch; }
.join .waitlist { flex: 1 1 380px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px var(--gutter);
  background: var(--ink); color: var(--stone);
  font-size: 13px;
}
.footer-logo { width: auto; height: 92px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--paper); }

/* Text pages (privacy) */
.doc {
  max-width: 68ch;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px);
}
.doc h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
.doc p, .doc li { color: #2e2a22; text-wrap: pretty; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.doc ul + p { margin-top: 14px; }
.doc li::marker { color: var(--rust); }
.doc a { color: #a8300b; }
.doc a:hover { color: var(--ink); }
.doc code { font-size: 0.92em; background: var(--sand); padding: 1px 5px; }
.doc-lede { font-size: 19px; color: #4d4637; }
.doc-back { margin-top: 48px; font-weight: 700; }

/* Small screens */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .brand img { height: 64px; }
  .launch-note { display: none; }
  .site-header { min-height: 64px; }
  /* Phones: photo band above, copy on ink below, so the Hilux stays visible */
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-media { position: relative; display: block; aspect-ratio: 4 / 3; z-index: 0; }
  .hero-media img { object-position: 70% 60%; }
  .hero-media::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(0deg, var(--ink-deep), rgba(11,16,20,0));
  }
  .hero-body { margin-top: -40px; padding-top: 0; position: relative; }
  .waitlist-row { flex-direction: column; gap: 8px; }
  .waitlist input[type="email"] { flex: none; width: 100%; }
  .waitlist .btn { width: 100%; }
  .promises li + li { border-left: 0; border-top: 1px solid #2a3540; }
  .footer-meta { flex-direction: column; }
}
