/* Lista de presentes — Alysson & Handressa
   Estilo inspirado no tema "Grace": fundo de papel off-white, flores em traço fino com
   ramos dourados nas laterais do topo, faixa dourada na contagem, títulos em Montserrat
   caixa-alta dourados, texto em Lato e "&" manuscrito (Dancing Script).
   Ilustrações e textura próprias (assets/img/floral.svg e textura.svg).
   Tema claro por padrão; escuro via [data-theme="dark"] (botão no topo). */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("../fonts/dancing-script-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #fdfcfa;
  --bg-alt: #f7f3ee;
  --surface: #ffffff;
  --text: #4a4644;            /* nomes e títulos escuros */
  --text-soft: #5f6470;       /* texto corrido */
  --muted: #747882;
  --line: #ebe6e0;
  --gold: #c9a06a;            /* traços e ícones */
  --gold-title: #b0824b;      /* títulos grandes (contraste ≥ 3:1) */
  --gold-band: #b8894f;       /* faixa da contagem */
  --gold-text: #8a5d2c;       /* texto dourado pequeno (AA) */
  --peach: #c9a06a;
  --peach-soft: #f6ece0;
  --accent: #8a5d2c;
  --btn: #9c6b38;             /* botões dourados com texto branco (AA) */
  --btn-hover: #875a2c;
  --on-btn: #ffffff;
  --ring: #b0824b;
  --ok: #2f6b3c;
  --warn-bg: #fbf3e6;
  --warn-line: #ecd6b3;
  --warn-text: #6a4513;
  --error: #b42318;
  --header-bg: rgb(253 252 250 / 0.94);
  --shadow: 0 1px 2px rgb(74 70 68 / 0.04), 0 0.625rem 1.75rem rgb(74 70 68 / 0.08);

  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius: 0.5rem;
  --gutter: 1rem;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #171513;
  --bg-alt: #1e1b18;
  --surface: #221f1c;
  --text: #f1ece6;
  --text-soft: #d6d0c9;
  --muted: #b1a99f;
  --line: #36312c;
  --gold: #d9b47f;
  --gold-title: #e0bd8a;
  --gold-band: #5e4529;
  --gold-text: #e6c492;
  --peach: #d9b47f;
  --peach-soft: #3a2d20;
  --accent: #e6c492;
  --btn: #d9b47f;
  --btn-hover: #e8c999;
  --on-btn: #1a1613;
  --ring: #e0bd8a;
  --ok: #7fcf8f;
  --warn-bg: #2a2218;
  --warn-line: #5a4628;
  --warn-text: #f1d6a8;
  --error: #ff8a80;
  --header-bg: rgb(23 21 19 / 0.94);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 0.625rem 1.75rem rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 2rem; --header-h: 4.5rem; } }
@media (min-width: 1200px) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(100%, 1.0417vw, 137.5%); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 0.5rem); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg) url("../img/textura.svg") repeat; color: var(--text-soft);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
:root[data-theme="dark"] body { background-image: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.1875rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 0.1875rem; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--s4); top: -5rem; z-index: 50; background: var(--btn); color: var(--on-btn); padding: var(--s2) var(--s4); border-radius: var(--radius); }
.skip-link:focus { top: var(--s3); }

.container { width: 100%; max-width: 67.5rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 47.5rem; }
.text-center { text-align: center; }

/* Ícones dourados (flor e raminho) */
.ico-flor { width: 3rem; height: 3rem; margin: 0 auto var(--s4); color: var(--gold); }
.ico-flor-lg { width: 3.5rem; height: 3.5rem; }
.ico-ramo { width: 4rem; height: 2.5rem; margin: 0 auto var(--s4); color: var(--gold); }

