/* TerraRoam landing page - option 2a, "The long way home"
   Hand-authored static site, no build step. Tokens and structure follow
   webdesign/TerraRoam landing page redesign/design_handoff_terraroam_landing/README.md
   verbatim (hex values, type scale, spacing, radii, shadows). */

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

:root {
  /* Color */
  --ink: #1E2427;
  --ink-deep: #14181a;
  --paper: #F5F3EE;
  --paper-sunk: #efece3;
  --paper-card: #ffffff;
  --sand: #D9C8A1;
  --sand-hover: #e8dab7;
  --evergreen: #2F5D50;
  --evergreen-hover: #39705f;
  --body-on-light: #4c5754;
  --body-on-light-letter: #3d4744;
  --muted-on-light: #5f6862;
  --body-on-dark: #a8b4b9;
  --muted-on-dark: #929ea4;
  --hairline-on-light: #e0dcd1;
  --hairline-sunk: #ddd8ca;
  --input-border: #ccc6b8;
  --hairline-on-dark: #2b3438;
  --amber: #8a5f13;
  --amber-mark: #D29A2E;
  --moss: #7FA05A;
  --grey-mark: #a8b0ab;
  --error: #b64b4b;

  /* Trail card, its own scale */
  --card-ground: #1b241f;
  --card-border: #2f3d35;
  --card-row-rule: #26302a;
  --card-inset: #223029;
  --card-inset-border: #35473c;
  --card-text: #f2f5f2;
  --card-label: #9fb0a4;
  --card-meta: #8a9a90;
  --card-mint: #7cc9a0;
  --card-mint-hover: #7fd0a5;
  --card-amber: #e0b06a;
  --card-warn: #e08a5a;
  --card-cta: #6fbf95;
  --card-cta-hover: #7fd0a5;
  --card-cta-text: #12231b;
  --card-ghost-border: #3f5248;
  --card-ghost-border-hover: #6fbf95;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--evergreen);
  text-decoration: none;
}

a:hover {
  color: var(--evergreen-hover);
}

section, header, footer {
  overflow: clip; /* never overflow:hidden - README's sticky gotcha */
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

.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;
}

.text-pretty {
  text-wrap: pretty;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  border: 0;
  border-radius: 8px;
  padding: 16px 28px;
  height: 54px;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: .65;
  cursor: default;
}

.btn-primary {
  background: var(--evergreen);
  color: var(--paper);
}

.btn-primary:hover:not(:disabled) {
  background: var(--evergreen-hover);
}

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

.btn-sand:hover:not(:disabled) {
  background: var(--sand-hover);
}

.btn-ghost {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--input-border);
  padding: 10px 20px;
  border-radius: 7px;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ── nav ─────────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-word {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 48px;
  padding: 76px 56px 0;
  align-items: end;
}

.hero-copy {
  padding-bottom: 96px;
}

.hero-h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--body-on-light);
  margin-top: 26px;
  max-width: 490px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted-on-light);
  margin-top: 16px;
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone-frame {
  width: 308px;
  height: 671px;
  background: var(--ink-deep);
  border: 9px solid var(--ink-deep);
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 64px -22px rgba(30, 36, 39, .42);
}

.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 36px 36px 0 0;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* ── waitlist form (shared shape, hero + closing) ───────────────────────── */

.waitlist-row {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
  /* flex-start, not the stretch default: the field column reserves a line
     below the input for the inline error, and stretch would grow the button
     into that space. Both controls carry the same explicit height instead. */
  align-items: flex-start;
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waitlist-input {
  width: 262px;
  max-width: 100%;
  background: var(--paper-card);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  padding: 16px 17px;
  height: 54px;
}

.waitlist-input::placeholder {
  color: #8a949a;
}

.waitlist-input:focus-visible {
  border-color: var(--evergreen);
}

.waitlist-input[aria-invalid="true"] {
  border-color: var(--error);
}

.waitlist-error {
  font-size: 13.5px;
  color: var(--error);
  min-height: 17px;
}

.waitlist-status {
  margin-top: 40px;
  min-height: 54px;
  display: flex;
  align-items: center;
}

.waitlist-confirm {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--evergreen);
}

/* dark-section variants (closing form) */
.waitlist--dark .waitlist-input {
  background: #222a2d;
  border-color: #3c474c;
  color: var(--paper);
}

.waitlist--dark .waitlist-input::placeholder {
  color: #7c8a90;
}

.waitlist--dark .waitlist-confirm {
  color: var(--sand);
}

.waitlist--dark .waitlist-row {
  justify-content: center;
}

.waitlist--dark .waitlist-status {
  justify-content: center;
}

.waitlist--dark .waitlist-input {
  width: 290px;
}

.waitlist[data-state="success"] .waitlist-row {
  display: none;
}

.waitlist:not([data-state="success"]) .waitlist-status {
  display: none;
}

