/* =============================================================================
 * Scree Public "Field Guide" design tokens (v2 publicLight)
 * -----------------------------------------------------------------------------
 * Verbatim port of the iOS PUBLIC (light) design system into CSS custom
 * properties, so the marketing site and the ScreePublic app read as one product.
 *
 * Source of truth:
 *   ios/ScreeNative/Sources/ScreeDesign/ScreeTheme.swift  (ScreePalette ramps +
 *     ScreeTheme.publicLight, ScreeMetrics)
 *   ScreeFonts / ScreeMotion / ScreeElevation
 *   Exact hexes per docs/design/native-apps/v2-surface-plans/website-v2-plan.md §1
 *
 * Consumed by BOTH waitlist.css AND beta.css: the build (build-waitlist-deploy.mjs)
 * prepends this file to each of those stylesheets, so every public surface shares
 * one token layer. Light-only — the operator dark theme never touches these pages.
 * ========================================================================== */

/* ---- Self-hosted public type system --------------------------------------- */
@font-face {
  font-family: "Butler";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/Butler-Free-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Creato Display";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/CreatoDisplay-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Creato Display";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/CreatoDisplay-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Creato Display";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/CreatoDisplay-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/SpaceMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/SpaceMono-Bold.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* ---- Brand ramps (exact hexes, Style Guide v2) ------------------------- */
  --forest-100: #e9efdf; --forest-200: #cfdbbb; --forest-300: #a8be86; --forest-400: #728e4d;
  --forest-500: #3b5c26; --forest-600: #2e4a1d; --forest-700: #243b16; --forest-800: #1a2b17; --forest-900: #111e0d;
  --amber-100: #f9ecd6; --amber-200: #f1d6a8; --amber-300: #e0a24b; --amber-400: #cc8b35;
  --amber-500: #b87428; --amber-600: #9a5f1e; --amber-700: #7e4c16; --amber-800: #6e4a18; --amber-900: #4a3010;
  --sage-50: #f8f4ea; --sage-100: #f2ece0; --sage-200: #e2dcc9; --sage-300: #c7bfa9; --sage-400: #a9b59c;
  --sage-450: #9ca892; --sage-500: #8a9e7b; --sage-600: #6e7a64; --sage-700: #4c6240; --sage-800: #37452f;
  --danger-500: #e0664b; --danger-300: #f0907b;

  /* ---- Semantic (publicLight "field guide" theme) ------------------------ */
  --bg: #f2ece0;              /* sage-100 / cream */
  --panel: #ffffff;
  --panel-alt: #f8f4ea;       /* sage-50 (v2: opaque, no more white@55%) */
  --surface-raised: #ffffff;
  --text-primary: #1a2b17;    /* forest-800 / darkForest */
  --text-secondary: #4c6240;  /* sage-700 / olive */
  --text-muted: #6e7a64;      /* sage-600 / inkSecondary */
  --accent: #3b5c26;          /* forest-500 */
  --accent-hover: #2e4a1d;    /* forest-600 */
  --accent-text: #f2ece0;     /* cream on accent */
  --cta: #e0a24b;             /* amber-300 / amberBright */
  --cta-text: #6e4a18;        /* amber-800 ink on tint */
  --positive: #728e4d;        /* forest-400 */
  --warning: #b87428;         /* amber-500 */
  --danger: #e0664b;
  --status-inactive: #9ca892; /* sage-450 */
  --border: rgba(26, 43, 23, 0.08);
  --border-strong: rgba(26, 43, 23, 0.16);
  --hero-gradient-end: #24371d;

  /* AA-safe text tints on cream (kept from the shipped landing — used where a
     token role's own hex would fall under 4.5:1 as body text on --bg). */
  --ink-on-cream-amber: #8f571b;  /* ~5.0:1 amber text on cream */
  --ink-on-cream-muted: #5e6e50;  /* ~4.7:1 muted text on cream */

  /* ---- Type (Butler display, Creato UI, Space Mono utility labels) ------- */
  --font-display: "Butler", Georgia, "Times New Roman", serif;
  --font-ui: "Creato Display", "Avenir Next", Avenir, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* app px≈pt scale; the marketing hero scales up in waitlist.css */
  --t-hero: 33px; --t-screen-title: 25px; --t-detail-title: 21px; --t-card-title: 16px;
  --t-body: 15.5px; --t-secondary: 13px; --t-micro: 11.5px; --t-button: 16px;
  --t-eyebrow: 11px; --t-badge: 10.5px; --t-mono-data: 13px;
  --eyebrow-tracking: 0.06em;

  /* ---- Spacing / radii (ScreeMetrics) ------------------------------------ */
  --pad-screen: 20px; --pad-card: 16px; --gap-card: 10px; --gap-section: 24px;
  --r-card: 16px; --r-hero: 18px; --r-button: 13px; --r-tile: 10px; --r-chip: 9px; --r-badge: 4.5px;

  /* ---- Motion (ScreeMotion) --------------------------------------------- */
  --dur-quick: 0.15s; --dur-standard: 0.30s; --dur-deliberate: 0.50s;
  --ease-play: cubic-bezier(0.2, 0.8, 0.3, 1.25);  /* public spring-play overshoot */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* ---- Elevation (ScreeElevation, light theme) --------------------------- */
  --e2-shadow: 0 6px 9px rgba(26, 43, 23, 0.10);    /* forest-800 @10%, r9 y6 */
  --e3-shadow: 0 18px 25px rgba(26, 43, 23, 0.22);  /* forest-800 @22%, r25 y18 */
  /* public tactile edge — hard bottom edge on buttons/chips, compresses on press */
  --tactile-edge: 0 3px 0 var(--forest-700);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ease-play: ease-out;
    --dur-quick: 0.1s;
    --dur-standard: 0.1s;
    --dur-deliberate: 0.1s;
  }
}

