/* megan.dog. Os valores vêm do DESIGN.md (mundo "cozy vivo"); gerado por scripts/site/build.js. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/nunito-500.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }

:root {
  --bg: #FFF6E9; --surface: #F8EBDA; --card: #FFFDF8; --text: #2A2320; --muted: #74655A; --border: #EBDCC8;
  --ink: #B3420F; --primary: #ED6426; --on-primary: #FFFDF8; --today: #FFF0DC; --success: #3C9B5B;
  --floor: #2E9384; --paw: rgb(255 253 248 / .22); --joint: rgb(255 253 248 / .10);
  --warm: #F5B94B; --on-warm: #2A2320;
  --on-pumpkin: #FFFDF8; --band-btn: #2A2320; --on-band-btn: #FFF6E9;
  --bezel: #1E1A17; --shadow: 120 70 30; --select: #FCE6BF; --pending: #FFE3A3;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241F1B; --surface: #2E2823; --card: #372F29; --text: #F7EFE5; --muted: #BDAEA0; --border: #463C34;
    --ink: #FF8A52; --primary: #FF8A52; --on-primary: #241F1B; --today: #3D332A; --success: #7ED28F;
    --floor: #5FC9B6; --paw: rgb(36 31 27 / .16); --joint: rgb(36 31 27 / .10);
    --warm: #FFC969; --on-warm: #241F1B;
    --on-pumpkin: #241F1B; --band-btn: #241F1B; --on-band-btn: #F7EFE5;
    --bezel: #0F0D0B; --shadow: 0 0 0; --select: #3F3322; --pending: #6B4E12;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scrollbar-color: var(--muted) var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 1.0625rem/1.6 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
::selection { background: var(--select); color: var(--text); }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.pendente { background: var(--pending); border-radius: 4px; padding: 0 0.2em; }

/* Páginas de texto: privacidade, termos, suporte, exclusão, 404 */
.doc .wrap { max-width: calc(44rem + 2 * max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right))); margin: 0 auto; padding: 0 max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right)); }
.doc .top { border-bottom: 1px solid var(--border); }
.doc .top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 22%; }
.doc nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.doc nav a { text-decoration: none; font-weight: 800; padding: 0.5rem 0; }
.doc nav a[aria-current="page"] { color: var(--text); }
.doc main { padding-top: 2rem; padding-bottom: 3rem; }
.doc h1 { font-weight: 800; font-size: 2rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
.doc h2 { font-weight: 800; font-size: 1.25rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { margin: 0 0 0.9rem; }
.doc ol { padding-left: 1.4rem; }
.doc .lead { font-size: 1.2rem; }
.doc .muted, .doc .updated { color: var(--muted); }
.doc footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; padding-top: 1.25rem; padding-bottom: 2rem; }

/* Página do app */
.lp { overflow-x: clip; }
.lp .container, .stage { --inset: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right)); width: 100%; max-width: calc(72rem + 2 * var(--inset)); margin-inline: auto; padding-inline: var(--inset); }
.lp h2 { font-weight: 800; font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 0.75rem; text-wrap: balance; }

.lp-top { padding-top: env(safe-area-inset-top); }
.lp-top .container { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.125rem; border-radius: 12px; font: 800 1.1875rem/1.2 'Nunito', system-ui, sans-serif; text-decoration: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: transform 140ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 12px -6px rgb(var(--shadow) / .45); }
.btn-follow { gap: 0.6rem; min-height: 3.25rem; padding: 0 1.4rem; }
.btn-follow svg { width: 1.5rem; }
.follow-alt { font-weight: 800; font-size: 1.1875rem; }
.only-ios, .only-android { display: none; }
html[data-platform="ios"] .only-ios, html[data-platform="android"] .only-android { display: block; }
html[data-platform="ios"] .not-ios, html[data-platform="android"] .not-android,
html[data-platform="ios"] .only-other, html[data-platform="android"] .only-other { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(0.96); }
  .badge:hover { transform: translateY(-1px); }
  .qa summary:hover { color: var(--ink); }
  .social-link:hover > span { text-decoration: underline; text-underline-offset: 0.18em; }
  .lp-foot nav a:hover, .follow-alt:hover { text-decoration: underline; }
}

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.badge { display: inline-block; border-radius: 10px; touch-action: manipulation; transition: transform 140ms var(--ease-out); }
.badge:active { transform: scale(0.97); }
.badge img { height: 3.25rem; width: auto; }
.get-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
html[data-platform="android"] .for-ios, html[data-platform="ios"] .for-android { display: none; }

