:root {
  color-scheme: dark;
  --mc-bg: #10100f;
  --mc-panel: #1b1916;
  --mc-panel-soft: #25211b;
  --mc-text: #f7efe2;
  --mc-muted: #b8a995;
  --mc-gold: #d7a85f;
  --mc-gold-soft: rgba(215, 168, 95, 0.16);
  --mc-border: rgba(247, 239, 226, 0.12);
  --mc-shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(215, 168, 95, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 0%, rgba(170, 82, 44, 0.20), transparent 28rem),
    var(--mc-bg);
  color: var(--mc-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.35;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--mc-border);
  background: rgba(16, 16, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  color: var(--mc-gold);
  background: linear-gradient(145deg, #28231b, #151412);
}

.top-nav a {
  color: var(--mc-muted);
  font-size: 14px;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--mc-text);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.hero-photo-montage {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, black 52%, black 88%, transparent 100%);
}

.hero-photo {
  position: absolute;
  object-fit: contain;
  filter: grayscale(1) sepia(.18) contrast(.78) brightness(.72);
  mix-blend-mode: screen;
  opacity: .11;
}

.hero-photo-tribute {
  width: 360px;
  height: 500px;
  right: 28%;
  top: 4%;
  transform: rotate(-8deg);
}

.hero-photo-bu47 {
  width: 270px;
  height: 430px;
  right: 7%;
  top: 12%;
  transform: rotate(10deg);
  opacity: .14;
}

.hero-photo-b67 {
  width: 250px;
  height: 390px;
  right: 18%;
  bottom: -5%;
  transform: rotate(5deg);
  opacity: .08;
}

.hero-photo-bu47-cutout {
  width: 430px;
  height: 650px;
  right: 3%;
  top: 35%;
  opacity: .12;
  transform: rotate(0deg);
}

.hero-copy,
.upload-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 850px;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 350;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 710px;
  margin: 28px 0 0;
  color: var(--mc-muted);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.32;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mc-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--mc-gold);
  color: #17120a;
}

.button-secondary {
  border: 1px solid var(--mc-border);
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.04);
}

.promise {
  margin-top: 24px;
  color: var(--mc-text);
  font-weight: 700;
}

.upload-card {
  overflow: hidden;
  border: 1px solid var(--mc-border);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--mc-panel);
  box-shadow: 0 26px 80px var(--mc-shadow);
}

.upload-card-top,
.mini-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--mc-muted);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7edc89;
  box-shadow: 0 0 20px #7edc89;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0 18px;
  border: 1px dashed rgba(215, 168, 95, 0.48);
  border-radius: 24px;
  background: var(--mc-gold-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--mc-gold);
  background: rgba(215, 168, 95, 0.24);
  transform: translateY(-2px);
}

.drop-zone strong {
  display: block;
  font-size: 28px;
}

.drop-zone span {
  display: block;
  margin-top: 10px;
  color: var(--mc-muted);
}

.drop-zone small {
  display: block;
  max-width: 90%;
  margin-top: 12px;
  overflow: hidden;
  color: var(--mc-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-controls {
  flex-wrap: wrap;
}

.mini-controls button {
  min-height: 42px;
  border: 1px solid var(--mc-border);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--mc-panel-soft);
  color: var(--mc-text);
  cursor: pointer;
}

.mini-controls button:hover,
.mini-controls button.is-selected {
  border-color: var(--mc-gold);
  background: var(--mc-gold-soft);
}

.render-button {
  width: calc(100% - 36px);
  min-height: 48px;
  margin: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--mc-gold);
  color: #17120a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.render-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.render-status {
  min-height: 24px;
  margin: 14px 18px 0;
  color: var(--mc-muted);
  font-size: 14px;
}

