/* Cidade que Cresce: site (landing + curso). Same look as the census and the videos: sky behind, thick ink outlines,
   white "documents" on top, yellow for what you can press. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/montserrat-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Assinatura"; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/lora-sig.woff2) format("woff2"); }

:root {
  --sky-top: #58A4EE; --sky-bot: #D3ECFF;
  --on-sky: #0E2547; --on-sky-soft: #2B4C7E;
  --paper: #FFFFFF; --paper-2: #EEF3F9;
  --ink: #15171D; --muted: #5A6472;
  --yel: #FFD23F; --yel-2: #FFE27A; --green: #1F8A4C; --green-ink: #FFFFFF; --stamp: #C0392B;
  --night: #0E2547; --night-2: #18336B; --on-night: #EEF3FF; --on-night-soft: #B9C8E6;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sign: "Assinatura", Georgia, "Times New Roman", serif;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #0A1530; --sky-bot: #1A3062; --on-sky: #EAF1FF; --on-sky-soft: #B7C9EA;
    --night: #071027; --night-2: #11265A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky-top: #0A1530; --sky-bot: #1A3062; --on-sky: #EAF1FF; --on-sky-soft: #B7C9EA;
  --night: #071027; --night-2: #11265A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky-top); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0px, var(--sky-bot) 760px, var(--sky-bot) 100%);
  background-color: var(--sky-bot);
  color: var(--ink); font: 500 15px/1.5 var(--body);
  -webkit-tap-highlight-color: transparent;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 560px; margin: 0 auto; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.wrap { padding-left: var(--gut); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }

/* shared pieces */
.panel { background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 rgba(0,0,0,.22); }
.band {
  display: inline-block; font: 800 11.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--green); color: var(--green-ink); border: 3px solid var(--ink); border-radius: 999px; padding: 7px 13px;
}
.outlined {
  color: var(--yel); letter-spacing: .01em;
  text-shadow: 0 4px 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
               0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 9px 0 rgba(0,0,0,.2);
}
.eyebrow { font: 800 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 900 17px/1 var(--display); color: var(--ink); background: var(--yel); border: 3px solid var(--ink); border-radius: 999px;
  padding: 16px 24px; box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; text-align: center;
}
.btn:hover { background: var(--yel-2); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible, .go:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--yel); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-white { background: var(--paper); }
.btn-white:hover { background: var(--paper-2); }
.btn-wide { width: 100%; }

