/* Caderno da Facul · vitrine, ajuda, termos e privacidade (cadernodafacul.com.br)
   Mesma papelaria brutalista da marca (marca/tokens.css): folha quadriculada, borda grossa,
   sombra dura, caneta azul e marca-texto. Fontes self-hosted em /pedagogia/fonts. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/pedagogia/fonts/Archivo-normal-400-900-latin.woff2") format("woff2");
  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: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/pedagogia/fonts/Archivo-normal-400-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/pedagogia/fonts/AtkinsonHyperlegible-normal-400-latin.woff2") format("woff2");
  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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/pedagogia/fonts/AtkinsonHyperlegible-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/pedagogia/fonts/AtkinsonHyperlegible-normal-700-latin.woff2") format("woff2");
  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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/pedagogia/fonts/AtkinsonHyperlegible-normal-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/pedagogia/fonts/JetBrainsMono-normal-600-latin.woff2") format("woff2");
  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; }

:root {
  --paper: #F1F2F4; --sheet: #FFFFFF; --ink: #111215; --muted: #565964; --grid: rgba(17, 18, 21, .075);
  --blue: #1D3BFF; --blue-deep: #1027C9; --blue-soft: #E3E8FF; --red: #E0301E; --red-soft: #FDE7E3;
  --mark: #FFE81A; --on-mark: #111215; --green: #0C8A4F; --green-soft: #DDF3E8;
  --bw: 2px; --bw-lg: 3px; --shadow: 5px 5px 0 var(--ink); --shadow-sm: 3px 3px 0 var(--ink);
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px; --max: 1120px; --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mark); color: var(--ink); border: var(--bw) solid var(--ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-weight: 600; }
.mk { color: var(--on-mark); background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% 84%; padding: 0 .12em; margin: 0 -.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag { justify-self: start; display: inline-block; font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: var(--bw) solid var(--ink); background: var(--sheet); padding: 3px 9px; }
.tag.ok { background: var(--green-soft); }
.tag.soon { background: var(--mark); }

/* topo */
.top { border-bottom: var(--bw-lg) solid var(--ink); background: var(--sheet); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { white-space: nowrap; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: 19px; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 10px; }
.top nav a:hover { text-decoration: underline; }
.top nav a.acc { border: var(--bw) solid var(--ink); background: var(--mark); box-shadow: var(--shadow-sm); }
.top nav a.acc:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 520px) { .top nav a.hide-sm { display: none; } .brand { font-size: 16px; gap: 8px; } .brand svg { width: 24px; height: 24px; } }
@media (max-width: 360px) { .brand svg { display: none; } }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: 17px; line-height: 1.15; text-decoration: none; text-align: center;
  color: #fff; background: var(--blue); border: var(--bw-lg) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); cursor: pointer;
}
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--mark); color: var(--on-mark); }
.btn.alt:hover { background: #FFF06B; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .2s; }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
  .btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
}

/* hero */
.hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 7vw, 80px); }
.hero .kicker { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.h1 { font-size: clamp(40px, 9.4vw, 92px); font-weight: 900; font-stretch: 120%; line-height: .92; letter-spacing: -.025em; text-transform: uppercase; max-width: 14ch; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 54ch; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 32px; }
.hero .ctas .link { font-weight: 700; color: var(--ink); }

/* seções */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.ruled { border-top: var(--bw-lg) solid var(--ink); }
.h2 { font-size: clamp(30px, 6vw, 52px); font-weight: 900; font-stretch: 118%; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; }
.head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 5vw, 48px); }
.head p { color: var(--muted); font-size: 18px; max-width: 58ch; }