/* ---------- Topo ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(0.5rem); -webkit-backdrop-filter: blur(0.5rem);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.monogram { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.14em; color: var(--text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: baseline; }
.monogram .amp-mono { font-family: var(--script); font-size: 1.45em; letter-spacing: 0; color: var(--gold); margin: 0 0.18em; line-height: 1; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a {
  font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--text); padding: 0 var(--s3); min-height: 2.75rem; display: inline-flex; align-items: center;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--gold-text); }
.nav .nav-extra { display: none; }
@media (min-width: 640px) { .nav .nav-extra { display: inline-flex; } }
.theme-toggle {
  width: 2.75rem; height: 2.75rem; margin-left: var(--s1); display: grid; place-items: center; flex: none;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); background: var(--peach-soft); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Topo da página (estilo Grace) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(32.5rem, 78vh, 42.5rem); display: grid; place-items: center;
  padding: var(--s8) var(--gutter);
}
.hero-art {
  position: absolute; bottom: -4%; z-index: -1; pointer-events: none; user-select: none;
  height: 96%; width: auto; max-width: none;
}
.hero-art-l { left: max(-2.5rem, calc(50% - 40rem)); }
.hero-art-r { right: max(-2.5rem, calc(50% - 40rem)); transform: scaleX(-1); }
:root[data-theme="dark"] .hero-art { filter: invert(1) hue-rotate(180deg) brightness(1.1); opacity: 0.55; }
@media (max-width: 899px) { .hero-art { height: 82%; opacity: 0.55; } .hero-art-l { left: -7.5rem; } .hero-art-r { right: -7.5rem; } }
@media (max-width: 479px) { .hero-art { height: 64%; opacity: 0.55; } .hero-art-l { left: -6rem; } .hero-art-r { right: -6rem; } }
.hero-wave { position: absolute; left: 0; width: 100%; max-width: none; height: 4.375rem; z-index: -1; fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.55; }
.hero-wave path { vector-effect: non-scaling-stroke; }
.hero-wave-top { top: 1.125rem; }
.hero-wave-bottom { bottom: 1.625rem; }
.hero-inner { text-align: center; position: relative; }
.names { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; color: var(--text); font-size: clamp(2.5rem, 10vw, 4.25rem); }
.names .name { display: block; }
.names .amp { display: block; font-family: var(--script); text-transform: none; color: var(--gold); font-size: 0.6em; line-height: 1.1; margin: 0.12em 0 0.06em; }
.hero-rule { display: block; width: 10rem; height: 1px; background: var(--gold); margin: var(--s6) auto var(--s5); opacity: 0.8; }
.hero .date { font-family: var(--display); font-weight: 700; font-size: clamp(0.9375rem, 2.6vw, 1.125rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }

/* ---------- Contagem (faixa dourada) ---------- */
.countdown { background: var(--gold-band); color: #fff; text-align: center; padding: var(--s7) 0 var(--s8); }
.countdown-title { font-family: var(--display); color: #fff; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.375rem, 4.4vw, 2.25rem); margin-bottom: var(--s6); }
.countdown-grid { display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.cd-unit { background: var(--surface); border-radius: 0.375rem; min-width: 4.5rem; padding: var(--s3) var(--s2) var(--s2); display: grid; gap: 2px; box-shadow: 0 0.375rem 1.125rem -0.625rem rgb(0 0 0 / 0.35); }
@media (min-width: 560px) { .cd-unit { min-width: 5.5rem; padding: var(--s4) var(--s3) var(--s3); } .countdown-grid { gap: var(--s4); } }
.cd-num { font-family: var(--sans); font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1; color: var(--gold-title); font-variant-numeric: lining-nums tabular-nums; }
.cd-label { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.countdown-done { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.06em; }

/* ---------- Seções ---------- */
.section { padding: var(--s8) 0; }
.section-tight { padding-top: 0; }
@media (min-width: 900px) { .section { padding: var(--s9) 0; } .section-tight { padding-top: var(--s5); } }
.section-title { font-family: var(--display); color: var(--gold-title); text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.625rem, 5vw, 2.25rem); margin-bottom: var(--s6); }
.lead { max-width: 64ch; margin: 0 auto; color: var(--text-soft); font-size: 1rem; }

/* O casal: uma foto redonda centralizada */
.couple { margin: 0 auto var(--s6); width: 15rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 0.375rem var(--surface), 0 0 0 0.4375rem var(--line), var(--shadow); }
@media (min-width: 768px) { .couple { width: 18.75rem; } }
.couple img { width: 100%; height: 100%; object-fit: cover; }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.steps li { counter-increment: s; padding: 0 var(--s2); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; margin: 0 auto var(--s3);
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text);
  font-family: var(--display); font-size: 1rem;
}
.steps h3 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s2); }
.steps p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Lista de presentes ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin: 0 auto var(--s6); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 2.5rem; padding: 0 var(--s4); font: inherit; font-size: 0.875rem;
  background: var(--surface); color: var(--text-soft); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-text); }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.sort { display: inline-flex; align-items: center; gap: var(--s2); font-size: 0.875rem; color: var(--text); margin-left: auto; }
