/* ==========================================================================
   Uncle Kwaku landing page (signed-out visitors at /)
   Builds on the tokens and buttons in uncle-kwaku.css. Light theme only, to
   match the app. Radius system: pill controls, 24px feature surfaces.
   ========================================================================== */

/* Landing design system: every section draws from these */
body.landing {
  --lp-navy: #1c2340;
  --lp-yellow: var(--upgrade-yellow, #ffcd1f);

  --lp-radius-lg: 24px;   /* sections, cards, images */
  --lp-radius-md: 16px;   /* items nested inside cards */
  --lp-radius-sm: 12px;   /* icon tiles, small chips */

  --lp-shadow-card: 0 10px 30px rgba(28, 35, 64, 0.08);
  --lp-shadow-float: 0 28px 72px rgba(28, 35, 64, 0.22);
  --lp-shadow-accent: 0 24px 60px rgba(66, 85, 255, 0.28);

  --lp-glow-light:
    radial-gradient(50% 60% at 95% 5%, rgba(66, 85, 255, 0.18) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(255, 205, 31, 0.16) 0%, rgba(255, 205, 31, 0) 70%);
  --lp-glow-dark:
    radial-gradient(55% 70% at 100% 0%, rgba(66, 85, 255, 0.45) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(255, 205, 31, 0.12) 0%, rgba(255, 205, 31, 0) 70%);
  --lp-glow-accent:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);

  --lp-section-space: 96px;

  /* Display face for headings, prices and calls to action; body text stays Inter */
  --lp-font-display: 'Bricolage Grotesque', var(--font-sans);

  background: var(--color-paper-white);
  color: var(--text-main);
}

.landing h1,
.landing h2,
.landing h3 {
  font-family: var(--lp-font-display);
  color: var(--color-ink-charcoal);
  letter-spacing: -0.02em;
}

.lp-brand-name,
.lp-price-amount,
.lp-price-currency,
.lp-tab-title,
.lp-btn {
  font-family: var(--lp-font-display);
}

/* Small-caps labels and the in-product previews keep the app's Inter */
.landing .lp-footer-heading,
.lp-label {
  font-family: var(--font-sans);
}

.landing code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--color-lilac-wash);
  color: var(--color-iris-bolt);
}

.lp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-40);
}

.lp-center {
  text-align: center;
}

.lp-btn {
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lp-btn .icon {
  width: 1.1em;
  height: 1.1em;
}

/* --- Header --- */
.lp-scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 239, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-mist-border);
  box-shadow: 0 8px 24px rgba(28, 35, 64, 0.06);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-40);
  height: 76px;
}

.lp-brand .brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--lp-radius-sm);
  font-size: 1.25rem;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink-charcoal);
  text-decoration: none;
  flex-shrink: 0;
}

.lp-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.lp-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--color-deep-indigo);
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lp-nav a:hover {
  background: rgba(66, 85, 255, 0.08);
  color: var(--color-iris-bolt);
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-left: auto;
}

.btn.lp-btn-header {
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  font-size: 0.975rem;
}

.btn.lp-login {
  background: transparent;
}

/* --- Hero --- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(55% 70% at 92% 8%, rgba(66, 85, 255, 0.22) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(255, 205, 31, 0.16) 0%, rgba(255, 205, 31, 0) 70%),
    linear-gradient(180deg, var(--color-lilac-wash) 0%, var(--color-paper-white) 100%);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-64);
}

.lp-hero-title {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lp-accent {
  color: var(--color-iris-bolt);
}

@media (min-width: 1025px) {
  .lp-accent {
    white-space: nowrap;
  }
}

.lp-hero-text {
  margin-top: var(--spacing-24);
  max-width: 40ch;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-deep-indigo);
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  margin-top: var(--spacing-32);
}

.lp-hero-media {
  position: relative;
}

/* Portrait photo: keep the crop anchored to the top so faces stay in frame */
.lp-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: var(--radius-feature);
  box-shadow: 0 32px 80px rgba(46, 56, 86, 0.22);
}

/* Hero chat demo, overlapping the photo */
.lp-hero-demo {
  position: absolute;
  left: -56px;
  bottom: -48px;
  width: min(360px, 82%);
  padding: var(--spacing-16);
  display: grid;
  gap: 0.6rem;
  background: var(--color-paper-white);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(31, 38, 72, 0.24);
}

.lp-demo-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-mist-border);
}

.lp-demo-head .brand-avatar {
  width: 32px;
  height: 32px;
}

.lp-demo-head strong {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--color-ink-charcoal);
}

.lp-demo-head span:not(.brand-avatar) {
  display: block;
  font-size: var(--text-caption);
  color: var(--color-slate-veil);
}

.lp-demo-bubble {
  max-width: 92%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: var(--text-body-sm);
  line-height: 1.45;
}

.lp-demo-user {
  justify-self: end;
  min-height: 2.4em;
  background: var(--color-iris-bolt);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.lp-caret {
  display: none;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: lpBlink 0.9s steps(1) infinite;
}

.lp-demo-reply {
  justify-self: start;
  display: grid;
  gap: 0.5rem;
  background: var(--color-lilac-wash);
  color: var(--color-ink-charcoal);
  border-bottom-left-radius: 4px;
}

.lp-demo-q {
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  background: var(--color-paper-white);
  border-radius: 10px;
  font-weight: 600;
  color: var(--color-deep-indigo);
}

.lp-demo-q .exam-badge {
  justify-self: start;
}

.lp-demo-typing {
  display: none;
  justify-self: start;
  gap: 4px;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  background: var(--color-lilac-wash);
}

.lp-demo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-iris-bolt);
  animation: lpDot 1s ease-in-out infinite;
}

