:root {
  --pink-50: #fff6f8;
  --pink-100: #fde7ed;
  --pink-300: #f6aec1;
  --pink-500: #e77c9d;
  --pink-700: #ad4768;
  --blue-50: #f3f9fd;
  --blue-100: #e3f1f9;
  --blue-300: #9fcde6;
  --blue-500: #67add4;
  --blue-700: #347aa4;
  --cream: #fffaf0;
  --paper: rgba(255, 255, 255, 0.9);
  --brown: #674530;
  --brown-soft: #96705a;
  --gold: #d5a752;
  --text: #553f36;
  --muted: #806f67;
  --border: rgba(138, 97, 72, 0.16);
  --shadow: 0 24px 60px rgba(103, 69, 48, 0.15);
  --radius-large: 32px;
  --radius-medium: 22px;
  --radius-small: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(246, 174, 193, 0.38), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(159, 205, 230, 0.42), transparent 30%),
    linear-gradient(135deg, #fff8f4 0%, #fffdf8 46%, #f5fbff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(103, 69, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 69, 48, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.background-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor {
  position: absolute;
  opacity: 0.35;
  animation: floatDecor 5s ease-in-out infinite;
}

.decor-heart {
  color: var(--pink-500);
}

.decor-star {
  color: var(--gold);
}

.decor-1 {
  top: 9%;
  left: 4%;
  font-size: 30px;
  transform: rotate(-16deg);
}

.decor-2 {
  top: 22%;
  right: 6%;
  font-size: 24px;
  animation-delay: 0.8s;
}

.decor-3 {
  right: 3%;
  bottom: 16%;
  font-size: 34px;
  transform: rotate(18deg);
  animation-delay: 1.4s;
}

.decor-4 {
  bottom: 10%;
  left: 6%;
  font-size: 26px;
  animation-delay: 2s;
}

.decor-5 {
  top: 54%;
  left: 2%;
  color: var(--blue-500);
  font-size: 24px;
  animation-delay: 2.6s;
}

@keyframes floatDecor {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.cloud {
  position: absolute;
  width: 150px;
  height: 48px;
  border-radius: 999px;
  opacity: 0.35;
  background: #fff;
  box-shadow: 35px -23px 0 1px #fff, 78px -10px 0 5px #fff;
}

.cloud-1 {
  top: 11%;
  left: -45px;
}

.cloud-2 {
  top: 39%;
  right: -80px;
  transform: scale(0.85);
}

.top-flags {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  display: flex;
  width: min(900px, 92vw);
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.top-flags::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(178, 121, 34, 0.6);
}

.top-flags span {
  width: 0;
  height: 0;
  border-top: 24px solid var(--pink-300);
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
  filter: drop-shadow(0 3px 2px rgba(103, 69, 48, 0.08));
}

.top-flags span:nth-child(even) {
  border-top-color: var(--blue-300);
}

.top-flags span:nth-child(3n) {
  border-top-color: #eed3a5;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 38px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-large);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.88)),
    linear-gradient(90deg, var(--pink-100), var(--blue-100));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: inline-block;
  color: var(--brown-soft);
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 10px 0 0;
  color: var(--brown);
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.2rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
}

.baby-question {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 20px 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.22;
}

.boy-name {
  color: var(--blue-500);
  text-shadow: 0 8px 24px rgba(103, 173, 212, 0.2);
}

.girl-name {
  color: var(--pink-500);
  text-shadow: 0 8px 24px rgba(231, 124, 157, 0.18);
}

.or-word {
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 1.35em;
  font-weight: 400;
}

.hero-highlight {
  margin: 16px 0 5px;
  color: #b78126;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), #bba2ca 52%, var(--blue-500));
  box-shadow: 0 12px 28px rgba(113, 129, 173, 0.24);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(113, 129, 173, 0.3);
}

.invite-frame {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  padding: 9px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(247, 184, 200, 0.92), rgba(171, 216, 238, 0.94));
  box-shadow: 0 22px 45px rgba(100, 72, 55, 0.2);
  transform: rotate(1deg);
  animation: inviteFloat 5s ease-in-out infinite;
}

.invite-frame::before,
.invite-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.invite-frame::before {
  top: -14px;
  left: -14px;
}

.invite-frame::after {
  right: -14px;
  bottom: -14px;
}

.invite-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: contain;
  object-position: center top;
  background: #fffdf8;
}

@keyframes inviteFloat {
  0%, 100% { transform: rotate(1deg) translateY(0); }
  50% { transform: rotate(0.3deg) translateY(-7px); }
}

.content-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 26px;
  margin-top: 26px;
}

.info-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.info-card,
.gift-card,
.rsvp-card {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(103, 69, 48, 0.11);
  backdrop-filter: blur(12px);
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-medium);
}

.info-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 246, 248, 0.96), rgba(255, 255, 255, 0.92));
}

.info-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(243, 249, 253, 0.97), rgba(255, 255, 255, 0.92));
}

.info-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(103, 69, 48, 0.08);
}

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  color: var(--brown);
  font-family: "Montserrat", sans-serif;
  font-size: 1.04rem;
}

.info-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.gift-card {
  padding: 25px;
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.97), rgba(255, 255, 255, 0.92));
}

.gift-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #906b27;
  background: rgba(213, 167, 82, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gift-card h2 {
  margin: 14px 0 7px;
  color: var(--brown);
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
}

.gift-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rsvp-card {
  padding: 34px;
  border-radius: var(--radius-large);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 246, 0.94));
  scroll-margin-top: 18px;
}

.rsvp-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mini-cowboy {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(213, 167, 82, 0.28);
  border-radius: 18px;
  background: var(--cream);
  font-size: 1.65rem;
}

