:root {
  --night: #101C3A;
  --night-2: #1B2B56;
  --fog: #F5F7FA;
  --white: #FFFFFF;
  --marker: #FFD166;
  --flag: #D64545;
  --slate: #5B6478;
  --rule: #D9DEE7;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--night);
  background: var(--fog);
  font-optical-sizing: auto;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--night); color: var(--white); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 32px; }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.25; }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--slate); max-width: 34em; margin-top: 22px; }
.section-lede { color: var(--slate); max-width: 44em; margin: -16px 0 28px; }

/* Header */
.site-header { padding: 22px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a { text-decoration: none; font-weight: 500; color: var(--night); }
.site-header nav a.button { color: var(--white); font-weight: 600; }
.site-header nav a:hover:not(.button) { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons and forms */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--night); color: var(--white); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--night-2); }
.button:disabled { opacity: .6; cursor: default; }
.button.small { height: 38px; padding: 0 16px; font-size: .95rem; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 240px; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white);
}
.waitlist input[type="email"]::placeholder { color: #98A0B0; }
.waitlist .form-note { flex-basis: 100%; font-size: .92rem; color: var(--slate); margin-top: 2px; }
.waitlist .form-note.is-error { color: var(--flag); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; padding-top: 56px; }
.hero-copy { padding-top: 26px; }

/* Demo: phone + annotated timeline */
.demo { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 20px; align-items: start; }
.phone { aspect-ratio: 9 / 16; background: var(--night); border-radius: 28px; padding: 9px; }
.screen { position: relative; height: 100%; background: var(--white); border-radius: 21px; overflow: hidden; display: flex; flex-direction: column; }
.scene { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--fog); }
.scene-word { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--night); }
.caption { background: var(--night); color: var(--white); font-size: .82rem; line-height: 1.3; font-weight: 600; padding: 10px 12px 12px; min-height: 52px; }
.progress { height: 4px; background: var(--night); }
.progress span { display: block; height: 100%; width: 0; background: var(--marker); transition: width .6s ease; }

.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.timeline li {
  display: grid; grid-template-columns: 38px 72px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 7px 10px; border-bottom: 1px solid var(--rule); border-radius: 6px; font-size: .9rem; line-height: 1.35;
  transition: background .25s ease;
}
.timeline li.active { background: var(--marker); border-color: transparent; }
.timeline li:focus-visible { outline-offset: -3px; }
.timeline .tc { font-variant-numeric: tabular-nums; font-weight: 600; }
.timeline .lbl { font-weight: 650; }
.timeline .txt { color: var(--slate); }
.timeline li.active .txt { color: var(--night); }
.flag { display: inline-block; color: var(--flag); border: 1.5px solid var(--flag); border-radius: 999px; padding: 0 7px; font-size: .78rem; font-weight: 650; line-height: 1.5; margin-right: 4px; vertical-align: 1px; }
.demo figcaption { grid-column: 1 / -1; font-size: .9rem; color: var(--slate); margin-top: 4px; }

/* Steps: a real sequence, so a numbered rule */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 2px solid var(--night); }
.steps li { padding-top: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--marker); color: var(--night);
  font-weight: 700; font-variant-numeric: tabular-nums; margin-top: -16px; margin-bottom: 18px;
}
.steps p { color: var(--slate); margin-top: 8px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.features dt { font-size: 1.2rem; font-weight: 650; line-height: 1.25; }
.features dd { color: var(--slate); margin-top: 8px; }

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; color: var(--slate); }
.who-grid strong { color: var(--night); font-weight: 650; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); padding-top: 24px; }
.plan { padding: 24px; border-radius: 12px; }
.plan.featured { background: var(--night); color: var(--white); }
.plan h3 { font-size: 1.05rem; font-weight: 600; }
.price { margin-top: 10px; color: var(--slate); }
.plan.featured .price { color: #C9D0E0; }
.price span { display: inline-block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--night); margin-right: 6px; vertical-align: -2px; }
.plan.featured .price span { color: var(--white); }
.plan ul { list-style: none; padding: 0; margin-top: 18px; }
.plan li { padding: 6px 0; border-top: 1px solid var(--rule); }
.plan.featured li { border-color: rgba(255,255,255,.18); }
.plans-note { color: var(--slate); margin-top: 18px; font-size: .95rem; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--slate); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding: 0 0 18px; max-width: 62ch; }

/* Join */
.join { padding-bottom: 32px; }
.join h2 { margin-bottom: 4px; }
.join .waitlist { margin-top: 20px; }

/* Footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--rule); padding: 26px 0 40px; font-size: .92rem; color: var(--slate); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-row a { color: var(--night); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Prose pages */
.prose { max-width: 68ch; padding-top: 24px; padding-bottom: 40px; }
.prose h1 { font-size: 2.4rem; margin-bottom: 8px; }
.prose p { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .progress span, .timeline li, .faq summary::after { transition: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-top: 8px; }
}
@media (max-width: 720px) {
  .section { padding-top: 72px; }
  .hero { padding-top: 28px; }
  .steps, .features, .who-grid, .plans { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .site-header nav a:not(.button) { display: none; }
}
@media (max-width: 560px) {
  .demo { grid-template-columns: 1fr; }
  .phone { width: 168px; }
  .timeline li { grid-template-columns: 40px 76px minmax(0, 1fr); }
}