.lp-demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.lp-demo-typing span:nth-child(3) { animation-delay: 0.3s; }

/* Animation states set by the hero demo script */
.lp-hero-demo.is-typing .lp-caret { display: inline-block; }
.lp-hero-demo.is-typing .lp-demo-reply,
.lp-hero-demo.is-thinking .lp-demo-reply { display: none; }
.lp-hero-demo.is-thinking .lp-demo-typing { display: inline-flex; }
.lp-hero-demo.is-replied .lp-demo-reply { animation: lpPop 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes lpBlink {
  50% { opacity: 0; }
}

@keyframes lpDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes lpPop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* --- Try it (solid colour band) --- */
.lp-try {
  padding: var(--spacing-64) 0 0;
}

.lp-try-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--spacing-40);
  padding: var(--spacing-48);
  border-radius: var(--radius-feature);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
    var(--color-iris-bolt);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(66, 85, 255, 0.28);
}

.lp-try-title {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing .lp-try-title {
  color: #ffffff;
}

.lp-try-copy p {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.lp-try-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 3rem;
  background: var(--color-paper-white);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-try-field:focus-within {
  border-color: var(--color-ink-charcoal);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.lp-try-field {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 12px 32px rgba(31, 38, 72, 0.2);
}

.lp-try-field .btn {
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-size: var(--text-body);
}

.lp-try-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--color-slate-veil);
}

.lp-try-icon .icon {
  width: 20px;
  height: 20px;
}

.lp-try-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--text-body);
  color: var(--text-main);
  outline: none;
  padding: 0.6rem 0;
}

/* --- Sections --- */
.lp-section {
  padding: 96px 0;
}

.lp-section-title {
  font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.lp-section-title.lp-center {
  margin-left: auto;
  margin-right: auto;
}

.lp-section-text {
  margin-top: var(--spacing-16);
  max-width: 52ch;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-deep-indigo);
}

.landing [hidden] {
  display: none !important;
}

/* --- Product showcase --- */
.lp-showcase {
  padding-top: var(--spacing-32);
}

.lp-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--spacing-40);
  align-items: start;
  margin-top: var(--spacing-40);
}

.lp-tabs {
  display: grid;
  gap: var(--spacing-8);
}

.lp-tab {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-16);
  width: 100%;
  padding: var(--spacing-16) var(--spacing-24) var(--spacing-16) var(--spacing-16);
  background: transparent;
  border: none;
  border-radius: 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-tab:hover {
  background: var(--color-chalk-canvas);
}

.lp-tab[aria-selected="true"] {
  background: var(--color-paper-white);
  box-shadow: 0 0 0 2px var(--color-iris-bolt), 0 12px 32px rgba(66, 85, 255, 0.12);
}

.lp-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-lilac-wash);
  color: var(--color-iris-bolt);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lp-tab[aria-selected="true"] .lp-tab-icon {
  background: var(--color-iris-bolt);
  color: #ffffff;
}

.lp-tab-icon .icon {
  width: 22px;
  height: 22px;
}

.lp-tab-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink-charcoal);
}

.lp-tab-text {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--color-slate-veil);
}

.lp-stage {
  position: relative;
  padding: var(--spacing-40);
  border-radius: var(--radius-feature);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(66, 85, 255, 0.16) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(255, 205, 31, 0.14) 0%, rgba(255, 205, 31, 0) 70%),
    var(--color-lilac-wash);
}

@media (min-width: 1025px) {
  .lp-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 580px;
  }
}

.lp-panel:focus-visible {
  outline: 3px solid var(--color-accent-ring);
  outline-offset: 6px;
  border-radius: 12px;
}

.lp-panel:not([hidden]) {
  animation: lpPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lpPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.lp-demo-card {
  margin: 0;
  background: var(--color-paper-white);
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(46, 56, 86, 0.14);
}

.lp-demo-card.exam-card:hover {
  box-shadow: 0 24px 60px rgba(46, 56, 86, 0.14);
}

.lp-demo-card .mcq-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-caption);
  font-weight: 700;
  white-space: nowrap;
}

.lp-demo-card .exam-card-footer {
  gap: var(--spacing-16);
}

.lp-demo-card .action-row {
  flex-wrap: wrap;
}

.lp-demo-steps {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.lp-demo-flashcard {
  min-height: 0;
  padding: var(--spacing-32);
  cursor: default;
}

.lp-demo-flashcard .flashcard-hint {
  margin-top: var(--spacing-16);
}

.lp-flash-result {
  min-height: 1.5em;
  margin: 0.85rem 0 0.25rem;
  font-weight: 600;
  color: var(--color-iris-bolt);
}

.lp-demo-mock {
  padding: var(--spacing-24) var(--spacing-32) var(--spacing-32);
}

.lp-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  flex-wrap: wrap;
  padding-bottom: var(--spacing-16);
  border-bottom: 1px solid var(--color-mist-border);
}

