/* Marketing page. Colors follow the app (apps/web/src/styles.css). */
:root {
  --bg: #f4f1ea;
  --surface: #fffdf9;
  --text: #1c1a1f;
  --muted: #4a4550;
  --accent: #6c3fc1;
  --accent-text: #fdfaf5;
  --teal: #0e7a73;
  --amber: #9a5b00;
  --sky: #1f68ad;
  --border: #d6cfc2;
  --focus: #1f5fbf;
  --shadow: 0 1px 2px rgba(40, 30, 20, 0.06), 0 4px 14px rgba(40, 30, 20, 0.07);
  --shadow-lift: 0 2px 4px rgba(40, 30, 20, 0.06), 0 18px 44px rgba(60, 35, 110, 0.16);
  --accent-strong: #5a31a8;
  --accent-soft: #ece5f9;
  --teal-soft: #dcefec;
  --amber-soft: #f6e8cf;
  --sky-soft: #dde9f5;
  --track: #e4ddd0;
  --band: #33205f;
  --band-text: #fbf7ff;
  --band-muted: #ddd2f3;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1d20;
    --surface: #2a292d;
    --text: #f0eee9;
    --muted: #c3bec8;
    --accent: #b99af5;
    --accent-text: #1b1530;
    --teal: #5ccfc2;
    --amber: #efc26a;
    --sky: #8dc3f3;
    --border: #45434a;
    --focus: #8dc3f3;
    --shadow: none;
    --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.45);
    --accent-strong: #cdb7fa;
    --accent-soft: #352b50;
    --teal-soft: #1f3a38;
    --amber-soft: #40341c;
    --sky-soft: #223649;
    --track: #45434a;
    --band: #33284f;
    --band-text: #fbf7ff;
    --band-muted: #d9cff0;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a {
  color: var(--accent);
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.bar,
main,
.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  background: var(--accent-strong);
}
.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 8px 18px;
}
.button.ghost:hover {
  background: var(--accent-soft);
}
.hero {
  padding: 48px 0 40px;
  max-width: 760px;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 21px;
  color: var(--muted);
  margin: 0 0 28px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  padding-bottom: 36px;
}
.card,
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h2,
.note h2 {
  font-size: 20px;
  margin: 10px 0 8px;
}
.card p,
.note p {
  margin: 0;
  color: var(--muted);
}
.dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.dot.purple {
  background: var(--accent);
}
.dot.teal {
  background: var(--teal);
}
.dot.sky {
  background: var(--sky);
}
.dot.amber {
  background: var(--amber);
}
.note {
  margin-bottom: 40px;
}
.foot {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted);
}
.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
/* Privacy policy and terms. */
.legal {
  max-width: 760px;
  padding-bottom: 32px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 24px 0 4px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 6px 0;
}
.draft {
  background: var(--surface);
  border: 2px dashed var(--amber);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text);
}

