/* Manual de Marca SonoBom */

/* A fonte de títulos é usada se estiver instalada no computador de quem abre o manual.
   Para servir o arquivo pelo site, coloque o .woff2 licenciado em assets/fonts/ e
   acrescente no src: , url("../fonts/europa-grotesk-sh-bold.woff2") format("woff2")
   (veja LEIA-ME.txt). Sem a fonte, a amostra cai para Inter. */
@font-face {
  font-family: "Europa Grotesk SH";
  src: local("Europa Grotesk SH Bold"), local("EuropaGroteskSH-Bold"), local("EuropaGroteskSH-Bol");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --forest: #03402D;
  --leaf: #215D40;
  --cream: #F3E9DE;

  --ground: #f5f4f1;
  --surface: #ffffff;
  --raised: #efebe4;
  --active: #e9e5dd;
  --line: #e4dfd6;
  --ink: #15211c;
  --muted: #5b6560;
  --danger: #a3341f;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brand: "Europa Grotesk SH", var(--font);

  --r-card: 8px;
  --r-ctl: 6px;
  --sidebar: 248px;
  --gutter: 48px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--forest); color: var(--cream); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--forest); color: var(--cream); padding: 10px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.noscript { padding: 40px; }

/* ---------- Shell ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 12px 20px;
  background: var(--ground);
  border-right: 1px solid var(--line);
  z-index: 30;
  overflow-y: auto;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; text-decoration: none; }
.sidebar .brand img { width: 32px; height: auto; }
.sidebar .brand strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sidebar .brand small { display: block; font-size: 13px; color: var(--muted); }

nav { margin-top: 12px; display: grid; gap: 2px; }
.nav-group { font-size: 13px; color: var(--muted); padding: 0 10px; margin: 28px 0 6px; }
nav a {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 10px;
  border-radius: var(--r-ctl);
  font-size: 14px; color: var(--ink); text-decoration: none;
  transition: background-color .15s var(--ease);
}
nav a svg { color: var(--muted); }
nav a:hover { background: var(--raised); }
nav a[aria-current="page"] { background: var(--active); font-weight: 500; }
nav a[aria-current="page"] svg { color: var(--forest); }

.sidebar-foot { margin-top: auto; padding: 24px 6px 0; }
.sidebar-foot p { font-size: 12px; color: var(--muted); margin-top: 8px; padding: 0 2px; }
.sidebar-pdf {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 4px;
  font-size: 13px; font-weight: 500; text-decoration: none; border-radius: var(--r-ctl);
  transition: background-color .15s var(--ease);
}
.sidebar-pdf:hover { background: var(--raised); }
.sidebar-pdf svg { color: var(--forest); }

.topbar { display: none; }
.scrim { display: none; }

main {
  margin-left: var(--sidebar);
  padding: 36px var(--gutter) 96px;
  max-width: calc(var(--sidebar) + 1100px + var(--gutter) * 2);
  display: grid;
  gap: 20px;
  outline: none;
}

/* ---------- Componentes ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 0; border-radius: var(--r-ctl);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s var(--ease), transform .12s var(--ease), color .15s;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: #0a5039; }
.btn-quiet { background: var(--raised); color: var(--ink); }
.btn-quiet:hover { background: var(--active); }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { background: #fff8f0; }
.btn-ghost-cream { background: rgba(243, 233, 222, .12); color: var(--cream); }
.btn-ghost-cream:hover { background: rgba(243, 233, 222, .2); }

/* Botões de copiar trocam o ícone por um check por um instante */
.btn svg + svg, .icon-btn svg + svg, .value-row svg + svg { display: none; }
.is-done svg:first-of-type { display: none; }
.is-done svg + svg { display: block; }
.is-done { color: var(--leaf); }
.btn-primary.is-done { color: var(--cream); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border: 0; border-radius: var(--r-ctl);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s;
}
.icon-btn:hover { background: var(--raised); color: var(--ink); }
.panel-forest .icon-btn { color: rgba(243, 233, 222, .75); }
.panel-forest .icon-btn:hover { background: rgba(243, 233, 222, .12); color: var(--cream); }

