/* Hallmark · shape: a gallery of painted panels, each carrying the product · genre: modern-minimal · theme: custom · job: try · idea: "the real app floats on Brazil as its first painters saw it: a Portuguese-first tool shown over Frans Post's skies" · vibe: "museum skies under a working editor"
 * paper: oklch(17.5% 0.008 70), a warm graphite wall · accent: oklch(55% 0.215 27), the CookJS red from the app's own brand token · display: Geist (by request) · body: Geist (by request) · code: JetBrains Mono (the app's editor face), only in the blocks where the code is the point: the example card, the commands, inline code and keys
 * hero: head and the two downloads over a wide painted panel, the real recording floating on Frans Post's várzea · nav: wordmark, three anchors centred, a quiet download link · footer: the statement "Abra, digite, veja." set large over one row of chrome · imagery: the product (one recording, captures 6), eight public-domain Frans Post paintings as panel grounds (the examples panel dissolves between five skies, one per question; sources in assets/art/CREDITOS.md), softened with an 8px blur, three of them blurred further into fields, by the owner's request
 * signature: each value landing on the line that made it, in the real recording, floating on a 1650s Brazilian sky
 * axes: dark/grotesk-sans/chromatic-red · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · motion: both switchers advance by themselves (examples 5.2s, editor 7s) on an invisible timer; they hold only under keyboard focus, off-screen and with the tab hidden; no pause button and no hover hold, by the owner's request (18 holds only through focus and reduced motion, where nothing advances) */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, painted grounds in five places risk a gallery; every painting carries a capture or the diagram, and the plain fields are the same paintings blurred */
/* Hallmark · hero-review: not run, the page was built in one pass · finish-review: in-thread · 3 findings · 3 resolved (code card enlarged, the second "projeto" head rewritten, diagram cells grouped) · gap: the Portuguese-first half of the idea lives in the examples and the FAQ, not in a section of its own */
/* Hallmark · waive 29 · one slate-blue radial behind the hub diagram, centred on the CookJS tile and fading into the page, never animated · the owner asked for the hub light to rise from the centre and dissolve into the dark, with no card edge */
/* Hallmark · dismissed 49 · the five question tabs carry white-space: nowrap in the .qlist rule, and the longest fits 343px at 375 */
/* Hallmark · dismissed 58 · the page total counts the closed answers and the three hidden tab panels; about 380 words show at once */

/* ---------- Base ---------- */
body { line-height: 1.6; font-optical-sizing: auto; }
h1, h2, h3 { font-weight: 500; letter-spacing: var(--tracking-display); color: inherit; }
code, kbd { font-family: var(--font-outlier); font-size: 0.875em; font-weight: 400; }
kbd { padding: 0 var(--space-2xs); border-radius: var(--space-2xs); background: var(--color-paper-3); color: var(--color-ink); white-space: nowrap; }
svg[aria-hidden] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html { scroll-padding-top: calc(var(--nav-height) + var(--space-lg)); scroll-behavior: smooth; }
#conteudo:focus { outline: none; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-inner); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: 0 var(--space-lg);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn small { font-size: var(--text-sm); font-weight: 400; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn-quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }

/* ---------- Navegação ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.nav-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); justify-self: start; text-decoration: none; color: var(--color-ink); }
.brand img { flex-shrink: 0; }
.wordmark { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.nav ul { display: flex; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.nav ul a, .nav-dl {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill);
  color: var(--color-ink-2); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.nav ul a:hover, .nav-dl:hover { color: var(--color-ink); background: var(--color-paper-2); }
.nav ul a:active, .nav-dl:active { background: var(--color-paper-3); }
.nav-dl { justify-self: end; border: 1px solid var(--color-rule); color: var(--color-ink); }

/* ---------- Abertura ---------- */
.hero { padding-top: var(--space-2xl); }
.hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.hero h1 { grid-column: 1 / span 6; font-size: var(--text-display); line-height: 1.02; max-width: 16ch; }
.hero-side { grid-column: 7 / -1; justify-self: end; display: grid; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 32ch; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.panel { position: relative; isolation: isolate; margin: 0; border-radius: var(--radius-panel); overflow: hidden; }
.panel > [data-keep] { position: relative; z-index: 2; }
/* a paisagem fica desfocada atrás do produto; a sobra cobre a borda que o desfoque clareia */
.panel > img { inset: calc(-3 * var(--panel-blur)); width: calc(100% + 6 * var(--panel-blur)); height: calc(100% + 6 * var(--panel-blur)); max-width: none; filter: blur(var(--panel-blur)); }
.float { border-radius: var(--radius-card); overflow: hidden; background: var(--app-bg); color: var(--app-fg); box-shadow: var(--shadow-float); }
.float img, .float video { width: 100%; height: auto; }

.panel-hero { grid-column: 1 / -1; display: grid; place-items: center; margin-top: var(--space-xl); padding: var(--space-2xl) var(--space-xl); }
.panel-hero > img { object-position: 50% 30%; }
.float-hero { width: min(100%, 1000px); }
.float-hero video { aspect-ratio: 2400 / 1060; object-fit: cover; background: var(--app-bg); color: var(--app-fg); }
.hero-cap { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-sm); margin-top: calc(var(--space-sm) - var(--gap-columns)); color: var(--color-muted); font-size: var(--text-sm); }
.hero-cap p { max-width: none; }
.play-toggle {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-rule); border-radius: 50%;
  background: transparent; color: var(--color-ink); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.play-toggle:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.play-toggle:active { background: var(--color-paper-3); }
.play-toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.play-toggle svg { width: 20px; height: 20px; }
.play-toggle .i-play { fill: currentColor; stroke: none; }
.play-toggle .i-pause { fill: currentColor; stroke: none; }
.play-toggle[data-state="playing"] .i-play, .play-toggle[data-state="paused"] .i-pause { display: none; }
html:not(.js) .play-toggle, .no-video .play-toggle { display: none; }

/* ---------- Seções ---------- */
.sec { padding-block: var(--section-gap-s); }
.sec h2 { font-size: var(--text-section); line-height: 1.05; }
.sec-examples { padding-top: var(--section-gap); }

/* Exemplos */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.split-text { grid-column: 1 / span 5; display: grid; gap: var(--space-md); align-content: start; }
.split-text > p { color: var(--color-ink-2); }
.qlist { display: grid; margin-top: var(--space-lg); }
.qlist [role="tab"] {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 60px; padding: var(--space-sm) 0;
  border: 0; border-bottom: 1px solid var(--color-rule); background: none; color: var(--color-muted);
  font: 400 var(--text-lead)/1.3 var(--font-body); text-align: left; white-space: nowrap; cursor: pointer;
  transition: color var(--dur-short) var(--ease-out);
}
.qlist [role="tab"]::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--color-signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out);
}
.qlist [role="tab"]:hover { color: var(--color-ink-2); }
.qlist [role="tab"]:active { color: var(--color-ink); }
.qlist [role="tab"]:disabled { opacity: 0.55; cursor: not-allowed; }
.qlist [aria-selected="true"], .qlist [aria-selected="true"]:hover { color: var(--color-ink); }
.qlist [aria-selected="true"]::after { transform: scaleX(1); }

.panel-examples { grid-column: 6 / -1; display: grid; place-items: center; min-height: 560px; padding: var(--space-xl); }
.panel-examples > img { object-position: 50% 40%; }
.recipes { display: grid; gap: var(--space-md); width: min(100%, 640px); }
.code-card { border-radius: var(--radius-card); overflow: hidden; background: var(--app-bg); color: var(--app-fg); box-shadow: var(--shadow-float); font-family: var(--font-outlier); font-size: 0.9375rem; }
.code-head { padding: var(--space-sm) var(--space-lg); background: var(--app-bg-2); color: var(--app-dim); font-size: var(--text-xs); }
.code-body { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; row-gap: var(--space-xs); padding: var(--space-xl) 0; line-height: 1.7; }
.code-body .ln { padding-right: var(--space-sm); color: var(--app-ln); text-align: right; user-select: none; }
.code-body .code { white-space: pre; overflow: hidden; }
.code-body .out { min-width: 9ch; padding: 0 var(--space-md); border-left: 1px solid var(--app-line); white-space: pre; }
.k { color: var(--app-kw); } .s { color: var(--app-str); } .n { color: var(--app-num); } .f { color: var(--app-name); }