.render-status[data-state="error"] { color: #ff9e8d; }
.render-status[data-state="success"] { color: #9de7a6; }
.render-status[data-state="ready"] { color: var(--mc-text); }

.render-result {
  display: grid;
  gap: 12px;
  margin: 18px;
  padding: 16px;
  border: 1px solid rgba(126, 220, 137, 0.35);
  border-radius: 18px;
  background: rgba(126, 220, 137, 0.08);
}

.render-result audio { width: 100%; }

.download-link {
  color: var(--mc-gold);
  font-weight: 800;
}

.waveform {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
  padding: 18px;
  border-top: 1px solid var(--mc-border);
}

.waveform span {
  flex: 1;
  height: calc(28% + var(--i, 0) * 8%);
  min-height: 24px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(var(--mc-gold), rgba(215, 168, 95, 0.25));
}

.waveform span:nth-child(1) { --i: 2; }
.waveform span:nth-child(2) { --i: 6; }
.waveform span:nth-child(3) { --i: 4; }
.waveform span:nth-child(4) { --i: 8; }
.waveform span:nth-child(5) { --i: 5; }
.waveform span:nth-child(6) { --i: 7; }
.waveform span:nth-child(7) { --i: 3; }
.waveform span:nth-child(8) { --i: 6; }

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro {
  padding-top: 0;
}

.intro p {
  max-width: 940px;
  margin: 0 auto;
  color: var(--mc-text);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 430;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.honesty h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 430;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cabinet-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--mc-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.cabinet-card.featured {
  border-color: rgba(215, 168, 95, 0.52);
  background: linear-gradient(160deg, var(--mc-gold-soft), rgba(255, 255, 255, 0.045));
}

.cabinet-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.cabinet-card p {
  margin: 14px 0 18px;
  color: var(--mc-text);
  font-size: 18px;
  line-height: 1.35;
}

.cabinet-card span {
  color: var(--mc-muted);
  font-size: 14px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.step-grid li {
  position: relative;
  padding: 62px 22px 22px;
  border: 1px solid var(--mc-border);
  border-radius: 24px;
  background: var(--mc-panel);
  counter-increment: steps;
}

.step-grid li::before {
  content: counter(steps);
  position: absolute;
  top: 18px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--mc-gold);
  color: #17120a;
  font-weight: 900;
}

.step-grid strong,
.step-grid span {
  display: block;
}

.step-grid strong {
  margin-bottom: 10px;
  font-size: 22px;
}

.step-grid span,
.honesty p,
.site-footer {
  color: var(--mc-muted);
  line-height: 1.55;
}

.honesty {
  max-width: 980px;
}

.honesty p {
  max-width: 760px;
  font-size: 18px;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px) 48px;
  border-top: 1px solid var(--mc-border);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .cabinet-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .cabinet-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
/* Account/sign-in controls */
.account-button { border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; padding: .55rem .9rem; font: inherit; cursor: pointer; }
.account-button:disabled { opacity: .55; cursor: not-allowed; }
.auth-dialog[hidden] { display: none; }
.auth-dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgb(11 15 20 / 68%); }
.auth-dialog-card { position: relative; width: min(100%, 30rem); max-width: 30rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 2rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 1.25rem; background: #151a20; color: #f6f3ed; box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%); }
.auth-dialog-card h2 { margin-top: .25rem; }
.auth-dialog-card form { display: grid; gap: .65rem; margin-top: 1.25rem; }
#auth-form[hidden], #auth-account-state[hidden] { display: none !important; }
.auth-dialog-card input { width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: .6rem; background: #0f1317; color: inherit; font: inherit; }
.auth-dialog-card .remember-choice { display: flex; align-items: center; gap: .55rem; font-size: .92rem; }
.auth-dialog-card .remember-choice input { width: auto; }
.account-credit-actions { display: grid; gap: .65rem; margin: .8rem 0 1.2rem; }
.account-credit-actions .button { width: 100%; }
.account-credits { margin: .35rem 0 1.2rem; color: #e6b55e; font-weight: 700; }
.render-credits { margin: .55rem 0; color: #e6b55e; font-weight: 700; }
.render-history { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 12%); }
.render-history h3 { margin-bottom: .4rem; }
.render-history-item { padding: .65rem 0; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .9rem; }
.render-history-item p { margin: 0 0 .55rem; }
.render-history-item audio { display: block; width: 100%; height: 34px; margin: .35rem 0 .45rem; }
.history-download { color: var(--accent); font-size: .82rem; text-decoration: none; }
.history-download:hover { text-decoration: underline; }
.auth-close { position: absolute; top: .75rem; right: .9rem; border: 0; background: transparent; color: inherit; font-size: 1.6rem; cursor: pointer; }
.auth-status[data-state="error"] { color: #ff9b86; }
.auth-status[data-state="success"] { color: #8de2ac; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pricing-card { display: grid; gap: .8rem; padding: 1.5rem; border: 1px solid rgb(255 255 255 / 14%); border-radius: 1rem; background: rgb(255 255 255 / 4%); }
.pricing-card strong { font-size: 1.8rem; }
.pricing-card .button { width: fit-content; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.review-card { display: grid; gap: .85rem; min-height: 190px; padding: 1.5rem; border: 1px solid rgb(255 255 255 / 14%); border-radius: 1rem; background: linear-gradient(150deg, rgb(215 168 95 / 12%), rgb(255 255 255 / 4%)); }
.review-stars { color: var(--mc-gold); letter-spacing: .12em; }
.review-card blockquote { margin: 0; color: var(--mc-text); font-size: 1.08rem; line-height: 1.5; }
.review-card cite { color: var(--mc-muted); font-size: .9rem; font-style: normal; }
.reviews-empty { grid-column: 1 / -1; margin: 0; padding: 1.5rem; border: 1px dashed rgb(255 255 255 / 18%); border-radius: 1rem; color: var(--mc-muted); }
.review-account-panel, .moderation-panel { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 12%); }
.review-account-panel > p { color: var(--mc-muted); }
.review-form { display: grid; gap: .65rem; }
.review-form input, .review-form select, .review-form textarea { width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: .6rem; background: #0f1317; color: inherit; font: inherit; }
.review-form textarea { min-height: 110px; resize: vertical; }
.review-form .button { width: fit-content; margin-top: .35rem; }
.review-status { min-height: 1.4em; color: var(--mc-muted); }
.moderation-item { display: grid; gap: .55rem; padding: .85rem 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.moderation-item p { margin: 0; color: var(--mc-muted); line-height: 1.45; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.render-credits,
.render-status { text-align: center; }
.faq-list { display: grid; gap: .75rem; max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid rgb(255 255 255 / 14%); border-radius: 1rem; background: rgb(255 255 255 / 4%); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; color: var(--mc-text); font-size: 1.05rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--mc-gold); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 760px; margin: 0; padding: 0 1.3rem 1.25rem; color: var(--mc-muted); line-height: 1.65; }
.moderation-actions .button { min-height: 38px; padding: 0 .8rem; font-size: .86rem; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .pricing-grid, .reviews-grid { grid-template-columns: 1fr; } }
