/* Claude Duet · Guia em português
   Layout: coluna editorial alinhada à esquerda numa grade de 1200px; o "resumo da manhã"
   (etiquetas de canal + frase curta) é o fio visual que se repete em hero, cards e fichas. */

:root {
  --paper: #faf9f5;
  --paper-2: #f3f1ea;
  --paper-3: #ebe8de;
  --card: #ffffff;
  --ink: #141413;
  --ink-2: #57564f;
  --ink-3: #87857c;
  --line: #e5e2d8;
  --line-2: #d5d1c4;
  --clay: #d97757;
  --clay-strong: #b4532f;
  --clay-soft: #f7e2d8;
  --focus: #c46849;
  --ok: #3d7a5a;
  --ok-bg: #e2efe7;
  --warn: #9a6216;
  --warn-bg: #f5ead6;
  --no: #ad4639;
  --no-bg: #f6e2de;
  --c-sky-bg: #e3ebf5;   --c-sky-fg: #2c5a88;
  --c-mineral-bg: #dfece6; --c-mineral-fg: #2c6150;
  --c-plum-bg: #e9e7f4;  --c-plum-fg: #4f4a92;
  --c-clay-bg: #f8e4da;  --c-clay-fg: #97431f;
  --c-sand-bg: #efe8d6;  --c-sand-fg: #6a5524;
  --c-rose-bg: #f5e1e3;  --c-rose-fg: #8f3c4a;
  --sunrise: linear-gradient(168deg, #d8d6e8 0%, #e6d4d2 46%, #f1c4ab 100%);
  --screen-glass: rgba(255, 255, 255, 0.72);
  --phone-frame: #ffffff;
  --shadow-1: 0 1px 2px rgba(20, 20, 19, 0.04), 0 2px 8px rgba(20, 20, 19, 0.04);
  --shadow-2: 0 2px 6px rgba(20, 20, 19, 0.05), 0 18px 44px rgba(20, 20, 19, 0.09);
  --header-bg: rgba(250, 249, 245, 0.86);

  --f-display: "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --f-text: "Instrument Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161514;
    --paper-2: #1e1d1b;
    --paper-3: #282724;
    --card: #1f1e1c;
    --ink: #f1eee6;
    --ink-2: #b9b5aa;
    --ink-3: #8b877d;
    --line: #2f2e2a;
    --line-2: #3d3c37;
    --clay: #e38a6a;
    --clay-strong: #eda286;
    --clay-soft: #3a261e;
    --focus: #eda286;
    --ok: #82c3a0;
    --ok-bg: #1c2b23;
    --warn: #e2ab5f;
    --warn-bg: #2d2416;
    --no: #e98d81;
    --no-bg: #331e1b;
    --c-sky-bg: #1d2935;   --c-sky-fg: #9fc2e6;
    --c-mineral-bg: #1b2a25; --c-mineral-fg: #92c6b2;
    --c-plum-bg: #26243a;  --c-plum-fg: #b8b3e8;
    --c-clay-bg: #34231c;  --c-clay-fg: #eeac92;
    --c-sand-bg: #2c2719;  --c-sand-fg: #d8c188;
    --c-rose-bg: #321e22;  --c-rose-fg: #e5a5af;
    --sunrise: linear-gradient(168deg, #34334a 0%, #43333a 50%, #5e3a2c 100%);
    --screen-glass: rgba(30, 29, 27, 0.74);
    --phone-frame: #262522;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(22, 21, 20, 0.86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161514;
  --paper-2: #1e1d1b;
  --paper-3: #282724;
  --card: #1f1e1c;
  --ink: #f1eee6;
  --ink-2: #b9b5aa;
  --ink-3: #8b877d;
  --line: #2f2e2a;
  --line-2: #3d3c37;
  --clay: #e38a6a;
  --clay-strong: #eda286;
  --clay-soft: #3a261e;
  --focus: #eda286;
  --ok: #82c3a0;
  --ok-bg: #1c2b23;
  --warn: #e2ab5f;
  --warn-bg: #2d2416;
  --no: #e98d81;
  --no-bg: #331e1b;
  --c-sky-bg: #1d2935;   --c-sky-fg: #9fc2e6;
  --c-mineral-bg: #1b2a25; --c-mineral-fg: #92c6b2;
  --c-plum-bg: #26243a;  --c-plum-fg: #b8b3e8;
  --c-clay-bg: #34231c;  --c-clay-fg: #eeac92;
  --c-sand-bg: #2c2719;  --c-sand-fg: #d8c188;
  --c-rose-bg: #321e22;  --c-rose-fg: #e5a5af;
  --sunrise: linear-gradient(168deg, #34334a 0%, #43333a 50%, #5e3a2c 100%);
  --screen-glass: rgba(30, 29, 27, 0.74);
  --phone-frame: #262522;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(22, 21, 20, 0.86);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 60;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--clay-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4 { font-size: 1.08rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.num { font-variant-numeric: tabular-nums; }
.skip { position: fixed; z-index: 100; left: 12px; top: -64px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 500; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.section { padding-block: clamp(56px, 7vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head > div { display: grid; gap: 10px; min-width: 0; max-width: 62ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-soft { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 0.86rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.94rem; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 160ms ease; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--clay)); }
  .btn-line:hover, .btn-soft:hover { border-color: var(--ink-3); }
  .link-arrow:hover { border-color: var(--ink); }
  .link-arrow:hover svg { transform: translateX(2px); }
}

/* botão de copiar com troca de estado */
.copy-btn { position: relative; }
.copy-btn .lbl { display: inline-flex; align-items: center; gap: 8px; transition: opacity 180ms ease, filter 180ms ease; }
.copy-btn .lbl-done { position: absolute; inset: 0; justify-content: center; opacity: 0; filter: blur(3px); }
.copy-btn.is-done .lbl-idle { opacity: 0; filter: blur(3px); }
.copy-btn.is-done .lbl-done { opacity: 1; filter: blur(0); }

/* ---------- chips, selos ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--c-sand-bg);
  color: var(--c-sand-fg);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.chip.t-sky { background: var(--c-sky-bg); color: var(--c-sky-fg); }
.chip.t-mineral { background: var(--c-mineral-bg); color: var(--c-mineral-fg); }
.chip.t-plum { background: var(--c-plum-bg); color: var(--c-plum-fg); }
.chip.t-clay { background: var(--c-clay-bg); color: var(--c-clay-fg); }
.chip.t-sand { background: var(--c-sand-bg); color: var(--c-sand-fg); }
.chip.t-rose { background: var(--c-rose-bg); color: var(--c-rose-fg); }

.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.seal svg { width: 12px; height: 12px; }
.seal.s-oficial { border-color: var(--ink-2); color: var(--ink); background: var(--paper-2); }
.seal.s-relatado { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.seal.s-adaptado { border-style: dashed; }
.seal.s-conceito { color: var(--ink-3); }
.seal.s-testado { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

.compat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 500; }
.compat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.compat.c-provavel { color: var(--ok); } .compat.c-provavel i { background: var(--ok); }
.compat.c-parcial { color: var(--warn); } .compat.c-parcial i { background: var(--warn); }
.compat.c-improvavel { color: var(--no); } .compat.c-improvavel i { background: var(--no); }

.app-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.76rem;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.brand-tag { display: none; font-size: 0.74rem; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; line-height: 1.2; }
.nav { display: none; gap: 2px; margin-left: 8px; }
.nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 150ms ease, background-color 150ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1.5px; background: var(--clay); border-radius: 2px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.search-trigger:active { transform: scale(0.97); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger .lbl { display: none; }
.kbd { font-family: var(--f-mono); font-size: 0.7rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-3); background: var(--paper-2); }
.search-trigger .kbd { display: none; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: inline-grid; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: var(--paper-2); }
  .search-trigger:hover, .icon-btn:hover { border-color: var(--ink-3); }
}
@media (min-width: 720px) {
  .search-trigger .lbl, .search-trigger .kbd { display: inline; }
  .search-trigger { padding: 0 8px 0 14px; min-width: 220px; }
  .search-trigger .kbd { margin-left: auto; }
}
@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1180px) and (max-width: 1359px) {
  .search-trigger { min-width: 0; padding: 0 11px; }
  .search-trigger .lbl, .search-trigger .kbd { display: none; }
}
@media (min-width: 1360px) { .brand-tag { display: block; } }

/* menu móvel */
.mobile-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 12px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: grid;
  align-content: start;
  gap: 2px;
  overflow-y: auto;
}
.mobile-nav a { padding: 14px 4px; font-family: var(--f-display); font-size: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-meta { display: flex; align-items: center; gap: 10px; }
.hero-product { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; }
.hero-product img { width: 56px; height: 56px; border-radius: 15px; box-shadow: var(--shadow-1); margin-right: 4px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.hero h1 em { font-style: italic; color: var(--clay-strong); font-weight: 400; }
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--shadow-1);
  max-width: 560px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.searchbox:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 14%, transparent); }
.searchbox svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.searchbox input::placeholder { color: var(--ink-3); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suggest .subtle { font-size: 0.86rem; margin-right: 2px; }
.suggest button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.85rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.suggest button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .suggest button:hover { border-color: var(--ink-3); color: var(--ink); } }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.fact { padding: 18px 16px 18px 0; display: grid; gap: 4px; min-width: 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.fact:nth-child(4) { border-top: 1px solid var(--line); }
.fact b { font-weight: 500; font-size: 0.96rem; }
.fact-source { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; font-size: 0.8rem; color: var(--ink-3); }
.fact-source a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 1px solid var(--line); padding-left: 16px; border-top: 0; }
  .fact:nth-child(4) { border-top: 0; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}

/* ---------- celular + resumo da manhã ---------- */
.phone-stage { display: grid; justify-items: center; gap: 16px; }
.persona-switch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  max-width: 100%;
}
.persona-switch button {
  position: relative;
  z-index: 1;
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}
.persona-switch button[aria-pressed="true"] { color: var(--ink); }
.persona-switch .thumb {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px; left: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: transform 260ms var(--ease-out), width 260ms var(--ease-out);
}
.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 340 / 640;
  max-width: 100%;
  border-radius: 46px;
  padding: 10px;
  background: var(--phone-frame);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  background: var(--sunrise);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 16px 16px 12px;
  gap: 10px;
}
.status-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--ink); padding: 0 8px; }
.status-bar .island { width: 92px; height: 26px; border-radius: 999px; background: #121211; }
.status-bar .sig { display: flex; gap: 4px; align-items: center; }
.status-bar .sig i { display: block; width: 15px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; opacity: 0.85; }
.app-top { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; justify-items: center; padding: 2px 2px 0; }
.app-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--screen-glass); color: var(--ink); }
.app-ic svg { width: 16px; height: 16px; }
.duet-mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 1px 4px rgba(20, 20, 19, 0.12); }
.app-top .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 0.78rem; font-weight: 600; }
.app-tabs { justify-self: center; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--screen-glass); font-size: 0.72rem; font-weight: 500; }
.app-tabs span { padding: 5px 12px; border-radius: 999px; color: var(--ink-2); }
.app-tabs span.on { background: var(--card); color: var(--ink); }
.brief {
  align-self: start;
  border-radius: 22px;
  background: var(--screen-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 14px 14px 12px;
  display: grid;
  gap: 10px;
  transition: opacity 200ms ease, filter 200ms ease;
}
.brief.is-swapping { opacity: 0; filter: blur(4px); }
.brief-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--ink-3); }
.brief-hello { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); }
.brief ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.brief li { font-size: 0.8rem; line-height: 1.42; color: var(--ink); }
.brief li .chip { height: 20px; font-size: 0.7rem; padding: 0 7px; margin-right: 4px; vertical-align: 1px; }
.brief li .need { color: var(--clay-strong); font-weight: 600; }
.composer { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--screen-glass); font-size: 0.8rem; color: var(--ink-3); }
.composer .send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.composer .send svg { width: 13px; height: 13px; color: var(--paper); }
.phone-caption { font-size: 0.78rem; color: var(--ink-3); text-align: center; max-width: 34ch; }