/* ---------- landing: hero ---------- */
.hero { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; min-height: 420px; overflow: hidden; background: #7FB6EA url(/assets/img/hero.jpg) center / cover no-repeat; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,21,48,.34) 0%, rgba(10,21,48,0) 18%, rgba(10,21,48,0) 46%, color-mix(in srgb, var(--sky-top) 70%, transparent) 76%, var(--sky-top) 100%);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .hero::after { background: linear-gradient(180deg, rgba(10,21,48,.34) 0%, rgba(10,21,48,0) 18%, rgba(10,21,48,0) 50%, var(--sky-top) 100%); }
}
.hero-top {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 900 14px/1 var(--display); letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.brand svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 800 13px/1 var(--display); color: var(--ink);
  background: rgba(255,255,255,.92); border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 12px;
}
.pill svg { width: 15px; height: 15px; }
.hero-txt {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 0 var(--gut) 52px;
}
.hero h1 { font: 900 clamp(44px, 13.4vw, 70px)/.94 var(--display); text-wrap: balance; }
.stats { font: 700 15px/1.3 var(--body); color: var(--on-sky); background: color-mix(in srgb, var(--paper) 80%, transparent); border-radius: 999px; padding: 6px 14px; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .stats { background: rgba(255,255,255,.8); } }
.stats b { font-weight: 900; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats { background: rgba(7,16,39,.72); } }
:root[data-theme="dark"] .stats { background: rgba(7,16,39,.72); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .7s cubic-bezier(.2,1.3,.4,1) .15s both; }
  .hero .band { animation: rise .6s cubic-bezier(.2,1.3,.4,1) both; }
  .stats { animation: rise .6s cubic-bezier(.2,1.3,.4,1) .3s both; }
}
@keyframes rise { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- landing: census ---------- */
.search { position: relative; z-index: 3; margin-top: -30px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.search label { font: 900 19px/1.15 var(--display); color: var(--ink); }
.field { display: flex; align-items: center; gap: 6px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 16px; padding: 0 6px 0 12px; }
.field > span { font: 800 23px/1 var(--display); color: var(--muted); }
#q {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink);
  font: 700 20px/1 var(--body); padding: 14px 0; -webkit-appearance: none; appearance: none;
}
#q::placeholder { color: #8A94A3; font-weight: 600; }
#q::-webkit-search-cancel-button { display: none; }
.field:focus-within { box-shadow: 0 0 0 4px var(--yel); }
.go {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin: 4px 0; border-radius: 12px; cursor: pointer;
  background: var(--yel); border: 3px solid var(--ink); color: var(--ink); padding: 0;
}
.go svg { width: 22px; height: 22px; }
.go:active { transform: translateY(2px); }
.hint { font-size: 13.5px; color: var(--muted); }

#result:empty { display: none; }
#result { display: flex; flex-direction: column; gap: 12px; }
.none { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.none h3 { font: 800 18px/1.25 var(--display); overflow-wrap: anywhere; }
.none p { color: var(--muted); }
.av { background-repeat: no-repeat; border: 3px solid var(--ink); border-radius: 14px; flex: none; background-color: #BFE4FF; }

.idcard { overflow: hidden; position: relative; }
.idcard .top { background: var(--green); color: var(--green-ink); border-bottom: 4px solid var(--ink); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.idcard .top small { font: 800 11px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.idcard .top strong { font: 900 22px/1.1 var(--display); letter-spacing: .02em; }
.idcard .body { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; align-items: start; }
.idcard .portrait { --ps: 132px; width: var(--ps); height: var(--ps); border-width: 4px; border-radius: 18px; }
.idcard dl { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.idcard dt { font: 800 10.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.idcard dd { margin: 3px 0 0; font: 800 17px/1.2 var(--display); overflow-wrap: anywhere; }
.idcard dd.num { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.idcard .foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 0 16px 14px; }
.sig { font: italic 700 25px/1 var(--sign); color: #1F3263; border-bottom: 2px solid #1F3263; padding: 0 6px 4px 2px; }
.sigcap { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 700; }
.stamp { width: 104px; height: 104px; flex: none; transform: rotate(-13deg); margin: -26px 0 -4px; }
.share { text-align: center; font: 700 14px/1.35 var(--body); color: var(--on-sky); }
.share b { font-weight: 900; }
@media (max-width: 380px) { .idcard .portrait { --ps: 108px; } .idcard dd.num { font-size: 26px; } }
@media (prefers-reduced-motion: no-preference) { .pop { animation: pop .3s cubic-bezier(.2,1.4,.4,1) both; } }
@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- landing: course teaser ---------- */
.course {
  position: relative; margin-top: 64px; background: var(--night); color: var(--on-night); border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: 0 6px 0 rgba(0,0,0,.25); padding: 0 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.course .cover {
  width: 62%; max-width: 250px; aspect-ratio: 1; margin: -54px auto 4px; border: 4px solid var(--ink); border-radius: 18px; transform: rotate(-3deg);
  box-shadow: 0 10px 0 rgba(0,0,0,.25), 0 18px 34px rgba(0,0,0,.25); background: #22315C;
}
.course .eyebrow { color: var(--yel); }
.course h2 { font: 900 clamp(27px, 7.6vw, 34px)/1.04 var(--display); color: #fff; text-wrap: balance; }
.course h2 span { color: var(--yel); }
.course p { color: var(--on-night-soft); font-size: 15px; }
.course p b { color: #fff; }
.chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 800 12.5px/1 var(--display); color: var(--on-night); border: 2px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 10px; }
.cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
.price { font: 900 28px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: baseline; gap: 10px; }
.price small { font: 700 12.5px/1.2 var(--body); color: var(--on-night-soft); letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .course .cover { transition: transform .35s cubic-bezier(.2,1.3,.4,1); }
  .course:hover .cover { transform: rotate(0deg) translateY(-4px); }
}

/* ---------- landing: how it works ---------- */
.how { display: flex; flex-direction: column; gap: 14px; }
.sec-title { font: 900 26px/1.08 var(--display); color: var(--on-sky); text-wrap: balance; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; }
.steps .ic { width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--ink); background: var(--yel); display: grid; place-items: center; position: relative; }
.steps .ic svg { width: 28px; height: 28px; }
.steps .ic::after {
  counter-increment: s; content: counter(s); position: absolute; right: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; border: 2.5px solid var(--ink); font: 900 11px/17px var(--display); text-align: center;
}
.steps h3 { font: 900 17px/1.2 var(--display); }
.steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.foot { display: flex; flex-direction: column; gap: 8px; text-align: center; color: var(--on-sky); font-size: 13.5px; padding-top: 4px; }
.foot .small { color: var(--on-sky-soft); font-size: 12.5px; }
.foot a { font-weight: 800; }

/* ---------- curso ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--sky-top) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .topbar { background: var(--sky-top); } }
.topbar .in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px var(--gut); }
.topbar .brand { color: var(--on-sky); text-shadow: none; font-size: 13.5px; }
.topbar .brand svg { width: 26px; height: 26px; filter: none; }
.c-hero { padding-top: 22px; text-align: center; align-items: center; }
.c-hero .cover { width: 64%; max-width: 300px; aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 20px; transform: rotate(-2.5deg); box-shadow: 0 10px 0 rgba(0,0,0,.22), 0 22px 40px rgba(10,21,48,.25); background: #22315C; }
.c-hero .eyebrow { color: var(--on-sky); margin-top: 6px; }
.c-hero h1 { font: 900 clamp(34px, 10vw, 48px)/.98 var(--display); color: var(--on-sky); text-wrap: balance; }
.c-hero h1 span { display: block; }
.c-hero h1 span.outlined { font-size: 1.02em; margin-top: 6px; }
.c-hero .lead { font-size: 16.5px; line-height: 1.5; color: var(--on-sky); max-width: 30em; }
.c-hero .lead b { font-weight: 800; }
.buy { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
.buy-top { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.buy .amount { font: 900 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.buy .per { font: 700 13px/1.3 var(--body); color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }
.fine b { color: var(--ink); }

.c-sec { display: flex; flex-direction: column; gap: 12px; }
.c-sec > h2, .c-sec .h2 { font: 900 25px/1.1 var(--display); color: var(--on-sky); text-wrap: balance; }
.prose { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font: 900 23px/1.12 var(--display); text-wrap: balance; }
.prose p { color: #333A46; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo > div { border: 3px solid var(--ink); border-radius: 16px; padding: 12px; background: var(--paper-2); }
.duo > div:last-child { background: #FFF6D1; }
.duo h3 { font: 900 15px/1.1 var(--display); margin-bottom: 4px; }
.duo p { font-size: 13.5px; line-height: 1.4; }

.toc { list-style: none; margin: 0; padding: 6px 14px; }
.toc li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 0; border-bottom: 2px dashed #D6DEE9; align-items: start; }
.toc li:last-child { border-bottom: 0; }
.toc .k { font: 900 15px/1 var(--display); width: 30px; height: 30px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--yel); font-variant-numeric: tabular-nums; }
.toc b { font: 800 15px/1.25 var(--display); display: block; }
.toc span.d { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }

.pages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 14px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: thin; }
.pages figure { margin: 0; flex: 0 0 64%; max-width: 270px; scroll-snap-align: center; }
.pages img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.pages figcaption { font: 700 12.5px/1.3 var(--body); color: var(--on-sky); margin-top: 8px; text-align: center; }
.swipe { font: 700 12.5px/1 var(--body); color: var(--on-sky-soft); text-align: center; }

.two { display: grid; grid-template-columns: 1fr; gap: 12px; }
.list { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.list h3 { font: 900 18px/1.15 var(--display); }
.list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.42; }
.list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid var(--ink); background: #3FBF74 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%2315171D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.list.no li::before { background: #FF8A80 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%2315171D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.need li b { font-weight: 800; }

.faq { padding: 4px 16px; }
.faq details { border-bottom: 2px dashed #D6DEE9; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; font: 800 15.5px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font: 900 17px/1 var(--display); background: var(--yel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 15px; color: #333A46; font-size: 14.5px; }

.guar { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; background: var(--night); color: var(--on-night); }
.guar .seal { width: 86px; height: 86px; }
.guar h2 { font: 900 24px/1.1 var(--display); color: #fff; }
.guar p { color: var(--on-night-soft); }

.sticky-buy {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; transform: translateY(110%); transition: transform .25s ease;
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 3px solid var(--ink); box-shadow: 0 -8px 24px rgba(10,21,48,.18);
}
.sticky-buy.on { transform: none; }
.sticky-buy .in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky-buy .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy .t b { font: 900 19px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.sticky-buy .t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { padding: 13px 18px; font-size: 15.5px; box-shadow: 0 4px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .sticky-buy { transition: none; } }

@media (min-width: 600px) {
  .hero { border-radius: 0 0 30px 30px; }
  .two { grid-template-columns: 1fr 1fr; }
  .pages figure { flex-basis: 46%; }
}
