/* DoScroll home page. Other pages use style.css.
   Look: All True's brand Direction 2, "Library of Action": warm paper, deep green, a bookish serif,
   and the hardcover colors of a shelf of books. Colors are the deck's own swatches.
   Sections follow the Landing Page Copy Outline: hero, how it works, categories, call to action, FAQ. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f1ede4;
  --paper-raised: #f8f6f1;
  --paper-deep: #e3ded4;
  --ink: #1f1a16;
  --dim: #49556b;
  --line: #c8c1b5;
  --green: #305831;
  --green-dark: #26472a;
  --navy: #36445a;
  --rust: #b85d36;
  --brown: #713319;
  --sage: #bdc4a6;
  --blue: #a5b4d0;
  --clay: #d3ab97;
  --white: #f8f6f1;
  --focus: #36445a;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.center { text-align: center; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 16px; z-index: 20;
  background: var(--green); color: var(--white); padding: 12px 20px; border-radius: 8px;
}
.skip:focus { left: 24px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Top bar */
.topbar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand .wordmark-img { height: 30px; width: auto; max-width: none; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 0; color: var(--dim); }
.topnav a:hover { color: var(--ink); text-decoration: underline; }
.topnav .nav-cta { color: var(--white); background: var(--green); padding: 10px 18px; border-radius: 8px; }
.topnav .nav-cta:hover { color: var(--white); background: var(--green-dark); text-decoration: none; }

/* Buttons and inputs */
.pill-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--green);
  color: var(--white);
  font: 600 17px/1 var(--sans);
  padding: 0 32px;
  height: 58px;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.pill-btn:hover { background: var(--green-dark); }
.pill-btn:active { transform: scale(.98); }
.pill-btn:disabled { opacity: .6; cursor: default; }
.link-btn { display: inline-flex; align-items: center; text-decoration: none; }

.pill-input {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  font: 400 17px/1 var(--sans);
}
.pill-input::placeholder { color: #7a8292; }
.pill-input:focus { outline: none; border-color: var(--green); }

.field-row { display: flex; gap: 12px; max-width: 520px; }
.status { margin: 16px 0 0; font-size: 16px; }
.status:empty { display: none; }
.status.err { color: var(--brown); }

/* Hero */
.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 88px 40px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 72px;
}

h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 6.6vw, 104px);
  line-height: .98;
  letter-spacing: -0.025em;
}
h1 em, h2 em { font-style: italic; }

.hero-sub {
  margin: 0 0 40px;
  max-width: 540px;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--dim);
}
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--dim); }

/* Hero picture: one guide, drawn rather than screenshotted, so no creator's video is shown. */
.hero-art { display: flex; justify-content: center; }
.guide {
  width: 100%;
  max-width: 400px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(31, 26, 22, .04), 0 40px 70px -40px rgba(31, 26, 22, .45);
  transform: rotate(1.5deg);
}
.guide-clip {
  height: 210px;
  background: linear-gradient(135deg, var(--green) 0%, #4a7a4b 55%, var(--sage) 100%);
  position: relative;
}
.loop-tag {
  position: absolute; left: 16px; bottom: 16px;
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: rgba(248, 246, 241, .92); padding: 8px 12px; border-radius: 999px;
}
.guide-body { padding: 24px 26px 28px; }
.guide-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.guide-title { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.guide-meta { margin: 6px 0 18px; font-size: 14px; color: var(--dim); }
.guide-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.guide-steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; }
.thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; display: inline-block; }
.t1 { background: var(--navy); }
.t2 { background: var(--clay); }
.t3 { background: var(--rust); }
.t4 { background: var(--blue); }
.t5 { background: var(--sage); }
.fake-btn {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 10px; background: var(--green); color: var(--white);
  font: 600 16px/1 var(--sans);
}
.fake-btn.sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; flex: none; }

/* Section shared */
.section-title {
  margin: 0 0 48px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* How it works */
.band { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 112px 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 56px; }
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
}
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.feature h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
.feature > p:not(.eyebrow) { margin: 0 0 28px; color: var(--dim); }

