/* CampingBooker marketing site.
   No framework and no build step: this is one page, and a toolchain for it would be more
   moving parts than content. Brand colours come from tokens.css, which is copied from
   packages/design-system so the site and the app cannot drift. */

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

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: #15241d;
  background: #fff;
}

img { max-width: 100%; height: auto; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  /* The brand green, with a hint of the sky colour at the edge so the block is not flat. */
  background: radial-gradient(1200px 500px at 15% -10%, #0e6131 0%, transparent 60%), var(--cb-green);
  color: #fff;
  padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(3rem, 1rem + 7vw, 6rem);
}
.hero .logo { width: clamp(220px, 40vw, 320px); height: auto; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem); max-width: 62ch; color: #d8e8df; }
.status {
  margin-top: 1.75rem; padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--cb-yellow);
  background: rgba(255, 255, 255, 0.06);
  max-width: 62ch; color: #eaf3ee;
}
.status strong { color: #fff; }

/* ── Two paths ────────────────────────────────────────────────────────────── */

.split {
  display: grid; gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
}
.card {
  border: 1px solid #dde7e1; border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  display: flex; flex-direction: column;
}
/* The owner card leads, because supply is the bottleneck — see the traction note. */
.card--primary { border-color: var(--cb-green); border-width: 2px; }
.card h2 { color: var(--cb-green); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--cb-yellow);
}

.btn {
  display: inline-block; margin-top: auto; align-self: start;
  padding: 0.75rem 1.4rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--cb-green); color: var(--cb-green); background: #fff;
}
.btn:hover, .btn:focus-visible { background: #f2f7f4; }
.btn--primary { background: var(--cb-green); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: #0e6131; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--cb-blue); outline-offset: 2px; }

.fineprint { font-size: 0.9375rem; color: #5c6f66; margin-top: 0.9rem; margin-bottom: 0; }

/* ── Bands ────────────────────────────────────────────────────────────────── */

.band { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid #e6eeea; }
.trio {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.trio h3 { color: var(--cb-green); }
.trio p { color: #44554d; margin: 0; }

.honest {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid #e6eeea;
}
.honest p { max-width: 66ch; color: #34443c; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer { background: var(--cb-green); color: #cfe2d7; margin-top: clamp(2rem, 5vw, 4rem); }
.footer-inner { padding-block: 2.25rem; }
.footer-logo { width: 200px; margin-bottom: 0.75rem; }
footer a { color: #fff; }

/* Honour a reader's reduced-motion and contrast preferences by having nothing to reduce:
   there is no animation and no JavaScript on this page at all. */

/* ── The assistant ────────────────────────────────────────────────────────── */
/* Lives inside the hero, after the copy a crawler reads. The page is complete without it:
   the form and the log start hidden and the script reveals them, so a visitor with no
   JavaScript sees the noscript line rather than a dead input. */

.chat { margin-top: clamp(1.75rem, 4vw, 2.75rem); max-width: 62ch; }
.chat h2 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: #fff; margin-bottom: 0.35rem; }
.chat-sub { color: #cfe2d7; font-size: 0.9375rem; margin-bottom: 0.9rem; }

.chat-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chat-form input {
  flex: 1 1 18rem; min-width: 0;
  padding: 0.8rem 1rem; border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font: inherit;
}
.chat-form input::placeholder { color: #a8c4b5; }
.chat-form input:focus-visible { outline: 3px solid var(--cb-yellow); outline-offset: 1px; }
.chat-form button {
  padding: 0.8rem 1.5rem; border-radius: 10px; border: 0;
  background: var(--cb-yellow); color: #15241d; font: inherit; font-weight: 700; cursor: pointer;
}
.chat-form button:disabled { opacity: 0.55; cursor: progress; }

.chat-log {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 0.9rem; max-height: 22rem; overflow-y: auto;
}
.chat-msg { padding: 0.7rem 0.95rem; border-radius: 12px; font-size: 0.9375rem; line-height: 1.55; white-space: pre-wrap; }
.chat-msg--visitor { background: rgba(255, 255, 255, 0.14); color: #fff; align-self: flex-end; max-width: 85%; }
.chat-msg--assistant { background: rgba(255, 255, 255, 0.06); color: #eaf3ee; border-left: 3px solid var(--cb-yellow); }
.chat-note { margin-top: 0.75rem; color: var(--cb-yellow); font-size: 0.9375rem; }
.chat-note a { color: #fff; }

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