.phone { --w: min(68vw, 17.5rem); position: relative; width: var(--w); padding: calc(var(--w) * 0.034); border-radius: calc(var(--w) * 0.165); background: var(--bezel); box-shadow: 0 1.5rem 3rem -1rem rgb(var(--shadow) / .38), 0 0.5rem 1rem -0.5rem rgb(var(--shadow) / .3); }
.phone .screen { position: relative; aspect-ratio: 640 / 1391; border-radius: calc(var(--w) * 0.135); overflow: hidden; background: var(--bg); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

.stamp { position: absolute; z-index: 2; top: 8.5%; right: 7%; width: calc(var(--w) * 0.26); color: var(--success); opacity: 0.88; transform: rotate(-6deg); }
.stamp svg { width: 100%; height: auto; }
.io .stamp:not(.in) { opacity: 0; transform: rotate(-6deg) scale(1.15); }
.io .stamp.in { transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out); }
.io .stamp.landed, .io .stamp.landed:not(.in) { transform: rotate(-6deg); transition: opacity 160ms var(--ease-out); }

.hero { padding: clamp(1.25rem, 4vw, 3rem) 0 0; }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 1.7rem + 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1rem; max-width: 11ch; text-wrap: balance; }
.hero .lead { margin: 0 0 1.5rem; max-width: 32ch; color: var(--muted); font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem); line-height: 1.5; }

.hero-scene { --w: min(60vw, 17.5rem); position: relative; height: clamp(22rem, 104vw, 31rem); margin: 2rem calc(50% - 50vw) 0; overflow: hidden; display: grid; justify-items: center; align-items: start; }
.hero-scene .phone { margin-top: 1rem; }
.step .phone { --w: min(56vw, 16rem); }
.floor, .io .stage-floor { background-color: var(--floor); background-image: linear-gradient(var(--joint) 1px, transparent 1px), linear-gradient(90deg, var(--joint) 1px, transparent 1px); background-size: 3.5rem 3.5rem; background-position: center top; }
.floor { position: absolute; inset: auto 0 0 0; height: 44%; }
.paw { position: absolute; width: 1.75rem; color: var(--paw); }
.paw svg { width: 100%; height: auto; }
.floor .paw-1 { right: 3%; bottom: 58%; transform: rotate(-110deg); }
.floor .paw-2 { right: 9%; bottom: 40%; transform: rotate(-125deg); }
.floor .paw-3 { right: 3%; bottom: 22%; transform: rotate(-110deg); }
.floor .paw-4 { right: 9%; bottom: 5%; transform: rotate(-125deg); }
.floor .paw-5 { display: none; }
.stage-floor .paw-1 { left: 6%; bottom: 14%; transform: rotate(70deg); }
.stage-floor .paw-2 { left: 15%; bottom: 30%; transform: rotate(55deg); }
.stage-floor .paw-3 { left: 24%; bottom: 15%; transform: rotate(70deg); }
.stage-floor .paw-4 { left: 33%; bottom: 31%; transform: rotate(55deg); }
.stage-floor .paw-5 { left: 41%; bottom: 17%; transform: rotate(70deg); }
.mascot { height: auto; }
.mascot-hero { position: absolute; z-index: 1; width: clamp(5.5rem, 24vw, 8.5rem); left: max(0.25rem, calc(50% - var(--w) / 2 - 5.25rem)); bottom: 20%; }
.stage-floor { display: none; }

