@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --deep: #172554;
  --violet: #635BFF;
  --violet-strong: #4F46E5;
  --lavender: #A5B4FC;
  --lavender-light: #F3F1FF;
  --bg: #F5F7FB;
  --ink: #172554;
  --text: #334155;
  --muted: #5B6578;
  --line: #E2E6EF;
  --line-strong: #CBD2E1;
  --white: #FFFFFF;
  --tip-bg: #EEF9F2; --tip-ink: #116B33; --tip-line: #BFE6CD;
  --warn-bg: #FDF3E4; --warn-ink: #8A4B04; --warn-line: #F3D3A4;
  --r: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-strong); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
code { font-size: .9em; background: var(--lavender-light); padding: 1px 6px; border-radius: 6px; color: var(--deep); }
.i { flex: none; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--violet); color: var(--white); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--violet-strong); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--lavender-light); color: var(--ink); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 14px; }

/* topo */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top__in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 600; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 10px; font-size: 15px; }
.top__app { margin-left: auto; flex: none; }

/* busca */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,91,255,.15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px var(--font); color: var(--ink); height: 42px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search--top { flex: 1; max-width: 460px; }
.search--hero { max-width: 640px; margin: 0 auto; border-radius: 16px; padding: 0 20px; box-shadow: 0 10px 40px rgba(10, 18, 60, .25); border: 0; }
.search--hero input { height: 60px; font-size: 17px; }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(23,37,84,.16); max-height: min(70vh, 460px); overflow: auto; padding: 6px; text-align: left; z-index: 60; }
.result { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.result:hover, .result[aria-selected="true"] { background: var(--lavender-light); }
.result strong { display: block; color: var(--ink); font-size: 15px; }
.result span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.result em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--violet-strong); }
.result mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.no-result { padding: 12px; font-size: 14px; color: var(--muted); }

/* layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; }
.wrap--wide { max-width: none; padding: 0 0 64px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet-strong); text-decoration: underline; }

/* início */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(99,91,255,.55), transparent 60%), radial-gradient(800px 300px at 0% 120%, rgba(165,180,252,.35), transparent 60%), var(--deep); color: #DCE3F7; text-align: center; padding: 72px 24px 88px; }
.hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; }
.hero p { margin: 0 auto 32px; max-width: 560px; font-size: 18px; }
.home-grid { max-width: 1240px; margin: -40px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; position: relative; }
.cat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card { display: grid; gap: 6px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--lavender); box-shadow: 0 10px 30px rgba(23,37,84,.08); transform: translateY(-2px); color: var(--text); }
.cat-card strong { color: var(--ink); font-size: 18px; margin-top: 8px; }
.cat-card span:not(.cat-ico) { font-size: 15px; color: var(--muted); line-height: 1.5; }
.cat-card em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--violet-strong); margin-top: 4px; }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--lavender-light); color: var(--violet-strong); display: inline-grid; place-items: center; }
.popular { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.popular h2 { font-size: 18px; margin: 0 0 10px; }
.popular ul { list-style: none; margin: 0; padding: 0; }
.popular li a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--line); }
.popular li:last-child a { border-bottom: 0; }
.popular li a .i { color: var(--violet); margin-top: 2px; }
.popular li a:hover { color: var(--violet-strong); }
.start { margin-top: 16px; background: var(--lavender-light); border-radius: 12px; padding: 16px; font-size: 14px; }
.start strong { color: var(--ink); }
.start p { margin: 4px 0 0; }
.flow { max-width: 1240px; margin: 48px auto 0; padding: 0 24px; }
.flow h2 { font-size: 22px; margin: 0 0 16px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 4px; }
.flow li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.flow strong { color: var(--ink); }
.flow span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* artigo */
.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc__side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.side__group { border-bottom: 1px solid var(--line); }
.side__group summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 11px 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.side__group summary::-webkit-details-marker { display: none; }
.side__group summary .i { color: var(--violet); }
.side__group ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 34px; }
.side__group li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--text); text-decoration: none; }
.side__group li a:hover { background: var(--white); color: var(--violet-strong); }
.side__group li a[aria-current="page"] { background: var(--lavender-light); color: var(--violet-strong); font-weight: 600; }
.doc__main { max-width: 820px; min-width: 0; }
.eyebrow { margin: 0 0 8px; }
.eyebrow a { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--violet-strong); }
.doc__main h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.prose > p, .prose li { font-size: 16.5px; }
.prose h2 { font-size: 23px; margin: 40px 0 12px; padding-top: 4px; }
.prose strong { color: var(--ink); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 24px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 56px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.list { padding-left: 22px; margin: 12px 0 20px; }
.list li { margin: 6px 0; }
.list li::marker { color: var(--violet); }

.shot { margin: 24px 0 32px; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(23,37,84,.10); background: var(--white); cursor: zoom-in; }
.shot img { width: 100%; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.shot--phone { max-width: 300px; margin-left: auto; margin-right: auto; }
.shot--phone a { border-radius: 22px; border: 6px solid #1E2A4F; }
.shot--narrow { max-width: 340px; margin-left: auto; margin-right: auto; }
.cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-items: start; margin: 24px 0 32px; }
.shots .shot { margin: 0; max-width: none; }

.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin: 20px 0; border: 1px solid; }
.callout p { margin: 2px 0 0; font-size: 15.5px; }
.callout strong { color: inherit; }
.callout .i { margin-top: 3px; }
.callout--tip { background: var(--tip-bg); color: var(--tip-ink); border-color: var(--tip-line); }
.callout--warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.callout--tip p, .callout--warn p { color: var(--text); }

.faqs { display: grid; gap: 10px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0; padding: 0 18px 16px; }
.faq:target { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,91,255,.12); }

