/* =========================================================
   Keepsong — design system
   Light, strict, modern. Chrome vinyl + liquid glass.
   ========================================================= */

:root {
  /* palette */
  --bg: #e7e6e3;
  --panel: #f1f0ed;
  --panel-2: #f7f6f4;
  --card: #ffffff;
  --ink: #131313;
  --ink-2: #4d4b47;
  --ink-3: #8b8883;
  --ink-4: #b9b6b0;
  --line: rgba(19, 19, 19, 0.08);
  --line-2: rgba(19, 19, 19, 0.14);
  --accent-ice: #a9e4ec;
  --danger: #b4382f;
  --ok: #2f7a4f;

  /* type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);

  /* shape */
  --r-xl: clamp(28px, 4vw, 48px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;

  /* depth */
  --sh-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --sh-float: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(20, 22, 30, 0.28);
  --sh-pill: 0 1px 1px rgba(0, 0, 0, 0.04), 0 6px 16px -8px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */

.frame {
  width: min(100% - 24px, 1320px);
  margin: 12px auto 24px;
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) { .frame { width: min(100% - 48px, 1320px); margin-top: 24px; gap: 16px; } }

.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--sh-soft);
  overflow: hidden;
}
.panel--white { background: var(--card); }
.panel--soft { background: var(--panel-2); }

