/* =========================================================
   Missão Sete Orações — Portal Editorial Acolhedor
   ========================================================= */
:root {
  --bg: #faf8f5;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #5c5854;
  --line: #d6d3cd;
  --vatican: #5c1d24;
  --vatican-deep: #4a171d;
  --gold: #c5a059;
  --gold-soft: rgba(197, 160, 89, 0.22);
  --green: #15803d;
  --green-deep: #166534;
  --wa-bg: #f0f2ee;
  --radius: 6px;
  --radius-media: 12px;
  --max: 480px;
  --header-h: 44px;
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font: inherit;
}

/* ---------- Header compacto (44px) ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--vatican);
  color: #f7f3ee;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header-bar {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.header-cross {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.header-brand {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(247, 243, 238, 0.95);
}

.progress-track {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  width: 9%;
  background: var(--gold);
  transition: width 0.5s ease;
}

/* ---------- Layout / above-the-fold ---------- */
.app-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 14px 48px;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 10px;
}

.subhead,
.short-text,
.question {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
}

.question {
  font-weight: 600;
  color: var(--ink);
  font-size: 17.5px;
}

/* Compact spacing on small phones for 1st fold */
@media (max-height: 720px) {
  .app-shell {
    padding-top: 10px;
  }
  .headline {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .subhead {
    font-size: 15.5px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .question {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .opt-btn {
    min-height: 52px;
    padding: 11px 12px;
  }
  .visual-frame {
    height: 160px;
    margin-bottom: 10px;
  }
}

/* ---------- Imagem cinematográfica + Ken Burns ---------- */
.visual-frame {
  position: relative;
  margin: 0 0 12px;
  height: 180px;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a1a16;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(40, 20, 12, 0.35) 100%),
    linear-gradient(180deg, transparent 55%, rgba(92, 29, 36, 0.18) 100%);
  z-index: 1;
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: kenBurns 10s ease-in-out infinite alternate;
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: rgba(247, 243, 238, 0.85);
  background: linear-gradient(145deg, #3a2420, #1f1412);
  font-size: 13px;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

/* ---------- Staggered fade-in ---------- */
.step.is-active .visual-frame,
.step.is-active .headline,
.step.is-active .subhead,
.step.is-active .question,
.step.is-active .short-text,
.step.is-active .audio-player,
.step.is-active .info-cards,
.step.is-active .field,
.step.is-active .cta-btn,
.step.is-active .day-list,
.step.is-active .confirm-banner,
.step.is-active .offer-stack,
.step.is-active .price-box {
  animation: fadeUp 300ms var(--ease) both;
}

.step.is-active .opt-btn {
  animation: fadeUpOpt 320ms var(--ease) both;
}

.step.is-active .opt-btn:nth-child(1) { animation-delay: 40ms; }
.step.is-active .opt-btn:nth-child(2) { animation-delay: 110ms; }
.step.is-active .opt-btn:nth-child(3) { animation-delay: 180ms; }
.step.is-active .opt-btn:nth-child(4) { animation-delay: 250ms; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpOpt {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-frame img,
  .step.is-active .visual-frame,
  .step.is-active .headline,
  .step.is-active .opt-btn,
  .opt-radio::after {
    animation: none !important;
  }
  .progress-fill {
    transition: none;
  }
}

/* ---------- Opções (radio + feedback tátil) ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.opt-btn:hover {
  border-color: #b8b3aa;
}

.opt-btn.is-selected {
  background: #faf6ee;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 2px 10px rgba(197, 160, 89, 0.18);
  transform: scale(0.995);
}

.opt-chevron {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 400;
}

/* Idle pulse — affordance após 3.5s sem toque */
.opt-btn.is-idle-pulse,
.cta-btn.is-idle-pulse,
a.cta-btn.is-idle-pulse {
  animation: idleGoldPulse 1.6s ease-in-out infinite;
}

.cta-btn.is-nudge-pulse,
a.cta-btn.is-nudge-pulse {
  animation: nudgePulse 1.1s ease-in-out infinite;
}

.cta-btn--sale.is-idle-pulse,
.cta-btn--sale.is-nudge-pulse {
  animation: salePulse 1.2s ease-in-out infinite;
}

@keyframes idleGoldPulse {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  50% {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft), 0 0 14px rgba(197, 160, 89, 0.28);
  }
}

@keyframes nudgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.35);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.18);
  }
}