/* ── centerpiece: trail card ────────────────────────────────────────────── */

.centerpiece {
  background: var(--paper-sunk);
  border-top: 1px solid var(--hairline-on-light);
  padding: 96px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.centerpiece-copy-col {
  /* no align-items on the grid; this column stretches so the inner
     wrapper can stick. See README's sticky gotcha - ancestors must use
     overflow:clip, never overflow:hidden. */
}

.centerpiece-sticky {
  position: sticky;
  top: 48px;
}

.centerpiece-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.centerpiece-copy-col p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body-on-light);
  margin-top: 22px;
  max-width: 430px;
}

.centerpiece-copy-col p + p {
  margin-top: 18px;
}

.confidence-inline {
  color: var(--amber);
  font-weight: 600;
}

.card-col {
  align-self: start;
}

/* ── trail card component ───────────────────────────────────────────────── */

.trail-card {
  background: var(--card-ground);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 56px -28px rgba(30, 36, 39, .5);
}

.tc-header {
  padding: 24px 24px 20px;
}

.tc-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--card-text);
}

.tc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.tc-badges + .tc-badges {
  margin-top: 7px;
}

.tc-chips {
  margin-top: 11px;
}

.tc-badge, .tc-chip {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 5px;
  padding: 5px 10px;
  border: 1px solid transparent;
}

.tc-badge--stock      { color: #dcf2e5; background: #2e6b47; border-color: #2e6b47; }
.tc-badge--motorized  { color: #f4ead0; background: #6d5d24; border-color: #6d5d24; }
.tc-badge--dirt       { color: #c8d4cc; background: #3a4a40; border-color: #3a4a40; }
.tc-badge--estimated  { color: var(--card-label); background: transparent; border-color: #55645b; }
.tc-badge--seasonal   { color: #f7e6d3; background: #8a5a2a; border-color: #8a5a2a; }

.tc-chip--motorized-ok { color: var(--card-mint); background: transparent; border-color: #3f7a58; }
.tc-chip--seasonal     { color: var(--card-amber); background: transparent; border-color: #7a5f34; }

.tc-hint {
  margin: 0 24px 20px;
  background: var(--card-inset);
  border: 1px solid var(--card-inset-border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #cfe0d5;
}

.tc-rows {
  display: flex;
  flex-direction: column;
}

.tc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--card-row-rule);
}

.tc-label {
  font-size: 14.5px;
  color: var(--card-label);
}

.tc-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--card-text);
  text-align: right;
}

.tc-value--num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 13.5px;
}

.tc-value--amber {
  font-weight: 700;
  color: var(--card-amber);
}

.tc-value--mint {
  color: var(--card-mint);
}

.tc-value-stack {
  text-align: right;
}

.tc-value-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--card-label);
  margin-top: 3px;
}

.tc-caveat {
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--card-row-rule);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--card-meta);
  font-style: italic;
}

.tc-warning {
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--card-row-rule);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--card-warn);
}

.tc-timestamp {
  padding: 0 24px 12px;
  margin-top: -9px;
  border-bottom: 1px solid var(--card-row-rule);
  font-size: 12.5px;
  color: var(--card-meta);
}

.tc-section-header {
  padding: 22px 24px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--card-meta);
}

.tc-sub-label {
  padding: 6px 24px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7f8f85;
}

.tc-elevation-header {
  padding: 20px 24px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--card-meta);
}

.tc-elevation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 24px 20px;
}

.tc-stat-box {
  border: 1px solid var(--card-inset-border);
  border-radius: 8px;
  padding: 11px 8px;
  text-align: center;
}

.tc-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--card-meta);
}

.tc-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--card-text);
  margin-top: 5px;
}

.tc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 24px 24px;
}

.tc-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  transition: background .2s ease, border-color .2s ease;
}

.tc-btn-primary {
  color: var(--card-cta-text);
  background: var(--card-cta);
  border: 0;
}

.tc-btn-primary:hover {
  background: var(--card-cta-hover);
}

.tc-btn-ghost {
  color: #e8ece9;
  background: transparent;
  border: 1px solid var(--card-ghost-border);
}

.tc-btn-ghost:hover {
  border-color: var(--card-ghost-border-hover);
}

/* ── confidence legend ──────────────────────────────────────────────────── */

.legend {
  padding: 96px 56px;
  border-top: 1px solid var(--hairline-on-light);
}

.legend-intro {
  max-width: 700px;
}

.legend-intro p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body-on-light);
  margin-top: 20px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin-top: 56px;
}

.legend-rule {
  border-radius: 3px;
}

.legend-rule--verified {
  height: 5px;
  background: var(--evergreen);
}

.legend-rule--high {
  height: 4px;
  background: var(--moss);
}

.legend-rule--low {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber-mark) 0 9px, transparent 9px 15px);
}

