:root {
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f5ff;
  --surface-tint: #efebff;
  --text: #251039;
  --text-soft: #442d55;
  --muted: #71677d;
  --border: #ddd6ea;
  --border-strong: #b6a9d1;
  --brand: #ff5149;
  --brand-strong: #e93e3a;
  --violet: #59317a;
  --violet-strong: #35144f;
  --danger: #b42318;
  --success: #257455;
  --warning: #8b5a00;
  --shadow: 0 18px 50px rgba(45, 25, 64, 0.10);
  --shadow-soft: 0 8px 26px rgba(45, 25, 64, 0.07);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid rgba(255, 81, 73, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--violet-strong);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(89, 49, 122, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; color: var(--brand); flex: 0 0 auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 650;
}
.desktop-nav a, .header-login { position: relative; }
.desktop-nav a::after, .header-login::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--brand);
  transition: right 180ms ease;
}
.desktop-nav a:hover::after, .header-login:hover::after { right: 0; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-login { font-weight: 700; color: var(--text-soft); }

.button, .btn, .auth-button, .generate-button, .share-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover, .btn:hover, .auth-button:hover, .generate-button:hover, .share-btn:hover {
  transform: translateY(-1px);
}
.button:disabled, .btn:disabled, button:disabled { opacity: 0.58; cursor: not-allowed; transform: none; }
.button, .button-primary, .header-cta, .auth-button, .generate-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 81, 73, 0.20);
}
.button:hover, .button-primary:hover, .header-cta:hover, .auth-button:hover, .generate-button:hover {
  background: var(--brand-strong);
  color: #fff;
}
.button-secondary, .btn-outline-secondary, .btn-outline-primary {
  border-color: var(--border-strong);
  background: #fff;
  color: var(--violet);
  box-shadow: none;
}
.button-secondary:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover {
  border-color: var(--violet);
  background: var(--surface-soft);
  color: var(--violet-strong);
}
.button-link { min-height: auto; padding: 8px 0; background: transparent; color: var(--violet); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  place-items: center;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  width: min(100% - 28px, 440px);
  margin: 0 14px 14px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a, .mobile-nav-button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.mobile-nav a:hover, .mobile-nav-button:hover { background: var(--surface-soft); }
.mobile-nav .button-primary { margin-top: 6px; justify-content: center; background: var(--brand); color: #fff; }
.mobile-nav .button-primary:hover { background: var(--brand-strong); color: #fff; }

.messages {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  gap: 10px;
}
.message {
  border: 1px solid var(--border);
  border-left: 5px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.message--success { border-left-color: var(--success); }
.message--error, .message--danger { border-left-color: var(--danger); }
.message--warning { border-left-color: var(--warning); }

.site-main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 72px; }
.site-main--full { width: 100%; padding: 0; }
.container { width: min(960px, 100%); margin-inline: auto; }
.content-shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }

.display-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lead { margin: 0; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.6; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-start { text-align: left; }
.fw-semibold { font-weight: 750; }
.text-danger { color: var(--danger); }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.my-4 { margin-top: 24px; margin-bottom: 24px; }
.my-5 { margin-top: 40px; margin-bottom: 40px; }
.py-4 { padding-block: 24px; }
.py-5 { padding-block: 40px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }

.form-control {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-control::placeholder { color: #9a91a4; }
.form-control[type="file"] { padding: 6px; }
.form-control[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  background: var(--surface-tint);
  color: var(--violet-strong);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.form-control:focus {
  border-color: var(--violet);
  outline: none;
  box-shadow: 0 0 0 4px rgba(89, 49, 122, 0.11);
}
.form-label, label { color: var(--text); font-size: 0.94rem; font-weight: 800; }
.form-text { margin-top: 7px; color: var(--muted); font-size: 0.88rem; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.field-errors, .errorlist { margin: 7px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 0.88rem; }

.workflow-progress {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.workflow-step { position: relative; display: flex; align-items: center; gap: 12px; color: #988cad; font-weight: 800; }
.workflow-step:not(:last-child)::after {
  content: "";
  height: 2px;
  flex: 1;
  margin-right: 18px;
  background: var(--border);
}
.workflow-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.workflow-step.is-active { color: var(--brand); }
.workflow-step.is-active .workflow-number { border-color: var(--brand); background: var(--brand); color: #fff; }
.workflow-step.is-complete { color: var(--violet); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #fff 0%, #fff 50%, #f6f2ff 100%);
}
.hero-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
}
.hero-copy { position: relative; z-index: 2; padding: 72px 0 64px; }
.hero-copy .lead { max-width: 640px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .button { min-height: 54px; padding-inline: 26px; font-size: 1rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 19px; color: var(--violet); }
.hero-art { align-self: end; min-height: 610px; display: grid; align-items: end; justify-items: center; }
.hero-art img { width: min(560px, 100%); max-height: 620px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 35px rgba(43, 23, 64, 0.15)); }
.wave-line { width: 100%; height: 38px; color: #c9bee4; }

.how-section { padding: 96px 0; background: #fff; }
.steps-intro { max-width: 720px; margin-bottom: 52px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 72px); }
.step-item { position: relative; padding-top: 26px; border-top: 1px solid var(--border); }
.step-number { color: var(--brand); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em; }
.step-item h3 { margin: 12px 0 10px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.1; }
.step-item p { margin: 0; color: var(--muted); }

.listen-section { padding: 84px 0; background: var(--surface-soft); border-block: 1px solid #e7e1f1; }
.listen-layout { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.listen-copy p { color: var(--muted); }
.sample-player { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.sample-cover { width: 100%; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); object-fit: cover; }
.sample-meta h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.sample-meta p { margin: 3px 0 16px; color: var(--muted); }
.sample-controls { display: flex; align-items: center; gap: 12px; }
.play-button { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--violet-strong); color: #fff; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.play-button:hover { background: var(--violet); transform: translateY(-1px); }
.play-button:focus-visible { outline: 3px solid rgba(111, 76, 156, 0.28); outline-offset: 3px; }
.play-button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.progress-line { height: 4px; min-width: 36px; flex: 1; overflow: hidden; border-radius: 3px; background: var(--border); }
.progress-line span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--violet); }
.sample-time { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sample-meta .sample-status { margin: 10px 0 0; color: #9b2226; font-size: 0.86rem; font-weight: 700; }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.account-container, .legal-page, .contact-page, .auth-container { width: min(980px, 100%); margin: 0 auto; }
.account-container > h1, .legal-page > h1, .contact-page > h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); }
.legal-page { color: var(--text-soft); }
.legal-page h2, .legal-page h3 { color: var(--text); font-family: var(--font-display); }
.legal-page h2 { margin: 38px 0 10px; font-size: 1.75rem; }
.legal-page p { max-width: 820px; }
.contact-page .account-panel { padding: 26px; }
.contact-page .account-panel h2 { margin: 0 0 8px; font-family: var(--font-display); }

.auth-intro { max-width: 700px; margin: 0 auto 34px; text-align: center; }
.auth-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.auth-panel { padding: clamp(24px, 4vw, 48px); background: #fff; }
.auth-panel--narrow { max-width: 580px; margin-inline: auto; }
.auth-panel + .auth-panel { border-left: 1px solid var(--border); background: var(--surface-soft); }
.auth-panel h2 { margin: 0 0 22px; font-family: var(--font-display); font-size: 2rem; }
.auth-form { display: grid; gap: 16px; }
.auth-form p { margin: 0; display: grid; gap: 7px; }
.auth-form p input, .auth-form p select, .auth-form p textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
}
.auth-form .button { width: 100%; }
.auth-help { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-help a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.account-heading, .account-tracks { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.account-heading { margin-bottom: 34px; }
.account-heading .lead { margin-top: 10px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.account-panel { padding: 28px; }
.account-panel h2, .account-tracks h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.8rem; }
.account-panel p { color: var(--muted); }
.logout-form { margin-top: 18px; }
.account-tracks { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.account-tracks h2 { margin-bottom: 4px; }
.contact-grid { margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spaced-top { margin-top: 28px; }
.support-panel { max-width: 680px; margin-top: 32px; }

.badge { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 4px 10px; color: #fff; font-size: 0.76rem; font-weight: 850; white-space: nowrap; }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-secondary { background: #71677d; }
.bg-warning { background: #e8b448; }
.text-dark { color: #2b2035; }

.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 60px 0 24px; color: var(--muted); }
.footer-grid { width: min(1180px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 0.8fr); gap: 40px; }
.footer-grid h2 { margin: 0 0 13px; color: var(--text); font-family: var(--font-ui); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-grid a, .footer-link-button { display: block; width: fit-content; margin: 8px 0; border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.footer-grid a:hover, .footer-link-button:hover { color: var(--violet); }
.footer-brand p { max-width: 320px; margin: 16px 0 0; }
.footer-bottom { width: min(1180px, calc(100% - 36px)); margin: 44px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 0.82rem; }

.cookie-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; width: min(920px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-family: var(--font-display); font-size: 1.25rem; }
.cookie-banner p { margin: 3px 0 0; color: var(--muted); font-size: 0.88rem; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 68px; }
  .desktop-nav, .header-login, .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 4px; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr 0.72fr; }
  .hero-art { min-height: 500px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-main { width: min(100% - 24px, 1180px); padding: 32px 0 52px; }
  .hero-inner { width: min(100% - 28px, 1280px); grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 0 24px; }
  .hero-art { min-height: 330px; }
  .hero-art img { max-height: 390px; }
  .hero-trust { display: grid; grid-template-columns: 1fr; }
  .steps-grid, .listen-layout { grid-template-columns: 1fr; }
  .how-section, .listen-section { padding: 64px 0; }
  .sample-player { grid-template-columns: 82px 1fr; padding: 13px; gap: 14px; }
  .workflow-progress { width: min(100% - 24px, 1260px); margin-bottom: 28px; }
  .workflow-step { gap: 7px; font-size: 0.78rem; }
  .workflow-step:not(:last-child)::after { margin-right: 7px; }
  .workflow-number { width: 30px; height: 30px; flex-basis: 30px; }
  .auth-grid { grid-template-columns: 1fr; }
  .account-heading, .account-tracks { align-items: stretch; flex-direction: column; }
  .account-grid, .contact-grid { grid-template-columns: 1fr; }
  .auth-panel + .auth-panel { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom, .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column-reverse; }
}

@media (max-width: 480px) {
  .header-inner { width: min(100% - 24px, 1280px); }
  .brand { font-size: 1.45rem; }
  .brand-mark { width: 22px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .display-title { font-size: clamp(2.65rem, 14vw, 4rem); }
  .workflow-step span:last-child { max-width: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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