/* ---------- dois caminhos ---------- */
.paths { display: grid; gap: 16px; }
.path {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  background: var(--paper-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.path h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.path-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.path-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  transition: color 150ms ease;
}
.path-list a span:last-child { font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .path-list a:hover { color: var(--clay-strong); } }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }

/* ---------- cards de caso ---------- */
.grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
@media (min-width: 760px) { .grid-cards.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  transition: border-color 160ms ease, box-shadow 200ms ease;
}
.case-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.case-top .seal { margin-left: auto; }
.case h3 { font-size: 1.24rem; line-height: 1.22; }
.case h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case-sum { font-size: 0.92rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.case-foot .compat { margin-left: auto; }
.case-preview {
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--paper-2);
  color: var(--ink);
}
.case-preview b { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .case:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
}

/* ---------- histórias ---------- */
.story {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
}
.story .case-top .seal { margin-left: auto; }
.story-result { font-family: var(--f-display); font-size: 1.24rem; line-height: 1.28; color: var(--ink); }
.story-what { font-size: 0.92rem; color: var(--ink-2); }
.story-who { font-size: 0.82rem; color: var(--ink-3); }
.story-who a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.story-duet { display: grid; gap: 6px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); }
.story-duet .link-arrow { justify-self: start; font-size: 0.86rem; }
.story.is-fail { background: var(--paper-2); }
.story.is-fail .story-result { font-size: 1.08rem; }
.story-tabs { flex-wrap: wrap; border-radius: 18px; }
.story-tabs .c { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3); margin-left: 4px; }