:root {
  color-scheme: light;
  /* Canonical Scree palette — kept in lockstep with the waitlist landing. */
  --bg: #f2ece0;
  --panel: #fbf8f1;
  --text: #1a2b17;
  --muted: #5e6e50; /* AA-safe muted text on cream (~4.7:1) */
  --soft: #e6dfd0;
  --line: #ddd5c4;
  --field-border: #857c6a; /* AA non-text contrast on field fills (>=3:1) */
  --forest: #3b5c26;
  --forest-dark: #2e4a1d;
  --amber: #b87428; /* decorative amber (marks, rules) */
  --amber-ink: #8f571b; /* AA-safe amber text on cream (~5.0:1) */
  --warning: #7a4b16;
  --warning-bg: #f8ead7;
  --good-bg: #e9f4e4;
  --consent-bg: #eef3ea;
  --bad: #9a3b2a;
  --field-bg: #fffaf0;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 20px 60px rgba(35, 42, 28, 0.1);
  --space-section: 38px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(59, 92, 38, 0.08), transparent 38%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Topographic contour signature — the brand's background texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      ellipse at 78% 14%,
      transparent 0,
      transparent 90px,
      rgba(59, 92, 38, 0.035) 91px,
      transparent 92px
    ),
    repeating-radial-gradient(
      ellipse at 12% 40%,
      transparent 0,
      transparent 130px,
      rgba(59, 92, 38, 0.025) 131px,
      transparent 132px
    );
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

/* Keyboard skip link (visually hidden until focused). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--forest);
  color: #fffaf0;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.nav {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.brand,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand {
  letter-spacing: 0.01em;
}

.brand-mark {
  flex: 0 0 auto;
  display: block;
}

.brand-word {
  font-weight: 700;
}

/* Legacy letter tile, retained as a fallback if any nav still uses it. */
.mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fffaf0;
  font-size: 14px;
  font-weight: 800;
}

