:root {
  --bg: #fbf6f0;
  --card: #ffffff;
  --ink: #2a1f1a;
  --muted: #7a6a60;
  --line: #eadfd4;
  --accent: #c2410c;
  --accent-dark: #9a330a;
  --accent-soft: #fdebdf;
  --gold: #b7791f;
  --ok: #15803d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 44, 24, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 760px; margin: 0 auto; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }
.brand .note { color: var(--accent); }
.back { background: none; border: 0; color: var(--muted); font-size: 15px; padding: 8px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 8px 20px 120px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 4px 0 26px; }
.progress > div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 8vw, 48px); }
h2 { font-size: clamp(26px, 6vw, 32px); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.melody { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.melody .avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; }
.melody .bubble { background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); box-shadow: var(--shadow); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 999px; padding: 18px 22px; font-size: 18px; font-weight: 600; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(194, 65, 12, .25); transition: transform .1s, background .2s; text-decoration: none; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #fff; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.sticky-cta .inner { max-width: 520px; margin: 0 auto; }

/* ---------- options ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.opt { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s, transform .1s; }
.opt .emo { display: block; font-size: 26px; margin-bottom: 6px; }
.opt:hover { border-color: #d9c4b2; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt:active { transform: scale(.97); }

/* ---------- inputs ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
label.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], textarea { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 15px 16px; font: inherit; font-size: 17px; color: var(--ink); outline: none; transition: border-color .15s; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.mic { float: right; margin-top: -2px; background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.mic.rec { color: #dc2626; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- landing ---------- */
.hero { padding-top: 12px; }
.hero .eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; }
.steps3 { display: grid; gap: 12px; margin: 26px 0; }
.steps3 .s { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps3 .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps3 b { display: block; }
.steps3 small { color: var(--muted); font-size: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.reviews { display: grid; gap: 12px; margin: 30px 0; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 15px; line-height: 1.5; }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 6px; }
.review .who { color: var(--muted); font-size: 13px; margin-top: 8px; }
.price-teaser { text-align: center; background: var(--card); border: 1px dashed #e0c9b6; border-radius: var(--radius); padding: 16px; margin-top: 10px; }
.price-teaser strong { font-family: var(--serif); font-size: 22px; }

/* ---------- loading ---------- */
.loading { text-align: center; padding: 50px 0; }
.loading .disc { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; background: radial-gradient(circle, var(--bg) 14%, var(--ink) 15%, #3a2c25 60%, var(--ink) 61%); animation: spin 2.2s linear infinite; box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading .msg { font-family: var(--serif); font-size: 22px; min-height: 30px; }

/* ---------- lyrics ---------- */
.lyrics { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); font-family: var(--serif); font-size: 18px; line-height: 1.6; white-space: pre-wrap; margin-bottom: 18px; }
.lyrics .tag { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 14px 0 2px; }
.lyrics .tag:first-child { margin-top: 0; }
.row { display: grid; gap: 10px; }

/* ---------- packages ---------- */
.preview-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 22px; display: flex; gap: 14px; align-items: center; }
.preview-box .pdisc { flex: 0 0 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 16%, #fff 17%, #f3d7c4 60%, var(--accent) 61%); }
.preview-box.playing .pdisc { animation: spin 3s linear infinite; }
.preview-box .t { font-weight: 600; }
.preview-box .s { font-size: 13px; opacity: .75; }
.preview-box audio { width: 100%; margin-top: 8px; height: 36px; }
.pkgs { display: grid; gap: 14px; }
.pkg { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.pkg.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pkg .badge { position: absolute; top: -12px; right: 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; letter-spacing: .02em; }
.pkg .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pkg .name { font-weight: 700; font-size: 18px; }
.pkg .price { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.pkg .tagline { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.pkg li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.pkg .radio { position: absolute; top: 20px; left: -1px; }
.photo-box { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1.5px dashed #dcc6b3; text-align: center; }
.photo-box img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; margin: 0 auto 8px; }
.photo-box .err { color: #b91c1c; font-size: 14px; margin-top: 6px; }
.guarantee { display: flex; gap: 12px; align-items: center; margin: 20px 0; padding: 14px 16px; border-radius: var(--radius); background: #f2f8f3; border: 1px solid #d6eadb; font-size: 14px; line-height: 1.45; }
.guarantee .g { font-size: 26px; }

/* ---------- song page ---------- */
.cover { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(42, 31, 26, .25); background: var(--line); }
.player { margin: 18px 0; }
.player audio { width: 100%; }
.dl { display: grid; gap: 10px; margin: 16px 0; }
.status-list { display: grid; gap: 10px; margin: 24px 0; text-align: left; }
.status-list .it { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; }
.status-list .ic { width: 26px; text-align: center; }
.status-list .it.done { color: var(--ok); }
.status-list .it.wait { color: var(--muted); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 9; max-width: 90%; }
.demo-flag { background: #fff7d6; border: 1px solid #f0dc8a; color: #6b5300; font-size: 12px; padding: 6px 10px; border-radius: 8px; text-align: center; margin: 0 auto 10px; max-width: 520px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- multi-photo ($39) ---------- */
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); border: 0; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.thumb .star { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(42, 31, 26, .75); color: #fff; font-size: 10px; font-weight: 600; text-align: center; padding: 2px 0; }
.thumb .rm { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(42, 31, 26, .75); color: #fff; font-size: 15px; line-height: 20px; padding: 0; }
.thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1.5px dashed #dcc6b3; color: var(--accent); font-size: 22px; font-weight: 600; }
.thumb.add span { font-size: 11px; }
@media (max-width: 380px) { .thumbs { grid-template-columns: repeat(4, 1fr); } }
