:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --text: #172033;
  --muted: #647084;
  --line: #dce3ee;
  --surface: #ffffff;
  --brand: #1769e0;
  --brand-dark: #0f4fb0;
  --accent: #d94f70;
  --accent-soft: #fff0f4;
  --ok: #12805c;
  --warn: #b76b00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.topbar span {
  display: flex;
  gap: 16px;
}

.site-hero {
  min-height: 620px;
  color: white;
  background:
    linear-gradient(105deg, rgba(7, 31, 68, 0.82), rgba(14, 70, 126, 0.62)),
    url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 160px;
}

.hero-content h1,
.app-header h1,
.admin-header h1 {
  margin: 0;
  line-height: 1.05;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-proof,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span,
.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-hero .eyebrow {
  color: #9ed0ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.range-controls button,
.admin-sidebar button,
.actions-cell button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 750;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), #2a7df0);
  color: white;
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.22);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button,
.range-controls button,
.admin-sidebar button {
  background: white;
  color: var(--text);
}

.full-width {
  width: 100%;
}

.content-grid,
.mini-app {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 44px 0;
}

.audience-band,
.comfort-section {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
}

.audience-band {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.audience-band h2,
.comfort-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.audience-band p,
.comfort-section p,
.feature-grid p {
  color: var(--muted);
}

.audience-grid,
.comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-grid article,
.comfort-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.mini-illustration {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff0f4, #ffe4ec);
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(217, 79, 112, 0.14);
}

.mini-illustration.music-note {
  background: linear-gradient(135deg, #eaf2ff, #d9e9ff);
  color: var(--brand);
}

.mini-illustration.sparkle {
  background: linear-gradient(135deg, #fff7db, #ffe8b3);
  color: #b96800;
}

.feature-grid,
.tariff-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-grid article,
.tariff-card,
.stat-card,
.admin-section,
.tracker,
.status-banner,
.pay-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.app-shell {
  background:
    linear-gradient(180deg, #eef5ff 0%, #f7fbff 44%, #eef3fb 100%);
}

.app-header {
  margin-bottom: 20px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.app-header-copy {
  display: grid;
  align-content: center;
}

.app-header h1 {
  font-size: 40px;
}

.app-header p {
  color: var(--muted);
}

.app-header .trust-row {
  margin-top: 14px;
}

.app-header .trust-row span {
  border-color: #d8e5f5;
  background: white;
  color: #38506f;
}

.app-preview-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(23, 105, 224, 0.1);
}

.app-preview-card strong {
  font-size: 20px;
}

.app-preview-card span {
  color: var(--muted);
}

.cover-art {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, #ffe5ee 0 18%, transparent 19%),
    radial-gradient(circle at 78% 22%, #d5e8ff 0 16%, transparent 17%),
    linear-gradient(135deg, #fff4d9, #eaf2ff 52%, #ffe8ef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.cover-art svg {
  width: 92px;
  height: 92px;
  fill: rgba(255, 255, 255, 0.42);
  stroke: #314b86;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.song-form {
  display: grid;
  gap: 16px;
}

.questionnaire-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    var(--surface);
  padding: 18px;
  box-shadow: 0 20px 54px rgba(23, 105, 224, 0.08);
}

.question-progress {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f5;
}

.progress-bar {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}

.question-step {
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: start;
}

.question-step h2 {
  margin: 0;
  font-size: 28px;
}

.question-step h3 {
  margin: 6px 0 -6px;
}

.step-label {
  margin: 8px 0 -8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.question-actions button {
  min-width: 132px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.compact-options {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.option-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--text);
  padding: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(23, 105, 224, 0.04);
}

.option-button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 105, 224, 0.08);
}

.option-button.selected {
  border-color: var(--brand);
  background: #eaf2ff;
  color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.option-label {
  min-width: 0;
}

.option-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf2ff, var(--accent-soft));
  color: var(--brand);
}

.icon-heart,
.icon-family,
.icon-baby,
.icon-rings {
  background: linear-gradient(135deg, #fff0f4, #ffd7e2);
  color: #c83e62;
}

.icon-gift,
.icon-party,
.icon-star {
  background: linear-gradient(135deg, #fff7db, #ffe2a8);
  color: #b96800;
}

.icon-music,
.icon-piano,
.icon-mic,
.icon-disc,
.icon-guitar {
  background: linear-gradient(135deg, #eaf2ff, #cfe2ff);
  color: #1769e0;
}

.icon-people,
.icon-message,
.icon-chat,
.icon-badge {
  background: linear-gradient(135deg, #e8fbf5, #c9f2e4);
  color: #12805c;
}

.icon-bolt,
.icon-spark,
.icon-copy,
.icon-stack,
.icon-wave,
.icon-calendar,
.icon-smile {
  background: linear-gradient(135deg, #f1ecff, #ded3ff);
  color: #6e4bd8;
}

.option-button.selected .option-icon,
.tariff-card.selected .option-icon {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
}

.option-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.answer-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.answer-summary h3 {
  margin: 0 0 10px;
}

.answer-summary dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.answer-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.answer-summary dd {
  margin: 0;
}

.inline-offer {
  border: 1px dashed #a9b8ce;
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.video-fields {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #2f3b4f;
  font-weight: 700;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group strong {
  color: #2f3b4f;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tariff-card {
  position: relative;
  display: grid;
  gap: 8px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.05);
}

.tariff-visual {
  width: fit-content;
}

.tariff-card input {
  width: auto;
}

.tariff-card strong {
  font-size: 20px;
}

.tariff-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.badge {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9f2947;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.status-banner {
  margin-bottom: 16px;
  color: var(--ok);
  font-weight: 700;
}

.tracker {
  margin-top: 20px;
}

.tracker a {
  display: inline-flex;
  margin-right: 10px;
  color: var(--brand);
  font-weight: 800;
}

.result-actions,
.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pay-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.pay-card {
  width: min(520px, 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0f223e;
  color: white;
  padding: 22px;
}

.admin-sidebar a,
.admin-sidebar button {
  justify-content: flex-start;
}

.admin-sidebar a {
  min-height: 44px;
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 12px 18px;
  font-weight: 750;
}

.admin-main {
  padding: 28px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-controls select {
  width: auto;
  min-height: 44px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.admin-section {
  margin-top: 20px;
}

.section-note {
  margin: -4px 0 14px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.actions-cell button {
  min-height: 34px;
  padding: 0 10px;
  background: #edf2f7;
}

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

.order-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(15, 34, 62, 0.28);
}

.order-dialog::backdrop {
  background: rgba(8, 20, 38, 0.5);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #edf2f7;
  cursor: pointer;
  font-size: 24px;
}

.details-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 16px;
}

.details-list dt {
  color: var(--muted);
  font-weight: 800;
}

.details-list dd {
  margin: 0;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-list a {
  color: var(--brand);
  font-weight: 800;
}

.status-pill {
  border-radius: 999px;
  background: #edf2f7;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.ready,
.status-pill.paid {
  background: #e8f7f0;
  color: var(--ok);
}

.status-pill.awaiting_payment {
  background: #fff5df;
  color: var(--warn);
}

.settings-panel form,
.prompt-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prompt-panel label {
  grid-column: 1 / -1;
}

.tariffs-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.promo-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tariffs-form button,
.promo-form button {
  grid-column: 1 / -1;
}

.tariff-settings {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.tariff-settings legend {
  color: var(--muted);
  font-weight: 800;
}

.status-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-breakdown span {
  border-radius: 999px;
  background: #edf2f7;
  padding: 8px 12px;
}

.ops-status {
  display: grid;
  gap: 12px;
}

.ops-json {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.event-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.event-list li {
  display: grid;
  gap: 2px;
}

.event-list small {
  color: var(--muted);
}

.dialog-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.dialog-form h3 {
  margin: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

@media (max-width: 760px) {
  .two-cols,
  .admin-shell,
  .settings-panel form,
  .prompt-panel form,
  .app-hero,
  .audience-band,
  .audience-grid,
  .comfort-grid {
    grid-template-columns: 1fr;
  }

  .app-preview-card {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
  }

  .app-preview-card span {
    grid-column: 2;
  }

  .cover-art {
    grid-row: span 2;
    width: 72px;
    height: 72px;
  }

  .cover-art svg {
    width: 58px;
    height: 58px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .questionnaire-form {
    padding: 14px;
  }

  .question-step {
    min-height: 420px;
  }

  .question-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -14px -14px;
    background: var(--surface);
    padding: 12px 14px;
  }

  .question-actions button {
    min-width: 0;
    flex: 1;
  }

  .answer-summary dl {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 72px 0 100px;
  }
}