.input {
  height: 40px; width: 100%; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.input:focus { outline: 2px solid var(--leaf); outline-offset: -1px; border-color: transparent; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Download com formato e tamanho */
.file-link b { font-weight: 600; }
.file-link small { font-size: 12px; font-weight: 400; opacity: .7; margin-left: 6px; }
.file-link span { white-space: nowrap; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--leaf); text-decoration: none; }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform .2s var(--ease); }
.footnote { font-size: 13px; color: var(--muted); }

.panel { background: var(--surface); border-radius: var(--r-card); padding: 28px; }
.panel-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.panel-forest { background: var(--forest); color: var(--cream); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h2 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.panel p + p { margin-top: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* Itens de grid não podem crescer além da coluna por causa da largura natural das imagens */
main > *, .pair > *, .story > *, .shortcuts > *, .logo-grid > *, .color-grid > *, .seal-grid > *, .file-grid > *, .pairs-grid > * { min-width: 0; }

/* ---------- Início ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 56px;
  background: var(--forest); color: var(--cream);
  border-radius: var(--r-card);
  padding: 64px 56px;
  min-height: 360px;
}
.hero-logo { width: 100%; max-width: 520px; }
.hero h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.hero p { margin-top: 14px; font-size: 16px; opacity: .88; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shortcut {
  display: grid; grid-template-rows: 112px auto auto; gap: 2px;
  background: var(--surface); border-radius: var(--r-card); padding: 14px 14px 18px;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.shortcut:hover { transform: translateY(-2px); }
.shortcut:hover .shortcut-label::after { transform: translateX(3px); opacity: 1; }
.shortcut-art { display: grid; place-items: center; background: var(--cream); border-radius: var(--r-ctl); margin-bottom: 12px; overflow: hidden; }
.shortcut-label { font-size: 15px; font-weight: 600; padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.shortcut-label::after { content: "→"; opacity: .4; transition: transform .2s var(--ease), opacity .2s; }
.shortcut-meta { font-size: 13px; color: var(--muted); padding: 0 4px; }
.art-logo img { height: 64px; width: auto; }
.art-swatch { grid-template-columns: 3fr 1fr 1fr; place-items: stretch; }
.art-swatch i { display: block; }
.art-type { background: var(--forest); color: var(--cream); font-family: var(--font-brand); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; }
.art-seal img { height: 92px; width: auto; }

.story { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.story-main p { font-size: 16px; max-width: 64ch; }
.concept-line { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.story-concept p:not(.concept-line) { opacity: .88; }
.statement { font-size: 18px; line-height: 1.5; }

.values ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values li { background: var(--cream); color: var(--forest); border-radius: var(--r-ctl); padding: 20px; display: grid; gap: 4px; }
.values strong { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }

.home-apps .panel-head { align-items: center; }
.home-apps-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 12px; }
.home-app { position: relative; display: block; height: 240px; border-radius: var(--r-ctl); overflow: hidden; text-decoration: none; }
.home-app img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.home-app:hover img { transform: scale(1.04); }
.home-app span {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Logos ---------- */

.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.logo-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.logo-stage {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10; padding: 48px;
  background: var(--cream);
  transition: background-color .3s var(--ease);
}
.logo-stage img { max-height: 100%; max-width: 100%; width: auto; transition: opacity .2s; }
.logo-card:not(.is-wide) .logo-stage img { height: 72%; }
.logo-card.on-dark .logo-stage { background: var(--forest); }
.logo-body { padding: 20px; display: grid; gap: 16px; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-row h2 { font-size: 17px; font-weight: 600; }
.logo-color { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 8px; }
.dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(21, 33, 28, .14);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.dot:hover { transform: scale(1.08); }
.dot[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(21, 33, 28, .14), 0 0 0 2px var(--surface), 0 0 0 4px var(--leaf); }
/* Bolinha "cores originais": metade Verde Noite, metade Verde Folha, em duas camadas planas */
.dot-two { position: relative; overflow: hidden; background: var(--forest); }
.dot-two::after { content: ""; position: absolute; inset: 0; background: var(--leaf); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.logo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.png-originals { display: grid; gap: 28px; }
.png-originals .panel-head { margin-bottom: 0; }
.png-group h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.png-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.png-tile { display: grid; gap: 8px; text-decoration: none; border-radius: var(--r-ctl); }
.png-stage { display: block; height: 110px; padding: 18px; border-radius: var(--r-ctl); overflow: hidden; transition: transform .2s var(--ease); }
.png-stage img { width: 100%; height: 100%; object-fit: contain; }
.png-tile:hover .png-stage { transform: translateY(-2px); }
.png-meta { display: grid; font-size: 13px; line-height: 1.35; padding: 0 2px; }
.png-meta small { color: var(--muted); font-size: 12px; }
.png-tile:hover .png-meta span { color: var(--leaf); }
.bg-paper { background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }
.bg-sage { background: #dfe5dc; }

/* ---------- Cores ---------- */

.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.color-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.color-field {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  width: 100%; aspect-ratio: 4 / 4.2; padding: 24px;
  border: 0; text-align: left; cursor: pointer; color: var(--cream);
  transition: filter .2s;
}
.color-field:hover { filter: brightness(1.06); }
.color-field.is-light { color: var(--forest); box-shadow: inset 0 -1px 0 var(--line); }
.color-field.is-light:hover { filter: brightness(.98); }
.color-role { font-size: 13px; opacity: .8; }
.color-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2px; }
.color-hex { font-size: 15px; opacity: .85; }
.value-list { padding: 12px; display: grid; gap: 6px; }
.value-row {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px;
  background: var(--ground); border: 0; border-radius: var(--r-ctl);
  cursor: pointer; text-align: left;
  transition: background-color .15s var(--ease);
}
.value-row:hover { background: var(--raised); }
.value-row .value-key { font-weight: 600; font-size: 13px; width: 44px; }
.value-row .value-val { flex: 1; font-size: 14px; }
.value-row svg { color: var(--muted); }
.value-row.is-done svg { color: var(--leaf); }

.proportion { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.proportion-copy p { color: var(--muted); margin-top: 6px; }
.proportion-bar { display: flex; height: 96px; border-radius: var(--r-ctl); overflow: hidden; }
.proportion-bar span { display: flex; align-items: flex-end; padding: 12px 14px; color: var(--cream); font-size: 13px; }
.proportion-bar em { font-style: normal; }

.pairs h2 { font-size: 17px; font-weight: 600; margin: 12px 0 14px; }
.pairs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pair-swatch { border-radius: var(--r-card); padding: 40px 28px 18px; display: grid; gap: 28px; }
.pair-swatch img { width: 100%; }
.pair-swatch span { font-size: 13px; opacity: .85; }

/* ---------- Tipografia ---------- */

.specimen {
  background: var(--forest); color: var(--cream);
  border-radius: var(--r-card); padding: 48px 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: end;
  font-family: var(--font-brand);
}
.specimen-aa { font-size: clamp(96px, 13vw, 184px); line-height: .85; font-weight: 700; letter-spacing: -0.04em; }
.specimen-name { font-size: 14px; opacity: .75; margin-bottom: 10px; font-family: var(--font); }
.specimen-set { font-size: clamp(18px, 2vw, 26px); line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }

.family { display: grid; align-content: start; gap: 6px; }
.family-role { font-size: 13px; color: var(--muted); }
.family h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.family h2.is-headline { font-family: var(--font-brand); font-weight: 700; }
.family h2.is-body { font-family: "Inter", sans-serif; font-weight: 600; }
.family dl { display: grid; margin: 14px 0 4px; }
.family dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--raised); font-size: 14px; }
.family dt { color: var(--muted); }
.family code { font-family: inherit; }
.family-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.pairing { background: var(--cream); color: var(--forest); border-radius: var(--r-ctl); padding: 28px; margin: 16px 0 8px; display: grid; gap: 10px; }
.pairing-head { font-family: var(--font-brand); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pairing-body { font-size: 16px; max-width: 60ch; }
.pairing .weight-meta { text-align: left; color: var(--leaf); }
.pairing .weight-meta strong { color: var(--forest); }
.weight-sample.is-body { font-family: "Inter", sans-serif; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }

.tester-head { display: grid; grid-template-columns: auto minmax(0, 380px); justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.weights { display: grid; }
.weight-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; }
.weight-row + .weight-row { border-top: 1px solid var(--raised); }
.weight-sample { font-family: var(--font-brand); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.015em; min-width: 0; overflow-wrap: anywhere; }
.weight-meta { flex: none; font-size: 13px; color: var(--muted); text-align: right; }
.weight-meta strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

.font-info dl { display: grid; margin-top: 10px; }
.font-info dl > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; min-height: 48px; }
.font-info dl > div + div { border-top: 1px solid var(--raised); }
.font-info dt { color: var(--muted); font-size: 14px; }
.font-info dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.font-info code { font-family: inherit; background: var(--ground); padding: 4px 8px; border-radius: 4px; font-size: 14px; }

/* ---------- Selos ---------- */

.seal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.seal-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.seal-stage { display: grid; place-items: center; aspect-ratio: 1 / .82; background: var(--cream); padding: 40px; }
.seal-stage img { max-height: 100%; max-width: 100%; width: auto; min-height: 0; transition: transform .5s var(--ease); }
.seal-card:hover .seal-stage img { transform: rotate(-3deg) scale(1.03); }
.seal-body { padding: 20px; display: grid; gap: 6px; align-content: start; }
.seal-body h2 { font-size: 17px; font-weight: 600; }
.seal-body p { color: var(--muted); font-size: 14px; }
.seal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* ---------- Diretrizes ---------- */

.anatomy { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding: 40px 48px; }
.anatomy img { width: 100%; }
.anatomy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.anatomy li { display: grid; gap: 2px; padding: 14px 16px; background: rgba(243, 233, 222, .08); border-radius: var(--r-ctl); }
.anatomy li span { opacity: .82; font-size: 14px; }

.rule-list { display: grid; gap: 10px; }
.rule-list li { display: flex; gap: 12px; align-items: flex-start; }
.rule-list svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; margin-top: 1px; stroke-width: 2.2; }
.rule-list.is-do svg { background: var(--cream); color: var(--forest); }
.rule-list.is-dont svg { background: #f6e3dc; color: var(--danger); }

.voice > p { font-size: 16px; max-width: 64ch; }
.voice-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.voice blockquote {
  background: var(--cream); color: var(--forest);
  border-radius: var(--r-ctl); padding: 24px;
  font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em;
}
.voice blockquote::before { content: "“"; }
.voice blockquote::after { content: "”"; }

/* ---------- Biblioteca ---------- */

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* A imagem ocupa a sobra de altura quando o cartão vizinho tem mais botões */
.app-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: minmax(340px, 1fr) auto; min-width: 0; }
.app-card.is-wide { grid-column: span 2; }
.app-stage { display: block; height: 100%; overflow: hidden; background: var(--raised); }
.app-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.app-stage:hover img { transform: scale(1.03); }
.app-body { padding: 16px 18px 18px; display: grid; gap: 12px; align-content: start; }
.app-body h2 { font-size: 16px; font-weight: 600; }
.app-files { display: flex; flex-wrap: wrap; gap: 8px; }
.app-files .btn { height: 34px; padding: 0 12px; font-size: 13px; }

.file-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.file-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.file-stage { display: grid; place-items: center; aspect-ratio: 16 / 8; padding: 36px; }
.file-stage img { max-height: 100%; width: auto; }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); }
.bg-forest-soft { background: #e7e0d4; }
.bg-leaf { background: var(--leaf); }
.bg-none { background: var(--cream); padding: 0; }
.bg-none img { width: 100%; height: 100%; object-fit: cover; }
.file-body { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
.file-body h2 { font-size: 16px; font-weight: 600; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(21, 33, 28, .18);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }

/* ---------- Movimento ---------- */

.rise { animation: rise .55s var(--ease) both; }
main > .rise:nth-child(2) { animation-delay: .06s; }
main > .rise:nth-child(3), main > div:nth-child(3) > .rise { animation-delay: .12s; }
main > :nth-child(4) .rise, main > .rise:nth-child(4) { animation-delay: .18s; }
main > :nth-child(5) .rise, main > .rise:nth-child(5) { animation-delay: .24s; }
.logo-grid > .rise:nth-child(2), .color-grid > .rise:nth-child(2), .seal-grid > .rise:nth-child(2), .file-grid > .rise:nth-child(2) { animation-delay: .1s; }
.logo-grid > .rise:nth-child(n+3), .color-grid > .rise:nth-child(3), .seal-grid > .rise:nth-child(n+3), .file-grid > .rise:nth-child(n+3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 40px; gap: 40px; }
  .story { grid-template-columns: 1fr; }
  .anatomy { grid-template-columns: 160px 1fr; gap: 32px; padding: 32px; }
  .anatomy ul { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .png-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-apps-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .home-apps-grid .home-app:last-child { display: none; }
}

/* ---------- Celular e tablet estreito: sidebar vira menu ---------- */

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body.menu-open { overflow: hidden; }

  .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 8px 0 16px;
    background: var(--ground);
    box-shadow: 0 1px 0 var(--line);
  }
  .topbar .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
  .topbar .brand img { width: 24px; height: auto; }
  .topbar-title { flex: 1; color: var(--muted); font-size: 14px; padding-left: 10px; box-shadow: -1px 0 0 var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-ctl); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }

  .sidebar {
    width: min(320px, 86vw);
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    border-right: 0;
    box-shadow: 0 0 40px rgba(21, 33, 28, .2);
    visibility: hidden;
  }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(21, 33, 28, .35); }
  .scrim[hidden] { display: none; }
  nav a { height: 44px; font-size: 15px; }

  main { margin-left: 0; padding: 20px var(--gutter) 64px; gap: 16px; }

  .page-head h1 { font-size: 26px; }
  .hero { grid-template-columns: 1fr; padding: 36px 24px 28px; gap: 28px; min-height: 0; }
  .hero-logo { max-width: 300px; }
  .hero h1 { font-size: 28px; }
  .hero-actions .btn { flex: 1; }
  .shortcuts { gap: 12px; }
  .shortcut { grid-template-rows: 88px auto auto; }
  .art-type { font-size: 44px; }
  .art-seal img { height: 72px; }
  .art-logo img { height: 50px; }

  .pair, .logo-grid, .color-grid, .seal-grid, .file-grid, .pairs-grid, .voice-quotes, .also-grid { grid-template-columns: 1fr; gap: 16px; }
  .values ul { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 22px 20px; }

  .logo-stage { padding: 32px; }
  .logo-row { flex-direction: column; align-items: flex-start; }
  .dot { width: 36px; height: 36px; }
  .btn { height: 44px; }

  .color-field { aspect-ratio: auto; min-height: 168px; }
  .proportion { grid-template-columns: 1fr; gap: 16px; }

  .specimen { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; }
  .tester-head { grid-template-columns: 1fr; }
  .weight-row { flex-direction: column; gap: 4px; }
  .weight-meta { text-align: left; }
  .font-info dl > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  .anatomy { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .anatomy img { width: 120px; }
  .file-stage { padding: 24px; }

  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-card.is-wide { grid-column: auto; }
  .app-card { grid-template-rows: 260px auto; }
  .app-files .btn { height: 40px; }
  .png-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .png-stage { height: 96px; }
  .home-apps-grid { grid-template-columns: 1fr 1fr; }
  .home-apps-grid .home-app:last-child { display: block; }
  .home-app { height: 150px; }
  .home-apps .panel-head { flex-direction: column; align-items: flex-start; }
  .family h2 { font-size: 26px; }
  .pairing { padding: 22px 18px; }
}