.nav-link {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  border-color: var(--forest);
  color: var(--forest-dark);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.intro {
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 530px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* Trust boundaries — hairline check-glyph list (tier 3, no boxes). */
.trust-list {
  display: grid;
  gap: 0;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding: 11px 4px 11px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.trust-list li:last-child {
  border-bottom: 0;
}

.trust-list li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 11px;
  color: var(--forest);
  font-weight: 800;
}

.trust-list li a {
  color: var(--amber-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 87, 27, 0.4);
}

.trust-list li a:hover {
  border-color: var(--amber-ink);
}

.notice {
  margin-top: var(--space-section);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  background: var(--warning-bg);
  padding: 12px 14px;
  color: var(--warning);
  font-size: 14px;
  line-height: 1.45;
}

/* Tier 1 — elevated surfaces (form panel, sibling content panel). */
.form-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-panel {
  position: relative;
  padding: 22px;
}

.content-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.beta-form {
  display: grid;
  gap: 16px;
}

.beta-form[hidden] {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label,
.field-group {
  display: grid;
  gap: 7px;
}

.field-label,
legend {
  color: #46523f;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--field-border);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

/* Visible, AA-compliant focus on every control (replaces the old 1.25:1 ring). */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 92, 38, 0.45);
}

.filter-tab:focus-visible,
.group-action:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.primary:focus-visible {
  outline: 3px solid #fffaf0;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(59, 92, 38, 0.6);
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 1px;
  accent-color: var(--forest);
}

/* Resources whose scanner target is not yet certified: visible but not billable. */
.check.is-coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.check.is-coming-soon input {
  cursor: not-allowed;
}

.date-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.specific-date-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.specific-date-controls[hidden] {
  display: none;
}

.date-calendar {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  padding: 10px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.calendar-month {
  margin: 0;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.calendar-nav {
  min-height: 42px;
  border: 1px solid var(--field-border);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--forest-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
}

.calendar-nav:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--good-bg);
}

.calendar-nav:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.calendar-empty {
  min-height: 38px;
}

.calendar-day {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.calendar-day:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--good-bg);
  color: var(--forest-dark);
}

.calendar-day.is-selected {
  border-color: var(--forest-dark);
  background: var(--forest);
  color: #fffaf0;
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.date-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 6px 4px 10px;
}

.date-chip button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(59, 92, 38, 0.12);
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.date-chip button:hover {
  background: rgba(59, 92, 38, 0.22);
}

.coming-soon-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.consent {
  padding: 12px;
  border-radius: 8px;
  background: var(--consent-bg);
  border: 1px solid var(--soft);
}

.req {
  color: var(--amber-ink);
  font-style: normal;
  font-weight: 700;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: #fffaf0;
  cursor: pointer;
  font-weight: 800;
  transition: background 140ms ease, transform 140ms ease;
}

.primary:hover:not(:disabled) {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.submit-echo {
  margin: 0;
  min-height: 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-dark);
}

.cta-reassure {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status.good {
  color: var(--forest);
}

.status.bad {
  color: var(--bad);
}

/* Assertive, role=alert error for the primary (campsite) field. */
.field-error {
  margin: 8px 0 0;
  min-height: 0;
  color: var(--bad);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.field-error:empty {
  margin: 0;
}

/* Success panel that confirms what was requested before the form clears. */
.success-panel[hidden] {
  display: none;
}

.success-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--forest);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  background: linear-gradient(180deg, #eef6e8, var(--panel));
  box-shadow: var(--shadow);
  padding: 20px;
}

.success-panel h3 {
  margin: 0;
  font-size: 20px;
  color: var(--forest-dark);
}

.success-panel p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.success-panel .success-price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--forest);
}

.success-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content-panel section {
  display: grid;
  gap: 10px;
}

.content-panel h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 50px);
}

.content-panel h2 {
  margin: 0;
  font-size: 20px;
  color: var(--forest);
}

.content-panel p,
.content-panel li {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.62;
}

/* Keep the eyebrow amber on content-panel pages (outspecify the muted rule). */
.content-panel .eyebrow {
  color: var(--amber-ink);
}

.content-panel a {
  color: var(--amber-ink);
  font-weight: 600;
}

.content-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

/* Tiers (intro column) — tier 2 bordered cards. */
.tiers {
  margin-top: var(--space-section);
  max-width: 560px;
}

.tiers-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #46523f;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 12px;
}

.tier-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #46523f;
}

.tier-name::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--forest);
  flex: 0 0 auto;
}

.tier-price {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.tier-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.tier-addon {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tier-speed {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--amber-ink);
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 12px;
}

.contact-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

/* Campsite menu (form column). */
.field-help {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.all-access-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--forest);
  border-left: 4px solid var(--forest);
  border-radius: 8px;
  background: var(--good-bg);
  cursor: pointer;
}

.all-access-option input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
}

.all-access-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.all-access-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.all-access-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--forest-dark);
}

.all-access-price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.all-access-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.all-access-option:hover {
  background: #e2efdb;
}

/* Individual picks dim while All-access is on (they're superseded). */
#resourceGroups.is-dimmed {
  opacity: 0.5;
}