.section { padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px); }
.container { max-width: var(--container); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: var(--pill);
  background: var(--card); box-shadow: var(--sh-pill);
  color: var(--ink-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.h-display, .h-section {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-display { font-size: var(--fs-3xl); }
.h-section { font-size: var(--fs-2xl); line-height: 1.1; }
.muted { color: var(--ink-3); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.center { text-align: center; margin-inline: auto; }

.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- buttons ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--pill); border: 0;
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.btn--dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px -10px rgba(0, 0, 0, 0.6); transform: translateY(-1px); }
.btn--light { background: var(--card); color: var(--ink); box-shadow: var(--sh-pill); }
.btn--light:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: rgba(19, 19, 19, 0.05); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: var(--fs-xs); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; box-shadow: none; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- header ---------- */

.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(20px, 3.5vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; letter-spacing: -0.03em; font-size: 1.125rem; text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, #e9e9e9 0 30%, transparent 31%),
    repeating-radial-gradient(circle at 50% 50%, #1b1b1b 0 1px, #2c2c2c 1px 2px),
    #222;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.25);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.55) 60deg, transparent 80deg 220deg, rgba(255,255,255,.4) 240deg, transparent 260deg);
  animation: spin 6s linear infinite;
}
.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: 8px 14px; border-radius: var(--pill); transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(19,19,19,.05); color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh - 24px, 980px);
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(120% 70% at 50% 0%, #f7f6f3 0%, var(--panel) 55%, #e9e8e4 100%);
  isolation: isolate;
}
.hero-inner {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(8px, 2vw, 24px) clamp(16px, 4vw, 48px) clamp(28px, 5vw, 64px);
  text-align: center;
}
.hero-title { max-width: 16ch; }
.hero-title .muted { color: #8f8c86; }
.hero-sub { margin: 0; max-width: 44ch; color: var(--ink-2); font-size: var(--fs-md); }
@media (min-width: 768px) { .hero-sub { font-size: var(--fs-lg); } }

.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: var(--fs-xs); color: var(--ink-3); font-weight: 550;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 14px; height: 14px; }

/* ---------- chrome vinyl ---------- */

.vinyl-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.vinyl-wrap {
  position: absolute;
  left: 50%;
  top: 58%;
  width: clamp(420px, 78vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  perspective: 1600px;
}
.prism {
  position: absolute; left: -30%; right: -30%; top: 50%; height: 16%;
  transform: translateY(-50%) rotate(-8deg);
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 120, 120, .0) 18%,
    rgba(255, 140, 120, .35) 26%, rgba(255, 220, 120, .35) 30%, rgba(140, 230, 170, .35) 34%,
    rgba(120, 200, 255, .38) 38%, rgba(170, 140, 255, .3) 42%, transparent 50%,
    rgba(170, 140, 255, .26) 58%, rgba(120, 200, 255, .32) 62%, rgba(140, 230, 170, .3) 66%,
    rgba(255, 220, 120, .3) 70%, rgba(255, 140, 120, .28) 74%, transparent 84%);
  filter: blur(18px);
  opacity: .9;
  mix-blend-mode: multiply;
  animation: prism 9s var(--ease) infinite alternate;
}
.vinyl-tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(64deg) rotateY(-14deg) rotateZ(-24deg);
  animation: float 10s ease-in-out infinite;
}
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  /* rim */
  background:
    radial-gradient(circle, transparent 0 69.2%, rgba(255,255,255,.9) 69.6%, #c9c9c9 70.1%, transparent 70.6%),
    radial-gradient(circle, #f2f2f2 0%, #d6d6d6 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.8),
    0 40px 80px -30px rgba(0,0,0,.35);
}
.vinyl-disc {
  position: absolute; inset: 0; border-radius: 50%;
  animation: spin 14s linear infinite;
  background:
    /* center hole */
    radial-gradient(circle, var(--panel) 0 1.4%, #8d8d8d 1.6%, transparent 1.9%),
    /* label: polished silver with a thin dark ring */
    radial-gradient(circle, transparent 0 4%, rgba(0,0,0,.18) 4.3%, transparent 4.8%, transparent 15.4%, #7a7a7a 15.7%, #fafafa 16.2%, transparent 16.6%),
    radial-gradient(circle, #f3f3f3 0 8%, #dcdcdc 15.6%, transparent 15.7%),
    /* inner smooth ring */
    radial-gradient(circle, #ececec 0 21%, rgba(0,0,0,.22) 21.3%, transparent 21.8%),
    /* grooves */
    repeating-radial-gradient(circle, rgba(0,0,0,.06) 0 0.5%, rgba(255,255,255,.28) 0.5% 1%),
    /* asymmetric chrome tone so rotation is visible */
    conic-gradient(from 0deg, #f6f6f6, #a9a9a9 10%, #fdfdfd 22%, #8c8c8c 37%, #e9e9e9 50%, #b3b3b3 63%, #ffffff 74%, #9d9d9d 88%, #f6f6f6);
}
.vinyl-label {
  position: absolute; inset: 37%; border-radius: 50%;
  display: grid; place-items: center;
  color: #6f6f6f; font-size: clamp(6px, .8vw, 10px); font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
}
.vinyl-label span { transform: translateY(-160%); opacity: .75; }
.vinyl-sheen {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 210deg at 50% 50%,
      transparent 0deg, rgba(255,255,255,.95) 18deg, transparent 42deg,
      transparent 150deg, rgba(255,255,255,.75) 175deg, transparent 200deg,
      transparent 300deg, rgba(0,0,0,.12) 320deg, transparent 345deg);
  mix-blend-mode: soft-light;
  mask: radial-gradient(circle, transparent 0 16.6%, #000 17%, #000 70%, transparent 70.4%);
  -webkit-mask: radial-gradient(circle, transparent 0 16.6%, #000 17%, #000 70%, transparent 70.4%);
}
.vinyl-flare {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 18% 9% at 26% 62%, rgba(255,255,255,1), transparent 70%),
    radial-gradient(ellipse 14% 6% at 74% 40%, rgba(255,255,255,.9), transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: flare 6s ease-in-out infinite alternate;
}
.vinyl-shadow {
  position: absolute; left: 12%; right: 12%; bottom: 8%; height: 14%;
  background: radial-gradient(ellipse at center, rgba(30,30,40,.22), transparent 70%);
  filter: blur(16px);
  transform: translateZ(-1px);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: rotateX(64deg) rotateY(-14deg) rotateZ(-24deg) translateZ(0); }
  50% { transform: rotateX(60deg) rotateY(-10deg) rotateZ(-22deg) translateZ(24px); }
}
@keyframes prism { from { transform: translateY(-50%) rotate(-8deg) translateX(-3%); opacity: .7; } to { transform: translateY(-50%) rotate(-6deg) translateX(3%); opacity: 1; } }
@keyframes flare { from { opacity: .6; } to { opacity: 1; } }

/* ---------- liquid glass ---------- */

.glass {
  --gx: 50%;
  --gy: 0%;
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.4) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(170%) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.5),
    inset 0 0 24px rgba(255,255,255,.35),
    inset 0 -14px 28px -18px rgba(150, 220, 230, .35),
    0 1px 2px rgba(0,0,0,.04),
    0 40px 80px -36px rgba(20, 24, 34, .38);
  isolation: isolate;
}
/* refraction (Chromium only, enabled from JS) */
.has-refraction .glass--refract {
  -webkit-backdrop-filter: url(#liquid-refraction) blur(18px) saturate(170%) brightness(1.04);
  backdrop-filter: url(#liquid-refraction) blur(18px) saturate(170%) brightness(1.04);
}
/* edge glints, like light caught by a glass slab */
.glass::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1.25px;
  background:
    radial-gradient(18% 60% at 50% 0%, #fff 0%, rgba(255,255,255,0) 100%),
    radial-gradient(30% 40% at 22% 100%, rgba(169, 228, 236, .95) 0%, transparent 100%),
    radial-gradient(30% 40% at 78% 100%, rgba(169, 228, 236, .85) 0%, transparent 100%),
    radial-gradient(10% 40% at 100% 40%, rgba(169, 228, 236, .7) 0%, transparent 100%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.35) 40%, rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}
/* specular highlight following the pointer */
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(420px circle at var(--gx) var(--gy), rgba(255,255,255,.45), transparent 45%),
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.55), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
  transition: opacity .4s;
}
.glass > * { position: relative; z-index: 3; }

/* top flare dot, as in the reference */
.glass-flare {
  position: absolute !important; z-index: 4 !important;
  top: -1px; left: 50%; width: 120px; height: 2px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #fff, rgba(255,255,255,0));
  box-shadow: 0 0 18px 6px rgba(255,255,255,.75);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- composer (quiz in glass) ---------- */

.composer {
  width: min(100%, 720px);
  padding: clamp(18px, 3vw, 28px);
  text-align: left;
  display: grid;
  gap: 20px;
}
.composer-head { display: grid; gap: 14px; }

.step-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.step-hint { margin: -10px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }

.step { display: grid; gap: 18px; animation: stepIn .5s var(--ease); }
.step[hidden] { display: none; }
.step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.field { display: grid; gap: 8px; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink);
}
.field-label .opt { font-weight: 500; color: var(--ink-3); }
.field-help { font-size: var(--fs-xs); color: var(--ink-3); }
.field-error { font-size: var(--fs-xs); color: var(--danger); min-height: 0; }

/* glass input well */
.input,
.textarea,
.select {
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: var(--fs-md);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.75));
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.06),
    inset 0 0 0 1px rgba(255,255,255,.9),
    0 1px 0 rgba(255,255,255,.8);
  transition: box-shadow .25s var(--ease), background .25s;
  outline: none;
}
.panel--white .input, .panel--white .textarea {
  background: var(--panel-2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05), inset 0 0 0 1px var(--line);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus {
  background: rgba(255,255,255,.92);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.05),
    0 0 0 1px rgba(19,19,19,.9),
    0 0 0 6px rgba(19,19,19,.06);
}
.input--hero {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 18px 22px;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23131313' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.75));
  background-repeat: no-repeat;
  background-position: right 18px center, 0 0;
}
.counter { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.is-low { color: var(--ink-2); }

/* chips / tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--pill); border: 0;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(19,19,19,.07), 0 1px 2px rgba(0,0,0,.04);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  cursor: pointer; user-select: none;
  transition: background .2s, color .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: #fff; color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] {
  background: linear-gradient(180deg, #2a2a2a, #111);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -8px rgba(0,0,0,.6);
}
.chip[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.chip--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(19,19,19,.12); font-weight: 550; }
.chip--ghost:hover { background: rgba(255,255,255,.6); }
.chip .emoji { font-size: 1rem; line-height: 1; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tiles .chip { justify-content: center; border-radius: var(--r-sm); min-height: 48px; }

.composer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 4px;
}
.composer-foot .btn--dark { min-width: 140px; }
.consent-line { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.consent-line a, .link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.consent-line a:hover, .link:hover { color: var(--ink); text-decoration-color: currentColor; }

.soft-tip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.55);
  font-size: var(--fs-xs); color: var(--ink-2);
}

/* ---------- progress bar (reference: thin pill + knob + glowing %) ---------- */

.progress { display: grid; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.progress-label { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); letter-spacing: .02em; }
.progress-label b { color: var(--ink); font-weight: 700; }
.progress-pct {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 0 1px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,1), 0 6px 18px rgba(0,0,0,.12);
}
.progress-track {
  position: relative;
  height: 14px;
  border-radius: var(--pill);
  background: rgba(19,19,19,.09);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12), 0 1px 0 rgba(255,255,255,.8);
  overflow: visible;
}
.progress-fill {
  --p: 0;
  position: absolute; left: 0; top: 0; bottom: 0;
  width: max(14px, calc(var(--p) * 1%));
  border-radius: inherit;
  background: linear-gradient(180deg, #333 0%, #111 60%, #000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 0 1px rgba(255,255,255,.4),
    0 4px 14px -2px rgba(0,0,0,.35);
  transition: width .9s var(--ease);
}
.progress-fill::after {
  /* the glowing knob at the leading edge */
  content: "";
  position: absolute; right: 2px; top: 2px; bottom: 2px; width: 22px; max-width: calc(100% - 4px);
  border-radius: inherit;
  background: linear-gradient(180deg, #fff, #e6e6e6);
  box-shadow: 0 0 10px 2px rgba(255,255,255,.9), 0 0 24px 6px rgba(255,255,255,.55);
}
.progress--xl .progress-track { height: 22px; }
.progress--xl .progress-pct { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.progress--xl .progress-fill { width: max(22px, calc(var(--p) * 1%)); }
.progress--xl .progress-fill::after { width: 34px; }
.progress-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.progress-steps i {
  height: 3px; border-radius: 2px; background: rgba(19,19,19,.1);
  transition: background .4s;
}
.progress-steps i.is-done { background: var(--ink); }

/* ---------- trust strip ---------- */

.strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 72px);
}
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip-item { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.01em; }
.strip-item small { display: block; font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); }
.strip-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.strip-icon svg { width: 18px; height: 18px; }

