/* Splash page only. The directory itself stays plain and dense; this page is
   where the project gets to look like something.

   The idea: a Mexican highway guide sign. Flat green panels, white rules, no
   shadows or gradients, signage type (Overpass descends from Highway Gothic),
   and a serif for prose so the reading matter feels documented rather than
   marketed. */

.splash {
  --sign-green: #0d4433;
  --sign-green-deep: #08301f;
  --sign-white: #f3f5f1;
  --asphalt: #16181a;
  --sun: #e2a33c;
  --sea: #1b6a86;
  --paper: #f3f5f1;
  --ink: #16181a;
  --ink-soft: #4d5450;
  --rule: #cfd6cd;

  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
}

.splash .navbar,
.splash .btn,
.splash .lang-selector-btn,
.splash h1, .splash h2, .splash h3,
.splash .guidesign,
.splash .rate-demo,
.splash .specimen-status {
  font-family: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
}

.splash h1, .splash h2, .splash h3 {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.splash .container { width: min(1180px, 100% - 40px); }
.splash .container.narrow { width: min(680px, 100% - 40px); }
.splash .lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------- hero */

.splash .hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 88px);
}

.hero-inner {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-lede h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero-lede p { max-width: 54ch; margin: 0 0 14px; }

.hero-free {
  font-family: 'Overpass', sans-serif;
  font-weight: 600;
  color: var(--sign-green);
  border-left: 4px solid var(--sun);
  padding-left: 12px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.splash .btn {
  border-radius: 4px;
  background: var(--sign-green);
  border: 2px solid var(--sign-green);
  color: var(--sign-white);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.splash .btn:hover { background: var(--sign-green-deep); border-color: var(--sign-green-deep); filter: none; }
.splash .btn-lg { padding: 13px 26px; font-size: 1rem; }
.splash .btn-quiet {
  background: transparent;
  color: var(--sign-green);
  border-color: var(--rule);
}
.splash .btn-quiet:hover { background: transparent; border-color: var(--sign-green); }

/* The guide sign. Deliberately flat: real signs have no shadows. */

.guidesign { margin: 0; }

.guidesign-panel {
  background: var(--sign-green);
  color: var(--sign-white);
  border: 3px solid var(--sign-white);
  outline: 3px solid var(--sign-green);
  border-radius: 12px;
  padding: 22px 24px 18px;
}

.guidesign-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(243, 245, 241, 0.5);
}

.guidesign-count {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.guidesign-unit { font-size: 0.95rem; font-weight: 400; opacity: 0.86; }

.guidesign-rows { list-style: none; margin: 12px 0 0; padding: 0; }

.guidesign-rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 600;
}
.guidesign-rows li + li { border-top: 1px solid rgba(243, 245, 241, 0.18); }
.guidesign-rows .count { font-variant-numeric: tabular-nums; opacity: 0.95; }
/* An arrow belongs on a road sign; it is wayfinding here, not decoration. */
.guidesign-rows .arrow { opacity: 0.7; }

.guidesign-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid rgba(243, 245, 241, 0.5);
  font-size: 0.9rem;
  opacity: 0.8;
}

.guidesign-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- sections */

.splash .section { padding: clamp(48px, 7vw, 86px) 0; }
.splash .section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 14px;
}
.splash .section .narrow + .container { margin-top: 30px; }

.splash .section-dark {
  background: var(--asphalt);
  color: var(--sign-white);
}
.splash .section-dark .lede { color: rgba(243, 245, 241, 0.75); }

.splash .section-quiet { background: #eaeee8; border-top: 1px solid var(--rule); }

/* A specimen record, laid out like the record it describes. */

.specimen {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--sign-green);
  border-radius: 6px;
  padding: 24px 26px;
  max-width: 880px;
}

.specimen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.specimen-head h3 { margin: 0; font-size: 1.35rem; }
.specimen-where { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.specimen-status {
  flex: none;
  background: var(--sign-green);
  color: var(--sign-white);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px 28px;
  margin: 16px 0 0;
}
.specimen-grid > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.95rem;
}
.specimen-grid dt { color: var(--ink-soft); }
.specimen-grid dd { margin: 0; overflow-wrap: anywhere; }
.specimen-grid dd.unchecked { color: #8a918b; font-style: italic; }

.specimen-note { margin: 18px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Rate table */

.rate-demo {
  width: 100%;
  max-width: 780px;
  border-collapse: collapse;
  font-size: 0.97rem;
  background: rgba(243, 245, 241, 0.04);
}
.rate-demo caption {
  text-align: left;
  font-family: 'Overpass', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: rgba(243, 245, 241, 0.65);
  padding-bottom: 10px;
}
.rate-demo th, .rate-demo td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid rgba(243, 245, 241, 0.16);
}
.rate-demo th { font-weight: 600; font-size: 0.84rem; color: rgba(243, 245, 241, 0.6); }
.rate-demo td:nth-child(4) { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sun); }
.rate-demo-note { margin-top: 14px; font-size: 0.9rem; color: rgba(243, 245, 241, 0.7); max-width: 60ch; }

/* What an account gives you */

.join-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 40px;
}
.join-list li { padding: 18px 0; border-top: 2px solid var(--sign-green); }
.join-list h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 600; }
.join-list p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 46ch; }

.join-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.join-cta-note { color: var(--ink-soft); font-size: 0.95rem; }

.source-list p { margin: 0 0 12px; }
.source-list strong { font-family: 'Overpass', sans-serif; display: block; font-size: 0.95rem; }
.source-list span { color: var(--ink-soft); font-size: 0.97rem; }

