/* ==========================================================================
   Download da Valéria Dal Coll — Canva Faithful Editorial Stylesheet
   ========================================================================== */

:root {
  --bg-wine: #461d25;
  --bg-oxblood: #321219;
  --bg-hero-outer: #2c0911;
  --surface-cream: #f6ede5;
  --text-cream: #f6ede5;
  --text-muted-cream: #dcd3ca;
  --text-wine: #461d25;
  --text-charcoal: #222424;
  --crimson-block: #8a2e38;
  --border-cream: #f6ede5;
  --border-cream-soft: rgba(246, 237, 229, 0.72);
  --error-bg: #581b25;
  --error-border: #ffb4ab;
  --error-text: #ffdad6;
  --valid-border: #8fd6a5;

  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-btn: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --frame-max: 430px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-oxblood);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-cream);
  background-color: var(--bg-oxblood);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

button,
input {
  font: inherit;
}

/* Visually hidden live region utility */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Page Shell & Alternating Full-Bleed Bands
   ========================================================================== */

.page-shell {
  width: 100%;
  overflow-x: clip;
}

.band {
  width: 100%;
}

.band--hero {
  background-color: var(--bg-hero-outer);
}

.band--wine {
  background-color: var(--bg-wine);
  color: var(--text-cream);
}

.band--oxblood {
  background-color: var(--bg-oxblood);
  color: var(--text-cream);
}

.band--cream {
  background-color: var(--surface-cream);
  color: var(--text-wine);
}

.container {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
}

/* ==========================================================================
   Shared Editorial Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-btn);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--surface-cream);
  outline-offset: 3px;
}

.btn__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   DOBRA 1: HERO
   ========================================================================== */

.hero-stage {
  position: relative;
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  aspect-ratio: 390 / 805;
  overflow: hidden;
  background-color: var(--bg-hero-outer);
}

.hero-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

/* Subtle top readability scrim + desktop side blend */
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(44, 9, 17, 0.22) 0%,
    rgba(44, 9, 17, 0.14) 48%,
    rgba(44, 9, 17, 0) 64%
  );
  pointer-events: none;
}

@media (min-width: 460px) {
  .hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to right,
      var(--bg-hero-outer) 0%,
      transparent 5%,
      transparent 95%,
      var(--bg-hero-outer) 100%
    );
    pointer-events: none;
  }
}

.hero-stage__overlay {
  position: relative;
  z-index: 2;
  padding: clamp(46px, 13.5vw, 58px) clamp(32px, 9.2vw, 39px) 0;
}

.hero-title {
  margin: 0 0 clamp(22px, 6vw, 28px);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(54px, 15.6vw, 66px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--text-cream);
}

.hero-title__line {
  display: block;
}

.hero-title em {
  font-style: italic;
}

.hero-copy {
  max-width: 292px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: clamp(22px, 6vw, 26px);
}

.hero-copy p {
  margin: 0;
  color: var(--text-cream);
}

.hero-copy__lead {
  font-size: clamp(12px, 3.1vw, 13px);
  line-height: 1.4;
  font-weight: 400;
}

.hero-copy__bold {
  font-size: clamp(13px, 3.35vw, 14px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-copy__sub {
  font-size: clamp(12px, 3.1vw, 13px);
  line-height: 1.38;
  font-weight: 400;
}

.btn--hero {
  background-color: var(--surface-cream);
  color: var(--text-charcoal);
  border-radius: 8px;
  min-width: 210px;
  height: 37px;
  padding-inline: 22px;
  font-size: 10.5px;
  letter-spacing: 0.015em;
}

.btn--hero:hover {
  background-color: #ffffff;
}

/* ==========================================================================
   DOBRA 2: VÍDEO EMBEDADO + ORIENTAÇÃO E BOTÃO DE DOWNLOAD DO PDF
   ========================================================================== */

.container--video {
  padding: 36px 26px 44px;
  text-align: center;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  border: 1px solid var(--border-cream);
  background-color: var(--bg-wine);
  overflow: hidden;
}

.video-facade {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: radial-gradient(
    circle at center,
    rgba(246, 237, 229, 0.06) 0%,
    rgba(50, 18, 25, 0.25) 100%
  );
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.video-facade:hover {
  background-color: rgba(246, 237, 229, 0.05);
}

.video-facade:hover .video-play-btn {
  transform: scale(1.06);
}

.video-facade:focus-visible {
  outline: 2px solid var(--surface-cream);
  outline-offset: -4px;
}

.video-play-btn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(246, 237, 229, 0.16),
    rgba(50, 18, 25, 0.45)
  );
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
}

.video-play-btn__icon {
  width: 64px;
  height: 64px;
}

.video-embed-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #16070a;
}

.video-embed-slot[hidden] {
  display: none;
}

