:root {
  color-scheme: light;
  --bg: #fff7f4;
  --panel: #ffffff;
  --ink: #241619;
  --muted: #70575d;
  --primary: #a4324f;
  --primary-strong: #7f2038;
  --line: #ead8dc;
  --soft: #f8e8ec;
  --gold: #d59b49;
  font-family: "Avenir Next", "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(213, 155, 73, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7f4 0%, #fff 42%, #fff7f4 100%);
  color: var(--ink);
}

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

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 36px;
  padding: 48px 0 32px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.logo {
  width: 48px;
  height: 48px;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: 82px;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 950;
  text-wrap: balance;
  text-shadow: 0 16px 36px rgba(127, 32, 56, 0.08);
}

.pop-word,
.shine-word {
  display: inline-block;
}

.pop-word {
  padding: 0 0.08em;
  background: linear-gradient(115deg, #ff4d79 0%, #a4324f 46%, #d59b49 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 22px rgba(164, 50, 79, 0.16));
}

.shine-word {
  position: relative;
  padding: 0.02em 0.14em 0.08em;
  color: #fff;
  text-shadow: none;
}

.shine-word::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.02em 0.02em;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(135deg, #a4324f 0%, #d13f6b 52%, #d59b49 100%);
  transform: rotate(-1.2deg);
  box-shadow: 0 18px 40px rgba(164, 50, 79, 0.24);
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.hero-actions span {
  color: var(--muted);
  font-weight: 800;
}

.hero-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 34px rgba(164, 50, 79, 0.28);
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(127, 32, 56, 0.24);
  background: #3b1320;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(36, 22, 25, 0.72));
  pointer-events: none;
}

.play-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-weight: 900;
}

.play-chip span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
}

.play-chip span::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.panel,
.result-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(127, 32, 56, 0.12);
}

.panel {
  padding: 24px;
}

.demo-box {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fff1f5 48%, #fff7ed 100%);
  border: 1px solid var(--line);
}

.romantic-demo {
  background: linear-gradient(135deg, #fff8fb 0%, #ffe7ef 45%, #fff5df 100%);
}

.romantic-demo .demo-copy blockquote {
  border-left-color: #d13f6b;
}

.demo-copy {
  display: grid;
  gap: 12px;
}

.demo-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.demo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-copy blockquote {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.demo-video-card {
  display: grid;
  gap: 10px;
}

.demo-video-card video {
  margin: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-lyrics {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #2a1219;
  color: #fff;
}

.demo-lyrics span {
  color: #ffdce5;
}

.suggestions-box {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1f5 0%, #fff8ed 100%);
  border: 1px solid var(--line);
}

.suggestions-box h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

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

.suggestion-grid button {
  min-height: 48px;
  border: 1px solid rgba(164, 50, 79, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.suggestion-grid button:hover,
.suggestion-grid button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(164, 50, 79, 0.2);
}

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

label,
.story-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

label span,
legend {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 50, 79, 0.12);
}

.story-field {
  margin-top: 16px;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 700;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.toggle input,
.chip input {
  width: auto;
}

.photos-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed rgba(164, 50, 79, 0.45);
  border-radius: 8px;
  background: #fffafb;
}

.photos-box h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.photos-box p {
  margin: 0;
  color: var(--muted);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-card button {
  width: 100%;
  border: 0;
  padding: 9px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.empty-preview,
.notice,
.video-note {
  color: var(--muted);
}

.share-preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4fff7;
  border: 1px solid rgba(31, 168, 85, 0.22);
  color: #28563a;
}

.notice {
  margin: 18px 0;
  font-size: 14px;
}

.primary-button,
.secondary-button,
.primary-link,
.download-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  border: 0;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

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

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

.secondary-button,
.primary-link {
  background: var(--soft);
  color: var(--primary);
}

.download-button {
  background: var(--primary);
  color: #fff;
}

.whatsapp-button {
  background: #1fa855;
  color: #fff;
}

.status-panel,
.result-panel {
  margin-top: 18px;
}

.status {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.status strong {
  color: var(--primary);
}

.status span {
  color: var(--muted);
}

.status.danger {
  border-color: #e35b5b;
  background: #fff3f3;
}

.result-card {
  padding: 22px;
}

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

.result-card h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 44px);
}

audio,
video {
  width: 100%;
  margin: 8px 0 14px;
}

video {
  border-radius: 8px;
  background: #000;
  max-height: 70vh;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

details {
  margin-top: 16px;
  color: var(--muted);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0;
  }

  h1 {
    font-size: 44px;
    line-height: 0.98;
  }

  .shine-word::before {
    border-radius: 12px;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 18px;
  }

  .hero-media img {
    height: 100%;
  }

  .field-grid,
  .controls-row,
  .photos-box {
    grid-template-columns: 1fr;
  }

  .panel,
  .result-card {
    padding: 16px;
  }

  .demo-box {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  fieldset {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .chip {
    justify-content: center;
  }

  .button-row {
    display: grid;
  }

  .suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
