/* TourPulse marketing site + policy pages. Colors match login.html. */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --green: #3fb950;
  --green-btn: #238636;
  --green-btn-hover: #2ea043;
  --link: #58a6ff;
  --radius: 12px;
  --gutter: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* No scroll-behavior: smooth here: it stops Chrome jumping to the section when a page opens at
   an address like tourpulse.org/#plans. The homepage's own links scroll smoothly
   from a script instead. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--green-btn); color: #fff; }
.btn-primary:hover { background: var(--green-btn-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--green); text-decoration: none; font-weight: 800; letter-spacing: 0.06em; font-size: 15px; margin-right: auto; white-space: nowrap; }
.logo svg { flex: none; }
/* Pricing, when there's room for it beside the buttons (a phone has the footer's link). */
.nav-link { display: none; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; }
.nav-link:hover { color: var(--text); }
@media (min-width: 600px) { .nav-link { display: inline-block; } }

/* ── Sections ────────────────────────────────────────── */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
/* A linked section (#features, #plans) scrolls to just below the sticky header, not under it. */
section[id] { scroll-margin-top: 61px; }
[tabindex="-1"]:focus { outline: none; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* Hero */
.hero { padding-top: 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .lede { color: var(--text); }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.phone {
  width: min(210px, 60vw);
  margin: 0 auto;
  padding: 10px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.phone img, .phone video { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 30px; background: var(--surface); }
/* The bag-scan clip: the frame has the clip's shape (720 × 1464), so nothing is cropped. */
.feature .phone img, .feature .phone video { aspect-ratio: 720 / 1464; }

/* Core three */
.cards { display: grid; gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { color: var(--green); margin-bottom: 12px; }

/* Bag scanner feature: one clip in one phone, the curb first, then the phone's screen */
.feature .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) {
  .phone { width: 260px; }
}

/* Social */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface); }

/* Modules line */
.modules { padding: 40px 0; }
.modules p { margin: 0; font-size: 1.15rem; }
.modules strong { color: var(--green); }

/* Audiences */
.card .btn { margin-top: 8px; }

/* Key features (#features): the hero's "Learn more" lands here */
.feature-groups { display: grid; gap: 24px; margin-top: 24px; }
.feature-groups h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.4em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Pricing (#plans): three plans, then the early access terms */
.plans { display: grid; gap: 16px; margin-top: 24px; }
.plan { display: flex; flex-direction: column; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan .price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; }
.plan .per { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan .plan-note { color: var(--muted); font-size: 15px; }
.plan .plan-note strong { color: var(--text); }
.plan .ticks { margin-bottom: 20px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { border-color: var(--green-btn); }
.badge { padding: 2px 10px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.offer-terms { margin-top: 16px; }
.offer-terms ul { margin: 0 0 16px; padding-left: 20px; }
.offer-terms li { margin-bottom: 8px; }
.offer-terms .fine { font-size: 15px; }

/* Contact */
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .btn-row { justify-content: center; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer .footer-contact { margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ── Policy pages ────────────────────────────────────── */
.policy { max-width: 720px; padding-top: 40px; padding-bottom: 56px; }
.policy h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.policy h2 { font-size: 1.3rem; margin-top: 32px; }
.policy .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.policy .decision { background: rgba(187, 128, 9, 0.12); border: 1px solid #9e6a03; border-radius: 8px; padding: 12px 16px; }
.policy ul { padding-left: 20px; margin: 0 0 16px; }
.policy li { margin-bottom: 8px; }
.policy span.decision { padding: 1px 6px; border-radius: 4px; }

/* ── Wider screens ───────────────────────────────────── */
@media (min-width: 720px) {
  section { padding: 80px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
  .feature .wrap { grid-template-columns: 1fr 1.2fr; }
  .feature-groups, .plans { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tour operators (/operators.html) ────────────────── */
/* The phone strips: a swipe row on a phone with the next screen showing, a plain row from 880px up.
   Thinner frames than the hero's, each with its screenshot's shape, so nothing is cropped. */
.strip {
  display: flex; gap: 14px;
  margin: 24px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
}
.strip:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.strip figure { flex: 0 0 min(66%, 260px); margin: 0; scroll-snap-align: start; }
.strip.small figure { flex-basis: min(46%, 180px); }
.strip .phone { width: auto; padding: 5px; border-radius: 26px; box-shadow: none; }
.strip .phone img { aspect-ratio: 600 / 1298; border-radius: 21px; }
.strip.small .phone { padding: 4px; border-radius: 20px; }
.strip.small .phone img { border-radius: 16px; }
.strip figcaption { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.strip.small figcaption { font-size: 14px; }
.credit { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ticks.split li { break-inside: avoid; }
.plans-after { margin: 24px 0 0; }
.plans-after + .plans-after { margin-top: 8px; }
@media (min-width: 720px) {
  .ticks.split { columns: 2; column-gap: 32px; }
}
@media (min-width: 880px) {
  .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; overflow: visible; }
  .strip.small { grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 800px; }
}

/* ── Launch list (/launch) ───────────────────────────── */
.launch { max-width: 560px; padding-top: 40px; padding-bottom: 56px; }
.launch h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.launch .news { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.launch .news h2 { font-size: 1.4rem; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input:not([type=radio]):not([type=checkbox]) {
  width: 100%; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.form input:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.form .row2 { display: grid; gap: 16px; }
@media (min-width: 480px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.form label.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 16px; }
.form label.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green-btn); }
.form .consent { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn:disabled { opacity: 0.6; cursor: default; }
.form .fine { font-size: 14px; margin: 0; }
.form-error { color: #f85149; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { margin-top: 24px; }
.done:focus { outline: none; }
