/* =============================================================
   Larissa & Douglas — site do casamento
   Verde claro, papel marfim, cera verde e detalhes dourados.
   ============================================================= */

:root {
  color-scheme: light;

  /* Verdes */
  --bg: #F2F7EF;          /* fundo principal */
  --bg-2: #E0EDD8;        /* verde claro (cor principal) */
  --green: #9DC08B;       /* verde claro de destaque */
  --green-mid: #6C9A5C;
  --green-deep: #3F6A35;  /* botões e links */
  --green-ink: #26401F;   /* títulos */
  --field: #CBDCC2;

  /* Texto */
  --ink: #1F2B1C;
  --ink-soft: #3F4E3B;
  --muted: #5B6A56;

  --card: #FFFFFF;
  --line: rgba(38, 64, 31, 0.14);
  --line-strong: rgba(38, 64, 31, 0.26);
  --error: #9C3B2A;

  --f-display: "Marcellus", "Trajan Pro", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .12 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
html.intro-active,
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; }

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

.wrap {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.wrap--narrow { width: min(720px, 100%); }

.section { padding-block: clamp(56px, 7vw, 92px); }

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  color: var(--green-ink);
  text-wrap: balance;
}
.lead {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.shead { margin-bottom: clamp(28px, 3.4vw, 40px); text-align: center; }
.shead .lead { margin-inline: auto; }

.deadline {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.deadline strong { color: var(--green-ink); font-weight: 600; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1.5px solid var(--green-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--green-deep); color: #FFFFFF; }
.btn--solid:hover { background: var(--green-ink); border-color: var(--green-ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.8rem; }
.btn--quiet { border-color: var(--line-strong); color: var(--muted); }

.linkbtn {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--green-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Campos ---------- */

.input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  background: #FBFDF9;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8A9685; opacity: 1; }
.input:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 4px rgba(108, 154, 92, 0.2); }
.input[aria-invalid="true"] { border-color: var(--error); }

.form { display: grid; gap: 24px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 14px;
}
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label,
.field > legend {
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.field > legend { margin-bottom: 10px; }
.field__note {
  max-width: 52ch;
  margin: -4px 0 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.seg {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  background: var(--bg);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.seg input:checked + label { background: var(--green-deep); color: #FFFFFF; }
.seg input:focus-visible + label { outline: 2px solid var(--green-mid); outline-offset: 2px; }

.form-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: #FBEDEA;
  color: var(--error);
  font-size: 0.98rem;
}
.hint { font-size: 0.95rem; color: var(--muted); }
.hint strong { color: var(--green-ink); font-weight: 600; }
.toast { min-height: 1.5em; font-size: 0.95rem; color: var(--green-deep); }

.card {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 30px 60px -40px rgba(38, 64, 31, 0.4), 0 1px 0 rgba(38, 64, 31, 0.05);
}


/* =============================================================
   CONVITE — cena do envelope
   ============================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(255, 255, 240, 0.24), transparent 70%),
    radial-gradient(ellipse 95% 85% at 50% 45%, #A9C79C 0%, #87AA7B 48%, #5E8253 100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.intro-active .intro {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.intro__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.intro__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 4.6vh, 46px);
  padding: 24px 16px;
}

.intro__to {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transition: opacity .6s ease, transform .8s var(--ease-out);
}
.intro__to-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(30, 60, 25, 0.3);
}
.intro__to-name {
  max-width: 18ch;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(30, 60, 25, 0.3);
  text-wrap: balance;
}

.intro__hint {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 10px rgba(30, 60, 25, 0.35);
  transition: opacity .5s ease, transform .8s var(--ease-out);
}
.intro__hint span { display: inline-flex; align-items: center; gap: 14px; }
.intro__hint span::before,
.intro__hint span::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.intro__skip {
  position: absolute;
  z-index: 4;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: opacity .4s, border-color .3s;
}
.intro__skip:hover { border-color: #FFFFFF; }

.intro__mark {
  position: absolute;
  z-index: 4;
  left: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  padding: 8px 0;
  font-family: var(--f-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity .5s;
}

/* ---------- Envelope ---------- */

.env-stage {
  --ew: min(560px, 86vw, calc((100svh - 270px) * 1.5));
  position: relative;
  width: var(--ew);
  aspect-ratio: 3 / 2;
}
.env-float {
  position: absolute;
  inset: 0;
  animation: floaty 7s ease-in-out infinite;
}
.env-shadow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -9%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 50, 22, 0.5), transparent);
  filter: blur(8px);
  animation: shadowBreath 7s ease-in-out infinite;
  transition: opacity .6s ease;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes shadowBreath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.93); opacity: .75; }
}

.env-tilt { position: absolute; inset: 0; will-change: transform; }
.envelope { position: absolute; inset: 0; perspective: 1600px; cursor: pointer; }
.envelope > * { position: absolute; }
.envelope svg { display: block; width: 100%; height: 100%; }

.env-back {
  inset: 0;
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 34px 60px -24px rgba(28, 50, 22, 0.55),
    0 14px 26px -14px rgba(28, 50, 22, 0.45);
}

.letter {
  left: 4.5%;
  right: 4.5%;
  top: 5%;
  height: 86%;
  z-index: 2;
  container-type: inline-size;
  background: #FFFFFF;
  box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  will-change: transform;
  transition: transform 1.25s cubic-bezier(.22, .8, .24, 1) 1.45s;
}
.letter__inner {
  position: absolute;
  inset: 3.2cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2cqw;
  padding-top: 6cqw;
  border: 1px solid rgba(108, 154, 92, 0.55);
  outline: 1px solid rgba(108, 154, 92, 0.25);
  outline-offset: -1.3cqw;
  text-align: center;
  transition: opacity .35s ease;
}
.letter__eyebrow {
  font-size: 2.4cqw;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.letter__names {
  font-family: var(--f-display);
  font-size: 7.4cqw;
  line-height: 1.1;
  color: var(--green-ink);
  white-space: nowrap;
}
.letter__names em { font-style: normal; font-size: .75em; color: var(--green-mid); padding: 0 .25em; }
.letter__rule { width: 12cqw; height: 1px; background: var(--green); }
.letter__date {
  font-size: 2.6cqw;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.env-pocket { inset: 0; z-index: 3; pointer-events: none; }

.env-flap-shadow {
  left: 0;
  top: 0;
  width: 100%;
  height: 66%;
  z-index: 4;
  pointer-events: none;
  transition: opacity .35s ease .4s;
}

.env-flap {
  left: 0;
  top: 0;
  width: 100%;
  height: 60%;
  z-index: 5;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition:
    transform 1.05s cubic-bezier(.55, .08, .25, 1) .42s,
    z-index 0s linear .96s;
}
.flap-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flap-face--in { transform: rotateX(180deg); }

.env-grain,
.env-sheen {
  inset: 0;
  z-index: 6;
  pointer-events: none;
  transition: opacity .4s ease;
}
.env-grain {
  background-image: var(--noise);
  background-size: 180px;
  opacity: .45;
  mix-blend-mode: multiply;
}
.env-sheen {
  background: radial-gradient(circle at var(--mx, 32%) var(--my, 24%), rgba(255, 252, 240, 0.55), transparent 48%);
  mix-blend-mode: soft-light;
}

/* ---------- Selo de cera ---------- */

.seal {
  left: 50%;
  top: 58.5%;
  z-index: 7;
  width: 25%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.seal:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 6px; }
.seal::before {
  content: "";
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 225, 0.85);
  pointer-events: none;
  animation: ping 2.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(.82); opacity: .9; }
  100% { transform: scale(1.38); opacity: 0; }
}
.seal__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 5px 6px rgba(15, 35, 12, 0.42))
    drop-shadow(0 1px 1px rgba(15, 35, 12, 0.5));
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.seal:hover .seal__svg { transform: scale(1.045) rotate(-2deg); }
.seal__mono { font-family: var(--f-display); }

.seal-half {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition:
    transform 1.1s cubic-bezier(.45, 0, .7, .35) .27s,
    opacity .45s ease .9s;
}
.seal-whole { transition: opacity 0s linear .25s; }
.seal-crack {
  fill: none;
  stroke: #0E1F0B;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .24s ease-in, opacity .2s ease .34s;
}

/* ---------- Sequência de abertura ---------- */

.is-opening .intro__to { opacity: 0; transform: translateY(-14px); }
.is-opening .intro__hint { opacity: 0; transform: translateY(14px); }
.is-opening .intro__skip,
.is-opening .intro__mark { opacity: 0; pointer-events: none; }
.is-opening .env-float,
.is-opening .env-shadow { animation-play-state: paused; }
.is-opening .envelope { cursor: default; }

.is-opening .seal { pointer-events: none; }
.is-opening .seal::before { animation: none; opacity: 0; }
.is-opening .seal__svg { animation: press .3s ease both; }
@keyframes press {
  0% { transform: scale(1); }
  45% { transform: scale(.93); }
  100% { transform: scale(1.02); }
}
.is-opening .seal-whole { opacity: 0; }
.is-opening .seal-crack { stroke-dashoffset: 0; opacity: 0; }
.is-opening .seal-l { transform: translate(-36px, 215px) rotate(-44deg); opacity: 0; }
.is-opening .seal-r { transform: translate(42px, 235px) rotate(52deg); opacity: 0; }

.is-opening .env-grain,
.is-opening .env-sheen,
.is-opening .env-flap-shadow { opacity: 0; }
.is-opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.is-opening .letter { transform: translateY(-60%); }

/* O cartão cresce até virar a página */
.is-zooming .letter {
  z-index: 8;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) translateY(-60%) scale(var(--s, 4));
  background-color: var(--bg);
  box-shadow: none;
  transition: transform 1.25s cubic-bezier(.72, 0, .2, 1), box-shadow .5s ease, background-color .8s ease;
}
.is-zooming .letter__inner { opacity: 0; }
.is-zooming .env-back,
.is-zooming .env-pocket,
.is-zooming .env-flap {
  opacity: 0;
  translate: 0 22%;
  transition: opacity .7s ease .1s, translate 1.1s cubic-bezier(.6, 0, .8, .4);
}
.is-zooming .env-shadow { opacity: 0; }

