/* Objetivo Concentrado — folha de estilo única */
:root {
  --red: #c0192f;
  --red-dark: #9a1326;
  --red-soft: #fbe9ec;
  --red-tint: #fff5f6;
  --ink: #1d1d22;
  --ink-2: #4a4a55;
  --ink-3: #70707c;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
kbd { font-family: inherit; font-size: .85em; background: var(--bg-alt); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  padding: .6em 1.2em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-lg { padding: .8em 1.5em; font-size: 1.05rem; }
.btn-small { padding: .45em .95em; font-size: .92rem; }
.link-btn { background: none; border: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.link-btn:hover { color: var(--red); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a:not(.btn) { display: block; padding: .5em .8em; color: var(--ink-2); text-decoration: none; font-weight: 500; border-radius: 8px; }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { color: var(--red); background: var(--red-tint); }
.btn-nav { padding: .5em 1.1em; font-size: .95rem; }
.btn-nav[aria-current="page"] { background: var(--red-dark); border-color: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: .7em .6em; }
  .btn-nav { margin-top: 8px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--red-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-timer { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mini-ring {
  width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--red) 0 75%, var(--red-soft) 75% 100%); position: relative; box-shadow: var(--shadow);
}
.mini-ring::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.mini-ring span, .mini-ring small { position: relative; }
.mini-ring span { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mini-ring small { text-transform: uppercase; letter-spacing: .15em; color: var(--ink-3); font-size: .75rem; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mini-steps li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; color: var(--ink-2); }
.mini-steps b { color: var(--red); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0; }
  .hero-timer { order: -1; }
  .mini-ring { width: 150px; height: 150px; }
  .mini-ring span { font-size: 2rem; }
}

/* Seções */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-3); }

/* Grades e cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,20,30,.06), 0 12px 28px rgba(20,20,30,.09); }
.card-cat { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); text-decoration: none; margin-bottom: 8px; }
.card-title { font-size: 1.12rem; margin-bottom: .5em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: .6em; }
.card-meta { margin-top: auto; font-size: .82rem; color: var(--ink-3); margin-bottom: 0 !important; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cat-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--red); transform: translateY(-2px); color: var(--ink); }
.cat-icon, .page-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.cat-icon svg, .page-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-body { display: flex; flex-direction: column; gap: 4px; }
.cat-body strong { font-size: 1.05rem; }
.cat-body span { color: var(--ink-2); font-size: .95rem; }
.cat-body em { font-style: normal; color: var(--ink-3); font-size: .82rem; }
.page-icon { width: 56px; height: 56px; flex-basis: 56px; margin-bottom: 12px; }
.page-icon svg { width: 30px; height: 30px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--red); color: #fff; border-radius: 20px; padding: 32px 36px; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; max-width: 60ch; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--red-tint); }

/* Cabeçalho de página / breadcrumb */
.breadcrumb { margin: 20px 0 8px; font-size: .88rem; color: var(--ink-3); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.page-head { padding: 12px 0 28px; }
.page-head-center { text-align: center; }
.page-head-center .lead { margin-inline: auto; }
.page-head .lead { margin-bottom: .6em; }
.article-meta { color: var(--ink-3); font-size: .9rem; }
.chip-list, .chip-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: .4em .95em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: .92rem; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.other-cats, .how-to { margin: 40px 0 48px; }
.how-to { background: var(--bg-alt); border-radius: var(--radius); padding: 24px 28px; }
.how-to p { margin: 0; max-width: none; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; }
.search { flex: 1 1 280px; }
.search input { width: 100%; padding: .7em 1em; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem; background: #fff; }
.search input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.result-count { color: var(--ink-3); font-size: .9rem; margin: 0 0 16px; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-3); }
.page-article .grid, #lista-artigos { margin-bottom: 48px; }

/* Artigo */
.article { padding-bottom: 24px; }
.article-head { padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; max-width: 860px; }
.article-head h1 { max-width: 24ch; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } }
.article-body { max-width: var(--measure); font-size: 1.08rem; }
.article-body h2 { margin-top: 1.8em; padding-top: .2em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p, .article-body li { color: #2b2b33; }
.article-body ul li::marker { color: var(--red); }
.article-body strong { color: var(--ink); }
.article-simple .article-body { max-width: 76ch; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; font-size: .95rem; }
.toc-title { font-weight: 700; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; margin-bottom: .25em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.box { background: var(--red-tint); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.4em 0; }
.box-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--red); margin-bottom: .3em; }
.box p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
.cta-pomodoro { margin: 2.2em 0 1.5em; padding: 18px 22px; border: 1px dashed var(--red); border-radius: var(--radius); background: #fff; }
.cta-pomodoro p { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.pager-next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }
.article-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .article-side { position: static; } }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.side-title { font-weight: 700; margin-bottom: .4em; }
.side-box p { font-size: .95rem; color: var(--ink-2); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-top: 1px solid var(--line); padding: .55em 0; margin: 0; font-size: .93rem; }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a { color: var(--ink-2); text-decoration: none; }
.side-list a:hover { color: var(--red); }
.related { padding: 32px 0 56px; border-top: 1px solid var(--line); margin-top: 24px; }

/* Formulário de contato */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-bottom: 36px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; padding: .65em .85em; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--ink-2); margin: 0; }
.form-status.is-error { color: var(--red-dark); }
.form-status.is-ok { color: #1d7a3a; }

/* Pomodoro */
.pomodoro { max-width: 560px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px 24px 24px; text-align: center; }
.pomo-modes { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 20px; }
.pomo-mode { border: 0; background: transparent; padding: .5em 1.1em; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pomo-mode.is-active { background: var(--red); color: #fff; }
.pomo-ring-wrap { position: relative; width: 260px; height: 260px; margin: 0 auto 10px; }
.pomo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--red-soft); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 565.48; stroke-dashoffset: 0; transition: stroke-dashoffset .5s linear, stroke .3s; }
.pomodoro.mode-short .ring-fg, .pomodoro.mode-long .ring-fg { stroke: #1d7a3a; }
.pomodoro.mode-short .pomo-mode.is-active, .pomodoro.mode-long .pomo-mode.is-active { background: #1d7a3a; }
.pomo-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; padding-bottom: 20px; }
.pomo-label { position: absolute; left: 0; right: 0; top: 62%; margin: 0; color: var(--ink-3); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.pomo-status { color: var(--ink-2); margin-bottom: 18px; }
.pomo-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pomo-hint { font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.pomo-settings { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 18px; }
.pomo-settings summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pomo-settings summary::-webkit-details-marker { display: none; }
.pomo-settings summary::after { content: "+"; font-size: 1.3em; color: var(--ink-3); }
.pomo-settings[open] summary::after { content: "–"; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 4px 0 16px; }
.settings-grid label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.settings-grid input[type="number"] { font: inherit; padding: .5em .7em; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.settings-grid .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.settings-grid .check input { width: 18px; height: 18px; accent-color: var(--red); }
.settings-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.pomo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pomo-stats div { display: flex; flex-direction: column; }
.pomo-stats strong { font-size: 1.6rem; color: var(--red); line-height: 1.1; }
.pomo-stats span { font-size: .8rem; color: var(--ink-3); }
.pomo-stats .link-btn { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.pomo-help { max-width: 72ch; margin: 0 auto 56px; }
.pomo-help h2 { margin-top: 1.6em; }
@media (max-width: 480px) {
  .pomo-ring-wrap { width: 220px; height: 220px; }
  .pomo-time { font-size: 3rem; }
  .settings-grid { grid-template-columns: 1fr; }
  .pomo-modes { display: flex; }
  .pomo-mode { flex: 1; padding: .5em .4em; font-size: .9rem; }
}
body.page-pomodoro.is-running .site-header { opacity: .85; }

/* Rodapé */
.site-footer { background: #1d1d22; color: #c9c9d1; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { margin-bottom: 10px; }
.footer-col p { font-size: .93rem; margin-bottom: .5em; }
.footer-col strong { color: #fff; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: .8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45em; font-size: .93rem; }
.footer-col a { color: #c9c9d1; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #33333a; padding: 16px 0 24px; font-size: .85rem; color: #9a9aa5; }
.footer-bottom p { margin: 0; }

/* Aviso de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(20,20,30,.18); padding: 14px 18px; display: flex; align-items: center; gap: 16px; max-width: 760px; margin-inline: auto; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; } }

@media print {
  .site-header, .site-footer, .cookie-bar, .article-side, .related, .cta-pomodoro, .pager { display: none !important; }
  body { font-size: 11pt; }
}
