/* Atlas website: the app's own palette (warm ivory, the logo's navy and gold) so the jump from the
   site into the app is seamless. Headlines in Literata, a calm, bookish serif (self-hosted: the CSP
   allows fonts from this site only); body text in the phone's own sans, as in the app.
   Mobile-first. One moving part on purpose: the hero demo answers the visitor's taps.
   Shared by the home, account, invite and legal pages. */
@font-face {
  font-family: 'Literata';
  src: url('fonts/literata-display.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
/* Softened from the logo's colours: a quieter slate navy, brass instead of bright gold, and an
   off-white with less yellow in it. */
:root {
  color-scheme: light dark;
  --bg: #f5f3ef;
  --bg-2: #ece8e1;
  --surface: #fdfcfa;
  --ink: #1c2033;
  --ink-2: #5d6070;
  --line: #e1ddd5;
  --primary: #2c3354;
  --primary-ink: #fbf9f4;
  --accent: #80612a;
  --gold: #c8a56a;
  --gold-2: #e2cb9e;
  --gold-ink: #2a2210;
  --navy: #1f2437;
  --on-navy: #f1ede5;
  --on-navy-2: #c0bfca;
  --navy-line: #363c56;
  --chip: #faf8f4;
  --next-bg: #f3ece0;
  --plan-edge: var(--navy);
  --glow: rgb(200 165 106 / 22%);
  --shadow: 0 1px 2px rgb(28 32 51 / 5%), 0 18px 48px rgb(28 32 51 / 10%);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --serif: 'Literata', ui-serif, 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --bg-2: #151a2c;
    --surface: #171b2e;
    --ink: #eeeae2;
    --ink-2: #aeaebb;
    --line: #2a2f45;
    --primary: #d3b47c;
    --primary-ink: #1c2033;
    --accent: #dcc08a;
    --navy: #1b2034;
    --navy-line: #343a55;
    --chip: #13172a;
    --next-bg: #1f2439;
    --plan-edge: #d3b47c;
    --glow: rgb(211 180 124 / 10%);
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 48px rgb(0 0 0 / 45%);
  }
}
* {
  box-sizing: border-box;
}
/* Author display rules (e.g. .panel form) must never override the hidden attribute. */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: var(--primary);
}
img,
video {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.6vw + 0.6rem, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 0.35em;
}
h2 {
  font-size: clamp(1.85rem, 3.2vw + 0.7rem, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 0.3em;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.nav nav {
  display: none;
  gap: 26px;
  font-size: 0.95rem;
}
.nav nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav nav a:hover {
  color: var(--ink);
}
@media (min-width: 760px) {
  .nav nav {
    display: flex;
  }
}

main,
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  .btn:not(.sticky-cta):hover {
    transform: translateY(-1px);
  }
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 86%, var(--ink));
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-2);
}
/* Gold on navy: the logo's own pairing, for the calls to action on navy cards. */
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-gold:hover {
  background: var(--gold-2);
}
.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.92rem;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 28px 0 12px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Text ---------- */
.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 36em;
}
.fine {
  color: var(--ink-2);
  font-size: 0.86rem;
}
.section {
  padding-block: 72px;
}

