/* ============================================================
   Isabel & Lucas — Redesign editorial romântico moderno
   Paleta: marfim · vinho-rosé · dourado · tinta quente
   ============================================================ */

:root {
  /* superfícies / neutros */
  --bg:        #F7F1E9;   /* marfim quente */
  --bg-2:      #FBF6EF;
  --surface:   #FFFFFF;
  --surface-2: #FCF8F2;
  --ink:       #2A2320;   /* tinta quente quase preta */
  --muted:     #857A6E;
  --line:      #E9DECB;
  --line-soft: #F1E8DA;

  /* marca */
  --brand:      #8E3B4C;  /* vinho-rosé profundo */
  --brand-soft: #C98B96;  /* rosé empoeirado */
  --blush:      #F3E1E2;
  --gold:       #A9802F;
  --gold-soft:  #CBA85F;

  /* compat. com admin.html antigo */
  --bg1: var(--brand); --bg2: var(--brand-soft); --bg3: var(--blush);
  --card: var(--surface);

  --shadow-sm: 0 1px 2px rgba(42,35,32,.04), 0 2px 8px rgba(42,35,32,.05);
  --shadow-md: 0 6px 18px rgba(74,46,40,.07), 0 16px 40px rgba(74,46,40,.07);
  --shadow-lg: 0 24px 60px rgba(74,46,40,.14);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --maxw: 1040px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; min-width: 0; }
img, iframe, svg, video { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 70px;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(201,139,150,.16), transparent 60%),
    radial-gradient(55rem 38rem at -10% 5%, rgba(203,168,95,.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* fina textura de grão sobre o fundo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: radial-gradient(rgba(42,35,32,.9) .5px, transparent .5px);
  background-size: 4px 4px;
}

h1, h2, h3 { margin: 0; font-family: "Cormorant Garamond", serif; line-height: 1.1; font-weight: 600; }

/* etiqueta dourada (overline) */
.overline {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: Manrope, sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.overline::before, .overline::after {
  content: ""; width: 22px; height: 1px; background: var(--gold-soft); opacity: .7;
}
.overline.solo::after { display: none; }

/* ───────────── Topbar ───────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(247,241,233,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .9rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar span {
  color: var(--ink); font-weight: 700; letter-spacing: .04em;
  font-family: "Cormorant Garamond", serif; font-size: 1.35rem;
  display: inline-flex; gap: .5rem; align-items: center;
}
.topbar span i { color: var(--brand); font-size: 1rem; }
.topbar nav { display: flex; gap: .1rem; }
.topbar nav a {
  color: var(--muted); text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: .4rem .7rem; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.topbar nav a:hover { color: var(--brand); background: var(--blush); }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; min-height: 92vh; min-height: 92dvh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; padding: 5rem 1.2rem 3rem;
}
.texture {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 50% 120%, rgba(142,59,76,.06), transparent 60%);
}
.orb { position: absolute; border-radius: 999px; filter: blur(70px); opacity: .5; }
.orb-a { width: 360px; height: 360px; background: var(--blush); left: -120px; top: -60px; }
.orb-b { width: 380px; height: 380px; background: rgba(203,168,95,.28); right: -120px; bottom: -120px; }

.hero-frame {
  position: relative; z-index: 2;
  width: min(720px, 94vw);
  padding: 3.4rem 2.2rem;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
/* moldura dourada interna fina */
.hero-frame::after {
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--r-lg) - 8px);
  border: 1px solid rgba(169,128,47,.35); pointer-events: none;
}

/* monograma */
.monogram {
  width: 74px; height: 74px; margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--gold-soft); border-radius: 50%;
  color: var(--brand); font-family: "Great Vibes", cursive; font-size: 2rem;
  background: rgba(255,255,255,.6);
}

.kicker { margin: 0 0 1.1rem; justify-content: center; }

.hero h1 {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 6.4rem);
  line-height: 1; color: var(--brand);
  margin: 0;
}
.hero h1 span { color: var(--gold); font-size: .62em; vertical-align: .08em; padding: 0 .12em; }

