@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #2b1b4a; --soft: #5f5379; --cyan: #0cc0df; --cyan-deep: #06728a; --coral: #ff5d73; --sun: #ffc53d;
  --violet: #6b2fd6; --paper: #fff; --mist: #eefafd; --line: #dcd6ea;
  --display: Fredoka, 'Trebuchet MS', sans-serif; --body: Nunito, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan-deep); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
/* precisa continuar renderizado: com display:none os gradientes deixam de funcionar */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
b, strong { font-weight: 700; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.3rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--coral); color: var(--ink); font: 700 1rem var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { background: #fff; }
.btn.alt { background: var(--sun); }
.btn.big { font-size: 1.12rem; min-height: 54px; padding-inline: 1.8rem; }
.btn.small { min-height: 36px; padding: .25rem .85rem; font-size: .88rem; box-shadow: 0 2px 0 var(--ink); }
.btn.danger { background: #ffe3e7; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1rem; }

/* cabeçalho e rodapé */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 150px; height: auto; display: block; }
.brand span { font-family: var(--display); font-size: 1rem; border-left: 2px solid var(--sun); padding-left: .7rem; line-height: 1.1; }
#menu { display: flex; gap: .3rem; }
#menu a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; }
#menu a:hover { background: var(--mist); }
#menu a[aria-current] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; margin: 4px 0; background: var(--ink); border-radius: 2px; }
.site-footer { background: var(--ink); color: #e9e3f7; padding: 3.5rem 0 1.5rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; }
.site-footer nav a { display: block; color: #e9e3f7; text-decoration: none; padding: .18rem 0; }
.site-footer nav a:hover { color: var(--sun); }
.site-footer img { width: 160px; height: auto; background: #fff; border-radius: 14px; padding: .2rem .5rem; margin-bottom: .8rem; }
.copyright { border-top: 1px solid #ffffff26; margin-top: 2rem; padding-top: 1.2rem; }

/* home */
.hero { position: relative; background: var(--mist); overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.confetti { position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(circle at 10px 10px, var(--coral) 5px, transparent 6px), radial-gradient(circle at 10px 10px, var(--sun) 4px, transparent 5px), radial-gradient(circle at 10px 10px, var(--violet) 3px, transparent 4px);
  background-size: 233px 197px, 181px 229px, 149px 163px; background-position: 20px 30px, 90px 120px, 140px 10px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 45%); mask-image: linear-gradient(to bottom, #000, transparent 45%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-copy > p { font-size: 1.15rem; color: var(--soft); max-width: 34em; }
.hero-copy .small { font-size: .95rem; margin: 0; }
.stage-card { margin: 0 auto; width: 100%; max-width: min(600px, calc((100vh - 200px) * .96 + 34px)); min-width: 0; position: relative; padding: 30px 0 0 34px; }
.hero-scene { background: #fff; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 12px 12px 0 var(--cyan), 0 30px 50px -18px #2b1b4a66; aspect-ratio: 300 / 312; }
.hero-scene svg, .scene svg { display: block; width: 100%; height: 100%; }
/* fita métrica: assinatura visual do construtor */
.tape { position: absolute; background-color: var(--sun); color: var(--ink); font: 700 .8rem var(--body); display: grid; place-items: center; border-radius: 4px; }
.tape span { background: var(--sun); padding: 0 .5rem; line-height: 1.2; }
.tape-top { top: 0; left: 34px; right: 0; height: 20px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 14px); background-size: 100% 6px; background-repeat: no-repeat; }
.tape-side { top: 30px; bottom: 66px; left: 6px; width: 20px; background-image: repeating-linear-gradient(0deg, var(--ink) 0 1.5px, transparent 1.5px 14px); background-size: 6px 100%; background-repeat: no-repeat; }
.tape-side span { transform: rotate(-90deg); white-space: nowrap; }
.stage-card figcaption { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.scene-tabs, .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.scene-tabs button, .chips button { border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .85rem; font: 700 .88rem var(--body); cursor: pointer; }
.scene-tabs button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
#hero-open { font-weight: 700; }

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.lead { font-size: 1.12rem; color: var(--soft); max-width: 40em; }
.models-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2rem; }
.model-card { display: flex; flex-direction: column; align-items: flex-start; }
.model-card .scene { box-shadow: 0 22px 34px -20px #2b1b4a80; width: 100%; aspect-ratio: 300 / 312; border: 3px solid var(--ink); border-radius: 160px 160px 16px 16px; overflow: hidden; margin-bottom: 1.1rem; background: var(--mist); }
.model-card p { flex: 1; }
.band { background: var(--ink); color: #fff; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px dashed #ffffff55; padding-top: 1.2rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 60px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 600 1.6rem var(--display); margin-bottom: 1rem; }
.steps li:nth-child(2)::before { background: var(--coral); }
.steps li:nth-child(3)::before { background: var(--cyan); }
.split { display: grid; grid-template-columns: 4fr 7fr; gap: 3rem; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.features li { border-left: 6px solid var(--cyan); padding-left: 1rem; color: var(--soft); }
.features li:nth-child(3n+2) { border-color: var(--coral); }
.features li:nth-child(3n) { border-color: var(--sun); }
.features strong { display: block; color: var(--ink); font: 600 1.15rem var(--display); }
.tinted { background: #f6f3fd; }
details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; }
.cta { background: var(--cyan); text-align: center; padding: 3.5rem 0; }

/* páginas internas */
.page-head { background: var(--mist); padding: 1.6rem 0 2.2rem; }
.page-head p { max-width: 44em; color: var(--soft); }
.page-head p:last-child { margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--soft); }
.search input { width: min(460px, 100%); padding: .75rem 1.1rem; border: 2px solid var(--ink); border-radius: 999px; font: inherit; margin: .4rem 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; margin: 1.5rem 0 2rem; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card:hover { border-color: var(--ink); box-shadow: 0 18px 30px -20px #2b1b4a80; }
.card > svg { display: block; width: 100%; aspect-ratio: 16 / 9; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3 { font-size: 1.18rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { font-size: .96rem; color: var(--soft); flex: 1; }
.card small { border-top: 3px solid var(--cat); padding-top: .5rem; font-size: .82rem; }
.article-head .meta { font-size: .92rem; margin-top: .8rem; }
.cover { margin: -0.5rem 0 0; padding-top: 2rem; }
.cover svg { display: block; width: 100%; aspect-ratio: 16 / 8; border-radius: 18px; }
.toc { background: #f6f3fd; border-radius: 16px; padding: 1.2rem 1.5rem; margin: 2rem 0; }
.toc h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.prose { font-size: 1.08rem; padding-top: 1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.3rem; background: #fff7e0; border-left: 6px solid var(--sun); }
.table-scroll { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .6rem .7rem; vertical-align: top; }
thead th { background: var(--mist); }
.try { background: var(--mist); border: 3px dashed var(--cyan-deep); border-radius: 20px; padding: 1.6rem; margin: 2.5rem 0 3rem; }
.try h2 { font-size: 1.35rem; }
.model-list { padding-block: 2.5rem; }
.model-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 2rem 0; border-bottom: 2px dashed var(--line); }
.model-row .scene { aspect-ratio: 300 / 312; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--mist); }
.model-blank { text-align: center; padding: 3rem 0 1rem; }
.notice { background: var(--mist); border-radius: 12px; padding: 1rem 1.2rem; }
.notice.ok { background: #e3f8e8; }
.notice.error { background: #ffe8eb; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.contact { display: grid; gap: 1rem; }
.contact label { display: grid; gap: .3rem; font-weight: 700; }
.contact input:not([type=checkbox]), .contact select, .contact textarea { font: 400 1rem var(--body); color: var(--ink); padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
.contact label.check { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 400; }
.contact .btn { justify-self: start; }
.contact .trap { position: absolute; left: -9999px; }

@media (max-width: 960px) {
  .stage-card { max-width: 560px; }
  .hero-grid, .split, .model-row { grid-template-columns: 1fr; }
  .models-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  #menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 3px solid var(--ink); padding: .6rem 1rem 1rem; }
  .menu-open #menu { display: flex; }
  .models-row, .steps, .features { grid-template-columns: 1fr; }
  .model-card { max-width: 420px; margin-inline: auto; }
  .brand img { width: 128px; }
  .brand span { font-size: .85rem; }
  .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 2rem); }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* a fita lateral acompanha a altura do cenário, mesmo quando os botões quebram de linha */
.stage-card { container-type: inline-size; }
.tape-side { bottom: auto; height: calc(100cqw * 1.04); }