@keyframes salePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 140, 74, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(34, 140, 74, 0.18);
  }
}

/* Pílula Ouvir — Tela 1 */
.listen-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4b36e 0%, var(--gold) 100%);
  color: #3a2a12;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid #b8923f;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.listen-pill:active {
  transform: scale(0.98);
}

.listen-pill.is-speaking {
  box-shadow: 0 0 0 3px var(--gold-soft), 0 2px 10px rgba(197, 160, 89, 0.4);
}

.listen-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  color: #3E2723;
}

.listen-pill-icon svg {
  display: block;
}

.listen-waves .lw1,
.listen-waves .lw2,
.listen-waves .lw3 {
  transform-origin: center bottom;
  animation: listen-wave 0.9s ease-in-out infinite;
}

.listen-waves .lw2 {
  animation-delay: 0.15s;
}

.listen-waves .lw3 {
  animation-delay: 0.3s;
}

@keyframes listen-wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Chips rápidos Etapa 9 */
.quick-label {
  margin-bottom: 8px;
}

.options--quick {
  margin-bottom: 16px;
}

.opt-btn--quick {
  background: #faf6ee;
  border-color: rgba(197, 160, 89, 0.45);
}

.opt-radio {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  border: 1.5px solid #8a847c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  transition: border-color 160ms ease;
}

.opt-radio::after {
  content: "";
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--vatican);
  transition: width 180ms ease, height 180ms ease;
}

.opt-btn.is-selected .opt-radio {
  border-color: var(--vatican);
}

.opt-btn.is-selected .opt-radio::after {
  width: 0.55em;
  height: 0.55em;
}

.opt-text {
  flex: 1;
  font-size: 16.5px;
  line-height: 1.35;
}

/* ---------- CTAs ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  margin-top: 8px;
  border-radius: var(--radius);
  background: var(--vatican);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--vatican-deep);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.cta-btn:hover {
  background: var(--vatican-deep);
}

.cta-btn:active,
.cta-btn.is-selected {
  transform: scale(0.99);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.cta-btn--sale {
  background: var(--green);
  border-color: var(--green-deep);
}

.cta-btn--sale:hover {
  background: var(--green-deep);
}

.cta-btn.is-hidden {
  display: none;
}

.cta-btn.is-revealed {
  display: inline-flex;
}

.story-wait {
  margin: 16px 0 8px;
  text-align: center;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--gold) 58%, var(--muted));
}

.story-wait.is-hidden {
  display: none;
}

.story-gate.is-locked .story-gate-content {
  display: none;
}

.story-gate.is-unlocked .story-gate-content {
  display: block;
  animation: fadeInUp 0.55s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-gate.is-unlocked .story-gate-content {
    animation: none;
  }
}

.cta-arrow {
  opacity: 0.9;
}

/* ---------- Cards / listas ---------- */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.info-card {
  padding: 12px 0 12px 12px;
  border-left: 3px solid var(--gold);
}

.info-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--vatican);
}

.info-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.day-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.day-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.day-list .day-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vatican);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.day-list strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 2px;
}

.day-list span {
  font-size: 14.5px;
  color: var(--muted);
}

.quote-block {
  margin: 12px 0;
  padding: 10px 0 10px 12px;
  border-left: 2px solid var(--vatican);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- Player ---------- */
.audio-player {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wa-bg);
}

.audio-player--paper {
  background: var(--paper);
}

.audio-speaker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.audio-speaker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vatican);
}

/* Ondas sonoras — sinal visual de áudio tocando */
.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  opacity: 0.35;
}

