/* Singbud homepage. From the approved design handoff: near-white ground with pale cyan waves, navy text,
   teal actions, one coral accent, pill buttons, Outfit and Lexend. The blog and tool pages still use css/styles.css. */
:root {
  --bg: #fdfefe;
  --bg-2: #f1fbfd;
  --wave: #d3f6fb;
  --wave-2: #e8fbfd;
  --wave-3: #c4f3f8;
  --surface: #ffffff;
  --ink: #111640;
  --ink-soft: #2c3260;
  --muted: #565d84;
  --line: #e3e8f1;
  --teal: #17b6c2;
  --action: #0b7f8a;
  --action-2: #096d77;
  --teal-text: #0a7580;
  --teal-soft: #c9f1f3;
  --coral: #f4594b;
  --phone-frame: #1b2040;
  --app-page: #f7f5f0;
  --shadow: 0 18px 40px -18px rgba(20, 40, 90, .28);
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --u: clamp(.55px, .12vh, 1px);
  --u: clamp(.55px, .12svh, 1px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; font-weight: 300; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
strong { font-weight: 500; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.018em; }
h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { position: relative; overflow-x: clip; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 80; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 500; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.placeholder { background: #fff3c4; color: var(--ink); border-radius: 6px; padding: 0 6px; font-family: ui-monospace, Menlo, monospace; font-size: .85em; }

section { padding-block: 64px; }
.sec-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; letter-spacing: .04em; color: var(--teal-text); margin-bottom: 10px; }
.sec-lede { margin: 16px auto 0; font-size: 1.1875rem; font-weight: 300; color: var(--ink-soft); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 48px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; border-radius: 999px; padding: 11px 26px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 12px 24px -14px var(--action); }
.btn-primary:hover { background: var(--action-2); transform: translateY(-2px); }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover, .btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--action); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn-lg { min-height: 60px; padding: 15px 36px; font-size: 1.25rem; }
.btn-lg svg { width: 24px; height: 24px; transition: transform .2s; }
.btn-lg:hover svg { transform: translateX(4px); }
.btn-link { background: none; border: 0; padding: 6px 2px; cursor: pointer; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn-link:hover { color: var(--teal-text); }

/* Header */
.head { position: sticky; top: 0; z-index: 40; background: rgba(253, 254, 254, .94); }
.nav { display: flex; align-items: center; gap: 20px; min-height: max(56px, calc(72 * var(--u))); }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; letter-spacing: -.02em; }
.logo img { width: 46px; height: auto; }
.nav-links { display: none; gap: clamp(20px, 3vw, 44px); margin-inline: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.nav-links a { color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--teal-text); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-actions .btn-ghost { display: none; }
.btn, .logo { white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; flex: none; }

/* Phone menu */
.mmenu { position: fixed; inset: 0; z-index: 60; }
.mmenu-backdrop { position: absolute; inset: 0; background: rgba(17, 22, 64, .45); opacity: 0; transition: opacity .2s; }
.mmenu-panel { position: absolute; left: 0; right: 0; top: 0; max-height: 100dvh; overflow-y: auto; background: var(--bg); padding: 8px 16px 24px; border-radius: 0 0 26px 26px; transform: translateY(-16px); opacity: 0; transition: transform .2s, opacity .2s; }
.mmenu.is-open .mmenu-backdrop { opacity: 1; }
.mmenu.is-open .mmenu-panel { transform: none; opacity: 1; }
.mmenu-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.mmenu-links { list-style: none; margin: 8px 0 0; padding: 0; }
.mmenu-links li + li { border-top: 1px solid var(--line); }
.mmenu-links a { display: block; padding: 13px 2px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.mmenu-actions { display: grid; gap: 8px; justify-items: center; margin-top: 18px; }
.mmenu-actions .btn { width: 100%; }

/* Hero */
.hero-band { position: relative; }
.hero-wave { position: absolute; right: 0; bottom: -40px; width: min(38vw, 560px); height: 300px; pointer-events: none; }
.hero-wave-left { position: absolute; left: 0; bottom: -70px; width: min(30vw, 440px); height: 180px; pointer-events: none; }
/* The first screen always ends with the cards and the feature row, so everything in it scales with window height.
   Below 1000px the order is copy, cards, features, then the app picture. */
.first { position: relative; display: flex; flex-direction: column; }
.hero-band, .hero { display: contents; }
.hero-copy { order: 1; padding: calc(28 * var(--u)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.occasions { order: 2; }
.feature-band { order: 3; }
.stage { order: 4; margin-top: 28px; margin-bottom: 8px; align-self: center; width: calc(100% - 32px) !important; }
.hero-copy { min-width: 0; position: relative; z-index: 2; }
h1 { font-weight: 800; font-size: max(34px, min(12.4vw, calc(76 * var(--u)))); line-height: 1.02; letter-spacing: -.018em; margin: 0 0 calc(36 * var(--u)); white-space: nowrap; text-wrap: nowrap; }
.swoosh { position: relative; white-space: nowrap; }
.swoosh svg { position: absolute; left: -2%; bottom: -.2em; width: 86%; height: .32em; overflow: visible; }
.lede { font-size: max(15px, calc(19 * var(--u))); font-weight: 300; line-height: 1.45; max-width: 34ch; margin: 0 0 calc(22 * var(--u)); }
.hero-copy .btn-lg { width: 100%; min-height: max(46px, calc(60 * var(--u))); padding-block: 8px; font-size: max(16px, calc(20 * var(--u))); }
.hero-alt { display: inline-block; margin-top: calc(16 * var(--u)); font-size: max(13.5px, calc(16 * var(--u))); }

/* Stage: placed in % of a fixed-ratio box, so it scales as one piece */
.stage { position: relative; width: 100%; aspect-ratio: 1 / .86; container-type: inline-size; }
.stage > * { position: absolute; }
.blob { left: 10%; right: -4%; bottom: -5%; height: 26%; background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--wave) 0%, var(--wave-2) 45%, transparent 72%); }
.spark { width: 9%; color: var(--teal); overflow: visible; }
.spark.s1 { left: 18%; top: 22%; }
.spark.s2 { left: 90%; top: 6%; transform: scaleX(-1); }
.phone { background: var(--phone-frame); border-radius: 5.6cqw; padding: 1.3cqw; box-shadow: var(--shadow); }
.phone-song img, .phone-voice img { filter: saturate(.55) brightness(1.03); }
.phone .screen { height: 100%; background: var(--app-page); border-radius: 4.5cqw; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-song { display: none; }
.phone-lesson { left: 31%; top: 1%; width: 43%; height: 97%; z-index: 3; }
.phone-voice { left: 70%; top: 14%; width: 31%; height: 74%; transform: rotate(8deg); z-index: 2; }
.mascot { left: -2%; top: 38%; width: 37%; height: auto; z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
  .phone-lesson { animation: float 6s ease-in-out infinite; }
  .mascot { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes float { 50% { translate: 0 -1cqw; } }
  @keyframes bob { 50% { rotate: -3deg; translate: 0 -.6cqw; } }
}

/* Occasion cards: swipe row on phones */
.occasions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: max(12px, calc(18 * var(--u))) 6px; }
.occasion { position: relative; display: block; width: 100%; border-radius: 18px; overflow: hidden; aspect-ratio: 362 / 180; max-height: max(72px, calc(96 * var(--u))); background: var(--bg-2); container-type: inline-size; }
.occasion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .5s; }
.occasion:hover img { transform: scale(1.05); }
.pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: min(3.2cqw, calc(7 * var(--u))); height: min(15cqw, calc(36 * var(--u))); width: max-content; max-width: 96%; padding-inline: 3.6cqw; display: flex; align-items: center; justify-content: center; gap: 2.6cqw; background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: max(10px, min(6.4cqw, calc(16 * var(--u)))); border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(20, 30, 70, .35); }
.pill svg { --ink: var(--teal-text); --teal: var(--teal-text); --sun: var(--teal-text); display: none; width: 1.4em; height: 1.4em; flex: none; }

/* Feature row: part of the first screen */
.feature-band { position: relative; padding-block: calc(14 * var(--u)) 0; }
.ground-wave { display: none; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.feature-band .wrap { position: relative; z-index: 1; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)) 10px; margin: 0 auto; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; line-height: 1.15; min-width: 0; }
.feat-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: #E3F7F8; color: var(--teal-text); border-radius: 10px; }
.feat-ico svg { width: 19px; height: 19px; }

/* How it works */
.how { background: var(--bg-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--surface); border-radius: 26px; padding: 24px 22px 28px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.step-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 14px; }
.step p { margin-top: 8px; color: var(--ink-soft); }
.step-shot { width: 62%; max-width: 250px; margin: auto auto 0; background: var(--phone-frame); border-radius: 30px; padding: 7px; box-shadow: var(--shadow); }
.step-shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
.step { justify-content: flex-start; }
.step p { margin-bottom: 22px; }

/* Your song, line by line */
.lesson-grid { display: grid; gap: 36px; }
.ways { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.ways li { background: var(--bg-2); border-radius: 999px; padding: 7px 16px; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; }
.lesson-copy .sec-lede { margin-left: 0; }
.lesson-steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; display: grid; }
.lesson-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.lesson-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); font-family: var(--font-display); font-weight: 700; }
.lesson-steps li:last-child::before { background: var(--action); color: #fff; }
.lesson-steps strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; }
.lesson-steps span { color: var(--ink-soft); font-size: 1rem; }
.lesson-stage { background: var(--bg-2); border-radius: 26px; padding: 26px 20px; }
.lesson-card { width: 100%; max-width: 340px; height: auto; margin: 0 auto; border-radius: 22px; box-shadow: var(--shadow); }
.lesson-side h3 { margin-top: 26px; }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 300; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 13l5 5L20 6.5' fill='none' stroke='%230a7580' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.lesson-note { margin-top: 16px; font-size: .9375rem; color: var(--muted); }