.splash .site-footer { border-top: 1px solid var(--rule); color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-lede h1 { max-width: none; }
}

@media (prefers-color-scheme: dark) {
  .splash {
    --paper: #14161a;
    --ink: #eef1ec;
    --ink-soft: #a7b0a9;
    --rule: #2c332e;
  }
  .splash .section-quiet { background: #191c1f; border-top-color: var(--rule); }
  .specimen { background: #1c1f22; }
  .specimen-grid dd.unchecked { color: #7c857e; }
  .splash .btn-quiet { color: #7fc4a6; }
  .splash .hero-free { color: #7fc4a6; }
  /* The green the name is set in disappears against the dark paper; the logo
     itself handles its own dark mode, inside the SVG. */
  .splash .brandmark-name { color: #7fc4a6; }
}

@media (prefers-reduced-motion: reduce) {
  .splash * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------ featured strip */

.featured-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.featured-head h2 { margin: 0; }

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

.feature-card {
  background: #fff;
  border: 1px solid #bfc8bd;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(13, 68, 51, 0.12), 0 16px 36px rgba(22, 24, 26, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 0 rgba(13, 68, 51, 0.16), 0 22px 44px rgba(22, 24, 26, 0.16);
}
.feature-card.promoted { border: 2px solid var(--sun); }

.feature-visual {
  height: 112px;
  overflow: hidden;
  position: relative;
  background: var(--sign-green);
  border-bottom: 5px solid var(--sun);
}
.feature-card:nth-child(3n + 2) .feature-visual { background: var(--sea); }
.feature-card:nth-child(3n) .feature-visual { background: #8a5a2b; }
.feature-visual::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sun);
  right: 22px;
  top: 20px;
  opacity: 0.92;
}
.feature-visual::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -36px;
  height: 74px;
  background: var(--sign-green-deep);
  transform: rotate(-5deg);
  transform-origin: center;
}
.feature-visual.has-photo::before,
.feature-visual.has-photo::after { display: none; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-number {
  position: absolute;
  left: 16px;
  bottom: 10px;
  z-index: 1;
  color: var(--sign-white);
  font-family: 'Overpass', sans-serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.feature-card-body { padding: 17px 18px 19px; }
.feature-card-labels { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feature-category, .feature-pick {
  color: var(--sign-green);
  font-family: 'Overpass', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.feature-pick { margin-left: auto; color: var(--ink-soft); }
.feature-card h3 { margin: 0 0 5px; font-size: 1.17rem; font-weight: 700; line-height: 1.18; }
.feature-where { margin: 0 0 13px; color: var(--ink-soft); font-size: 0.9rem; min-height: 2.9em; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.feature-facts span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ink);
  font-family: 'Overpass', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}
.feature-amenities { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.35; }

/* Said plainly, because a reader deserves to know what is paid for. */
.feature-flag {
  background: var(--sun);
  color: #2a1c06;
  font-family: 'Overpass', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.featured-cta { margin-top: 18px; color: var(--ink-soft); }
.featured-cta a { color: var(--sign-green); font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .feature-card { background: #1c1f22; }
  .feature-card { border-color: #3c4540; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 18px 38px rgba(0, 0, 0, 0.3); }
  .feature-category { color: #7fc4a6; }
  .feature-facts span { color: var(--ink); }
  .featured-cta a { color: #7fc4a6; }
}

@media (max-width: 980px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
  .feature-where { min-height: 0; }
}

/* ------------------------------------------------------------- brandmark */

/* The rolling palapa and the name, above the headline rather than beside it.
   The guide sign is still the hero's picture; this introduces the name and
   then gets out of the way, so the two are not competing for the same look. */
.brandmark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
}
.brandmark-logo {
  width: clamp(88px, 11vw, 124px);
  height: auto;
  flex: none;
  /* It is a vehicle, so it trundles: a shallow bob with the pitch a cart
     takes over uneven ground. Transform only — nothing here moves the
     layout, and the whole thing is one composited layer.

     Seven seconds and under four pixels on purpose. Anything faster or
     further stops reading as travel and starts reading as a page that will
     not settle, which is worse next to text somebody is trying to read.

     The reduced-motion rule at the foot of this file switches it off; it
     matches `.splash *`, which is this element. The draught lines streaming
     inside the SVG are a separate animation with its own guard, because a
     page cannot reach into an image to stop it. */
  animation: trundle 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes trundle {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  20%  { transform: translate3d(1px, -3.5px, 0) rotate(-0.9deg); }
  42%  { transform: translate3d(-1px, -1px, 0) rotate(0.5deg); }
  63%  { transform: translate3d(1.5px, -4px, 0) rotate(-0.5deg); }
  84%  { transform: translate3d(-0.5px, -1.5px, 0) rotate(0.7deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.brandmark-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brandmark-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  /* 400, because 400 is the only Source Serif weight vendored here. Asking for
     600 does not get a bolder cut, it gets the browser smearing this one, and
     the fake weight is visible at wordmark size. Same reason the byline is
     roman: no italic Overpass is vendored either. */
  font-weight: 400;
  line-height: 1.05;
  color: var(--sign-green);
  letter-spacing: -0.005em;
}
.brandmark-byline {
  font-family: 'Overpass', sans-serif;
  font-size: clamp(0.92rem, 1.5vw, 1.06rem);
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .brandmark { gap: 12px; }
}
.feature-state-map { width: 100%; height: 100%; }
.feature-card { cursor: pointer; }
.feature-link { color: inherit; text-decoration: none; }
.feature-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.feature-link:focus-visible { outline: none; }
.feature-card:has(.feature-link:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