/* ---------- Hero: the promise, then the promise working ---------- */
/* A soft warm light behind the demo card, painted on the page itself so it can't overflow. */
.home {
  background: radial-gradient(circle 380px at 70% 820px, var(--glow), transparent) no-repeat, var(--bg);
}
.hero {
  display: grid;
  gap: 36px;
  padding-block: 28px 56px;
}
.hero h1 {
  max-width: 12ch;
}
.hero .lead {
  margin: 0;
  max-width: 30em;
}
.hero-fine {
  margin: 0;
}
.session {
  min-width: 0;
  padding: 10px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.player {
  position: relative;
  margin: 0;
}
.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 21px;
  background: #d8d3ca;
}
.session .player figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(28 32 51 / 66%);
  color: #fffaf0;
  font-size: 0.82rem;
  font-weight: 600;
}
.play-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(28 32 51 / 55%);
  cursor: pointer;
}
.play-toggle::before {
  /* Two bars (pause) by default; a triangle when paused. */
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 14px;
  border-left: 4px solid #fffaf0;
  border-right: 4px solid #fffaf0;
}
.play-toggle.paused::before {
  width: 0;
  height: 0;
  margin: auto auto auto 17px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fffaf0;
}
.notice {
  padding: 18px 10px 8px;
}
.notice-q {
  margin: 0 0 10px;
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  font: 500 0.95rem var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chips button:hover {
  border-color: var(--ink-2);
}
.chips button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.next {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--next-bg);
}
/* While the demo cycles by itself, a thin line fills towards the next change. */
.next::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.next-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.next-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.next-text.changed {
  animation: settle 0.45s var(--ease);
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 64px;
    padding-block: 56px 88px;
  }
  .home {
    background: radial-gradient(circle 560px at calc(50% + 280px) 420px, var(--glow), transparent) no-repeat, var(--bg);
  }
}

/* ---------- How it works: a real sequence, so a timeline ---------- */
.timeline {
  display: grid;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
/* Phones: text first, then the picture, with the line running down the left from dot to dot.
   Wider screens: pictures in a row, then the dots joined by a line, then the text. */
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 34px;
}
.timeline img {
  order: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}
.step {
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg);
}
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: 26px;
  bottom: -28px;
  width: 1.5px;
  background: color-mix(in srgb, var(--gold) 50%, var(--line));
  transform-origin: top;
}
.when {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}
.step p:last-child {
  margin: 0;
  color: var(--ink-2);
  max-width: 30em;
}
@media (min-width: 820px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .timeline li {
    gap: 22px;
    padding-left: 0;
  }
  .timeline img {
    order: 0;
  }
  .step {
    padding-top: 34px;
  }
  .step::before {
    left: 0;
    top: 0;
  }
  .timeline li:not(:last-child)::after {
    content: none;
  }
  .timeline li:not(:last-child) .step::after {
    content: '';
    position: absolute;
    left: 26px;
    right: -32px;
    top: 6.5px;
    height: 1.5px;
    background: color-mix(in srgb, var(--gold) 50%, var(--line));
    transform-origin: left;
  }
}