/* cursos */
.cursos { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cursos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .curso.proximo { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .cursos { grid-template-columns: repeat(3, 1fr); } }
.curso.psicologia .capa { background: #1F3D35; padding: 0; min-height: 230px; max-height: 260px; align-items: stretch; }
.curso.psicologia .capa img { width: 100%; height: 260px; object-fit: cover; object-position: center 30%; }
.curso.direito .capa { background: #070C16; padding: 0; min-height: 230px; max-height: 260px; align-items: stretch; }
.curso.direito .capa img { width: 100%; height: 260px; object-fit: cover; object-position: center 22%; }
.curso { background: var(--sheet); border: var(--bw-lg) solid var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.curso .capa { background: var(--mark); border-bottom: var(--bw-lg) solid var(--ink); padding: 0 22px; display: flex; justify-content: center; overflow: hidden; }
.curso .corpo { padding: 22px; display: grid; gap: 14px; flex: 1; align-content: start; }
.curso h3 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: 1; }
.curso .nums { display: flex; flex-wrap: wrap; gap: 8px; }
.curso .nums span { font-family: var(--f-mono); font-weight: 600; font-size: 13px; border: 1.5px solid var(--ink); padding: 2px 8px; }
.curso .pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 8px; }
.curso .preco { font-family: var(--f-display); font-weight: 900; font-size: 28px; }
.curso .preco small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--muted); }
.curso.proximo { background: var(--paper); border-style: dashed; box-shadow: none; }
.curso.proximo .corpo { padding: 26px; }
.curso.proximo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.curso.proximo li { border: 1.5px solid var(--ink); background: var(--sheet); padding: 3px 10px; font-size: 15px; }

/* passos */
.passos { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: p; list-style: none; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passos li { background: var(--sheet); border: var(--bw) solid var(--ink); padding: 22px; position: relative; }
.passos li::before { counter-increment: p; content: counter(p); position: absolute; top: -16px; left: 18px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--blue); color: #fff; border: var(--bw) solid var(--ink); font-family: var(--f-display); font-weight: 900; }
.passos h3 { font-size: 20px; margin: 8px 0 6px; }
.passos p { color: var(--muted); }

/* lista de espera */
.espera { background: var(--ink); color: #F1F1EE; border-block: var(--bw-lg) solid var(--ink); }
.espera .h2 { color: #fff; }
.espera .head p { color: #C9CBD2; }
.form { display: grid; gap: 16px; max-width: 640px; background: var(--sheet); color: var(--ink); border: var(--bw-lg) solid var(--ink); box-shadow: 8px 8px 0 var(--mark); padding: clamp(20px, 4vw, 32px); }
.form .linha { display: grid; gap: 16px; }
@media (min-width: 600px) { .form .linha { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form select { width: 100%; min-height: 50px; font: inherit; color: var(--ink); background: var(--sheet); border: var(--bw) solid var(--ink); padding: 10px 12px; border-radius: 0; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.form input:focus, .form select:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.form .fino { font-size: 14px; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { border: var(--bw) solid var(--ink); padding: 12px 14px; font-weight: 700; }
.aviso.ok { background: var(--green-soft); }
.aviso.erro { background: var(--red-soft); }

/* ajuda curta */
.duvidas { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .duvidas { grid-template-columns: repeat(2, 1fr); } }
.duvidas article { background: var(--sheet); border: var(--bw) solid var(--ink); padding: 20px; }
.duvidas h3 { font-size: 19px; margin-bottom: 6px; }
.duvidas p { color: var(--muted); }
.contato { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* páginas de texto (ajuda, termos, privacidade) */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc .papel { background: var(--sheet); border: var(--bw-lg) solid var(--ink); box-shadow: var(--shadow); padding: clamp(22px, 5vw, 48px); max-width: 820px; }
.doc h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 900; font-stretch: 116%; text-transform: uppercase; line-height: .98; letter-spacing: -.02em; }
.doc .sub { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; padding-top: 18px; border-top: var(--bw) solid var(--ink); }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.doc details { border: var(--bw) solid var(--ink); background: var(--paper); margin-top: 12px; }
.doc summary { cursor: pointer; font-weight: 700; padding: 14px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-family: var(--f-mono); font-weight: 600; font-size: 20px; line-height: 1; }
.doc details[open] summary::after { content: "−"; }
.doc details > div { padding: 0 16px 16px; display: grid; gap: 10px; }
.doc .caixa { margin-top: 28px; background: var(--mark); border: var(--bw) solid var(--ink); padding: 18px; }

/* rodapé */
.foot { border-top: var(--bw-lg) solid var(--ink); background: var(--sheet); padding-block: 32px 40px; }
.foot .linha { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink); font-weight: 700; }
.foot small { display: block; color: var(--muted); margin-top: 16px; max-width: 80ch; font-size: 14px; }