.lp-mock-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lp-mock-title strong {
  display: block;
  color: var(--color-ink-charcoal);
}

.lp-mock-title span:not(.brand-avatar) {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--color-slate-veil);
}

.lp-mock-progress {
  margin: var(--spacing-16) 0 0.75rem;
  font-size: var(--text-body-sm);
  color: var(--color-slate-veil);
}

.lp-mock-progress strong {
  color: var(--color-ink-charcoal);
}

.lp-mock-nav {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.lp-mock-nav .nav-chip {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.lp-mock-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8) var(--spacing-24);
  font-size: var(--text-body-sm);
  color: var(--color-slate-veil);
}

.lp-mock-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-mock-legend .nav-chip {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.lp-stage-note {
  margin-top: var(--spacing-16);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-slate-veil);
  text-align: center;
}

/* --- Feature bento --- */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-24);
  margin-top: var(--spacing-40);
}

.lp-tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--spacing-32);
  background: var(--color-paper-white);
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-feature);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-tile:hover,
.js .lp-bento .lp-tile.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(46, 56, 86, 0.1);
}

.lp-tile h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lp-tile p {
  font-size: 1.02rem;
  color: var(--color-slate-veil);
  line-height: 1.6;
}

.lp-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.4rem;
  border-radius: 14px;
  background: var(--color-lilac-wash);
  color: var(--color-iris-bolt);
}

.lp-tile-icon .icon {
  width: 24px;
  height: 24px;
}

.lp-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--color-iris-bolt);
  font-weight: 600;
  font-size: var(--text-body-sm);
  text-decoration: none;
}

.lp-tile-link .icon {
  transition: transform 0.2s ease;
}

.lp-tile-link:hover {
  text-decoration: underline;
}

.lp-tile-link:hover .icon {
  transform: translateX(3px);
}

.lp-tile-chat {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  background: var(--color-lilac-wash);
  border-color: transparent;
}

.lp-tile-chat h3 {
  font-size: 2rem;
}

.lp-tile-chat .lp-tile-icon {
  background: var(--color-iris-bolt);
  color: #ffffff;
}

.lp-tile-points {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.lp-tile-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-deep-indigo);
}

.lp-tile-points .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-iris-bolt);
  stroke-width: 2.5;
}

.lp-tile-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-16);
}

.lp-tile-examples-label {
  flex-basis: 100%;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-slate-veil);
}

.lp-example {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-paper-white);
  color: var(--color-deep-indigo);
  font-size: var(--text-body-sm);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.lp-example:hover {
  color: var(--color-iris-bolt);
  box-shadow: 0 0 0 2px var(--color-iris-bolt);
}

.lp-tile-slides {
  grid-column: 3 / span 2;
}

.lp-tile-flash {
  background: var(--color-chalk-canvas);
  border-color: transparent;
}

.lp-tile-plan {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-24);
  background: var(--color-iris-bolt);
  border-color: transparent;
}

.lp-tile-plan .lp-tile-icon {
  margin: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.lp-tile-plan-copy {
  flex: 1;
}

.lp-tile-plan h3 {
  color: #ffffff;
}

.lp-tile-plan p {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
}

.lp-tile-plan .lp-tile-link {
  margin: 0;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-iris-bolt);
  white-space: nowrap;
}

.lp-tile-plan .lp-tile-link:hover {
  text-decoration: none;
  background: var(--color-lilac-wash);
}

/* --- How it works --- */
/* Deep navy colour band: the page's one dark section */
.lp-how {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(66, 85, 255, 0.45) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(66, 85, 255, 0.25) 0%, rgba(66, 85, 255, 0) 70%),
    #1c2340;
  color: #ffffff;
}

.landing .lp-how h2,
.landing .lp-how h3 {
  color: #ffffff;
}

.lp-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}

.lp-how-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-feature);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.lp-steps {
  list-style: none;
  display: grid;
  gap: var(--spacing-8);
  margin-top: var(--spacing-40);
}

.lp-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-24);
  padding: var(--spacing-24);
  border-radius: 20px;
  transition: background-color 0.4s ease;
}

.lp-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-step-icon .icon {
  width: 24px;
  height: 24px;
}

.lp-steps h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lp-steps p {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 44ch;
}

/* Step-by-step highlight driven by the script; all steps stay bright without it */
.lp-steps.is-cycling li > * {
  transition: opacity 0.4s ease;
}

.lp-steps.is-cycling li:not(.is-active) > * {
  opacity: 0.5;
}

.lp-steps li.is-active {
  background: rgba(255, 255, 255, 0.07);
}

.lp-steps li.is-active .lp-step-icon {
  background: var(--color-iris-bolt);
  transform: scale(1.08);
}

.lp-steps li.is-active::after {
  content: "";
  position: absolute;
  left: var(--spacing-24);
  right: var(--spacing-24);
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-iris-bolt);
  transform-origin: left;
  animation: lpStepProgress 2.8s linear both;
}

@keyframes lpStepProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- Channels --- */
.lp-channels-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-64);
}

.lp-channel-list {
  list-style: none;
  display: flex;
  gap: var(--spacing-16);
  flex-shrink: 0;
}

.lp-channel-link {
  display: contents; /* the tile's layout stays the li's; the whole tile is the link */
  color: inherit;
  text-decoration: none;
}

