:root {
  /* Midnight navy palette (Dan, 2026-11-02). Chartreuse is for buttons only. */
  --paper: #23214F;         /* page background: midnight navy */
  --paper-2: #1B1A42;       /* deeper navy bands */
  --card: #2E2C62;
  --ink: #E7EEF2;           /* main text: ice blue */
  --ink-2: #B9C0D6;
  --line: #45437A;
  --edge: #6E6CA6;          /* stronger borders */
  --accent: #9DB4EC;        /* light electric blue: accents, prices, links */
  --accent-bright: #9DB4EC; /* lit piano keys */
  --electric: #32559A;
  --cta: #E5DF49;           /* chartreuse: CTAs only */
  --cta-hover: #F0EB7A;
  --cta-text: #23214F;
  --good: #7FD3A3;
  --bad: #FF9C8F;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Rethink Sans", system-ui, sans-serif;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 22px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.05rem var(--display); letter-spacing: -.03em; }
.brand em { font-style: normal; color: var(--accent); }
.mark { width: 40px; height: 40px; flex: none; }
.nav nav { display: flex; gap: 30px; }
.nav nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cta); color: var(--cta-text);
  font: 700 1rem var(--body); padding: 15px 26px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(.97); }
.btn-small { padding: 11px 20px; font-size: .95rem; }