.tier-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.filter-tab,
.group-action {
  min-height: 38px;
  border: 1px solid var(--field-border);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.filter-tab:hover,
.group-action:hover {
  border-color: var(--forest);
  color: var(--forest-dark);
}

.filter-tab.is-active {
  border-color: var(--forest);
  background: var(--good-bg);
  color: var(--forest-dark);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.campsite-group {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
}

.campsite-group[hidden] {
  display: none;
}

/* Keep one page scroll context. A nested campsite scroller can trap a trackpad
   or mouse wheel and makes the lower intake steps look unreachable. */
#resourceGroups {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  padding-right: 0;
  scrollbar-gutter: auto;
}

#resourceGroups > .campsite-group:first-child {
  margin-top: 8px;
}

.group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.group-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #46523f;
}

.group-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.group-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
}

/* Read-only list of the sites a whole-trail watch covers (pack trails sell whole-trail only). */
.covered-sites {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.group-action {
  flex: 0 0 auto;
  min-width: 102px;
  padding: 0 10px;
  white-space: nowrap;
}

.group-route {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.check.radio {
  align-items: center;
}

.tier-pick .check-grid {
  grid-template-columns: 1fr;
}

.empty-state {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Live price summary — the page's hero moment. Lives at the top of the
   form column on desktop so it tracks the picker; a fixed bar on mobile. */
.price-summary {
  border: 1px solid var(--forest);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  background: linear-gradient(180deg, #eef6e8, var(--panel));
  box-shadow: var(--shadow);
  padding: 16px;
}

.price-summary-sticky {
  position: sticky;
  top: 12px;
  z-index: 6;
  margin: 0 0 16px;
}

.summary-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--amber);
  color: var(--forest-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.price-amount {
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

.price-detail {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.selected-summary {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Optional pay-now block (placeholder copy). */
.pay-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 14px;
}

.pay-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #46523f;
}

.pay-links {
  display: grid;
  gap: 8px;
}

.pay-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--forest);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.pay-link:hover {
  background: var(--good-bg);
}

.pay-interac {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  justify-content: center;
  margin: 30px auto 0;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 89, 57, 0.24);
}

.site-footer a:hover {
  border-color: currentColor;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 0;
  }

  /* Live total as a fixed bottom bar so it stays visible while picking. */
  .price-summary-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    margin: 0;
  }

  .price-summary-sticky .price-summary {
    border-radius: 0;
    border-left: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 24px rgba(35, 42, 28, 0.14);
    padding: 12px 16px;
  }

  .price-summary-sticky .summary-eyebrow,
  .price-summary-sticky .price-detail,
  .price-summary-sticky .selected-summary {
    display: none;
  }

  body.is-picking-specific-dates .price-summary-sticky {
    display: none;
  }

  .form-panel {
    padding-bottom: 92px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100vw - 20px, 540px);
    padding-top: 12px;
  }

  .nav {
    margin-bottom: 24px;
  }

  .field-grid,
  .check-grid,
  .date-mode-options {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-tab,
  .group-action {
    min-height: 44px;
  }

  .date-calendar {
    margin-inline: -6px;
    padding: 8px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 40px;
  }

  .check {
    min-height: 40px;
    align-items: center;
  }

  .group-header {
    display: grid;
  }

  .group-action {
    width: 100%;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .content-panel {
    padding: 18px;
  }

  .form-panel {
    padding-bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary {
    transition: none;
  }

  .primary:hover:not(:disabled) {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Legal pages: the "draft / not legal advice" callout under the title. */
.legal-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--warning-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  color: var(--warning);
  font-size: 0.92rem;
}

/* Fair Play pledge component (shared, migrated off the page's inline styles). */
.pledge-lede {
  font-size: 1.08rem;
  color: var(--text);
}

ol.pledge {
  list-style: none;
  counter-reset: pledge;
  margin: 0;
  padding: 0;
}

ol.pledge li {
  counter-increment: pledge;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
}

ol.pledge li:first-child {
  border-top: 0;
}

ol.pledge li::before {
  content: counter(pledge);
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fffaf0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

ol.pledge b {
  color: var(--forest-dark);
}

.pledge-sign {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 2px solid var(--forest);
  font-size: 1rem;
  color: var(--text);
}

.pledge-sign .name {
  font-weight: 700;
  color: var(--forest-dark);
}

/* Telegram connect / onboarding page. */
.connect-video {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 8px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  box-shadow: var(--shadow);
}

.connect-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 13px 22px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.connect-cta:hover {
  background: var(--forest-dark);
}

.connect-code {
  font-family: var(--mono);
  font-size: 0.95rem;
  word-break: break-all;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-block;
}

.connect-handle {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--forest-dark);
}

/* ========================================================================== */
/* DaFont Alpine public UI                                                     */
/* Butler display + Creato Display interface + Space Mono utility labels.      */
/* ========================================================================== */

:root {
  --alpine-cream: #f3eee3;
  --alpine-paper: #fcf9f2;
  --alpine-forest: #17351f;
  --alpine-forest-soft: #2f5136;
  --alpine-amber: #d69a45;
  --alpine-line: rgba(23, 53, 31, 0.17);
  --alpine-line-strong: rgba(23, 53, 31, 0.32);
  --alpine-shadow: 0 24px 64px rgba(23, 53, 31, 0.11);
  --alpine-edge: 0 3px 0 #0e2716;
  --mono: var(--font-mono);
  --mobile-quote-height: 0px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--alpine-cream);
  font-family: var(--font-ui);
  font-synthesis: none;
}

body::before {
  opacity: 0.72;
  background-image:
    repeating-radial-gradient(
      ellipse at 86% 8%,
      transparent 0,
      transparent 104px,
      rgba(23, 53, 31, 0.035) 105px,
      transparent 106px
    ),
    repeating-radial-gradient(
      ellipse at 5% 52%,
      transparent 0,
      transparent 148px,
      rgba(23, 53, 31, 0.026) 149px,
      transparent 150px
    );
}

::selection {
  background: rgba(214, 154, 69, 0.32);
  color: var(--alpine-forest);
}

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

.skip-link:focus {
  background: var(--alpine-forest);
  color: var(--alpine-cream);
}

.shell {
  width: min(1200px, calc(100vw - 56px));
  padding: 0 0 64px;
}

.nav {
  min-height: 88px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--alpine-line);
}

.brand {
  gap: 12px;
  color: var(--alpine-forest);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: auto;
}

.brand-word {
  font-weight: 700;
}

.nav-link {
  min-height: 42px;
  padding: 0 15px;
  border-color: var(--alpine-line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--alpine-forest-soft);
  box-shadow: 0 2px 0 rgba(23, 53, 31, 0.16);
  transition:
    background var(--dur-quick) ease,
    border-color var(--dur-quick) ease,
    transform var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease;
}

.nav-link:hover {
  border-color: var(--alpine-forest);
  background: rgba(255, 255, 255, 0.44);
  color: var(--alpine-forest);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(1px);
  box-shadow: none;
}

.layout {
  grid-template-columns: minmax(280px, 370px) minmax(560px, 690px);
  justify-content: space-between;
  gap: 64px;
}

.intro {
  padding-top: 34px;
}

.eyebrow {
  margin-bottom: 18px;
  color: #81541b;
  font-size: 11px;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: var(--alpine-forest);
  font-family: var(--font-display);
  font-size: clamp(44px, 4.5vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.024em;
}

.lead {
  margin-bottom: 30px;
  color: #4c624f;
  font-size: 17px;
  line-height: 1.62;
}

.trust-list {
  border-top: 1px solid var(--alpine-line);
}

.trust-list li {
  padding: 14px 4px 14px 28px;
  border-color: var(--alpine-line);
  color: #526753;
}

.trust-list li::before {
  top: 14px;
  color: var(--alpine-forest);
}

.tiers {
  max-width: none;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px solid var(--alpine-forest);
}

.tiers-title {
  margin-bottom: 4px;
  color: var(--alpine-forest);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tier-grid,
.tier-grid-compact {
  display: block;
}

.tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 3px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--alpine-line);
  border-radius: 0;
  background: transparent;
}

.tier-name {
  margin: 0;
  color: var(--alpine-forest);
  font-size: 11px;
}

.tier-name::before {
  border-right-width: 4px;
  border-left-width: 4px;
  border-bottom-width: 7px;
  border-bottom-color: var(--alpine-amber);
}

.tier-price {
  margin: 0;
  color: var(--alpine-forest);
  font-size: 17px;
  line-height: 1.25;
}

.tier-note {
  grid-column: 1 / -1;
  max-width: 36ch;
  font-size: 11.5px;
}

.tier-addon {
  margin-top: 14px;
  color: var(--alpine-forest-soft);
  font-size: 12px;
  line-height: 1.5;
}

.form-panel {
  padding: 34px 36px 38px;
  border: 1px solid var(--alpine-line-strong);
  border-top: 4px solid var(--alpine-forest);
  border-radius: 10px;
  background: var(--alpine-paper);
  box-shadow: var(--alpine-shadow);
}

.form-panel > h2 {
  margin: 34px 0 24px;
  color: var(--alpine-forest);
  font-size: clamp(29px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.form-panel > h2:focus,
legend:focus,
.success-panel:focus {
  outline: 3px solid var(--alpine-amber);
  outline-offset: 5px;
}

.beta-form {
  counter-reset: field-sheet;
  gap: 0;
}

.beta-form > fieldset {
  counter-increment: field-sheet;
}

fieldset {
  position: relative;
  margin: 0;
  padding: 30px 0 34px;
  border: 0;
  border-top: 1px solid var(--alpine-line);
  border-radius: 0;
}

fieldset[aria-invalid="true"] {
  border-top-color: var(--bad);
}

legend {
  width: 100%;
  padding: 0;
  color: var(--alpine-forest);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

legend::before {
  content: counter(field-sheet, decimal-leading-zero);
  display: inline-block;
  min-width: 36px;
  margin-right: 10px;
  color: #8a6c3e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.field-help {
  margin-top: 12px;
  color: #607260;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: rgba(23, 53, 31, 0.45);
  border-radius: 8px;
  background: #fffdf8;
  padding-inline: 13px;
  transition:
    border-color var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease,
    background var(--dur-quick) ease;
}

textarea {
  min-height: 108px;
  padding-block: 12px;
}

.field-grid {
  gap: 16px;
}

.field-label,
legend {
  color: var(--alpine-forest);
}

.all-access-option {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(23, 53, 31, 0.52);
  border-left: 4px solid var(--alpine-forest);
  border-radius: 8px;
  background: rgba(228, 237, 220, 0.62);
}

.all-access-option:hover {
  background: rgba(218, 231, 208, 0.9);
}

.filter-tabs {
  gap: 7px;
  margin-top: 18px;
}

.filter-tab,
.group-action,
.calendar-nav {
  min-height: 44px;
  border-color: rgba(23, 53, 31, 0.38);
  border-radius: 8px;
  background: transparent;
  color: var(--alpine-forest-soft);
  box-shadow: 0 2px 0 rgba(23, 53, 31, 0.14);
  transition:
    transform var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease,
    background var(--dur-quick) ease;
}

.filter-tab:hover,
.group-action:hover,
.calendar-nav:hover:not(:disabled) {
  background: rgba(228, 237, 220, 0.72);
  transform: translateY(-1px);
}

.filter-tab:active,
.group-action:active,
.calendar-nav:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.filter-tab.is-active {
  border-color: var(--alpine-forest);
  background: var(--alpine-forest);
  color: var(--alpine-cream);
  box-shadow: var(--alpine-edge);
}

#resourceGroups {
  max-height: none;
  margin-top: 16px;
  padding-right: 0;
}

.campsite-group {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--alpine-line);
  border-radius: 0;
  background: transparent;
}

#resourceGroups > .campsite-group:first-child {
  margin-top: 0;
  border-top: 1px solid var(--alpine-line);
}

.group-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 16px 2px;
  color: var(--alpine-forest);
  cursor: pointer;
  list-style: none;
}

.group-summary::-webkit-details-marker {
  display: none;
}

.group-summary-copy,
.group-label,
.group-meta,
.group-note,
.covered-sites {
  display: block;
}

.group-summary-copy {
  min-width: 0;
}

.group-label {
  margin-bottom: 4px;
  color: var(--alpine-forest);
}

.group-note {
  margin-top: 6px;
  font-style: normal;
}

.covered-sites {
  margin-top: 5px;
}

.group-disclosure {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--alpine-line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  line-height: 1;
  transition: transform var(--dur-quick) ease;
}

.campsite-group[open] .group-disclosure {
  transform: rotate(45deg);
}

.group-selected-count {
  margin-top: 6px;
  color: #8a6c3e;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.group-content {
  padding: 0 2px 17px;
}

.group-content > .group-action {
  width: 100%;
  margin-bottom: 12px;
}

.check {
  min-height: 42px;
}

.check input {
  margin-top: 2px;
}

.date-mode-options {
  margin-top: 18px;
}

.check.radio {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--alpine-line-strong);
  border-radius: 8px;
  background: #fffdf8;
}