/* ---------- The science: a full-width navy band ---------- */
.science {
  margin-inline: calc(50% - 50vw);
  padding: 80px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
  background: var(--navy);
  color: var(--on-navy);
}
.science-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.science h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.6vw + 0.8rem, 3.2rem);
}
.science .lead {
  color: var(--on-navy-2);
}
.split {
  max-width: 760px;
  margin: 36px 0 28px;
}
.split-bar {
  display: flex;
  gap: 4px;
  height: 22px;
}
.split-breed {
  width: 9%;
  border-radius: 999px 4px 4px 999px;
  border: 1.5px solid var(--on-navy-2);
}
.split-dog {
  flex: 1;
  border-radius: 4px 999px 999px 4px;
  background: var(--gold);
}
.split figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--on-navy-2);
  font-size: 0.95rem;
}
.split figcaption span:last-child {
  text-align: right;
}
.split strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--on-navy);
  margin-right: 4px;
}
.principles {
  display: grid;
  gap: 28px 56px;
  margin-top: 48px;
}
.principles h3 {
  color: var(--gold-2);
}
.principles p {
  margin: 0;
  color: var(--on-navy-2);
  max-width: 34em;
}
.cite {
  position: relative;
  top: -0.5em;
  margin-left: 2px;
  padding: 0 2px;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--gold-2);
  text-decoration: none;
}
.sources {
  margin: 48px 0 0;
  padding: 20px 0 0 1.3em;
  border-top: 1px solid var(--navy-line);
  color: var(--on-navy-2);
  font-size: 0.84rem;
  display: grid;
  gap: 6px;
}
.sources li:target {
  color: var(--on-navy);
}
@media (min-width: 820px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Watch Atlas teach ---------- */
.watch-head p {
  margin: 0;
  color: var(--ink-2);
}
.watch-body {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.stage {
  min-width: 0;
}
.stage video {
  transition: opacity 0.25s;
}
.stage video.swap {
  opacity: 0.35;
}
.stage figcaption {
  margin-top: 12px;
  color: var(--ink-2);
}
.demos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}
.demos button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.demos button:hover {
  background: var(--bg-2);
}
.demos button[aria-pressed='true'] {
  background: var(--surface);
  border-color: var(--line);
}
.demos img {
  flex: none;
  width: 56px;
  height: 35px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.demos button:hover img {
  transform: scale(1.06);
}
@media (min-width: 900px) {
  .watch-body {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 32px;
  }
  .demos {
    grid-template-columns: 1fr;
  }
  .demos img {
    width: 80px;
    height: 50px;
  }
}

/* ---------- Every day ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 280px);
  gap: 18px;
  margin: 32px calc(-1 * max(16px, env(safe-area-inset-right))) 0 calc(-1 * max(16px, env(safe-area-inset-left)));
  padding: 4px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots figure {
  margin: 0;
  scroll-snap-align: start;
}
.frame {
  padding: 6px;
  border-radius: 34px;
  background: var(--navy);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
@media (hover: hover) {
  .shots figure:hover .frame {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}
.shots figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
@media (min-width: 900px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  /* A gentle step between the phones. */
  .shots figure:nth-child(even) {
    margin-top: 48px;
  }
}
.features {
  display: grid;
  gap: 22px 36px;
  margin: 48px 0 0;
}
.features div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.features dt {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.features dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.family {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.family p {
  margin: 0;
  color: var(--ink-2);
  max-width: 40em;
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-2);
}
.billing-toggle button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(28 32 51 / 12%);
}
.save {
  margin-left: 6px;
  color: var(--accent);
  font-size: 0.8rem;
}
.plans {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan h3 {
  margin: 0;
}
.plan .fine {
  margin: 0 0 6px;
}
.plan ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 26px;
  padding: 0;
  list-style: none;
}
.plan li {
  position: relative;
  padding-left: 26px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn {
  margin-top: auto;
}
.plan.featured {
  background: var(--navy);
  border: 1.5px solid var(--plan-edge);
  color: var(--on-navy);
}
.plan.featured .fine,
.plan.featured .price span {
  color: var(--on-navy-2);
}
.plan.featured li::before {
  border-color: var(--gold);
}
.badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.price {
  margin: 6px 0 2px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
}
.price span {
  font: 500 1rem var(--sans);
  color: var(--ink-2);
}
.terms {
  margin-top: 20px;
  max-width: 820px;
}

/* ---------- Forms (shared) ---------- */
.panel {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin-top: 24px;
}
.home .panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.home .panel h3 {
  margin: 0;
}
.home .panel p {
  margin: 0;
}
.human:empty {
  display: none;
}

.panel form {
  display: grid;
  gap: 10px;
}
label {
  font-weight: 600;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choices legend {
  font-weight: 600;
  margin-bottom: 6px;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
}
.choices input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.choices label:has(input:checked) {
  border-color: var(--primary);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  flex: none;
}
.status {
  min-height: 1.5em;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--ink-2);
  max-width: 40em;
}

/* ---------- For pros ---------- */
.pros {
  display: grid;
  gap: 8px 56px;
  align-items: start;
}
.pros .panel {
  margin-top: 8px;
}
@media (min-width: 900px) {
  .pros {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pros .panel {
    justify-self: end;
    width: 100%;
  }
}

/* ---------- Final call: the logo peeks over the card's top edge ---------- */
.final {
  padding-top: 150px;
}
.final-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 24px 48px;
  border-radius: 30px;
  text-align: center;
  background: var(--navy);
  color: var(--on-navy);
}
.final-inner h2 {
  margin: 0;
}
/* A window on the card's top edge: the logo's ledge (86% down the image) sits on the edge, and
   the logo can rise into view from behind the card. 20px of headroom for its little bounce. */
.peek {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 170px;
  height: 138px;
  overflow: hidden;
  translate: -50% 0;
}
.peek img {
  display: block;
  width: 170px;
  height: auto;
  margin-top: 20px;
}
.final-inner p {
  max-width: 34em;
  margin: 0;
  color: var(--on-navy-2);
}
.final-inner .btn {
  margin-top: 14px;
}

/* A start button that follows the visitor down the page on phones. */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 9;
  width: min(420px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  /* A light ring keeps it visible over the navy science band. */
  box-shadow: 0 0 0 2px rgb(255 250 240 / 55%), 0 10px 30px rgb(28 32 51 / 25%);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.sticky-cta.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Footer and document pages ---------- */
.footer {
  padding-top: 32px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  color: var(--ink-2);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.doc {
  max-width: 760px;
  padding-block: 40px;
}
.doc .steps {
  display: grid;
  gap: 10px;
  padding-left: 1.3em;
}
.draft {
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
  font-weight: 600;
}
.join .panel {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
}
.join .code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.join .btn {
  min-height: 48px;
  justify-content: center;
}

/* ---------- Motion: only for visitors who haven't asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Page load: the hero arrives in one sequence, the chips last. */
  .hero-copy > * {
    animation: rise 0.8s var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.22s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.3s;
  }
  .session {
    animation: rise-card 1s var(--ease) 0.2s both;
  }
  .chips button {
    animation: pop 0.5s var(--spring) both;
  }
  .chips button:nth-child(1) {
    animation-delay: 0.75s;
  }
  .chips button:nth-child(2) {
    animation-delay: 0.83s;
  }
  .chips button:nth-child(3) {
    animation-delay: 0.91s;
  }
  .chips button:nth-child(4) {
    animation-delay: 0.99s;
  }
  .next.tick::after {
    animation: fill var(--cycle, 3.4s) linear both;
  }

  /* Scrolling: each part arrives as it comes into view (site.js adds .in); groups one by one. */
  .js .reveal,
  .js [data-stagger] > * {
    transition:
      opacity 0.7s var(--ease) var(--d, 0s),
      transform 0.7s var(--ease) var(--d, 0s),
      background-color 0.2s,
      border-color 0.2s;
  }
  .js .reveal:not(.in),
  .js [data-stagger]:not(.in) > * {
    opacity: 0;
    transform: translateY(24px);
  }

  /* The timeline draws itself: each dot pops in, then the line runs on to the next step. */
  .js .step::before {
    transition: transform 0.5s var(--spring) calc(var(--d, 0s) + 0.25s);
  }
  .js .timeline:not(.in) .step::before {
    transform: scale(0);
  }
  .js .timeline li::after,
  .js .timeline .step::after {
    transition: transform 0.9s var(--ease) calc(var(--d, 0s) + 0.45s);
  }
  .js .timeline:not(.in) li::after {
    transform: scaleY(0);
  }
  .js .timeline:not(.in) .step::after {
    transform: scaleX(0);
  }

  /* The science bar fills to 91% while the numbers count up. */
  .split-dog {
    transform-origin: left;
    transition: transform 1.4s var(--ease) 0.3s;
  }
  .js .split:not(.in) .split-dog {
    transform: scaleX(0);
  }

  /* The Pomeranian climbs up from behind the final card and peeks over its edge. */
  .peek img {
    transition: transform 1s var(--spring) 0.35s;
  }
  .js .final-inner:not(.in) .peek img {
    transform: translateY(105%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes rise-card {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
