:root{
  --bg:#fffaf6; --surface:#ffffff; --surface-2:#fff3ea; --text:#341b25; --muted:#786b70;
  --accent:#a90f45; --accent-2:#d84373; --accent-soft:#fff0f5; --line:#eadfd9; --green:#2ea463;
  --shadow:0 14px 42px rgba(77,31,45,.09); --radius:22px; --tap:48px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:linear-gradient(180deg,#fffaf6 0,#fffdfb 100%);font-family:Manrope,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--text)}
button,input,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,250,246,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(234,223,217,.8)}
.header-inner{height:76px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-width:250px}
.brand-note{font-size:32px;color:var(--accent);line-height:1}
.brand strong{display:block;color:var(--accent);font-size:22px;line-height:1.05}
.brand small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.desktop-nav{display:flex;gap:8px;margin-left:auto}
.nav-link{border:0;background:transparent;padding:10px 12px;color:var(--text);border-radius:10px;font-weight:700}
.nav-link:hover,.nav-link.active{color:var(--accent);background:var(--accent-soft)}
.profile-button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff}
.view{display:none;padding:42px 0 60px}
.view.active{display:block}
.hero-card{display:grid;grid-template-columns:1.06fr .94fr;min-height:520px;background:linear-gradient(135deg,#fff8f2,#f8e7dc);border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}
.hero-copy{padding:60px}
.eyebrow{display:inline-block;padding:8px 12px;background:#fff;border-radius:999px;color:var(--accent);font-size:13px;font-weight:800;margin-bottom:14px}
h1{font-size:clamp(40px,5vw,68px);line-height:1.03;letter-spacing:-.04em;margin:0 0 20px;max-width:700px}
.hero-copy p{font-size:19px;line-height:1.65;color:#55464b;max-width:650px}
.primary-btn,.secondary-btn,.download-btn,.save-btn,.small-btn{min-height:var(--tap);border-radius:12px;border:0;font-weight:800;transition:.18s}
.primary-btn{background:linear-gradient(135deg,var(--accent),#8d123c);color:#fff;padding:0 24px;box-shadow:0 8px 18px rgba(169,15,69,.17)}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(169,15,69,.24)}
.hero-btn{margin-top:10px;font-size:18px}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:38px}
.benefits>div{display:flex;gap:10px;align-items:flex-start}
.benefits b{font-size:24px}
.benefits strong,.benefits small{display:block}
.benefits strong{font-size:13px}
.benefits small{font-size:11px;color:var(--muted);line-height:1.45;margin-top:3px}
.hero-visual{min-height:520px;padding:24px}
.hero-photo{position:relative;height:100%;background:radial-gradient(circle at 35% 30%,#f8cbbb,transparent 35%),linear-gradient(160deg,#c88976,#8c5a4c);border-radius:22px;overflow:hidden}
.photo-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:30px}
.couple{font-size:76px;filter:drop-shadow(0 8px 20px rgba(0,0,0,.15))}
.photo-placeholder span{font-family:Georgia,serif;font-style:italic;font-size:24px;max-width:260px}
.paper-note{position:absolute;right:22px;bottom:28px;background:#fffaf0;padding:20px 24px;transform:rotate(-4deg);font-family:Georgia,serif;font-style:italic;font-size:18px;box-shadow:0 10px 24px rgba(0,0,0,.14)}
.hero-note{position:absolute;color:#ffe0c8;font-size:42px}
.n1{right:16%;top:14%}.n2{left:10%;bottom:18%}
.occasion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.occasion{border:1px solid var(--line);background:#fff;border-radius:18px;padding:20px;text-align:left;box-shadow:0 8px 24px rgba(80,40,50,.05)}
.occasion span{font-size:28px;display:block;margin-bottom:8px}
.occasion strong,.occasion small{display:block}
.occasion strong{font-size:17px}.occasion small{color:var(--muted);margin-top:6px;line-height:1.5}
.creator-wrap{max-width:1100px}
.steps{display:flex;justify-content:center;align-items:center;gap:12px;margin:0 auto 22px;color:#9a8f93;font-size:13px}
.step{display:flex;align-items:center;gap:7px}
.step span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ddd3cf;color:#fff}
.step.active,.step.done{color:var(--accent)}
.step.active span,.step.done span{background:var(--accent)}
.wizard-card,.result-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:var(--shadow)}
.wizard-step{display:none}.wizard-step.active{display:block}
.section-head{text-align:center;margin-bottom:26px}
.section-head small{color:var(--muted)}
.section-head h2,.library-head h2{font-size:34px;letter-spacing:-.025em;margin:4px 0 8px}
.section-head p,.library-head p{color:var(--muted);margin:0}
.mood-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.mood-card{position:relative;border:1px solid var(--line);border-radius:15px;padding:14px;text-align:center;background:#fff;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.mood-card input,.voice-card input,.choice-card input{position:absolute;opacity:0;pointer-events:none}
.mood-card:has(input:checked){border:2px solid #f18aa9;background:var(--accent-soft);box-shadow:0 0 0 3px rgba(241,138,169,.12)}
.mood-art{font-size:38px}.mood-card strong{font-size:15px}.mood-card small{font-size:11px;color:var(--muted);line-height:1.35}
.or{display:flex;align-items:center;gap:12px;color:#9e9397;margin:20px 0}
.or:before,.or:after{content:"";height:1px;background:var(--line);flex:1}.or span{font-size:12px}
.custom-box{display:block;border:1px solid #f1a0ba;background:linear-gradient(180deg,#fff9fb,#fff4f7);border-radius:16px;padding:18px;position:relative}
.custom-title{display:flex;align-items:center;gap:8px;color:var(--accent)}
.custom-title input{accent-color:var(--accent);width:20px;height:20px}
.custom-box p{font-size:13px;margin:7px 0 10px;color:var(--muted)}
textarea{width:100%;resize:vertical;min-height:112px;border:1px solid #dfd5d1;border-radius:10px;padding:14px;color:var(--text);background:#fff;outline:none;line-height:1.5}
textarea:focus{border-color:#d36286;box-shadow:0 0 0 3px rgba(211,98,134,.12)}
.counter{text-align:right;font-size:11px;color:var(--muted);margin-top:4px}
.chips-label{font-size:11px;font-weight:800;margin:6px 0}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips button{border:1px solid #eadfd9;background:#fff;border-radius:999px;padding:8px 12px;font-size:11px;color:#63545a}
.actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px}
.secondary-btn{background:#fff;color:var(--text);border:1px solid var(--line);padding:0 20px}
.choice-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}
.choice-card{position:relative;display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:15px;padding:18px;background:#fff}
.choice-card.selected,.choice-card:has(input:checked){border:2px solid #f18aa9;background:var(--accent-soft)}
.radio-ui{width:22px;height:22px;border:2px solid #cfc3be;border-radius:50%;flex:0 0 auto}
.choice-card:has(input:checked) .radio-ui{border:7px solid var(--accent)}
.choice-card strong,.choice-card small{display:block}.choice-card small{font-size:12px;color:var(--muted);margin-top:4px}
.field-label{display:block;font-weight:800;margin:10px 0 8px}
.lyrics-helper{background:#fff6df;border:1px solid #f3dfae;border-radius:15px;padding:16px;margin-top:16px}
.lyrics-helper h3{margin:0 0 6px;color:#9b5a00}.lyrics-helper p{font-size:13px;color:#6f6257;margin:0 0 10px}
.lyrics-helper textarea{min-height:84px}
.small-btn{background:#a90f45;color:#fff;padding:0 16px;margin-top:10px}
.voice-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,280px));gap:16px;justify-content:center}
.voice-card{position:relative;border:1px solid var(--line);border-radius:18px;padding:18px;text-align:center}
.voice-card:has(input:checked){border:2px solid #f18aa9;background:var(--accent-soft)}
.avatar{height:180px;border-radius:14px;background:linear-gradient(180deg,#f4ded4,#d5bbb1);display:grid;place-items:center;font-size:90px;margin-bottom:12px}
.voice-card strong,.voice-card small{display:block}.voice-card small{color:var(--muted);font-size:12px;margin-top:4px}
.info-banner{margin:20px auto 0;max-width:580px;background:#fff5df;border-radius:12px;padding:14px;text-align:center;color:#725e4c;font-size:13px}
.generation{padding:20px 0 8px}
.generation-body{display:grid;grid-template-columns:220px 1fr;gap:38px;align-items:center;max-width:720px;margin:20px auto}
.vinyl{width:210px;height:210px;border-radius:50%;background:repeating-radial-gradient(circle,#1f1a1b 0 9px,#30292b 10px 16px);display:grid;place-items:center;color:#fff;font-size:36px;box-shadow:inset 0 0 0 26px #111, inset 0 0 0 68px #2a2224,0 12px 30px rgba(0,0,0,.18);animation:spin 4s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.progress-list{display:grid;gap:18px}.progress-list div{color:#8d8286}.progress-list .done{color:#5f5559}.progress-list .active{color:var(--accent);font-weight:800}
.progress-track{height:12px;background:#eee4df;border-radius:999px;overflow:hidden;max-width:720px;margin:12px auto 0}.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),#d64d78);transition:width .4s}
.progress-caption{text-align:right;max-width:720px;margin:6px auto;color:var(--muted);font-size:12px}
.result-card{max-width:980px;margin:auto}
.player-card{display:grid;grid-template-columns:170px 1fr;gap:20px;border:1px solid var(--line);border-radius:18px;padding:18px}
.cover{aspect-ratio:1;border-radius:14px;background:linear-gradient(180deg,#f2b79e,#845144);display:grid;place-items:center;color:#fff;font-family:Georgia,serif;font-style:italic;text-align:center;font-size:24px}
.player-main{display:flex;flex-direction:column;justify-content:center}.player-main strong{font-size:22px}.player-main small{color:var(--muted);margin-top:2px}
.player-controls{display:flex;align-items:center;gap:12px;margin-top:18px}.play-btn{width:52px;height:52px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:20px}
.fake-wave{height:6px;background:#e3d9d4;border-radius:999px;flex:1;overflow:hidden}.fake-wave span{display:block;width:42%;height:100%;background:var(--accent)}
.time{font-size:12px;color:var(--muted)}
.result-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.download-btn{background:var(--green);color:#fff}.save-btn{grid-column:1/-1;background:#fff;color:var(--accent);border:1px solid #f1a0ba}
.library-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.library-head h2{margin-bottom:2px}
.songs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.song-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}.song-cover{aspect-ratio:1;border-radius:12px;background:linear-gradient(180deg,#efc1af,#935847);display:grid;place-items:center;font-size:46px}.song-card strong{display:block;margin:10px 0 3px}.song-card small{color:var(--muted)}.song-actions{display:flex;gap:8px;margin-top:10px}.song-actions button{width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:#fff}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#2f2227;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:.25s;z-index:90}.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{position:fixed;inset:0;background:rgba(40,20,28,.42);display:none;place-items:center;padding:20px;z-index:100}.modal.open{display:grid}.modal-card{width:min(520px,100%);background:#fff;border-radius:20px;padding:26px;position:relative}.modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px}.modal-card p{color:var(--muted);line-height:1.6}

@media(max-width:900px){
  .container{width:min(100% - 24px,780px)}
  .desktop-nav{display:none}.brand{min-width:0}.brand small{display:none}
  .header-inner{height:64px}.profile-button{margin-left:auto}
  .view{padding:20px 0 36px}
  .hero-card{grid-template-columns:1fr;min-height:0}.hero-copy{padding:34px 26px 26px}
  h1{font-size:42px}.hero-copy p{font-size:17px}
  .hero-visual{min-height:340px;padding:0 18px 18px}.hero-photo{min-height:320px}
  .occasion-grid{grid-template-columns:1fr 1fr}
  .mood-grid{grid-template-columns:repeat(2,1fr)}.mood-card:last-child{grid-column:1/-1}
  .songs-grid{grid-template-columns:repeat(2,1fr)}
  .result-actions{grid-template-columns:1fr 1fr}
  .save-btn{grid-column:1/-1}
}
@media(max-width:640px){
  :root{--tap:52px}
  body{padding-bottom:max(0px,env(safe-area-inset-bottom))}
  .container{width:calc(100% - 20px)}
  .brand strong{font-size:18px}.brand-note{font-size:26px}.profile-button{width:40px;height:40px}
  .hero-card{border-radius:20px}
  .hero-copy{padding:28px 20px 22px}
  .eyebrow{font-size:11px}
  h1{font-size:36px;line-height:1.07}.hero-copy p{font-size:16px;line-height:1.55}
  .hero-btn{width:100%}
  .benefits{grid-template-columns:1fr;gap:14px}.benefits>div{background:rgba(255,255,255,.6);padding:10px;border-radius:12px}
  .hero-visual{min-height:280px}.hero-photo{min-height:260px}.couple{font-size:50px}.photo-placeholder span{font-size:19px}.paper-note{font-size:14px;padding:14px 16px}
  .occasion-grid{grid-template-columns:1fr}.occasion{padding:16px}
  .steps{position:sticky;top:64px;z-index:30;background:rgba(255,250,246,.96);margin:0 -10px 12px;padding:10px 8px;border-bottom:1px solid var(--line);justify-content:space-between;gap:4px}
  .step b{display:none}.step span{width:28px;height:28px}.steps i{font-style:normal}
  .wizard-card,.result-card{padding:20px 14px;border-radius:18px}
  .section-head{margin-bottom:18px}.section-head h2,.library-head h2{font-size:28px;line-height:1.15}
  .section-head p{font-size:14px}
  .mood-grid{grid-template-columns:1fr;gap:10px}.mood-card:last-child{grid-column:auto}.mood-card{min-height:76px;display:grid;grid-template-columns:52px 1fr;text-align:left;align-items:center;justify-items:start;padding:12px}.mood-art{font-size:30px;grid-row:1/3}.mood-card strong{align-self:end}.mood-card small{align-self:start}
  .custom-box{padding:14px}.custom-box textarea{min-height:130px}
  .chips{display:grid}.chips button{text-align:left;padding:10px 12px}
  .actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%);padding-top:24px;margin-left:-4px;margin-right:-4px;z-index:20}
  .actions button{flex:1}.secondary-btn{padding:0 14px}
  .choice-row{grid-template-columns:1fr}.choice-card{padding:15px}
  .voice-grid{grid-template-columns:1fr 1fr;gap:10px}.voice-card{padding:10px}.avatar{height:130px;font-size:64px}
  .generation-body{grid-template-columns:1fr;text-align:center;gap:18px}.vinyl{width:160px;height:160px;margin:auto}.progress-list{text-align:left;margin:auto}
  .player-card{grid-template-columns:110px 1fr;padding:12px;gap:12px}.player-main strong{font-size:17px}.cover{font-size:17px}.time{display:none}.play-btn{width:44px;height:44px}
  .result-actions{grid-template-columns:1fr}.save-btn{grid-column:auto}
  .library-head{align-items:stretch;flex-direction:column}.library-head .primary-btn{width:100%}
  .songs-grid{grid-template-columns:1fr 1fr;gap:10px}.song-card{padding:9px}.song-card strong{font-size:13px}.song-card small{font-size:10px}
}
@media(max-width:390px){
  h1{font-size:31px}
  .container{width:calc(100% - 16px)}
  .wizard-card{padding:18px 10px}
  .voice-grid{grid-template-columns:1fr}.avatar{height:150px}
  .songs-grid{grid-template-columns:1fr}
  .player-card{grid-template-columns:90px 1fr}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
