:root {
  color-scheme: light;
  --ink: #201b25;
  --muted: #6d6572;
  --paper: #fbf9f5;
  --paper-deep: #f0ece5;
  --line: #ddd5ca;
  --plum: #60374e;
  --plum-dark: #35202b;
  --rose: #d78487;
  --gold: #d2a955;
  --success: #315f4d;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(210, 169, 85, .24), transparent 27rem),
    radial-gradient(circle at 92% 5%, rgba(215, 132, 135, .2), transparent 24rem),
    radial-gradient(circle at 50% 52%, rgba(96, 55, 78, .055), transparent 38rem),
    var(--paper);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }

.page-shell { width: min(100% - 32px, 1040px); max-width: 100%; margin: 0 auto; padding: 48px 0 92px; }
.hero {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 320px;
  margin: 0 auto 28px;
  padding: clamp(36px, 7vw, 72px) clamp(24px, 7vw, 82px);
  overflow: hidden;
  color: #fffaf5;
  background: linear-gradient(122deg, #241521 0%, #63384f 52%, #9f596b 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(53, 32, 43, .2);
  text-align: center;
}
.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.1);
  font-family: Georgia, serif;
  font-size: clamp(11rem, 24vw, 20rem);
  line-height: 1;
  content: "♫";
  transform: rotate(-13deg);
}
.hero::before { top: -57px; left: -30px; }
.hero::after { right: -15px; bottom: -115px; transform: rotate(12deg); }
.eyebrow, .section-number, .track-number {
  margin: 0 0 12px;
  color: var(--plum);
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.hero .eyebrow { color: #f4cf78; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.55rem, 7vw, 4.85rem); font-weight: 400; letter-spacing: -.048em; line-height: .96; text-wrap: balance; }
h2 { margin-bottom: 8px; font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 400; letter-spacing: -.025em; }
h3 { margin-bottom: 7px; font-size: 1.25rem; font-weight: 400; }
.hero-copy { max-width: 650px; margin-right: auto; margin-left: auto; color: rgba(255,250,245,.84); font-size: 1.13rem; line-height: 1.6; }
.prototype-note { display: inline-flex; align-items: center; gap: 9px; max-width: 620px; margin-top: 7px; padding: 10px 14px; color: #fff9f5; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; font-family: Arial, sans-serif; font-size: .78rem; line-height: 1.35; backdrop-filter: blur(6px); }
.note-dot { width: 8px; height: 8px; flex: 0 0 auto; background: var(--rose); border-radius: 50%; }
.note-arrow { margin-left: 2px; color: #f4cf78; font-size: 1.2em; font-weight: 800; line-height: 1; }

.examples-showcase { margin: -7px auto 28px; padding: clamp(24px, 4.8vw, 48px); color: #fffaf5; background: linear-gradient(145deg, #2d1b29, #663a50 61%, #a55d6e); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: 0 22px 52px rgba(53,32,43,.19); }
.examples-intro { max-width: 690px; margin: 0 auto 26px; text-align: center; }
.examples-intro .eyebrow { color: #f4cf78; }
.examples-intro h2 { margin-bottom: 9px; color: #fffaf5; font-size: clamp(2rem, 4vw, 3.2rem); }
.examples-intro p:last-child { max-width: 720px; margin: 0 auto; color: #fffaf5; font-family: Arial, sans-serif; font-size: clamp(1.17rem, 2.5vw, 1.48rem); font-weight: 700; line-height: 1.42; }
.example-spotlight { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); overflow: hidden; background: rgba(18,10,16,.48); border: 1px solid rgba(255,255,255,.18); border-radius: 17px; box-shadow: 0 18px 34px rgba(12,6,10,.22); }
.example-video-frame { position: relative; min-height: 400px; overflow: hidden; background: #21131c; }
.example-video-frame video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.example-video-frame video.is-portrait-example { object-position: 50% 57%; transform: scale(1.02); transform-origin: 50% 57%; }
.example-video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(26,13,21,.72)); pointer-events: none; }
.example-video-note { position: absolute; right: 22px; bottom: 18px; left: 22px; z-index: 1; margin: 0; color: #fffaf5; font-size: .95rem; font-style: italic; line-height: 1.35; }
.example-audio-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(27px, 4vw, 44px); }
.example-kicker { margin: 0 0 14px; color: #f4cf78; font-family: Arial, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .15em; }
.example-audio-panel h3 { margin-bottom: 9px; color: #fffaf5; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.05; }
.example-audio-panel > p:not(.example-kicker):not(.example-listen-note) { color: rgba(255,250,245,.9); font-family: Arial, sans-serif; font-size: 1.03rem; font-weight: 600; line-height: 1.5; }
.example-audio-panel audio { display: none; }
.example-player { display: grid; grid-template-columns: auto minmax(60px, 1fr); gap: 14px 11px; align-items: center; margin: 20px 0 13px; }
.example-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 11px 16px; color: #2d1b29; background: #f4cf78; border: 0; border-radius: 999px; font-family: Arial, sans-serif; font-size: .84rem; font-weight: 800; transition: transform .15s, background .15s; }
.example-play:hover { background: #ffe0a1; transform: translateY(-1px); }
.example-timeline { height: 8px; overflow: hidden; background: rgba(255,255,255,.26); border-radius: 999px; }
.example-timeline-fill { width: 0; height: 100%; background: #f4cf78; border-radius: inherit; transition: width .12s linear; }
.example-time { grid-column: 2; color: rgba(255,250,245,.82); font-family: Arial, sans-serif; font-size: .78rem; font-variant-numeric: tabular-nums; }
.example-listen-note { margin: 5px 0 0; color: rgba(255,250,245,.67); font-family: Arial, sans-serif; font-size: .76rem; line-height: 1.45; }
.example-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.example-choice { display: flex; min-height: 86px; align-items: center; gap: 13px; padding: 14px 16px; color: #fffaf5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.32); border-radius: 12px; text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.example-choice:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.example-choice.is-active { color: #32202d; background: #fffaf5; border-color: #fffaf5; }
.example-choice span { color: #f4cf78; font-family: Arial, sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.example-choice.is-active span { color: var(--plum); }
.example-choice strong { font-family: Arial, sans-serif; font-size: clamp(1rem, 2.15vw, 1.24rem); line-height: 1.18; }
.example-cta { display: flex; align-items: center; justify-content: center; gap: 13px; width: min(100%, 620px); min-height: 62px; margin: 25px auto 0; padding: 14px 23px; color: #2d1b29; background: #f4cf78; border: 2px solid #ffe4a5; border-radius: 14px; box-shadow: 0 10px 22px rgba(14,6,11,.27); font-family: Arial, sans-serif; font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; transition: background .15s, transform .15s, box-shadow .15s; }
.example-cta:hover { background: #ffe0a1; box-shadow: 0 13px 26px rgba(14,6,11,.34); transform: translateY(-2px); }

.workflow { display: flex; align-items: center; max-width: 680px; margin: -9px auto 30px; padding: 13px 19px; background: rgba(255,255,255,.86); border: 1px solid rgba(221,213,202,.9); border-radius: 999px; box-shadow: 0 11px 28px rgba(53, 32, 43, .07); }
.workflow-step { display: flex; align-items: center; gap: 8px; color: #aaa19e; font-family: Arial, sans-serif; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.workflow-step span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.workflow-step.is-active { color: var(--plum); }
.workflow-step.is-active span { color: white; background: var(--plum); border-color: var(--plum); }
.workflow-line { height: 1px; flex: 1; margin: 0 12px; background: var(--line); }

.status-banner { margin: 0 auto 22px; padding: 13px 16px; color: var(--success); background: #e8f1eb; border: 1px solid #c4ddcc; border-radius: 9px; font-family: Arial, sans-serif; font-size: .88rem; line-height: 1.45; }
.status-warning { color: #795318; background: #fff4da; border-color: #edcf91; }

.faq-section { margin: 0 auto 22px; padding: clamp(23px, 4vw, 34px); background: rgba(255, 255, 255, .72); border: 1px solid rgba(221,213,202,.95); border-radius: 20px; box-shadow: 0 14px 36px rgba(53, 32, 43, .055); }
.faq-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.faq-disclosure > summary::-webkit-details-marker { display: none; }
.faq-disclosure > summary::after { content: "+"; flex: 0 0 auto; display: grid; width: 32px; height: 32px; place-items: center; color: var(--plum); border: 1px solid var(--gold); border-radius: 50%; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq-disclosure[open] > summary::after { content: "−"; }
.faq-disclosure-copy { display: grid; gap: 4px; }
.faq-disclosure-copy .eyebrow { margin: 0; }
.faq-disclosure-title { color: var(--plum-dark); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.2; }
.faq-disclosure-hint { color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; }
.faq-list { display: grid; gap: 9px; margin-top: 22px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .82); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; color: var(--plum-dark); cursor: pointer; font-family: Arial, sans-serif; font-size: .94rem; font-weight: 700; line-height: 1.35; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--gold); font-size: 1.45rem; font-weight: 400; line-height: 1; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: rgba(251,247,241,.85); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 15px 18px 17px; color: var(--muted); font-size: .94rem; line-height: 1.58; }
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 11px; }

.card { margin-top: 22px; padding: clamp(23px, 4vw, 42px); background: rgba(255, 255, 255, .82); border: 1px solid rgba(221,213,202,.95); border-radius: 20px; box-shadow: 0 18px 48px rgba(53, 32, 43, .08); }
.form-card { border-top: 4px solid var(--gold); }
.section-heading { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 30px; }
.section-heading p:not(.section-number) { margin-bottom: 0; color: var(--muted); line-height: 1.48; }
.section-number { padding-top: 7px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--plum-dark); font-family: Arial, sans-serif; font-size: .86rem; font-weight: 700; }
label span[aria-hidden="true"] { color: #b53d43; }
.wide { grid-column: 1 / -1; }
.guided-flow { display: grid; gap: 34px; }
.guided-step { display: grid; grid-template-columns: auto 1fr; gap: 3px 15px; padding: 0 0 33px; border-bottom: 1px solid var(--line); }
.guided-step:last-child { padding-bottom: 0; border-bottom: 0; }
.guided-step-number { grid-row: span 3; display: grid; width: 30px; height: 30px; margin: 2px 0 0; place-items: center; color: #fff; background: linear-gradient(135deg, var(--plum), var(--rose)); border: 1px solid var(--plum); border-radius: 50%; box-shadow: 0 5px 12px rgba(96,55,78,.2); font-family: Arial, sans-serif; font-size: .76rem; font-weight: 700; }
.guided-step h3 { margin: 0; color: var(--plum-dark); }
.guided-intro { margin: 2px 0 18px; color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; line-height: 1.45; }
.guided-step > fieldset, .guided-step > .other-field, .guided-step > label, .guided-step > .guided-grid, .guided-step > .story-tip { grid-column: 2; }
.guided-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin: 0 0 11px; color: var(--plum-dark); font-family: Arial, sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.3; text-align: center; }
.guided-step > label, .guided-grid > label { align-items: stretch; color: var(--plum-dark); font-size: 1rem; font-weight: 800; line-height: 1.3; text-align: center; }
.guided-step > label input, .guided-grid > label input { text-align: left; }
.genre-advice { margin: 13px 0 0; padding: 10px 12px; color: #5f4b37; background: #fff6e5; border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; font-family: Arial, sans-serif; font-size: .78rem; line-height: 1.48; }
.genre-advice strong { color: var(--plum-dark); }
.choice-grid { display: grid; gap: 9px; }
.choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-button { min-height: 47px; padding: 9px 10px; color: var(--plum-dark); background: #fffefc; border: 1px solid #cfc6bb; border-radius: 8px; font-family: Arial, sans-serif; font-size: .82rem; font-weight: 700; line-height: 1.22; transition: color .15s, background .15s, border-color .15s, transform .15s; }
.choice-button:hover { border-color: var(--plum); transform: translateY(-1px); }
.choice-button.is-selected { color: #fff; background: var(--plum); border-color: var(--plum); box-shadow: 0 4px 12px rgba(96, 55, 78, .2); }
.other-field { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input, select, textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fffefc; border: 1px solid #cfc6bb; border-radius: 7px; outline: none; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
select { min-height: 50px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(96, 55, 78, .12); }
.hint { color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.4; }
.story-tip { display: flex; gap: 11px; align-items: flex-start; margin: -2px 0 17px; padding: 13px 15px; color: #52333f; background: #fbf1dc; border: 1px solid #e7ca8d; border-radius: 10px; font-family: Arial, sans-serif; }
.story-tip-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #fffaf5; background: var(--plum); border-radius: 50%; font-size: .78rem; }
.story-tip p { margin: 0; font-size: .87rem; font-weight: 400; line-height: 1.48; }
.story-tip strong { font-weight: 800; }
.form-footer, .lyrics-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.form-footer p, .lyrics-footer p { margin: 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 7px; font-family: Arial, sans-serif; font-size: .88rem; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--plum); }
.button-primary:hover:not(:disabled) { background: #4f2b40; }
.button-dark { color: white; background: var(--plum-dark); }
.button-dark:hover:not(:disabled) { background: #171014; }

.lyrics-card { border-color: #d8c8cf; }
.lyrics-label { margin-bottom: 8px; }
#lyrics {
  min-height: 330px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
.lyrics-footer { align-items: flex-end; }

.progress-track { height: 7px; overflow: hidden; margin: 8px 0 29px; background: var(--paper-deep); border-radius: 999px; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--plum), var(--rose)); border-radius: inherit; transition: width .35s ease; }
.music-activity { display: flex; align-items: flex-start; gap: 13px; margin: -3px 0 20px; padding: 15px 17px; color: var(--plum-dark); background: #fcf4e8; border: 1px solid #ead1a5; border-radius: 12px; }
.music-activity p { margin: 0; }
.hourglass { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--plum); background: rgba(255,255,255,.72); border-radius: 50%; font-size: 1.25rem; }
.music-activity.is-waiting .hourglass { animation: hourglass-turn 1.65s ease-in-out infinite; }
.waiting-hint { margin-top: 4px !important; color: var(--muted); font-family: Arial, sans-serif; font-size: .79rem; line-height: 1.45; }
.music-activity:not(.is-waiting) { color: var(--success); background: #e8f1eb; border-color: #c4ddcc; }
@keyframes hourglass-turn { 0%, 42% { transform: rotate(0deg); } 58%, 100% { transform: rotate(180deg); } }
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.track-card { padding: 24px; background: #fffefa; border: 1px solid #d8d0c7; border-radius: 11px; }
.track-card.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210,169,85,.2), 0 12px 28px rgba(53,32,43,.08); }
.track-number { margin-bottom: 18px; color: var(--gold); }
.track-meta { color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; }
.audio-source { display: none; }
.audio-player { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; gap: 11px; margin-top: 18px; padding: 12px 14px; background: #f2f3f3; border-radius: 999px; font-family: Arial, sans-serif; }
.audio-toggle { min-width: 92px; padding: 7px 9px; color: #fff; background: var(--plum); border: 0; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.audio-toggle:hover { background: #54233f; }
.audio-timeline { height: 7px; overflow: hidden; background: #c9cdd0; border-radius: 999px; }
.audio-timeline-fill { width: 0; height: 100%; background: var(--plum); border-radius: inherit; transition: width .12s linear; }
.audio-time { min-width: 70px; color: var(--ink); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choose-track { width: 100%; min-height: 42px; margin-top: 14px; padding: 9px 12px; color: var(--plum); background: transparent; border: 1px solid var(--plum); border-radius: 8px; font-family: Arial, sans-serif; font-size: .8rem; font-weight: 700; transition: color .15s, background .15s; }
.choose-track:hover, .track-card.is-chosen .choose-track { color: #fff; background: var(--plum); }
.track-choice-hint { margin: 20px 0 0; color: var(--plum-dark); font-family: Arial, sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.45; text-align: center; }
.purchase-panel { margin-top: 24px; padding: clamp(20px, 3.5vw, 30px); background: linear-gradient(135deg, #fcf4e8, #fffaf4); border: 1px solid #e2c688; border-radius: 14px; }
.purchase-kicker { margin: 0 0 8px; color: #9a6b18; font-family: Arial, sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.purchase-panel h3 { margin-bottom: 7px; color: var(--plum-dark); }
.purchase-intro { margin-bottom: 18px; color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; line-height: 1.45; }
.purchase-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.purchase-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 13px 15px; color: var(--plum-dark); background: #fffefa; border: 1px solid #d8cdbd; border-radius: 9px; font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.purchase-option strong { color: #9a6b18; font-size: 1.2rem; white-space: nowrap; }
.purchase-option:hover:not(:disabled) { border-color: var(--plum); }
.purchase-option.is-selected { color: #fff; background: var(--plum); border-color: var(--plum); box-shadow: 0 5px 15px rgba(96,55,78,.17); }
.purchase-option.is-selected strong { color: #f4cf78; }
.purchase-option:disabled { cursor: not-allowed; opacity: .55; }
.purchase-summary { margin: 16px 0 12px; color: var(--plum-dark); font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; }
.purchase-button { width: 100%; }
.purchase-prototype-note { margin: 10px 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .76rem; line-height: 1.42; }
.local-disclaimer { margin: 28px 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .77rem; line-height: 1.55; }
.preview-shell { max-width: 720px; }
.preview-hero { padding: 2rem 0 1rem; text-align: center; }
.preview-hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.05; margin: .35rem 0 .85rem; }
.preview-deadline { font-size: 1.05rem; font-weight: 700; }
.preview-card { padding: 1.15rem; }
.preview-tracks { display: grid; gap: .9rem; margin: 1rem 0; }
.preview-track { background: #f4f0ea; border: 1px solid rgba(34, 29, 25, .14); border-radius: 18px; padding: 1rem; }
.preview-track h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.preview-track audio { width: 100%; display: block; margin-bottom: .85rem; }
.download-track > p { margin: 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; }
.preview-download.is-downloaded { color: var(--success); background: #e8f1eb; pointer-events: none; }
.download-confirmation { padding: 1.5rem; color: var(--success); background: #e8f1eb; border: 1px solid #c4ddcc; border-radius: 18px; text-align: center; }
.download-confirmation strong { display: block; font-size: 1.2rem; }
.download-confirmation p { margin: .65rem 0 0; color: var(--muted); font-family: Arial, sans-serif; line-height: 1.45; }
.preview-buy { width: 100%; min-height: 56px; margin-top: .75rem; font-size: 1rem; }
.button-outline { color: inherit; background: transparent; border: 1px solid currentColor; }
.preview-payment-note { margin: .8rem 0; color: var(--muted); line-height: 1.45; }
.payment-methods { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(34, 29, 25, .14); }
.payment-method-title { margin: 0 0 .7rem; color: var(--plum-dark); font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; }
#stripeCheckout { display: block; width: min(100%, 420px); margin-right: auto; margin-left: auto; }
.paypal-wrap { display: flex; width: 100%; max-width: 100%; justify-content: center; overflow: hidden; margin-top: .75rem; }
.paypal-direct-button { width: min(100%, 420px); min-height: 46px; padding: 10px 24px; border: 0; border-radius: 4px; background: #ffc439; color: #003087; font-family: Arial, sans-serif; font-size: 1.3rem; font-style: italic; font-weight: 800; cursor: pointer; }
.paypal-direct-button:disabled { opacity: .55; cursor: wait; }
.admin-shell { max-width: 920px; }
.admin-login { max-width: 520px; margin-right: auto; margin-left: auto; }
.admin-login h2, .admin-heading h2 { margin-bottom: .35rem; }
.admin-login form { display: grid; gap: 14px; margin-top: 20px; }
.admin-login .button { min-height: 54px; }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-reset { min-height: 44px; padding: 9px 14px; font-family: Arial, sans-serif; font-size: .84rem; font-weight: 700; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-metrics article { display: grid; gap: 8px; min-height: 135px; align-content: center; padding: 16px; background: #f7f2ea; border: 1px solid #ddd1c3; border-radius: 14px; text-align: center; }
.admin-metrics strong { color: var(--plum); font-family: Arial, sans-serif; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1; }
.admin-metrics span, .admin-note { color: var(--muted); font-family: Arial, sans-serif; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.admin-note { margin: 20px 0 0; font-weight: 400; }

.privacy-notice { margin: 4px 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .82rem; line-height: 1.45; }
.privacy-notice a, .legal-card a, .site-footer a { color: var(--plum); font-weight: 700; }
.site-footer { width: min(1080px, calc(100% - 36px)); margin: -32px auto 0; padding: 0 0 44px; color: var(--muted); font-family: Arial, sans-serif; font-size: .86rem; text-align: center; }
.legal-shell { max-width: 820px; }
.legal-hero { padding: 52px 24px 32px; text-align: center; }
.legal-hero h1 { margin: 8px 0; color: var(--plum-dark); font-size: clamp(2rem, 5vw, 3.4rem); }
.legal-hero > p:last-child { margin: 0; color: var(--muted); font-family: Arial, sans-serif; }
.legal-card { margin-bottom: 30px; padding: clamp(24px, 5vw, 52px); }
.legal-card h2 { margin: 34px 0 10px; color: var(--plum-dark); font-size: 1.25rem; }
.legal-card h2:first-of-type { margin-top: 28px; }
.legal-card p, .legal-card li { color: var(--muted); font-family: Arial, sans-serif; line-height: 1.65; }
.legal-card ul { padding-left: 22px; }

.has-modal { overflow: hidden; }
.error-toast { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(31, 20, 29, .58); backdrop-filter: blur(3px); }
.error-dialog { position: relative; display: grid; justify-items: center; width: min(100%, 470px); padding: 34px 30px 28px; color: #50212c; background: #fffaf7; border: 1px solid #ead1d5; border-radius: 18px; box-shadow: 0 25px 70px rgba(20, 8, 14, .36); font-family: Arial, sans-serif; text-align: center; }
.error-dialog strong { margin-bottom: 10px; font-size: 1.18rem; }
.error-dialog span { max-width: 360px; color: #684a53; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.error-icon { display: grid; width: 43px; height: 43px; margin: 0 0 15px; place-items: center; color: #fff; background: #9b3f52; border-radius: 50%; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.error-close { position: absolute; top: 10px; right: 13px; width: 34px; height: 34px; padding: 0; color: #765860; background: transparent; border: 0; border-radius: 50%; font-size: 1.65rem; line-height: 1; }
.error-close:hover { color: var(--plum-dark); background: #f4e9e7; }
.error-confirm { width: min(100%, 250px); min-height: 52px; margin-top: 22px; font-size: .98rem; }
.is-hidden { display: none; }

/* Quando la richiesta è partita, l'utente deve vedere solo le proprie due versioni. */
body.generation-mode .hero,
body.generation-mode .examples-showcase,
body.generation-mode .workflow,
body.generation-mode .status-banner,
body.generation-mode .faq-section {
  display: none;
}
body.generation-mode .page-shell { padding-top: 20px; }

@media (max-width: 650px) {
  .page-shell { width: 100%; max-width: 100%; padding: 0 0 58px; }
  .hero { margin-top: 0; border-radius: 0 0 22px 22px; }
  .form-grid, .tracks, .guided-grid, .choice-grid-2, .choice-grid-3, .choice-grid-4, .choice-grid-5, .purchase-options { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .guided-step { grid-template-columns: 1fr; gap: 8px; }
  .guided-step-number { grid-row: auto; }
  .guided-step > fieldset, .guided-step > .other-field, .guided-step > label, .guided-step > .guided-grid, .guided-step > .story-tip { grid-column: auto; }
  .guided-step legend, .guided-step > label, .guided-grid > label { margin-bottom: 12px; font-size: 1.14rem; line-height: 1.35; }
  .form-footer, .lyrics-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button, .lyrics-footer .button { width: 100%; }
  .examples-showcase { margin: 0 0 18px; padding: 23px 16px; border-radius: 0; }
  .example-spotlight { grid-template-columns: 1fr; }
  .example-video-frame { min-height: 340px; }
  .example-video-frame:has(video.is-portrait-example) { min-height: 385px; }
  .example-audio-panel { padding: 19px 20px 18px; }
  .example-selector { grid-template-columns: 1fr; }
  .example-choice { min-height: 72px; padding: 13px 15px; }
  .example-choice strong { font-size: 1.08rem; }
  .example-cta { width: 100%; min-height: 68px; margin-top: 20px; font-size: 1.16rem; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-reset { width: 100%; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics article:nth-child(5) { grid-column: 1 / -1; }
  .admin-metrics article:last-child { grid-column: 1 / -1; }
  .workflow { align-items: flex-start; min-width: 0; margin-right: 12px; margin-left: 12px; overflow: hidden; }
  .workflow-step { min-width: 0; flex-direction: column; gap: 5px; font-size: .62rem; text-align: center; white-space: normal; }
  .workflow-line { min-width: 0; margin: 12px 7px; }
  .status-banner, .card { margin-right: 12px; margin-left: 12px; }
}
