:root {
  --ink: #162740;
  --ink-soft: #5b687d;
  --paper: #f7f2eb;
  --panel: rgba(255, 251, 246, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --midnight: #13233b;
  --midnight-strong: #0f1b30;
  --gold: #c79d62;
  --gold-soft: rgba(199, 157, 98, 0.16);
  --accent: #d28d8f;
  --accent-soft: rgba(210, 141, 143, 0.14);
  --border: rgba(22, 39, 64, 0.12);
  --border-strong: rgba(22, 39, 64, 0.18);
  --shadow: 0 24px 60px rgba(17, 31, 49, 0.09);
  --shadow-soft: 0 16px 32px rgba(17, 31, 49, 0.07);
  --ok: #117c5a;
  --ok-soft: rgba(17, 124, 90, 0.12);
  --danger: #b34035;
  --danger-soft: rgba(179, 64, 53, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --tone-primary: #c79d62;
  --tone-secondary: #f2d4a2;
  --tone-shadow: rgba(199, 157, 98, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--paper);
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 28px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.section-heading h2,
.hero h1,
.hero-card h2,
.preview-shell h3,
.feature-card h3,
.demo-card h3,
.pricing-card h3,
.faq-card h3,
.occasion-card h3,
.thank-you-copy h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.brand-text strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-text span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.locale-switcher {
  position: relative;
}

.locale-dropdown {
  position: relative;
}

.locale-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  list-style: none;
}

.locale-dropdown summary::-webkit-details-marker {
  display: none;
}

.locale-dropdown[open] summary {
  border-color: var(--border-strong);
}

.locale-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--midnight), var(--midnight-strong));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.locale-name {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.locale-caret {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.locale-dropdown[open] .locale-caret {
  transform: rotate(225deg) translateY(-1px);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 24px 44px rgba(17, 31, 49, 0.14);
  backdrop-filter: blur(18px);
}

.locale-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.locale-menu a:hover {
  background: rgba(199, 157, 98, 0.12);
}

.locale-menu a.is-active {
  background: rgba(22, 39, 64, 0.08);
}

.locale-menu a span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.locale-menu a small {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--midnight), var(--midnight-strong));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(17, 31, 49, 0.15);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.button-small {
  padding: 12px 16px;
  font-size: 0.92rem;
}

.button-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.thank-you-copy h2 {
  margin: 0;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.hero-text,
.section-intro,
.feature-card p,
.demo-card p,
.pricing-card p,
.faq-card p,
.occasion-card p,
.form-footnote,
.preview-story,
.thank-you-text,
.thank-you-reference {
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual,
.preview-visual {
  --tone-primary: var(--gold);
  --tone-secondary: #f2d4a2;
  --tone-shadow: rgba(199, 157, 98, 0.22);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.hero-visual[data-tone="romantic"],
.preview-visual[data-tone="romantic"] {
  --tone-primary: #cc8e9c;
  --tone-secondary: #f1d2d8;
  --tone-shadow: rgba(204, 142, 156, 0.22);
}

.hero-visual[data-tone="playful"],
.preview-visual[data-tone="playful"] {
  --tone-primary: #79bcb2;
  --tone-secondary: #d5efe8;
  --tone-shadow: rgba(121, 188, 178, 0.22);
}

.hero-visual[data-tone="cinematic"],
.preview-visual[data-tone="cinematic"] {
  --tone-primary: #8ea8d5;
  --tone-secondary: #dce6f8;
  --tone-shadow: rgba(142, 168, 213, 0.22);
}

.hero-wave,
.preview-bars {
  display: flex;
  align-items: end;
  gap: 10px;
}

.hero-wave span,
.preview-bars span {
  flex: 1;
  min-width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tone-secondary), var(--tone-primary));
  box-shadow: 0 12px 22px var(--tone-shadow);
  transform-origin: bottom;
  animation: equalize 2.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero-chip-cluster,
.preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip-cluster span,
.preview-badges span,
.preview-footer span,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-chip-cluster span,
.mini-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 239, 0.9);
}

.section {
  padding: 44px 0;
}

.section-heading {
  max-width: 72ch;
  margin-bottom: 24px;
}

.section-heading h2,
.thank-you-copy h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.feature-grid,
.demo-grid,
.pricing-grid,
.faq-grid,
.occasion-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.feature-card,
.demo-card,
.pricing-card,
.faq-card,
.occasion-card,
.trust-card,
.brief-form,
.preview-shell,
.thank-you-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.feature-card,
.demo-card,
.pricing-card,
.faq-card,
.occasion-card,
.trust-card {
  padding: 24px;
}

.feature-card h3,
.demo-card h3,
.pricing-card h3,
.faq-card h3,
.occasion-card h3,
.preview-shell h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.06;
}