.lp-channel-list li:has(.lp-channel-link):hover { outline: 2px solid var(--color-iris-bolt, #4f46e5); }

.lp-channel-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 132px;
  padding: var(--spacing-24) var(--spacing-16);
  border-radius: var(--lp-radius-lg);
  background: var(--color-chalk-canvas);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink-charcoal);
}

.lp-channel-logo {
  width: 48px;
  height: 48px;
}

.lp-channel-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lp-radius-sm);
  background: var(--color-iris-bolt);
  color: #ffffff;
}

.lp-channel-web .icon {
  width: 22px;
  height: 22px;
}

/* --- Pricing --- */
.lp-pricing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(66, 85, 255, 0.12) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(40% 50% at 85% 85%, rgba(255, 205, 31, 0.18) 0%, rgba(255, 205, 31, 0) 70%),
    var(--color-chalk-canvas);
}

.lp-pricing-head .lp-section-title {
  max-width: 19ch;
}

.lp-pricing-head .lp-section-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 46ch;
  text-align: center;
}

.lp-plans {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: var(--spacing-32);
  max-width: 1000px;
  margin: 56px auto 0;
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  padding: var(--spacing-40);
  background: var(--color-paper-white);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(46, 56, 86, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.lp-plan:hover,
.js .lp-plans .lp-plan.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(46, 56, 86, 0.12);
}

.lp-plan-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lp-plan-tagline {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  color: var(--color-slate-veil);
}

.lp-plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--color-ink-charcoal);
}

.lp-price-currency {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lp-price-amount {
  font-size: clamp(3.5rem, 2.8rem + 2.2vw, 4.75rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.lp-price-amount small {
  font-size: 0.45em;
  letter-spacing: -0.02em;
}

.lp-price-period {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-slate-veil);
}

.lp-plan-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.lp-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.02rem;
  color: var(--color-deep-indigo);
  line-height: 1.45;
}

.lp-plan-list .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--color-iris-bolt);
  stroke-width: 2.5;
}

/* Pro: the dark, raised hero card of the section */
.lp-plan-pro {
  padding: 48px var(--spacing-40) var(--spacing-40);
  color: #ffffff;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(66, 85, 255, 0.55) 0%, rgba(66, 85, 255, 0) 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(255, 205, 31, 0.14) 0%, rgba(255, 205, 31, 0) 70%),
    #1c2340;
  box-shadow: 0 32px 80px rgba(28, 35, 64, 0.35);
}

.lp-plan-pro:hover {
  box-shadow: 0 40px 96px rgba(28, 35, 64, 0.42);
}

.landing .lp-plan-pro .lp-plan-name,
.lp-plan-pro .lp-plan-price {
  color: #ffffff;
}

.lp-plan-pro .lp-plan-tagline,
.lp-plan-pro .lp-price-period {
  color: rgba(255, 255, 255, 0.75);
}

.lp-plan-pro .lp-plan-list li {
  color: rgba(255, 255, 255, 0.92);
}

.lp-plan-pro .lp-plan-list strong {
  color: #ffffff;
}

.lp-plan-pro .lp-plan-list .icon {
  color: var(--upgrade-yellow, #ffcd1f);
  stroke-width: 2.25;
}

.lp-plan-pass {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 205, 31, 0.16);
  color: var(--upgrade-yellow, #ffcd1f);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-plan-flag {
  position: absolute;
  top: -16px;
  right: var(--spacing-40);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--upgrade-yellow, #ffcd1f);
  color: var(--color-ink-charcoal);
  font-size: var(--text-body-sm);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 205, 31, 0.35);
}

.lp-plan-flag .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lp-plan-everything {
  margin-bottom: -0.6rem;
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gold button with a light sweep on hover */
.lp-btn-shine {
  position: relative;
  overflow: hidden;
}

.lp-btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lp-btn-shine:hover::after {
    animation: lpShine 0.8s ease;
  }
}

@keyframes lpShine {
  to { left: 130%; }
}

.lp-pay {
  display: grid;
  gap: 0.7rem;
  padding-top: var(--spacing-24);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-pay-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.lp-pay-label .icon {
  width: 15px;
  height: 15px;
}

.lp-pay-methods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lp-pay-methods li {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: var(--text-caption);
  font-weight: 600;
}

.lp-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 48px auto 0;
  font-size: 1.02rem;
  color: var(--color-deep-indigo);
}

.lp-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-paper-white);
  color: var(--color-iris-bolt);
  box-shadow: var(--shadow-sm);
}

.lp-promo-icon .icon {
  width: 18px;
  height: 18px;
}

.lp-promo a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--color-iris-bolt);
  text-decoration: none;
}

.lp-promo a:hover {
  text-decoration: underline;
}

/* --- FAQ --- */
.lp-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--spacing-64);
  align-items: start;
}

.lp-faq-list {
  display: grid;
  gap: var(--spacing-16);
}

.lp-faq-item {
  border-radius: 16px;
  background: var(--color-chalk-canvas);
}

.lp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink-charcoal);
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-slate-veil);
  border-bottom: 2px solid var(--color-slate-veil);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.lp-faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.lp-faq-item summary:focus-visible {
  outline: 3px solid var(--color-accent-ring);
  outline-offset: 2px;
}

