/* Lock-in landing. Tokens follow docs/DESIGN.md.
   The moving stage is the one loud element. The rest of the page stays still. */

@font-face {
  font-family: "Instrument Sans Variable";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk: #14171c;
  --basalt: rgba(28, 31, 36, 0.92);
  --chalk: #edeff2;
  --slate: #8b93a1;
  --hair: rgba(139, 147, 161, 0.22);
  --lake: #86b3c7;
  --amber: #e2a868;
  --rose: #d27a7f;
  --tint: rgba(237, 239, 242, 0.06);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
  --sans: "Instrument Sans Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(134, 179, 199, 0.08), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(226, 168, 104, 0.05), transparent 55%);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--chalk);
  color: var(--desk);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
header.bar, footer.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { display: block; }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--slate); text-decoration: none; font-size: 15px; }
nav a[aria-current="page"], nav a:hover { color: var(--chalk); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--lake);
  color: #1c1f24;
  font-weight: 620;
  border-radius: 999px;
  padding: 12px 18px;
  border: 0;
  font: inherit;
  font-weight: 620;
}
.btn:hover { background: #9ac2d3; }
.btn.quiet { background: transparent; color: var(--chalk); border: 1px solid var(--hair); }

.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 18px 0 28px; }
h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 560;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.lead { margin: 0 0 22px; max-width: 38ch; color: var(--slate); font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { color: var(--slate); font-size: 14px; margin: 12px 0 0; }

.stage {
  position: relative;
  height: 460px;
}
.frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage[data-frame="task"] .frame.task,
.stage[data-frame="drift"] .frame.drift,
.stage[data-frame="block"] .frame.block,
.stage[data-frame="chart"] .frame.chart { opacity: 1; transform: none; }
.caption { margin: 8px 0 0; min-height: 1.4em; color: var(--slate); font-size: 14px; }

.panel {
  background: var(--basalt);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.app {
  width: min(420px, 100%);
  margin-left: auto;
  padding: 18px 20px 14px;
}
.prompt { color: var(--slate); font-size: 14px; margin: 0 0 8px; }
.task {
  font-size: 28px;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--slate);
  font-size: 12px;
  padding: 6px 12px;
}
.chip.on { color: var(--chalk); background: rgba(134, 179, 199, 0.14); border-color: rgba(134, 179, 199, 0.55); }
.primary {
  display: inline-block;
  background: var(--lake);
  color: #1c1f24;
  border-radius: 12px;
  font-weight: 620;
  font-size: 14px;
  padding: 8px 14px;
}
.footline { display: flex; justify-content: space-between; color: var(--slate); font-size: 12px; border-top: 1px solid var(--hair); margin-top: 14px; padding-top: 10px; }

.session { display: flex; gap: 12px; align-items: baseline; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lake); display: inline-block; transform: translateY(-2px); }
.dot.amber { background: var(--amber); }
.dot.rose { background: var(--rose); }
.meta { display: flex; gap: 12px; color: var(--slate); font-size: 12px; margin-top: 10px; padding-left: 20px; }
.meta .on { color: var(--lake); font-weight: 600; }
.meta .drift { color: var(--amber); font-weight: 600; }

.banner {
  margin: 0 auto 18px;
  width: min(520px, 100%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-color: rgba(226, 168, 104, 0.45);
  font-size: 14px;
}
.banner .grow { flex: 1; }
.pill { border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 620; }
.pill.amber { background: var(--amber); color: #1c1f24; }
.pill.ghost { color: var(--slate); }

.block {
  height: 100%;
  border-radius: 20px;
  background: rgba(20, 22, 26, 0.94);
  padding: 72px 36px;
}
.block h2 { margin: 0 0 8px; font-size: 28px; font-weight: 560; letter-spacing: -0.02em; }
.block p { margin: 0 0 8px; color: var(--slate); max-width: 36ch; }
.kicker { color: var(--rose); font-weight: 600; }

.chartbox { padding: 20px 20px 16px; width: min(460px, 100%); margin-left: auto; }
.chartbox h2 { margin: 0 0 12px; font-size: 22px; font-weight: 540; letter-spacing: -0.02em; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; }
.bars span { display: block; border-radius: 6px 6px 3px 3px; background: rgba(237, 239, 242, 0.12); }
.bars span.met { background: rgba(134, 179, 199, 0.75); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; color: var(--slate); font-size: 12px; text-align: center; }
.goal { height: 6px; border-radius: 999px; background: rgba(237, 239, 242, 0.1); margin: 8px 0 16px; }
.goal i { display: block; height: 100%; width: 72%; background: var(--lake); border-radius: inherit; }

section.band { padding: 28px 0 8px; }
h2.section { font-size: 28px; font-weight: 540; letter-spacing: -0.03em; margin: 0 0 8px; }
.equal { max-width: 62ch; color: var(--slate); margin: 0; }

.prices { margin: 28px 0 64px; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.price { display: grid; grid-template-columns: 1.2fr 1.3fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.price strong { font-size: 22px; font-weight: 560; letter-spacing: -0.02em; }
.price span { color: var(--slate); }
.save { color: var(--lake); font-weight: 600; }
.price .btn { white-space: nowrap; }
.edu { margin: 4px 0 36px; display: grid; gap: 8px; max-width: 440px; }
.edu label { font-size: 14px; color: var(--slate); }
.edu input {
  font: inherit;
  color: var(--chalk);
  background: var(--tint);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}
.edu input::placeholder { color: var(--slate); }
#edu-note:empty { display: none; }

.prose { max-width: 68ch; padding-bottom: 72px; }
.prose h1 { font-size: 44px; margin-bottom: 8px; }
.prose h2 { font-size: 22px; font-weight: 560; letter-spacing: -0.02em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.1em; }
.prose a { color: var(--chalk); }

footer.bar { border-top: 1px solid var(--hair); color: var(--slate); font-size: 14px; margin-top: 12px; }
footer.bar a { color: var(--slate); text-decoration: none; }
footer.bar a:hover { color: var(--chalk); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .app, .chartbox { margin-left: 0; }
  .stage { height: 420px; }
  .price { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .price .btn { justify-self: start; }
  header.bar { flex-wrap: wrap; }
  header.bar nav { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .wrap { width: min(1080px, calc(100% - 28px)); }
  h1 { font-size: 36px; }
  .stage { height: 360px; }
  .block { padding: 32px 20px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame { transition: none; }
  html { scroll-behavior: auto; }
}
