/* Waypointer — waypointer.info
   Palette: charcoal-black brand, warm white paper, red reserved for the
   emergency strip only (mirrors the app: red always means "urgent help"). */

:root {
  --ink: #1C1C1E;          /* brand charcoal (app headers/buttons) */
  --paper: #F5F4F1;        /* warm off-white (app background) */
  --card: #FFFFFF;
  --grey: #57534E;
  --line: #E7E5E4;         /* light grey (logo chevrons) */
  --red: #B3261E;     /* reserved for emergency strip only */ 
  --black: #000000;        
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
}

a { color: inherit; }

/* ---------- emergency strip: the one red thing, on every page ---------- */
.hotlines {
  background: var(--black);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.hotlines a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 15px;
  white-space: nowrap;
}
.hotlines a:hover, .hotlines a:focus-visible { background: rgba(255,255,255,.3); }
.hotlines .hint {
  color: #fff; opacity: .95; font-size: 13px; font-weight: 600;
  width: 100%; text-align: center; margin-top: 2px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--line);
  padding: 64px 24px 72px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero img.logo { width: min(520px, 86vw); height: auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 28px auto 10px;
  max-width: 17ch;
  line-height: 1.15;
}
.hero .es {
  color: #A8A29E;
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 600;
  max-width: 34ch;
  margin: 0 auto;
}
.hero .facts {
  margin: 26px 0 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A8A29E;
}
/* giant quiet chevron — the waypoint mark, pointing the way through */
.hero::after {
  content: '›';
  position: absolute;
  right: -0.12em;
  bottom: -0.42em;
  font-size: 22rem;
  font-weight: 300;
  color: rgba(231,229,228,.07);
  line-height: 1;
  pointer-events: none;
}

/* store badges */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 20px;
  text-decoration: none;
  text-align: left;
  min-height: 60px;
}
.badge:hover, .badge:focus-visible { background: #2b2b2e; }
.badge .mark { font-size: 26px; line-height: 1; }
.badge small { display: block; font-size: 11px; font-weight: 500; color: #cfcecc; }
.badge b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- sections ---------- */
main section { padding: 56px 24px; }
.wrap { max-width: 960px; margin: 0 auto; }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.lede { color: var(--grey); max-width: 62ch; margin-bottom: 28px; }

/* app-card echoes: same geometry as the app's browse cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex; align-items: center; gap: 6px;
}
.card .txt { flex: 1; }
.card .txt b { font-size: 17px; }
.card .txt span { display: block; color: var(--grey); font-size: 14px; margin-top: 3px; }
.card .chev { color: var(--grey); font-size: 28px; font-weight: 300; }

/* how it works — a real sequence, so numbers are honest here */
.steps { display: grid; gap: 18px; max-width: 640px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .no {
  min-width: 30px; min-height: 30px; border-radius: 999px;
  background: var(--ink); color: var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.step p { flex: 1; }
.step p b { display: block; }
.step p span { color: var(--grey); font-size: 15px; }

/* trust band */
.trust { background: var(--ink); color: var(--line); }
.trust h2 { color: #fff; }
.trust .lede { color: #A8A29E; }
.trust ul { list-style: none; display: grid; gap: 12px; max-width: 640px; }
.trust li { padding-left: 26px; position: relative; }
.trust li::before { content: '›'; position: absolute; left: 0; font-weight: 300; font-size: 24px; line-height: 1.1; color: #A8A29E; }
.trust li b { color: #fff; }

/* ---------- footer ---------- */
footer {
  padding: 36px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 14px;
}
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { font-weight: 700; color: var(--ink); }
footer .disclaimer { max-width: 70ch; }

/* ---------- policy pages ---------- */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.policy h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.policy .meta { color: var(--grey); margin: 6px 0 30px; font-size: 15px; }
.policy h2 { font-size: 20px; margin: 32px 0 8px; }
.policy p, .policy li { color: #33302E; margin-bottom: 10px; }
.policy ul { padding-left: 22px; }
.policy .back { display: inline-block; margin-top: 36px; font-weight: 700; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.trust :focus-visible, .hero :focus-visible, .hotlines :focus-visible { outline-color: #fff; }

/* ---------- language toggle + bilingual blocks ---------- */
.lang-toggle {
  display: flex; gap: 6px; justify-content: flex-end;
  padding: 12px 16px 0; background: var(--ink);
}
.policy-bar .lang-toggle { background: transparent; padding: 20px 24px 0; max-width: 760px; margin: 0 auto; }
.lang-toggle button {
  font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  color: var(--line); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 14px; min-height: 32px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.policy-bar .lang-toggle button { color: var(--ink); border-color: var(--ink); }
.policy-bar .lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--line); }

/* no-JS fallback: English shows, Spanish blocks stay hidden until JS runs */
[data-lang="es"] { display: none; }
html.lang-es [data-lang="es"] { display: revert; }
html.lang-es [data-lang="en"] { display: none; }
