/* Pupilee public site. Depends on base.css tokens and components. */

body { overflow-x: hidden; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--tinta); color: var(--branco); border-radius: var(--r-btn); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--tinta-70); max-width: 34em; }
.lead-sm { font-size: 1.15rem; line-height: 1.55; }
.eyebrow-light { color: var(--faisca); }
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-giz { background: var(--giz); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .muted { font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linha);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { width: 148px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--tinta);
  font-weight: 600; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { background: var(--giz); color: var(--azul); }
.header-cta { flex: none; }
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand img { width: 124px; }
  .header-inner { min-height: 64px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-blue { width: 720px; height: 720px; right: -220px; top: -140px; background: var(--azul); }
.hero-shape-yellow { width: 180px; height: 180px; right: 34%; bottom: -90px; background: var(--faisca); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin: 0; padding: 0; list-style: none; color: var(--tinta-70); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.hero-facts li { max-width: 15em; }
.hero-facts strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--azul); }
@media (max-width: 480px) { .hero-facts { gap: 12px 20px; } }
.hero-visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-shape-blue { width: 520px; height: 520px; right: -200px; top: auto; bottom: 40px; }
  .hero-shape-yellow { right: auto; left: -60px; bottom: 260px; width: 120px; height: 120px; }
}

/* ---------- Phone mockup (student app home, brandbook p-18) ---------- */
.phone {
  width: 320px; max-width: 100%; padding: 12px; border-radius: 48px; background: var(--tinta);
  box-shadow: 0 30px 60px rgba(16,27,63,.28), 0 8px 18px rgba(16,27,63,.18);
}
.phone-screen { position: relative; overflow: hidden; border-radius: 38px; background: var(--giz); padding-bottom: 16px; font-size: 13px; line-height: 1.35; }
.ph-head { position: relative; overflow: hidden; background: var(--azul); color: var(--branco); padding: 26px 20px 74px; }
.ph-head::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -90px; top: -70px; background: rgba(255,255,255,.12); }
.ph-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ph-logo { width: 92px; height: auto; }
.ph-streak { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 800; font-size: 12px; }
.ph-flame { width: 14px; height: 14px; filter: invert(78%) sepia(62%) saturate(800%) hue-rotate(338deg) brightness(103%); }
.ph-hi { position: relative; z-index: 1; margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 26px; line-height: 1.1; }
.ph-sub { position: relative; z-index: 1; margin: 4px 0 0; opacity: .9; }
.ph-card { position: relative; z-index: 2; margin: -52px 14px 0; padding: 16px; background: var(--branco); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ph-card-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ph-card-head .icon-circle { width: 40px; height: 40px; }
.ph-label { display: block; color: var(--t-economia); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ph-title { display: block; font-family: var(--font-title); font-weight: 600; font-size: 16px; color: var(--tinta); }
.ph-card .progress { height: 8px; }
.ph-meta { display: flex; justify-content: space-between; margin: 6px 0 12px; color: var(--tinta-70); font-size: 12px; }
.ph-btn { display: block; padding: 10px; border-radius: var(--r-btn); background: var(--azul); color: var(--branco); text-align: center; font-family: var(--font-title); font-weight: 600; font-size: 14px; }
.ph-section { margin: 18px 16px 8px; color: var(--tinta-70); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ph-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
.ph-mini-card { padding: 12px; background: var(--branco); border-radius: 16px; }
.ph-mini-card .icon-circle { margin-bottom: 8px; }
.ph-mini-card strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 13.5px; }
.ph-mini-card small { color: var(--tinta-70); font-size: 11.5px; }
.ph-pupi { display: flex; gap: 10px; align-items: center; margin: 16px 14px 0; padding: 12px 14px; border-radius: 18px; background: var(--tinta); color: var(--branco); }
.ph-pupi-eye { width: 34px; height: 34px; flex: none; }
.ph-pupi strong { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.ph-pupi span:not(.spark) { display: block; font-size: 12.5px; opacity: .92; }

/* ---------- What it is ---------- */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.what-grid h2 { margin-bottom: 0; }
.what-copy p:last-child { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-card); background: var(--giz); }
.step h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.step p { margin: 0; font-size: .97rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: var(--branco); font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; }
@media (max-width: 960px) {
  .what-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trails ---------- */
.trails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.trail { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-card); background: var(--c); color: var(--branco); min-height: 250px; }
.trail::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -70px; background: rgba(255,255,255,.12); }
.trail .icon-circle { background: rgba(255,255,255,.2); margin-bottom: 20px; }
.trail h3 { font-size: 1.5rem; margin-bottom: 12px; }
.tct-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tct-list li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.trails-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 28px 0 0; color: var(--tinta-70); }
@media (max-width: 960px) { .trails { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trails { grid-template-columns: 1fr; } .trail { min-height: 0; } }

/* ---------- Audiences ---------- */
.audience { padding: 32px; border-radius: var(--r-card); background: var(--giz); display: flex; flex-direction: column; }
.audience-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.audience-head .eyebrow { margin: 0; }
.audience h3 { font-size: 1.5rem; margin-bottom: 16px; }
.checks { margin: 0 0 20px; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.quote { margin: auto 0 0; padding: 16px 18px; border-radius: 16px; background: var(--branco); border-left: 4px solid var(--azul); font-weight: 600; color: var(--tinta); }

/* ---------- Pupi ---------- */
.section-pupi { overflow: hidden; background: var(--tinta); color: var(--branco); }
.section-pupi p:not(.eyebrow) { color: rgba(255,255,255,.86); }
.pupi-shape { position: absolute; width: 520px; height: 520px; left: -260px; bottom: -260px; border-radius: 50%; background: var(--azul); opacity: .55; }
.pupi-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pupi-copy h2 { color: var(--branco); }
.spark-rule { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border-radius: var(--r-card); background: rgba(255,255,255,.08); }
.spark-rule p { margin: 0; }
.spark-rule strong { color: var(--branco); }
.spark-lg { width: 32px; height: 32px; margin-top: 2px; }
.pupi-states { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; text-align: center; }
.pupi-states img { width: 100%; max-width: 76px; margin: 0 auto 8px; }
.pupi-states span { font-family: var(--font-title); font-weight: 500; font-size: .95rem; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { margin: 0; padding: 14px 18px; border-radius: 20px; max-width: 88%; }
.msg-user { align-self: flex-end; background: var(--azul); color: var(--branco) !important; border-bottom-right-radius: 6px; font-weight: 600; }
.msg-pupi { align-self: flex-start; background: var(--branco); color: var(--tinta); border-bottom-left-radius: 6px; }
.msg-pupi p, .section-pupi .msg-pupi p { margin: 6px 0 0; color: var(--tinta); }
.msg-who { display: flex; align-items: center; gap: 6px; font-weight: 800; }
@media (max-width: 900px) { .pupi-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .pupi-states { gap: 6px; } .pupi-states span { font-size: .78rem; } }

/* ---------- BNCC ---------- */
.bncc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lesson-sample { padding: 28px; }
.ls-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ls-label { margin: 0; color: var(--tinta-70); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.ls-title { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.ls-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ls-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linha); }
.ls-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.ls-steps span { flex: none; width: 58px; color: var(--azul); font-weight: 800; }
.ls-foot { margin: 14px 0 0; color: var(--tinta-70); font-size: .85rem; }
@media (max-width: 900px) { .bncc-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Devices ---------- */
.device { padding: 32px 28px; border-radius: var(--r-card); background: var(--branco); text-align: center; }
.device .icon-circle { margin: 0 auto 16px; }
.device p { margin: 0; }

/* ---------- Secretarias ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: clamp(56px, 7vw, 88px); }
.sec-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.sec-list li { display: flex; gap: 14px; align-items: flex-start; }
.sec-list strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.12rem; }
.sec-list span:not(.icon-circle) { display: block; color: var(--tinta-70); }
.report { padding: 28px; }
.report-head { margin-bottom: 16px; }
.report-kpi { margin: 6px 0 0; font-size: 1.05rem; }
.report-kpi strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 2.6rem; line-height: 1.1; color: var(--azul); }
.report-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.report-table th, .report-table td { padding: 10px 6px; border-bottom: 1px solid var(--linha); text-align: center; }
.report-table th[scope="row"], .report-table thead th:first-child { text-align: left; font-weight: 600; }
.report-table thead th { color: var(--tinta-70); font-size: .8rem; }
.report-table td { font-weight: 800; color: var(--t-ambiente); }
.report-table td.low { color: #C2410C; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); vertical-align: middle; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; gap: 32px; } }

.proposal { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-card); background: var(--tinta); color: var(--branco); }
.proposal-shape { position: absolute; width: 380px; height: 380px; right: -110px; top: -150px; border-radius: 50%; background: var(--azul); }
.proposal > *:not(.proposal-shape) { position: relative; }
.proposal-logo { width: 132px; height: auto; margin-bottom: clamp(32px, 5vw, 56px); }
.proposal h2 { max-width: 13em; color: var(--branco); }
.proposal-sub { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.proposal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin: 0 0 28px; padding: 0; list-style: none; max-width: 860px; }
.proposal-list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.92); }
.proposal-list li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 16px; height: 16px; background: var(--faisca);
  -webkit-mask: url('../brand/spark.svg') center / contain no-repeat; mask: url('../brand/spark.svg') center / contain no-repeat;
}
.proposal-note { color: rgba(255,255,255,.8); max-width: 40em; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-outline-light { background: transparent; color: var(--branco); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: var(--branco); background: rgba(255,255,255,.08); }
.proposal .btn-white { color: var(--tinta); }
@media (max-width: 700px) { .proposal-list { grid-template-columns: 1fr; } }

/* ---------- Demo CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--azul); color: var(--branco); padding: clamp(64px, 9vw, 112px) 0; }
.cta h2 { color: var(--branco); }
.cta p:not(.eyebrow) { color: rgba(255,255,255,.88); max-width: 34em; font-size: 1.1rem; }
.cta-inner { position: relative; }
.cta .btn-white { margin-top: 12px; }
.cta-eye { position: absolute; width: 420px; height: 420px; right: -90px; bottom: -150px; border-radius: 50%; background: var(--branco); }
.cta-eye span { position: absolute; width: 170px; height: 170px; left: 70px; top: 60px; border-radius: 50%; background: var(--tinta); }
.cta-eye span::after { content: ""; position: absolute; width: 48px; height: 48px; right: 34px; top: 30px; border-radius: 50%; background: var(--branco); }
@media (max-width: 760px) {
  .cta { padding-bottom: 220px; }
  .cta-eye { width: 300px; height: 300px; right: -60px; bottom: -130px; }
  .cta-eye span { width: 120px; height: 120px; left: 50px; top: 40px; }
  .cta-eye span::after { width: 34px; height: 34px; right: 24px; top: 22px; }
}

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 56px); background: var(--giz); border: 0; box-shadow: none; }
.contact-copy { max-width: 560px; }
.contact-copy h2 { margin-bottom: 12px; }
.contact-copy p:not(.eyebrow) { margin: 0; font-size: 1.08rem; }
.contact-mail { display: inline-flex; align-items: center; gap: 16px; padding: 18px 24px 18px 18px; border-radius: var(--r-card); background: var(--branco); box-shadow: var(--shadow); color: var(--tinta); text-decoration: none; font-family: var(--font-title); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.4rem); overflow-wrap: anywhere; }
.contact-mail small { display: block; font-family: var(--font-text); font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.contact-mail:hover { box-shadow: 0 0 0 2px var(--azul), var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tinta); color: rgba(255,255,255,.8); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center; }
.footer-inner img { width: 132px; height: auto; }
.footer-tag { margin: 0; font-family: var(--font-title); font-weight: 500; font-size: 1.1rem; color: var(--branco); }
.site-footer nav { grid-column: 1 / -1; margin-top: 16px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--branco); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--faisca); }
.footer-legal { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* Dark sections: light focus ring */
.section-pupi :focus-visible, .proposal :focus-visible, .cta :focus-visible { outline-color: var(--faisca); }

/* ---------- Refinements ---------- */
h2, h3 { text-wrap: balance; }
@media (max-width: 700px) {
  .proposal-shape { width: 220px; height: 220px; right: -90px; top: -110px; }
  .proposal h2 { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  .report { padding: 22px 18px; }
  .report-table { font-size: .82rem; }
  .report-table th, .report-table td { padding: 9px 3px; }
  .report-table th[scope="row"] { white-space: nowrap; }
  .contact { padding: 28px 22px; }
  .contact-mail { padding: 14px; gap: 12px; }
  .contact-mail .icon-circle.lg { width: 40px; height: 40px; }
  .contact-mail .icon-circle.lg img { width: 20px; height: 20px; }
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--tinta-70); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 10px; height: 10px; }
