/* ============================================================
   Three Arrow Auto - pre-launch landing
   Brand Guidelines v1.0 (June 2026)
   Palette: Three Arrow Green / Deep Pine / Sage / Brass / Cloud
   Type: Archivo (display) + Inter (body)
   ============================================================ */

:root {
  /* core greens */
  --pine: #235347;        /* Three Arrow Green */
  --pine-deep: #132d24;   /* Deep Pine */
  --brunswick: #305248;
  --sage: #5f8278;

  /* accent + neutrals */
  --brass: #c9a23f;
  --brass-hover: #b48f31;
  --brass-bright: #dcb959;
  --mist: #dce6e2;
  --cloud: #f2f2f2;
  --ink: #16201c;
  --ink-soft: #45524b;

  --line: rgba(22, 32, 28, 0.12);
  --line-light: rgba(242, 242, 242, 0.16);

  --maxw: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-display: "Archivo", "Arial", sans-serif;
  --font-body: "Inter", "Arial", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- eyebrow / labels (Archivo, tracked) ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.eyebrow.on-cream { color: var(--brass); }

/* ---------- headings (Archivo) ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 45, 36, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-light);
  color: var(--cloud);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.navlinks { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.navlinks a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.82);
  transition: color 0.18s ease;
}
.navlinks a:hover { color: #fff; }
.navlinks a.btn-mini {
  background: var(--brass);
  color: var(--pine-deep);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.navlinks a.btn-mini:hover { background: var(--brass-hover); color: var(--pine-deep); }

@media (max-width: 560px) {
  .navlinks a.text-link { display: none; }
}

/* ============================================================
   Hero + signup
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(95, 130, 120, 0.4), transparent 60%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--cloud);
  overflow: hidden;
}
/* faint brand mark watermark, bleeding off the right (echoes the brand cover) */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  background: url("mark-white.svg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--brass-bright); }
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.86);
  max-width: 40ch;
  margin: 0 0 2rem;
}
.values {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.72);
}
.values span { display: inline-flex; align-items: center; gap: 0.55rem; }
.values span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---------- signup card ---------- */
.signup-card {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--mist);
}
.signup-card .mini-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
}
.signup-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.signup-card p.sub {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(35, 83, 71, 0.16);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

/* honeypot */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--pine-deep);
  background: var(--brass);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.06s ease;
}
.btn:hover { background: var(--brass-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn:focus-visible { outline-color: var(--pine-deep); }
.btn .arrow { width: 18px; height: 18px; color: var(--pine-deep); }

.fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(35, 83, 71, 0.1); color: var(--pine); border: 1px solid rgba(35, 83, 71, 0.25); }
.form-status.err { background: rgba(176, 58, 46, 0.08); color: #8f342a; border: 1px solid rgba(176, 58, 46, 0.3); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hero-copy { order: 1; }
  .signup-card { order: 2; }
  .hero .lede { max-width: 48ch; }
  .hero::after { opacity: 0.04; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cloud); }
.faq .wrap {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group > .group-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
  padding-bottom: 0.6rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

details.qa { border-bottom: 1px solid var(--line); }
details.qa > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary .tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  color: var(--pine);
  transition: transform 0.2s ease;
}
details.qa[open] > summary .tick { transform: rotate(90deg); }
details.qa .answer {
  padding: 0 0 1.3rem 2rem;
  max-width: 68ch;
  color: var(--ink-soft);
}
details.qa .answer p { margin: 0 0 0.8rem; }
details.qa .answer p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  details.qa .answer { padding-left: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--ink);
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.9rem;
}
.foot .wrap {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.foot .brand .name { color: #fff; }
.foot .legal { max-width: 46ch; line-height: 1.55; }
.foot a { color: var(--brass-bright); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ============================================================
   Accessibility / motion
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