.lp-faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-slate-veil);
  line-height: 1.65;
}

/* --- Closing CTA --- */
.lp-cta {
  padding: 0 0 80px;
}

.lp-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-16);
  padding: var(--spacing-64) var(--spacing-32);
  border-radius: var(--radius-feature);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%),
    var(--color-iris-bolt);
  color: #ffffff;
}

.lp-cta-card h2 {
  color: #ffffff;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.lp-cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.btn.lp-btn-inverse {
  margin-top: var(--spacing-8);
  background: #ffffff;
  color: var(--color-iris-bolt);
  border-radius: var(--radius-pill);
}

.btn.lp-btn-inverse:hover {
  background: var(--color-lilac-wash);
}

/* --- Footer --- */
/* Navy band that mirrors "How it works" and the Pro card */
.lp-footer {
  padding: 80px 0 var(--spacing-32);
  background: var(--lp-glow-dark), var(--lp-navy);
  color: rgba(255, 255, 255, 0.78);
}

.lp-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--spacing-64);
  padding-bottom: var(--spacing-48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-footer .lp-brand {
  color: #ffffff;
}

.lp-footer-brand p {
  margin-top: var(--spacing-16);
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.6;
}

.lp-footer-channels {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-top: var(--spacing-24);
}

.lp-footer-channels li {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: var(--text-body-sm);
  font-weight: 600;
}

.lp-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-32);
}

.lp-footer-col {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.landing .lp-footer-heading {
  margin-bottom: 0.2rem;
  font-size: var(--text-body-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-yellow);
}

.lp-footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.lp-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  padding-top: var(--spacing-24);
  font-size: var(--text-body-sm);
}

.lp-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.lp-footer-bottom a .icon {
  transform: rotate(-90deg);
}

.lp-footer-bottom a:hover {
  text-decoration: underline;
}

.lp-footer a:focus-visible {
  outline: 3px solid var(--lp-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Consistency layer: one radius scale, one shadow scale, one icon tile,
   one label style and a deliberate section rhythm across the whole page.
   Section order: lilac hero > blue band > white > grey > navy > white >
   lilac > white > blue band > navy footer.
   ========================================================================== */

/* Hero fills the first screen on desktop */
@media (min-width: 1025px) {
  .lp-hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 76px);
  }

  .lp-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .lp-hero-title {
    font-size: clamp(3.5rem, 1.6rem + 3.2vw, 4.4rem);
  }

  .lp-hero-text {
    margin-top: var(--spacing-32);
    max-width: 38ch;
    font-size: clamp(1.25rem, 1rem + 0.45vw, 1.45rem);
  }

  .lp-hero-actions {
    margin-top: 40px;
  }

  .lp-hero-actions .btn {
    min-height: 60px;
    padding: 1rem 2.1rem;
    font-size: 1.125rem;
  }

  .lp-hero-media img {
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - 76px - 120px);
  }
}

/* Section rhythm */
.lp-section { padding: var(--lp-section-space) 0; }
.lp-showcase { padding-top: var(--lp-section-space); }
.lp-try { padding: 0; }
.lp-cta { padding: 0 0 var(--lp-section-space); }
.lp-hero { padding: 56px 0 var(--lp-section-space); }

/* Backgrounds */
.lp-hero {
  background: var(--lp-glow-light), linear-gradient(180deg, var(--color-lilac-wash) 0%, var(--color-paper-white) 100%);
}

#features {
  background: var(--color-chalk-canvas);
}

.lp-how {
  background: var(--lp-glow-dark), var(--lp-navy);
}

.lp-pricing {
  background: var(--lp-glow-light), linear-gradient(180deg, var(--color-lilac-wash) 0%, var(--color-paper-white) 100%);
}

.lp-stage {
  background: var(--lp-glow-light), var(--color-lilac-wash);
}

.lp-try-card,
.lp-cta-card {
  background: var(--lp-glow-accent), var(--color-iris-bolt);
  box-shadow: var(--lp-shadow-accent);
}

.lp-plan-pro {
  background: var(--lp-glow-dark), var(--lp-navy);
  box-shadow: var(--lp-shadow-float);
}

/* Radius scale */
.lp-hero-media img,
.lp-how-media img,
.lp-try-card,
.lp-cta-card,
.lp-stage,
.lp-tile,
.lp-plan,
.lp-channel-list li {
  border-radius: var(--lp-radius-lg);
}

.lp-hero-demo,
.lp-demo-card,
.lp-tab,
.lp-steps li,
.lp-faq-item,
.lp-faq-item summary,
.lp-demo-bubble,
.lp-demo-typing {
  border-radius: var(--lp-radius-md);
}

.lp-demo-q {
  border-radius: var(--lp-radius-sm);
}

/* Surfaces: no outlines, depth comes from tint and shadow */
.lp-tile,
.lp-tile-flash {
  border: none;
  background: var(--color-paper-white);
  box-shadow: var(--lp-shadow-card);
}

.lp-tile-chat {
  background: var(--color-lilac-wash);
  box-shadow: none;
}

.lp-tile-plan {
  background: var(--lp-glow-accent), var(--color-iris-bolt);
  box-shadow: var(--lp-shadow-accent);
}

.lp-plan:not(.lp-plan-pro) {
  box-shadow: var(--lp-shadow-card);
}