/* Recomeçar sem animar de volta */
.intro.no-anim,
.intro.no-anim * { transition: none !important; }


/* =============================================================
   CAPA
   ============================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 80px 72px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
}
.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  line-height: 1.02;
  color: var(--green-ink);
}
.hero__line { display: block; overflow: hidden; padding: 0 .06em .04em; }
.hero__line > span { display: block; }
.hero__amp {
  display: block;
  font-size: .46em;
  line-height: 1.2;
  color: var(--green-mid);
}
.hero__full {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 12px;
  max-width: 40rem;
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero__full i { font-style: normal; font-family: var(--f-display); color: var(--green-mid); }

.datebox {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.datebox__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
}
.datebox__side {
  min-width: 9em;
  padding: 10px 0;
  border-block: 1.5px solid var(--green);
}
.datebox__day {
  font-family: var(--f-display);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .95;
  color: var(--green-ink);
}

.countdown { display: flex; justify-content: center; margin-top: 30px; }
.cd {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 4.6em;
  padding-inline: clamp(12px, 2.6vw, 24px);
}
.cd + .cd { border-left: 1px solid var(--line-strong); }
.cd__n {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  line-height: 1;
  color: var(--green-ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.cd__l {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__done { font-family: var(--f-display); font-size: 1.8rem; color: var(--green-ink); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* Raminhos (desenhados via JS) */
