/* Minat base: tokens and shared parts for every page (student, parent, report, legal).
   Colors and type follow the "Minat site design" canvas (design/site/). Page-specific styles go in their own file. */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	--navy: #14213d;
	--teal: #0b6e66;
	--teal-dark: #08534d;
	--teal-text: #0b5a53;
	--mint: #ddf1ee;
	--mint-ink: #7fd3c7;
	--amber: #f4b740;
	--amber-ink: #6b4600;
	--cream: #fcefd2;
	--bg: #f1f4f8;
	--card: #ffffff;
	--line: #d9e0e8;
	--track: #e4e9ef;
	--ink: #14213d;
	--ink-2: #3d4a5c;
	--muted: #4a5568;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 14px;
	--radius-card: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
/* Our own checkbox and radio, never the browser's (owner, 5 Nov). The native input stays for the keyboard, screen
   readers and .checked; only its look changes. No <select> or date input: use buttons or chips instead. */
input[type="checkbox"], input[type="radio"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 2px solid #9aa8b8; border-radius: 6px; background: #fff; cursor: pointer; }
input[type="radio"] { border-radius: 999px; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--teal); }
input[type="checkbox"]:checked { border-color: var(--teal); background: var(--teal) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
input[type="radio"]:checked { border-color: var(--teal); box-shadow: inset 0 0 0 4px #fff; background: var(--teal); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.5; cursor: not-allowed; }
@media (forced-colors: active) { input[type="checkbox"], input[type="radio"] { appearance: auto; -webkit-appearance: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A phone-width column for app screens; the landing page uses its own wider layout. */
.screen { max-width: 440px; margin: 0 auto; min-height: 100dvh; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 16px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 15px 20px; border-radius: var(--radius); border: 0; font-weight: 700; font-size: 17px; text-align: center; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy); font-weight: 800; }
.btn-amber:hover { color: var(--navy); filter: brightness(0.97); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { color: var(--navy); background: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Mina climbs every main button and points at its label (9 Nov 2026): her head is behind its top edge, her hands on
   its front, her finger over the label's last word. Three poses (design/minat-art/cta-sprites.py prints these numbers):
   data-mina="go" starts something, "pay" unlocks the report, anything else goes to the next step. --mc is how far the
   button's edge is below the sprite's top, --mt the fingertip from its left, --mr the ring's right side.
   /js/mina-cta.js sets --mina-end where the label ends; she never sits on the rounded corner. She fades in once and
   stays hidden while the button is off. */
.btn-primary, .btn-amber { position: relative; --mina-end: 75%; --mimg: url(/art/mina-next.webp); --mw: 55px; --mh: 35px; --mc: 26.2px; --mt: 10.7px; --mr: 52.9px; }
.btn[data-mina="go"] { --mimg: url(/art/mina-go.webp); --mw: 59.7px; --mh: 57.7px; --mc: 43.9px; --mt: 5.7px; --mr: 54.1px; }
.btn[data-mina="pay"] { --mimg: url(/art/mina-pay.webp); --mw: 55.7px; --mh: 49.3px; --mc: 33.5px; --mt: 10.3px; --mr: 53.4px; }
.btn-primary:not(.push, .btn-small), .btn-amber:not(.push, .btn-small) { margin-top: calc(var(--mc) - 8px); } /* room for her head */
.cta-bar .btn { margin-top: 0; } /* the bar is fixed; she shows over the page behind it */
.btn-primary::before, .btn-amber::before { content: ""; position: absolute; top: calc(-1 * var(--mc)); left: max(16px, min(calc(var(--mina-end) - 30px - var(--mt)), calc(100% - 16px - var(--mr)))); width: var(--mw); height: var(--mh); background: var(--mimg) no-repeat 0 0 / 100% 100%; filter: drop-shadow(0 1px 1px rgba(20, 33, 61, 0.25)); pointer-events: none; }
.btn-primary:is([disabled], [aria-disabled="true"])::before, .btn-amber:is([disabled], [aria-disabled="true"])::before { opacity: 0; }
.btn-small::before { content: none; }

/* One small moving icon per main button, fitting what it does: a short move, then a pause. A button that already has
   an icon moves that one (.mv-nudge, .mv-lid, .mv-wiggle in the markup); one without gets it as ::after, because page
   scripts rewrite these labels. Next steps get chevrons, go buttons an arrow, amber pay buttons a lock that opens. */
.btn-primary { --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l6 6-6 6'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn-primary[data-mina="go"] { --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn-primary:not(.btn-small):not(:has(svg))::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--cta-icon) no-repeat center / contain; }
.btn-amber:not(.btn-small):not(:has(svg))::after { content: ""; flex: none; order: -1; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' fill='none' stroke='%2314213D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3Crect x='29' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M32 11V6.5a4 4 0 0 1 7.6-1.7'/%3E%3C/svg%3E") no-repeat 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
	.btn-primary::before, .btn-amber::before { animation: mina-in 0.6s ease-out 0.3s backwards; transition: opacity 0.4s ease-out; }
	.btn-primary:not(.btn-small):not(:has(svg))::after, .btn .mv-nudge { animation: cta-nudge 2.6s ease-in-out infinite; }
	.btn-amber:not(.btn-small):not(:has(svg))::after { animation: cta-lock 3.2s ease-in-out infinite; }
	.btn .mv-lid rect:nth-of-type(2) { transform-box: fill-box; transform-origin: 0 100%; animation: cta-lid 3s ease-in-out infinite; }
	.btn .mv-wiggle { animation: cta-wiggle 3.2s ease-in-out infinite; }
	.btn.btn:is([disabled], [aria-disabled="true"])::after, .btn.btn:is([disabled], [aria-disabled="true"]) svg { animation: none; } /* .btn twice: beats the ::after rules above */
}
@keyframes mina-in { from { opacity: 0; transform: translateY(2px); } }
@keyframes cta-nudge { 0%, 55%, 100% { transform: none; } 65% { transform: translateX(5px); } 75% { transform: none; } 83% { transform: translateX(3px); } 91% { transform: none; } }
@keyframes cta-lock { 0%, 50% { transform: none; background-position: 0 0; } 54% { transform: rotate(-9deg); background-position: 0 0; } 58% { transform: rotate(7deg); background-position: 0 0; } 58.01%, 86% { background-position: 100% 0; } 62% { transform: none; } 86.01%, 100% { transform: none; background-position: 0 0; } }
@keyframes cta-lid { 0%, 55%, 100% { transform: none; } 65%, 80% { transform: translateY(-3px) rotate(-8deg); } }
@keyframes cta-wiggle { 0%, 60%, 100% { transform: none; } 66% { transform: rotate(-12deg); } 72% { transform: rotate(10deg); } 78% { transform: rotate(-6deg); } 84% { transform: none; } }
@media print { .btn-primary::before, .btn-amber::before { content: none; } }

.card { background: var(--card); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #fff; }
.chip-amber { background: var(--cream); color: var(--amber-ink); }
.note { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.logo { display: flex; }