.pricing-tier,
.trust-label,
.occasion-index,
.demo-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 20px;
}

.brief-form,
.preview-shell {
  padding: 24px;
}

body.is-brief-open {
  overflow: hidden;
}

.brief-launch-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(253, 248, 241, 0.84)),
    radial-gradient(circle at top right, rgba(199, 157, 98, 0.16), transparent 42%);
  box-shadow: var(--shadow-card);
}

.brief-launch-card h3,
.wizard-status-screen h3,
.wizard-result-screen h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.96;
}

.wizard-step h3 {
  margin: 0;
  max-width: 12ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.wizard-summary-shell h3 {
  margin: 0;
  max-width: 9ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.2vw, 2.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.brief-launch-copy,
.wizard-step-intro,
.wizard-summary-memory p,
.wizard-status-copy,
.wizard-tip-card p {
  color: var(--ink-soft);
}

.brief-launch-copy {
  max-width: 44rem;
}

.brief-launch-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.brief-launch-steps article,
.wizard-summary-grid article {
  padding: 18px 18px 20px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.brief-launch-steps span,
.wizard-summary-grid span,
.wizard-summary-memory span,
.wizard-step-index,
.wizard-subsection-label,
.story-guide-panel strong,
.wizard-tip-card span,
.wizard-progress-copy strong {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brief-launch-steps strong,
.wizard-summary-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.brief-launch-steps small {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.brief-launch-actions,
.wizard-actions,
.wizard-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brief-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.brief-wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 35, 0.44);
  backdrop-filter: blur(24px);
}

.brief-wizard-panel {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: min(94vh, 980px);
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(252, 246, 238, 0.96), rgba(248, 241, 231, 0.92)),
    radial-gradient(circle at top, rgba(199, 157, 98, 0.18), transparent 36%);
  box-shadow: 0 32px 120px rgba(12, 20, 33, 0.28);
}

.brief-wizard-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.brief-wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.brief-wizard-header > div {
  max-width: 44rem;
}

.wizard-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(22, 39, 64, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.wizard-progress {
  margin: 10px 0 20px;
}

.wizard-progress-track,
.wizard-status-meter {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 39, 64, 0.08);
}

.wizard-progress-track span,
.wizard-status-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c79d62, #dbb27a);
  transition: width 260ms ease;
}

.wizard-progress-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
}

.wizard-progress-copy span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.brief-wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.wizard-main,
.wizard-summary-shell,
.wizard-status-screen,
.wizard-result-screen {
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(16, 32, 58, 0.06);
}

.wizard-form,
.wizard-summary-shell,
.wizard-status-screen,
.wizard-result-screen {
  padding: 24px;
}

.wizard-form {
  display: flex;
  flex-direction: column;
}

.wizard-step {
  min-height: 100%;
}

.wizard-step-intro {
  max-width: 40rem;
  margin: 10px 0 18px;
  font-size: 1rem;
  line-height: 1.55;
}

.wizard-step .field-large textarea {
  min-height: 220px;
}

.wizard-step:not(.is-active) {
  display: none;
}

.wizard-choice-grid {
  display: grid;
  gap: 14px;
}

