@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* GrowShift: manual ilustrado em roxo e ardósia */
:root {
  --purple: #5b3cc4;
  --purple-deep: #3d2690;
  --purple-soft: #efeafd;
  --purple-line: #d9cff7;
  --slate: #1f2937;
  --slate-2: #334155;
  --slate-3: #5b6577;
  --paper: #f7f6fb;
  --card: #ffffff;
  --line: #e3e1ec;
  --warn: #8a4b00;
  --warn-bg: #fff4e0;
  --warn-line: #f2c76e;
  --ok: #1d5f43;
  --ok-bg: #e7f6ee;
  --ok-line: #9fd8bb;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(31 41 55 / 6%), 0 6px 18px rgb(61 38 144 / 7%);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Figtree", "IBM Plex Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--slate); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
a.ext::after { content: "↗"; font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }
code { font: .88em var(--mono); background: var(--purple-soft); color: var(--purple-deep); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--head); color: var(--slate); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho e menu por app */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--slate); text-decoration: none; }
.logo { width: 32px; height: 32px; }
.appnav ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.appnav a { display: inline-block; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--purple-line); background: var(--paper); color: var(--slate-2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.appnav a:hover, .appnav a[aria-current="page"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.appnav-method a { border-style: dashed; }
/* Celular: os cinco apps e o método cabem em duas linhas, todos visíveis. */
@media (max-width: 640px) {
  .appnav ul { gap: .3rem; }
  .appnav a { padding: .22rem .55rem; font-size: .8rem; white-space: nowrap; }
}

/* Cabeça das páginas */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--slate-3); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--purple-line); }
.crumbs a { color: var(--slate-3); }
.page-head { max-width: 780px; }
.kicker { margin: 1.2rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.lead { font-size: 1.12rem; color: var(--slate-2); margin: 0 0 1.25rem; }

/* Ficha de teste e ficha do app */
.testcard, .facts { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 780px; }
.testcard { padding: 1rem 1.2rem 1.1rem; margin: 0 0 1.5rem; }
.testcard h2 { margin: 0 0 .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--purple-deep); }
.testcard dl, .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.25rem; margin: 0; }
.facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.facts { padding: 1rem 1.2rem; margin: 0 0 1.75rem; }
.testcard dt, .facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-3); }
.testcard dd, .facts dd { margin: .1rem 0 0; font-size: .95rem; }
.testcard-wide { grid-column: 1 / -1; }

/* Índice */
.toc { max-width: 780px; background: var(--purple-soft); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1rem; }
.toc-title { margin: 0 0 .3rem; font-weight: 700; color: var(--purple-deep); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 260px; column-gap: 2rem; }
.toc li { break-inside: avoid; font-size: .95rem; }

/* Texto corrido */
.prose, .chapter, .troubles, .sources, .related, .guides-of-app, .getapp { max-width: 780px; }
.prose p, .chapter p { margin: 0 0 1rem; }
.list { padding-left: 1.3rem; margin: 0 0 1rem; }
.list li { margin-bottom: .4rem; }
.list li::marker { color: var(--purple); }

/* Passos numerados em cartões */
.steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 1fr; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.step h3 { display: flex; flex-direction: column; gap: .3rem; }
.step-num { align-self: flex-start; background: var(--purple); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.step-body p { margin: 0; }
.step-shot, .shot { margin: 0; }
.step-shot img, .shot img { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 18px; border: 6px solid var(--slate); background: var(--slate); }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1.25rem; }
.shot figcaption { margin-top: .7rem; font-size: .9rem; color: var(--slate-3); text-align: center; }
@media (min-width: 720px) {
  .step { grid-template-columns: 1fr 240px; align-items: start; }
  .step:not(:has(.step-shot)) { grid-template-columns: 1fr; }
}

