:root {
  /* Wayfinder, matching the TripEase app (lib/theme/tokens.dart):
     charcoal plates on an off-white page, teal #0A756C as the brand accent
     (#4FD3C8 on charcoal), Atkinson Hyperlegible Next, self-hosted (SIL OFL, fonts/OFL.txt).
     Yellow (--signal) means one thing only: an official link, tap now.
     Use it only for official-link CTAs (.btn-official); nothing else may be yellow. */
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #1C2126;
  --muted: #545D66;
  --line: #DCE0DD;
  --border: #838D95;
  --plate: #1C2126;
  --on-plate: #FFFFFF;
  --on-plate-muted: #B8C0C7;
  --brand: #0A756C;
  --brand-on-plate: #4FD3C8;
  --brand-tint: #DDEFF0;
  --accent: #0A756C;
  --accent-hover: #085E57;
  --accent-soft: #DDEFF0;
  /* Coral: brand accent matching the app icon. Decoration only (heading rule),
     never text (3.1:1 on --bg) and never a state or button. */
  --coral: #E8604A;
  --signal: #FFCC00;
  --on-signal: #1C2126;
  --neutral-tint: #ECEEEB;
  --shadow: 0 1px 2px rgba(28, 33, 38, 0.06);
  --radius: 14px;
  --max: 1040px;
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.wrap { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 245, 242, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--plate);
  color: var(--on-plate);
}
.btn-primary:hover { background: #2B3238; color: var(--on-plate); }
/* Official links only (government forms, official sites). */
.btn-official {
  background: var(--signal);
  color: var(--on-signal);
  border-color: var(--on-signal);
}
.btn-official:hover { color: var(--on-signal); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary { border-color: var(--border); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn[aria-disabled="true"],
.btn.disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.hero {
  padding: 3.2rem 0 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: var(--plate);
  color: var(--on-plate);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.store-note {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  max-width: 36rem;
}
.store-note strong { color: var(--ink); }
.hero-card {
  margin: 0;
  background: var(--plate);
  border-radius: 22px;
  padding: 0.85rem;
}
.hero-card .caption { color: var(--on-plate-muted); }
.hero-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: var(--bg);
}
.caption {
  margin: 0.75rem 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.section { padding: 2.4rem 0; }
.section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
}
/* Short coral rule under section headings, as in the app. */
.section h2::after,
.legal h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 0.3rem;
  border-radius: 2px;
  background: var(--coral);
}
.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--brand-tint);
  color: var(--accent);
  font-size: 1.05rem;
}

.pro {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pro .card { background: var(--bg); box-shadow: none; }
.pro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: stretch;
}
.price-card {
  background: var(--plate);
  color: var(--on-plate);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.price-card h3 { margin: 0; color: var(--brand-on-plate); }
.price-card .price-note { margin: 0; color: var(--on-plate-muted); }
.price-card .price-fine { margin: 0.7rem 0 0; color: var(--on-plate-muted); font-size: 0.92rem; }
.price-card .checklist li { color: var(--on-plate); }
.price-card .checklist li::before { color: var(--brand-on-plate); }
.price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.2rem;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--on-plate-muted); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.45rem 0;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.5rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--on-plate-muted);
  color: var(--on-plate-muted);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 1px;
}

.contact-box, .legal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.disclosure a { color: var(--muted); }
.disclosure {
  margin: 1rem 0 0;
  max-width: 46rem;
  font-size: 0.86rem;
}

/* Legal pages */
.legal {
  padding: 2.4rem 0 3rem;
}
.legal .meta {
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.legal h2 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.25rem;
}
.legal h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.05rem;
}
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
}
.toc a { text-decoration: none; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero, .pro-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-card { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 1.5rem;
}
.shot {
  margin: 0;
  background: var(--plate);
  border-radius: 26px;
  padding: 0.6rem 0.6rem 0.2rem;
}
.shot .caption { color: var(--on-plate-muted); }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  background: var(--bg);
}
@media (max-width: 880px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 300px)); }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; justify-items: center; }
  .shot { max-width: 300px; }
}
