:root {
  --bg: #0e0e0e;
  --bg-elevated: #161616;
  --ink: #f3efe6;
  --muted: #9a958a;
  --surface: #1a1a1a;
  --surface-2: #121212;
  --accent: #e8a33d;
  --coral: #fb735b;
  --wa: #25d366;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.18);
  --band: #141414;
  --btn-solid: #f3efe6;
  --btn-solid-ink: #0e0e0e;
  --font-display: "Gilda Display", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-control: 12px; /* product surfaces — not pill */
  --radius-pill: 999px; /* marketing CTAs only */
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion: 240ms;
  --max: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

em {
  font-style: normal;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons — Claude-scale: nav ~40px, hero ~48px, same height within a pair */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  min-height: 40px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion) var(--ease-out), color var(--motion) var(--ease-out),
    border-color var(--motion) var(--ease-out);
}

.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 55%, transparent);
  outline-offset: 2px;
}

.btn--solid {
  background: var(--btn-solid);
  color: var(--btn-solid-ink);
}

.btn--solid:hover {
  background: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--ink) 45%, transparent);
  background: rgba(243, 239, 230, 0.04);
}

.btn--text {
  background: transparent;
  color: var(--muted);
  border: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 0.5rem;
  font-weight: 500;
}

.btn--text:hover {
  color: var(--ink);
}

/* Hero / band CTAs — one step larger, still matched as a pair */
.btn--lg {
  height: 48px;
  min-height: 48px;
  padding: 0 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__actions .btn {
  height: 40px;
  min-height: 40px;
  padding: 0 1.05rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.price-col__cta {
  width: 100%;
  height: 44px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav__toggle {
  display: none;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav__links {
  display: flex;
  gap: 1.25rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__menu {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100dvh - 4.5rem);
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1rem, 4vw, 1.5rem) clamp(3.5rem, 8vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero__sub {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 36ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-demo__caption {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}

.phone__live {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--wa) 80%, var(--ink));
}

.phone__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 22%, transparent);
}

.phone__thread {
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--surface-2);
  min-height: 440px;
  max-height: 440px;
  overflow: hidden;
}

.bubble {
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}

.bubble.is-in {
  opacity: 1;
  transform: none;
}

.bubble--you {
  align-self: flex-end;
  background: #2a2a2a;
  color: var(--ink);
  border-bottom-right-radius: 6px;
}

.bubble--reca {
  align-self: flex-start;
  background: #1f1f1f;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.bubble--quiz {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.bubble--recall {
  border-color: color-mix(in srgb, var(--wa) 40%, var(--line));
}

.bubble--ok {
  border-color: color-mix(in srgb, var(--wa) 35%, var(--line));
}

.pill {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa) 18%, transparent);
  color: #b7f0c8;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-demo__skip {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.35rem 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}

.hero-demo__skip.is-in {
  opacity: 1;
  transform: none;
}

.hero-demo__skip[hidden] {
  display: none !important;
}

.hero-demo__skip span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #181818;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-demo__rail {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-demo__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: width 200ms var(--ease-out), background 200ms var(--ease-out);
}

.hero-demo__dot.is-active {
  width: 18px;
  background: var(--ink);
}

.hero-demo.is-static .bubble,
.hero-demo.is-static .hero-demo__skip {
  opacity: 1;
  transform: none;
}

.hero-demo.is-static .hero-demo__skip[hidden] {
  display: flex !important;
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .hero-demo__skip {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero__visual {
    justify-self: stretch;
    max-width: none;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 1.5rem);
}

.section--band {
  max-width: none;
  background: var(--band);
  border-block: 1px solid var(--line);
}

.section--band .section__intro,
.section--band .steps,
.section--band .faq {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__intro--center {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.section__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.loop__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.4rem;
}

.loop__card--accent {
  border-color: color-mix(in srgb, var(--wa) 35%, var(--line));
  background: color-mix(in srgb, var(--wa) 8%, var(--surface));
}

.loop__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--btn-solid);
  color: var(--btn-solid-ink);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.loop__card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.loop__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .loop {
    grid-template-columns: 1fr;
  }
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.35rem 4.25rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--coral);
  color: #0e0e0e;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Pricing */
.section--pricing {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.pricing-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #1c1c1c;
  border: 1px solid var(--line);
  gap: 0.2rem;
}

.pricing-toggle__btn {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.pricing-toggle__btn.is-active {
  background: var(--btn-solid);
  color: var(--btn-solid-ink);
}

.pricing-toggle__btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 55%, transparent);
  outline-offset: 2px;
}

.pricing-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.pricing-board--schools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Critical: display:grid must not override [hidden] */
.pricing-board[hidden] {
  display: none !important;
}

.price-col {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.65rem 2.15rem;
  border-right: 1px solid var(--line);
  min-width: 0;
  min-height: 100%;
  position: relative;
}

.price-col:last-child {
  border-right: 0;
}

.price-col--featured {
  background: #1f1f1f;
}

.price-col__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 22%, transparent);
  color: #ffd2c8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-col__top {
  min-height: 10.25rem;
}

.price-col__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price-col__tag {
  margin: 0.45rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
}

.price-col__amount {
  margin: 0;
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.price-col__currency {
  font-weight: 700;
}

.price-col__period {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  font-style: normal;
}

.price-col__actions {
  margin: 1.35rem 0 1.35rem;
}

.price-col__trust {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  min-height: 1.2em;
  font-style: normal;
}

.price-col__body {
  margin-top: auto;
  padding-top: 0.25rem;
}

.price-col__plus-label {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.price-col__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.price-col__features li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.price-col__features li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.pricing-footnote {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing-board,
  .pricing-board--schools {
    grid-template-columns: 1fr;
  }

  .price-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-col:last-child {
    border-bottom: 0;
  }

  .price-col__top {
    min-height: 0;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.3;
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 55%, transparent);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq__item p {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 1.5rem);
  background: #181818;
  border-block: 1px solid var(--line);
  color: var(--ink);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1rem, 4vw, 1.5rem) 2rem;
}

.footer__grid {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.footer__brand p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 22ch;
  font-size: 0.95rem;
}

.footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--coral);
}

.footer__soon {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__base a {
  color: var(--muted);
  text-decoration: none;
}

.footer__base a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav__actions .btn--ghost {
    display: none;
  }
}
