/* Casita Eskwela landing.
   Brand forest green #184238 (the backend's product default brand colour, so the site and the apps agree),
   the yellow pad-paper door #FFD447, green-biased neutrals, and the teacher's red pen for focus.
   Approved by Jorge 2026-09-28; green by default from 2026-09-29; forest shade from the Casita Eskwela deck. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #EEF4F1;
  --card: #FFFFFF;
  --ink: #10201A;
  --muted: #4A5C54;
  --line: #D5E3DB;
  --brand: #184238;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2EDE8;
  --red: #C8321E;
  --yellow: #FFD447;
  --on-yellow: #10201A;
  --good: #1B7A4B;
  --good-soft: #DDF3E7;
  --warn: #8A5A00;
  --warn-soft: #FFF1C9;
  --deep: #0F2A23;
  --deep-ink: #E6EFEA;
  --deep-muted: #A8C4B7;
  --shadow: 0 24px 48px -28px rgba(15, 42, 35, 0.45);
  --shadow-sm: 0 10px 24px -14px rgba(15, 42, 35, 0.5);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1411; --bg-alt: #101C17; --card: #15241E; --ink: #E6EFEA; --muted: #A3B8AE; --line: #25382F;
    --brand: #7CC3AC; --brand-ink: #0B1411; --brand-soft: #173029; --red: #FF8069;
    --good: #62D39C; --good-soft: #143A2A; --warn: #FFD27A; --warn-soft: #3A2E10;
    --deep: #07100D; --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8); --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1411; --bg-alt: #101C17; --card: #15241E; --ink: #E6EFEA; --muted: #A3B8AE; --line: #25382F;
  --brand: #7CC3AC; --brand-ink: #0B1411; --brand-soft: #173029; --red: #FF8069;
  --good: #62D39C; --good-soft: #143A2A; --warn: #FFD27A; --warn-soft: #3A2E10;
  --deep: #07100D; --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8); --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}

/* Fonts are served from this site: no third-party request, faster on mobile data (SIL Open Font License). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.a79fdb52d4.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.4ba7d3d096.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
p { margin: 0; }
section[id] { scroll-margin-top: 80px; }
.muted { color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
@media (min-width: 900px) { .nav { display: flex; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang a { min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
@media (min-width: 900px) { .lang { margin-left: 8px; } }
@media (max-width: 419px) { .top-row { gap: 10px; } }
@media (max-width: 419px) { .top .btn { display: none; } }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.small { min-height: 44px; padding: 0 18px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light { background: var(--yellow); color: var(--on-yellow); }

/* Shared */
.kicker { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand); }
.sect { padding-block: 88px; }
.sect-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 640px; }
.sect-head p { color: var(--muted); font-size: 1.1rem; }
.band { background: var(--bg-alt); padding-block: 88px; }
.pill { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.due { background: var(--warn-soft); color: var(--warn); }
.pill.idle { background: var(--bg-alt); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--good); }
.dot.soon { background: var(--muted); }
.note { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 8px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { padding-block: 56px 96px; overflow: hidden; background: radial-gradient(900px 420px at 85% 10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 0.95fr 1.05fr; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero mark { background: var(--yellow); color: var(--on-yellow); padding-inline: 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fil { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--yellow); }

.stage { position: relative; display: grid; }
@media (min-width: 980px) { .stage { display: block; padding: 0 0 84px 204px; } }
.window { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar span { margin-left: 8px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.win-body { padding: 18px; }
.win-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.win-title { font-weight: 600; font-size: 0.95rem; }
.win-sub { color: var(--muted); font-size: 0.8rem; }
.grid { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
.grid th { text-align: right; font-weight: 600; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); font-size: 0.72rem; }
.grid th small { display: block; font-weight: 500; }
.grid td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.grid th:first-child, .grid td:first-child { text-align: left; width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid tr:last-child td { border-bottom: 0; }
.grid tr.hl td { background: var(--brand-soft); }
.grid td b { color: var(--brand); }

.phone { width: 196px; background: var(--card); border: 7px solid var(--deep); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.78rem; }
.stage .phone { justify-self: end; margin-top: -48px; position: relative; }
@media (min-width: 980px) { .stage .phone { position: absolute; left: 0; bottom: 0; margin: 0; width: 206px; } }
.ph-school { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; background: #7A1F2B; color: #FFFFFF; font-weight: 600; font-size: 0.8rem; }
.ph-logo { width: 18px; height: 18px; border-radius: 50%; background: #F2C14E; box-shadow: inset 0 0 0 3px #7A1F2B, 0 0 0 1.5px #F2C14E; }
.ph-body { padding: 12px; display: grid; gap: 8px; }
.ph-hi { font-weight: 600; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-tiles div { background: var(--bg-alt); border-radius: 10px; padding: 8px; display: grid; }
.ph-tiles small { color: var(--muted); font-size: 0.66rem; line-height: 1.2; }
.ph-tiles b { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.ph-tiles em { font-style: normal; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.ph-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 5px; font-variant-numeric: tabular-nums; }
.ph-pay { display: flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.note-hero { display: none; }
@media (min-width: 980px) { .note-hero { display: inline-flex; left: 232px; bottom: 22px; } }

/* Forms strip */
.strip { border-block: 1px solid var(--line); padding-block: 22px; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.strip-row > p { font-weight: 600; color: var(--muted); }
.tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tabs li { font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; padding: 6px 11px; border-radius: 6px 6px 2px 2px; background: var(--bg-alt); border: 1px solid var(--line); border-bottom: 3px solid var(--brand); }

/* Diagram */
.diagram { margin: 0; }
.diagram-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; color: var(--ink); }
.d-link, .d-loop { stroke: var(--muted); stroke-width: 2; fill: none; }
.d-loop { stroke-dasharray: 6 7; stroke: var(--brand); }
.d-arrowhead { fill: var(--muted); }
.d-node circle { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.d-node use { color: var(--brand); }
.d-node-hot circle { fill: var(--brand); stroke: var(--brand); }
.d-node-hot use { color: var(--brand-ink); }
.d-label { font: 700 17px var(--display); fill: var(--ink); text-anchor: middle; }
.d-sub { font: 500 13.5px var(--body); fill: var(--muted); text-anchor: middle; }
.d-edge { font: 600 13px var(--body); fill: var(--muted); text-anchor: middle; }
.d-loop-label { fill: var(--brand); }

/* Showcase rows */
.rows { display: grid; gap: 112px; }
.row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .row.flip .row-copy { order: 2; }
}
.row > * { min-width: 0; }
.row-copy { display: grid; gap: 16px; justify-items: start; }
.row-copy > p:not(.kicker) { color: var(--muted); font-size: 1.12rem; max-width: 40ch; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.row-art { position: relative; display: grid; justify-items: center; align-items: center; min-height: 420px; padding: 48px 24px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 18px 18px; }
@media (max-width: 560px) { .row-art { min-height: 0; padding: 28px 16px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; width: 100%; max-width: 440px; font-size: 0.85rem; }
.soa-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.stepper { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper li { font-size: 0.7rem; font-weight: 600; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; line-height: 1.2; }
.stepper li.done { border-color: var(--brand); color: var(--ink); }
.stepper li.now { border-color: var(--good); color: var(--good); }
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--bg-alt); overflow: visible; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 46%; border-radius: 999px; background: var(--good); }
.meter-mark { position: absolute; left: 38%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.meter-cap { margin-top: 6px; font-size: 0.72rem; color: var(--muted); padding-left: calc(38% - 30px); }
.ledger { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.ledger li { display: flex; justify-content: space-between; align-items: center; padding-block: 9px; border-top: 1px solid var(--line); }
.note-soa { right: 0; bottom: -18px; }

.phone-solo { width: 230px; }
.track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.track li { position: relative; padding: 0 0 14px 22px; display: grid; }
.track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.track li::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done::before { background: var(--brand); border-color: var(--brand); }
.track li.done::after { background: var(--brand); }
.track li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track small { color: var(--muted); font-size: 0.7rem; }
.sms { position: absolute; right: 2%; top: 36%; max-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 0.8rem; display: grid; gap: 2px; }
.sms small { color: var(--muted); font-size: 0.66rem; font-weight: 600; }
@media (max-width: 560px) { .sms { position: static; margin-top: -24px; justify-self: end; } }

.doc-stack { position: relative; width: 100%; max-width: 360px; height: 450px; }
.sheet { position: absolute; inset: 0 30px 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 20px; }
.sheet > span { position: absolute; top: -1px; right: 18px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-family: var(--display); font-size: 0.85rem; padding: 6px 10px 8px; border-radius: 0 0 6px 6px; }
.sheet.s3 { transform: translate(30px, 20px) rotate(4deg); }
.sheet.s3 > span, .sheet.s2 > span { background: var(--bg-alt); color: var(--muted); }
.sheet.s2 { transform: translate(15px, 10px) rotate(2deg); }
.sheet.s2 > span { right: 74px; }
.sheet.s3 > span { right: 130px; }
.sheet-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 8px 0 16px; }
.sheet-rows { display: grid; gap: 0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sheet-rows p { display: flex; justify-content: space-between; padding-block: 8px; border-bottom: 1px dashed var(--line); }
.sheet-rows i { font-style: normal; color: var(--muted); }
.sheet-rows .sum { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; }
.sheet-rows .sum i { color: var(--ink); font-weight: 600; }
.sheet-rows .sum b { color: var(--brand); font-size: 1.05rem; }
.note-doc { left: 0; bottom: -8px; }
@media (max-width: 560px) { .note { position: static; margin-top: 16px; white-space: normal; } }

/* Icon grid */
.icons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.icons li { background: var(--bg); padding: 24px; display: grid; gap: 4px; align-content: start; }
.icons svg { width: 30px; height: 30px; color: var(--brand); margin-bottom: 10px; }
.icons b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.icons span { color: var(--muted); font-size: 0.95rem; }

/* Trust */
.dark { background: var(--deep); color: var(--deep-ink); padding-block: 88px; }
.dark .sect-head p { color: var(--deep-muted); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.trust li { display: grid; gap: 6px; align-content: start; }
.trust svg { width: 40px; height: 40px; color: var(--yellow); margin-bottom: 8px; }
.trust b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.trust span { color: var(--deep-muted); }

/* Onboarding */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 4px; align-content: start; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font: 700 1.15rem var(--display); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 58px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.steps span { color: var(--muted); }
@media (max-width: 480px) { .steps li::after { display: none; } }

/* Pricing */
.price { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .price { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.price > div { display: grid; gap: 14px; }
.price p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chips li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 500; }

/* CTA */
.cta { background: radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%), var(--brand); color: var(--brand-ink); padding-block: 96px; text-align: center; }
.cta-inner { display: grid; gap: 18px; justify-items: center; }
.cta-big { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; }
.cta-sub { font-size: 1.15rem; max-width: 40ch; opacity: 0.92; margin-bottom: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn.outline-light { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.foot-col a { overflow-wrap: anywhere; }

/* Footer */
.foot { padding-block: 56px 28px; font-size: 0.92rem; background: var(--bg-alt); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand { display: grid; gap: 12px; align-content: start; max-width: 36ch; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col p { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Text pages (privacy) */
.doc { max-width: 720px; padding-block: 48px 72px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 16px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
/* Search landing pages (DepEd School Forms, enrollment, parent portal) */
.crumbs { font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--ink); }
.doc .ticks { padding-left: 0; gap: 10px; }
.doc .lead { max-width: 52ch; }
.doc .faq h2 { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Course mockup */
.modules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.mod-title { font-weight: 600; font-size: 0.85rem; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lessons li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.ftype { flex: none; width: 46px; text-align: center; font-size: 0.66rem; font-weight: 600; padding: 3px 0; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.ftype.slides { background: var(--warn-soft); color: var(--warn); }
.ftype.video { background: var(--brand-soft); color: var(--brand); }
.src { margin-left: auto; flex: none; font-size: 0.66rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.src.jc { background: var(--brand); color: var(--brand-ink); }
.src.tc { background: var(--good-soft); color: var(--good); }
.mod.locked { background: var(--bg-alt); }
.mod.locked .mod-title { color: var(--muted); }
.lock { font-size: 0.75rem; color: var(--muted); }
.lock::before { content: ""; display: inline-block; width: 8px; height: 7px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 2px; vertical-align: -1px; }

/* Announcement mockup */
.compose { position: absolute; left: 4%; top: 12%; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 8px; max-width: 220px; }
.aud { display: flex; flex-wrap: wrap; gap: 6px; }
.aud span { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.aud span.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.compose + .phone-solo { justify-self: end; margin-top: 40px; }
.notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notifs li { background: var(--bg-alt); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.notifs b { font-size: 0.72rem; color: var(--brand); }
.notifs small { color: var(--muted); font-size: 0.68rem; }
@media (max-width: 560px) { .compose { position: static; max-width: none; margin-bottom: 16px; } .compose + .phone-solo { justify-self: center; margin-top: 0; } }

/* FAQ */
.faq details { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; min-height: 44px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 68ch; }

/* Analytics consent banner and the footer "Cookie settings" control. Only present in the HTML when the build has a
   GA_MEASUREMENT_ID (see scripts/build.sh); these rules are inert otherwise. Fixed to the bottom, so showing it never
   shifts the page (no layout shift). Both choices carry equal weight. */
.consent { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--card); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -20px rgba(15, 42, 35, 0.55); padding-block: 16px calc(16px + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.consent-row > div:first-child { flex: 1 1 420px; }
.consent-h { font-family: var(--display); font-size: 1.05rem; margin: 0 0 4px; }
.consent p { margin: 0; color: var(--muted); }
.consent a { color: var(--ink); }
.consent-actions { display: flex; gap: 10px; flex: 1 1 280px; max-width: 420px; }
.consent-actions .btn { flex: 1 1 auto; padding: 0 14px; cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.consent-h + p { font-size: 0.95rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish[hidden] { display: none; }
.consent-actions .btn:focus-visible, .linkish:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