.date-calendar {
  border-color: var(--alpine-line-strong);
  background: #fffdf8;
}

.calendar-day {
  min-height: 42px;
  border-color: var(--alpine-line);
  border-radius: 7px;
  background: transparent;
}

.calendar-day.is-selected {
  border-color: var(--alpine-forest);
  background: var(--alpine-forest);
}

.calendar-day:focus-visible,
.calendar-nav:focus-visible,
.group-summary:focus-visible,
.date-chip button:focus-visible {
  outline: 2px solid var(--alpine-forest);
  outline-offset: 3px;
}

.contact-panel {
  position: relative;
  margin: 0 0 24px;
  padding: 30px 0 0 46px;
  border: 0;
  border-top: 1px solid var(--alpine-line);
  border-radius: 0;
  background: transparent;
}

.contact-panel::before {
  content: "03";
  position: absolute;
  top: 33px;
  left: 0;
  color: #8a6c3e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-title {
  color: var(--alpine-forest);
  font-size: 16px;
}

.consent {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--alpine-line);
  border-radius: 8px;
  background: rgba(228, 237, 220, 0.52);
}

.contact-grid + label {
  margin-top: 18px;
}

.primary {
  min-height: 50px;
  margin-top: 24px;
  border: 1px solid #0e2716;
  border-radius: 9px;
  background: var(--alpine-forest);
  box-shadow: var(--alpine-edge);
  color: var(--alpine-cream);
  letter-spacing: -0.01em;
  transition:
    background var(--dur-quick) ease,
    transform var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease;
}