.rsvp-heading h2 {
  margin: 4px 0 0;
  color: var(--brown);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.rsvp-intro {
  margin: 18px 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field-group label {
  color: var(--brown);
  font-weight: 800;
}

.field-group input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-small);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-group input:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(159, 205, 230, 0.2);
}

.field-group input.input-error {
  border-color: #d95d76;
  box-shadow: 0 0 0 4px rgba(217, 93, 118, 0.12);
}

.field-error {
  min-height: 18px;
  color: #b53e57;
  font-size: 0.84rem;
  font-weight: 700;
}

.companion-toggle {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(159, 205, 230, 0.28);
  border-radius: var(--radius-small);
  background: linear-gradient(90deg, rgba(253, 231, 237, 0.62), rgba(227, 241, 249, 0.72));
}

.companion-toggle strong,
.companion-toggle span {
  display: block;
}

.companion-toggle strong {
  color: var(--brown);
}

.companion-toggle div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  display: block;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #d8d0ca;
  transition: background 0.22s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(74, 49, 37, 0.2);
  transition: transform 0.22s ease;
}

.switch input:checked + .switch-track {
  background: linear-gradient(90deg, var(--pink-500), var(--blue-500));
}

.switch input:checked + .switch-track::after {
  transform: translateX(24px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(103, 173, 212, 0.28);
  outline-offset: 3px;
}

.companion-field {
  animation: showField 0.22s ease;
}

@keyframes showField {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-alert {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(213, 93, 118, 0.28);
  border-radius: 13px;
  color: #a83b52;
  background: rgba(255, 236, 241, 0.9);
  font-weight: 700;
}

.submit-button,
.secondary-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit-button {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), #c595ba 50%, var(--blue-500));
  box-shadow: 0 14px 28px rgba(113, 129, 173, 0.28);
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.28), transparent 78%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.submit-button:hover::before {
  transform: translateX(100%);
}

.submit-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-loader {
  display: none;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.loading .button-text {
  display: none;
}

.submit-button.loading .button-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.privacy-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.success-card {
  padding: 24px 4px 2px;
  text-align: center;
  animation: successIn 0.4s ease;
}

@keyframes successIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--blue-500));
  font-size: 2.1rem;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(111, 139, 178, 0.28);
  animation: successPulse 1.8s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 15px 30px rgba(111, 139, 178, 0.28); }
  50% { box-shadow: 0 15px 38px rgba(231, 124, 157, 0.42); }
}

.success-card h3 {
  margin: 7px 0 9px;
  color: var(--brown);
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
}

.success-card p {
  max-width: 500px;
  margin: 0 auto 15px;
  color: var(--muted);
  line-height: 1.65;
}

.success-card .success-celebration {
  margin-bottom: 22px;
  color: var(--brown);
  font-weight: 800;
}

.secondary-button {
  color: var(--brown);
  background: linear-gradient(90deg, var(--pink-100), var(--blue-100));
}

footer {
  padding: 28px 12px 0;
  color: var(--brown-soft);
  text-align: center;
  font-weight: 700;
}

.footer-hearts {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.footer-hearts span:first-child {
  color: var(--blue-500);
}

.footer-hearts span:last-child {
  color: var(--pink-500);
}

.confetti-container {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.95;
  animation: confettiFall var(--duration) linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rotation));
    opacity: 0.15;
  }
}

.reveal-card {
  opacity: 0;
  animation: revealCard 0.65s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .baby-question {
    justify-content: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .invite-frame {
    justify-self: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 38px;
  }

  .top-flags span {
    border-top-width: 18px;
    border-right-width: 10px;
    border-left-width: 10px;
  }

  .hero-card {
    gap: 28px;
    padding: 30px 18px 23px;
    border-radius: 25px;
  }

  .hero-copy h1 {
    font-size: 4.25rem;
  }

  .baby-question {
    gap: 2px 8px;
    font-size: 1.5rem;
  }

  .hero-highlight {
    font-size: 2.15rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-cta {
    width: 100%;
  }

  .invite-frame {
    width: min(91%, 350px);
    padding: 7px;
  }

  .content-grid {
    gap: 18px;
    margin-top: 18px;
  }

  .rsvp-card {
    padding: 25px 18px;
    border-radius: 25px;
  }

  .info-card,
  .gift-card {
    border-radius: 19px;
  }

  .rsvp-heading {
    align-items: flex-start;
  }

  .mini-cowboy {
    width: 50px;
    height: 50px;
  }

  .companion-toggle {
    align-items: center;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 3.75rem;
  }

  .baby-question {
    font-size: 1.32rem;
  }

  .companion-toggle {
    gap: 10px;
    padding: 15px 14px;
  }
}

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


/* =========================================================
   RODAPÉ — DESENVOLVEDORES
   ========================================================= */

.developer-footer {
    width: 100%;
    margin-top: 32px;
    padding: 28px 20px 34px;
    text-align: center;
    color: #8a6b5a;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.developer-footer::before {
    content: "";
    display: block;
    width: min(240px, 70%);
    height: 1px;
    margin: 0 auto 22px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(232, 112, 153, 0.7),
        rgba(98, 174, 220, 0.7),
        transparent
    );
}

.developer-footer p {
    margin: 0;
}

.developer-footer strong {
    color: #6f4a36;
    font-weight: 700;
}

.developer-heart {
    display: inline-block;
    margin: 0 5px;
    color: #e87099;
    font-size: 1.1rem;
    animation: developer-heartbeat 1.8s ease-in-out infinite;
}

@keyframes developer-heartbeat {
    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.18);
    }

    30% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .developer-footer {
        margin-top: 20px;
        padding: 24px 15px 28px;
        font-size: 0.82rem;
    }
}
