:root {
  /* KeeperSong brand: coral + navy (from the Gift Tag logo) */
  --cream: #fdf8f3;
  --paper: #ffffff;
  --ink: #1f2a44;          /* navy */
  --muted: #5b6475;
  --plum: #c94a2c;         /* action coral (darker for readable white text) */
  --plum-dark: #a93b21;
  --coral: #e05a3a;        /* logo coral */
  --rose: #f2b8a6;
  --gold: #e05a3a;
  --navy: #1f2a44;
  --line: #ece2d8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 42, 68, 0.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--plum); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Demo banner */
.demo-banner {
  background: #fff4d6; color: #6b4e00; font-size: 14px; text-align: center;
  padding: 8px 16px; border-bottom: 1px solid #f0dca0;
}
.demo-banner:empty { display: none; }

/* Header */
.site-header { padding: 18px 0; }
.brand { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--plum); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; color: #fff; font-size: 15px; }

/* Hero */
.hero { padding: 28px 0 40px; text-align: center; }
.hero .eyebrow { color: var(--plum); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.08; margin: 12px 0 14px; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--plum); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 30px; font-size: 17px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease;
  box-shadow: 0 8px 20px rgba(91, 42, 94, 0.25);
}
.btn:hover { background: var(--plum-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.secondary { background: transparent; color: var(--plum); box-shadow: none; border: 2px solid var(--line); }
.btn.block { width: 100%; }

.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; text-align: center; }
.steps-strip div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; font-size: 14px; color: var(--muted); }
.steps-strip strong { display: block; font-family: 'Playfair Display', Georgia, serif; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* Card */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px 24px; }

/* Questionnaire */
#questionnaire { padding: 10px 0 60px; scroll-margin-top: 20px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--plum), var(--gold)); transition: width .35s ease; }
.step { display: none; animation: fade .3s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 28px; margin: 0 0 6px; }
.step .hint { color: var(--muted); margin: 0 0 20px; }

label.field { display: block; font-weight: 600; margin: 18px 0 8px; }
label.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf9;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(91, 42, 94, .12); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  background: #fffdf9; font-size: 15px; transition: all .15s ease; user-select: none;
}
.chips label:hover { border-color: var(--rose); }
.chips input:checked + label { background: var(--plum); border-color: var(--plum); color: #fff; }
.chips input:focus-visible + label { box-shadow: 0 0 0 4px rgba(91, 42, 94, .2); }

.nav { display: flex; gap: 12px; margin-top: 28px; }
.nav .btn { flex: 1; }
.nav .back { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
.error { color: #a12d2d; font-size: 14px; margin-top: 12px; min-height: 1em; }
.fine-print { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* Song page */
.song-page { padding: 10px 0 70px; }
.center { text-align: center; }
.generating { padding: 40px 10px; }
.eq { display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: 56px; margin-bottom: 22px; }
.eq span { width: 8px; border-radius: 4px; background: var(--plum); animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .15s; background: var(--gold); }
.eq span:nth-child(3) { animation-delay: .3s; }
.eq span:nth-child(4) { animation-delay: .45s; background: var(--rose); }
.eq span:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { height: 12px; } 50% { height: 56px; } }
.status-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 300px; text-align: left; }
.status-steps li { padding: 6px 0; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.status-steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.status-steps li.active { color: var(--ink); font-weight: 600; }
.status-steps li.active::before { border-color: var(--plum); background: var(--plum); animation: pulse 1.2s infinite; }
.status-steps li.done::before { border-color: var(--plum); background: var(--plum); }
@keyframes pulse { 50% { opacity: .35; } }

.song-title { font-size: clamp(30px, 6vw, 42px); margin: 6px 0 2px; }
.song-for { color: var(--muted); margin: 0 0 22px; }

.player { display: flex; align-items: center; gap: 16px; background: var(--plum); color: #fff; border-radius: 20px; padding: 16px 18px; }
.play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #fff; color: var(--plum); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.play svg { width: 22px; height: 22px; }
.track { flex: 1; min-width: 0; }
.track .label { font-size: 13px; opacity: .8; margin-bottom: 6px; }
.bar { height: 6px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; cursor: pointer; }
.bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.time { font-size: 12px; opacity: .8; margin-top: 6px; display: flex; justify-content: space-between; }

.lyrics { margin: 28px 0 8px; }
.lyrics h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 6px; font-family: 'DM Sans', sans-serif; }
.lyrics p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; }
.locked { position: relative; margin-top: 16px; }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; color: var(--muted); font-family: 'Playfair Display', Georgia, serif; font-size: 18px; }
.locked .lock-note { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--plum); }

