/* Wander Story website
   Plain CSS, no build step, no external requests. Colors come from the app's
   own palette (Theme.swift: cream, amber, teal, and the dark CarPlay palette).
   Written for evergreen browsers (Chrome/Edge/Firefox/Safari from about 2019 on);
   every layout falls back to a single readable column if a feature is missing. */

:root {
  --bg: #FAF0E3;
  --paper: #FDF7F0;
  --ink: #302017;
  --ink-soft: #5F4F46;
  --ink-faint: #8A7C73;
  --amber: #CB6620;
  --amber-deep: #A44000;
  --amber-tint: #FEE2CF;
  --teal-deep: #00788B;
  --line: #DFD1C7;
  --shadow: 0 10px 30px rgba(48, 32, 23, 0.14);
  --car-bg: #211209;
  --car-bg-deep: #110602;
  --car-surface: #35251B;
  --car-surface-hi: #462F23;
  --car-cream: #F3EADD;
  --car-ink-soft: #C2B6AC;
  --car-amber: #EE8545;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B0F08;
    --paper: #281910;
    --ink: #F3EADD;
    --ink-soft: #C2B6AC;
    --ink-faint: #8E8178;
    --amber: #EE8545;
    --amber-deep: #F2985F;
    --amber-tint: #4A2A17;
    --teal-deep: #4CC3D4;
    --line: #4A3628;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #FAF0E3;
  background: var(--bg);
  color: #302017;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--amber-deep); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: 2.6rem; font-size: clamp(2.5rem, 6.2vw, 4.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 2rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 0.8em;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; margin-right: 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { margin: 0 0 0 4px; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { background: var(--amber-tint); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--amber-tint); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; padding-top: 8px; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav li { margin: 0; }
  .site-nav ul { padding-top: 8px; }
}

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--amber-deep); color: #FDF7F0; }
.btn-primary:hover { background: var(--amber); color: #FDF7F0; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--ink); }
.coming-soon {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; margin-top: 1.6em; }
.cta-row > * { margin: 0 14px 12px 0; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-gap: 40px; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.fan { position: relative; height: 430px; max-width: 420px; margin: 0 auto; width: 100%; }
.fan figure {
  position: absolute;
  margin: 0;
  width: 56%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--paper);
  background: var(--paper);
}
.fan img { display: block; width: 100%; }
.fan .c1 { left: 0; top: 36px; -webkit-transform: rotate(-9deg); transform: rotate(-9deg); }
.fan .c2 { right: 0; top: 0; -webkit-transform: rotate(7deg); transform: rotate(7deg); z-index: 1; }
.fan .c3 { left: 20%; top: 120px; -webkit-transform: rotate(-1deg); transform: rotate(-1deg); z-index: 2; }
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .fan { height: 360px; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 40em; margin-bottom: 2.2em; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 20px; gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 20px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; counter-increment: step; }
.band .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3 { margin-top: 12px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.icon { width: 40px; height: 40px; color: var(--amber-deep); }
.icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .wander-cards { grid-template-columns: 1fr; } }

/* genres */
.genres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 16px; gap: 16px; }
.genres li { margin: 0; }
.genres img { display: block; width: 100%; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 12px; background: var(--paper); }
.genres h3 { font-size: 1.05rem; margin-bottom: 0.15em; }
.genres p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }
@media (max-width: 960px) { .genres { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .genres { grid-template-columns: repeat(2, 1fr); } }

/* screenshots */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 24px; gap: 24px; }
.shots li { margin: 0; text-align: center; }
.phone {
  background: #17100b;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow);
  margin: 0 auto 14px;
  max-width: 260px;
}
.phone img { display: block; width: 100%; border-radius: 26px; }
.shots p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; } }