/* ---------- perguntas (problemas comuns) ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; width: 14px; height: 14px; flex: none; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.6px; border-radius: 2px; background: var(--ink-3); transition: transform 200ms var(--ease-out); }
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico::after { transform: rotate(0deg); }
.faq-body { display: grid; gap: 6px; padding: 0 2px 18px; max-width: 72ch; }
.faq-body p { color: var(--ink-2); }
.faq-body .src { font-size: 0.8rem; color: var(--ink-3); }
.faq-body .src a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--clay-strong); } }

/* ---------- conectores e rotinas ---------- */
.app-logo.has-img { background: #ffffff; border-color: var(--line); padding: 6px; overflow: hidden; }
.app-logo.has-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.app-logo.is-full { padding: 0; }
.app-logo.is-full img { object-fit: cover; }
.pill-ic { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; margin-right: 6px; flex: none; background: #ffffff; }
.fopt .pill-ic { margin-right: 2px; }
.app-pill.is-link { color: var(--ink); border-color: var(--line-2); transition: border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .app-pill.is-link:hover { border-color: var(--clay); color: var(--clay-strong); } }
.conn-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.conn { position: relative; display: grid; align-content: start; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); min-width: 0; transition: border-color 160ms ease, box-shadow 200ms ease; }
.conn header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.conn header > div { display: grid; gap: 2px; min-width: 0; }
.conn h3 { font-size: 1.15rem; }
.conn h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.conn header .subtle { font-size: 0.8rem; }
.conn p { font-size: 0.9rem; color: var(--ink-2); }
.conn ul { margin: 0; padding: 10px 0 0; list-style: none; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.conn li { font-size: 0.86rem; color: var(--ink); padding-left: 16px; position: relative; }
.conn li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .conn:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); } }
.rot { position: relative; display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); min-width: 0; transition: border-color 160ms ease, box-shadow 200ms ease; }
.rot h3 { font-size: 1.22rem; line-height: 1.22; }
.rot h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rot p { font-size: 0.92rem; color: var(--ink-2); }
.rot-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rot-plus { color: var(--ink-3); font-size: 0.8rem; }
.rot-when { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }
.rot-when svg { width: 14px; height: 14px; flex: none; }
@media (hover: hover) and (pointer: fine) { .rot:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); } }
.conn-hero { display: flex; align-items: center; gap: 16px; }
.conn-hero .app-logo { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
.conn-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); }
.ideas { display: grid; gap: 10px; }
.idea { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.idea .chip { justify-self: start; }
.idea h3 { font-size: 1.12rem; }
.idea p { font-size: 0.92rem; color: var(--ink-2); }
.combos { list-style: none; margin: 0; padding: 0; display: grid; }
.combos li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.combos li > div { display: grid; gap: 2px; }
.combos b { font-weight: 600; }
.combos b a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.combos span { font-size: 0.9rem; color: var(--ink-2); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.flow-n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.78rem; background: var(--clay-soft); color: var(--clay-strong); }
.flow li > div { display: grid; gap: 6px; justify-items: start; }
.flow p { color: var(--ink-2); font-size: 0.95rem; }
.dir-count { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); margin-bottom: 8px; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.dir-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dir-list .app-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 0.9rem; }
.dir-list li > div { display: grid; gap: 1px; min-width: 0; }
.dir-list b { font-weight: 600; font-size: 0.94rem; }
.dir-list b a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dir-list span { font-size: 0.86rem; color: var(--ink-2); overflow-wrap: anywhere; }
.dir-meta { display: flex; align-items: center; gap: 8px; }
.dir-ext { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); }
.dir-ext svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .dir-ext:hover { color: var(--ink); background: var(--paper-2); } }