.buy { margin-top: 26px; text-align: center; }
.buy .price { font-size: 15px; color: var(--muted); margin-top: 10px; }
.unlocked-note { background: #eef8ef; border: 1px solid #cbe8cf; color: #24603a; border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; text-align: center; }

.demo-pay { margin-top: 18px; padding: 18px; border: 2px dashed var(--gold); border-radius: 16px; background: #fffaf0; text-align: center; }
.demo-pay p { margin: 0 0 12px; font-size: 14px; color: #6b4e00; }

footer { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 0 40px; }

@media (max-width: 520px) {
  .card { padding: 22px 18px; border-radius: 20px; }
  .steps-strip { grid-template-columns: 1fr; }
  .step h2 { font-size: 24px; }
}


/* ===== KeeperSong homepage (layout modelled on a centred video hero) ===== */
.announce { background: var(--navy); color: #fff; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; }
.site-header { padding: 14px 0; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; }
.brand img { display: block; height: 35px; width: auto; }
.btn-sm { padding: 10px 18px; font-size: 14px; box-shadow: none; letter-spacing: 0.02em; }

.hero { padding: 28px 0 48px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); box-shadow: 0 2px 10px rgba(31,42,68,0.06); }
.badge .stars { color: var(--coral); letter-spacing: 1px; font-size: 13px; }

.hero-video { position: relative; width: 100%; max-width: 560px; margin: 22px auto 26px; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 16px 40px rgba(31,42,68,0.18); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px; background: rgba(31,42,68,0.72); color: #fff; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; backdrop-filter: blur(4px); }
.unmute[aria-pressed="true"] { top: auto; bottom: 12px; transform: translateX(-50%); padding: 7px 12px; font-size: 12px; }

.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.18; margin: 0 auto 14px; max-width: 640px; color: var(--ink); }
.hero h1 .q { color: var(--coral); }
.hero h1 em { color: var(--coral); font-style: italic; }
.hero-sub { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); max-width: 520px; margin: 0 auto 24px; line-height: 1.6; }
.btn-cta { padding: 17px 34px; font-size: 17px; }
.assure { margin: 14px 0 0; font-size: 14px; color: var(--ink); }
.assure .check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1e8e5a; color: #fff; font-size: 11px; margin-right: 4px; vertical-align: 1px; }
.occasions { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.occasions li::before { content: '♪'; color: var(--coral); margin-right: 6px; }

.player { background: var(--navy); }
.player .play { color: var(--navy); }

footer { display: flex; flex-direction: column; align-items: center; gap: 6px; }
footer p { margin: 0; }
footer img { height: 23px; width: auto; opacity: 0.9; }

@media (max-width: 520px) {
  .announce { font-size: 11px; letter-spacing: 0.04em; padding: 8px 12px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }
  .badge { font-size: 10px; letter-spacing: 0.04em; padding: 6px 12px; gap: 6px; }
  .badge .stars { font-size: 11px; }
  .hero { padding-top: 20px; }
  .hero-video { margin: 16px auto 22px; border-radius: 16px; }
}

/* ===== Song page: preview, offer, upsell, delivered ===== */
#view-song > * + *, #view-extras > * + * { margin-top: 18px; }
#view-extras { margin-top: 18px; }
.kicker { color: var(--plum); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--plum); text-decoration: underline; cursor: pointer; }

.version-switch { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer; }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.actions-row .btn { padding: 12px 20px; font-size: 15px; }
.pending { margin-top: 16px; background: #fff7ed; border: 1px solid #fde1c4; border-radius: 14px; padding: 12px 16px; font-size: 15px; color: #7a3d12; text-align: center; }

.retake { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #f6c7b8; border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.retake small { color: var(--muted); font-size: 13px; }
.retake > span:nth-child(2) { flex: 1; }
.retake-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }

.feel-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; text-align: center; }
.feel-main { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 27px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.feel-sub { margin: 10px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

.offer { border: 2px solid var(--coral); }
.offer-label { display: block; width: max-content; margin: 0 auto 8px; background: #fde8e1; color: #a93b21; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.offer-title { text-align: center; margin: 0; font-size: clamp(24px, 4.4vw, 30px); }
.offer-sub { text-align: center; color: var(--muted); margin: 4px 0 18px; }
.tiers { display: grid; gap: 12px; }
.tier { position: relative; display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: #fff; }
.tier input { width: 20px; height: 20px; accent-color: var(--plum); flex: 0 0 auto; margin: 0; }
.tier.selected { border-color: var(--plum); background: #fff8f5; }
.tier-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tier-name { font-weight: 700; font-size: 16px; }
.tier-desc { font-size: 13px; color: var(--muted); }
.tier-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.tier-price s { color: #8a8f9c; font-size: 14px; }
.tier-price b { font-size: 22px; color: var(--ink); }
.tier-badge { position: absolute; top: -11px; right: 14px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.coupon { margin: 14px 0 6px; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-msg { font-size: 14px; min-height: 1.2em; margin-top: 6px; }
.coupon-msg.ok { color: #1e7a4d; }
.coupon-msg.bad { color: #a12d2d; }
.offer .btn-cta { margin-top: 10px; }

.why h2 { font-size: 22px; margin: 0 0 6px; text-align: center; }
.why-sub { text-align: center; color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.why-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #faf6f2; font-size: 15px; }
.why-other { color: #6b7280; text-decoration: line-through; text-decoration-color: #c4c8d0; }
.why-song { color: var(--ink); font-weight: 700; }
.why-song::before { content: '♪ '; color: var(--coral); }

.upsell .paid-tick { display: inline-block; background: #e7f6ee; color: #1e7a4d; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 10px; }
.upsell-title { font-size: clamp(20px, 3.6vw, 26px); margin: 4px 0 10px; }
.upsell-offer { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 5vw, 34px); color: var(--plum); font-weight: 700; margin: 6px 0; }
.upsell p { color: var(--ink); }
.upsell-points { list-style: none; padding: 0; margin: 14px auto; text-align: left; max-width: 380px; display: grid; gap: 6px; }
.upsell-points li::before { content: '✓  '; color: #1e7a4d; font-weight: 700; }
.upsell-price { font-size: 32px; font-weight: 700; margin: 8px 0 4px; }
.upsell .link-btn { display: block; margin: 12px auto 0; }

.share-card h2, .reaction-card h2 { margin: 4px 0 6px; font-size: 22px; }
.share-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.share-btn { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font: 600 15px 'DM Sans', sans-serif; color: var(--ink); background: #fff; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--plum); }
.steps { padding-left: 20px; margin: 12px 0 16px; display: grid; gap: 8px; }

/* ---------- Header nav, Track Order, order number ---------- */
.header-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current] { color: var(--plum); }
.footer-links { display: flex; gap: 18px; justify-content: center; }
.footer-links a { color: var(--muted); }
.track-title { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.track-sub { font-size: 19px; margin: 0 0 6px; }
#track-form .btn { margin-top: 18px; }
.track-steps { list-style: none; padding: 0; margin: 18px 0 22px; }
.track-steps li { position: relative; padding: 0 0 18px 36px; color: var(--ink); }
.track-steps li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; box-sizing: border-box; }
.track-steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 25px; bottom: 2px; width: 2px; background: var(--line); }
.track-steps li.done::before { content: '✓'; background: #1f8a5b; border-color: #1f8a5b; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.track-steps li.active::before { border-color: var(--coral); box-shadow: inset 0 0 0 4px #fff; background: var(--coral); }
.track-steps li.todo { color: var(--muted); }
.track-steps small { color: var(--muted); font-size: 14px; }
.order-no { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
@media (max-width: 520px) {
  .header-nav { gap: 10px; }
  .nav-link { font-size: 14px; }
}
#links-email { text-transform: none; letter-spacing: normal; }
.header-nav .btn-sm { white-space: nowrap; }
@media (max-width: 520px) {
  .header-nav .btn-sm { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 360px) { .header-nav .nav-link { display: none; } }
@media (max-width: 520px) {
  .header-row { gap: 8px; }
  .header-nav { gap: 10px; flex-shrink: 0; }
  .header-row .brand { flex-shrink: 1; min-width: 0; }
  .header-nav .btn-sm { padding: 8px 12px; font-size: 13px; }
}

/* ---------- Countdown before the full song appears ---------- */
.countdown { margin-top: 18px; background: #fff7ed; border: 1px solid #fde1c4; border-radius: 16px; padding: 20px 16px; text-align: center; color: var(--ink); }
.eq.eq-sm { height: 30px; margin-bottom: 12px; gap: 5px; }
.eq.eq-sm span { width: 6px; }
.cd-label { font-size: 15px; color: #7a3d12; }
.cd-time { font-family: 'DM Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 46px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; margin: 6px 0; color: var(--ink); }
.cd-sub { font-size: 14px; color: var(--muted); }
.skip-form { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 28px auto 0; opacity: 0.45; }
.skip-form:focus-within { opacity: 1; }
.skip-form input { width: 92px; padding: 4px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; min-height: 0; }
.skip-form button { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.skip-msg { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ---------- Branding: bigger logo, shown more often ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.video-brand { position: absolute; left: 14px; top: 12px; width: 118px; height: auto; z-index: 2; pointer-events: none; opacity: 0.92; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)); }
.card-logo { display: block; height: 26px; width: auto; margin: 0 auto 14px; }
.generating .card-logo { margin-bottom: 22px; }
.gift-cta { margin-top: 18px; }
.gift-cta-logo { display: block; height: 40px; width: auto; margin: 4px auto 14px; }
.gift-cta p { font-size: 17px; color: var(--ink); margin: 0 0 16px; }
@media (max-width: 520px) {
  .header-row .brand img { height: 23px; width: auto; }
  .header-nav { gap: 8px; }
  .nav-link { font-size: 13px; }
  .header-nav .btn-sm { padding: 8px 11px; font-size: 13px; }
  .video-brand { width: 92px; left: 10px; top: 9px; }
  .card-logo { height: 22px; }
}
@media (max-width: 380px) {
  .header-row .brand img { height: 20px; }
  .header-nav .nav-link { display: none; }
}
@media (max-width: 440px) {
  .header-nav:has(.btn-sm) .nav-link { display: none; }
}

/* ---------- Consent on the questionnaire ---------- */
.optin { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.optin input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--plum); }
.consent { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; text-align: left; }
.consent a { color: var(--muted); text-decoration: underline; }

/* ---------- Policy pages ---------- */
.legal { padding: 28px 24px; color: var(--ink); line-height: 1.65; font-size: 16px; }
.legal h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
.legal-date { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--plum); }
.legal-lead { font-size: 18px; background: #fff7ed; border: 1px solid #fde1c4; border-radius: 12px; padding: 14px 16px; }
.assure-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(31,42,68,0.3); text-underline-offset: 2px; }
[id] { scroll-margin-top: 84px; } /* keeps sections clear of the sticky header */

/* ---------- One free change ---------- */
.edit-card h2 { margin-top: 0; }
.edit-card textarea { min-height: 90px; }
.edit-fine { text-align: left; margin-top: 10px; }
.edit-card #edit-submit { margin-top: 12px; }
.pending.done { background: #e7f6ee; border-color: #bfe5cf; color: #1e7a4d; }

/* ---------- Giving back ---------- */
.giving { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-align: left; }
.giving-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #fdeee9; color: var(--coral); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.giving strong { color: var(--ink); font-size: 16px; }
.giving p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.giving-line { margin: 12px 0 0; padding: 10px 12px; background: #fdf3ef; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.giving-line span { color: var(--coral); }
.giving-line strong { color: var(--ink); }

/* ---------- Personal note: buyer writes it, recipient reads it before the song ---------- */
.note-card h2 { margin-top: 0; }
.note-prompt { margin: -4px 0 12px; color: var(--muted); font-style: italic; font-size: 15px; }
.note-card textarea { min-height: 110px; }
.note-fine { text-align: left; margin-top: 8px; }
.note-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.note-actions .coupon-msg { margin: 0; }
.gift-note { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px 26px; margin-bottom: 18px; text-align: center; box-shadow: 0 10px 30px rgba(31,42,68,0.07); }
.gift-note-from { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.gift-note-text { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 23px; line-height: 1.5; color: var(--ink); margin: 0 0 22px; white-space: pre-line; }
.gift-note-text::before { content: '“'; } .gift-note-text::after { content: '”'; }
