:root {
  --bg: #0a0f14;
  --bg-2: #0f151b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #131a2170;
  --border: rgba(255, 255, 255, 0.09);
  --text: #c9c6d6;
  --text-h: #ffffff;
  --muted: #8b93a0;

  --p1: #22d3ee; /* cyan */
  --p2: #0e7490; /* deep cyan */
  --p3: #67e8f9; /* light cyan */
  --p4: #0891b2; /* cyan-600 */

  --c-cal: #22d3ee;
  --c-pro: #22d3ee;
  --c-carb: #34d399;
  --c-fat: #fbbf24;

  --grad: linear-gradient(120deg, var(--p4), var(--p1) 55%, var(--p3));
  --radius: 20px;

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--p2);
  top: -140px;
  left: -120px;
}
.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--p3);
  top: 380px;
  right: -160px;
}
.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--p4);
  bottom: -220px;
  left: 30%;
  opacity: 0.35;
}

/* Layout */
section,
.nav {
  position: relative;
  z-index: 1;
}
/* the nav (and its open mobile menu) must stack above the hero phone mockup */
nav,
header.nav {
  z-index: 30;
}
.hero,
.features,
.showcase,
.how,
.pricing,
.cta,
.band,
.compare {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 24px;
}

/* Comparison table (ClassNotes vs Quizlet vs Docs/Notion) */
/* This section carries the positioning — its headline runs larger than the
   other section heads. */
.compare .eyebrow {
  font-size: 16px;
}
.compare .section-head h2 {
  font-size: clamp(38px, 5.8vw, 60px);
}
.compare .section-head p {
  font-size: 18px;
}
.compare-wrap {
  overflow-x: auto; /* the table scrolls inside itself on narrow phones */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  color: var(--text-h);
  font-size: 15px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td:first-child {
  color: var(--text-h);
  font-weight: 600;
  min-width: 150px;
}
.compare-table .ct-us {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.13), rgba(34, 211, 238, 0.05));
  color: var(--text-h);
  font-weight: 600;
}
.compare-table td:not(.ct-us):not(:first-child) {
  color: var(--muted);
}
.compare-fine {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.5);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-h);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}
.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-h);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  margin-right: 2px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text-h);
}
.nav .btn-primary {
  margin-left: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-h);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
}
.pill {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-h);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}
.lede {
  font-size: 19px;
  color: var(--text);
  max-width: 520px;
  margin: 22px 0 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Honest about the invite gate, right under the CTA that leads to it. */
.hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.hero-note a {
  color: var(--accent);
  text-decoration: underline;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 30px;
  color: var(--text-h);
  font-weight: 800;
}
.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* Phone mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  /* never wider than the viewport minus the section gutters (fixes a 4px
     horizontal overflow on 320px-wide phones) */
  width: min(300px, calc(100vw - 48px));
  height: 610px;
  background: linear-gradient(160deg, #14212b, #0b1218);
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(34, 211, 238, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #0a0f14;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: #0f0d1a;
  border-radius: 30px;
  padding: 34px 16px 16px;
  overflow: hidden;
}
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.screen-logo {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
}
.screen-day {
  font-size: 12px;
  color: var(--p1);
  background: rgba(34, 211, 238, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
}
.rings {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.ring-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 6px;
  text-align: center;
}
.ring {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}
.ring-fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.65));
}
.ring-pct {
  transform: rotate(90deg);
  transform-origin: 60px 60px;
  fill: #fff;
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
}
.ring-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--p1);
  background: rgba(34, 211, 238, 0.15);
  padding: 3px 9px;
  border-radius: 999px;
}
.mock-cal {
  font-size: 12px;
  color: var(--muted);
}
.mock-cal strong {
  color: #fff;
  font-size: 17px;
}
.mock-foods {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--text);
}
.macro {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.macro span {
  display: block;
  height: 100%;
}
.mock-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
}

/* Mini pill tab bar (mirrors the app nav) */
.mock-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.mtab {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.mtab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.ring-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.ring-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.mock-legend {
  display: flex;
  gap: 10px;
  margin-top: 7px;
}
.mock-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.mock-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.mock-timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

/* Band */
.band {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 26px 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section heads */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.eyebrow {
  color: var(--p1);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  margin: 12px 0;
}
.section-head p {
  color: var(--text);
  font-size: 17px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.2);
}
.feature-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: var(--grad);
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

/* Showcase */
.phone.small {
  width: 250px;
  height: 510px;
  border-radius: 38px;
  padding: 12px;
}
.phone.small .phone-notch {
  display: none;
}
.phone.small .phone-screen {
  padding: 18px 14px 14px;
}

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
}
.show-row:last-child {
  margin-bottom: 0;
}
.show-row .phone {
  justify-self: center;
}
.show-copy h3 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}
.show-copy p {
  color: var(--text);
  font-size: 17px;
  margin: 0;
  max-width: 460px;
}

.mock-ex {
  color: #fff;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.mset {
  display: grid;
  grid-template-columns: 20px 1.1fr 0.8fr 0.9fr 18px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.mset .prev {
  color: var(--muted);
  font-size: 11px;
}
.mset.head {
  color: var(--muted);
  border-top: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mset.done {
  color: #fff;
}
.mset .warm {
  color: #f59e0b;
  font-weight: 700;
}
.chk {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  justify-self: end;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.chk.on {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
}
.mock-timer-row {
  justify-content: space-between;
}
.mock-timer-row strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mock-finish {
  margin-top: 14px;
  text-align: center;
  padding: 11px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(120deg, #16a34a, #22c55e);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-stat b {
  color: #fff;
  font-size: 20px;
}
.mock-stat span {
  font-size: 11px;
  color: var(--muted);
}
.mock-spark-label {
  font-size: 11px;
  color: var(--muted);
}
.mock-spark {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
}

/* How it works */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.step-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.4);
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text);
  margin: 0;
}
.step-line {
  flex: 0 0 60px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--p2), transparent);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.plan-pro {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.3);
}
.plan-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 22px;
}
.price {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-h);
  margin: 8px 0 20px;
}
.price span {
  font-size: 26px;
  vertical-align: super;
  color: var(--muted);
}
.price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--p1);
  font-weight: 800;
}
.plan .btn-ghost {
  width: 100%;
}
.waitlist {
  display: flex;
  gap: 8px;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
}
.waitlist input::placeholder {
  color: var(--muted);
}
.waitlist-msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4ade80;
  min-height: 18px;
}