/* ---------- samples ---------- */

.samples { display: grid; gap: 12px; align-items: start; }
@media (min-width: 640px) { .samples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  /* 5 cards: 3 on top, 2 centered below */
  .samples { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .samples .sample { grid-column: span 2; }
  .samples .sample:nth-child(4) { grid-column: 2 / span 2; }
}
.sample { align-content: start; }
.sample-more { border-top: 1px solid var(--line); padding-top: 12px; }
.sample-more summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2);
}
.sample-more summary::-webkit-details-marker { display: none; }
.sample-more summary::after { content: "+"; font-size: 1.1rem; color: var(--ink-3); transition: transform .3s var(--ease); }
.sample-more[open] summary::after { transform: rotate(45deg); }
.sample-more-body { display: grid; gap: 14px; padding-top: 12px; max-height: 340px; overflow: auto; }
.sample-story { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.sample-story b { color: var(--ink); }
.lyrics--compact { columns: 1 !important; font-size: var(--fs-xs); }
.lyrics--compact section { margin-bottom: 12px; }
.sample {
  display: grid; gap: 18px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-soft);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sample:hover { transform: translateY(-3px); box-shadow: var(--sh-float); }
/* Cover: soft gray gradient, big occasion title, a record peeking out from the right like from a sleeve */
.sample-art {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(90% 120% at 100% 50%, #e4e3df 0%, transparent 60%),
    linear-gradient(135deg, #f7f6f3 0%, #ecebe7 55%, #e2e1dc 100%);
  isolation: isolate;
}
.mini-vinyl {
  position: absolute; top: -9%; right: -24%;
  height: 118%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, #ecebe7 0 2.6%, #8f8f8f 2.9%, transparent 3.3%),
    radial-gradient(circle, #f4f4f4 0 10%, #dedede 15.5%, #7c7c7c 15.8%, #fafafa 16.3%, transparent 16.7%),
    radial-gradient(circle, #ececec 0 21%, rgba(0,0,0,.2) 21.3%, transparent 21.8%),
    repeating-radial-gradient(circle, rgba(0,0,0,.07) 0 .6%, rgba(255,255,255,.3) .6% 1.2%),
    conic-gradient(from 0deg, #f6f6f6, #a9a9a9 10%, #fdfdfd 22%, #8c8c8c 37%, #e9e9e9 50%, #b3b3b3 63%, #ffffff 74%, #9d9d9d 88%, #f6f6f6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.9), -18px 0 40px -18px rgba(0,0,0,.35);
  animation: spin 9s linear infinite paused;
  transition: right .9s var(--ease);
  z-index: 0;
}
/* fades the record into the background on the text side */
.sample-art::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,246,243,.96) 0%, rgba(247,246,243,.75) 38%, rgba(247,246,243,0) 66%);
}
.sample.is-playing .mini-vinyl { animation-play-state: running; right: -14%; }
.sample-cover {
  position: absolute; left: clamp(16px, 6cqi, 24px); bottom: clamp(14px, 5cqi, 22px); z-index: 2;
  display: grid; gap: 6px; max-width: 72%;
}
.sample-cover-for {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.sample-cover-title {
  font-size: clamp(1.6rem, 10.5cqi, 2.6rem);
  font-weight: 750; letter-spacing: -0.05em; line-height: .92;
  color: var(--ink);
  text-wrap: balance;
}
.sample-title { margin: 0; font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.02em; }
.sample-meta { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
.sample-quote { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); font-style: italic; }

/* player */
.player { display: flex; align-items: center; gap: 12px; }
.play-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #2a2a2a, #111); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px -8px rgba(0,0,0,.6);
  transition: transform .2s var(--ease);
}
.play-btn:active { transform: scale(.94); }
.play-btn svg { width: 16px; height: 16px; }
.play-btn .i-pause { display: none; }
.is-playing .play-btn .i-play { display: none; }
.is-playing .play-btn .i-pause { display: block; }
.player-body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.wave { display: flex; align-items: center; gap: 2px; height: 28px; cursor: pointer; }
.wave i {
  flex: 1; min-width: 2px; border-radius: 2px; background: var(--ink-4);
  transition: background .2s;
}
.wave i.on { background: var(--ink); }
.player-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- how it works ---------- */

.steps-grid { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 860px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.how {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
}
.how-num {
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); letter-spacing: .08em;
}
.how-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); box-shadow: var(--sh-pill);
}
.how-icon svg { width: 22px; height: 22px; }
.how h3 { margin: 4px 0 0; font-size: var(--fs-lg); letter-spacing: -0.02em; font-weight: 650; }
.how p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.ai-note {
  margin: 28px auto 0; max-width: 64ch; text-align: center;
  font-size: var(--fs-sm); color: var(--ink-3);
}

/* ---------- pricing ---------- */

.pricing { display: grid; gap: 16px; align-items: stretch; }
.pricing--single { max-width: 560px; margin: 0 auto; }
.price-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-float);
  display: grid; gap: 20px; align-content: start;
}
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 750; letter-spacing: -0.05em; line-height: 1; }
.price-note { font-size: var(--fs-sm); color: var(--ink-3); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.addons-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start;
}
.addon { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.addon:first-of-type { border-top: 0; }
.addon b { display: block; font-size: var(--fs-sm); }
.addon span { font-size: var(--fs-xs); color: var(--ink-3); }
.addon .addon-price { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.faq details {
  border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.faq details[open] { box-shadow: var(--sh-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-weight: 650; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23131313' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); font-size: var(--fs-sm); max-width: 68ch; }
.faq .answer p { margin: 0 0 8px; }

/* ---------- CTA ---------- */

.cta {
  text-align: center; display: grid; gap: 22px; justify-items: center;
  padding: clamp(56px, 8vw, 110px) 24px;
  background: radial-gradient(80% 120% at 50% 100%, #fff 0%, var(--panel-2) 60%);
}
.cta-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-3);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-ai { flex-basis: 100%; color: var(--ink-3); }

/* ---------- forms: checkbox / toggle ---------- */

.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: grid; place-items: center; transition: background .2s, box-shadow .2s;
}
.check input::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease);
}
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.7); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s var(--ease), background .2s;
}
.option:hover { background: #fff; }
.option:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-soft); }
.option input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; cursor: pointer; }
.option input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .2s var(--ease); }
.option input:checked { background: var(--ink); box-shadow: none; }
.option input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.option b { display: block; font-size: var(--fs-sm); }
.option small { color: var(--ink-3); font-size: var(--fs-xs); }
.option .option-price { font-weight: 700; font-size: var(--fs-sm); }