.hero h1 + .date { margin-top: 1.4rem; }
.hero h1::after {
  content: ""; display: block; width: clamp(80px, 16vw, 130px); height: 1px;
  margin: 1rem auto 0; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 600;
  color: var(--ink); margin: .2rem 0;
}
.place { margin: .15rem 0; color: var(--muted); font-size: 1rem; }
.small { color: var(--muted); font-size: .9rem; margin-top: .6rem; letter-spacing: .01em; }

.hero-cta {
  margin-top: 1.8rem;
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; cursor: pointer;
  color: #fff; font-weight: 700; font-size: .96rem; letter-spacing: .03em;
  font-family: Manrope, sans-serif;
  border: none; border-radius: 999px;
  padding: .95rem 1.9rem;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(142,59,76,.28);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(142,59,76,.34); background: #7d3343; }
.hero-cta:active { transform: translateY(0) scale(.98); }

/* ───────────── Main / Cards ───────────── */
main {
  width: min(var(--maxw), 92vw);
  margin: 4rem auto 3rem;
  display: grid; gap: 2.6rem;
  position: relative; z-index: 3;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.4rem;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-md); } }

h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.2rem;
}
h2 i { color: var(--gold); font-size: .62em; }

/* ───────────── Acessos rápidos ───────────── */
.tree-links { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .4rem; }
.tree-link {
  min-height: 58px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.1rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.tree-link i { color: var(--brand); font-size: 1.15rem; }
.tree-link:hover { transform: translateY(-2px); border-color: var(--brand-soft); box-shadow: var(--shadow-md); color: var(--brand); }

/* ───────────── Placeholders de foto (arco moderno) ───────────── */
.photo-ph {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--blush));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center; color: var(--muted);
  padding: 1.6rem 1.2rem;
  border-radius: 200px 200px var(--r-md) var(--r-md);
  overflow: hidden;
}
.photo-ph::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(169,128,47,.3);
  border-radius: 190px 190px 10px 10px; pointer-events: none;
}
.photo-ph i { font-size: 2rem; color: var(--gold); }
.photo-ph span { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.photo-ph small { font-size: .78rem; }
.hero-ph { width: min(360px, 80%); min-height: 260px; margin: 2rem auto 0; }
.mensagem-ph { width: 230px; min-height: 300px; flex-shrink: 0; }
@media (max-width: 640px) { .mensagem-ph { width: 100%; min-height: 240px; } }

/* ───────────── Mensagem ───────────── */
.mensagem-inner { display: flex; align-items: center; gap: 2rem; margin-top: .5rem; }
.mensagem-texto { flex: 1; }
.mensagem-quote {
  margin: 0 0 .8rem; border: none; padding: 0;
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.6; color: var(--ink);
}
.mensagem-assinatura { color: var(--brand); margin: 0; font-family: "Great Vibes", cursive; font-size: 1.9rem; }
.mensagem-foto { width: 230px; height: 300px; object-fit: cover; border-radius: 200px 200px var(--r-md) var(--r-md); flex-shrink: 0; border: 1px solid var(--line); }

/* ───────────── "Em breve" ───────────── */
.embreve-box {
  margin-top: .4rem; text-align: center;
  border: 1px dashed var(--gold-soft); border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 2.2rem 1.4rem;
}
.embreve-box i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.embreve-box strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--ink); margin-bottom: .35rem; font-weight: 600; }
.embreve-box p { margin: 0 auto; color: var(--muted); max-width: 46ch; }