.wizard-choice-grid-occasion {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.wizard-choice-grid-tone,
.wizard-choice-grid-voice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-choice-grid-clarity,
.wizard-choice-grid-length {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wizard-choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 86px;
  padding: 16px 17px;
  border: 1px solid rgba(22, 39, 64, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease,
    background 180ms ease;
}

.wizard-choice-card strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.wizard-choice-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.wizard-choice-card:hover,
.wizard-choice-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 157, 98, 0.48);
  box-shadow: 0 14px 24px rgba(199, 157, 98, 0.14);
}

.wizard-choice-card.is-selected {
  border-color: rgba(199, 157, 98, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(251, 245, 236, 0.9)),
    radial-gradient(circle at top right, rgba(199, 157, 98, 0.14), transparent 46%);
  box-shadow: 0 18px 28px rgba(199, 157, 98, 0.14);
}

.wizard-subsection + .wizard-subsection,
.wizard-choice-split {
  margin-top: 20px;
}

.wizard-choice-split {
  gap: 16px;
}

.story-guide-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.story-guide-chip {
  padding: 12px 16px;
  border: 1px solid rgba(22, 39, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.story-guide-chip.is-selected {
  border-color: rgba(199, 157, 98, 0.5);
  background: rgba(244, 233, 219, 0.92);
}

.story-guide-panel,
.wizard-tip-card,
.wizard-summary-memory,
.story-helper-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.story-guide-panel p,
.story-helper-inline span,
.wizard-tip-card p,
.wizard-summary-memory p {
  margin: 8px 0 0;
}

.lyrics-optimize-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.lyrics-optimize-row .button {
  min-width: 132px;
}

.lyrics-optimize-row span {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.lyrics-draft-shell {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(111, 96, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(114, 88, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(30, 30, 37, 0.96), rgba(22, 22, 28, 0.96));
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(12, 20, 33, 0.18);
}

.lyrics-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lyrics-draft-head .preview-label {
  color: rgba(168, 146, 255, 0.94);
}

.lyrics-draft-head strong {
  display: block;
  max-width: 24ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lyrics-draft-body {
  margin: 18px 0 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

.lyrics-draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lyrics-draft-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lyrics-draft-shell .button {
  min-width: 188px;
}

.wizard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.wizard-summary-grid article {
  padding: 16px 16px 18px;
}

.wizard-summary-grid strong {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.wizard-preview-visual {
  margin: 16px 0;
}

.wizard-tip-card,
.wizard-summary-memory,
.wizard-status-screen,
.wizard-result-screen {
  margin-top: 20px;
}

.wizard-status-screen,
.wizard-result-screen {
  padding: 32px 28px;
}

.wizard-actions {
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 39, 64, 0.08);
}

.wizard-actions .button,
.wizard-result-actions .button {
  min-width: 164px;
}

.wizard-summary-shell {
  display: none;
}

.wizard-status-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.wizard-status-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 39, 64, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.result-audio {
  width: 100%;
  margin-top: 18px;
}

.alternate-preview-shell {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 39, 64, 0.08);
}

.result-lyrics-shell {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.result-lyrics {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.65;
  color: var(--ink);
}

.result-qa-shell {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.result-qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-qa-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(22, 39, 64, 0.08);
  color: var(--ink);
}

.result-qa-status[data-status="pass"] {
  background: rgba(77, 157, 111, 0.16);
  color: #2f6b47;
}

.result-qa-status[data-status="warn"] {
  background: rgba(199, 157, 98, 0.18);
  color: #8c6331;
}

.result-qa-status[data-status="fail"] {
  background: rgba(184, 76, 76, 0.16);
  color: #944040;
}

.result-qa-status[data-status="error"] {
  background: rgba(76, 104, 148, 0.14);
  color: #3f587c;
}

.result-qa-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.result-detail-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-feedback-shell {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.result-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-feedback-status {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.result-feedback-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.result-feedback-reaction,
.result-feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feedback-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(22, 39, 64, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.feedback-chip:hover {
  transform: translateY(-1px);
}

.feedback-chip.is-selected {
  border-color: rgba(199, 157, 98, 0.42);
  background: rgba(199, 157, 98, 0.16);
  color: var(--midnight);
}

.feedback-comment-field {
  margin-top: 16px;
}

.result-feedback-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.result-detail-card {
  padding: 18px 20px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.result-detail-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.55;
}

.result-detail-list li::marker {
  color: var(--gold);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-hint {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(22, 39, 64, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(199, 157, 98, 0.18);
  border-color: rgba(199, 157, 98, 0.62);
}

.field-large textarea {
  resize: vertical;
}

.brief-advanced {
  margin: 2px 0 18px;
  border: 1px solid rgba(22, 39, 64, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
}

.brief-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.brief-advanced summary::-webkit-details-marker {
  display: none;
}

.brief-advanced summary span {
  font-size: 0.96rem;
  font-weight: 700;
}

.brief-advanced summary small {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.brief-advanced summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 39, 64, 0.08);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.brief-advanced[open] summary::after {
  content: "-";
}

.brief-advanced-grid {
  padding: 0 18px 6px;
}

.field-hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-footnote {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.submit-status {
  min-height: 24px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.submit-status.is-success {
  padding: 14px 16px;
  border: 1px solid rgba(17, 124, 90, 0.2);
  border-radius: 16px;
  background: var(--ok-soft);
  color: var(--ok);
}

.submit-status.is-error {
  padding: 14px 16px;
  border: 1px solid rgba(179, 64, 53, 0.2);
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
}

.submit-status.is-pending {
  color: var(--ink-soft);
}

.preview-shell {
  position: sticky;
  top: 104px;
}

.preview-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-meta {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.preview-visual {
  padding: 20px;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 251, 246, 0.72)),
    radial-gradient(circle at top right, var(--tone-shadow), transparent 42%);
}

.preview-visual::before,
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
  pointer-events: none;
}

.preview-bars {
  height: 76px;
  margin-bottom: 16px;
}

.preview-bars span {
  height: calc(18px + (42px * var(--size)));
}

.preview-caption-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.preview-seal {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.preview-shell blockquote {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.26rem;
  line-height: 1.34;
}

.preview-badges {
  margin: 20px 0;
}

.preview-badges span,
.preview-footer span {
  background: rgba(22, 39, 64, 0.08);
  color: var(--ink);
}

.preview-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.thank-you-section {
  padding-top: 12px;
}

.thank-you-section.is-hidden {
  display: none;
}

.thank-you-shell {
  padding: 28px;
}

.thank-you-text,
.thank-you-reference {
  margin: 14px 0 0;
}

.thank-you-reference {
  font-weight: 700;
}

.thank-you-actions {
  margin: 24px 0 18px;
}

.thank-you-list,
.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 12px;
  color: var(--ink-soft);
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.54);
    opacity: 0.78;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -14px, 0);
  }
}

@media (max-width: 1080px) {
  .builder-layout,
  .feature-grid,
  .demo-grid,
  .pricing-grid,
  .faq-grid,
  .occasion-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .brief-launch-steps,
  .brief-wizard-grid,
  .wizard-choice-grid-occasion,
  .wizard-choice-grid-genre,
  .wizard-choice-grid-tone,
  .wizard-choice-grid-voice,
  .wizard-choice-grid-clarity,
  .wizard-choice-grid-length,
  .wizard-summary-grid {
    grid-template-columns: 1fr;
  }

  .brief-wizard-panel {
    padding: 18px;
  }

  .wizard-summary-shell {
    position: static;
  }

  .preview-shell {
    position: static;
  }

  .lyrics-draft-actions {
    align-items: stretch;
  }

  .lyrics-draft-shell .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
    border-radius: 28px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .site-nav {
    display: none;
  }

  .locale-switcher {
    order: 3;
    width: 100%;
  }

  .locale-dropdown,
  .locale-dropdown summary,
  .locale-menu {
    width: 100%;
  }

  .locale-menu {
    right: auto;
    left: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .result-detail-plan {
    grid-template-columns: 1fr;
  }

  .brief-wizard-overlay {
    padding: 12px;
  }

  .brief-wizard-panel {
    max-height: 96vh;
    border-radius: 28px;
  }

  .brief-wizard-header,
  .wizard-progress-copy,
  .story-guide-panel,
  .story-helper-inline,
  .wizard-actions,
  .result-feedback-actions,
  .wizard-result-actions,
  .brief-launch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-choice-card {
    min-height: 0;
  }

  .wizard-close {
    align-self: flex-end;
  }

  .hero-actions,
  .form-actions,
  .thank-you-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .form-actions .button,
  .thank-you-actions .button,
  .wizard-actions .button,
  .result-feedback-actions .button,
  .wizard-result-actions .button,
  .brief-launch-actions .button,
  .demo-button,
  .pricing-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

.brief-wizard-overlay[hidden] {
  display: none !important;
}



/* ──────────────────────────────────────────────────────────────────────
   Mobile-first audit pass (2026-04-30)
   Goal: fix viewport overflow on iPhone 12-15 (390-430) & Android (360-412),
   respect notch / home-indicator, normalize tap targets, suppress hover
   on touch devices. Scoped so existing layout is untouched on desktop.
   ────────────────────────────────────────────────────────────────────── */

html { -webkit-text-size-adjust: 100%; }
html, body {
  /* hard guard against runaway horizontal scroll from any rogue child */
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

img, svg, video { max-width: 100%; height: auto; }

/* iPhone safe areas — apply only where it actually matters (padding-bottom
   for sticky CTA, padding-top for sticky header) without breaking centred
   layouts. */
.v2-sticky-cta,
.wizard-actions {
  padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
}
.v2-header,
.brief-page-header,
.legal-header {
  padding-left: calc(20px + env(safe-area-inset-left));
  padding-right: calc(20px + env(safe-area-inset-right));
}

/* Disable :hover state on touch devices to avoid sticky hover bugs.
   We only override common interactive primitives — not free-form sites
   styles. Components keep working on real pointers. */
@media (hover: none) {
  .v2-nav a:hover,
  .v2-btn-primary:hover,
  .v2-tcard:hover,
  a:hover { transform: none !important; }
}

/* ── Tap target floor (44×44 minimum) ─────────────────────────────── */
@media (max-width: 760px) {
  .v2-nav a,
  .v2-lang-menu a,
  .legal-header a,
  .legal-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Prevent zoom on input focus on iOS — needs ≥16px font-size on the
   input itself when viewport zoom isn't disabled. */
@media (max-width: 760px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Long-form text protection: legal pages and FAQ never overflow */
.legal-wrap, .legal-wrap p, .legal-wrap li, .legal-wrap dd,
.faq-card p, .v2-faq-item p {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ── v2 header: shrink for small phones so CTA never bleeds out ──── */
@media (max-width: 760px) {
  .v2-header {
    gap: 8px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    height: auto !important;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .v2-header .v2-brand img { width: 32px !important; height: 32px !important; }
  .v2-header .v2-brand-text { font-size: 1.05rem !important; }
  .v2-header .v2-brand-sub { display: none !important; }
  .v2-header .v2-lang-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }
  .v2-header .v2-btn-primary {
    padding: 10px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 420px) {
  .v2-header .v2-btn-primary {
    /* Even tighter on small phones — keep just the verb */
    padding: 10px 12px !important;
    font-size: 12px !important;
    letter-spacing: 0;
  }
  .v2-header .v2-lang-btn {
    padding: 8px !important;
  }
  .v2-header .v2-lang-btn .v2-lang-caret,
  .v2-header .v2-lang-btn span { font-size: 9px !important; }
}

/* Sticky CTA: never block content underneath at the very bottom */
@media (max-width: 760px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* Footer: always usable */
@media (max-width: 760px) {
  .v2-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .v2-footer a { padding: 6px 4px; }
}

/* Hero typography: graceful clamp on tiny screens */
@media (max-width: 480px) {
  .v2-hero-h1, .signature-hero h1, .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }
}

/* Hide empty success/error pill (regression: green circle floats on result page) */
.submit-status:empty { display: none !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