/* Home page. Everything below is scoped so the legal pages keep their plain layout. */
.home {
  background-image: radial-gradient(900px 520px at 88% -120px, var(--accent-soft), transparent 70%),
    radial-gradient(700px 420px at -10% 380px, var(--teal-soft), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.button.small {
  padding: 10px 18px;
}
.wide-only {
  display: none;
}
.button.big {
  padding: 15px 28px;
  font-size: 19px;
}
.button.ghost.big {
  padding: 13px 26px;
}
.home h1,
.home h2 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Serif', serif;
  font-weight: 700;
  text-wrap: balance;
}
.home h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.home h1 em {
  color: var(--accent);
}
.home .hero {
  display: grid;
  gap: 36px;
  align-items: center;
  max-width: none;
  padding: 36px 0 24px;
}
.hero-copy {
  min-width: 0;
}
.home .lead {
  max-width: 34em;
}
.lead.small {
  font-size: 19px;
  margin-bottom: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fine {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.home .actions {
  gap: 14px;
}
.home figure {
  margin: 0;
  min-width: 0;
}
.home figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.new {
  background: var(--accent);
  color: var(--accent-text);
}
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  padding: 22px;
}
.mock-head,
.paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mock-title {
  font-weight: 700;
  font-size: 19px;
}
.levels {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.levels li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.35;
}
.level-state {
  font-size: 13px;
  font-weight: 700;
}
.level-state.solid {
  color: var(--teal);
}
.level-state.building {
  color: var(--amber);
}
.level-state.start {
  color: var(--accent);
}
.meter {
  display: flex;
  flex-basis: 100%;
  gap: 5px;
}
.meter i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--track);
}
.m5 i,
.m4 i:nth-child(-n + 4) {
  background: var(--teal);
}
.m3 i:nth-child(-n + 3),
.m2 i:nth-child(-n + 2) {
  background: var(--amber);
}
.m1 i:first-child {
  background: var(--accent);
}
.next {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.next p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.next-label {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.next-label.lesson {
  background: var(--accent-soft);
}
.next-label.warm {
  background: var(--sky-soft);
}
.band {
  padding: 56px 0 8px;
}
.band h2,
.cta h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 20em;
}
.home h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 14px 0 8px;
}
.steps {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.step p,
.home .card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.step-num,
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
}
.step-num {
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
}
.step-num.purple,
.icon.purple {
  background: var(--accent-soft);
  color: var(--accent);
}
.step-num.teal,
.icon.teal {
  background: var(--teal-soft);
  color: var(--teal);
}
.step-num.sky,
.icon.sky {
  background: var(--sky-soft);
  color: var(--sky);
}
.icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.timeline {
  list-style: none;
  margin: 16px 0 0 6px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--sky);
}
.timeline li {
  position: relative;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 600;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--sky);
  box-sizing: border-box;
}
.home .grid {
  grid-template-columns: 1fr;
  padding-bottom: 0;
}
.home .card {
  padding: 24px;
}
.split {
  display: grid;
  gap: 36px;
  align-items: center;
}
.split-copy {
  min-width: 0;
}
.split h2 {
  margin-bottom: 16px;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 34px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-soft);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: content-box;
}
.paper {
  border-radius: 10px;
  padding: 26px 20px 22px;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Serif', serif;
  font-size: 15px;
  line-height: 1.4;
}
.paper-head {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.paper-school {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.paper-kind {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paper .tag {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.paper-student {
  margin: 12px 0 4px;
}
.paper table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}
.paper th,
.paper td {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.paper th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.paper th:first-child {
  color: var(--text);
  font-size: 14px;
}
.paper th:nth-child(n + 2),
.paper td:nth-child(n + 2) {
  width: 4.5em;
  text-align: right;
}
.transfer {
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--amber);
  border-radius: 6px;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.paper-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin-top: 16px;
}
.paper-totals strong {
  font-size: 22px;
  color: var(--accent);
}
.by-subject {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
}
.paper-sign {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}
.sign-line {
  display: block;
  width: 60%;
  margin-bottom: 4px;
  border-top: 1px solid var(--text);
}
.home .note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 56px 0 0;
  padding: 24px;
}
.home .note h2 {
  font-family: inherit;
  margin-top: 0;
}
.cta {
  margin: 56px 0 48px;
  padding: 48px 24px;
  border-radius: 28px;
  background: var(--band);
  color: var(--band-text);
  text-align: center;
}
.cta h2 {
  margin: 0 auto 12px;
}
.cta p {
  margin: 0 auto 26px;
  max-width: 32em;
  color: var(--band-muted);
}
.cta .actions {
  justify-content: center;
  gap: 14px 24px;
}
.button.invert,
.button.invert:hover {
  background: var(--band-text);
  color: var(--band);
}
.button.invert:hover {
  box-shadow: 0 0 0 4px rgba(251, 247, 255, 0.28);
}
.cta-link {
  color: var(--band-text);
  font-weight: 700;
}
.cta a:focus-visible {
  outline-color: var(--band-text);
}
.cta .cta-mail {
  margin: 22px auto 0;
  font-size: 15px;
}
.home .foot {
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
@media (min-width: 620px) {
  .wide-only {
    display: inline-block;
  }
  .home .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mock {
    padding: 28px;
  }
  .paper {
    padding: 34px 34px 28px;
  }
  .cta {
    padding: 64px 40px;
  }
}
@media (min-width: 900px) {
  .home .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    padding: 56px 0 40px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
  .band {
    padding-top: 80px;
  }
  .paper {
    transform: rotate(1.2deg);
  }
  .home .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
  }
}
