/* MyGiftSong — design system */

:root {
  --ink:        #14101f;
  --ink-2:      #241c38;
  --plum:       #2b1b4d;
  --violet:     #6d4aff;
  --violet-2:   #9a7bff;
  --gold:       #f5b544;
  --gold-2:     #ffd27a;
  --rose:       #ff6b8b;
  --paper:      #fffaf4;
  --paper-2:    #f6efe6;
  --line:       #e7dccd;
  --text:       #241f2e;
  --muted:      #6b6379;
  --on-dark:    #efe7ff;
  --on-dark-mut:#b6a9d6;
  --ok:         #1e9e6a;
  --err:        #d64545;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(20,16,31,.06), 0 8px 28px rgba(20,16,31,.08);
  --shadow-lg:  0 20px 60px rgba(20,16,31,.18);
  --wrap:       1120px;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:      "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny  { font-size: .8rem; }
section { padding-block: clamp(48px, 7vw, 92px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; letter-spacing: .005em;
  padding: 15px 30px; border-radius: 999px; border: 0;
  cursor: pointer; text-decoration: none !important; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #3a2606;
  box-shadow: 0 6px 22px rgba(245,181,68,.42);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(245,181,68,.5); }

.btn-violet {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(109,74,255,.35);
}

.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet); }

.btn-lg { padding: 18px 40px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,244,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none !important; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .45em;
}
.logo .note { color: var(--violet); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: .94rem; font-weight: 550; }
.nav a:hover { color: var(--violet); text-decoration: none; }
.nav .btn { padding: 11px 22px; font-size: .92rem; }
@media (max-width: 800px) { .nav a.hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 620px at 78% -12%, #4b2d8f 0%, transparent 62%),
              linear-gradient(165deg, var(--plum) 0%, var(--ink) 68%);
  color: var(--on-dark);
  padding-block: clamp(56px, 9vw, 104px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 12% 108%, rgba(245,181,68,.16), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--on-dark-mut); max-width: 52ch; margin-bottom: 1.8em; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 12px; color: var(--on-dark-mut); font-size: .9rem; }
.stars { color: var(--gold); letter-spacing: .12em; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff; font-weight: 700; font-family: var(--serif);
}

.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark h2 { color: #fff; }
.band-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--on-dark); box-shadow: none; }
.band-dark .card h3 { color: #fff; }
.band-soft { background: var(--paper-2); }

/* ---------- wizard ---------- */
.wizard { max-width: 720px; margin-inline: auto; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.progress { height: 7px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-bottom: 40px; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width .45s cubic-bezier(.4,0,.2,1); }

.step { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step > h2 { margin-bottom: .25em; }
.step > .sub { color: var(--muted); margin-bottom: 28px; }

.opts { display: grid; gap: 12px; }
.opts.c2 { grid-template-columns: repeat(2, 1fr); }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .opts.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .opts.c2, .opts.c3 { grid-template-columns: 1fr; } }

.opt {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; font-weight: 570; text-align: left;
  font-family: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.opt:hover { border-color: var(--violet-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.opt[aria-pressed="true"] {
  border-color: var(--violet); background: #f4f0ff;
  box-shadow: 0 0 0 3px rgba(109,74,255,.14);
}

label.fld { display: block; margin-bottom: 20px; }
label.fld > span { display: block; font-weight: 620; font-size: .93rem; margin-bottom: 7px; }
.inp, textarea.inp, select.inp {
  width: 100%; font: inherit; color: var(--text);
  padding: 14px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus, textarea.inp:focus, select.inp:focus {
  outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,74,255,.14);
}
textarea.inp { resize: vertical; min-height: 130px; line-height: 1.6; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 5px; }
.err { color: var(--err); font-size: .87rem; margin-top: 6px; font-weight: 550; }
.inp.has-err { border-color: var(--err); }

.wiz-nav { display: flex; gap: 14px; align-items: center; margin-top: 34px; }
.wiz-nav .btn-primary { margin-left: auto; }
.back-link { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 8px 0; font-weight: 570; }
.back-link:hover { color: var(--violet); }

/* ---------- player ---------- */
.player {
  background: linear-gradient(160deg, var(--plum), var(--ink));
  color: var(--on-dark); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-lg); text-align: center;
}
.player h2 { color: #fff; margin-bottom: .15em; }
.player .art {
  width: 190px; height: 190px; border-radius: 18px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--violet), var(--rose) 60%, var(--gold));
  display: grid; place-items: center; font-size: 4rem; box-shadow: var(--shadow-lg);
}
.player audio { width: 100%; margin-block: 22px; border-radius: 99px; }

.badge {
  display: inline-block; padding: 5px 13px; border-radius: 99px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge-gold { background: rgba(245,181,68,.18); color: var(--gold-2); }
.badge-ok   { background: rgba(30,158,106,.14); color: var(--ok); }
.badge-wait { background: rgba(109,74,255,.14); color: var(--violet); }

/* ---------- summary / checkout ---------- */
.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 24px; border-bottom: 1px solid var(--paper-2); }
.summary .row:last-child { border-bottom: 0; }
.summary .row.total { font-weight: 700; font-size: 1.2rem; background: var(--paper-2); border-top: 1px solid var(--line); }
.summary .row dt { color: var(--muted); margin: 0; }
.summary .row dd { margin: 0; text-align: right; font-weight: 570; }

.addon { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; margin-bottom: 12px; }
.addon:hover { border-color: var(--violet-2); }
.addon input { margin-top: 4px; width: 19px; height: 19px; accent-color: var(--violet); flex: none; }
.addon b { display: block; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; color: var(--muted); font-size: .88rem; margin-top: 26px; }
.trust-row span { display: inline-flex; align-items: center; gap: .45em; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: 12px; color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.quote .stars { font-size: .95rem; margin-bottom: 10px; display: block; }
.quote p { font-size: 1rem; }
.quote footer { font-size: .87rem; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-dark-mut); padding-block: 56px 32px; font-size: .92rem; }
.site-foot a { color: var(--on-dark-mut); }
.site-foot a:hover { color: #fff; }
.site-foot h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* ---------- misc ---------- */
.notice { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 550; }
.notice-warn { background: #fff6e5; border: 1px solid #f0d69a; color: #7a5514; }
.notice-err  { background: #fdeaea; border: 1px solid #f2bcbc; color: #8c2a2a; }
.notice-ok   { background: #e8f7f0; border: 1px solid #b3e2cd; color: #14623f; }

.spinner {
  width: 42px; height: 42px; margin: 0 auto 18px;
  border: 3px solid rgba(109,74,255,.2); border-top-color: var(--violet);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