.sort select {
  font: inherit; font-size: 0.875rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 2.5rem; padding: 0 var(--s3);
}
@media (max-width: 639px) { .toolbar { flex-direction: column; align-items: stretch; } .sort { margin-left: 0; justify-content: space-between; } .filters { justify-content: center; } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 360px) { .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (max-width: 559px) { .card-body { padding: var(--s2) var(--s3) var(--s4); } .card-title { font-size: 0.875rem; } .price { font-size: 1rem; } .card-btn { min-width: 0; width: 100%; padding: 0 var(--s3); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.card {
  height: 100%; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--s3) var(--s4) var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; flex: 1; }
.card-title { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.4; color: var(--text); }
.card-desc { color: var(--muted); font-size: 0.875rem; }
.card-desc:empty { display: none; }
.price { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; color: var(--text); margin-top: auto; padding-top: var(--s2); }
.price-free { color: var(--gold-text); }
.card-btn { min-height: 2.75rem; min-width: 8.75rem; margin-top: var(--s2); }
.card-featured { border-color: var(--gold); }

/* Faixa de confiança */
.trust { display: flex; gap: var(--s4); align-items: flex-start; max-width: 47.5rem; margin: var(--s7) auto 0; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust svg { width: 1.625rem; height: 1.625rem; flex: none; color: var(--gold-text); margin-top: 2px; }
.trust p { color: var(--text-soft); font-size: 0.9375rem; }

.fallback { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s5); margin-top: var(--s5); }
.fallback ul { margin: var(--s3) 0 0; padding-left: var(--s5); }
.fallback-key { font-family: var(--mono); font-size: 0.9375rem; word-break: break-all; margin: var(--s2) 0; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.site-footer .monogram { margin-bottom: var(--s2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3.125rem; padding: 0 var(--s6); border: 1px solid var(--btn); border-radius: var(--radius);
  background: var(--btn); color: var(--on-btn); cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 3.5rem; font-size: 1rem; }
.btn-outline { background: transparent; color: var(--gold-text); border-color: var(--gold); }
.btn-outline:hover { background: var(--peach-soft); color: var(--gold-text); border-color: var(--btn); }
.btn-ok, .btn-ok:hover { background: var(--ok); border-color: var(--ok); color: #fff; }
:root[data-theme="dark"] .btn-ok, :root[data-theme="dark"] .btn-ok:hover { color: #10240f; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.link-btn {
  background: none; border: 0; padding: var(--s2); min-height: 2.75rem; cursor: pointer;
  font: inherit; font-size: 0.9375rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.1875rem;
}
.link-btn:hover { color: var(--text); }

/* ---------- Página do presente ---------- */
.page-top { padding-top: var(--s5); }
.back { display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--text-soft); }
.back:hover { color: var(--accent); }
.back svg { width: 1rem; height: 1rem; }

.gift-layout { display: grid; gap: var(--s5); padding: var(--s4) 0 var(--s8); align-items: start; }
@media (min-width: 900px) { .gift-layout { grid-template-columns: 0.9fr 1.1fr; gap: var(--s7); padding-top: var(--s5); } .gift-aside { position: sticky; top: calc(var(--header-h) + var(--s5)); } }

.gift-aside { display: grid; gap: var(--s4); }
.gift-aside .media { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; aspect-ratio: 1; overflow: hidden; }
.gift-aside .media img { width: 100%; height: 100%; object-fit: cover; }
.gift-aside h1 { font-size: clamp(1.375rem, 3.4vw, 1.875rem); }
.gift-aside .desc:empty { display: none; }
.gift-aside .desc { color: var(--text-soft); }
.gift-aside .meta { color: var(--muted); font-size: 0.9375rem; letter-spacing: 0.04em; font-variant-numeric: lining-nums; }
/* No celular a imagem do presente fica compacta, ao lado do título */
@media (max-width: 899px) {
  .gift-aside { grid-template-columns: 7rem 1fr; align-items: center; gap: var(--s2) var(--s4); }
  .gift-aside .media { grid-row: span 3; aspect-ratio: 1; }
  .gift-aside h1 { font-size: 1.1875rem; }
  .gift-aside .desc { font-size: 0.9375rem; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
@media (min-width: 768px) { .panel { padding: var(--s6) var(--s7); } }

.progress { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; align-items: center; gap: var(--s3); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.progress li { display: flex; align-items: center; gap: var(--s2); }
.progress li + li::before { content: ""; width: 1.75rem; height: 1px; background: var(--line); margin-right: var(--s1); }
.progress .dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 0.75rem; letter-spacing: 0; }
.progress [aria-current="step"] { color: var(--text); }
.progress [aria-current="step"] .dot { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

.step-title { font-size: clamp(1.375rem, 4vw, 1.75rem); color: var(--gold-title); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s2); }
.step-sub { color: var(--muted); margin-bottom: var(--s5); }

.field { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.field label { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.875rem; min-height: 3.25rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--peach) 45%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 0.875rem; color: var(--muted); }
.error { font-size: 0.9375rem; color: var(--error); display: flex; gap: 0.375rem; align-items: center; }
.error svg { width: 1rem; height: 1rem; }
.form-actions { display: grid; gap: var(--s2); justify-items: center; }

.amount-box { text-align: center; padding: var(--s5) var(--s4); background: var(--peach-soft); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s5); }
.amount-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.amount { font-family: var(--sans); font-weight: 700; color: var(--text); font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; margin: var(--s1) 0; }
.amount-free { font-size: clamp(1.75rem, 5.5vw, 2.25rem); }
.amount-to { color: var(--text-soft); font-size: 0.9375rem; }

.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); margin-bottom: var(--s5); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); color: var(--warn-text); font-size: 0.9375rem; }
.notice svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.1875rem; }
.notice strong { letter-spacing: 0.04em; }

.copy-status { min-height: 1.6em; text-align: center; color: var(--ok); margin: var(--s3) 0 var(--s4); font-size: 0.9375rem; }
.code-field label { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.code-field textarea {
  width: 100%; resize: none; min-height: 6rem; padding: var(--s3); border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; word-break: break-all;
  color: var(--text); background: var(--bg); border: 1px dashed var(--line);
}

.qr-block { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.qr-block summary { list-style: none; cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; gap: var(--s2); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.qr-block summary::-webkit-details-marker { display: none; }
.qr-block summary svg { width: 1.125rem; height: 1.125rem; }
.qr-block summary .chev { margin-left: auto; transition: transform var(--dur) var(--ease); }
.qr-block[open] summary .chev { transform: rotate(180deg); }
.qr-wrap { display: grid; justify-items: center; gap: var(--s3); padding-top: var(--s4); }
.qr { width: min(16.25rem, 100%); aspect-ratio: 1; padding: 0.875rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr svg { width: 100%; height: 100%; }
.qr-hint { font-size: 0.875rem; color: var(--muted); text-align: center; max-width: 34ch; }

.done-block { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s3); text-align: center; }
.done-block p { font-size: 0.9375rem; color: var(--muted); }
.small-note { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: var(--s3); }

.state-msg { text-align: center; padding: var(--s8) 0; }
.state-msg h1 { font-size: 2rem; margin-bottom: var(--s3); }
.state-msg p { color: var(--muted); margin-bottom: var(--s5); }

/* ---------- Obrigado ---------- */
.thanks { text-align: center; padding: var(--s8) 0 var(--s9); }
.thanks .ico-flor { width: 4rem; height: 4rem; margin: 0 auto var(--s5); }
.thanks h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); color: var(--gold-title); text-transform: uppercase; letter-spacing: 0.12em; }
.thanks p { max-width: 46ch; margin: var(--s4) auto 0; color: var(--text-soft); }
.thanks .actions { margin-top: var(--s6); }
.thanks .sign { margin-top: var(--s7); color: var(--muted); }
.thanks .sign span { display: block; color: var(--text); font-family: var(--display); font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: var(--s1); }

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

/* Presente livre: campo de valor na etapa de pagamento */
.amount-box-free { display: grid; gap: var(--s2); justify-items: center; }
.money-input {
  display: flex; align-items: center; gap: var(--s2); width: min(100%, 17.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--s4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.money-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--gold) 35%, transparent); }
.money-input span { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; color: var(--muted); }
.money-input input {
  flex: 1; min-width: 0; min-height: 3.75rem; border: 0; background: transparent; outline: none;
  font-family: var(--sans); font-weight: 700; font-size: 2rem; color: var(--text); text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.money-input:has([aria-invalid="true"]) { border-color: var(--error); }
.amount-box-free .hint { text-align: center; }

/* ---------- Efeitos de entrada ----------
   Só com JS (.js no <html>, posto pelo theme.js) e sem "reduzir movimento".
   Topo: os itens sobem em sequência, as flores entram pelas laterais e as linhas onduladas se desenham.
   Demais seções: .reveal sobe e aparece ao entrar na tela (assets/js/revelar.js).
   Imagens .fade surgem quando terminam de carregar. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-inner > * { animation: fx-sobe 0.9s var(--ease) both; }
  .js .hero-inner > :nth-child(1) { animation-delay: 0.10s; }
  .js .hero-inner > :nth-child(2) { animation-delay: 0.25s; }
  .js .hero-inner > :nth-child(3) { animation: fx-traco 0.9s var(--ease) 0.65s both; }
  .js .hero-inner > :nth-child(4) { animation-delay: 0.8s; }
  .js .names .amp { animation: fx-brilha 1.2s var(--ease) 0.5s both; }
  .js .hero-art-l { animation: fx-entra-esq 1.4s var(--ease) 0.15s both; }
  .js .hero-art-r { animation: fx-entra-dir 1.4s var(--ease) 0.15s both; }
  .js .hero-wave path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-desenha 2.2s ease-out 0.3s forwards; }

  .js .reveal { opacity: 0; transform: translateY(1.375rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--atraso, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .countdown .cd-unit { animation: fx-sobe 0.7s var(--ease) both; }
  .js .countdown .cd-unit:nth-child(2) { animation-delay: 0.08s; }
  .js .countdown .cd-unit:nth-child(3) { animation-delay: 0.16s; }
  .js .countdown .cd-unit:nth-child(4) { animation-delay: 0.24s; }
  .js .couple.reveal { transform: scale(0.92); }
  .js .couple.reveal.is-visible { transform: none; }

  .js img.fade { opacity: 0; filter: blur(0.375rem); transition: opacity 0.7s var(--ease), filter 0.7s var(--ease); }
  .js img.fade.loaded { opacity: 1; filter: none; }

  .js .gift-layout { animation: fx-sobe 0.6s var(--ease) both; }
  .js .thanks .container > * { animation: fx-sobe 0.8s var(--ease) both; }
  .js .thanks .container > :nth-child(2) { animation-delay: 0.12s; }
  .js .thanks .container > :nth-child(3) { animation-delay: 0.22s; }
  .js .thanks .container > :nth-child(4) { animation-delay: 0.30s; }
  .js .thanks .container > :nth-child(n+5) { animation-delay: 0.40s; }
}
@keyframes fx-sobe { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes fx-traco { from { opacity: 0; transform: scaleX(0); } to { opacity: 0.8; transform: scaleX(1); } }
@keyframes fx-brilha { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fx-entra-esq { from { opacity: 0; transform: translateX(-3.75rem); } }
@keyframes fx-entra-dir { from { opacity: 0; transform: scaleX(-1) translateX(-3.75rem); } to { transform: scaleX(-1); } }
@keyframes fx-desenha { to { stroke-dashoffset: 0; } }

/* ---------- Tela de pagamento enxuta (sem etapa de dados) ---------- */
@media (min-width: 900px) {
  .gift-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s6); }
  .gift-aside .media { max-width: 20rem; }
}
.panel { padding: var(--s5); }
@media (min-width: 768px) { .panel { padding: var(--s6); } }
.panel .step-title { font-size: clamp(1.25rem, 3.4vw, 1.5rem); margin-bottom: var(--s4); }
.panel .amount-box { padding: var(--s4); margin-bottom: var(--s4); }
.panel .amount { font-size: clamp(2rem, 7vw, 2.75rem); margin: 0; }
.panel .notice { padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: 0.875rem; line-height: 1.55; }
.panel .notice svg { margin-top: 0.125rem; }
.panel .copy-status { min-height: 1.4em; margin: var(--s2) 0; font-size: 0.875rem; }
.code-block, .panel .qr-block { border-top: 1px solid var(--line); }
.panel .qr-block { margin-top: 0; padding-top: 0; }
.code-block summary, .panel .qr-block summary {
  list-style: none; cursor: pointer; min-height: 3rem; display: flex; align-items: center; gap: var(--s2);
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft);
}
.code-block summary::-webkit-details-marker { display: none; }
.code-block summary .chev, .panel .qr-block summary .chev { width: 1.125rem; height: 1.125rem; margin-left: auto; transition: transform var(--dur) var(--ease); }
.code-block[open] summary .chev { transform: rotate(180deg); }
.code-block textarea {
  width: 100%; resize: none; min-height: 5rem; margin-bottom: var(--s3); padding: var(--s3); border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; word-break: break-all;
  color: var(--text); background: var(--bg); border: 1px dashed var(--line);
}
.panel .qr-wrap { padding: 0 0 var(--s4); gap: var(--s2); }
.panel .qr { width: min(13rem, 100%); padding: 0.625rem; }
.panel .qr-hint { font-size: 0.8125rem; }
.panel .done-block { margin-top: 0; padding-top: var(--s4); }

