/* Manual da Programação — estilos do site (baseado em docs/mockup.html) */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800 900;
  font-display: swap;
  src: url('../fonts/montserrat-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --ink: #24214A;
  --ink-2: #2F2B66;
  --ink-3: #3F3B78;
  --ink-deep: #1E1B45;
  --ink-footer: #1B1838;
  --brand: #5F5AA2;
  --brand-hover: #4B4690;
  --brand-soft: #EFEEF9;
  --brand-light: #8C86E0;
  --yellow: #F4BF2E;
  --yellow-dark: #E8AE14;
  --yellow-soft: #FDF3D3;
  --yellow-ink: #B07A00;
  --yellow-text: #8A5E00;
  --muted: #55526E;
  --on-dark: #D9D7F0;
  --on-dark-2: #B3B0D6;
  --code-text: #CFCDEB;
  --code-green: #9EE6B8;
  --line: #E6E4F2;
  --line-2: #ECEAF5;
  --line-3: #E3E1F0;
  --bg: #FFFFFF;
  --bg-alt: #F7F6FC;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-hover); text-decoration: none; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section--alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; }
.mono { font-family: var(--mono); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.topbar .container { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--yellow); }
.topbar__msg { display: flex; align-items: center; gap: 10px; }
.topbar__meta { color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-2); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.brand__mark img { width: 32px; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__small { font-size: 15px; font-weight: 500; color: var(--brand); }
.brand__big { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.site-footer .brand__small { color: var(--yellow); }
.site-footer .brand__big { color: #fff; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.main-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); }
.main-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-hover); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-3); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--brand-soft); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 16px; font-family: inherit; border: 0; cursor: pointer; white-space: nowrap; }
.btn--sm { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; gap: 8px; }
.btn--md { height: 48px; padding: 0 20px; border-radius: 12px; font-size: 15px; gap: 8px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 15px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); font-weight: 800; }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand-soft); color: var(--ink); }
.btn--outline { background: #fff; border: 2px solid var(--ink); color: var(--ink); padding: 0 24px; }
.btn--outline:hover { background: var(--brand-soft); color: var(--ink); }
.btn--outline-light { background: transparent; border: 2px solid var(--brand); color: #fff; }
.btn--outline-light:hover { background: var(--ink-2); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--brand-hover); }

/* ---------- Tags / labels ---------- */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--brand); text-transform: uppercase; }
.eyebrow--yellow { color: var(--yellow); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 8px; text-transform: uppercase; }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--ink3 { background: var(--ink-3); color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.tag--soft { background: var(--brand-soft); color: var(--ink-3); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.pill--purple { background: var(--brand-soft); color: var(--ink-3); }
.pill--yellow { background: var(--yellow-soft); color: #7A5300; }
.badge-new { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head__title { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.h2 { margin: 0; font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }

/* ---------- Hero (home) ---------- */
.hero .container { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 8px 14px 8px 8px; border-radius: 999px; }
.hero__chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--brand); color: #fff; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; }
.highlight { box-shadow: inset 0 -0.32em 0 var(--yellow); padding: 0 4px; }
.hero .lead { max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: 28px; font-weight: 800; }
.stat__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.stats__sep { width: 1px; background: var(--line-3); }
.hero__art { flex: 1 1 480px; min-width: 0; position: relative; border-radius: 32px; overflow: hidden; background: var(--yellow); }
.hero__art-shape { position: absolute; inset: 0; background: var(--brand); clip-path: polygon(62% 0, 100% 0, 100% 100%, 34% 100%); }
.hero__binary { position: absolute; top: 26px; right: 26px; font-weight: 900; font-size: 64px; line-height: 0.92; letter-spacing: 0.02em; color: var(--brand-light); text-align: right; white-space: pre-line; }
.hero__byline { position: absolute; top: 22px; left: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.hero__photo { position: relative; z-index: 1; display: block; width: 86%; max-width: 560px; height: auto; margin: 56px 0 0 2%; }
.hero__card { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 16px; border-radius: 18px; max-width: 250px; color: var(--ink); }
.hero__card:hover { color: var(--ink); }
.hero__card-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.hero__card small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--brand); }
.hero__card strong { font-size: 14px; font-weight: 700; line-height: 1.3; }

/* ---------- Page hero (internal) ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line-2); }
.page-hero .container { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 900; letter-spacing: -0.03em; max-width: 860px; }
.page-hero .lead { max-width: 720px; }
.page-hero--dark { background: var(--ink-2); color: #fff; border-bottom: 0; position: relative; overflow: hidden; }
.page-hero--dark .lead { color: var(--on-dark); }
.page-hero--dark .breadcrumb, .page-hero--dark .breadcrumb a { color: var(--on-dark); }
.page-hero--yellow { background: var(--yellow); border-bottom: 0; }
.page-hero--yellow .lead { color: #3A3530; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-hover); }
.breadcrumb span[aria-hidden] { opacity: 0.6; }

/* ---------- Cursos ---------- */
.courses { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.course-feature { flex: 1.3 1 520px; min-width: 0; background: var(--ink-2); color: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.course-feature::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 999px; background: var(--ink-3); }
.course-feature > * { position: relative; }
.course-feature h3 { margin: 0; font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }
.course-feature p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-dark); max-width: 460px; }
.text-yellow { color: var(--yellow); }
.code-block { background: var(--ink-deep); border-radius: 16px; padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--code-text); white-space: pre; overflow-x: auto; }
.code-block .k { color: var(--brand-light); }
.code-block .t { color: var(--yellow); }
.code-block .s { color: var(--code-green); }
.code-block .c { color: #8F8CB8; font-style: italic; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.check svg { flex: none; }
.course-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.course-card { flex: 1 1 auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.course-card h3 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.course-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.course-card .btn { align-self: flex-start; margin-top: auto; }
.course-card--yellow { background: var(--yellow); border: 0; }
.course-card--yellow p { color: #3A3530; max-width: 380px; }
.course-card--yellow > * { position: relative; }
.course-card__ai { position: absolute !important; right: 20px; bottom: 6px; font-family: var(--mono); font-weight: 700; font-size: 84px; color: var(--yellow-dark); line-height: 1; }
.course-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-tile { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile--purple { background: var(--brand-soft); color: var(--brand); }
.icon-tile--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.icon-tile--ink { background: var(--ink); color: var(--yellow); }
.icon-tile--brand { background: var(--brand); color: #fff; }
.icon-tile--sm { width: 52px; height: 52px; border-radius: 14px; }

/* ---------- Trilhas ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.track { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.track:hover { border-color: var(--brand); color: var(--ink); box-shadow: 0 6px 20px rgba(36, 33, 74, 0.06); }
.track__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.track__name { font-size: 17px; font-weight: 700; }
.track__sub { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Video grid ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.video { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.video:hover { color: var(--brand-hover); }
.video__thumb { position: relative; display: block; }
.video__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; background: var(--brand-soft); }
.video__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(27, 24, 56, 0.86); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; font-family: var(--mono); }
.video__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.video__meta { font-size: 13px; font-weight: 500; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-3); color: var(--ink); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.track-block { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; scroll-margin-top: 110px; }
.track-block + .track-block { border-top: 1px solid var(--line-2); margin-top: 48px; }
.track-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.track-block__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.track-block__head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.track-block__title { display: flex; align-items: center; gap: 16px; }
.is-hidden { display: none !important; }

/* ---------- Artigos ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.article-card h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand-hover); }
.article-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.article-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-hover); }

/* ---------- Article page (prose) ---------- */
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.prose { flex: 1 1 560px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.75; color: #34314F; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 1.8em 0 0; }
.prose h3 { font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); margin: 1.5em 0 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--brand-soft); color: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.prose .code-block code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose .code-block { margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 800; color: var(--ink); }
.callout { background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 18px 20px; color: #4A3A10; }
.callout strong { color: var(--ink); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.aside-card { border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.aside-card h2, .aside-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.aside-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.aside-card--dark { background: var(--ink-2); border: 0; color: #fff; }
.aside-card--dark p { color: var(--on-dark); }
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--brand-hover); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Notícias ---------- */
.news { display: flex; flex-wrap: wrap; gap: 24px; }
.news-feature { flex: 1.2 1 460px; min-width: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.news-feature__art { position: relative; height: 260px; background: var(--brand); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.news-feature__art::before { content: ""; position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(0 0, 46% 0, 28% 100%, 0 100%); }
.news-feature__art .code-block { position: relative; font-size: 16px; line-height: 1.7; padding: 18px 22px; border-radius: 14px; }
.news-feature__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.news-feature__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.news-feature h3 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
.news-feature h3 a { color: #fff; }
.news-feature h3 a:hover { color: var(--yellow); }
.news-feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.news-list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.news-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { color: var(--brand-hover); }
.news-item__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-item__kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand); text-transform: uppercase; }
.news-item__kicker--yellow { color: var(--yellow-text); }
.news-item__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-item__desc { font-size: 15px; line-height: 1.55; color: var(--muted); font-weight: 500; }

/* ---------- Downloads ---------- */
.downloads { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.panel { flex: 1.6 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.panel__head { display: flex; align-items: flex-start; gap: 16px; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 24px; font-weight: 800; }
.panel__head p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.file-list { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.file-row:last-child { border-bottom: 0; }
.file-row__info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.file-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--brand-soft); padding: 6px 10px; border-radius: 8px; }
.file-row__title { font-size: 15px; font-weight: 600; }
.file-row__sub { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.btn-download { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.btn-download:hover { background: var(--yellow-dark); color: var(--ink); }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.ebook { flex: 1 1 320px; min-width: 0; background: var(--brand); color: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ebook h2, .ebook h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.ebook p { margin: 0; font-size: 15px; line-height: 1.6; color: #E4E2F6; }
.ebook .btn { align-self: flex-start; margin-top: auto; }
.ebook-cover-wrap { display: flex; justify-content: center; padding: 8px 0; }
.ebook-cover { width: 170px; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; background: var(--yellow); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; box-shadow: -8px 0 0 var(--yellow-dark) inset; }
.ebook-cover__logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.ebook-cover__logo img { width: 22px; height: auto; display: block; }
.ebook-cover__text { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.ebook-cover__text small { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.ebook-cover__text strong { font-size: 17px; font-weight: 900; line-height: 1.1; }

/* ---------- Forms / dialog ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 14px; font-weight: 700; }
.input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line-3); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row .input { flex: 1 1 240px; }
.form-msg { font-size: 14px; font-weight: 600; color: #1F7A4D; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px !important; font-weight: 500 !important; color: var(--muted); line-height: 1.5; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

dialog.modal { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 30px 80px rgba(27, 24, 56, 0.35); }
dialog.modal::backdrop { background: rgba(27, 24, 56, 0.55); }
.modal__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.modal__head p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Search */
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--brand-soft); }
.search-results small { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand); text-transform: uppercase; }
.search-results span { font-size: 15px; font-weight: 600; line-height: 1.35; }
.search-empty { font-size: 14px; color: var(--muted); }

/* ---------- Sobre ---------- */
.about { display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 32px; overflow: hidden; background: var(--ink); }
.about__art { flex: 1 1 360px; min-width: 0; position: relative; background: var(--yellow); display: flex; align-items: flex-end; justify-content: center; padding-top: 40px; }
.about__art::before { content: ""; position: absolute; inset: 0; background: var(--brand); clip-path: polygon(78% 0, 100% 0, 100% 100%, 60% 100%); }
.about__glyph { position: absolute; left: 28px; top: 24px; font-family: var(--mono); font-weight: 700; font-size: 72px; color: var(--yellow-dark); line-height: 1; }
.about__art img { position: relative; display: block; width: 82%; max-width: 360px; height: auto; }
.about__copy { flex: 1.3 1 440px; min-width: 0; padding: 56px; color: #fff; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.about__copy h2, .about__copy h1 { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.about__copy p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--on-dark); max-width: 540px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.about-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ink-2); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.about-chip b { color: var(--yellow); font-weight: 800; }

/* ---------- Generic blocks ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.module { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.module__num { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.module h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
.module p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.price-box { background: var(--ink-2); color: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.price-box__old { font-size: 16px; color: var(--on-dark); text-decoration: line-through; }
.price-box__now { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.price-box__now small { font-size: 22px; font-weight: 700; }
.price-box p { margin: 0; color: var(--on-dark); font-size: 15px; line-height: 1.6; }
.guarantee { display: flex; gap: 20px; align-items: center; background: var(--yellow-soft); border-radius: 24px; padding: 28px; }
.guarantee__seal { flex: none; width: 88px; height: 88px; border-radius: 999px; background: var(--yellow); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; line-height: 1; box-shadow: 0 0 0 6px #fff inset; }
.guarantee__seal b { font-size: 30px; }
.guarantee__seal span { font-size: 11px; letter-spacing: 0.08em; }
.guarantee h3 { margin: 0; font-size: 20px; font-weight: 800; }
.guarantee p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: #4A3A10; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: #34314F; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 800; }
.quote figcaption span { font-size: 13px; font-weight: 600; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.cta-band { background: var(--yellow); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; max-width: 620px; }
.cta-band p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #3A3530; max-width: 620px; }
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 3px solid var(--brand-soft); margin-left: 10px; }
.timeline__item { position: relative; padding: 0 0 28px 28px; }
.timeline__item::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px #fff; }
.timeline__item h3 { margin: 0; font-size: 18px; font-weight: 800; }
.timeline__item p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.social-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); font-weight: 700; }
.social-link:hover { border-color: var(--brand); color: var(--ink); }
.social-link small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-footer); color: var(--on-dark); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-2); color: #fff; display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #fff; }
.footer-col a { color: var(--on-dark); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--ink-2); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line-2); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 720px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .h2 { font-size: 32px; }
  .hero .container { padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .hero__binary { font-size: 40px; }
  .hero__card { position: relative; right: auto; bottom: auto; margin: -8px 16px 16px; max-width: none; }
  .course-feature, .panel, .price-box { padding: 28px 22px; }
  .course-card, .ebook { padding: 26px 22px; }
  .about__copy { padding: 36px 24px; }
  .about__copy h2, .about__copy h1 { font-size: 30px; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; }
  .header-actions .btn { padding: 0 14px; }
  .brand__big { font-size: 19px; }
  .stats__sep { display: none; }
  .btn { white-space: normal; text-align: center; }
  .guarantee { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 25px; }
  .aside { position: static; }
  .topbar__meta { display: none; }
}
@media (max-width: 420px) {
  .header-actions .btn--primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