.step { padding: clamp(4rem, 10vw, 6rem) 0 0; }
.step p { margin: 0; max-width: 34ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); text-wrap: pretty; }
.step .shot { display: grid; justify-items: center; margin-top: 2rem; }
.units { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 36rem; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.units strong { display: block; color: var(--text); font-weight: 800; font-size: 1rem; }

.stage-phone { display: none; }

@media (min-width: 64rem) {
  .hero h1 { max-width: 12ch; }
  .io .stage { --inset: max(2rem, env(safe-area-inset-left), env(safe-area-inset-right)); --pw: clamp(17.5rem, calc((100svh - 8rem) * 0.46), 22rem); --col: calc(var(--pw) + 4rem); --copy: 34rem; --gap: clamp(2rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, var(--copy)) var(--col); column-gap: var(--gap); justify-content: center; }
  .io .hero { grid-column: 1; grid-row: 1; min-height: calc(100svh - 4.25rem); padding: clamp(3rem, 11vh, 7rem) 0 15rem; }
  .io .stage-floor { display: block; grid-column: 1 / -1; grid-row: 1; align-self: end; position: relative; height: 13rem; margin-inline: calc(50% - 50vw); }
  .io .stage-floor .paw { width: 2.25rem; }
  .io .mascot-stage { position: absolute; z-index: 3; width: 8.5rem; top: -4.5rem; left: calc(50vw + min(var(--copy), 100vw - 2 * var(--inset) - var(--gap) - var(--col)) / 2 + var(--gap) / 2 + var(--col) / 2 - (var(--col) + var(--pw)) / 2 - 7rem); }
  .io .hero-scene, .io .step .shot { display: none; }
  .io .step { grid-column: 1; min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding: 4rem 0; }
  .io .step:last-of-type { min-height: 92svh; }
  .io .stage-phone { display: block; grid-column: 2; grid-row: 1 / span 6; position: relative; z-index: 2; }
  .io .sticky { position: sticky; top: max(1rem, calc(50svh - var(--pw) * 1.05)); display: grid; justify-items: center; }
  .io .stage-phone .phone { --w: var(--pw); }
  .io .stage-phone .screen picture { position: absolute; inset: 0; opacity: 0; transition: opacity 280ms var(--ease-out); }
  .io .stage-phone .screen picture.on { opacity: 1; }
}

.people { margin-top: clamp(5rem, 12vw, 8rem); padding: clamp(4rem, 9vw, 7rem) 0; background: var(--warm); color: var(--on-warm); }
.people .container { display: grid; gap: 2.5rem; align-items: center; }
.people .note p { margin: 0 0 1rem; max-width: 36ch; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.55; text-wrap: pretty; }
.people .sign { font-weight: 800; }
.people .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.people figure { margin: 0; }
.people .photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 6px 12px -4px rgb(var(--shadow) / .3); }
.people figcaption { margin-top: 0.5rem; font-weight: 800; }
.people .stand-in { justify-self: center; }
.mascot-hug { width: clamp(11rem, 44vw, 20rem); }
@media (min-width: 56rem) { .people .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); } }

.price, .faq { padding-top: clamp(5rem, 12vw, 8rem); }
.section-lead { margin: 0; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.plans { display: grid; gap: 1rem; margin: 2rem 0 1.25rem; max-width: 46rem; }
@media (min-width: 40rem) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; padding: 1.25rem 1.25rem 1.4rem; border-radius: 16px; background: var(--card); box-shadow: 0 2px 8px rgb(var(--shadow) / .10); }
.plan-best { background: var(--today); box-shadow: inset 0 0 0 2px var(--ink); }
.plan h3 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.plan .best { margin: 0.1rem 0 0; color: var(--ink); font-weight: 800; font-size: 0.9375rem; }
.plan .amount { margin: 0.75rem 0 0; font-weight: 800; font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .per { font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.plan .equiv { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.fine { margin: 0; max-width: 56ch; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }

.qa { margin-top: 1.5rem; max-width: 46rem; border-top: 1px solid var(--border); }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: 0.9rem 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.125rem; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; width: 1.25rem; color: var(--ink); transition: transform 200ms var(--ease-out); }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa details p { margin: 0 0 1.25rem; max-width: 60ch; color: var(--muted); text-wrap: pretty; }

.final { margin-top: clamp(5rem, 12vw, 8rem); padding: clamp(3.5rem, 9vw, 6rem) 0; background: var(--primary); color: var(--on-pumpkin); text-align: center; }
.final .container { display: grid; justify-items: center; }
.final h1, .final h2 { margin: 0 0 1.5rem; max-width: 16ch; font-weight: 800; font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.final .get { justify-content: center; }
.final .get-note, .final .follow-alt, .final a { color: var(--on-pumpkin); font-size: 1.1875rem; font-weight: 800; }
.final .btn-primary { background: var(--band-btn); color: var(--on-band-btn); box-shadow: none; }
.mascot-final { width: clamp(7rem, 20vw, 9.5rem); margin-bottom: 1rem; }

.go .go-card { margin-top: 0; min-height: calc(100svh - 4.25rem); display: grid; align-content: center; }
.go-lead { margin: -0.5rem 0 1.5rem; max-width: 26ch; font-size: 1.1875rem; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.go-more { margin: 1.5rem 0 0; font-size: 1.1875rem; font-weight: 800; }

.lp-foot { padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9375rem; }
.lp-foot .container { display: grid; gap: 1.25rem; }
.lp-foot p { margin: 0; }
.follow-title { color: var(--text); font-weight: 800; }
.social { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 0.25rem; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--text); font-weight: 800; text-decoration: none; }
.social-link svg { width: 1.5rem; }
.social-link .handle { color: var(--muted); font-weight: 500; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.lp-foot nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 800; text-decoration: none; }
.legal { font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .badge, .qa summary svg { transition: none; }
  .io .stamp:not(.in) { transform: rotate(-6deg); }
  .io .stamp.in { transition: opacity 200ms ease; }
  .io .stage-phone .screen picture { transition-duration: 160ms; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--text); }
  .plan { box-shadow: inset 0 0 0 1px var(--text); }
}