.audio-waves span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 1px;
  background: var(--vatican);
  transform-origin: bottom;
}

.audio-waves.is-active,
.audio-player.is-playing .audio-waves {
  opacity: 1;
}

.audio-waves.is-active span,
.audio-player.is-playing .audio-waves span {
  animation: waveBar 0.85s ease-in-out infinite;
}

.audio-waves span:nth-child(1) { animation-delay: 0ms; }
.audio-waves span:nth-child(2) { animation-delay: 120ms; height: 10px; }
.audio-waves span:nth-child(3) { animation-delay: 240ms; height: 14px; }
.audio-waves span:nth-child(4) { animation-delay: 160ms; height: 9px; }
.audio-waves span:nth-child(5) { animation-delay: 80ms; }

@keyframes waveBar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-waves span,
  .opt-btn.is-idle-pulse,
  .cta-btn.is-idle-pulse,
  .cta-btn.is-nudge-pulse,
  .cta-btn--sale.is-idle-pulse,
  .cta-btn--sale.is-nudge-pulse {
    animation: none !important;
  }
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--vatican);
}

.audio-avatar img,
.audio-avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.audio-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vatican);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.audio-meta {
  flex: 1;
  min-width: 0;
}

.audio-progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(92, 29, 36, 0.15);
  overflow: hidden;
  margin-bottom: 5px;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--vatican);
}

.audio-time {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.audio-player audio[data-wa-audio] {
  display: none;
}

.audio-caption {
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(92, 29, 36, 0.12);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.audio-caption:empty {
  display: none;
}

/* ---------- Form + chama viva (Etapa 9) ---------- */
.field {
  margin: 12px 0;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.step-ritual-glow {
  position: relative;
}

.step-ritual-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.28), transparent 70%);
  animation: candlePulse 2.4s ease-in-out infinite;
  z-index: 0;
}

.step-ritual-glow > * {
  position: relative;
  z-index: 1;
}

.step-ritual-glow.is-sealing::before {
  animation: candleSeal 0.9s ease-out forwards;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.45), transparent 68%);
}

@keyframes candlePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes candleSeal {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.25);
  }
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.1);
  }
}

.ritual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  min-height: 50vh;
  justify-content: center;
}

.ritual-candle {
  width: 64px;
  height: 96px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.55));
  animation: candlePulse 1.8s ease-in-out infinite;
}

.ritual-candle svg {
  width: 100%;
  height: 100%;
}

.ritual-msg {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 22em;
  margin: 0;
}

.ritual-msg strong {
  color: var(--vatican);
}

/* ---------- Processing ---------- */
.process-continue {
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
}

.process-box {
  margin: 8px 0 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}

.process-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 80ms linear;
}

.process-msg {
  font-size: 15.5px;
  color: var(--ink-soft);
  min-height: 2.4em;
  margin: 0;
}

/* ---------- Pitch ---------- */
.confirm-banner {
  margin: 0 0 12px;
  padding: 10px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: var(--vatican);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.video-frame {
  margin: 0 0 14px;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
}

.offer-stack h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 10px;
}

.offer-stack ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-stack li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.offer-stack li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.gift-alert {
  margin: 14px 0 6px;
  color: var(--vatican);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
}

.price-box {
  margin: 18px 0 12px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-box .anchor {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.price-box .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--vatican);
  margin: 0 0 4px;
}

.price-box .price-note {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.guarantee {
  margin: 18px 0;
  padding: 12px 0 12px 12px;
  border-left: 3px solid var(--green);
  font-size: 15.5px;
}

.faq-cards {
  border-top: 1px solid var(--line);
}

.faq-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.faq-card .who {
  font-size: 12px;
  font-weight: 700;
  color: var(--vatican);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.faq-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 20, 18, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: var(--max);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 22px;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.35;
}

.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
}

@media (min-width: 520px) {
  .modal-overlay {
    align-items: center;
  }
}