/* ---------- índice de casos ---------- */
.case-index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-index summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; }
.case-index summary::-webkit-details-marker { display: none; }
.case-index summary > span:first-child { display: grid; gap: 4px; }
.case-index summary b { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; }
.case-index[open] .faq-ico::after { transform: rotate(0deg); }
.case-index-grid { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); padding: 4px 2px 28px; }
.case-index-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-index-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.case-index-grid a { font-size: 0.9rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .case-index-grid a:hover { color: var(--clay-strong); } }

/* ---------- segmentos ---------- */
.seg-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.seg {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.seg:active { transform: scale(0.98); }
.seg .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.seg .ico svg { width: 19px; height: 19px; }
.seg b { font-weight: 500; font-size: 0.95rem; line-height: 1.25; }
.seg span.n { font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .seg:hover { border-color: var(--line-2); background: var(--card); } }

/* ---------- cargos ---------- */
.roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 20px;
  grid-template-areas: "n b a" "n d a";
  gap: 2px 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.role-n { grid-area: n; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); }
.role b { grid-area: b; font-family: var(--f-display); font-weight: 500; font-size: 1.32rem; line-height: 1.2; }
.role > span:not(.role-n) { grid-area: d; color: var(--ink-2); font-size: 0.94rem; }
.role svg { grid-area: a; width: 18px; height: 18px; color: var(--ink-3); transition: transform 200ms var(--ease-out), color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .role:hover { background: var(--paper-2); }
  .role:hover svg { transform: translateX(3px); color: var(--clay-strong); }
}
@media (max-width: 520px) { .role { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "n a" "b a" "d a"; } }
@media (min-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .role { border-top: 1px solid var(--line); border-bottom: 0; }
  .role:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- camadas (guia) ---------- */
.layers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.layer { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.layer b { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; }
.layer p { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- anatomia do canal ---------- */
.anatomy { display: grid; gap: 24px; align-items: start; }
.channel-mock {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  min-width: 0;
}
.channel-mock header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.channel-mock header .hash { font-family: var(--f-mono); color: var(--ink-3); }
.channel-mock header b { font-weight: 600; }
.channel-mock header .eyebrow { margin-left: auto; }
.purpose-text { padding: 20px 20px 22px; font-size: 1.02rem; line-height: 1.75; }
.purpose-text mark {
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 1px 0;
  box-shadow: inset 0 -2px 0 var(--m, var(--line-2));
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.purpose-text mark[data-p="1"] { --m: var(--c-sky-fg); --mb: var(--c-sky-bg); }
.purpose-text mark[data-p="2"] { --m: var(--c-mineral-fg); --mb: var(--c-mineral-bg); }
.purpose-text mark[data-p="3"] { --m: var(--c-plum-fg); --mb: var(--c-plum-bg); }
.purpose-text mark[data-p="4"] { --m: var(--c-clay-fg); --mb: var(--c-clay-bg); }
.anatomy[data-active="1"] mark[data-p="1"],
.anatomy[data-active="2"] mark[data-p="2"],
.anatomy[data-active="3"] mark[data-p="3"],
.anatomy[data-active="4"] mark[data-p="4"] { background: var(--mb); box-shadow: inset 0 -2px 0 var(--m); }
.anatomy[data-active] mark:not([data-p]) { opacity: 1; }
.parts { display: grid; gap: 8px; counter-reset: part; }
.part {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.part .k {
  grid-row: span 2;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--mb);
  color: var(--m);
}
.part[data-p="1"] { --m: var(--c-sky-fg); --mb: var(--c-sky-bg); }
.part[data-p="2"] { --m: var(--c-mineral-fg); --mb: var(--c-mineral-bg); }
.part[data-p="3"] { --m: var(--c-plum-fg); --mb: var(--c-plum-bg); }
.part[data-p="4"] { --m: var(--c-clay-fg); --mb: var(--c-clay-bg); }
.part b { font-weight: 600; font-size: 0.98rem; }
.part span.d { font-size: 0.9rem; color: var(--ink-2); }
.part[aria-pressed="true"] { border-color: var(--m); background: var(--card); }
@media (min-width: 900px) { .anatomy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; } }

/* ---------- limites ---------- */
.limits { display: grid; gap: 14px; }
.limit {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}
.limit .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.limit .ico svg { width: 20px; height: 20px; }
.limit.l-ok .ico { background: var(--ok-bg); color: var(--ok); }
.limit.l-ask .ico { background: var(--warn-bg); color: var(--warn); }
.limit.l-no .ico { background: var(--no-bg); color: var(--no); }
.limit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.limit li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); }
@media (min-width: 860px) { .limits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- avisos e novidades ---------- */
.notes { display: grid; gap: 0; }
.note { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.note:last-child { border-bottom: 1px solid var(--line); }
.note h4 { font-family: var(--f-text); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.note p { color: var(--ink-2); font-size: 0.95rem; max-width: 72ch; }
.note .src { font-size: 0.8rem; color: var(--ink-3); }
.note .src a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (min-width: 860px) {
  .note { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.7fr); gap: 24px; align-items: baseline; }
}
.timeline { display: grid; }
.tl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.tl time { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); padding-top: 3px; }
.tl .body { display: grid; gap: 6px; min-width: 0; }
.tl .body > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl h4 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.tl p { font-size: 0.93rem; color: var(--ink-2); }
.tl a.src { font-size: 0.8rem; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tag-confirmado { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tag-relatado { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* ---------- faixa de chamada ---------- */
.band {
  border-radius: var(--r-xl);
  background: var(--sunrise);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 24px;
  align-items: center;
}
.band h2 { max-width: 20ch; }
.band p { color: var(--ink); opacity: 0.78; max-width: 52ch; }
.band .row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; max-width: 460px; }
.newsletter input {
  flex: 1 1 220px;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--screen-glass);
  font: inherit;
  color: var(--ink);
}
@media (min-width: 900px) { .band { grid-template-columns: 1.2fr 1fr; } }

/* ---------- rodapé ---------- */
.site-footer { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer .wrap { padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 36px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-grid div { display: grid; gap: 8px; align-content: start; }
.foot-grid a { font-size: 0.92rem; color: var(--ink-2); }
.foot-legal { display: grid; gap: 8px; font-size: 0.82rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 20px; max-width: 90ch; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }

/* ---------- páginas internas ---------- */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }

/* biblioteca */
.lib { display: grid; gap: 28px; padding-bottom: 40px; }
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lib-bar .searchbox { height: 46px; flex: 1 1 320px; max-width: none; box-shadow: none; }
.seg-ctl { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg-ctl button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.seg-ctl button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.lib-body { display: grid; gap: 28px; }
.filters { display: none; gap: 26px; align-content: start; }
.filters.is-open { display: grid; }
.fgroup { display: grid; gap: 10px; }
.fgroup > .eyebrow { display: flex; justify-content: space-between; }
.fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.fopt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.84rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.fopt:active { transform: scale(0.96); }
.fopt .c { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-3); }
.fopt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fopt[aria-pressed="true"] .c { color: color-mix(in srgb, var(--paper) 65%, transparent); }
@media (hover: hover) and (pointer: fine) { .fopt:hover { border-color: var(--ink-3); color: var(--ink); } }
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.results-head .count { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 0.8rem; cursor: pointer; }
.active-filters button svg { width: 12px; height: 12px; }
.select {
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2387857c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.filters-toggle { display: inline-flex; }
@media (min-width: 1000px) {
  .lib-body { grid-template-columns: 248px minmax(0, 1fr); gap: 40px; }
  .filters { display: grid; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 6px; }
  .filters-toggle { display: none; }
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table.cases { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 0.9rem; }
table.cases th { text-align: left; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
table.cases td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cases tr:last-child td { border-bottom: 0; }
table.cases td a.t { font-weight: 600; }
table.cases td .apps { display: flex; flex-wrap: wrap; gap: 4px; }
@media (hover: hover) and (pointer: fine) { table.cases tbody tr:hover { background: var(--paper); } }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }

/* ficha do caso */
.case-page { display: grid; gap: 40px; padding-bottom: 32px; }
.case-title { display: grid; gap: 18px; max-width: 820px; }
.case-title h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.case-cols { display: grid; gap: 40px; }
.case-main { display: grid; gap: 40px; min-width: 0; }
.block { display: grid; gap: 14px; }
.block > h2 { font-size: 1.5rem; }
.block > p { color: var(--ink-2); max-width: 66ch; }
.purpose-box { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--card); overflow: hidden; }
.purpose-box header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.purpose-box header .eyebrow { color: var(--ink-2); }
.purpose-box header .btn { margin-left: auto; }
.purpose-box .txt { padding: 18px 20px 20px; font-size: 1rem; line-height: 1.7; white-space: pre-wrap; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.96rem; }
.checklist li svg { width: 18px; height: 18px; margin-top: 2px; }
.checklist.no li svg { color: var(--no); }
.checklist.ask li svg { color: var(--warn); }
.checklist.ok li svg { color: var(--ok); }
.aside { display: grid; gap: 16px; align-content: start; min-width: 0; }
.spec { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper-2); padding: 6px 18px; }
.spec dl { margin: 0; display: grid; }
.spec dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.spec dl > div:first-child { border-top: 0; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.spec dd a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.meter i { width: 14px; height: 6px; border-radius: 2px; background: var(--line-2); }
.meter i.on { background: var(--clay); }
@media (min-width: 1000px) {
  .case-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* guia: passos */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step .n { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--clay-strong); }
.step .body { display: grid; gap: 10px; min-width: 0; }
.step h3 { font-size: 1.45rem; }
.step p, .step li { color: var(--ink-2); max-width: 68ch; }
.step ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.callout { border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); padding: 14px 16px; font-size: 0.92rem; color: var(--ink-2); max-width: 72ch; }
.callout b { color: var(--ink); font-weight: 600; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* apps */
.apps-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.app-card { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); min-width: 0; }
.app-card header { display: flex; align-items: center; gap: 12px; }
.app-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; background: var(--paper-2); border: 1px solid var(--line); flex: none; }
.app-card h4 { font-family: var(--f-text); font-weight: 600; letter-spacing: 0; font-size: 1rem; }
.app-card p { font-size: 0.88rem; color: var(--ink-2); }
.app-card footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 500; }
.st-oficial { background: var(--ok-bg); color: var(--ok); }
.st-market { background: var(--c-sky-bg); color: var(--c-sky-fg); }
.st-nav { background: var(--warn-bg); color: var(--warn); }
.st-nao { background: var(--no-bg); color: var(--no); }

/* comparação */
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
table.compare th, table.compare td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; background: var(--paper-2); }
table.compare thead th:nth-child(2) { color: var(--clay-strong); }
table.compare tbody th { font-weight: 500; color: var(--ink-2); width: 20%; }
table.compare td:nth-child(2) { background: color-mix(in srgb, var(--clay-soft) 45%, transparent); }

/* formulário */
.form { display: grid; gap: 18px; max-width: 680px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field .hint { font-size: 0.82rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 11px 14px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 14%, transparent); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 400; cursor: pointer; }
.radio-row input { accent-color: var(--clay); width: 16px; height: 16px; }
.form-ok { padding: 20px; border-radius: var(--r-md); background: var(--ok-bg); color: var(--ok); font-weight: 500; }

/* ---------- paleta de busca (⌘K): sem animação, é acionada pelo teclado ---------- */
.palette-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(20, 20, 19, 0.32); }
.palette {
  position: fixed;
  z-index: 81;
  top: max(10vh, calc(env(safe-area-inset-top, 0px) + 16px));
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  max-height: min(560px, 78vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.palette .searchbox { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; max-width: none; height: 56px; }
.palette .searchbox:focus-within { box-shadow: none; }
.pal-list { overflow-y: auto; padding: 8px; display: grid; align-content: start; gap: 2px; }
.pal-group { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 10px; cursor: pointer; }
.pal-item b { font-weight: 500; font-size: 0.94rem; }
.pal-item small { grid-column: 1; color: var(--ink-3); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item .go { grid-row: span 2; color: var(--ink-3); font-size: 0.8rem; }
.pal-item[aria-selected="true"] { background: var(--paper-2); }
.pal-foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--ink-3); }

/* filtros no celular: folha inferior */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(20, 20, 19, 0.32); opacity: 1; transition: opacity 240ms ease; }
.sheet {
  position: fixed;
  z-index: 71;
  left: 0; right: 0; bottom: 0;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  padding: 8px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  transform: translateY(0);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 6px auto 14px; }
.sheet .filters { display: grid; }
.sheet-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 14px 0 0; background: var(--paper); margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
@starting-style {
  .sheet { transform: translateY(100%); }
  .sheet-backdrop { opacity: 0; }
}

/* aviso de cópia */
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 0);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  box-shadow: var(--shadow-2);
  transition: transform 400ms ease, opacity 400ms ease;
}
.toast svg { width: 16px; height: 16px; color: var(--clay); }
.toast.is-leaving { opacity: 0; transform: translate(-50%, 12px); transition-duration: 200ms; }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 16px); } }

/* entrada de página: só opacidade, curta */
.view { animation: viewIn 150ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .brief.is-swapping { filter: none; }
}