/* road / audio band (always dark, like the app's CarPlay screens) */
.road { background: var(--car-bg); color: var(--car-cream); padding: 80px 0; }
.road h2, .road h3 { color: var(--car-cream); }
.road .eyebrow { color: var(--car-amber); }
.road p { color: var(--car-ink-soft); }
.road a { color: var(--car-amber); }
.road .ticks li { color: var(--car-ink-soft); }
.road .ticks li::before { border-color: var(--car-amber); }
.road p strong { color: var(--car-cream); }
.road .fine { font-size: 0.88rem; }
.road-grid { display: grid; grid-template-columns: 1fr 0.8fr; grid-gap: 48px; gap: 48px; align-items: center; }
.say { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; }
.say li { margin: 0 10px 10px 0; padding: 8px 16px; border: 1.5px solid var(--car-surface-hi); background: var(--car-surface); border-radius: 999px; color: var(--car-cream); font-size: 0.95rem; }
.note { font-size: 0.92rem; color: var(--car-ink-soft); border-left: 3px solid var(--car-amber); padding-left: 14px; margin-top: 1.6em; }
.player { max-width: 330px; margin: 0 auto; background: var(--car-surface); border: 1.5px solid var(--car-surface-hi); border-radius: 28px; padding: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.player .tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--car-ink-soft); text-align: center; margin: 0 0 14px; }
.player img { display: block; width: 62%; margin: 0 auto 18px; border-radius: 12px; }
.player .title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-align: center; color: var(--car-cream); margin: 0; }
.player .sub { text-align: center; font-size: 0.82rem; color: var(--car-ink-soft); margin: 4px 0 18px; }
.bar { height: 5px; background: var(--car-surface-hi); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.bar span { display: block; height: 100%; width: 38%; background: var(--car-amber); }
.controls { display: flex; align-items: center; justify-content: center; }
.controls span { display: block; margin: 0 14px; color: var(--car-cream); }
.controls .play { width: 58px; height: 58px; border-radius: 50%; background: var(--car-amber); color: #211209; display: flex; align-items: center; justify-content: center; }
.controls svg { width: 24px; height: 24px; fill: currentColor; display: block; }
@media (max-width: 860px) { .road-grid { grid-template-columns: 1fr; } }

/* cover art */
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 48px; gap: 48px; align-items: center; }
.cover-pair { display: flex; justify-content: center; }
.cover-pair figure { margin: 0 -14px; width: 46%; max-width: 230px; border: 4px solid var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.cover-pair figure:first-child { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
.cover-pair figure:last-child { -webkit-transform: rotate(4deg) translateY(18px); transform: rotate(4deg) translateY(18px); }
.cover-pair img { display: block; width: 100%; }
@media (max-width: 860px) { .cover-grid { grid-template-columns: 1fr; } .cover-pair { padding-bottom: 20px; } }

/* checklist */
.ticks { list-style: none; padding: 0; margin: 1em 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 0.6em; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px; border-left: 3px solid var(--amber-deep); border-bottom: 3px solid var(--amber-deep); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 16px; gap: 16px; }
.plan { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 22px 18px; display: flex; flex-direction: column; }
.plan.free { border-color: var(--amber); }
.plan h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 4px 0 2px; }
.price small { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
.plan .tagline { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 14px; }
.plan ul { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.plan li { font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.fine { font-size: 0.9rem; color: var(--ink-soft); max-width: 52em; margin-top: 1.6em; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .plans { grid-template-columns: 1fr; } }

/* richer storytelling */
.richer-grid { display: grid; grid-template-columns: 1fr 1.25fr; grid-gap: 48px; gap: 48px; align-items: start; }
.richer-intro { position: relative; }
.richer-list { list-style: none; padding: 0; margin: 0; }
.richer-list li { display: flex; align-items: flex-start; background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.richer-list li:last-child { margin-bottom: 0; }
.richer-list .icon { flex: none; width: 34px; height: 34px; margin-right: 16px; margin-top: 2px; }
.richer-list h3 { margin: 0 0 4px; font-size: 1.08rem; }
.richer-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .richer-grid { grid-template-columns: 1fr; grid-gap: 28px; gap: 28px; } }

/* privacy callout */
.callout { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; grid-gap: 32px; gap: 32px; align-items: center; }
.callout h2 { color: var(--bg); margin-bottom: 0.3em; }
.callout p { color: var(--bg); opacity: 0.85; margin: 0; }
.callout a { color: var(--amber-tint); }
.callout ul { list-style: none; margin: 0; padding: 0; }
.callout li { margin-bottom: 0.7em; padding-left: 26px; position: relative; font-size: 0.97rem; }
.callout li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Document pages (support, privacy, terms, licenses) ---------- */
.doc { padding: 48px 0 72px; }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; grid-gap: 48px; gap: 48px; align-items: start; }
.doc-nav { position: -webkit-sticky; position: sticky; top: 16px; font-size: 0.92rem; }
.doc-nav p { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.doc-nav ol { list-style: none; padding: 0; margin: 0; }
.doc-nav li { margin-bottom: 6px; }
.doc-nav a { color: var(--ink-soft); text-decoration: none; }
.doc-nav a:hover { color: var(--amber-deep); text-decoration: underline; }
.prose { max-width: 44em; }
.prose h1 { font-size: 2.3rem; font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.1em; padding-top: 0.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; font-family: var(--sans); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose .meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose pre { white-space: pre-wrap; word-wrap: break-word; font-size: 0.8rem; line-height: 1.5; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.prose details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 12px; }
.prose summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--ink); }
.prose details[open] summary { margin-bottom: 6px; }
.prose details p:last-child { margin-bottom: 14px; }
.todo { background: #FFE27A; color: #302017; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.draft-banner { background: #FFE27A; color: #302017; border: 2px dashed #A44000; border-radius: 12px; padding: 12px 16px; margin: 0 0 1.6em; font-size: 0.95rem; }
.contact-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; margin: 1.4em 0 2em; }
.contact-card p { margin: 0 0 0.4em; }
.contact-card .mail { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; word-break: break-all; }
.faq .faq-cat { font-size: 1.05rem; margin: 1.8em 0 0.6em; padding-bottom: 6px; border-bottom: 2px solid var(--line); color: var(--ink); }
.faq .faq-cat:first-child { margin-top: 0.4em; }
.faq details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--ink); }
.faq details[open] summary { margin-bottom: 4px; }
.faq details p, .faq details ul { color: var(--ink-soft); }
.faq details > :last-child { margin-bottom: 16px; }
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 40px 0; font-size: 0.93rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-gap: 32px; gap: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 0.8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--amber-deep); }
.legal-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; -webkit-transform: translateY(16px); transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; -webkit-transform: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; -webkit-transform: none; transform: none; transition: none; }
}

@media print {
  .site-header, .site-footer, .doc-nav, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc-grid { display: block; }
  a { color: #000; }
}