.primary:hover:not(:disabled) {
  background: #23482d;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #0e2716;
}

.primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0e2716;
}

.cta-reassure {
  margin: 12px 0 0;
  line-height: 1.5;
}

.status a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.price-summary-sticky {
  top: 14px;
  margin: -10px -12px 0;
}

.price-summary {
  padding: 20px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--alpine-forest);
  box-shadow: none;
}

.summary-eyebrow,
.price-label,
.price-detail,
.selected-summary {
  color: rgba(243, 238, 227, 0.74);
}

.summary-eyebrow {
  border-bottom-color: var(--alpine-amber);
}

.price-amount {
  color: #f2bc69;
}

.success-panel {
  border-color: var(--alpine-forest);
  border-radius: 8px;
  background: rgba(228, 237, 220, 0.72);
  box-shadow: none;
}

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--alpine-line);
}

.site-footer a,
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
}

/* Policy and trust pages share the quieter DaFont Alpine reading column. */
.content-panel {
  max-width: 780px;
  margin: 0 auto;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-panel > header {
  padding-bottom: 42px;
  border-bottom: 2px solid var(--alpine-forest);
}

.content-panel h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  color: var(--alpine-forest);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.024em;
}

.content-panel > header > p:not(.eyebrow),
.content-panel section > p,
.content-panel li {
  color: #4f6451;
  font-size: 16px;
  line-height: 1.72;
}