/* o valor pousa na linha: o script anima, aqui só o deixa transformável */
.js .recipe .out > span { display: inline-block; }

/* Pacotes */
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; padding: var(--space-lg); border-radius: var(--radius-band); background: var(--color-paper-2); color: var(--color-ink); }
.panel-pkgs { grid-column: 1 / span 7; min-height: 580px; }
.panel-pkgs > img { object-position: 30% 40%; }
.pk-code.float { position: absolute; top: var(--space-xl); left: var(--space-xl); width: 84%; }
.pk-panel.float { position: absolute; right: var(--space-lg); bottom: var(--space-xl); width: min(70%, 480px); }
.band-text { grid-column: 8 / -1; display: grid; gap: var(--space-lg); padding: var(--space-xl) var(--space-lg) var(--space-xl) 0; }
.band-text h2 { font-size: var(--text-section); line-height: 1.05; }
.band-text > p { color: var(--color-ink-2); }
.checks { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; color: var(--color-ink-2); }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-sm); }
.checks svg { margin-top: var(--space-2xs); color: var(--color-signal); }
.struck { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.struck p { color: var(--color-muted); font-size: var(--text-sm); }
.struck ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; list-style: none; }
.struck s { color: var(--color-muted); text-decoration-color: var(--color-signal); text-decoration-thickness: 2px; }

/* Editor */
.sec-editor { padding-top: var(--section-gap); }
.editor-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.editor-head > div:first-child { grid-column: 1 / span 6; display: grid; gap: var(--space-md); }
.editor-head p { color: var(--color-ink-2); }
.tabs-row { grid-column: 7 / -1; justify-self: end; display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.tabs { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); }
.tabs [role="tab"] {
  position: relative; min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--color-ink-2); font: 400 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.tabs [role="tab"]:hover { color: var(--color-ink); background: var(--color-paper-3); }
.tabs [role="tab"]:active { background: var(--color-rule); }
.tabs [role="tab"]:disabled { opacity: 0.55; cursor: not-allowed; }
.tabs [aria-selected="true"], .tabs [aria-selected="true"]:hover { background: var(--color-ink); color: var(--color-paper); }
/* o palco: uma pintura parada, as quatro capturas empilhadas por cima dela */
.tab-stage { position: relative; }
.js .tab-stage { display: grid; }
.js .tab-stage > * { grid-area: 1 / 1; }
.panel-editor { align-self: start; aspect-ratio: 1264 / 760; }
.panel-editor > img { object-position: 50% 35%; }
html:not(.js) .panel-editor { display: none; }
.tab-panel { position: relative; z-index: 2; }
html:not(.js) .tab-panel + .tab-panel { margin-top: var(--space-2xl); }
.shot-area { aspect-ratio: 1264 / 760; container-type: size; display: grid; place-items: center; padding: var(--space-2xl) var(--space-xl); }
.shot { width: min(100cqw, var(--w, 1040px), calc(100cqh * var(--ar, 1.6))); }
.tab-cap { margin-top: var(--space-md); color: var(--color-ink-2); }

/* Privacidade: faixa de céu com a retícula */
.privacy {
  position: relative; isolation: isolate; margin-block: var(--space-3xl);
  padding-block: var(--space-4xl); color: var(--color-ink-dark);
  background: var(--color-sky) url("assets/art/nevoa-ceu.webp") center / cover no-repeat;
  --color-focus: var(--color-focus-on-light);
}
.privacy::after {
  content: ""; position: absolute; inset: 0 0 45% 50%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--color-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.6px));
  background-size: var(--halftone-size) var(--halftone-size); opacity: var(--texture-opacity);
  mask-image: radial-gradient(60% 80% at 78% 30%, black 10%, transparent 72%);
}
.privacy-inner { display: grid; gap: var(--space-2xl); }
.privacy h2 { font-size: var(--text-display-s); line-height: 1.04; max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: calc(100% / 12 * 10); margin: 0; }
.facts > div { display: grid; gap: var(--space-2xs); align-content: start; padding-inline: var(--space-lg); border-left: 1px solid var(--color-ink-dark-2); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: var(--text-lead); font-weight: 600; }
.facts dd { margin: 0; color: var(--color-ink-dark-2); max-width: 30ch; }