.branch {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  color: var(--green-mid);
}
.branch--tl {
  top: clamp(30px, 6vw, 60px);
  left: clamp(-60px, -3vw, -20px);
  width: clamp(200px, 30vw, 400px);
  transform: rotate(8deg);
}
.branch--br {
  right: clamp(-60px, -3vw, -20px);
  bottom: clamp(40px, 7vw, 80px);
  width: clamp(200px, 30vw, 400px);
  transform: rotate(188deg);
}
.branch .br-draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch .br-olive { fill: currentColor; fill-opacity: .2; }

/* ---------- Entrada da capa depois do convite ---------- */

.intro-active [data-rise] { opacity: 0; }
.site-ready [data-rise] { animation: rise 1.2s var(--ease-out) both; animation-delay: var(--d, 0s); }
.site-ready .hero__line > [data-rise] { animation-name: riseLine; }
.site-ready .hero__amp[data-rise] { animation-name: bloom; animation-duration: 1.4s; }

.intro-active .branch .br-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-active .branch .br-olive { opacity: 0; }
.site-ready .branch--tl .br-draw,
.site-ready .branch--br .br-draw {
  stroke-dasharray: 1;
  animation: draw 1.8s cubic-bezier(.4, 0, .2, 1) both;
  animation-delay: var(--bd, 0s);
}
.site-ready .branch--tl .br-olive,
.site-ready .branch--br .br-olive { animation: fadeIn 1s ease both; animation-delay: var(--bd, 0s); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes riseLine {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: none; }
}
@keyframes bloom {
  from { opacity: 0; transform: scale(.6); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* =============================================================
   FRASE
   ============================================================= */

.quote {
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--bg-2);
  text-align: center;
}
.quote__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-block: 0;
}
.quote__mark {
  height: .5em;
  font-family: var(--f-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--green-mid);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  max-width: 30ch;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.4;
  color: var(--green-ink);
  text-wrap: balance;
}
.quote figcaption { display: grid; gap: 4px; }
.quote__author {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.quote__source { font-size: 1rem; color: var(--muted); }


/* =============================================================
   LOCAIS
   ============================================================= */

.places__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.place {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 40px -34px rgba(38, 64, 31, 0.5);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.place:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 28px 50px -30px rgba(38, 64, 31, 0.45);
}
.place__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--green-deep);
}
.place__icon svg,
.place__go svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place__icon svg { width: 28px; height: 28px; }
.place__kind {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.place__name {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--green-ink);
}
.place__alias { color: var(--muted); }
.place__addr {
  margin-top: 10px;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.place__note {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}
.place__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.place__go svg { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.place:hover .place__go svg { transform: translateX(4px); }


/* =============================================================
   CONFIRMAÇÃO DE PRESENÇA
   ============================================================= */

.rsvp { background: var(--bg-2); }

.comps { display: grid; gap: 14px; }
.comps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comp {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  animation: rise .45s var(--ease-out) both;
}
.comp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comp__n {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.comp__rm {
  padding: 6px 4px;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.comp__rm:hover { color: var(--error); }
.comp .field > label { font-size: 0.9rem; }
.btn-add {
  justify-self: start;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px dashed var(--green-mid);
  border-radius: 999px;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-deep);
  cursor: pointer;
  transition: background-color .25s;
}
.btn-add:hover { background: var(--bg-2); }

.done { display: grid; justify-items: center; gap: 14px; text-align: center; animation: rise .6s var(--ease-out) both; }
.done__seal { width: 128px; height: 128px; filter: drop-shadow(0 6px 8px rgba(15, 35, 12, 0.3)); }
.done__wax {
  transform-box: fill-box;
  transform-origin: center;
  animation: sealPop .7s var(--ease-out) both;
}
@keyframes sealPop {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: none; }
}
.done__check {
  fill: none;
  stroke: #F1DDA6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .7s var(--ease-out) .45s forwards;
}
.done__title {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--green-ink);
  outline: none;
}
.done__text { max-width: 40ch; font-size: 1.1rem; color: var(--ink-soft); }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }


/* =============================================================
   RODAPÉ
   ============================================================= */

.footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(56px, 7vw, 84px) 20px calc(36px + env(safe-area-inset-bottom, 0px));
  background: #35592D;
  color: #FFFFFF;
  text-align: center;
}
.branch--foot {
  position: relative;
  width: 190px;
  margin-bottom: 8px;
  color: var(--green);
}
.footer__names {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.1;
}
.footer__names i { font-style: normal; color: var(--green); }
.footer__date {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.85);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__links button {
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.footer__links button:hover { color: #FFFFFF; }


/* =============================================================
   Revelação suave ao rolar (só onde o navegador suporta)
   ============================================================= */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: none; }
    }
  }
}


/* =============================================================
   Responsivo
   ============================================================= */

@media (max-width: 760px) {
  .places__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero__full { flex-direction: column; align-items: center; }
  .datebox { letter-spacing: .14em; }
  .datebox__side { min-width: 0; width: 7.4em; }
  .datebox__day { font-size: 3rem; }
  .cd { min-width: 0; padding-inline: 12px; }
  .hero__cta { flex-direction: column; align-self: stretch; }

  .branch--tl { top: 40px; width: 180px; left: -50px; }
  .branch--br { width: 180px; right: -50px; bottom: 40px; }

  .row { grid-template-columns: minmax(0, 1fr) 96px; }
  .seg { display: flex; justify-self: stretch; }
  .seg label { flex: 1; text-align: center; padding-inline: 12px; }

  .intro__mark { display: none; }
  .intro__skip { right: 50%; translate: 50% 0; }

}

@media (max-height: 560px) and (orientation: landscape) {
  .intro__to-name { font-size: 1.5rem; }
  .intro__stage { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .env-float, .env-shadow, .seal::before { animation: none !important; }
  .site-ready [data-rise] { animation-duration: .01s; animation-delay: 0s; }
  .site-ready .branch .br-draw { animation-duration: .01s !important; animation-delay: 0s !important; }
}