/* ───────────── Stories ───────────── */
.stories-sub, .recados-sub, .crono-sub { margin: 0 0 1.4rem; color: var(--muted); }
.stories-row { display: flex; gap: 1.2rem; overflow-x: auto; padding: .4rem .1rem 1rem; scrollbar-width: none; }
.stories-row::-webkit-scrollbar { display: none; }
.story-ring {
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-family: Manrope, sans-serif;
}
.story-ring-img {
  width: 78px; height: 78px; border-radius: 50%; padding: 3px; display: block;
  background: linear-gradient(135deg, var(--brand), var(--gold-soft));
  transition: transform .2s var(--ease);
}
.story-ring:hover .story-ring-img { transform: scale(1.06); }
.story-ring-grad {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: "Great Vibes", cursive; font-size: 1.5rem;
  border: 3px solid var(--surface);
}
.story-ring small { font-size: .76rem; color: var(--muted); font-weight: 600; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story-viewer { display: none; position: fixed; inset: 0; z-index: 9500; background: rgba(24,16,18,.94); align-items: center; justify-content: center; }
.story-viewer.open { display: flex; }
.story-content { position: relative; width: min(420px, 100vw); height: min(92vh, 760px); border-radius: 16px; overflow: hidden; background: #1a1113; }
.story-grad { position: absolute; inset: 0; display: block; }
.story-frase {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 3rem 1.6rem 2.4rem; color: #fff; pointer-events: none; white-space: pre-line;
  font-family: "Cormorant Garamond", serif; font-size: 1.6rem; line-height: 1.45; font-style: italic;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.story-bars { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 4px; padding: .6rem; z-index: 5; }
.story-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-close { position: absolute; top: .8rem; right: .75rem; z-index: 6; background: rgba(0,0,0,.32); border: none; color: #fff; font-size: 1.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.story-nav { position: absolute; top: 0; bottom: 0; width: 35%; background: none; border: none; cursor: pointer; z-index: 4; }
.story-nav-prev { left: 0; } .story-nav-next { right: 0; }

/* ───────────── Galeria placeholders ───────────── */
.galeria-ph-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-top: .4rem;
}
.galeria-ph-grid .photo-ph { min-height: 200px; }

/* ───────────── Cronograma ───────────── */
.crono-list { display: grid; gap: .9rem; }
.crono-item {
  display: flex; align-items: center; gap: 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 1.05rem 1.2rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.crono-item:hover { transform: translateX(4px); border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.crono-time {
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.35rem;
  color: var(--brand); min-width: 70px; flex-shrink: 0; text-align: center;
  font-variant-numeric: tabular-nums;
}
.crono-item > i { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; }
.crono-body h3 { font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); }
.crono-body p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }

/* ───────────── Timeline (horizontal / lateral) ───────────── */
.timeline-list {
  display: flex; gap: 1rem; overflow-x: auto;
  padding: 2.4rem .2rem .6rem; margin: 0;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.timeline-list::-webkit-scrollbar { height: 6px; }
.timeline-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.timeline-item {
  position: relative; flex: 0 0 auto; width: 210px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 1.1rem 1.2rem;
}
/* fio horizontal que conecta os marcos */
.timeline-item::after {
  content: ""; position: absolute; top: -1.25rem; left: -.5rem; right: -.5rem;
  height: 1px; background: var(--gold-soft); z-index: 0;
}
/* ponto sobre o fio */
.timeline-item::before {
  content: ""; position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%);
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold); z-index: 1;
}
.timeline-item h3 { font-size: 1.4rem; }
.timeline-item p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.year { margin: 0 0 .2rem; color: var(--brand); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-family: Manrope, sans-serif; }
.finale { border-color: var(--brand-soft); background: linear-gradient(160deg, var(--blush), var(--surface-2)); }
.finale::before { background: var(--brand); border-color: var(--brand); }
.finale h3 { color: var(--brand); }
@media (max-width: 640px) { .timeline-item { width: 180px; } }
.blink { animation: glow 2.4s var(--ease) infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 rgba(142,59,76,0);} 50% { box-shadow: 0 0 22px rgba(142,59,76,.18);} }

/* ───────────── Presentes (abas) ───────────── */
.presentes-intro { color: var(--muted); margin: 0 0 1.6rem; max-width: 60ch; }
.pres-tabs { display: flex; gap: .6rem; margin-bottom: 1.6rem; }
.pres-tab {
  flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-family: Manrope, sans-serif; font-weight: 700; font-size: .9rem;
  border-radius: var(--r-md); padding: .85rem .6rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  transition: all .2s var(--ease);
}
.pres-tab i { font-size: 1rem; }
.pres-tab.is-active { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 8px 20px rgba(142,59,76,.22); }
.pres-panel.hidden { display: none; }
.pix-intro { margin: 0 0 .8rem; color: var(--muted); }

/* Wizard */
.wiz-step.hidden { display: none; }
.wiz-q { font-family: "Cormorant Garamond", serif; font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 0 1.2rem; color: var(--ink); }
.wiz-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.wiz-cat {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  cursor: pointer; padding: 1.2rem .6rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-family: Manrope, sans-serif; font-weight: 600; font-size: .82rem; color: var(--ink); line-height: 1.3;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.wiz-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.wiz-cat i { font-size: 1.7rem; color: var(--gold); }
.wiz-back { background: none; border: none; cursor: pointer; color: var(--brand); font-weight: 600; font-size: .88rem; margin-bottom: 1rem; padding: 0; font-family: Manrope, sans-serif; }
.wiz-back:hover { text-decoration: underline; }
.wiz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.wiz-list li button {
  width: 100%; text-align: left; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  cursor: pointer; font-family: Manrope, sans-serif; font-size: .93rem; color: var(--ink);
  display: flex; align-items: center; gap: .65rem;
  transition: background .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.wiz-list li button::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand-soft); flex-shrink: 0; }
.wiz-list li button:hover { background: var(--blush); border-color: var(--brand-soft); transform: translateX(3px); }
.wiz-item-taken { opacity: .45; cursor: not-allowed !important; text-decoration: line-through; }
.wiz-item-taken::before { background: var(--muted) !important; }
.wiz-badge {
  background: var(--brand); color: #fff; font-weight: 600; border-radius: var(--r-sm);
  padding: .7rem 1rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem;
}
.wiz-input, .wiz-select {
  width: 100%; margin-bottom: .7rem; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-family: Manrope, sans-serif; font-size: .95rem; color: var(--ink);
  display: block; resize: vertical; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wiz-input::placeholder { color: #b3a99b; }
.wiz-input:focus, .wiz-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,59,76,.12); }
.wiz-send {
  width: 100%; padding: .95rem 1rem; border: none; border-radius: var(--r-md);
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: Manrope, sans-serif; box-shadow: 0 10px 24px rgba(142,59,76,.26);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.wiz-send:hover { transform: translateY(-2px); background: #7d3343; box-shadow: 0 16px 30px rgba(142,59,76,.32); }
.wiz-send:active { transform: translateY(0) scale(.98); }
.wiz-hint { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; text-align: center; }
.wiz-ok { text-align: center; padding: 1.2rem 0 .5rem; }
.wiz-ok > i { font-size: 3rem; color: var(--brand); display: block; margin-bottom: .8rem; }
.wiz-ok > p { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; line-height: 1.55; margin: 0 0 1.2rem; }
.wiz-choice {
  min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink); font-family: Manrope, sans-serif;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1rem;
}
.wiz-choice--ghost { background: transparent; color: var(--muted); }

/* ───────────── Pix ───────────── */
.pix-widget {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem;
  background: var(--surface-2);
}
.pix-suggestions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; }
.pix-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: .5rem .95rem; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.pix-chip:hover { border-color: var(--brand-soft); }
.pix-chip.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.pix-widget label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: .9rem; }
.pix-widget input, .pix-widget textarea {
  width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); padding: .8rem .9rem; font: inherit; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pix-widget input:focus, .pix-widget textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,59,76,.12); }