/* O que vem dentro: o diagrama em hub */
.inside-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.inside-head p { color: var(--color-ink-2); }
.panel-diagram { display: grid; place-items: center; padding: 0; background: none; overflow: visible; }
.panel-diagram > img { object-position: 50% 70%; }

/* Diagrama em hub: uma luz azul-ardósia que nasce atrás do CookJS e se perde no escuro da página, sem borda */
.hub {
  position: relative; isolation: isolate; width: 100%; padding: var(--space-3xl) var(--space-lg); color: var(--color-ink);
  background: radial-gradient(in oklab ellipse 52% 62% at 50% 42%, var(--color-hub-beam-core) 0%, var(--color-hub-beam-mid) 38%, transparent 72%);
}
.hub::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--color-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
  background-size: var(--space-xl) var(--space-xl);
  mask-image: radial-gradient(60% 70% at 50% 50%, black 30%, transparent 75%);
}
.hub-lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub-lines path { fill: none; stroke: var(--color-hub-line); stroke-width: 1.25; }
.hub-lines .hub-run { stroke: var(--color-hub-run); stroke-linecap: round; }
.hub-lines .hub-run.is-out { stroke: var(--hue); opacity: 0.85; }
.hub:not(.running) .hub-run { display: none; }
.hub-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.hub-col { display: flex; flex-direction: column; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.hub-in { align-items: flex-end; }
.hub-out { align-items: flex-start; }
.hub-node { display: flex; align-items: center; gap: var(--space-sm); }
.hub-in .hub-node { flex-direction: row-reverse; }
.hub-node:nth-child(1), .hub-node:nth-child(5) { --arc: 56px; }
.hub-node:nth-child(2), .hub-node:nth-child(4) { --arc: 18px; }
/* a abertura cresce com a tela: 96px, 144px e 176px até o centro, com o arco abrindo junto */
@media (min-width: 80rem) {
  .hub-grid { gap: var(--space-4xl); }
  .hub-node:nth-child(1), .hub-node:nth-child(5) { --arc: 72px; }
  .hub-node:nth-child(2), .hub-node:nth-child(4) { --arc: 22px; }
}
@media (min-width: 90rem) {
  .hub-grid { gap: calc(var(--space-4xl) + var(--space-xl) - var(--space-xs)); }
  .hub-node:nth-child(1), .hub-node:nth-child(5) { --arc: 88px; }
  .hub-node:nth-child(2), .hub-node:nth-child(4) { --arc: 28px; }
}
.hub-in .hub-node { transform: translateX(calc(var(--arc, 0px) * -1)); }
.hub-out .hub-node { transform: translateX(var(--arc, 0px)); }
.hub-tile {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--space-md);
  background: linear-gradient(180deg, var(--color-hub-tile-top), var(--color-hub-tile-bottom));
  box-shadow: 0 0 0 1px var(--color-hub-ring), 0 12px 24px -16px var(--color-shadow); color: var(--color-ink);
}
.hub-out .hub-tile { color: var(--hue); background: linear-gradient(180deg, color-mix(in oklab, var(--hue) 22%, transparent), color-mix(in oklab, var(--hue) 9%, transparent)); }
.hub-tile svg { width: 24px; height: 24px; }
.hub-tile .hub-brand { fill: currentColor; stroke: none; }
.hub-label { color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.hub-core { display: flex; flex-direction: column; align-items: center; gap: var(--space-2xs); }
.hub-core-tile { display: block; margin-bottom: var(--space-sm); border-radius: 23px; box-shadow: 0 0 0 1px var(--color-hub-ring), 0 24px 60px -24px var(--color-shadow); }
.hub-core-tile img { width: 104px; height: 104px; }
.hub-core-name { font-size: var(--text-lg); font-weight: 600; }
.hub-core-sub { color: var(--color-ink); font-size: var(--text-sm); }

/* Perguntas */
.sec-faq { padding-top: var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.faq-grid h2 { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav-height) + var(--space-xl)); }
.faq { grid-column: 6 / -1; border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md);
  font-size: var(--text-lead); list-style: none; cursor: pointer; transition: color var(--dur-short) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary svg { color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
details:not([open]) > .answer { display: none; }
.faq .answer { display: grid; gap: var(--space-xs); padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* Download */
.sec-download { padding-bottom: var(--section-gap); }
.download-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.download-head p { color: var(--color-ink-2); }
.pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.pkg {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; justify-items: start; gap: var(--space-lg);
  min-height: 460px; padding: var(--space-xl); border-radius: var(--radius-panel);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.pkg::before {
  content: ""; position: absolute; inset: 0 0 45% 40%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--pkg-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.6px));
  background-size: var(--halftone-size) var(--halftone-size); opacity: var(--texture-opacity);
  mask-image: radial-gradient(60% 70% at 80% 30%, black 15%, transparent 72%);
}
.pkg-deb { background-color: var(--color-dusk); background-image: url("assets/art/nevoa-varzea.webp"); color: var(--color-ink); --pkg-dot: var(--color-dot-light); }
.pkg-appimage { background-color: var(--color-night); background-image: url("assets/art/nevoa-noite.webp"); color: var(--color-ink); --pkg-dot: var(--color-dot-light); }
.pkg-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); width: 100%; }
.pkg h3 { font-size: var(--text-section); line-height: 1; }
.pkg-size { font-size: var(--text-lead); font-weight: 600; }
.pkg > p { font-size: var(--text-lead); max-width: 30ch; }
.pkg .btn-quiet { border-color: var(--color-ink-2); }
.pkg .btn-quiet:hover { background: var(--color-veil-dark); border-color: var(--color-ink); }
.cmd { display: flex; align-items: center; gap: var(--space-xs); width: 100%; padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md); border-radius: var(--radius-inner); background: var(--color-veil-dark); }
.cmd code { flex: 1; min-width: 0; padding-block: var(--space-xs); font-size: var(--text-xs); line-height: 1.5; overflow-wrap: anywhere; }
.copy {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-inner);
  background: transparent; color: inherit; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out);
}
.copy:hover { background: var(--color-veil-dark); }
.copy:active { transform: translateY(1px); }
.copy:disabled { opacity: 0.55; cursor: not-allowed; }
.copy .i-check, .copy.done .i-copy { display: none; }
.copy.done .i-check { display: block; }