.video-embed-slot iframe,
.video-embed-slot video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-status-hint {
  margin: 12px auto 0;
  max-width: 310px;
  padding: 8px 12px;
  border: 1px solid rgba(246, 237, 229, 0.35);
  border-radius: 4px;
  background-color: rgba(50, 18, 25, 0.65);
  color: var(--text-muted-cream);
  font-size: 11px;
  line-height: 1.4;
}

/* Texto abaixo do vídeo: mesma fonte serif condensada do "Depois me conta..." */
.video-pdf-heading {
  margin: 22px auto 0;
  max-width: 315px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 8.8vw, 37px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--text-cream);
}

.video-pdf-subtext {
  margin: 10px auto 22px;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-muted-cream);
}

.btn--pdf {
  background-color: var(--surface-cream);
  color: var(--text-wine);
  border-radius: 6px;
  min-width: 236px;
  height: 40px;
  padding-inline: 24px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.btn--pdf:hover {
  background-color: #ffffff;
}

/* ==========================================================================
   DOBRA 3: BACKSTORY + COLAGEM DE 3 FOTOS
   ========================================================================== */

.container--backstory {
  padding: 26px 26px 36px;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
}

.collage-grid__item {
  overflow: hidden;
  background-color: var(--bg-oxblood);
}

.collage-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-grid__item--a {
  aspect-ratio: 164 / 99;
}

.collage-grid__item--a img {
  object-position: 50% 42%;
}

.collage-grid__item--b {
  aspect-ratio: 164 / 99;
}

.collage-grid__item--b img {
  object-position: 75% 18%;
}

.collage-grid__item--c {
  grid-column: 1 / -1;
  aspect-ratio: 334 / 99;
}

.collage-grid__item--c img {
  object-position: 50% 27%;
}

.backstory-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.backstory-copy p {
  margin: 0;
  font-size: clamp(10.5px, 2.75vw, 11.5px);
  line-height: 1.42;
  color: var(--text-wine);
  font-weight: 400;
}

.backstory-copy strong {
  font-weight: 700;
}

/* ==========================================================================
   DOBRA 4: ABOUT VALÉRIA DAL COLL
   ========================================================================== */

.container--about {
  padding: 36px 36px 42px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 312 / 345;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: var(--bg-oxblood);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.about-eyebrow__label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted-cream);
  flex-shrink: 0;
}

.about-eyebrow__rule {
  flex: 1;
  height: 1px;
  background-color: var(--border-cream-soft);
}

.about-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(54px, 14.8vw, 62px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--text-muted-cream);
}

.about-lead {
  margin: 0 auto 22px;
  max-width: 286px;
  text-align: center;
  font-size: clamp(13px, 3.35vw, 14px);
  line-height: 1.38;
  font-weight: 700;
  color: var(--text-cream);
}

.credentials-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.credentials-list__item {
  border: 1px solid var(--border-cream);
  border-radius: 4px;
  padding: 8px 14px;
  min-height: 35px;
  display: flex;
  align-items: center;
  font-size: clamp(11.5px, 2.95vw, 12.2px);
  line-height: 1.28;
  color: var(--text-cream);
}

.about-closing {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(31px, 8.2vw, 35px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--text-muted-cream);
}

/* ==========================================================================
   DOBRA 5: O QUE VOCÊ VAI DESCOBRIR?
   ========================================================================== */

.container--discover {
  padding: 44px 30px 42px;
}

.discover-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(60px, 17.4vw, 74px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: var(--text-cream);
}

.discover-subtitle {
  margin: 0 auto 30px;
  max-width: 316px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(38px, 11vw, 46px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--text-cream);
}

.discover-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-cream-soft);
}

.discover-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-cream-soft);
}

.discover-list__text {
  font-size: clamp(10px, 2.65vw, 11px);
  line-height: 1.38;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-cream);
}

.discover-list__arrow {
  font-size: 13px;
  line-height: 1;
  color: var(--text-cream);
  flex-shrink: 0;
  opacity: 0.9;
}

/* ==========================================================================
   DOBRA 6: PARA QUEM É ESTE EPISÓDIO
   ========================================================================== */

.band--audience {
  border-top: 1px solid rgba(246, 237, 229, 0.14);
}

.container--audience {
  padding: 40px 38px 46px;
}

.audience-title {
  margin: 0 auto 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 9.4vw, 40px);
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: var(--text-cream);
}

.audience-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audience-card {
  background-color: var(--surface-cream);
  color: var(--text-wine);
  border-radius: 6px;
  min-height: 158px;
  padding: 26px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.audience-card p {
  margin: 0;
  font-size: clamp(16px, 4.35vw, 17.5px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-wine);
}

/* ==========================================================================
   DOBRA 7: CTA FINAL + PROGRESSO + RODAPÉ
   ========================================================================== */

.container--final {
  padding: 44px 30px 44px;
  text-align: center;
}

.final-title {
  margin: 0 auto 24px;
  max-width: 344px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 9.3vw, 40px);
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: var(--text-cream);
}

