/* Along — marketing site. Tokens match the app's theme (apps/mobile/src/theme). */
:root {
  /* The Along design system (design/brand/DESIGN_SYSTEM.md; the app's src/theme). */
  --bg: #F6F2E8;          /* Sand */
  --surface: #FAF8F3;     /* Paper */
  --border: #E4DDD1;
  --text: #1F2937;        /* Charcoal */
  --muted: #4B5563;       /* Slate */
  --accent: #1F3A2E;      /* Forest */
  --accent-text: #F6F2E8;
  --accent-hover: #172C23;
  --eyebrow: #8F5638;     /* Clay, darkened to read as text */
  --sage: #647A63;
  --sage-light: #B4C4B0;
  --sunrise: #E8B15C;
  --highlight: #E6ECE1;
  --red: #A8322A;
  --alt: #EFEAE2;         /* Cloud */

  /* Forest bands (the Player's palette in the app). */
  --band: #1F3A2E;
  --band-surface: #2A4739;
  --band-border: #3A584A;
  --band-text: #F6F2E8;
  --band-muted: #B8C5B7;
  --band-eyebrow: #EBC27F;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --radius: 24px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(31, 41, 55, 0.06), 0 12px 32px rgba(31, 41, 55, 0.10);
  --shot-shadow: 0 2px 6px rgba(31, 41, 55, 0.08), 0 24px 48px rgba(31, 41, 55, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141D18;
    --surface: #1C2721;
    --border: #2D3A32;
    --text: #F6F2E8;
    --muted: #AAB2A7;
    --accent: #A9BFA5;
    --accent-text: #1F3A2E;
    --accent-hover: #BED0BA;
    --eyebrow: #E0A887;
    --highlight: #2A3B31;
    --red: #EF8B80;
    --alt: #18231D;
    --band: #1F3A2E;
    --band-surface: #263F33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.band :focus-visible { outline-color: var(--band-text); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 4px;
}
.wordmark svg { width: 2.1em; height: auto; margin-bottom: -0.12em; }
.nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  order: 3;
  width: 100%;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.nav a:hover { color: var(--text); }
.header-inner .btn-small { margin-left: auto; }

@media (min-width: 820px) {
  .nav { order: 0; width: auto; margin-left: auto; gap: 28px; }
  .header-inner .btn-small { margin-left: 8px; }
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

.btn-store {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 9px 26px 10px;
  min-height: 56px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 16px;
}
.btn-store:hover { background: var(--accent-hover); }
.btn-store-small { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.92; }
.btn-store-big { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

.btn-soon {
  border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  color: var(--muted);
  background: transparent;
  border-radius: 16px;
  min-height: 56px;
  font-weight: 500;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 16px; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 11vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 5.4vw, 30px);
  color: var(--text);
  margin-top: 14px;
}
.hero-lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 40px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section h2 { font-size: clamp(32px, 7.4vw, 50px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { margin-top: 18px; font-size: 18px; color: var(--muted); }

.band { background: var(--band); color: var(--band-text); }
.band .eyebrow { color: var(--band-eyebrow); }
.band h2, .band h3 { color: var(--band-text); }
.band .section-lede, .band p { color: var(--band-muted); }
.band strong { color: var(--band-text); }
.band a { color: var(--band-text); }

/* ---------- Streams ---------- */
.streams {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.stream {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stream img {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
}
.stream h3 { font-size: 22px; }
.stream-books { font-size: 14px; font-weight: 600; color: var(--eyebrow); margin-top: 4px; line-height: 1.35; }
.stream-text p:last-child { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.streams-note { margin-top: 28px; color: var(--muted); max-width: 40em; }

@media (min-width: 640px) {
  .streams { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1000px) {
  .streams { grid-template-columns: repeat(5, 1fr); }
  .stream { flex-direction: column; align-items: stretch; padding: 10px 10px 20px; gap: 14px; }
  .stream img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; }
  .stream-text { padding: 0 8px; }
}

/* ---------- Feature (copy + screenshot) ---------- */
.feature { display: grid; gap: 48px; align-items: center; }
.feature-copy { min-width: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; }
  .feature-flip .feature-copy { order: 2; }
}

.shot { margin: 0; display: flex; justify-content: center; }
.shot img {
  width: min(300px, 78vw);
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 34px;
  box-shadow: var(--shot-shadow);
  background: var(--surface);
}
@media (min-width: 900px) { .shot img { width: 320px; border-radius: 36px; } }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231F4A36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks strong { font-weight: 600; }
.band .ticks li::before {
  background-color: var(--band-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23CFE0C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23BFD6B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* ---------- Rhythm ---------- */
.rhythm {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--band-surface);
  border: 1px solid var(--band-border);
}
.rhythm-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.rhythm-title { font-family: var(--serif); font-size: 21px; color: var(--band-text); }
.rhythm-count { font-size: 14px; font-weight: 600; color: var(--band-eyebrow); }
.rhythm-days { list-style: none; padding: 0; margin: 14px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rhythm-days li {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--band-muted);
  border: 1.5px solid var(--band-border);
}
.rhythm-days li.on { background: var(--sage); border-color: var(--sage); color: #14261C; }
.rhythm p { font-size: 15px; }

/* ---------- Thread ---------- */
.thread-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--band);
  color: var(--band-text);
  box-shadow: var(--shadow);
}
.thread-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-eyebrow); }
.thread-title { font-family: var(--serif); font-size: clamp(26px, 6vw, 32px); line-height: 1.15; margin-top: 8px; }
.thread-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.thread-steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px 9px;
  border-radius: 14px;
  background: var(--band-surface);
  text-align: center;
  min-width: 0;
}
.thread-steps .ref { font-size: 12px; color: var(--band-muted); line-height: 1.25; }
.thread-steps .word { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.2; }
.thread-verse { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--band-border); }
.thread-verse p { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--band-text); }
.thread-verse footer { margin-top: 6px; font-size: 13px; color: var(--band-muted); }
@media (max-width: 459px) {
  .thread-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thread-steps li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 12px; text-align: left; }
  .thread-steps li:last-child { grid-column: 1 / -1; }
}

/* ---------- Reader sample ---------- */
.chips-explained { margin: 28px 0 0; display: grid; gap: 10px; }
.chips-explained div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.chips-explained dt {
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--text);
}
.chips-explained dd { margin: 0; color: var(--muted); font-size: 16px; }

.verse-sample {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.verse-sample p { font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.verse-sample sup { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 4px; vertical-align: 0.6em; line-height: 0; }
.verse-sample .red { color: var(--red); }
.verse-sample footer { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Ask ---------- */
.suggestions { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.suggestions li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.3;
}

.promises-wrap { margin-top: 72px; }
.promises-title { font-size: clamp(26px, 5.4vw, 34px); margin-bottom: 24px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promises li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.promises h4 { font-size: 22px; color: var(--accent); }
.promises p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Free ---------- */
.cards-2 { display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--band-surface);
  border: 1px solid var(--band-border);
}
.card h3 { font-size: 24px; }
.card p { margin-top: 10px; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--highlight);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Download ---------- */
.download { background: var(--alt); }
.download-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .download-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 20px; }
.footer-tag { margin-top: 8px; color: var(--muted); font-family: var(--serif); font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.credits, .copyright { font-size: 14px; color: var(--muted); max-width: 46em; }
.credits a { color: var(--muted); }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { justify-content: flex-end; }
  .credits { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.nf-title { margin-top: 40px; font-size: clamp(36px, 8vw, 52px); color: var(--accent); }