/* ---------- Abertura premium dos textos ----------
   Nomes: letra por letra, subindo de trás de um desfoque até ficar nítida.
   Data, títulos e contagem: as letras começam espaçadas e "se assentam" no espaçamento final.
   Curva suave (desacelera no fim), como em convites e marcas de luxo. */
:root { --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-inner > .names.split { animation: none; }
  .js .names .ch {
    display: inline-block; will-change: transform, opacity, filter;
    animation: fx-letra 1.3s var(--ease-premium) both;
    animation-delay: calc(0.35s + var(--i) * 60ms);
  }
  .js .names .amp { animation: fx-amp 1.4s var(--ease-premium) 0.95s both; }
  .js .hero-inner > .ico-flor { animation: fx-flor 1.4s var(--ease-premium) 0.05s both; }
  .js .hero-inner > .hero-rule { animation: fx-traco 1.2s var(--ease-premium) 1.45s both; }
  .js .hero-inner > .date { animation: fx-espaco-data 1.6s var(--ease-premium) 1.65s both; }

  .js .countdown-title { animation: fx-espaco 1.4s var(--ease-premium) 0.4s both; }

  .js .section-title.reveal {
    transform: none; filter: blur(6px); letter-spacing: 0.3em;
    transition: opacity 1.1s var(--ease-premium), filter 1.1s var(--ease-premium), letter-spacing 1.4s var(--ease-premium);
  }
  .js .section-title.reveal.is-visible { filter: none; letter-spacing: 0.12em; }
  .js .lead.reveal { filter: blur(3px); transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium), filter 1s var(--ease-premium); }
  .js .lead.reveal.is-visible { filter: none; }
  .js .reveal { transition-timing-function: var(--ease-premium); transition-duration: 1s; }
}
@keyframes fx-letra {
  0% { opacity: 0; transform: translateY(0.5em) scale(0.94); filter: blur(12px); }
  55% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes fx-amp {
  0% { opacity: 0; transform: scale(0.4) rotate(-14deg); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes fx-flor { 0% { opacity: 0; transform: rotate(-120deg) scale(0.5); } 100% { opacity: 1; transform: none; } }
@keyframes fx-espaco-data { 0% { opacity: 0; letter-spacing: 0.6em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: 0.18em; filter: none; } }
@keyframes fx-espaco { 0% { opacity: 0; letter-spacing: 0.4em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: 0.14em; filter: none; } }