/* The small drawn screens inside each feature card */
.mock {
  margin-top: auto;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 12px;
}
.mock-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mock-gap { margin-top: 6px; }
.mock-row { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; }
.mock-row b, .routine b { display: block; font-size: 13px; color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.chips .on { background: var(--green); border-color: var(--green); color: var(--white); }
.share-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; font-size: 13px; color: var(--dim); }
.share-icons span { display: grid; justify-items: center; gap: 8px; }
.share-icons .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--paper-deep); display: grid; place-items: center; font: normal 600 24px/1 var(--serif); }
.share-icons .on { color: var(--ink); font-weight: 600; }
.share-icons .on .ic { background: var(--green); color: var(--white); box-shadow: 0 0 0 3px var(--paper-raised), 0 0 0 5px var(--green); }
.routine { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.routine > span:nth-child(2) { flex: 1; }
.stack { display: flex; flex: none; }
.stack .thumb { width: 36px; height: 36px; border: 2px solid var(--paper-raised); }
.stack .thumb + .thumb { margin-left: -12px; }
.bar { height: 6px; border-radius: 3px; background: var(--paper-deep); overflow: hidden; }
.bar span { display: block; width: 33%; height: 100%; background: var(--green); }
.player { position: relative; height: 120px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }

/* Categories: a tile per launch category, in the hardcover colors */
.cats-section { padding: 112px 0; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cats li {
  min-height: 180px;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  color: var(--white);
}
.cats b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.cats span { font-size: 16px; opacity: .92; }
.cats .c1 { background: var(--green); }
.cats .c2 { background: var(--navy); }
.cats .c3 { background: var(--rust); }
.cats .c4 { background: var(--clay); color: var(--ink); }
.cats .c5 { background: var(--brown); }
.cats .c6 { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--line); }

/* Final call to action */
.cta { background: var(--green); color: var(--white); padding: 104px 0; }
.cta-inner { display: grid; justify-items: center; text-align: center; }
.cta h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.cta-inner > p { margin: 0 0 36px; font-size: 19px; opacity: .9; }
.cta .join { width: 100%; max-width: 520px; }
.cta .field-row { margin: 0 auto; }
.cta .pill-input { border-color: transparent; }
.pill-btn.light { background: var(--white); color: var(--green); }
.pill-btn.light:hover { background: #ffffff; }
.cta .status.err { color: #f3d3c4; }
.cta .joined { margin: 0 auto; text-align: left; }
.cta .joined-kicker { color: var(--sage); }
.cta .joined-place, .cta .joined-place strong { color: var(--white); }
.cta .joined-sub { color: rgba(248, 246, 241, .85); }
.cta .joined .pill-btn { background: var(--white); color: var(--green); }

/* FAQ */
.faq-section { padding: 112px 0; }
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 var(--sans); color: var(--green);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; max-width: 680px; color: var(--dim); }
.faq-more { margin: 32px 0 0; color: var(--dim); }

/* Footer */
.foot { background: var(--paper-deep); border-top: 1px solid var(--line); padding: 40px; font-size: 15px; }
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: var(--dim);
}
.foot-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 24px; width: auto; max-width: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.foot-links a { color: var(--dim); }

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 56px 24px 88px; }
  .topbar { padding: 24px; }
  .wrap { padding: 0 24px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band, .cats-section, .faq-section { padding: 88px 0; }
  .cta { padding: 80px 0; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { padding: 20px 16px; }
  .brand .wordmark-img { height: 24px; }
  .topnav { gap: 18px; }
  .topnav .nav-cta { padding: 9px 14px; }
  .hero { padding: 40px 16px 72px; gap: 48px; }
  .wrap { padding: 0 16px; }
  .hero-sub { margin-bottom: 32px; }
  .field-row { flex-direction: column; }
  .field-row .pill-btn, .field-row .pill-input { width: 100%; flex: none; }
  .guide-clip { height: 170px; }
  .feature { padding: 28px 22px 22px; }
  .feature h3 { font-size: 26px; }
  .cats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cats li { min-height: 132px; padding: 24px; }
  .section-title { margin-bottom: 32px; }
  .band, .cats-section, .faq-section { padding: 72px 0; }
  .faq summary { font-size: 21px; }
  .foot { padding: 32px 16px 40px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* After joining: the place in line, and the invite link. */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.joined { display: grid; gap: 10px; max-width: 520px; }
.joined-kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.joined-place { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.joined-place strong { font-weight: 500; color: var(--green); }
.joined-sub { margin: 4px 0 8px; font-size: 17px; line-height: 1.5; color: var(--dim); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row .share-link { flex: 1 1 240px; min-width: 0; font-size: 15px; }

.hero-kicker { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.2; color: var(--green); }

/* The problem, between the hero and How it works */
.problem { padding: 0 24px 104px; }
.problem p { max-width: 780px; margin: 0 auto; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.01em; text-align: center; }
@media (max-width: 600px) { .problem { padding: 0 16px 72px; } }