/* Shadow scale */
.lp-hero-media img,
.lp-how-media img,
.lp-hero-demo,
.lp-demo-card,
.lp-demo-card.exam-card:hover {
  box-shadow: var(--lp-shadow-float);
}

.lp-how-media img {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
}

/* One icon tile everywhere */
.lp-tile-icon,
.lp-tab-icon,
.lp-step-icon,
.lp-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--lp-radius-sm);
}

.lp-tile-icon .icon,
.lp-tab-icon .icon,
.lp-step-icon .icon {
  width: 24px;
  height: 24px;
}

.lp-promo-icon {
  width: 40px;
  height: 40px;
}

/* One small-caps label style */
.lp-label {
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-veil);
}

.lp-plan-pro .lp-label {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Motion (entrance + scroll reveal; off for reduced motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > *,
  .lp-hero-media {
    animation: lpRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .lp-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .lp-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .lp-hero-media { animation-delay: 0.12s; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .lp-steps li:nth-child(2) { transition-delay: 0.08s; }
  .lp-steps li:nth-child(3) { transition-delay: 0.16s; }

  /* Feature tiles cascade in */
  .lp-bento .lp-tile:nth-child(2) { transition-delay: 0.08s; }
  .lp-bento .lp-tile:nth-child(3) { transition-delay: 0.16s; }
  .lp-bento .lp-tile:nth-child(4) { transition-delay: 0.24s; }
  .lp-bento .lp-tile:nth-child(5) { transition-delay: 0.32s; }
  .lp-plans .lp-plan:nth-child(2) { transition-delay: 0.1s; }

  /* The chat demo arrives just after the photo */
  .lp-hero-demo {
    animation: lpPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  }

  .lp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(66, 85, 255, 0.25);
  }

  .lp-btn:active {
    transform: translateY(1px) scale(0.98);
  }
}

@keyframes lpRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-tile:hover,
  .lp-plan:hover,
  .js .lp-bento .lp-tile.is-visible:hover,
  .js .lp-plans .lp-plan.is-visible:hover {
    transform: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .lp-nav {
    display: none;
  }

  .lp-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-tile-chat {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .lp-tile-slides {
    grid-column: 1 / -1;
  }

  .lp-channels-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-24);
  }

  .lp-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-tab {
    flex-direction: column;
    gap: var(--spacing-8);
    padding: var(--spacing-16);
  }
}

@media (max-width: 880px) {
  .lp-container {
    padding: 0 var(--spacing-24);
  }

  /* Single column: keep the hero photo portrait-shaped rather than a wide strip */
  .lp-hero-media {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .lp-hero {
    padding-top: var(--spacing-40);
  }

  .lp-hero-grid,
  .lp-how-grid,
  .lp-faq-grid,
  .lp-try-card {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-32);
  }

  .lp-hero {
    padding-bottom: var(--spacing-64);
  }

  .lp-hero-demo {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -56px var(--spacing-16) 0;
  }

  .lp-how-grid {
    gap: var(--spacing-40);
  }

  .lp-section {
    padding: 72px 0;
  }

  .lp-try-card {
    padding: var(--spacing-24);
  }

  .lp-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }

  .lp-plans .lp-plan-pro {
    order: -1;
  }

  .lp-tile-plan {
    flex-direction: column;
    align-items: flex-start;
  }

  body.landing {
    --lp-section-space: 72px;
  }

  .lp-footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-40);
  }

  .lp-header-inner {
    height: 68px;
  }
}

@media (max-width: 640px) {
  .lp-container {
    padding: 0 var(--spacing-16);
  }

  .lp-header-inner {
    height: 60px;
    gap: var(--spacing-16);
  }

  .lp-brand-name {
    font-size: 1.05rem;
  }

  .lp-header-actions {
    gap: 0.6rem;
  }

  .lp-header-actions .btn {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
  }

  .lp-hero-actions .btn {
    flex: 1 1 100%;
  }

  .lp-try-card {
    padding: var(--spacing-24);
  }

  .lp-steps li {
    gap: var(--spacing-16);
    padding: var(--spacing-16);
  }

  .lp-steps li.is-active::after {
    left: var(--spacing-16);
    right: var(--spacing-16);
    bottom: 6px;
  }

  .lp-step-icon {
    width: 48px;
    height: 48px;
  }

  .lp-steps h3 {
    font-size: 1.35rem;
  }

  .lp-try-field {
    flex-wrap: wrap;
    padding: 0.4rem;
    border-radius: 20px;
  }

  .lp-try-icon {
    top: 1.55rem;
  }

  .lp-try-field input {
    padding-left: 2.6rem;
    flex-basis: 100%;
  }

  .lp-try-field .btn {
    flex: 1 1 100%;
  }

  .lp-tabs {
    display: flex;
    gap: var(--spacing-8);
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--spacing-16));
    padding: 4px var(--spacing-16);
  }

  .lp-tab {
    flex: 0 0 auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--color-chalk-canvas);
  }

  .lp-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .lp-tab-title {
    font-size: var(--text-body-sm);
    white-space: nowrap;
  }

  .lp-tab-text {
    display: none;
  }

  .lp-stage {
    padding: var(--spacing-16);
    margin: 0 calc(-1 * var(--spacing-8));
  }

  .lp-demo-card.exam-card,
  .lp-demo-flashcard,
  .lp-demo-mock {
    padding: var(--spacing-16);
  }

  .lp-demo-card .action-row > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  .lp-demo-flashcard .rating-buttons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-mock-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lp-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-16);
  }

  .lp-tile {
    padding: var(--spacing-24);
  }

  .lp-channel-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-8);
    width: 100%;
  }

  .lp-channel-list li {
    width: auto;
    min-width: 0;
    padding: var(--spacing-16) 0.25rem;
    font-size: 0.875rem;
  }

  .lp-channel-logo {
    width: 40px;
    height: 40px;
  }

  .lp-plan {
    padding: var(--spacing-32) var(--spacing-24) var(--spacing-24);
  }

  body.landing {
    --lp-section-space: 56px;
  }

  .lp-footer {
    padding-top: var(--spacing-48);
  }

  .lp-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-32) var(--spacing-24);
  }

  .lp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn.lp-btn-header {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: var(--text-body-sm);
  }

  .lp-brand .brand-avatar {
    width: 36px;
    height: 36px;
  }
}

