/*
 * Wander — website styles.
 * The app's design system (../DESIGN.md) on the web: a dusk field notebook,
 * a hand-inked trail on deep water. Hairlines carry elevation; there are no
 * shadows, no gradients, no blur. Nothing is centred — everything hangs off
 * one left rail. No web fonts: New York and SF on Apple devices, a plain
 * serif and the system sans elsewhere, so the site fetches nothing.
 */

:root {
  --ground:   #09182B;
  --surface:  #12253D;
  --raised:   #1A3050;
  --hairline: #24405E;
  --ink:      #E8EEF4;
  --muted:    #8FA3B8;
  --dim:      #6C819A;
  --trail:    #2E4560;

  --pewter:   #B7C4D2;
  --nature:   #63C08A;
  --culture:  #D8B25C;
  --food:     #E8785A;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The rail: the trail's spine, and the line every block hangs from. */
  --rail: 44px;
  --measure: 640px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pewter); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

.wrap {
  max-width: 920px;
  margin: 0;
  padding: 0 16px 0 calc(16px + var(--rail));
}

@media (min-width: 760px) {
  .wrap { padding-left: calc(48px + var(--rail)); padding-right: 48px; }
}

/* ---------- Masthead ---------- */

.masthead { border-bottom: 1px solid var(--hairline); }
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
}
.tagline { color: var(--muted); font-size: 14px; letter-spacing: 0.3px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { border-bottom: 1px solid var(--pewter); padding-bottom: 2px; }

@media (max-width: 560px) {
  .nav { margin-left: 0; width: 100%; }
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.6px; margin: 0 0 18px; max-width: 16ch; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.2px; margin: 48px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 6px; }

p { margin: 0 0 14px; max-width: var(--measure); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.updated { color: var(--dim); font-size: 14px; letter-spacing: 0.3px; }
.num { font-variant-numeric: tabular-nums; }

ul { padding-left: 0; list-style: none; margin: 0 0 16px; max-width: var(--measure); }
ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
/* Bullets are small ahead-nodes: open rings, not dots. */
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--dim);
  border-radius: 50%;
}

strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout blocks ---------- */

main { padding: 48px 0 72px; }

.hero { padding-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 22px;
  margin: 24px 0;
  max-width: 760px;
}
.prose h2:first-child { margin-top: 0; }

.callout {
  border-left: 2px solid var(--pewter);
  padding: 2px 0 2px 16px;
}
.callout p:last-child { margin-bottom: 0; }

.fineprint {
  border-top: 1px solid var(--hairline);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- Buttons: full width on phones, label always on the left ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 260px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--pewter);
  color: var(--ground);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 0;
}
.button:hover { color: var(--ground); background: #C9D3DE; }
.button.quiet {
  background: transparent;
  color: var(--pewter);
  border: 1px solid rgba(183, 196, 210, 0.35);
}
.button.quiet:hover { color: var(--ink); border-color: var(--pewter); }

@media (max-width: 560px) {
  .button { width: 100%; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }

/* ---------- The trail: hero drawing ---------- */

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.plan {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 20px 10px;
}
.plan .plan-cat { font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--nature); }
.plan .plan-title { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.2px; margin: 2px 0 14px; }
.plan svg { display: block; width: 100%; height: auto; }
.plan svg text { font-family: var(--sans); }

.trail-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 0.52s ease-out 0.15s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .trail-path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Feature list hanging off a drawn rail ---------- */

.stops { position: relative; margin: 8px 0 0; padding: 0; list-style: none; max-width: 700px; }
.stops::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 12px;
  bottom: 40px;
  width: 2px;
  background: var(--trail);
  border-radius: 2px;
}
.stops li { padding: 0 0 28px; margin: 0; }
.stops li::before {
  left: -32px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--pewter);
  background: var(--ground);
}
.stops h3 { margin: 0 0 4px; }
.stops p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  max-width: var(--measure);
}
details:first-of-type { border-top: 1px solid var(--hairline); }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; color: var(--dim); font-weight: 400; }
details[open] summary::after { content: " –"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 28px 0 44px; color: var(--dim); font-size: 14px; }
.footer p { margin: 0 0 6px; }
.footer .nav-foot { display: flex; gap: 18px; margin-top: 12px; }
.footer .nav-foot a { color: var(--muted); text-decoration: none; }
.footer .copy { margin-top: 14px; }