/* CTA */
.cta {
  text-align: center;
  background: var(--grad);
  border-radius: 32px;
  max-width: 1000px;
  margin: 40px auto 90px;
  padding: 70px 24px;
}
.cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 14px 0 28px;
}
.cta .btn-primary {
  background: #fff;
  color: #4c1d95;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.cta .btn-primary:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.footer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* motion-sensitive users (and any env where the observer can't run) get the
   content visible immediately instead of hidden at opacity 0 */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* pitch first on phones — a group-chat link should open on the "what/why",
     not a screenshot (the mockup follows right after) */
  .hero-copy {
    order: 0;
  }
  .hero-mockup {
    order: 1;
  }
  .lede {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-stats {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .show-row,
  .show-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .show-row .show-copy {
    order: 2;
  }
  .show-row .phone {
    order: 1;
  }
  .show-copy p {
    margin-inline: auto;
  }
  /* center the checklist block but keep each ✓ glued to its own line */
  .show-row .show-list {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-line {
    width: 2px;
    height: 40px;
    flex: none;
    margin: 0;
    background: linear-gradient(180deg, var(--p2), transparent);
  }
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-links,
  .nav .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    z-index: 20;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
}

/* ---- ClassNotes-specific mockup pieces ---- */
.mock-clean {
  margin-top: 10px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.badge-alt {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.mock-q {
  margin: 12px 4px;
  color: var(--text-h);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.mock-answers {
  display: flex;
  gap: 8px;
}
.mock-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.mock-btn.miss {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.mock-btn.hit {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

/* Showcase checklists + live-typing cursor */
.show-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.show-list li {
  padding-left: 26px;
  position: relative;
  margin: 8px 0;
  color: var(--text);
}
.show-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 800;
}
.mock-cursor {
  display: inline-block;
  color: #22d3ee;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Pricing extras */
.plan-annual {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
#proNotify:disabled {
  opacity: 0.75;
  cursor: default;
}

/* ================= Hero demo — looping product movie ================= */
.demo {
  position: relative;
  height: calc(100% - 42px);
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.scene.on {
  opacity: 1;
}
.scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 2px;
}

/* fade-up at --d seconds after the scene starts */
.fu {
  opacity: 0;
}
.scene.on .fu {
  animation: demoFadeUp 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes demoFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Scene 1 — a note typing itself */
.demo-note {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: #fff;
  min-height: 66px;
}
.scene .type {
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
}
.scene.on .type {
  animation: demoType 1.1s steps(30, end) 0.3s forwards;
}
@keyframes demoType {
  from { max-width: 0; }
  to { max-width: 100%; }
}
.caret {
  width: 2px;
  height: 15px;
  background: var(--p1);
  margin-left: 2px;
  animation: demoCaret 0.8s steps(1) infinite;
  flex: none;
}
@keyframes demoCaret {
  50% { opacity: 0; }
}
.demo-suggest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 14px;
  padding: 11px 12px;
}
.demo-suggest strong {
  display: block;
  color: #fff;
  font-size: 13px;
}
.ds-meta {
  font-size: 11px;
  color: var(--muted);
}
.ds-btn {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.scene.on .ds-btn {
  animation: demoPress 0.35s ease 2.6s;
}
@keyframes demoPress {
  50% { transform: scale(0.88); }
}

/* Scene 3 — flashcard flip + got-it press + confetti */
.dflip {
  perspective: 700px;
  height: 150px;
}
.dflip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.scene.on .dflip-inner {
  animation: demoFlip 0.6s ease 1s forwards;
}
@keyframes demoFlip {
  to { transform: rotateY(180deg); }
}
.dface {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
}
.dface p {
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.dback {
  transform: rotateY(180deg);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}
.dtag {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.scene.on .demo-hit {
  animation: demoPress 0.35s ease 2.2s;
}
.confetti {
  position: absolute;
  left: 50%;
  bottom: 84px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
}
.scene.on .confetti i {
  animation: demoConf 1s ease-out 2.5s forwards;
}
@keyframes demoConf {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* progress dots */
.demo-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s, transform 0.3s;
}
.demo-dot.on {
  background: var(--p1);
  transform: scale(1.3);
}

/* ===== iPhone-style hardware details (Dynamic Island, status bar, home bar) ===== */
.p-island {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.07);
}
.phone.small .p-island {
  top: 20px;
  width: 72px;
  height: 20px;
}
.p-status {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
}
.p-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-left: 8px;
}
.p-icons {
  height: 11px;
  width: auto;
}
.phone.small .p-status {
  top: 9px;
  left: 10px;
  right: 10px;
  height: 20px;
  font-size: 11px;
}
.phone.small .p-icons {
  height: 9px;
}
/* Screen hosts the status bar + home indicator overlays. */
.phone-screen {
  position: relative;
  padding-top: 48px;
}
.phone.small .phone-screen {
  padding-top: 38px;
}
.phone-screen::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 2;
}