/* hero */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px 88px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 600; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(157,180,236,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(157,180,236,0); } 100% { box-shadow: 0 0 0 0 rgba(157,180,236,0); } }
h1 { font-family: var(--display); font-size: clamp(3.1rem, 7.4vw, 6.6rem); line-height: .95; letter-spacing: -.045em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 33rem; font-size: 1.2rem; color: var(--ink-2); margin: 28px 0 32px; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 34rem; }
.signup input {
  flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--edge); background: var(--card); border-radius: 999px;
  padding: 14px 22px; font: 500 1rem var(--body); color: var(--ink);
}
.signup input::placeholder { color: #9298BC; }
.form-note { flex-basis: 100%; margin: 4px 0 0 6px; font-size: .9rem; color: var(--ink-2); }
.form-note.ok { color: var(--good); font-weight: 600; }
.form-note.err { color: var(--bad); font-weight: 600; }

/* demo card */
.demo {
  position: relative; background: var(--electric); color: #fff; border-radius: 28px; padding: 30px;
  box-shadow: 0 40px 70px -30px rgba(8,8,30,.7);
  transform: rotate(1.2deg);
}
.demo::after { /* staff lines */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(255,255,255,.06) 21px 22px);
}
.demo > * { position: relative; z-index: 1; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; }
.demo-kicker, .score { margin: 0; font-weight: 500; font-size: .9rem; color: #D3DCF2; }
.demo-title { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; margin: 8px 0 22px; }
.play {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 20px; border-radius: 16px;
  background: var(--cta); color: var(--cta-text); border: 0; cursor: pointer; font: 700 1.05rem var(--body);
  transition: background .15s, transform .15s;
}
.play:hover { background: var(--cta-hover); }
.play:active { transform: scale(.98); }
.play svg { width: 26px; height: 26px; }
.play.playing svg { animation: beat .5s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.18); } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.choice {
  padding: 14px 12px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; font: 600 1rem var(--body); cursor: pointer; transition: background .15s, border-color .15s;
}
.choice:hover:not(:disabled) { border-color: #fff; background: rgba(255,255,255,.1); }
.choice:disabled { cursor: default; opacity: .8; }
.choice.correct { background: #2E8B5A; border-color: #2E8B5A; color: #fff; opacity: 1; }
.choice.wrong { background: #C4362A; border-color: #C4362A; color: #fff; opacity: 1; }
.keys { position: relative; display: flex; height: 64px; gap: 2px; margin-top: 4px; }
.key.white { flex: 1; background: #EEF2F6; border-radius: 0 0 5px 5px; transition: background .2s; }
.key.black { position: absolute; top: 0; width: var(--bw); height: 60%; background: #1B1A42; border-radius: 0 0 4px 4px; z-index: 2; box-shadow: 0 0 0 1.5px var(--electric); transition: background .2s; }
.key.lit { background: var(--cta-text); }
.key.black.lit { background: var(--accent); }
.choices .choice:last-child:nth-child(odd) { grid-column: span 2; }
.feedback { min-height: 1.6em; margin: 16px 0 0; color: #E6ECF8; }
.feedback strong { color: #fff; }
.next {
  margin-top: 12px; background: none; border: 0; color: #fff; font: 600 1rem var(--body); cursor: pointer;
  padding: 6px 0; text-decoration: underline; text-underline-offset: 4px;
}

/* strip */
.strip { border-block: 1.5px solid var(--line); background: var(--paper-2); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.strip ul { display: flex; gap: 0; margin: 0; padding: 20px 0; list-style: none; flex: none; }
.strip li { display: flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.strip li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
  .strip ul[aria-hidden] { display: none; }
  .strip ul { flex-wrap: wrap; justify-content: center; padding: 18px 16px; }
}

/* sections */
.section { max-width: 1240px; margin: 0 auto; padding: 110px 32px 0; }
.section-head { max-width: 860px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; }
.section-head p { max-width: 40rem; margin: 18px 0 0; color: var(--ink-2); font-size: 1.15rem; }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.test-card { position: relative; overflow: hidden; background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r); padding: 28px 28px 110px; transition: transform .2s ease, box-shadow .2s ease; }
.test-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--electric); }
.test-card h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; letter-spacing: -.03em; margin: 14px 0 12px; }
.test-card p { margin: 0; color: var(--ink-2); }
.tag { display: inline-block; font: 600 .8rem var(--body) !important; color: var(--accent) !important; border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 10px; }
.wave {
  position: absolute; left: 0; right: 0; bottom: 22px; height: 54px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 54' preserveAspectRatio='none'%3E%3Cpath d='M0 27 Q 25 2 50 27 T 100 27 T 150 27 T 200 27 T 250 27 T 300 27 T 350 27 T 400 27' fill='none' stroke='%239DB4EC' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.wave-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 54' preserveAspectRatio='none'%3E%3Cpath d='M0 27 Q 12 4 25 27 T 50 27 T 75 27 T 100 27 T 125 27 T 150 27 T 175 27 T 200 27 T 225 27 T 250 27 T 275 27 T 300 27 T 325 27 T 350 27 T 375 27 T 400 27' fill='none' stroke='%23E7EEF2' stroke-width='2'/%3E%3C/svg%3E"); }
.wave-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 54' preserveAspectRatio='none'%3E%3Cpath d='M0 27 Q 20 0 40 27 T 80 27 Q 90 40 100 27 T 120 27 Q 145 -2 170 27 T 220 27 Q 230 36 240 27 T 260 27 Q 290 4 320 27 T 380 27 L 400 27' fill='none' stroke='%239DB4EC' stroke-width='2'/%3E%3C/svg%3E"); }

.practice-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.ladder li {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 12px; font-weight: 500;
  background: var(--card); border: 1.5px solid var(--line);
}
.ladder li span { font: 700 .9rem var(--display); width: 26px; color: var(--accent); }
.ladder li:nth-child(-n+3) { border-color: var(--edge); }
.ladder li:nth-child(-n+3)::after { content: "Free"; margin-left: auto; font-weight: 600; font-size: .8rem; color: var(--good); }
.ladder li:nth-child(n+4)::after { content: "Pro"; margin-left: auto; font-weight: 600; font-size: .8rem; color: var(--ink-2); }
.features { display: grid; gap: 18px; }
.feature { border-top: 1.5px solid var(--edge); padding-top: 18px; }
.feature h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); max-width: 32rem; }

.videos { max-width: none; padding-left: 0; padding-right: 0; }
.videos-inner {
  max-width: 1240px; margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  background: var(--paper-2); color: var(--ink); border-radius: 32px; border: 1.5px solid var(--line);
}
.videos .section-head { margin-bottom: 0; }
.videos .section-head p { color: var(--ink-2); }

.phone { justify-self: center; width: 230px; aspect-ratio: 9/18.5; border-radius: 36px; padding: 10px; background: #000; box-shadow: 0 0 0 2px #45437A, 0 40px 70px -30px rgba(0,0,0,.8); transform: rotate(-4deg); }
.phone-screen { height: 100%; border-radius: 28px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 16px 18px; text-align: center; }
.phone-q { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.phone-ring { width: 86px; height: 86px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--accent); display: grid; place-items: center; font: 700 1.8rem var(--display); animation: spin 3s linear infinite; }
.phone-ring span { animation: spin 3s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone-keys { width: 100%; height: 46px; background: repeating-linear-gradient(90deg, #EEF2F6 0 calc(100%/7 - 2px), var(--paper) calc(100%/7 - 2px) calc(100%/7)); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.phone-a { margin: 0; font: 700 1.1rem var(--body); color: var(--accent); animation: reveal 3s steps(1) infinite; }
@keyframes reveal { 0% { opacity: 0; } 66% { opacity: 1; } }
.phone-url { margin: 0; font-weight: 600; font-size: .72rem; color: var(--ink-2); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { position: relative; border: 1.5px solid var(--edge); border-radius: var(--r); padding: 32px; background: var(--card); }
.plan h3 { font: 700 1.1rem var(--display); letter-spacing: -.02em; }
.price { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 3rem; letter-spacing: -.04em; line-height: 1; margin: 14px 0 20px; }
.price s { color: #9298BC; font-size: .55em; vertical-align: .35em; margin-right: 4px; }
.price small { font: 500 1rem var(--body); color: inherit; opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); }
.plan li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.plan-pro { background: var(--electric); color: #fff; border-color: var(--electric); }
.plan-pro .price { color: #fff; }
.plan-pro li { border-color: rgba(255,255,255,.25); }
.plan-pro li::before { color: #fff; }
.plan-pro .price s { color: #C3D0EE; }
.plan-note { font-size: .95rem; margin: 0 0 22px; color: #E6ECF8; }
.ribbon { position: absolute; top: -14px; right: 24px; margin: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .85rem; padding: 5px 14px; border-radius: 999px; }

.faq-list { max-width: 820px; }
details { border-top: 1.5px solid var(--edge); }
details:last-child { border-bottom: 1.5px solid var(--edge); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font: 600 1.2rem var(--display); letter-spacing: -.03em; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; max-width: 40rem; color: var(--ink-2); }

.join { max-width: 1240px; margin: 110px auto 0; padding: 0 32px; }
.join { text-align: left; }
.join form { max-width: 34rem; }
.join { background: none; }
.join > * { position: relative; }
.join { padding-top: 0; }
#join { scroll-margin-top: 20px; }
.join h2 { font-family: var(--display); font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.join > p { font-size: 1.2rem; color: var(--ink-2); max-width: 36rem; margin: 18px 0 28px; }

.foot { max-width: 1240px; margin: 110px auto 0; padding: 28px 32px 40px; border-top: 1.5px solid var(--edge); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: .92rem; color: var(--ink-2); }
.foot p { margin: 0; }

/* load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .demo { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .demo { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .demo { animation-name: rise-tilt; }
  @keyframes rise-tilt { from { opacity: 0; transform: translateY(24px) rotate(3deg); } to { transform: rotate(1.2deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .demo { transform: none; max-width: 520px; }
  .test-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .videos-inner { grid-template-columns: 1fr; border-radius: 0; }
  .plans, .faq-list { margin-left: 0; }
  .nav nav { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 16px; }
  .nav .btn-small { padding: 10px 16px; font-size: .88rem; }
  .brand span { font-size: 1rem; }
  .hero, .section, .join { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 80px; }
  .videos-inner { padding: 56px 16px; }
    .plans { grid-template-columns: 1fr; gap: 28px; }
  .demo { padding: 22px; border-radius: 22px; }
  .demo-title { font-size: 1.5rem; }
  .signup .btn { flex: 1 1 100%; }
  .strip ul { padding: 16px 0; }
  .strip li::after { margin: 0 24px; }
  .strip li { font-size: .95rem; }
  summary { font-size: 1.05rem; }
  .foot { padding: 24px 16px 32px; }
}
