/* Shared refresh. Keep the existing component contracts and generation flow. */
:root {
  --ui-ink: #172c46;
  --ui-muted: #596a7e;
  --ui-line: #dce4ee;
  --ui-paper: #ffffff;
  --ui-blue-soft: #edf3fb;
  --ui-orange-soft: #fff0e8;
  --ui-orange-dark: #ab3d1d;
  --shadow-soft: 0 8px 28px rgba(30, 59, 95, .05);
  --shadow-elevated: 0 16px 40px rgba(30, 59, 95, .1);
  --shadow-strong: 0 24px 60px rgba(30, 59, 95, .14);
  --focus-ring-shadow: 0 0 0 4px rgba(45, 93, 159, .22);
}
html { background: #f6f8fc; color-scheme: light; scroll-behavior: smooth; }
body.bg-accent { background: #f6f8fc; color: var(--ui-ink); }
.bg-accent::before { display: none; }
.main-container { padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-brand__logo { filter: brightness(0) saturate(100%) invert(30%) sepia(26%) saturate(1420%) hue-rotate(174deg) brightness(94%) contrast(92%); }
.section, .page-section, .glass-card, .glass-card--surface, .glass-card--accent,
.modal__content, .modal__dialog, .genre-select__panel, .lyrics-panel, .help-modal {
  background: var(--ui-paper); color: var(--ui-ink); border: 1px solid var(--ui-line);
  backdrop-filter: none; box-shadow: var(--shadow-soft);
}
.page-header, .page-header__lead, .page-header__eyebrow, .card-headline, .card-copy,
.field__label, .field__help, .helper-text, .metric__label, .metric__value, .faq-section h3,
.faq-question, .loading-card__title, .loading-card__message, .modal__body,
.version-title, .stat-block, .stat-block__label, .platform-specific strong { color: var(--ui-ink); opacity: 1; }
.text-muted, .helper-text, .field__help, .card-copy { color: var(--ui-muted); }
.page-header__title { letter-spacing: -.045em; line-height: 1.15; }
.section fieldset > legend { color: var(--ui-ink); }
.field__control, .form-control { box-sizing: border-box; color: var(--ui-ink); background: #fbfcfe; border: 1px solid #bccbde; border-radius: 14px; font-family: var(--font-sans); }
.field__control::placeholder, .form-control::placeholder { color: #6b798b; }
.field__control:focus, .form-control:focus { background: white; }
.field__error { color: #ad2525; }
.tag-chip, .chip-option, .choice-card, .stepper__button, .step-link, .genre-select__trigger,
.genre-option, .metric, .banner, .faq-item { color: var(--ui-ink); background: #f7f9fd; border-color: var(--ui-line); box-shadow: none; }
.tag-chip:hover, .chip-option:hover, .choice-card:hover { background: var(--ui-blue-soft); border-color: #a9bfdb; }
.tag-chip.is-selected, .chip-option.chip-selected, .choice-card.is-selected, .genre-option--selected {
  background: var(--ui-blue-soft); color: #204b83; border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary);
}
.choice-card.is-selected .text-muted { color: #355c8c; }
.stepper__button[aria-current='step'], .step-link[aria-current='step'] { background: var(--color-primary); color: white; opacity: 1; }
.stepper__button[aria-disabled='true']:not([aria-current]) { opacity: 1; color: #6b798b; }
.stepper__button:hover:not([aria-disabled='true']), .step-link:hover:not([aria-disabled='true']) { background: var(--ui-blue-soft); border-color: #a9bfdb; }
.btn { border-radius: 12px; font-weight: 600; box-shadow: none; }
.btn--primary, .btn--primary.btn--static { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.btn--primary:hover:not(:disabled), .btn--primary.btn--static:hover:not(:disabled) { background: #244f89; box-shadow: 0 6px 18px rgba(45, 93, 159, .16); }
.btn--ghost, .btn--surface, .btn--secondary, .btn--alt { background: var(--ui-blue-soft); color: #204b83 !important; border-color: var(--ui-line); }
.btn--ghost:hover:not(:disabled), .btn--surface:hover:not(:disabled) { background: #dfeafa; border-color: #a9bfdb; }
.btn--accent { background: var(--color-secondary); color: var(--ui-ink); border-color: transparent; }
.btn:disabled { opacity: 1; background: #e3e9f1; color: #67778b; border-color: #dce4ee; box-shadow: none; }
.badge, .info-pill, .platform-specific, .info-block, .banner--warning { background: var(--ui-orange-soft); color: #6f361d; border-color: #f2d6c7; }
.banner__message { color: var(--ui-muted); }
.banner--error { color: #952626; background: #fff0f0; border-color: #f0cdcd; }
.pill { color: #204b83; background: var(--ui-blue-soft); border-color: var(--ui-line); }
.copy-button.copied { color: #225b3b !important; background: #dff0e7; }
.loading-card__logo img { filter: brightness(.35); }
.loading-progress { background: var(--ui-blue-soft); }
.glass-divider { background: var(--ui-line); }
.skip-link { background: var(--color-primary); color: white; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }

/* Homepage */
body.modern-landing { background: #fffcf8; }
.modern-landing .main-container { padding: 0 5vw; min-height: 100dvh; }
.modern-landing .content-wrapper { width: min(100%, 1180px); gap: 0; text-align: left; }
.modern-landing .page-body { gap: 0; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ui-line); }
.geno-wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.geno-wordmark__dot { color: var(--color-secondary); }
.geno-wordmark__icon { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 13px; background: var(--color-primary); color: white; font-size: 32px; letter-spacing: 0; transform: rotate(-8deg); }
.site-header__right { display: flex; align-items: center; gap: 36px; }
.header-how { font-size: 14px; font-weight: 600; color: var(--ui-muted); }
.language-toggle { display: inline-flex; padding: 4px; gap: 2px; background: #f0f2f5; border: 1px solid var(--ui-line); border-radius: 12px; }
.language-toggle button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: 600 13px var(--font-sans); color: var(--ui-muted); cursor: pointer; }
.language-toggle button[aria-pressed='true'] { background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(30, 59, 95, .09); }
.language-toggle button:hover { color: var(--color-primary); }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 70px 0 66px; }
.eyebrow { font-size: 11px; letter-spacing: .13em; font-weight: 700; text-transform: uppercase; color: var(--color-primary); }
.home-hero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.home-hero .eyebrow > span:first-child { color: var(--ui-orange-dark); font-size: 20px; }
.home-hero h1 { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.09; letter-spacing: -.055em; font-weight: 700; text-wrap: initial; }
.home-hero h1 > span { display: block; }
html[lang='es'] .home-hero h1 { font-size: clamp(37px, 4vw, 56px); }
.home-hero__accent { color: var(--color-primary); }
.home-hero__description { max-width: 470px; margin-top: 24px; color: var(--ui-muted); font-size: 16px; line-height: 1.85; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 30px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 17px 24px; border-radius: 12px; background: var(--color-secondary); color: #172737; font-size: 14px; font-weight: 700; transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.home-button > span:last-child { font-size: 20px; line-height: 1; }
.home-button:hover { background: #f27a51; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(180, 70, 30, .14); }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--color-primary); font-size: 13px; font-weight: 600; }
.home-text-link:hover, .header-how:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--ui-muted); }
.home-hero__note > span:first-child { color: var(--color-primary); font-weight: 700; }
.hero-art { min-height: 470px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow-x: clip; overflow-y: visible; padding-block: 12px; box-sizing: border-box; }
.hero-art__halo { position: absolute; width: 92%; max-width: 450px; aspect-ratio: 1; border-radius: 46% 54% 58% 42%; background: #edf2f9; transform: rotate(-12deg); z-index: -1; }
.hero-art__halo::after { content: ''; position: absolute; inset: 20px -10px -8px 12px; border: 1px dashed #c1ccdc; border-radius: 50%; transform: rotate(24deg); }
.hero-art__caption { display: flex; align-items: center; gap: 8px; z-index: 1; padding: 9px 16px; border-radius: 100px; background: white; border: 1px solid var(--ui-line); box-shadow: var(--shadow-soft); font-size: 11px; color: var(--ui-muted); transform: rotate(-4deg); }
.caption-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-secondary); }
.hero-art__portrait { width: 310px; height: 310px; max-width: 80%; position: relative; border-radius: 50%; margin: -5px 0 -8px; }
.hero-art__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; border-radius: 50%; transition: transform 220ms ease; }
.hero-art__portrait:hover img { transform: rotate(-3deg) scale(1.03); }
.hero-art__name { font-size: 20px; color: var(--color-primary); transform: rotate(-4deg); }
.hero-art__name strong { font-size: 28px; letter-spacing: -.05em; }
.hero-art__spark { position: absolute; font-size: 38px; line-height: 1; color: var(--color-secondary); }
.hero-art__spark--one { top: 48px; right: 48px; transform: rotate(12deg); }
.hero-art__spark--two { top: 140px; left: 15px; color: var(--color-primary); transform: rotate(-18deg); }
.hero-art__spark--three { bottom: 105px; right: 20px; color: var(--color-primary); }
.keepsake-card { display: flex; align-items: center; gap: 12px; background: white; padding: 16px 18px; margin-top: 22px; width: min(94%, 365px); box-sizing: border-box; border: 1px solid var(--ui-line); border-radius: 15px; box-shadow: 0 12px 32px rgba(30, 59, 95, .09); transform: rotate(2deg); }
.keepsake-card__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--ui-orange-soft); color: var(--ui-orange-dark); font-size: 26px; }
.keepsake-card p { color: var(--ui-muted); font-size: 10px; line-height: 1.6; }
.keepsake-card .keepsake-card__title { font-size: 12px; font-weight: 700; color: var(--ui-ink); margin-bottom: 2px; }
.sound-wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-left: auto; padding-left: 6px; }
.sound-wave i { width: 3px; height: 10px; border-radius: 2px; background: var(--color-primary); }
.sound-wave i:nth-child(2n) { height: 20px; }.sound-wave i:nth-child(3n) { height: 28px; }.sound-wave i:last-child { height: 14px; }
.occasion-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); padding: 25px 0; font-size: 13px; color: #425873; }
.occasion-strip > span { display: inline-flex; align-items: center; gap: 10px; }
.occasion-strip > span > span:first-child { color: var(--color-primary); font-size: 23px; line-height: 1; }
.occasion-strip .occasion-strip__label { color: var(--ui-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.how-section { padding: 66px 0; scroll-margin-top: 30px; }
.how-section__heading { text-align: center; }
.how-section h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.25; margin: 12px 0; }
.how-section__heading > p:last-child { color: var(--ui-muted); font-size: 14px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 32px 0 0; }
.how-card { padding: 26px; background: white; border: 1px solid var(--ui-line); border-radius: 18px; }
.how-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.how-card__icon { display: grid; place-items: center; height: 44px; width: 44px; border-radius: 12px; background: var(--ui-blue-soft); color: var(--color-primary); font-size: 27px; }
.how-card__icon--orange { background: var(--ui-orange-soft); color: var(--ui-orange-dark); }
.how-card__number { font-size: 12px; font-weight: 600; color: #64758c; }
.how-card h3 { font-size: 17px; letter-spacing: -.025em; margin-bottom: 10px; }
.how-card > p { font-size: 13px; line-height: 1.85; color: var(--ui-muted); }
.home-closing { padding: 32px 36px; background: var(--ui-blue-soft); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-closing h2 { font-size: clamp(22px, 2.5vw, 28px); letter-spacing: -.04em; margin-top: 10px; max-width: 600px; }
.home-closing .home-button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 24px 0 30px; border-top: 1px solid var(--ui-line); }
.site-footer__brand { display: flex; align-items: center; gap: 22px; }
.site-footer__brand img { width: 130px; height: auto; filter: brightness(0) saturate(100%) invert(30%) sepia(26%) saturate(1420%) hue-rotate(174deg) brightness(94%) contrast(92%); }
.site-footer__brand > span, .site-footer nav { color: var(--ui-muted); font-size: 11px; }
.site-footer nav { display: flex; gap: 24px; }

@media (max-width: 1000px) {
  .home-hero { gap: 22px; }.home-hero__actions { gap: 14px; }.home-button { padding-inline: 18px; gap: 15px; }
  .hero-art__spark--one { right: 12px; }.how-card { padding: 22px; }
  .home-closing { padding: 28px; }
}
@media (max-width: 720px) {
  .modern-landing .main-container { padding-inline: 6vw; }.site-header { min-height: 84px; gap: 12px; }
  .geno-wordmark { font-size: 30px; gap: 8px; }.geno-wordmark__icon { width: 32px; height: 36px; font-size: 26px; }
  .header-how { display: none; }.language-toggle button { padding-inline: 11px; font-size: 12px; }
  .home-hero { grid-template-columns: 1fr; padding: 42px 0 28px; gap: 10px; }
  .home-hero h1 { font-size: clamp(37px, 8vw, 54px); max-width: 560px; }
  .home-hero__description { font-size: 15px; margin-top: 20px; }.home-hero .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .home-hero__actions { gap: 18px; margin-top: 24px; }.home-text-link { font-size: 12px; gap: 6px; }
  .home-hero__note { font-size: 11px; }.hero-art { min-height: 400px; max-width: 440px; width: 100%; margin: 10px auto 0; }
  .hero-art__portrait { width: 260px; height: 260px; }.hero-art__halo { max-width: 350px; }
  .hero-art__spark--one { top: 26px; right: 25px; }.hero-art__spark--two { top: 120px; left: 12px; }
  .hero-art__spark--three { bottom: 100px; right: 8px; }.keepsake-card { max-width: 340px; margin-top: 18px; }
  .occasion-strip { justify-content: center; gap: 16px 24px; padding: 22px 0; font-size: 12px; }
  .occasion-strip .occasion-strip__label { width: 100%; justify-content: center; font-size: 10px; }
  .how-section { padding: 44px 0; }.how-section__heading .eyebrow { font-size: 10px; }
  .how-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }.how-card { padding: 22px; }
  .how-card__top { margin-bottom: 16px; }.how-card > p { font-size: 14px; }.how-card h3 { font-size: 18px; }
  .home-closing { flex-direction: column; align-items: flex-start; gap: 22px; padding: 26px; }.home-closing .eyebrow { font-size: 10px; }
  .site-footer { margin-top: 32px; align-items: flex-start; }.site-footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer__brand > span { max-width: 210px; }.site-footer nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