/* ---------- page shell for inner pages ---------- */

.page-hero {
  position: relative; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #f7f6f3, var(--panel) 60%);
}
.page-hero .vinyl-wrap { top: 120%; width: clamp(500px, 90vw, 1100px); opacity: .9; }
.page-hero { min-height: calc(100svh - 48px); display: flex; flex-direction: column; }
.page-hero > main { flex: 1; }
.page-body { padding: clamp(8px, 2vw, 16px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); }

/* checkout */
.checkout { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 20px; } }
.card-pad { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.summary-title { margin: 0; font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.025em; }
.kv { display: grid; gap: 0; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-2); }
.total-row b { font-size: 1.75rem; letter-spacing: -0.04em; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-box {
  padding: 18px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2);
  font-size: var(--fs-xs); color: var(--ink-3); text-align: center;
}
.trust { display: grid; gap: 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.trust span { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 14px; height: 14px; flex: none; }
.fine { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }

/* order */
.order-wrap { max-width: 880px; margin: 0 auto; display: grid; gap: 16px; }
.gen-card { padding: clamp(24px, 4vw, 44px); display: grid; gap: 28px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3);
  transition: color .4s;
}
.stage-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background .4s, box-shadow .4s;
}
.stage-dot svg { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.stage.is-active { color: var(--ink); }
.stage.is-active .stage-dot { box-shadow: inset 0 0 0 1.5px var(--ink); }
.stage.is-active .stage-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.stage.is-done { color: var(--ink); }
.stage.is-done .stage-dot { background: var(--ink); box-shadow: none; }
.stage.is-done .stage-dot svg { opacity: 1; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.gen-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }

.variants { display: grid; gap: 12px; }
@media (min-width: 760px) { .variants { grid-template-columns: 1fr 1fr; } .variants--single { grid-template-columns: 1fr; } }
.variant {
  padding: 22px; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-soft);
  display: grid; gap: 16px; transition: box-shadow .3s var(--ease);
}
.variant.is-primary { box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-float); }
.variant-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.variant-head h3 { margin: 0; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--pill); background: var(--ink); color: #fff; }
.badge--light { background: var(--panel); color: var(--ink-2); }
.variant-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.delivery { gap: 0; padding-block: 8px; }
.delivery-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0; }
.delivery-mail { border-top: 1px solid var(--line); }
.delivery-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
}
.delivery-icon svg { width: 22px; height: 22px; }
.mail-edit { display: grid; gap: 10px; padding: 4px 0 20px 64px; animation: stepIn .4s var(--ease); }
.mail-edit-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-edit-row .input { flex: 1 1 240px; padding-block: 12px; }
@media (max-width: 640px) {
  .delivery-row .btn--lg { width: 100%; }
  .mail-edit { padding-left: 0; }
  .mail-edit-row .btn--dark { flex: 1; }
}