.final-title em {
  font-style: italic;
}

.progress-card {
  border: 1px solid var(--border-cream);
  padding: 11px 10px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.progress-card__label {
  font-size: 6.8px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-cream);
  white-space: nowrap;
}

.progress-card__track {
  flex: 1;
  border: 1px solid var(--border-cream);
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}

.progress-card__block {
  display: block;
  aspect-ratio: 1 / 1;
  background-color: var(--crimson-block);
}

.final-kicker {
  margin: 0 auto 18px;
  max-width: 310px;
  font-size: clamp(14.5px, 3.95vw, 16px);
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: var(--text-cream);
}

.btn--final {
  background-color: var(--surface-cream);
  color: var(--text-wine);
  border-radius: 6px;
  min-width: 226px;
  height: 37px;
  padding-inline: 24px;
  font-size: 10.8px;
  margin-bottom: 34px;
}

.btn--final:hover {
  background-color: #ffffff;
}

.site-footer__brand {
  margin: 0 auto 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(16.5px, 4.35vw, 19px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-cream);
}

.site-footer__legal {
  margin: 0 auto;
  max-width: 300px;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--text-muted-cream);
}

.site-footer__privacy-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--text-cream);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.site-footer__privacy-link:focus-visible {
  outline: 1px solid var(--surface-cream);
  outline-offset: 2px;
}

/* ==========================================================================
   NATIVE <dialog> MODALS (PDF AUTOMATION + PRIVACY)
   - Scoped display to dialog[open]
   - Mandatory overscroll-behavior containment on dialog:modal & ::backdrop
   ========================================================================== */

dialog.editorial-dialog {
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border-cream);
  border-radius: 8px;
  background-color: var(--bg-oxblood);
  color: var(--text-cream);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

dialog.editorial-dialog[open] {
  display: block;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(20, 6, 9, 0.78);
  backdrop-filter: blur(4px);
}

.editorial-dialog__inner {
  position: relative;
  padding: 28px 24px 26px;
}

.editorial-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(246, 237, 229, 0.35);
  background: transparent;
  color: var(--text-cream);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.editorial-dialog__close:hover {
  background-color: rgba(246, 237, 229, 0.12);
}

.editorial-dialog__close:focus-visible {
  outline: 2px solid var(--surface-cream);
  outline-offset: 2px;
}

.editorial-dialog__title {
  margin: 0 28px 10px 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.025em;
  color: var(--text-cream);
}

.editorial-dialog__title em {
  font-style: italic;
}

.editorial-dialog__desc {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted-cream);
}

/* Form Styles + :user-invalid validation after interaction */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.lead-form__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 3px;
}

.lead-form__hint {
  display: block;
  font-size: 11px;
  color: rgba(220, 211, 202, 0.78);
  margin-bottom: 5px;
}

.lead-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid rgba(246, 237, 229, 0.45);
  background-color: rgba(70, 29, 37, 0.85);
  color: var(--text-cream);
  font-size: 14px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.lead-form input::placeholder {
  color: rgba(220, 211, 202, 0.5);
}

.lead-form input:focus-visible {
  outline: 2px solid var(--surface-cream);
  outline-offset: 2px;
  border-color: var(--surface-cream);
}

.lead-form__error {
  display: none;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--error-text);
}

.lead-form__error [role='img'] {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--error-border);
  color: var(--bg-oxblood);
  font-size: 10px;
  font-weight: 800;
  margin-right: 4px;
  vertical-align: middle;
}

.lead-form input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error-border);
  background-color: var(--error-bg);
}

.lead-form input:is(:user-invalid, .user-invalid-fallback) + .lead-form__error {
  display: block;
}

.lead-form input:is(:user-valid, .user-valid-fallback) {
  border-color: var(--valid-border);
}

.btn--dialog-submit {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  background-color: var(--surface-cream);
  color: var(--text-wine);
  font-size: 12px;
  margin-top: 4px;
}

.btn--dialog-submit:hover {
  background-color: #ffffff;
}

.btn--dialog-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.lead-form__disclaimer {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
  color: rgba(220, 211, 202, 0.75);
}

.dialog-success {
  text-align: center;
  padding-top: 22px;
}

.dialog-success .editorial-dialog__title {
  margin-right: 0;
  font-size: 46px;
}

.dialog-success__notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(246, 237, 229, 0.45);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted-cream);
}

.dialog-success__notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-cream);
}

.privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.privacy-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted-cream);
}