/* Rodapé */
.footer { padding-block: var(--space-3xl) var(--space-xl); border-top: 1px solid var(--color-rule); }
.footer-statement { margin-bottom: var(--space-2xl); font-family: var(--font-display); font-size: var(--text-display); font-weight: 500; line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.foot-links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot-copy { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- Troca automática (exemplos e editor) ---------- */
.js [data-switch] [role="tabpanel"]:not(.is-active):not(.is-leaving) { visibility: hidden; }
.js [data-switch] [role="tabpanel"].is-leaving { pointer-events: none; }
.js .recipes { display: grid; }
.js .recipe { grid-area: 1 / 1; align-self: center; }
.panel-examples > img.bg { opacity: 0; transition: opacity 700ms var(--ease-in-out); }
.panel-examples > img.bg.is-on { opacity: 1; }


html:not(.js) .tabs-row { display: none; }

/* A única entrada: as capturas sobem 12px uma vez, quando aparecem */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .panel-examples > img.bg { transition-duration: 200ms; }
  .qlist [role="tab"]::after { transition: none; }
  .btn, .copy { transition: background-color var(--dur-short) linear; }
  .btn:active, .copy:active { transform: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 75rem) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; justify-self: stretch; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (max-width: 60rem) {
  /* some o nav inteiro, não só a lista: vazio, ele ainda ocupava a segunda coluna e empurrava o Baixar para baixo */
  .nav nav { display: none; }
  .nav-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-side { grid-template-columns: minmax(0, 1fr); }
  .panel-hero { padding: var(--space-xl) var(--space-md); }
  .split-text, .panel-examples, .panel-pkgs, .band-text, .editor-head > div:first-child, .tabs-row, .faq-grid h2, .faq { grid-column: 1 / -1; }
  .band { padding: var(--space-md); border-radius: calc(var(--radius-panel) + var(--space-md)); }
  .band-text { padding: var(--space-md) var(--space-xs); }
  .panel-pkgs { min-height: 480px; }
  .tabs-row { justify-self: start; max-width: 100%; flex-wrap: wrap; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .shot-area { padding: var(--space-xl) var(--space-md); }
  .panel-diagram { padding: var(--space-xl) var(--space-md); }
  .faq-grid h2 { position: static; }
  .facts { grid-template-columns: minmax(0, 1fr); max-width: none; gap: var(--space-md); }
  .facts > div { padding: var(--space-md) 0 0; border-left: 0; border-top: 1px solid var(--color-ink-dark-2); }
  .facts > div:first-child { padding-top: 0; border-top: 0; }
  .pkgs { grid-template-columns: minmax(0, 1fr); }
  .pkg { min-height: 400px; padding: var(--space-lg); }
}
/* de 768 a 1120px o hub segue lado a lado, mais fechado: menos abertura até o centro, menos arco, e a largura toda do container */
@media (max-width: 70rem) {
  .panel-diagram { padding-inline: 0; }
  .hub { padding-inline: 0; }
  .hub-grid { gap: clamp(var(--space-xl), 10vw - 36px, var(--space-3xl)); }
  .hub-node:nth-child(1), .hub-node:nth-child(5) { --arc: 24px; }
  .hub-node:nth-child(2), .hub-node:nth-child(4) { --arc: 8px; }
}
/* até 960px os rótulos descem para o tamanho do celular: em 768px é o que faz "Tipos no autocompletar" caber */
@media (max-width: 60rem) {
  .hub-label, .hub-core-sub { font-size: var(--text-xs); }
}
/* abaixo de 768px o hub fica vertical: entradas em cima, CookJS no meio, saídas embaixo */
@media (max-width: 47.99rem) {
  .hub { padding: var(--space-xl) 0; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); gap: calc(var(--space-xl) + var(--space-xs)); }
  /* cada item ocupa só a largura do rótulo, numa linha: cabem quatro por fileira no celular, e o que sobra desce centrado */
  .hub-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-lg) clamp(var(--space-sm), 4vw, var(--space-xl)); }
  .hub-in, .hub-out { align-items: flex-start; }
  .hub-node, .hub-in .hub-node, .hub-out .hub-node { flex-direction: column; gap: var(--space-xs); transform: none; }
  .hub-label { line-height: 1.25; text-align: center; }
  .hub-core { order: 0; }
}
@media (max-width: 40rem) {
  .ctas .btn { width: 100%; justify-content: space-between; }
  .ctas .btn-quiet { justify-content: center; }
  /* o hub usa a largura toda do container; ladrilhos e rótulos um pouco menores para a fileira de quatro caber */
  .panel-diagram { padding-inline: 0; }
  .hub-tile { width: 48px; height: 48px; border-radius: var(--space-sm); }
  .hub-tile svg { width: 22px; height: 22px; }
  .hub-label { font-size: var(--text-xs); }
  .hub-core-tile img { width: 88px; height: 88px; }
  .hub-core-tile { border-radius: 20px; }
  /* as quatro abas do editor dividem a largura em vez de rolar com a última cortada */
  .tabs-row, .tabs { width: 100%; }
  .tabs [role="tab"] { flex: 1 1 auto; padding-inline: var(--space-xs); }
  /* o primeiro link do rodapé alinha com a logo, compensando o respiro interno do link */
  .foot-links { margin-inline-start: calc(-1 * var(--space-sm)); }
  .panel-examples { padding: var(--space-md); min-height: 420px; }
  .code-body { grid-template-columns: 2rem minmax(0, 1fr); }
  .code-body .code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-body .out { grid-column: 2; min-width: 0; padding: 0 var(--space-sm) 0 0; border-left: 0; white-space: pre-wrap; }
  .code-body .out:empty { display: none; }
  .panel-pkgs { min-height: 420px; }
  .panel-editor, .shot-area { aspect-ratio: 4 / 3; }
  .shot-area { padding: var(--space-lg) var(--space-sm); }
  .pk-code.float { top: var(--space-md); left: var(--space-md); width: 92%; }
  .pk-panel.float { right: var(--space-sm); bottom: var(--space-md); width: 82%; }
  .privacy { padding-block: var(--space-3xl); }
  .pkg-top { flex-wrap: wrap; }
}
