/* Backridge site pages (landing, privacy, credits, safety). The same type and palette as the app (src/style.css):
   granite ink, glacier white, one signal-yellow accent, Archivo set wide and heavy for headings. No framework. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format('woff2-variations');
}
:root {
  --pine: #1F272B; --bark: #2B3337; --stone: #5C676C; --moss: #5F7350; --paper: #EEF2F2; --birch: #F8FAFA;
  --line: #D2DADC; --tint: #E2E8E9; --ember: #F2C200; --ember-ink: #6E5600; --lake: #2F6A8A; --signal: #B5382A;
  --head-bg: #2B3337; --head-ink: #EEF2F2;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wide: 118%; --wider: 125%;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--bark); background: var(--paper); }
a { color: var(--lake); text-underline-offset: 0.15em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-stretch: var(--wide); color: var(--pine); line-height: 1.1; margin: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- the granite band with contour lines: the app's header, larger ---------- */
.band { position: relative; color: var(--head-ink); background: var(--head-bg) url(/img/topo.svg) center / cover no-repeat; overflow: hidden; }
.band h1, .band h2 { color: var(--head-ink); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--head-ink); text-decoration: none; font-weight: 700; font-stretch: var(--wide); font-size: 1.45rem; letter-spacing: 0.01em; }
.logo:hover { color: var(--head-ink); opacity: 0.88; }
.logo svg { width: 30px; height: 30px; }
.bar a.quiet { color: var(--head-ink); font-weight: 600; text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.bar a.quiet:hover { opacity: 1; text-decoration: underline; }

/* the app's trail sign plate: dark plate, coloured blaze on the right */
.plate { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.6rem 0.35rem 0.85rem; background: var(--pine); color: var(--head-ink); border-radius: 6px; font-weight: 700; font-stretch: var(--wide); font-size: 0.95rem; }
.plate::after { content: ''; width: 6px; height: 1.15em; border-radius: 1px; background: var(--ember); }

/* the one main action, in the accent, as in the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0.8rem 1.6rem; border-radius: 10px; background: var(--ember); color: var(--pine); font-weight: 700; font-stretch: var(--wide); font-size: 1.1rem; text-decoration: none; }
.btn:hover { color: var(--pine); filter: brightness(1.06); }
.btn svg { width: 22px; height: 22px; }

/* ---------- landing hero ---------- */
.hero { padding-top: clamp(1.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }
/* The headline is a short route: three sentences, three waypoints on one dashed trail. */
.route { position: relative; margin: 1.4rem 0 1.6rem; font-size: clamp(2.35rem, 8.4vw, 5.6rem); font-weight: 800; font-stretch: var(--wider); line-height: 1.02; letter-spacing: -0.01em; }
.route span { position: relative; display: block; padding: 0.12em 0 0.12em 0.95em; }
.route span::before { content: ''; position: absolute; left: 0.06em; top: 50%; width: 0.36em; height: 0.36em; margin-top: -0.18em; border-radius: 50%; background: var(--head-bg); border: 0.075em solid var(--head-ink); box-sizing: border-box; z-index: 1; }
.route span:first-child::before { background: var(--moss); border-color: var(--head-ink); }
.route span:last-child::before { background: var(--ember); border-color: var(--head-ink); }
.route::before { content: ''; position: absolute; left: calc(0.24em - 2px); top: 0.6em; bottom: 0.6em; border-left: 4px dashed var(--ember); opacity: 0.9; }
.route .free { color: var(--ember); }
.lede { max-width: 34rem; margin: 0 0 1.8rem; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; color: color-mix(in srgb, var(--head-ink) 88%, transparent); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; }
.cta .aside { color: color-mix(in srgb, var(--head-ink) 80%, transparent); font-size: 0.95rem; }
.band .aside a { color: var(--head-ink); }

/* ---------- what it does ---------- */
.does { list-style: none; margin: 0 auto; padding-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.does li { padding-left: 1rem; border-left: 4px solid var(--pine); }
.does li:nth-child(2) { border-left-color: var(--ember); }
.does li:nth-child(3) { border-left-color: var(--moss); }
.does h2 { font-size: 1.3rem; font-weight: 750; margin-bottom: 0.3rem; }
.does p { margin: 0; color: var(--stone); max-width: 24rem; }

/* ---------- phones ---------- */
.phones { display: flex; gap: clamp(1rem, 3vw, 2.5rem); margin: 0; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
.phones figure { flex: 0 0 min(72vw, 17.5rem); margin: 0; scroll-snap-align: start; }
.phone { border: 9px solid var(--pine); border-radius: 34px; overflow: hidden; background: var(--pine); box-shadow: 0 18px 40px -18px rgba(31, 39, 43, 0.55); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.phones figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--stone); max-width: 17rem; }
.phones figcaption b { display: block; color: var(--pine); font-stretch: var(--wide); font-size: 1.05rem; }
@media (min-width: 60rem) {
  .phones { justify-content: center; overflow: visible; }
  .phones figure:nth-child(2) { transform: translateY(-1.75rem); }
}

.feedback { padding-block: clamp(2rem, 5vw, 3.5rem); }
.feedback p { margin: 0; max-width: var(--measure); font-size: 1.1rem; }

/* ---------- text pages (privacy, credits, safety) ---------- */
.page-head { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: clamp(1.75rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; font-stretch: var(--wider); }
.page-head p { margin: 0.8rem 0 0; max-width: var(--measure); color: color-mix(in srgb, var(--head-ink) 85%, transparent); font-size: 1.1rem; }
.prose { max-width: var(--measure); padding-top: clamp(1.75rem, 5vw, 3rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.prose h2 { font-size: 1.35rem; font-weight: 750; margin: 2.2rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose dl { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .dated { color: var(--stone); font-size: 0.95rem; }
.services { margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.services > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.services dt { font-weight: 700; color: var(--pine); }
.services dd { margin: 0.15rem 0 0; color: var(--stone); }
.todo { background: #FFF4C2; color: var(--ember-ink); padding: 0 0.3em; border-radius: 3px; font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); background: var(--birch); font-size: 0.95rem; color: var(--stone); }
.foot .safety { margin: 0 0 1rem; max-width: var(--measure); color: var(--bark); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot nav a { color: var(--bark); font-weight: 600; }
.foot nav a:hover { color: var(--pine); }