/* With the theme toggle in the header, the wordmark only fits from ~430px up;
   the logo mark (and the link's aria-label) still identify the brand below that */
@media (max-width: 430px) {
  .lp-brand-name {
    display: none;
  }
}

/* --- Dark theme ---
   Most of the page follows the shared tokens; these are the surfaces that were
   hard-coded light. Navy bands, the Pro card and the CTA are already dark. */
:root[data-theme="dark"] .lp-header {
  background: rgba(23, 28, 47, 0.82);
}

:root[data-theme="dark"] .lp-header.is-scrolled {
  background: rgba(23, 28, 47, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .lp-nav a:hover {
  background: rgba(122, 136, 255, 0.14);
}

.lp-theme-toggle {
  width: 36px;
  height: 36px;
}

/* Exam Week Pass: a quieter second option under the Semester Pass button */
.lp-plan-week {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16, 1rem);
  margin-top: calc(var(--spacing-24) * -0.5);
  padding: 0.85rem 1.1rem;
  border-radius: var(--lp-radius-md, 16px);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lp-plan-week:hover,
.lp-plan-week:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.lp-plan-week-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.75);
}

.lp-plan-week-text strong {
  color: #ffffff;
}

.lp-plan-week-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--upgrade-yellow, #ffcd1f);
}

.lp-plan-week-price .icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Launch moment: ticker, sticker, marker underline and the exam-slip countdown.
   Shown while services/launch.py says the launch is coming or just happened.
   ========================================================================== */

/* --- Ticker: a yellow strip that runs under the header --- */
.lp-ticker {
  position: relative;
  overflow: hidden;
  background: var(--lp-yellow);
  color: var(--lp-navy);
  border-block: 2px solid var(--lp-navy);
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.lp-ticker-track {
  display: flex;
  width: max-content;
}

.lp-ticker-run {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lp-ticker-item {
  padding: 0.7rem 1.1rem;
}

.lp-ticker-hot {
  margin: 0.35rem 0.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-navy);
  color: var(--lp-yellow);
}

/* Four-point spark between items */
.lp-ticker-sep {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--color-iris-bolt);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

@media (prefers-reduced-motion: no-preference) {
  .lp-ticker-track {
    animation: lpTicker 38s linear infinite;
  }

  .lp-ticker:hover .lp-ticker-track {
    animation-play-state: paused;
  }

  .lp-ticker-sep {
    animation: lpSpin 6s linear infinite;
  }
}

@keyframes lpTicker {
  to { transform: translateX(-50%); }
}

@keyframes lpSpin {
  to { transform: rotate(360deg); }
}

/* The hero still fills the first screen with the ticker above it */
@media (min-width: 1025px) {
  .lp-ticker + .lp-hero {
    min-height: calc(100svh - 76px - 46px);
  }
}

/* --- Sticker: tilted Pidgin tag above the headline --- */
.lp-sticker {
  display: inline-block;
  margin-bottom: var(--spacing-24);
  padding: 0.45rem 1rem 0.5rem;
  border-radius: 999px;
  background: var(--lp-navy);
  color: var(--lp-yellow);
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--color-iris-bolt);
}

/* --- Marker: a yellow highlighter swipe under "past exam papers." ---
   A background (not an SVG overlay) so it follows the text when it wraps. */
.lp-marker {
  padding: 0 0.06em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26c60-9 140-14 216-12s128 6 176 2l-3 14c-58 6-112 1-180 0S56 36 6 38z' fill='%23ffcd1f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-reduced-motion: no-preference) {
  .lp-marker {
    animation: lpMarker 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.55s both;
  }
}

@keyframes lpMarker {
  from { background-size: 0% 0.42em; }
  to { background-size: 100% 0.42em; }
}

/* --- Exam slip countdown --- */
.lp-slip-wrap {
  scroll-margin-top: 7rem;  /* "Opens …" links jump here (#launch); clear the sticky header */
  margin-top: 40px;
  max-width: 540px;
  filter: drop-shadow(0 22px 40px rgba(28, 35, 64, 0.18));
}

.lp-slip {
  --stub: 112px;
  --notch: 11px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  border-radius: var(--lp-radius-md);
  overflow: hidden;
  /* Punched notches where the stub tears off */
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
}