/* redo editor: every quiz answer, editable */
.redo-editor { display: grid; gap: 10px; animation: stepIn .45s var(--ease); }
.redo-group {
  display: grid; gap: 16px; padding: 20px;
  border-radius: var(--r-md); background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .35s var(--ease), background .35s;
}
.redo-group.is-focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-soft); }
.redo-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.redo-group-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; }
.redo-group-head .badge { visibility: hidden; }
.redo-group.is-changed .redo-group-head .badge { visibility: visible; }
.redo-group .input, .redo-group .textarea, .redo-group .select { background: var(--panel-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.05), inset 0 0 0 1px var(--line); }
.redo-group .chip { background: var(--panel-2); }
.redo-group .chip[aria-pressed="true"] { background: linear-gradient(180deg, #2a2a2a, #111); }
.redo-group .tiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .redo-group .tiles { grid-template-columns: repeat(4, 1fr); } .redo-group .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.redo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

.lyrics { columns: 1; gap: 40px; font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 760px) { .lyrics { columns: 2; } }
.lyrics section { break-inside: avoid; margin-bottom: 20px; }
.lyrics h4 { margin: 0 0 6px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.lyrics p { margin: 0; white-space: pre-line; }

/* legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin: 0 0 8px; }
.legal .updated { color: var(--ink-3); font-size: var(--fs-sm); margin: 0 0 28px; }
.legal p, .legal li { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; }
.legal p strong:first-child { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.draft-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 28px; border-radius: var(--r-md);
  background: #fff7e0; color: #6b5310; font-size: var(--fs-sm);
  box-shadow: inset 0 0 0 1px rgba(170, 130, 20, .2);
}

/* ---------- dialog & cookie ---------- */

.dialog {
  width: min(100% - 24px, 760px); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--panel-2); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.45);
}
.dialog::backdrop { background: rgba(30,30,32,.35); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialogIn .4s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: rgba(247,246,244,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.dialog-body { padding: 24px clamp(20px, 4vw, 40px) 32px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--card); box-shadow: var(--sh-pill);
}

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 520px; margin-left: auto;
  padding: 18px; display: grid; gap: 12px;
  font-size: var(--fs-xs); color: var(--ink-2);
  animation: dialogIn .5s var(--ease);
}
.cookie p { margin: 0; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- mobile tuning ---------- */

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .vinyl-wrap { top: 52%; width: 150vw; }
  .page-hero .vinyl-wrap { top: 70%; }
  .hero .eyebrow { display: none; }
  .hero-inner { gap: 16px; }
  .hero-sub { font-size: var(--fs-sm); }
  .site-header { padding: 16px 18px; }
  .composer { border-radius: 24px; }
  .composer-foot { flex-wrap: wrap; }
  .composer-foot .btn--dark { flex: 1; }
  .textarea { min-height: 120px; }
  .hero-badges { display: none; }
}

/* Reduced motion: drop floating, sliding and blurring; keep only the slow, steady record spin
   (it is the brand's core image and moves in place, without parallax or flashes). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vinyl-tilt, .prism, .vinyl-flare, .dialog[open], .cookie { animation: none !important; }
  .vinyl-disc { animation-duration: 40s; }
  .step, .step.is-back { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .sample:hover { transform: none; }
}

/* Preview mode banner (config.preview) */
.preview-bar {
  position: relative; z-index: 50; padding: 10px 16px; text-align: center;
  font-size: var(--fs-sm); color: #fff; background: var(--ink); letter-spacing: -0.005em;
}
.preview-bar b { font-weight: 700; margin-right: 4px; }