/* Avisos e resultados */
.note { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1.25rem; border: 1px solid; }
.note p { margin: 0; }
.note .note-label { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .25rem; }
.note-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note-warn .note-label { color: var(--warn); }
.note-warn .note-label::before { content: "⚠ "; }
.note-result { background: var(--ok-bg); border-color: var(--ok-line); }
.note-result .note-label { color: var(--ok); }
.note-result .note-label::before { content: "✓ "; }

/* Tabelas */
.table-wrap { margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--slate-2); color: #fff; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { color: var(--slate); }
.verdict { font-weight: 700; color: var(--purple-deep); min-width: 9rem; }
.limit-num { width: 2.5rem; font-weight: 800; color: var(--purple); }
@media (max-width: 640px) {
  table:not(.limits), table:not(.limits) tbody, table:not(.limits) tr, table:not(.limits) th, table:not(.limits) td { display: block; }
  table:not(.limits) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table:not(.limits) tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  table:not(.limits) td, table:not(.limits) tbody th { border: 0; padding: .25rem .9rem; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-3); }
  .verdicts tbody th { font-size: 1rem; padding-top: .5rem; }
}

/* Erros comuns */
.troubles ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.trouble { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--warn-line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.trouble p { margin: 0; }
.trouble p + p { margin-top: .45rem; }
.trouble span { display: inline-block; min-width: 4.6rem; margin-right: .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trouble-problem span { color: var(--warn); }
.trouble-fix span { color: var(--ok); }

/* Download oficial */
.getapp { background: var(--slate-2); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 2rem 0; }
.getapp-title { margin: 0 0 .5rem; font-weight: 800; }
.getapp ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.getapp a { display: inline-block; background: #fff; color: var(--slate); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; text-decoration: none; }
.getapp-note { margin: 0; font-size: .85rem; color: #cbd5e1; }

/* Fontes */
.sources ol { padding-left: 1.3rem; font-size: .92rem; }
.sources li { margin-bottom: .35rem; }
.checked { color: var(--slate-3); font-size: .85em; white-space: nowrap; }

/* Cartões de artigo */
.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { display: flex; flex-direction: column; gap: .35rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; text-decoration: none; color: var(--slate); }
.card a:hover { border-color: var(--purple); }
.card-kind { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.card-title { font-weight: 800; line-height: 1.3; }
.card-text { font-size: .9rem; color: var(--slate-3); }
.more { font-weight: 700; }
.more::after { content: " →"; }

/* Home */
.home-hero-band { background: linear-gradient(135deg, #1b2234 0%, #2c1f5c 100%); color: #f8fafc; padding: 2.5rem 0 2.75rem; border-bottom: 4px solid var(--purple); }
.home-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-eyebrow { display: inline-block; margin: 0 0 .75rem; padding: .22rem .75rem; border-radius: 999px; background: rgb(255 255 255 / 12%); color: #d8ccff; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.home-hero-copy h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin: 0 0 .8rem; }
.hero-lead { color: #cbd5e1; font-size: 1.06rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 54ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; list-style: none; margin: 0 0 1.35rem; padding: 0; }
.hero-stats li { display: flex; align-items: baseline; gap: .45rem; }
.hero-stats strong { font-family: var(--head); font-size: 1.45rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: .88rem; color: #cbd5e1; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; }
.btn-light { display: inline-flex; align-items: center; padding: .6rem 1.15rem; border-radius: 999px; background: #fff; color: var(--purple-deep); font-weight: 700; font-size: .95rem; text-decoration: none; }
.btn-light:hover { background: var(--purple-soft); color: var(--purple-deep); }
.hero-text-link { color: #d8ccff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.hero-text-link:hover { color: #fff; text-decoration: underline; }

.featured-card { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; background: #fff; color: var(--slate); border-radius: 16px; padding: 1.35rem; box-shadow: 0 18px 38px rgb(0 0 0 / 28%); }
.featured-badge { margin: 0 0 .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--purple); }
.featured-card h2 { margin: 0 0 .55rem; font-size: 1.22rem; line-height: 1.28; }
.featured-card h2 a { color: var(--slate); text-decoration: none; }
.featured-card h2 a:hover { color: var(--purple); }
.featured-summary { margin: 0 0 .6rem; font-size: .92rem; line-height: 1.5; color: var(--slate-2); }
.featured-result { margin: 0 0 .9rem; padding: .55rem .75rem; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: .86rem; line-height: 1.45; }
.featured-cta { margin: 0; }
.btn-primary { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.featured-shot { margin: 0; max-width: 155px; justify-self: center; }
.featured-shot img { width: 100%; height: auto; border-radius: 14px; border: 4px solid var(--slate); box-shadow: 0 10px 24px -14px rgb(15 23 42 / 55%); background: #fff; }

.section-head { margin: 2.5rem 0 1.25rem; max-width: 720px; }
.section-head h2 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.8vw, 1.75rem); }
.section-head p { margin: 0; color: var(--slate-3); font-size: .98rem; }

.panels { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.panel { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.panel-head { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 1rem; align-items: start; margin-bottom: .9rem; }
.panel-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.pill { display: inline-block; padding: .14rem .5rem; border-radius: 999px; background: var(--purple-soft); color: var(--purple-deep); font-size: .74rem; font-weight: 700; }
.pill-muted { background: #eef1f6; color: var(--slate-2); }
.panel h3 { font-size: 1.28rem; margin: 0 0 .35rem; }
.panel h3 a { color: var(--slate); text-decoration: none; }
.panel h3 a:hover { color: var(--purple); }
.panel-verdict { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--ok); font-weight: 600; }
.panel-thumb { display: block; width: 86px; height: 132px; overflow: hidden; border-radius: 10px; border: 2px solid var(--slate-2); background: #fff; box-shadow: 0 6px 14px -10px rgb(15 23 42 / 55%); }
.panel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tasks { list-style: none; margin: 0 0 1rem; padding: 0; }
.tasks li { border-top: 1px solid var(--line); }
.tasks a { display: block; padding: .6rem 0; font-weight: 600; font-size: .95rem; line-height: 1.35; text-decoration: none; color: var(--slate); }
.tasks a:hover { color: var(--purple); }
.task-kind { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); margin-bottom: .1rem; }
.panel-review { margin: auto 0 0; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: .92rem; }

.panel-method { background: linear-gradient(155deg, var(--purple-deep) 0%, #24194d 100%); border-color: transparent; color: #f8fafc; }
.panel-method-kicker { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c9b8ff; }
.panel-method h3 { color: #fff; margin-bottom: .9rem; }
.panel-method-list { list-style: none; counter-reset: method; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .8rem; }
.panel-method-list li { counter-increment: method; position: relative; padding-left: 2.1rem; font-size: .93rem; line-height: 1.48; color: #e2e8f0; }
.panel-method-list li::before { content: counter(method); position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; font-size: .8rem; font-weight: 800; }
.panel-method-list strong { color: #fff; }
.panel-method .panel-review { border-top-color: rgb(255 255 255 / 18%); }
.panel-method .panel-review a { color: #fff; }

.home-overview { margin: 2.5rem 0 3rem; }
.home-overview .table-wrap { overflow-x: auto; }
.home-overview table { width: 100%; }

@media (min-width: 720px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-template-columns: minmax(0, 1fr) 150px; }
}
@media (min-width: 980px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.25rem; }
  .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Rodapé */
.sitefoot { margin-top: 3rem; background: var(--slate); color: #cbd5e1; padding: 1.6rem 0; font-size: .9rem; }
.sitefoot a { color: #fff; }
.independence { max-width: 760px; }
.footlinks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; margin: 1rem 0; padding: 0; }
.copy { margin: 0; color: #94a3b8; }
.guide, .review, .page { padding-bottom: 1rem; }
