:root {
  --bg: #fdf8f3;
  --surface: #ffffff;
  --ink: #2b2118;
  --muted: #6b5a4c;
  --line: #eadfd3;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fde7da;
  --ok: #15803d;
  --radius: 16px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
img, audio { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
section { padding: 56px 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.topbar { padding: 16px 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }

.hero { padding-top: 24px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-badges li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.btn { display: inline-block; border: 0; border-radius: 12px; padding: 15px 24px; font: 600 1.05rem var(--sans); cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .2em; }
.card audio { width: 100%; margin-top: 10px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }

form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--surface); color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { font-weight: 500; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--surface); margin: 0; }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.error { background: #fef2f2; color: #991b1b; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.hidden { display: none !important; }

.progress { text-align: center; padding: 32px 8px; }
.progress .note { font-family: var(--serif); font-size: 1.35rem; min-height: 2em; }
.dots { display: inline-flex; gap: 6px; margin-top: 12px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; } html { scroll-behavior: auto; } }

.lyrics { white-space: pre-line; font-family: var(--serif); font-size: 1.05rem; background: var(--bg); border-radius: 12px; padding: 16px; max-height: 340px; overflow: auto; }
.lyrics strong { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tiers { display: grid; gap: 10px; margin: 18px 0; }
.tier { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.tier:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tier input { margin-top: 5px; accent-color: var(--accent); }
.tier .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pricing .amount { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.pricing ul { padding-left: 1.1em; margin: 0 0 1em; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

footer { padding: 40px 0 60px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
footer a { color: var(--muted); }

.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 640px; margin: auto; background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; z-index: 20; }
.cookie-bar p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-bar a { color: #fff; }
.cookie-bar .btn { padding: 10px 16px; font-size: .95rem; }
.cookie-bar .btn-ghost { color: #fff; border-color: #ffffff55; }

.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

.qr-card { display: flex; gap: 20px; align-items: center; border: 1.5px dashed var(--line); border-radius: 16px; padding: 20px; background: var(--surface); }
.qr-card .qr { flex: 0 0 auto; }
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .qr-card, .qr-card * { visibility: visible; }
  .qr-card { position: absolute; left: 0; top: 0; border: 2px solid #000; }
}