/* Pitch test */
.demo { background: var(--bg-2); }
.test-card { max-width: 900px; margin: 0 auto; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 8px; }
.test-bud { display: flex; justify-content: center; }
.test-bud .bud-stage { width: 120px; }
.bud-stage svg { width: 100%; height: auto; overflow: visible; }
.test-body { min-width: 0; }
.test-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.test-view > .btn { width: 100%; }
.test-status { font-size: 1.125rem; margin-bottom: 18px; }
.test-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.test-progress { font-weight: 400; color: var(--muted); font-size: .95rem; }
.dots { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.dots li { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); background: #fff; transition: background-color .2s; }
.dots li.is-now { background: var(--teal-soft); }
.dots li.is-hit { background: var(--teal); }
.dots li.is-miss { background: var(--coral); }
.test-prompt { font-size: 1.625rem; font-weight: 700; margin-bottom: 14px; }
.chart-wrap { position: relative; border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.chart { width: 100%; height: 200px; }
.chart-legend { position: absolute; right: 12px; top: 10px; display: flex; gap: 14px; font-size: .85rem; font-weight: 400; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 14px; height: 4px; border-radius: 4px; }
.lg-target::before { background: var(--teal); }
.lg-you::before { background: var(--coral); height: 10px; width: 10px; border-radius: 50%; }
.test-hint { min-height: 2.2em; margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; text-align: center; }
.test-hint.is-good { color: var(--teal-text); }
.test-controls { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.test-controls[aria-disabled="true"] { visibility: hidden; }
.result { text-align: center; }
.result-score { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; }
.result-tier { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; }
.result-body { margin: 4px auto 0; max-width: 42ch; }
.result-distance { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.result-card { width: 100%; max-width: 380px; height: auto; margin: 22px auto 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.result-actions-quiet { margin-top: 10px; gap: 22px; }
.toast { min-height: 1.6em; margin-top: 8px; font-weight: 500; color: var(--teal-text); }
.demo-more { max-width: 60ch; margin: 22px auto 0; text-align: center; color: var(--ink-soft); font-size: 1rem; }
.demo-more a { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 4px; }

/* Also inside */
.also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.also-list li { padding: 22px; border-radius: 26px; background: var(--bg-2); }
.also-list p { margin-top: 6px; color: var(--ink-soft); font-size: 1rem; }

/* Pricing */
.pricing { background: var(--bg-2); }
.plans { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 26px; box-shadow: 0 0 0 1px var(--line); padding: 26px 24px; }
.plan-life { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.plan-life .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 13l5 5L20 6.5' fill='none' stroke='%2353d9e2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-life .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.plan-life .btn-primary:hover { background: var(--teal-soft); }
.plan-badge { position: absolute; right: 20px; top: 26px; font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink); background: var(--teal-soft); padding: 4px 12px; border-radius: 999px; }
.plan-price { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1; letter-spacing: -.02em; }
.plan-price small { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan-list { margin: 20px 0 26px; flex: 1; align-content: start; }
.compare-wrap { max-width: 620px; margin: 40px auto 0; }
.compare-wrap h3 { text-align: center; margin-bottom: 12px; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 11px 2px; border-top: 1px solid var(--line); text-align: left; font-weight: 300; }
.compare td { text-align: right; }
.compare .is-us th, .compare .is-us td { font-weight: 500; color: var(--teal-text); }
.compare-note { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--bg-2); border-radius: 22px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { flex: none; transition: transform .18s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); }

/* Last call */
.start { position: relative; padding-block: 72px 110px; text-align: center; background: var(--bg-2); }
.start .wrap { position: relative; z-index: 1; }
.start .btn-lg { width: 100%; margin-top: 26px; }
.start-fine { margin-top: 14px; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--bg); padding: 44px 0 28px; border-top: 1.5px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.footer-about { grid-column: 1 / -1; }
.footer-about p { margin-top: 10px; max-width: 38ch; color: var(--muted); font-weight: 400; font-size: 1rem; }
.footer-col h2 { font-family: var(--font-display); font-weight: 700; font-size: .875rem; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 5px 0; font-weight: 400; font-size: .9688rem; line-height: 1.3; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--teal-text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 32px; padding-top: 20px; border-top: 1.5px solid var(--line); font-size: .9063rem; font-weight: 400; color: var(--muted); }

@media (min-width: 560px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .nav-actions .btn-ghost { display: inline-flex; }
  .hero-copy { padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }
  .stage { width: calc(100% - 48px) !important; }
  .hero-copy .btn-lg, .start .btn-lg { width: auto; padding-inline: 36px; }
  .also-list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  /* The design's full stage */
  .stage { aspect-ratio: 980 / 470; }
  .blob { left: 20%; right: -2%; bottom: -9%; height: 26%; }
  .spark { width: 6%; }
  .spark.s1 { left: 37%; top: 1%; }
  .spark.s2 { left: 92%; top: 4%; }
  .phone { border-radius: 3.4cqw; padding: .75cqw; }
  .phone .screen { border-radius: 2.7cqw; }
  .phone-song { display: block; left: 29%; top: 7%; width: 19.5%; height: 86%; transform: rotate(-8deg); z-index: 1; }
  .phone-lesson { left: 46%; top: 0; width: 25%; height: 100%; }
  .phone-voice { left: 69%; top: 7%; width: 19.5%; height: 86%; transform: rotate(8deg); }
  .mascot { left: 0; top: 32%; width: 27.5%; }
}
@media (min-width: 760px) {
  section { padding-block: 84px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features li { justify-content: center; padding: 0 12px; font-size: max(14px, calc(17 * var(--u))); gap: max(8px, calc(14 * var(--u))); }
  .feat-ico { width: max(34px, calc(60 * var(--u))); height: max(34px, calc(60 * var(--u))); border-radius: max(10px, calc(16 * var(--u))); }
  .feat-ico svg { width: max(20px, calc(34 * var(--u))); height: max(20px, calc(34 * var(--u))); }
  .features li + li { border-left: 1.5px solid var(--line); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-shot { width: 76%; }
  .occasions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .occasion { border-radius: 26px; max-height: max(72px, calc(150 * var(--u))); }
  .pill { font-size: max(10px, min(5.6cqw, calc(16 * var(--u)))); }
  .pill svg { display: block; }
  .sec-head { margin-bottom: 48px; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .menu-btn, .mmenu { display: none !important; }
  .hero-band { display: block; position: relative; }
  .hero { display: grid; position: relative; z-index: 1; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; align-items: center; padding-block: calc(44 * var(--u)) calc(10 * var(--u)); }
  .hero-copy { padding: calc(12 * var(--u)) 0 0; }
  .feature-band { padding-bottom: 70px; }
  .ground-wave { display: block; }
  .stage { margin: 0; align-self: center; justify-self: end; width: min(100%, calc(860 * var(--u))) !important; }
  h1 { font-size: max(34px, min(5.4vw, calc(76 * var(--u)))); }
  .lede { font-size: max(15px, calc(20 * var(--u))); }
  .lesson-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .test-card { grid-template-columns: 170px 1fr; gap: 30px; padding: 36px; align-items: center; }
  .test-bud .bud-stage { width: 160px; }
  .also-list { grid-template-columns: repeat(3, 1fr); }
  .footer { padding: 56px 0 32px; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: auto; }
}
/* Short windows: drop the extras so the cards and features still fit */
@media (max-height: 580px) {
  .hero-alt { display: none; }
}
@media (max-height: 560px) {
  .head { position: static; }
  html { scroll-padding-top: 12px; }
}
@media (max-width: 759px) and (max-height: 540px) { h1 { margin-bottom: calc(24 * var(--u)); } }
/* Small phones, such as an iPhone SE with the browser bars showing */
@media (max-width: 759px) and (max-height: 620px) {
  .occasion { max-height: 60px; }
}
/* Very narrow phones: keep the logo and buttons from touching */
@media (max-width: 400px) {
  .nav { gap: 10px; }
  .logo { font-size: 1.375rem; gap: 6px; }
  .logo img { width: 38px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 14px; font-size: .9375rem; }
  .menu-btn { width: 40px; height: 40px; }
}
