/* Patinha de Natal — estilos
   Regras da casa: letra grande, botões enormes, um passo por vez. */

:root {
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #22302a;
  --muted: #56645c;
  --green: #1f6b45;
  --green-dark: #124a2f;
  --green-soft: #e4f1e8;
  --red: #c42b2b;
  --red-dark: #9f1f1f;
  --gold: #e9b44c;
  --gold-soft: #fdf1d6;
  --line: #eadfcb;
  --sky: #e6ecf2;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 40, 10, 0.1);
  --font-title: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.12; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green); }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 36px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 36px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ── botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 14px 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.25rem/1.2 var(--font-title); text-decoration: none; text-align: center;
  background: var(--red); color: #fff;
  box-shadow: 0 6px 0 var(--red-dark), 0 14px 24px rgba(196, 43, 43, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}
.btn:hover { background: #d23333; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }
.btn:focus-visible, .field input:focus-visible, .field select:focus-visible, .linklike:focus-visible, .art-card button:focus-visible {
  outline: 4px solid var(--gold); outline-offset: 3px;
}
.btn.block { display: flex; width: 100%; }
.btn.green { background: var(--green); box-shadow: 0 6px 0 var(--green-dark), 0 14px 24px rgba(31, 107, 69, 0.25); }
.btn.green:hover { background: #237a4f; }
.btn.green:active { box-shadow: 0 2px 0 var(--green-dark); }
.btn.ghost {
  background: var(--paper); color: var(--green-dark);
  box-shadow: inset 0 0 0 3px var(--green), 0 4px 0 rgba(18, 74, 47, 0.18);
}
.btn.ghost:hover { background: var(--green-soft); }
.btn.sm { min-height: 50px; padding: 10px 20px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.linklike {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font: 700 1.05rem var(--font-body); color: var(--green-dark); text-decoration: underline;
}

/* ── topo ── */
.topbar { padding: 14px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.45rem var(--font-title); color: var(--green-dark); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }

/* ── hero ── */
.hero { padding: 0 0 50px; overflow: hidden; }
.hero .wrap { display: grid; gap: 14px; align-items: center; }
.hero-copy .lead { font-size: 1.25rem; color: var(--muted); max-width: 30ch; }
.price-tag { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 20px; }
.price-tag strong { font: 800 2.6rem/1 var(--font-title); color: var(--green-dark); }
.price-tag span { color: var(--muted); font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-weight: 700; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; }

.hero-art { position: relative; min-height: 290px; display: grid; place-items: start center; order: -1; }
.hero-art .branch { position: absolute; top: -6px; left: 50%; width: 560px; max-width: none; transform: translateX(-50%); }
.hero-art .ornament { margin-top: 84px; width: 190px; }
.hero-art .ornament::after { height: 60px; }

/* enfeite: disco branco com alça, como a peça impressa */
.ornament { position: relative; width: min(300px, 74vw); aspect-ratio: 1; }
.ornament::before { /* alça */
  content: ""; position: absolute; left: 50%; top: -9%; width: 13%; height: 16%;
  transform: translateX(-50%); border-radius: 40% 40% 12% 12%;
  background: radial-gradient(circle at 50% 38%, var(--cream) 0 24%, #1d1d1d 26%);
}
.ornament::after { /* fio */
  content: ""; position: absolute; left: 50%; bottom: 103%; width: 3px; height: 90px;
  transform: translateX(-50%); background: var(--red);
}
.ornament img {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px #fff, 0 18px 34px rgba(40, 30, 10, 0.25);
}
.ornament.swing { transform-origin: 50% -34%; animation: swing 5s ease-in-out infinite; }
.ornament.sm { width: 150px; }
.ornament.sm::after { display: none; }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .ornament.swing { animation: none; } html { scroll-behavior: auto; } }

/* ── seções ── */
section { padding: 54px 0; }
.band { background: var(--paper); border-block: 2px solid var(--line); }
.band-green { background: var(--green-dark); color: #fff; }
.band-green h2 { color: #fff; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; text-align: center;
}
.steps li::before {
  content: counter(step); position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  font: 800 1.3rem/40px var(--font-title);
}
.steps .icon { font-size: 3.4rem; line-height: 1; display: block; margin: 6px 0 10px; }
.steps p { margin: 0; color: var(--muted); }

.examples { display: grid; gap: 20px; }
.example {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.example figure { margin: 0; text-align: center; font-weight: 800; color: var(--muted); font-size: 0.95rem; }
.example .photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 8px; }
.example .ornament { width: 100%; margin: 9% 0 8px; }
.example .arrow { font-size: 2rem; color: var(--red); font-weight: 900; }

.facts { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
.facts li { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 18px 14px; text-align: center; font-weight: 700; }
.facts .icon { font-size: 2.3rem; display: block; line-height: 1.2; }

/* ── cartões e formulários ── */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 800; margin-bottom: 6px; font-size: 1.08rem; }
.field > span small { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 60px; padding: 12px 16px;
  font: 600 1.2rem var(--font-body); color: var(--ink);
  background: #fff; border: 3px solid #cfc3ab; border-radius: 16px;
}
.field input:focus, .field select:focus { border-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-num { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.alert { border-radius: 16px; padding: 14px 16px; font-weight: 700; margin: 0 0 18px; }
.alert.error { background: #fde8e6; color: #8f1d1d; border: 2px solid #f2b8b3; }
.alert.info { background: var(--gold-soft); color: #6b4a06; border: 2px solid #f1d58f; }
.alert.ok { background: var(--green-soft); color: var(--green-dark); border: 2px solid #b8dcc5; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-weight: 700; font-size: 0.98rem; text-align: center; }

.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font: 700 1.2rem var(--font-title); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

footer { padding: 34px 0 110px; text-align: center; color: var(--muted); font-size: 0.95rem; }
footer a { color: var(--muted); }

.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 238, 0.96); border-top: 2px solid var(--line); backdrop-filter: blur(6px);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { min-height: 58px; }

/* ── janela (dialog) ── */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(480px, calc(100% - 28px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); color: var(--ink); }
dialog::backdrop { background: rgba(20, 30, 25, 0.6); }
dialog .inner { padding: 26px 22px; }
dialog .close { position: absolute; top: 8px; right: 10px; width: 48px; height: 48px; border: 0; background: none; font-size: 2rem; cursor: pointer; color: var(--muted); }

/* ── estúdio (criar.html) ── */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 6px 0 26px; }
.progress li { text-align: center; font-weight: 800; font-size: 0.95rem; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 10px; border-radius: 99px; background: var(--line); margin-bottom: 8px; }
.progress li.on { color: var(--green-dark); }
.progress li.on::before { background: var(--green); }

.paws { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 18px; flex-wrap: wrap; }
.paws .paw { font-size: 1.7rem; line-height: 1; }
.paws .paw.used { filter: grayscale(1); opacity: 0.3; }

.drop {
  display: grid; place-items: center; gap: 6px; width: 100%; min-height: 250px; padding: 24px;
  border: 4px dashed var(--green); border-radius: var(--radius); background: var(--green-soft);
  cursor: pointer; text-align: center; color: var(--green-dark); font: 800 1.45rem var(--font-title);
}
.drop:hover, .drop.over { background: #d5ebdc; }
.drop .icon { font-size: 4rem; line-height: 1; }
.drop small { font: 600 1rem var(--font-body); color: var(--muted); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.tips li { background: var(--cream); border: 2px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.tips .icon { display: block; font-size: 1.9rem; }

.preview { position: relative; width: min(340px, 100%); margin: 0 auto 18px; border-radius: var(--radius); overflow: hidden; background: #000; }
.preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.preview .working {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 20px;
  background: rgba(18, 74, 47, 0.82); color: #fff; font: 800 1.35rem var(--font-title);
}
.spinner { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; border: 7px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.9s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); overflow: hidden; width: 220px; margin: 0 auto; }
.bar i { display: block; height: 100%; width: 4%; background: var(--gold); border-radius: 99px; transition: width 1s linear; }

.arts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 20px; }
.art-card { background: var(--paper); border: 4px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; position: relative; }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #fff; }
.art-card button { margin-top: 10px; width: 100%; }
.art-card.chosen { border-color: var(--green); background: var(--green-soft); }
.art-card.chosen::after {
  content: "✓"; position: absolute; top: -14px; right: -10px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font: 900 1.6rem/44px var(--font-body); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.again { display: grid; gap: 12px; margin-top: 8px; }

.timeline { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; text-align: left; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--cream); border: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.timeline li .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: #fff; font-weight: 900; }
.timeline li.done { color: var(--green-dark); background: var(--green-soft); border-color: #b8dcc5; }
.timeline li.done .dot { background: var(--green); }
.summary { text-align: left; background: var(--cream); border: 2px dashed var(--line); border-radius: 16px; padding: 14px 16px; }

.testbar { background: var(--gold); color: #3d2a00; text-align: center; font-weight: 800; padding: 8px 12px; font-size: 0.95rem; }

/* ── telas maiores ── */
@media (min-width: 760px) {
  body { font-size: 20px; }
  .hero { padding: 30px 0 80px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-art { min-height: 500px; order: 0; }
  .hero-art .ornament { width: 340px; margin-top: 120px; }
  .hero-art .ornament::after { height: 90px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .examples { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { display: none; }
  footer { padding-bottom: 40px; }
  .card { padding: 34px 32px; }
}

.app > section { padding: 8px 0 0; }