.legend-rule--unrated {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--grey-mark) 0 4px, transparent 4px 10px);
}

.legend-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.legend-item--verified .legend-title { margin-top: 18px; }
.legend-item--high .legend-title     { margin-top: 19px; }
.legend-item--low .legend-title      { margin-top: 20px; }
.legend-item--unrated .legend-title  { margin-top: 21px; }

.legend-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-on-light);
  margin-top: 9px;
}

.legend-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-on-light);
  margin-top: 12px;
}

.legend-footnote {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-on-light);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-on-light);
  max-width: 760px;
}

/* ── product (dark section 1) ───────────────────────────────────────────── */

.product {
  padding: 96px 56px;
  background: var(--ink);
}

.product-intro {
  max-width: 660px;
}

.product-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.product-intro p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body-on-dark);
  margin-top: 20px;
}

.product-shot {
  margin-top: 48px;
  border: 1px solid #333d41;
  border-radius: 12px;
  overflow: hidden;
}

.product-shot img {
  width: 100%;
  display: block;
}

.product-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
  margin-top: 20px;
}

/* ── founder ─────────────────────────────────────────────────────────────── */

.founder {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  padding: 96px 56px;
  align-items: start;
  background: var(--paper-sunk);
}

.founder-quote {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.founder-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-sunk);
}

.founder-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.founder-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.founder-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-on-light);
  margin-top: 3px;
}

.founder-letter {
  border-left: 2px solid var(--evergreen);
  padding-left: 40px;
}

.founder-letter p {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--body-on-light-letter);
}

.founder-letter p + p {
  margin-top: 20px;
}

/* ── closing (dark section 2) ───────────────────────────────────────────── */

.closing {
  padding: 110px 56px;
  background: var(--ink);
  text-align: center;
}

.closing-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
}

.closing-sub {
  font-size: 17.5px;
  color: var(--body-on-dark);
  margin-top: 16px;
}

.closing .waitlist-row {
  justify-content: center;
  margin-top: 36px;
}

.closing .waitlist-status {
  margin-top: 36px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 80px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-on-dark);
  font-size: 13px;
  color: var(--muted-on-dark);
  text-align: left;
}

.footer-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left a {
  color: var(--muted-on-dark);
}

.footer-left a:hover {
  color: var(--paper);
}

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 40px 0;
    align-items: center;
  }

  .hero-copy {
    padding-bottom: 56px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .waitlist-row {
    justify-content: center;
  }

  .hero-phone {
    justify-content: center;
  }

  .centerpiece {
    grid-template-columns: 1fr;
    padding: 72px 40px;
    gap: 40px;
  }

  .centerpiece-sticky {
    position: static;
  }

  .centerpiece-copy-col p {
    max-width: 100%;
  }

  .card-col {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .legend {
    padding: 72px 40px;
  }

  .legend-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .legend-item--verified .legend-title,
  .legend-item--high .legend-title,
  .legend-item--low .legend-title,
  .legend-item--unrated .legend-title {
    margin-top: 18px;
  }

  .product {
    padding: 72px 40px;
  }

  .founder {
    grid-template-columns: 1fr;
    padding: 72px 40px;
    gap: 32px;
  }

  .closing {
    padding: 80px 40px;
  }
}

@media (max-width: 767px) {
  .nav {
    padding: 20px 24px;
  }

  .hero {
    padding: 48px 24px 0;
  }

  .hero-h1 {
    font-size: 44px;
    letter-spacing: -0.03em;
  }

  .hero-sub {
    font-size: 18px;
  }

  .waitlist-row {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-input {
    width: 100%;
  }

  .waitlist-row .btn {
    width: 100%;
  }

  .closing .waitlist-input {
    width: 100%;
  }

  .phone-frame {
    width: 240px;
    height: 523px;
  }

  .centerpiece {
    padding: 64px 24px;
  }

  .centerpiece-h2 {
    font-size: 32px;
  }

  .card-col {
    max-width: 100%;
  }

  .trail-card {
    border-radius: 0;
    margin: 0 -24px;
  }

  .legend {
    padding: 64px 24px;
  }

  .legend-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .legend-item--verified .legend-title,
  .legend-item--high .legend-title,
  .legend-item--low .legend-title,
  .legend-item--unrated .legend-title {
    margin-top: 18px;
  }

  .product {
    padding: 64px 24px;
  }

  .product-h2 {
    font-size: 32px;
  }

  .product-shot {
    overflow-x: auto;
  }

  .product-shot img {
    min-width: 640px;
  }

  .founder {
    padding: 64px 24px;
  }

  .founder-quote {
    font-size: 28px;
  }

  .founder-letter {
    padding-left: 24px;
  }

  .closing {
    padding: 64px 24px;
  }

  .closing-h2 {
    font-size: 36px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