.pix-widget input { min-height: 46px; margin-bottom: .8rem; }
.pix-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .7rem; }
.pix-generate, .pix-copy { margin: 0; width: 100%; justify-content: center; min-height: 48px; }
.pix-copy {
  text-decoration: none; color: var(--brand); font-weight: 700;
  border: 1px solid var(--brand-soft); border-radius: 999px; background: var(--surface);
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  transition: background .2s var(--ease);
}
.pix-copy:hover { background: var(--blush); }
.pix-widget textarea { min-height: 110px; resize: vertical; word-break: break-all; font-size: .82rem; }
.pix-feedback { display: block; min-height: 1rem; margin-top: .4rem; font-weight: 600; color: var(--brand); }
.pix-warning {
  margin: .9rem 0 0; border: 1px solid var(--gold-soft);
  background: rgba(203,168,95,.12); border-radius: var(--r-sm);
  padding: .8rem .9rem; color: var(--ink); font-weight: 600; line-height: 1.5;
  overflow-wrap: anywhere; font-size: .9rem;
}
.pix-warning i { color: var(--gold); margin-right: .4rem; }

/* ───────────── Recados ───────────── */
.recado-form { margin-bottom: 1.4rem; }
.recado-form.hidden { display: none; }
.recados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; margin-top: .4rem; }
.recado {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 1.1rem 1.2rem; position: relative; overflow: hidden;
}
.recado::before { content: "\201C"; position: absolute; top: -.1rem; right: .7rem; font-family: "Cormorant Garamond", serif; font-size: 3rem; color: var(--blush); line-height: 1; }
.recado-oculto { display: none; }
.recado-msg { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-style: italic; line-height: 1.5; color: var(--ink); margin: 0 0 .6rem; position: relative; z-index: 1; }
.recado-nome { display: flex; align-items: center; gap: .4rem; color: var(--brand); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.recado-nome i { font-size: .85rem; color: var(--gold); }
.recados-vazio { color: var(--muted); text-align: center; padding: .6rem 0; font-style: italic; }
.recados-vermais {
  display: block; margin: 1.2rem auto 0; border: 1px solid var(--brand-soft);
  background: var(--surface); color: var(--brand); font-family: Manrope, sans-serif;
  font-weight: 700; font-size: .88rem; border-radius: 999px; padding: .65rem 1.6rem; cursor: pointer;
  transition: background .2s var(--ease);
}
.recados-vermais:hover { background: var(--blush); }
.recados-vermais[hidden] { display: none; }

/* ───────────── Info ───────────── */
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .4rem; }
.info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); padding: 1.1rem;
}
.info-item > i { font-size: 1.4rem; color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.info-item h3 { font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.info-item a { color: var(--brand); font-weight: 700; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

/* ───────────── Modal RSVP ───────────── */
.rsvp-overlay {
  display: none; position: fixed; inset: 0; z-index: 9600;
  background: rgba(24,16,18,.55); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 1.2rem;
}
.rsvp-overlay.open { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.rsvp-box {
  position: relative; width: min(440px, 100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.rsvp-box h3 { font-size: 1.9rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.rsvp-box h3 i { color: var(--gold); font-size: .7em; }
.rsvp-sub { color: var(--muted); margin: 0 0 1.4rem; font-size: .94rem; line-height: 1.55; }
.rsvp-label { display: block; font-weight: 700; color: var(--ink); margin: .2rem 0 .4rem; font-size: .88rem; }
.rsvp-close {
  position: absolute; top: .9rem; right: 1rem; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink);
  width: 2.1rem; height: 2.1rem; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: .85rem; transition: background .2s var(--ease);
}
.rsvp-close:hover { background: var(--blush); }
.rsvp-feedback { display: block; margin-top: .6rem; color: var(--brand); font-weight: 600; text-align: center; min-height: 1rem; }

/* ───────────── Bottombar (mobile) ───────────── */
.bottombar { display: none; }

/* ───────────── Reveal on scroll ───────────── */
.card { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s var(--ease); }
.card.visible { opacity: 1; transform: translateY(0); }

/* ───────────── Foco acessível ───────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* ───────────── Responsivo ───────────── */
@media (max-width: 860px) {
  .info-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tree-links { grid-template-columns: 1fr; }
  .mensagem-inner { flex-direction: column; }
  .mensagem-ph, .mensagem-foto { width: 100%; }
}
@media (max-width: 640px) {
  body { padding-top: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  main { width: 92vw; margin-top: 2rem; gap: 1.6rem; }
  .card { padding: 1.5rem 1.3rem; border-radius: var(--r-md); }
  .hero { min-height: auto; padding: 3rem 1rem 2.4rem; }
  .hero-frame { padding: 2.2rem 1.3rem; }
  .hero-frame::after { inset: 8px; }
  .wiz-cats { grid-template-columns: repeat(2, 1fr); }
  h2 { font-size: 1.7rem; }

  .bottombar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    justify-content: space-around;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(74,46,40,.08);
    padding: .45rem .2rem calc(.45rem + env(safe-area-inset-bottom));
    transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  }
  .bottombar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
    text-decoration: none; color: var(--muted); font-size: .62rem; font-weight: 700;
    padding: .35rem 0; border-radius: 10px; transition: color .2s var(--ease);
  }
  .bottombar a i { font-size: 1.4rem; line-height: 1; }
  .bottombar a:active, .bottombar a:hover { color: var(--brand); }

  .story-content { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .pix-actions { grid-template-columns: 1fr; }
  .pix-suggestions { justify-content: space-between; }
  .pix-chip { flex: 1; text-align: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(2.8rem, 16vw, 3.6rem); }
  .story-ring-img { width: 66px; height: 66px; }
}

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