.helpful { margin: 40px 0 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.helpful span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.helpful__thanks { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.pager a span { font-size: 13px; font-weight: 500; color: var(--muted); }
.pager a:hover { border-color: var(--lavender); }
.pager__next { text-align: right; }

/* categoria */
.cat-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.cat-head h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 36px); }
.cat-head .lead { margin: 0; }
.cat-head .cat-ico { width: 56px; height: 56px; border-radius: 14px; }
.art-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.art-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.art-link strong { color: var(--ink); font-size: 17px; }
.art-link span { grid-column: 1; font-size: 15px; color: var(--muted); }
.art-link .i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--violet); }
.art-link:hover { border-color: var(--lavender); color: var(--text); }

/* busca */
.search-page { max-width: 760px; margin: 24px auto; }
.search-page h1 { font-size: 34px; margin: 0 0 18px; }
.search-page .search--hero { box-shadow: none; border: 1px solid var(--line-strong); margin: 0; }
.search-page__results { margin-top: 20px; display: grid; gap: 8px; }
.search-page__results .result { background: var(--white); border: 1px solid var(--line); padding: 14px 16px; }

/* rodapé */
.foot { background: var(--white); border-top: 1px solid var(--line); }
.foot__in { max-width: 1240px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.foot__help strong { color: var(--ink); font-size: 18px; }
.foot__help p { margin: 4px 0 14px; color: var(--muted); }
.foot__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; align-content: start; }
.foot__links a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--violet-strong); }
.foot__copy { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.foot__copy a { color: var(--muted); }

/* zoom de imagem */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 40, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 100px); width: auto; border-radius: 10px; background: var(--white); }
.lightbox figcaption { color: #DCE3F7; font-size: 15px; text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 1000px) {
  .home-grid { grid-template-columns: 1fr; }
  .flow ol { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc__side { position: static; max-height: none; order: 2; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .top__in { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .top__app { display: none; }
  .search--top { order: 3; flex-basis: 100%; max-width: none; }
  .brand span { display: none; }
  .wrap { padding: 16px 16px 48px; }
  .wrap--wide { padding: 0 0 48px; }
  .hero { padding: 44px 16px 72px; }
  .hero p { font-size: 16px; }
  .search--hero input { height: 54px; font-size: 16px; }
  .home-grid { padding: 0 16px; }
  .cat-cards { grid-template-columns: 1fr; }
  .flow { padding: 0 16px; }
  .flow ol { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; padding: 28px 16px; }
  .steps li { padding-left: 50px; }
  .shots { grid-template-columns: 1fr; }
  .shot--phone { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .top, .foot, .doc__side, .helpful, .pager, .lightbox { display: none !important; }
  .doc { display: block; }
  .shot a { box-shadow: none; }
  body { background: #fff; }
}
.shots .shot--narrow, .shots .shot--phone { max-width: 300px; width: 100%; margin: 0 auto; }
