/* Cantuya · Amanecer. Fonts are self-hosted subsets (Fredoka 600/700, Nunito 400/700/800). */
@font-face { font-family: Fredoka; src: url("../fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Fredoka; src: url("../fonts/fredoka-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Nunito; src: url("../fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Nunito; src: url("../fonts/nunito-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: Nunito; src: url("../fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Color tokens. Every color below reads from these; a new palette only redefines this block.
     Palette: Cielo #BFE3FF, Lila #E6D9FF, Durazno #FFD9C2, Sol #FFC93C, Mandarina #FF7A45, Azul noche #1E2A5E. */
  --sky-top: #BFE3FF;
  --sky-mid: #E6D9FF;
  --sky-low: #FFD9C2;
  --sun: #FFC93C;
  --sun-light: #FFE27A;
  --sun-rgb: 255, 201, 60;
  --accent: #FF7A45;          /* buttons, selected choice */
  --accent-rgb: 255, 122, 69;
  --accent-ink: #A0400F;      /* small accent text on the sky (4.8:1, AA) */
  --on-accent: #1E2A5E;       /* navy on Mandarina = 5.25:1; white fails at 2.59:1 */
  --text: #1E2A5E;
  --text-rgb: 30, 42, 94;
  --text-muted: #56628C;
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(30, 42, 94, 0.10);
  --good: #2F7D5F;
  --danger: #B3261E;
  --hairline: 0 0 0 1px rgba(30, 42, 94, 0.05);   /* no offset/drop shadows anywhere */
  --display: Fredoka, "Avenir Next Rounded", "SF Pro Rounded", system-ui, sans-serif;
  --sans: Nunito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
/* First Christmas without them: a quieter dusk sky, less saturated. */
html[data-variant="first-christmas"] {
  --sky-top: #C9D3EA;
  --sky-mid: #DCD6EA;
  --sky-low: #EEDDD6;
  --sun: #F2CC7A;
  --sun-light: #F8E2AE;
  --sun-rgb: 242, 204, 122;
  --accent: #EAA27F;
  --accent-rgb: 234, 162, 127;
  --accent-ink: #8E4A2E;
  --on-accent: #1E2A5E;
  --text: #2A3358;
  --text-rgb: 42, 51, 88;
  --text-muted: #5A6283;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { min-height: 100%; background: var(--sky-low) linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 100%); }
body { min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
.noscript { margin: 24px; padding: 16px; background: var(--surface-strong); border-radius: 16px; }

.shell { width: min(440px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; min-height: 44px; }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand small, .brand strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-toggle { border: 0; background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-weight: 700; font-size: 14px; }

.eyebrow { margin: 0 0 8px; color: var(--accent-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, .song-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0; color: var(--text); }
h1 { font-size: 38px; }
h1 em { font-style: normal; color: var(--accent-ink); }
.lede { margin: 14px 0 0; color: var(--text); font-size: 17.5px; }
.micro { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.tagline { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text-muted); }

/* Sunrise scene (sun + cloud) replaces the vinyl disc on the landing and generating screens. */
.sky-scene { position: relative; width: 168px; height: 128px; margin: 18px 0 10px; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)); }
.sky-scene .sun { position: absolute; left: 50%; width: 64px; height: 64px; margin-left: -32px; bottom: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--sun-light), var(--sun) 60%, var(--accent) 120%); box-shadow: 0 0 36px rgba(var(--sun-rgb), 0.75); }
.sky-scene .cloud { position: absolute; left: 14%; right: 14%; bottom: 14px; height: 30px; background: var(--white); border-radius: 30px; }
.sky-scene .cloud::before, .sky-scene .cloud::after { content: ""; position: absolute; background: var(--white); border-radius: 50%; }
.sky-scene .cloud::before { width: 40px; height: 40px; left: 18%; bottom: 12px; }
.sky-scene .cloud::after { width: 52px; height: 52px; left: 42%; bottom: 8px; }
.sky-scene.hero { width: 100%; height: 190px; margin-top: 24px; }
.sky-scene.hero .sun { width: 92px; height: 92px; margin-left: -46px; bottom: 40px; }
.sky-scene.hero .cloud { height: 40px; bottom: 22px; left: 22%; right: 22%; }
/* Signature: while the song is being made, the sun rises out of the clouds. */
.sky-scene.rising { width: 100%; height: 170px; }
.sky-scene.rising .sun { bottom: -40px; animation: sunrise 90s cubic-bezier(.2, .7, .3, 1) forwards, glow 3.2s ease-in-out infinite; }
@keyframes sunrise { to { bottom: 78px; } }
@keyframes glow { 50% { box-shadow: 0 0 56px rgba(var(--sun-rgb), 0.95); } }

.btn, .choice, .back { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 999px; border: 0; text-decoration: none; text-align: center; }
/* Flat buttons: no drop shadow. */
.btn { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px; margin-top: 18px; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(0.985); }
.btn.secondary { background: var(--surface-strong); color: var(--text); box-shadow: var(--hairline); font-weight: 700; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.choice { justify-content: flex-start; background: var(--surface-strong); color: var(--text); font-weight: 700; padding: 14px 20px; margin: 10px 0; text-align: left; box-shadow: var(--hairline); transition: background .15s ease, color .15s ease, transform .15s ease; }
.choice:hover { background: var(--white); }
.choice.on { background: var(--accent); color: var(--on-accent); box-shadow: none; animation: picked .25s ease; }
.choice.on::before { content: "✓"; margin-right: 10px; font-weight: 800; }
@keyframes picked { 50% { transform: scale(0.98); } }
.choice .badge, .version-tab .badge { margin-left: auto; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(var(--sun-rgb), 0.4); color: var(--text); }
.choice.on .badge { background: rgba(255, 255, 255, 0.45); color: var(--on-accent); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; margin: 14px 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--sun-rgb), 0.5); font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); }
.steps p { margin: 2px 0 0; color: var(--text-muted); font-size: 15px; }
.price-block, .sheet, .panel { margin-top: 28px; padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--hairline); }
.price-block strong { display: block; font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.price-block p { color: var(--text-muted); margin: 8px 0 0; }
.price-block .price-note { font-size: 14px; }
.included { display: inline-block; margin: 10px 0 0; padding: 5px 10px; border-radius: 8px; background: var(--sun); color: var(--text); font-weight: 800; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.price-block p.included { color: var(--text); }
.check .included, .radio .included { align-self: flex-start; margin: 6px 0 4px; color: var(--text); }
.price-row, .check, .radio { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.price-row span, .check span, .radio span { color: var(--text-muted); }
.check strong, .radio strong { font-weight: 800; }
footer.fine { margin-top: 32px; color: var(--text-muted); font-size: 13px; }
footer.fine p { margin: 6px 0; }

.progress { height: 8px; background: rgba(255, 255, 255, 0.6); border-radius: 99px; margin: 8px 0 20px; overflow: hidden; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--accent)); border-radius: inherit; transition: width .3s ease; }
.step-count { color: var(--text-muted); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.quiz h1 { font-size: 32px; margin: 4px 0 16px; }
label.field { display: block; margin: 12px 0; font-size: 14px; font-weight: 700; color: var(--text-muted); }
input[type="text"], input[type="email"], textarea, select { width: 100%; margin-top: 6px; border-radius: 18px; border: 1px solid transparent; background: var(--surface-strong); padding: 14px 16px; min-height: 54px; color: var(--text); box-shadow: var(--hairline); }
input::placeholder, textarea::placeholder { color: rgba(var(--text-rgb), 0.4); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
textarea { min-height: 140px; resize: vertical; }
.help { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.text-link { display: inline; width: auto; min-height: 0; margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--accent-ink); font-size: 14px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.row-nav { display: grid; grid-template-columns: 96px 1fr; gap: 10px; margin-top: 18px; }
.back { background: var(--surface-strong); color: var(--text); font-weight: 700; box-shadow: var(--hairline); }
.error { background: rgba(255, 255, 255, 0.85); border-left: 4px solid var(--danger); color: var(--danger); padding: 12px 14px; border-radius: 14px; margin: 12px 0; font-weight: 700; }

.stage { margin-top: 14px; padding: 0; list-style: none; }
.stage li { display: flex; gap: 12px; align-items: center; margin: 12px 0; color: var(--text-muted); font-weight: 700; }
.stage li.on { color: var(--text); }
.stage li.done { color: var(--good); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.stage li.on .dot { background: var(--sun); box-shadow: 0 0 0 4px rgba(var(--sun-rgb), 0.35); }

/* Player: a soft sun you press to play. */
.player { text-align: left; }
.player .disc-wrap { position: relative; width: 220px; height: 220px; margin: 6px auto 18px; }
.disc-wrap { position: relative; width: 148px; height: 148px; }
.disc { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 46%, rgba(255, 255, 255, 0.4) 47% 62%, rgba(255, 255, 255, 0.18) 63% 70%, rgba(255, 255, 255, 0) 71%); }
.disc.spin { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.label-dot { display: none; }
.player .play { position: absolute; inset: 62px; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--sun-light), var(--sun) 60%, var(--accent) 130%); color: var(--text); font-weight: 800; box-shadow: 0 0 28px rgba(var(--sun-rgb), 0.55); }
.player .play span { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.song-title { font-size: 32px; text-align: center; }
.download-mp3 { display: block; margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.download-mp3:hover { color: var(--text); }
.sung { text-align: center; color: var(--text-muted); margin: 8px 0 0; }
.scrub { margin: 18px 0 4px; }
.scrub input[type="range"] { width: 100%; height: 22px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); }
.scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); }
.scrub input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--accent); border: 0; }
.scrub input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 0; }
.times { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.whisper { text-align: center; color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.sample-cta { text-align: center; }
.lyrics { margin-top: 18px; padding: 18px 20px; border-radius: 24px; background: var(--surface); }
.lyrics .tag { color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 16px 0 4px; }
.lyrics .tag:first-child { margin-top: 0; }
.lyrics .line { margin: 3px 0; color: var(--text-muted); transition: color .2s ease; }
.lyrics .line.on { color: var(--text); font-weight: 800; }
.banner { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(var(--sun-rgb), 0.28); color: var(--text); font-size: 14.5px; }
.check input, .radio input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.check, .radio { align-items: flex-start; justify-content: flex-start; }
.check div, .radio div { display: flex; flex-direction: column; }
.panel > :first-child { border-top: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.total b { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.sheet { background: var(--white); }
.qr { width: 168px; height: auto; margin: 12px auto; display: block; background: var(--white); padding: 8px; border-radius: 12px; }
.video-stage { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 24px; }
.video-stage .line { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 8px 0; color: var(--text-muted); }
.video-stage .line.on { color: var(--text); }
.version-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.version-tab { flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
.version-tab.on::before { content: none; }
.version-tab .badge { margin: 0; }
.check.club { padding-top: 12px; }

/* ---- Funnel v2 ---------------------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.phases li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.02em; text-align: center; white-space: nowrap; }
.phases i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.65); }
.phases li.done i { background: var(--sun); }
.phases li.on i { background: linear-gradient(90deg, var(--sun), var(--accent)); }
.phases li.on { color: var(--text); }
.promise { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text); text-align: center; }

.song-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 0 0 16px; border-radius: 22px; background: var(--surface-strong); box-shadow: var(--hairline); }
.song-card-sun { flex: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--sun-light), var(--sun) 62%, var(--accent) 130%); }
.song-card-body { min-width: 0; }
.song-card-body p { margin: 0; }
.song-card-eyebrow { color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.song-card-title { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.song-card-line { font-size: 14.5px; font-style: italic; color: var(--text); line-height: 1.35; margin-top: 2px !important; }
.song-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px !important; }
.lede.small { font-size: 15.5px; margin: 0 0 12px; color: var(--text-muted); }
.quiz .lede.small { margin: -6px 0 8px; }
.quiz h1 { font-size: 28px; line-height: 1.15; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 56px; padding: 8px; border: 0; border-radius: 20px; background: var(--surface-strong); box-shadow: var(--hairline); color: var(--text); font-weight: 800; font-size: 14.5px; transition: background .15s ease, transform .15s ease; }
.tile.big { padding: 8px 8px 10px; }
.tile.on { background: var(--accent); color: var(--on-accent); animation: picked .25s ease; }
.tile-art { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 1 / 1; border-radius: 14px; background-size: cover; background-position: center; background-color: rgba(var(--sun-rgb), 0.35); }
.tile.on .tile-art { outline: 0; }
.tile-label { line-height: 1.15; }
.more { display: block; margin: 12px auto 0; text-align: center; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.how li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-muted); line-height: 1.25; }
.how b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(var(--sun-rgb), 0.55); color: var(--text); font-family: var(--display); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 0; border-radius: 999px; min-height: 44px; padding: 9px 16px; background: var(--surface-strong); box-shadow: var(--hairline); color: var(--text); font-weight: 700; font-size: 15px; transition: background .15s ease; }
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip.on::before { content: "✓ "; font-weight: 800; }
.chips.starters .chip { min-height: 36px; padding: 6px 12px; font-size: 13.5px; background: rgba(255, 255, 255, 0.55); }
.chips.moods .chip { flex: 1 1 calc(50% - 8px); text-align: left; border-radius: 18px; }
.memory { margin-top: 6px; }
.memory label.field { margin-top: 4px; }
.sub-q { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: 19px; }
.mic { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; min-height: 40px; padding: 8px 14px; background: var(--surface-strong); box-shadow: var(--hairline); color: var(--text); font-weight: 700; font-size: 14px; }
.mic i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mic.on i { animation: glow 1.2s ease-in-out infinite; }
.suggest { margin: 14px 0 4px; padding: 16px 18px; border-radius: 22px; background: var(--surface-strong); box-shadow: var(--hairline); }
.suggest p { margin: 0; }
.suggest-eyebrow { color: var(--accent-ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.suggest-title { font-family: var(--display); font-weight: 600; font-size: 21px; margin-top: 2px !important; }
.suggest-why { color: var(--text-muted); font-size: 14.5px; margin: 4px 0 6px !important; }
.voices .voice-row { justify-content: space-between; cursor: pointer; padding-right: 8px; }
.voice-play { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; min-height: 40px; padding: 6px 14px; background: rgba(var(--sun-rgb), 0.45); color: var(--text); font-weight: 800; font-size: 13px; }
.voice-play i { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.voice-play.on i { width: 9px; height: 11px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.voice-row.on .voice-play { background: rgba(255, 255, 255, 0.5); color: var(--on-accent); }
input[type="tel"] { width: 100%; margin-top: 6px; border-radius: 18px; border: 1px solid transparent; background: var(--surface-strong); padding: 14px 16px; min-height: 54px; color: var(--text); box-shadow: var(--hairline); }
.check.consent { border-top: 0; padding-top: 0; font-size: 14px; }
.row-nav.solo { grid-template-columns: 96px; }
.row-nav { align-items: center; }
.row-nav .btn { margin-top: 0; }
.choices.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices.grid2 .choice { margin: 0; min-height: 52px; padding: 10px 14px; font-size: 15px; line-height: 1.2; border-radius: 18px; }
.choices.grid2 .choice.on::before { margin-right: 6px; }
.chips.genres .chip { min-height: 40px; padding: 7px 14px; font-size: 14.5px; }
.chips.genres .chip.suggested:not(.on) { background: rgba(var(--sun-rgb), 0.35); }
.generating h1, .lyrics-step h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 10px; }

mark.theirs { background: rgba(var(--sun-rgb), 0.55); color: inherit; border-radius: 5px; padding: 0 2px; }
.lyrics .line.on mark.theirs { background: var(--sun); }
.lyrics.review .line { color: var(--text); }
.lyric-editor { min-height: 360px; font-size: 16px; line-height: 1.5; }
.stack .btn { margin-top: 12px; }
.center { text-align: center; }
.sunrise { margin: 4px 0 12px; }

.redo { margin-top: 22px; padding: 16px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--hairline); }
.redo-title { margin: 0 0 4px; font-weight: 800; }
.redo-panel { margin-top: 8px; }

.modal-back { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(var(--text-rgb), 0.45); }
.modal { width: min(420px, 100%); padding: 24px 22px 18px; border-radius: 28px; background: var(--white); text-align: center; animation: rise .25s ease; }
.modal h2 { font-size: 26px; line-height: 1.15; margin: 4px 0 10px; }
.modal-price { margin: 6px 0 0; font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.modal-note { margin: 8px 0 0; color: var(--text-muted); font-size: 14.5px; }
.deliver-now { margin: 8px 0 0; text-align: center; font-size: 15px; font-weight: 800; color: var(--text); }
.guarantee { margin: 12px 0 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--text-muted); line-height: 1.4; }
.guarantee a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.modal .text-link { display: block; margin: 14px auto 0; text-align: center; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

.checkout h1 { font-size: 30px; line-height: 1.15; }
.perks { list-style: none; padding: 0; margin: 14px 0 6px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: 700; }
.perks i { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sun); position: relative; }
.perks i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
details.extras { margin-top: 16px; padding: 4px 18px 8px; }
details.extras summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style-position: inside; }
.total.panel { margin-top: 14px; padding: 14px 20px; border-top: 0; }

/* Crossed-out list price (display only). Stripe still charges the current song / bundle price. */
.was-price { color: var(--text-muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; }
.modal-price .was-price { font-size: 26px; margin-right: 8px; letter-spacing: 0; vertical-align: middle; }
.plan-price .was-price { font-size: 16px; margin-right: 6px; }
.save-label { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(var(--sun-rgb), 0.4); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.plan-body > .save-label { align-self: flex-start; margin-top: 4px; }
.banner.deadline { margin: 0 0 14px; font-weight: 700; }
.modal .banner.deadline { margin: 8px 0 2px; }
.song-anchor { margin: 4px 0 0; color: var(--text-muted); font-size: 13.5px; font-weight: 700; }
.check.bundle { margin: 16px 0 4px; padding: 14px 16px; border: 2px solid rgba(var(--accent-rgb), 0.35); border-radius: 22px; background: var(--surface-strong); box-shadow: var(--hairline); }
.check.bundle:has(input:checked) { border-color: var(--accent); background: linear-gradient(rgba(var(--sun-rgb), 0.2), rgba(var(--sun-rgb), 0.2)), var(--white); }
.check.bundle .plan-badge { margin-bottom: 4px; }
.check.bundle .save-label { align-self: flex-start; }
.check.in-bundle { opacity: 0.55; }
.check.in-bundle input { pointer-events: none; }

/* Plans: club (featured) vs one-time. */
.plans { display: grid; gap: 10px; margin: 14px 0 4px; text-align: left; }
.plan { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 16px; border: 2px solid transparent; border-radius: 22px; background: var(--surface-strong); box-shadow: var(--hairline); color: var(--text); text-align: left; transition: border-color .15s ease, background .15s ease; }
.plan.on { border-color: var(--accent); background: var(--white); }
.plan.featured.on { background: linear-gradient(rgba(var(--sun-rgb), 0.2), rgba(var(--sun-rgb), 0.2)), var(--white); }
.plan-radio { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(var(--text-rgb), 0.35); background: var(--white); }
.plan.on .plan-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, var(--white) 50%); }
.plan-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.plan-badge { align-self: flex-start; padding: 3px 9px; border-radius: 8px; background: var(--sun); color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-head strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 22px; white-space: nowrap; }
.plan-lines { list-style: none; padding: 0; margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.35; }
.plan-lines li { margin: 2px 0; }
.plan-lines li::before { content: "· "; }
.modal.with-plans { padding-top: 20px; }
.modal.with-plans h2 { font-size: 23px; }
.lyrics-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }
.lyrics-bar .text-link { flex: none; margin: 0; }
.player .lyrics { margin-top: 8px; }
details.extras summary { display: flex; flex-direction: column; gap: 2px; list-style: none; }
details.extras summary::-webkit-details-marker { display: none; }
details.extras summary strong::before { content: "+ "; color: var(--accent-ink); }
details.extras[open] summary strong::before { content: "– "; }
details.extras summary span { color: var(--text-muted); font-weight: 400; font-size: 13.5px; }
.total span { display: flex; flex-direction: column; }
.total-note { color: var(--text-muted); font-size: 13px; }

:focus-visible { outline: 3px solid rgba(var(--accent-rgb), 0.5); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .disc.spin, .choice.on, .tile.on, .modal, .mic.on i, .sky-scene.rising .sun { animation: none; }
  .sky-scene.rising .sun { bottom: 60px; }
}
@media (min-width: 880px) {
  .shell { width: min(980px, calc(100% - 64px)); }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
  .sky-scene.hero { height: 300px; }
  h1 { font-size: 58px; }
}
.check.terms a { color: var(--accent-ink); text-decoration: underline; }
.check.terms span { color: var(--text); }

/* Thank-you upsell (preview / THANKYOU_UPSELL only) */
.ty-timer { margin: 14px 0 0; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ty-timer span { color: var(--accent-ink); }
.ty-card { margin: 16px 0 0; padding: 18px 18px 16px; border-radius: 22px; background: var(--surface-strong); box-shadow: var(--hairline); }
.ty-card h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; }
.ty-price { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: 22px; }
.ty-price s { margin-right: 8px; color: var(--text-muted); font-weight: 600; font-size: 16px; }
.ty-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.ty-list .check { margin: 0; }