.content-panel section {
  gap: 12px;
  padding: 34px 0;
  border-bottom: 1px solid var(--alpine-line);
}

.content-panel h2 {
  color: var(--alpine-forest);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.content-panel ul {
  gap: 10px;
}

.legal-note {
  margin-top: 24px;
  padding: 16px 0 16px 18px;
  border: 0;
  border-left: 3px solid var(--alpine-amber);
  border-radius: 0;
  background: transparent;
  color: #72501e !important;
}

ol.pledge li {
  border-color: var(--alpine-line);
}

ol.pledge li::before {
  background: var(--alpine-forest);
}

@media (max-width: 1020px) {
  .shell {
    width: min(100% - 40px, 920px);
  }

  .nav {
    margin-bottom: 54px;
  }

  .layout {
    grid-template-columns: minmax(250px, 0.82fr) minmax(500px, 1.38fr);
    gap: 40px;
  }

  .form-panel {
    padding-inline: 28px;
  }

  h1 {
    font-size: clamp(40px, 5.2vw, 54px);
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 36px, 720px);
  }

  .nav {
    margin-bottom: 48px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro {
    max-width: 660px;
    padding-top: 0;
  }

  .intro h1 {
    max-width: 14ch;
    font-size: clamp(48px, 8.5vw, 64px);
  }

  .tiers {
    max-width: 560px;
  }

  .form-panel {
    padding-bottom: 38px;
  }

  .price-summary-sticky,
  body.is-picking-specific-dates .price-summary-sticky {
    position: static;
    display: block;
    margin: 0;
  }

  .price-summary-sticky .price-summary {
    padding: 18px;
    border-radius: 8px;
    box-shadow: none;
  }

  body.has-form-engagement:not(.is-form-control-focused):not(.is-virtual-keyboard-open):not(.is-picking-specific-dates)
    .price-summary-sticky {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    /* The compact quote is informative only. Let a control beneath it receive
       the first tap, then focus returns the quote to normal flow. */
    pointer-events: none;
  }

  body.has-form-engagement:not(.is-form-control-focused):not(.is-virtual-keyboard-open):not(.is-picking-specific-dates)
    .price-summary-sticky .price-summary {
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -10px 28px rgba(14, 39, 22, 0.22);
  }

  body.has-form-engagement:not(.is-form-control-focused):not(.is-virtual-keyboard-open):not(.is-picking-specific-dates)
    .price-summary-sticky .summary-eyebrow,
  body.has-form-engagement:not(.is-form-control-focused):not(.is-virtual-keyboard-open):not(.is-picking-specific-dates)
    .price-summary-sticky .selected-summary {
    display: none;
  }

  body.has-form-engagement:not(.is-form-control-focused):not(.is-virtual-keyboard-open):not(.is-picking-specific-dates)
    .form-panel {
    padding-bottom: calc(var(--mobile-quote-height) + 36px);
  }

  body.has-form-engagement :focus {
    scroll-margin-bottom: calc(var(--mobile-quote-height) + 24px);
  }

  #resourceGroups {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  /* The route list is a deliberate progressive disclosure on phones: one
     active route, then its campsite choices. It remains a normal page flow so
     a user never enters a nested scrolling region. */
  .campsite-group:not([data-route-active="true"]) .group-note,
  .campsite-group:not([data-route-active="true"]) .covered-sites {
    display: none;
  }

  .campsite-group[data-coming-soon="true"] .group-note {
    display: block;
  }

  .campsite-group[data-route-active="true"] {
    border-left: 3px solid var(--alpine-forest);
    padding-left: 12px;
    background: rgba(228, 237, 220, 0.42);
  }

  .campsite-group[data-route-active="true"] .group-summary {
    padding-right: 10px;
  }

  .campsite-group[data-route-active="true"] .covered-sites {
    display: none;
  }

  .group-summary {
    min-height: 58px;
  }

  .group-selected-count {
    display: inline-block;
  }

  .content-panel {
    max-width: 700px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 540px);
    padding: 0 0 40px;
  }

  .nav {
    min-height: 76px;
    margin-bottom: 40px;
  }

  .brand {
    gap: 9px;
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
  }

  .nav-link {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .intro h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .lead {
    font-size: 16px;
  }

  .form-panel {
    margin-inline: -4px;
    padding: 26px 20px 38px;
    border-radius: 8px;
  }

  .form-panel > h2 {
    margin-top: 28px;
  }

  fieldset {
    padding-block: 27px 30px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .all-access-option {
    padding: 14px;
  }

  .filter-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-tab,
  .group-action,
  .calendar-nav,
  .primary {
    min-height: 46px;
  }

  .contact-panel {
    padding-left: 42px;
  }

  .content-panel > header {
    padding-bottom: 34px;
  }

  .content-panel h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .content-panel > header > p:not(.eyebrow),
  .content-panel section > p,
  .content-panel li {
    font-size: 15.5px;
  }

  .content-panel section {
    padding: 28px 0;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 20px, 400px);
  }

  .nav-link {
    padding-inline: 10px;
  }

  .form-panel {
    margin-inline: 0;
    padding-inline: 16px;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-link,
  .filter-tab,
  .group-action,
  .group-disclosure,
  .calendar-nav,
  .primary,
  input,
  select,
  textarea {
    transition: none;
  }
}
