/*
VOICE: jovem, direto, confiante — como uma montra de pastelaria bem arrumada
IDEA: a conversa de WhatsApp que se escreve sozinha enquanto o dono trabalha
PICTURE: telemóvel compacto com a conversa animada + notificação "encomenda paga"
COLOUR/TYPE: vermelho Pediz dominante, rosa de apoio, tinta escura; Space Grotesk + Inter
LAYOUT: problema → demo → calculadora → como funciona → oferta → CTA
*/
:root {
  --red: #C81E3F;
  --red-dark: #A3162F;
  --pink: #FFD6DE;
  --pink-soft: #FFF3F5;
  --white: #FFFFFF;
  --ink: #2A0A12;
  --ink-soft: #6B4650;
  --line: #F4CAD3;
  --wa: #D9FDD3;
  --radius: 20px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, .logo, .big { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
a { color: var(--red); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
section { padding: clamp(64px, 8vw, 104px) 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 30px; color: var(--ink); text-decoration: none; letter-spacing: -0.04em; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: var(--red); color: var(--white) !important; text-decoration: none; font-weight: 600; padding: 12px 24px; border-radius: 999px; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 8px 20px -10px rgba(200,30,63,.7); }
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--red) !important; border: 2px solid var(--red); box-shadow: none; }
.btn.ghost:hover { background: var(--pink-soft); }
.btn.light { background: var(--white); color: var(--red) !important; }
.btn.light:hover { background: var(--pink); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, var(--pink) 0%, transparent 60%), var(--pink-soft); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 18px; }
.hero h1 .hl { color: var(--red); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 36ch; margin-bottom: 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 14px; color: var(--ink-soft); list-style: none; }
.trust li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 6px; }

