/* v6.17 — data e horário unificados */
:root { --rose-action: #b94367; }

.copy-pix,
.map-button { min-height: 44px; }

.primary-button { background: var(--rose-action); }

.rsvp-modal { max-height: min(92dvh, 820px); }

.guess-option input:focus-visible + span {
  outline: 3px solid rgba(36, 120, 181, .35);
  outline-offset: 3px;
}

.form-privacy {
  margin: -2px 0 0;
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--sans);
  text-align: center;
}

@media (max-width: 699px) {
  html,
  body,
  #app,
  .invitation-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .invitation-page {
    width: 100%;
    box-shadow: none;
  }

  .watercolor-layer {
    background-position: center top;
    background-size: 100% auto;
  }

  .invitation-page::after {
    background: rgba(255, 249, 240, .91);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .8) 8%, #000 15%, #000 85%, rgba(0, 0, 0, .8) 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .8) 8%, #000 15%, #000 85%, rgba(0, 0, 0, .8) 92%, transparent 100%);
  }

  .invitation-card {
    width: calc(100% - 24px);
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .hero {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: var(--first-fold-height, calc(100svh - 18px));
    grid-template-rows: auto auto auto auto;
    align-content: space-between;
    justify-items: center;
    padding-bottom: clamp(10px, 2svh, 16px);
    overflow: visible;
  }

  .hero-heading {
    width: 100%;
    min-width: 0;
  }

  .hero-kicker {
    width: 100%;
    gap: 10px;
    margin: 0 0 6px;
    padding-inline: 6px;
    color: var(--gold-text);
    font-size: clamp(9.5px, 2.55vw, 11px);
    letter-spacing: .2em;
    white-space: nowrap;
  }

  .hero h1 {
    width: 100%;
    margin: 0;
    font-size: clamp(52px, 14.8vw, 64px);
    line-height: .92;
    letter-spacing: -.025em;
  }

  .hero h1 > strong {
    margin-top: 2px;
    margin-left: 0;
    font-size: .99em;
    line-height: .92;
  }

  .ornament {
    width: 70%;
    max-width: 70%;
    gap: 13px;
    margin: 6px auto 0;
  }

  .bear-picture {
    position: relative;
    left: 50%;
    width: 108%;
    max-width: 108%;
    margin: 0;
    translate: -47.4% 0;
    scale: 1.11;
    transform-origin: center center;
  }

  .bear-hero {
    width: 100%;
    max-width: 100%;
  }

  .name-plaque {
    position: relative;
    top: clamp(5px, calc(22svh - 141.74px), 44px);
    width: 98%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 613 / 126;
    gap: 7px;
    margin: 4px auto 0;
    padding: 7px 18px 9px;
  }

  .name-plaque .name {
    font-size: clamp(33px, 9.8vw, 42px);
    line-height: 1.05;
  }

  .choice-word { font-size: clamp(13px, 3.6vw, 16px); }

  .hero-copy {
    position: relative;
    top: calc(-1 * clamp(7px, 1.05svh, 9px));
    width: 98%;
    min-width: 0;
    min-height: clamp(118px, 31.5vw, 128px);
    margin: 6px auto 0;
    padding: 14px 23px 16px;
    font-size: clamp(14px, 3.85vw, 16px);
    line-height: 1.26;
  }

  .event-panel {
    gap: 8px;
    margin-top: 12px;
  }

  .ornate-frame {
    border-width: 13px;
    border-image-width: 13px;
  }

  .event-facts { gap: 7px; }

  .event-fact {
    min-height: 146px;
    padding: 3px 7px 7px;
  }

  .icon-shell {
    height: 37px;
    margin-bottom: 2px;
  }

  .event-fact small,
  .gift-block small,
  .pix-heading small,
  .venue-copy small {
    font-size: clamp(10px, 2.7vw, 11px);
    letter-spacing: .12em;
  }

  .rose-fact small { color: var(--rose-deep); }
  .blue-fact small { color: var(--blue-deep); }

  .event-fact strong {
    margin-top: 6px;
    font-size: clamp(23px, 6.6vw, 28px);
  }

  .event-fact .fact-detail,
  .blue-fact .fact-detail {
    margin-top: 6px;
    font-size: clamp(18px, 5.1vw, 21px);
    line-height: 1.12;
  }

  .countdown {
    min-height: 126px;
    padding: 4px 7px 6px;
  }

  .section-kicker {
    gap: 8px;
    margin-bottom: 10px;
    color: var(--rose-deep);
    font-size: 10px;
    letter-spacing: .1em;
  }

  .countdown-value {
    color: var(--rose-deep);
    font-size: clamp(31px, 8.8vw, 37px);
  }

  .countdown-unit span {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: .03em;
  }

  .countdown-unit:not(:last-child)::after { height: 46px; }

  .gift-block {
    grid-template-columns: 50px 1fr 38px;
    min-height: 96px;
    padding-inline: 5px;
  }

  .gift-block::after { width: 38px; }
  .gift-block > i { font-size: 32px !important; }

  .gift-block strong {
    color: var(--rose-deep);
    font-size: clamp(22px, 6.4vw, 27px);
    line-height: 1.1;
  }

  .gift-note {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: .035em;
    line-height: 1.25;
  }

  .pix-block {
    min-height: 218px;
    padding: 4px 4px 7px;
  }

  .pix-heading {
    gap: 9px;
    margin: 0 0 6px;
  }

  .pix-icon i { font-size: 29px !important; }

  .pix-heading strong {
    color: var(--rose-deep);
    font-size: clamp(23px, 6.8vw, 28px);
    line-height: 1.08;
  }

  .pix-copy {
    max-width: 330px;
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.28;
  }

  .pix-row {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 34px;
  }

  .pix-row > span {
    padding-inline: 8px;
    font-size: 10px;
  }

  .pix-row strong {
    padding: 6px 8px;
    font-size: clamp(10px, 2.8vw, 12px);
  }

  .copy-pix {
    min-height: 44px;
    margin-top: 7px;
    font-size: 11px;
  }

  .venue-block {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 122px;
    padding: 11px 11px 10px;
    border-radius: 16px;
  }

  .venue-icon i { font-size: 37px !important; }
  .venue-copy strong { font-size: clamp(15px, 4.1vw, 17px); }
  .venue-copy > span { font-size: clamp(14px, 3.8vw, 16px); }

  .map-button {
    min-height: 44px;
    margin-top: 7px;
    font-size: 11px;
  }

  .rsvp-button {
    min-height: 76px;
    gap: 11px;
    padding: 11px 14px 12px;
    border-radius: 17px;
  }

  .rsvp-button > i {
    flex-shrink: 0;
    font-size: 31px !important;
  }

  .rsvp-button strong {
    font-size: clamp(21px, 6.3vw, 30px);
    line-height: 1.05;
  }

  .rsvp-button small {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  .invitation-footer { padding-top: 16px; }
  .invitation-footer p { font-size: clamp(21px, 6vw, 26px); line-height: 1.15; }

  .rsvp-modal {
    max-height: calc(100dvh - 24px);
    padding: 27px 17px max(21px, env(safe-area-inset-bottom));
    border-radius: 21px;
  }

  .field-row,
  .guess-options { grid-template-columns: 1fr 1fr; }

  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .organizer-header,
  .list-header { align-items: flex-start; flex-direction: column; }
  .organizer-header-actions { width: 100%; justify-content: space-between; }
  .table-wrap { display: none; }
  .mobile-list { display: grid; gap: 12px; }
  .guest-card { padding: 16px; border: 1px solid #e5d9c7; border-radius: 16px; background: #fff; }
  .guest-card-top { display: flex; justify-content: space-between; gap: 8px; }
  .guest-card h3 { margin: 2px 0; font: 600 24px/1 var(--serif); }
  .guest-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .guest-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
  .guest-card dl div { padding: 9px; border-radius: 10px; background: #faf6ef; }
  .guest-card dt { font-size: 10px; text-transform: uppercase; }
  .guest-card dd { margin: 3px 0 0; font-weight: 700; }
  .guest-card p { font-size: 12px; }
  .guest-card footer { display: flex; justify-content: space-between; gap: 7px; font-size: 11px; }
  .list-actions { width: 100%; }
  .list-actions button { flex: 1; justify-content: center; }

  .hero.is-fold-compact { padding-bottom: 6px; }

  .hero.is-fold-compact .hero-kicker {
    margin-bottom: 3px;
    font-size: clamp(9px, 2.4vw, 10px);
    letter-spacing: .17em;
  }

  .hero.is-fold-compact h1 { font-size: clamp(48px, 13.7vw, 56px); }

  .hero.is-fold-compact .ornament {
    width: 64%;
    max-width: 64%;
    margin-top: 4px;
  }

  .hero.is-fold-compact .bear-picture {
    width: 100%;
    max-width: 100%;
    translate: -51.12% 0;
    scale: 1.12;
  }

  .hero.is-fold-compact .name-plaque {
    top: 0;
    width: 95%;
    padding-inline: 16px;
  }

  .hero.is-fold-compact .name-plaque .name { font-size: clamp(30px, 8.9vw, 36px); }

  .hero.is-fold-compact .hero-copy {
    top: 0;
    width: 96%;
    min-height: 104px;
    padding: 10px 20px 11px;
    font-size: clamp(13px, 3.6vw, 14.4px);
    line-height: 1.22;
  }
}

@media (max-width: 399px) {
  .invitation-card { width: calc(100% - 18px); }
  .hero h1 { font-size: clamp(50px, 14.6vw, 57px); }
  .name-plaque .name { font-size: clamp(31px, 9.5vw, 38px); }
  .hero-copy { padding-inline: 21px; font-size: clamp(13.6px, 3.8vw, 15px); }
}

@media (max-width: 359px) {
  .hero-kicker { gap: 7px; letter-spacing: .14em; }
  .event-fact strong { font-size: 22px; }
  .rsvp-button strong { font-size: 20px; }
}

@media (max-width: 699px) and (max-height: 620px) {
  .hero-kicker { margin-bottom: 3px; font-size: clamp(9px, 2.4vw, 10px); letter-spacing: .17em; }
  .hero h1 { font-size: clamp(48px, 13.7vw, 56px); }
  .ornament { width: 64%; max-width: 64%; margin-top: 4px; }
  .bear-picture { width: 100%; max-width: 100%; scale: 1.12; }
  .name-plaque { width: 95%; padding-inline: 16px; }
  .name-plaque .name { font-size: clamp(30px, 8.9vw, 36px); }
  .hero-copy {
    width: 96%;
    min-height: 104px;
    padding: 10px 20px 11px;
    font-size: clamp(13px, 3.6vw, 14.4px);
    line-height: 1.22;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .name-plaque::before { animation-iteration-count: 1; }
  .rsvp-button { animation-duration: 5.2s; animation-iteration-count: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Bloco único de data e horário — reduz altura e melhora o ritmo da rolagem. */
.event-facts-unified {
  display: block;
}

.event-fact-unified {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 14px 7px;
  text-align: center;
}

.event-fact-header {
  display: grid;
  width: min(100%, 312px);
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  column-gap: 7px;
  margin: 0 auto;
}

.event-fact-header small {
  display: block;
  color: var(--rose-deep);
  font: 700 clamp(10px, 2.8vw, 11px)/1.15 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-icon {
  display: grid;
  place-items: center;
  line-height: 1;
}

.event-icon-calendar { color: var(--rose); }
.event-icon-clock { color: var(--blue); }

.event-fact-unified > strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font: 500 clamp(28px, 8vw, 34px)/.98 var(--serif);
  white-space: nowrap;
}

.event-fact-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
  margin-top: 5px;
  color: var(--ink);
  font: 500 clamp(15px, 4.2vw, 18px)/1.05 var(--serif);
  white-space: nowrap;
}

.event-day {
  color: var(--rose);
  font: 400 clamp(19px, 5.3vw, 22px)/1 var(--script);
}

.event-separator {
  color: var(--rose);
  font-family: var(--serif);
  font-weight: 700;
}

.event-time b {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 359px) {
  .event-fact-unified { min-height: 120px; padding-inline: 9px; }
  .event-fact-header { grid-template-columns: 36px minmax(0, 1fr) 36px; column-gap: 4px; }
  .event-fact-header small { font-size: 9.5px; letter-spacing: .11em; }
  .event-icon .ph { font-size: 28px !important; }
  .event-fact-unified > strong { font-size: 27px; }
  .event-fact-meta { gap: 5px; font-size: 14px; }
  .event-day { font-size: 18px; }
}

/* O lembrete ganha hierarquia própria sem competir com a sugestão principal. */
.gift-block {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 116px;
  padding-inline: 5px;
}

.gift-block::after { width: 44px; }
.gift-content { min-width: 0; }

.gift-reminder {
  display: flex;
  width: min(100%, 286px);
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 7px auto 0;
  padding: 4px 9px;
  border: 1px solid rgba(208, 154, 61, .28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(248, 232, 198, .26);
}

.gift-reminder > .ph {
  flex: 0 0 auto;
  font-size: 16px !important;
}

.gift-reminder-label {
  flex: 0 0 auto;
  color: var(--gold);
  font: 700 8.5px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gift-reminder-divider {
  width: 1px;
  height: 15px;
  flex: 0 0 auto;
  background: rgba(208, 154, 61, .5);
}

.gift-reminder .gift-note {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 600 clamp(8.5px, 2.35vw, 10px)/1.15 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

/* Colunas laterais iguais mantêm o título do PIX no centro exato da moldura. */
.pix-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.pix-heading-copy {
  min-width: 0;
  text-align: center;
}

.pix-heading-balance {
  display: block;
  width: 42px;
  height: 1px;
}

@media (max-width: 359px) {
  .gift-block { grid-template-columns: 36px minmax(0, 1fr) 36px; min-height: 112px; padding-inline: 3px; }
  .gift-block::after { width: 36px; }
  .gift-reminder { gap: 4px; padding-inline: 6px; }
  .gift-reminder-label { font-size: 7.5px; }
  .gift-reminder .gift-note { font-size: 8px; }
  .pix-heading { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; }
  .pix-heading-balance { width: 36px; }
}

/* v6.17 — acabamento do cabeçalho PIX: centro óptico e respiro vertical */
.pix-heading {
  position: relative;
  display: block;
  width: 100%;
  margin: 2px auto 10px;
  text-align: center;
}

.pix-heading-copy {
  width: min(100%, 290px);
  margin: 0 auto;
}

.pix-heading small {
  margin-bottom: 5px;
  line-height: 1.15;
}

.pix-heading strong {
  line-height: 1;
}

.pix-icon {
  position: absolute;
  top: 50%;
  left: calc(50% - 119px);
  justify-self: auto;
  transform: translateY(-48%);
}

.pix-heading-balance {
  display: none;
}

@media (max-width: 359px) {
  .gift-content strong {
    text-wrap: balance;
  }

  .pix-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pix-row > span {
    padding-inline: 5px;
    font-size: 9px;
  }

  .pix-row strong {
    padding-inline: 6px;
    font-size: 9px;
  }

  .pix-heading {
    margin-bottom: 8px;
  }

  .pix-heading-copy {
    width: min(100%, 258px);
  }

  .pix-heading small {
    margin-bottom: 4px;
  }

  .pix-icon {
    left: calc(50% - 114px);
  }
}
