/* Camplore landing page. Colors are theme/tokens.ts values (chrome.light.bg,
   chrome.dark.bg, text, accent, verified); type is the system stack, per
   docs/p4-01-branding.md ("system fonts, no custom typeface"). Topo art in
   img/topo-*.svg is traced from real elevation data (see README). */
:root {
  --cream: #F8F1E4;
  --cream-2: #F1E7D4;
  --paper: #FFFCF5;
  --ink: #2A2C24;
  --ink-muted: rgba(42, 44, 36, 0.72);
  --dark: #1E201A;
  --on-dark: #F2EFE6;
  --on-dark-muted: rgba(242, 239, 230, 0.68);
  --clay: #C97B5A;
  --clay-text: #A6563A;
  --clay-light: #E3A283;
  --verified: #0F6E56;
  --hair: rgba(42, 44, 36, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-light);
}
.eyebrow.dark { color: var(--clay-text); }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand .mark { width: 32px; height: 32px; }
.brand.small { font-size: 17px; }
.brand.small .mark { width: 26px; height: 26px; }

/* Topo backdrop: an <img> of real contour lines filling its section. */
.topo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  pointer-events: none; user-select: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding-top: env(safe-area-inset-top, 0px);
}
.hero .topo { opacity: 0.7; }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.bar-cta {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(242, 239, 230, 0.28);
  color: var(--on-dark);
  background: rgba(30, 32, 26, 0.5);
}
.bar-cta:hover { border-color: var(--clay-light); color: var(--clay-light); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  padding-top: 48px;
}
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 750; margin-top: 16px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--on-dark-muted); max-width: 38ch; margin-top: 22px; }

/* Only the top of one phone shows, fading into the hero: a hint, not a tour. */
.hero-phone {
  margin: 0; justify-self: center;
  width: min(320px, 100%);
  height: 440px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-phone img { width: 100%; border-radius: 13% / 6.2%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }

/* Waitlist form */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 32px; max-width: 480px; }
.waitlist input[type="email"] {
  font: inherit; font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(242, 239, 230, 0.24);
  background: rgba(30, 32, 26, 0.7);
  color: var(--on-dark);
  min-width: 0;
}
.waitlist input::placeholder { color: rgba(242, 239, 230, 0.45); }
.waitlist button {
  font: inherit; font-size: 16px; font-weight: 650;
  padding: 14px 20px;
  border: 0; border-radius: 12px;
  background: var(--clay);
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
}
.waitlist button:hover { background: #D38A6A; }
.waitlist button[disabled] { opacity: 0.6; cursor: progress; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--on-dark-muted); min-height: 1.5em; }
.form-note a { color: inherit; }
.form-note.ok { color: #7FD3B6; font-weight: 600; }
.form-note.err { color: #F0A090; font-weight: 600; }

.waitlist.light input[type="email"] { background: var(--paper); border-color: var(--hair); color: var(--ink); }
.waitlist.light input::placeholder { color: rgba(42, 44, 36, 0.45); }
.waitlist.light .form-note { color: var(--ink-muted); }
.waitlist.light .form-note.ok { color: var(--verified); }
.waitlist.light .form-note.err { color: #B4483A; }

:focus-visible { outline: 2px solid var(--clay-light); outline-offset: 2px; }
.waitlist.light :focus-visible, main :focus-visible { outline-color: var(--clay-text); }

/* Section heads + feature grids (Plan, Lore) */
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin-top: 12px; }
.section-lede { color: var(--ink-muted); font-size: 19px; margin-top: 16px; max-width: 52ch; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.feature h3 { font-size: 20px; margin-top: 16px; }
.feature p { color: var(--ink-muted); margin-top: 8px; font-size: 16px; }
.feature.card { background: rgba(255, 252, 245, 0.86); border: 1px solid var(--hair); border-radius: 16px; padding: 24px; backdrop-filter: blur(2px); }

.ficon {
  width: 44px; height: 44px; padding: 10px;
  border-radius: 12px;
  background: rgba(201, 123, 90, 0.14);
  fill: none; stroke: var(--clay-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.ficon.big { width: 56px; height: 56px; padding: 13px; flex: none; }

.plan { padding-block: 120px 112px; }

.lore { position: relative; overflow: hidden; background: var(--cream-2); padding-block: 112px; border-block: 1px solid var(--hair); }
.lore .topo { opacity: 1; }
.lore-inner { position: relative; }

/* Where-to-camp strip: present, but deliberately the quieter message */
.find { padding-block: 88px 0; }
.find-row { display: flex; gap: 24px; align-items: flex-start; max-width: 820px; }
.find h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.find p { color: var(--ink-muted); margin-top: 10px; max-width: 60ch; }

/* Founders */
.founders { padding-block: 88px 96px; }
.founders-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 22px; padding: 48px;
}
.founders h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-top: 10px; }
.founders-card p:not(.eyebrow):not(.form-note) { color: var(--ink-muted); margin-top: 14px; max-width: 44ch; }
.founders .waitlist { margin-top: 0; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding-block: 32px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { color: var(--ink-muted); font-size: 14px; }
.foot .disclaimer { margin-top: 12px; font-size: 13px; }

/* Waitlist confirmation landing (/confirmed/) */
.confirm-hero { min-height: 72vh; display: flex; flex-direction: column; }
.confirm-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 48px 96px; }
.confirm-body h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 750; margin-top: 16px; }
.confirm-cta {
  align-self: flex-start; margin-top: 32px;
  font-weight: 650; text-decoration: none;
  background: var(--clay); color: var(--dark);
  padding: 14px 22px; border-radius: 12px;
}
.confirm-cta:hover { background: #D38A6A; }

/* Privacy policy (and any future text page) */
.hero-slim { padding-bottom: 8px; }
.doc { max-width: 760px; padding-block: 56px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; margin-top: 10px; }
.doc-meta { color: var(--ink-muted); font-size: 15px; margin-top: 12px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li { margin-top: 8px; }
.doc a { color: var(--clay-text); }
.doc-summary { background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; padding: 24px 28px; margin-top: 32px; }
.doc-summary h2 { margin-top: 0; font-size: 20px; }
.doc-table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); }
.doc-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.doc-table th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--cream-2); }
.doc-table tr:last-child td { border-bottom: 0; }

/* Narrow screens */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .founders-card { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-phone { width: min(280px, 78%); height: 340px; }
  .founders-card { padding: 32px 24px; }
  .plan { padding-block: 88px 80px; }
  .lore { padding-block: 88px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .find-row { flex-direction: column; gap: 16px; }
}
@media (max-width: 460px) {
  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .bar-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