/* Demo (phone) */
.demo { display: grid; justify-items: center; gap: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: var(--white); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.tabs button { font: 600 14px/1 "Inter", sans-serif; border: 0; background: transparent; color: var(--ink-soft); padding: 10px 14px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.tabs button[aria-selected="true"] { background: var(--red); color: var(--white); }
.phone-wrap { position: relative; }
.phone { width: 260px; background: var(--ink); border-radius: 34px; padding: 9px; box-shadow: 0 28px 50px -24px rgba(42,10,18,.55); }
.screen { background: #F5ECE4; border-radius: 26px; overflow: hidden; height: 430px; display: flex; flex-direction: column; }
.chat-top { background: var(--red); color: var(--white); padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: var(--red); display: grid; place-items: center; font: 700 13px "Space Grotesk", sans-serif; flex: none; }
.chat-top b { display: block; font-size: 14px; line-height: 1.2; }
.chat-top small { opacity: .85; font-size: 11px; }
.chat { padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.4; overflow-y: auto; flex: 1; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 7px 10px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: pop .25s ease-out; }
.msg.in { background: var(--white); align-self: flex-start; border-top-left-radius: 3px; }
.msg.out { background: var(--wa); align-self: flex-end; border-top-right-radius: 3px; }
.msg.paid { background: var(--white); border-left: 3px solid var(--red); font-weight: 600; }
.typing { align-self: flex-start; background: var(--white); border-radius: 10px; padding: 9px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #B9A3A8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.notif { position: absolute; left: -84px; top: 64px; background: var(--white); border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 30px -12px rgba(42,10,18,.35); font-size: 13px; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(10px); transition: .35s; pointer-events: none; }
.notif.show { opacity: 1; transform: none; }
.notif .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--red); color: var(--white); display: grid; place-items: center; font: 700 15px "Space Grotesk", sans-serif; flex: none; }
.notif b { display: block; font-size: 13px; }
.replay { background: none; border: 0; color: var(--ink-soft); font: 500 13px "Inter", sans-serif; cursor: pointer; text-decoration: underline; min-height: 32px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Section heads */
.head { max-width: 660px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.head p { color: var(--ink-soft); font-size: 18px; }
.kicker { display: inline-block; color: var(--red); font-weight: 700; font-size: 15px; margin-bottom: 10px; }

/* Pain */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pain .time { font: 700 28px "Space Grotesk", sans-serif; color: var(--red); margin-bottom: 8px; }
.pain h3 { font-size: 20px; margin-bottom: 6px; }
.pain p { color: var(--ink-soft); font-size: 16px; }

/* Calculator */
.calc-band { background: var(--ink); color: var(--white); }
.calc-band .head p { color: #E9C9D0; }
.calc-band .kicker { color: var(--pink); }
.calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; font-size: 16px; }
.field output { font: 700 18px "Space Grotesk", sans-serif; color: var(--pink); white-space: nowrap; }
input[type=range] { width: 100%; accent-color: var(--red); height: 28px; cursor: pointer; }
.result { background: var(--red); border-radius: 26px; padding: 34px; }
.result .big { font-size: clamp(48px, 7vw, 76px); line-height: 1; }
.result .label { font-size: 17px; margin: 6px 0 22px; opacity: .95; }
.result .row { border-top: 1px solid rgba(255,255,255,.3); padding-top: 18px; margin-top: 4px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.result .row b { font: 700 32px "Space Grotesk", sans-serif; white-space: nowrap; }
.result small { display: block; margin-top: 18px; opacity: .8; font-size: 13px; }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.col { border-radius: var(--radius); padding: 30px; }
.col.before { background: #F6F1F2; }
.col.after { background: var(--pink-soft); border: 2px solid var(--red); }
.col h3 { font-size: 22px; margin-bottom: 14px; }
.col ul { list-style: none; display: grid; gap: 10px; }
.col.before li::before { content: "✕"; color: #9A8A8E; font-weight: 700; margin-right: 10px; }
.col.after li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.step { background: var(--pink-soft); border-radius: var(--radius); padding: 28px; }
.step .n { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font: 700 20px "Space Grotesk", sans-serif; margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 28px; height: 28px; color: var(--red); margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Offer */
.offer { background: var(--red); color: var(--white); border-radius: 32px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 36px; align-items: center; }
.offer h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.offer p { font-size: 18px; opacity: .95; }
.seats { display: flex; gap: 12px; margin: 22px 0 6px; }
.seat { width: 54px; height: 54px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.7); display: grid; place-items: center; font: 700 20px "Space Grotesk", sans-serif; }
.offer ul { list-style: none; display: grid; gap: 10px; background: rgba(255,255,255,.12); border-radius: 20px; padding: 24px; }
.offer li::before { content: "✓"; font-weight: 700; margin-right: 10px; }

/* Site band */
.site-band { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.mini-site { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(42,10,18,.35); background: var(--white); }
.mini-site .bar { background: #F3E7EA; padding: 8px 12px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.mini-site .bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2B8C1; }
.mini-site .bar span { margin-left: 8px; background: var(--white); border-radius: 6px; padding: 2px 10px; }
.mini-site .body { padding: 24px; display: grid; gap: 12px; }
.mini-site .mh { font: 700 22px "Space Grotesk", sans-serif; }
.mini-site .ln { height: 10px; border-radius: 5px; background: #F3E7EA; }
.mini-site .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-site .cards div { height: 60px; border-radius: 10px; background: var(--pink); }
.mini-site .wbtn { justify-self: start; background: #25D366; color: #fff; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.site-band ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 26px; }
.site-band li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 10px; }

/* About */
.about { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 28px; align-items: center; background: var(--pink-soft); border-radius: 28px; padding: 40px; }
.about .mono { width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font: 700 40px "Space Grotesk", sans-serif; }
.about h2 { font-size: 30px; margin-bottom: 8px; }
.about p { color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 32px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Final CTA */
.cta { text-align: center; background: var(--ink); color: var(--white); border-radius: 32px; padding: clamp(44px, 6vw, 72px) 24px; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.cta p { opacity: .85; margin: 0 auto 28px; font-size: 18px; max-width: 46ch; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Footer */
footer { border-top: 1px solid var(--pink); padding: 32px 0 40px; margin-top: 40px; font-size: 15px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--red); }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal { padding: 64px 0 40px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .box { background: var(--pink-soft); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 10px; margin: 18px 0; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.center-page h1 { font-size: 72px; color: var(--red); }
.center-page p { margin: 10px 0 26px; color: var(--ink-soft); font-size: 18px; }

@media (max-width: 900px) {
  .hero .wrap, .calc, .offer, .site-band { grid-template-columns: minmax(0,1fr); }
  .pains, .steps, .features, .compare { grid-template-columns: minmax(0,1fr); }
  .nav a:not(.btn) { display: none; }
  .notif { display: none; }
  .about { grid-template-columns: minmax(0,1fr); text-align: center; justify-items: center; padding: 30px 22px; }
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; justify-content: center; }
  footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