/* Answer-booklet paper: ruled lines and a red margin */
.lp-slip-main {
  position: relative;
  padding: 18px 22px 18px 40px;
  background:
    linear-gradient(90deg, transparent 26px, rgba(239, 68, 68, 0.5) 26px, rgba(239, 68, 68, 0.5) 27.5px, transparent 27.5px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(66, 85, 255, 0.11) 25px 26px),
    var(--color-paper-white);
}

.lp-slip-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-slate-veil);
}

.lp-slip-title {
  margin-top: 6px;
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink-charcoal);
}

.lp-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.lp-clock-cell {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.lp-clock-num {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.3rem 0 0.35rem;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--lp-font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

/* The split line of a flip clock */
.lp-clock-num::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.lp-clock-s .lp-clock-num {
  background: var(--color-iris-bolt);
}

.lp-clock-num.is-tick {
  animation: lpTick 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lpTick {
  from { transform: translateY(-35%); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

.lp-clock-unit {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-slate-veil);
}

.lp-slip-fields {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
}

/* Labels share one column so the filled-in values line up */
.lp-slip-fields div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.lp-slip-fields dt {
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-veil);
}

/* Filled in like a candidate's handwriting on the line */
.lp-slip-fields dd {
  margin: 0;
  min-width: 0;
  font-family: var(--lp-font-display);
  font-weight: 600;
  color: var(--color-iris-bolt);
  border-bottom: 1.5px dotted var(--color-mist-border);
  flex: 1;
}

:root[data-theme="dark"] .lp-slip-fields dd {
  color: var(--accent-text);
}

/* Tear-off stub */
.lp-slip-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px 12px 16px;
  background: var(--lp-glow-dark), var(--lp-navy);
  color: #fff;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* A woven band of the brand colours across the top */
.lp-slip-weave {
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: repeating-linear-gradient(90deg,
    var(--lp-yellow) 0 10px, var(--lp-navy) 10px 13px,
    var(--color-iris-bolt) 13px 23px, #fff 23px 26px);
}

.lp-slip-stub {
  gap: 0;
}

.lp-slip-cal-label {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.lp-slip-cal-dow,
.lp-slip-cal-month {
  font-family: var(--lp-font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-yellow);
}

.lp-slip-cal-day {
  font-family: var(--lp-font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

/* Live phase: a bigger headline with the stamp beside it */
.lp-slip[data-phase="live"] .lp-slip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.05;
}

.lp-slip-title small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-deep-indigo);
}

/* Rubber stamp once the doors are open */
.lp-slip-stamp {
  flex-shrink: 0;
  padding: 0.2rem 0.7rem;
  border: 3px solid var(--color-iris-bolt);
  border-radius: 8px;
  color: var(--color-iris-bolt);
  font-family: var(--lp-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-10deg);
  opacity: 0.88;
}

:root[data-theme="dark"] .lp-slip-stamp {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

@media (prefers-reduced-motion: no-preference) {
  .lp-slip[data-phase="live"] .lp-slip-stamp {
    animation: lpStamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  }

  .lp-slip-wrap {
    animation: lpRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
  }
}

@keyframes lpStamp {
  from { transform: rotate(-10deg) scale(2.2); opacity: 0; }
  to { transform: rotate(-10deg) scale(1); opacity: 0.88; }
}

/* Each phase shows only its own lines */
.lp-slip[data-phase="soon"] [data-when="live"],
.lp-slip[data-phase="live"] [data-when="soon"] {
  display: none;
}

/* Hero entrance: the sticker shifts the copy's children by one */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
}

/* Closing CTA eyebrow */
.lp-cta-eyebrow {
  display: inline-block;
  margin-bottom: var(--spacing-16);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-yellow);
  color: var(--lp-navy);
  font-family: var(--lp-font-display);
  font-weight: 700;
  transform: rotate(-2deg);
}

@media (max-width: 640px) {
  .lp-slip {
    --stub: 84px;
    --notch: 9px;
  }

  .lp-slip-main {
    padding: 14px 14px 14px 34px;
  }

  .lp-slip-main {
    background:
      linear-gradient(90deg, transparent 21px, rgba(239, 68, 68, 0.5) 21px, rgba(239, 68, 68, 0.5) 22.5px, transparent 22.5px),
      repeating-linear-gradient(180deg, transparent 0 25px, rgba(66, 85, 255, 0.11) 25px 26px),
      var(--color-paper-white);
  }

  .lp-clock {
    gap: 5px;
  }

  .lp-slip-fields div {
    grid-template-columns: 5.6rem minmax(0, 1fr);
  }

  .lp-slip-cal-label {
    font-size: 0.58rem;
  }

  .lp-slip-cal-day {
    font-size: 2.6rem;
  }

  .lp-slip-cal-dow,
  .lp-slip-cal-month {
    font-size: 0.85rem;
  }

  .lp-slip-stamp {
    font-size: 0.95rem;
  }

  .lp-ticker {
    font-size: 0.9rem;
  }
}

/* Dark theme: navy launch pieces would melt into the navy page */
:root[data-theme="dark"] .lp-sticker {
  background: var(--lp-yellow);
  color: var(--lp-navy);
}

:root[data-theme="dark"] .lp-slip-stub {
  background: var(--lp-glow-dark), #28316a;
}

.lp-footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--spacing-16);
}
