:root {
  --ink: #1b2631; --teal: #1f5f6e; --teal-2: #2a7486; --amber: #f2b705; --green: #2e9e5b; --red: #c0392b;
  --steel: #5d6d7e; --steel-l: #8fa3ae; --soft: #eef2f4; --line: #d6dde1; --white: #fff;
  --radius: 12px; --shadow: 0 1px 2px rgba(27,38,49,.06), 0 6px 18px rgba(27,38,49,.06);
  --head: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --body: "Calibri", "Segoe UI", Carlito, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 19px; }
.kicker { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 .6em; }
.muted { color: var(--steel); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.top img { height: 30px; width: auto; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--teal); }
@media (max-width: 760px) { .top nav { gap: 12px; } .top nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); transition: transform .1s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffc61a; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost-dark { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding: 84px 0 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--amber); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: .25em; }
.hero p.lead { font-size: 20px; color: #d9e1e5; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 28px; }
.hero .facts div { font-size: 14px; color: #c5cfd5; }
.hero .facts b { display: block; font-family: var(--head); font-size: 28px; color: #fff; }
.rings { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 760px; height: 760px; z-index: 0; opacity: .9; }
.hero-art { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding: 56px 0; } .hero-art { display: none; } }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: var(--soft); }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.alt .card { box-shadow: none; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; margin-bottom: 14px; }
.step:nth-child(3) .num { background: var(--amber); color: var(--ink); }

/* modules */
.progress { display: flex; align-items: center; gap: 16px; margin: 8px 0 28px; flex-wrap: wrap; }
.bar { flex: 1; min-width: 220px; height: 10px; background: #dfe6ea; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s ease; }
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .mods { grid-template-columns: 1fr; } }
.mod { background: #fff; border-radius: var(--radius); padding: 20px 20px 18px 84px; position: relative; border: 2px solid transparent; transition: border-color .2s ease; }
.mod.done { border-color: var(--green); }
.mod .n { position: absolute; left: 20px; top: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.mod.done .n { background: var(--green); }
.mod h3 { margin-bottom: .3em; }
.mod p { margin: 0 0 12px; color: #3b4a56; font-size: 16px; }
.mod .row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.mod .row a { font-weight: 700; text-decoration: none; }
.mod label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--steel); }
.mod input { width: 18px; height: 18px; accent-color: var(--green); }

/* download */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } }

/* author */
.author { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.author .badge { width: 120px; height: 120px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: var(--amber); font-family: var(--head); font-size: 40px; font-weight: 700; }
@media (max-width: 600px) { .author { grid-template-columns: 1fr; } }

/* footer */
footer { background: var(--ink); color: #c5cfd5; padding: 40px 0; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
footer img { height: 34px; width: auto; }
footer a { color: #fff; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* quiz */
.page-head { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.page-head .kicker { color: var(--amber); }
.page-head p { color: #d9e1e5; max-width: 46em; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.rules div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.rules b { display: block; font-family: var(--head); color: var(--amber); font-size: 24px; }
@media (max-width: 760px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; }
.field input:focus { outline: none; border-color: var(--teal); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }
.err { color: var(--red); font-weight: 600; font-size: 15px; min-height: 1.4em; }
.q { background: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.q .meta { font-size: 13px; color: var(--steel); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.q h3 { font-family: var(--body); font-size: 19px; margin-bottom: 12px; }
.q .opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.q .opt:hover { border-color: var(--steel-l); }
.q .opt input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.q .opt.sel { border-color: var(--teal); background: #eef6f8; }
.sticky-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 14px 0; z-index: 10; }
.sticky-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.result { border-radius: var(--radius); padding: 32px; margin: 32px 0; }
.result.ok { background: #e6f4ec; border: 2px solid var(--green); }
.result.no { background: #fbeceb; border: 2px solid var(--red); }
.result .score { font-family: var(--head); font-size: 56px; font-weight: 700; line-height: 1; margin: 6px 0 10px; }
.result.ok .score { color: var(--green); }
.result.no .score { color: var(--red); }
.code { font-family: "Courier New", monospace; font-weight: 700; font-size: 20px; background: #fff; padding: 6px 12px; border-radius: 8px; display: inline-block; letter-spacing: .04em; }
.review a { font-weight: 700; }
.notice { background: #fff7d6; border-radius: 10px; padding: 14px 18px; font-size: 15px; }
.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; }
@media (max-width: 760px) { .rings { opacity: .3; right: -460px; } }

/* sessão do aluno */
.top nav { align-items: center; }
.user { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.user .who { font-weight: 700; color: var(--teal); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--steel); text-decoration: underline; cursor: pointer; }
.btn-mini { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--teal); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.entrar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .entrar-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: transparent; padding: 10px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; color: var(--steel); cursor: pointer; }
.tab.on { background: #fff; color: var(--teal); box-shadow: 0 1px 3px rgba(27,38,49,.12); }
.painel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .painel { grid-template-columns: 1fr; } }
.painel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .painel-cards { grid-template-columns: 1fr; } }
.pcard { background: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; border-top: 4px solid var(--teal); }
.pcard:nth-child(2) { border-top-color: var(--amber); }
.pcard .lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.pcard b { font-family: var(--head); font-size: 24px; }
.pcard a { font-weight: 700; text-decoration: none; }
.mod .trava { font-weight: 700; text-decoration: none; }
.salvo { font-size: 14px; color: var(--green); font-weight: 600; }
.salvo.falha { color: var(--red); }
.voltar { margin: 0 0 14px; }
.voltar a { color: #cfd8e3; text-decoration: none; font-weight: 600; font-size: 15px; }
.voltar a:hover { color: #fff; text-decoration: underline; }
.pins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pins .field:has(+ .field.hidden) { grid-column: 1 / -1; }
@media (max-width: 520px) { .pins { grid-template-columns: 1fr; } }
.pins input { letter-spacing: .35em; font-family: "Courier New", monospace; font-weight: 700; }
