/* SchoolFeeOS — hand-written, no build step.
   Matches the mahalaxmi_computer precedent in this workspace: a static site
   should stay editable by opening the file. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
	--ink: #0b1220;
	--ink-2: #334155;
	--ink-3: #64748b;
	--ink-4: #94a3b8;
	--bg: #ffffff;
	--bg-2: #f7f9fc;
	--bg-3: #eef2f9;
	--line: #e4e9f2;
	--line-2: #d3dbe8;

	--brand: #2f5bd8;
	--brand-2: #1e3fa8;
	--brand-soft: #eaf0ff;
	--accent: #f59e0b;
	--green: #059669;
	--green-soft: #e7f7f1;

	--radius: 14px;
	--radius-sm: 9px;
	--wrap: 1140px;
	--sans: "Plus Jakarta Sans", "Segoe UI", Roboto, system-ui, sans-serif;
	--mono: "JetBrains Mono", "Consolas", monospace;
	--shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
	--shadow-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 24px 60px rgba(11, 18, 32, .12);
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #eef3fb;
		--ink-2: #b8c6dc;
		--ink-3: #8598b5;
		--ink-4: #61748f;
		--bg: #080d17;
		--bg-2: #0e1523;
		--bg-3: #141d2f;
		--line: #1e2941;
		--line-2: #2a3752;

		--brand: #6e93ff;
		--brand-2: #94b1ff;
		--brand-soft: #141f3d;
		--green: #34d399;
		--green-soft: #0e2a22;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
	}
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.62;
	font-size: 16.5px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: var(--brand); }
img, svg { max-width: 100%; }

/* ── header ─────────────────────────────────────────────────────────────── */

header.site {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
header.site .wrap {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 68px; gap: 16px;
}

.brand {
	display: flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: 1.06rem; letter-spacing: -.03em;
	text-decoration: none; color: var(--ink);
}
.brand .mark {
	width: 30px; height: 30px; border-radius: 9px;
	background: linear-gradient(145deg, var(--brand), var(--brand-2));
	display: grid; place-items: center; color: #fff;
	font-size: .85rem; font-weight: 800;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent);
}

nav.site { display: flex; align-items: center; gap: 26px; }
nav.site a.link {
	color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
}
nav.site a.link:hover { color: var(--ink); }
@media (max-width: 780px) { nav.site a.link { display: none; } }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 10px;
	font-weight: 600; font-size: .94rem; font-family: inherit;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
}
.btn-primary {
	background: linear-gradient(145deg, var(--brand), var(--brand-2));
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
	position: relative; overflow: hidden;
	padding: 84px 0 92px;
	background:
		radial-gradient(60rem 34rem at 78% -12%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%),
		radial-gradient(44rem 26rem at 2% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 60px 0 66px; } }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	color: var(--brand); background: var(--brand-soft);
	border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
	padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 {
	font-size: clamp(2.15rem, 5.2vw, 3.55rem);
	line-height: 1.08; letter-spacing: -.038em; font-weight: 800;
	margin: 0 0 20px; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .reassure { margin-top: 20px; color: var(--ink-3); font-size: .88rem; }

/* ── hero product visual ────────────────────────────────────────────────── */

.shot {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}
@media (max-width: 940px) { .shot { transform: none; } }

.shot .bar {
	display: flex; align-items: center; gap: 7px;
	padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot .bar span { margin-left: 8px; font-size: .74rem; color: var(--ink-4); font-family: var(--mono); }

.shot .body { padding: 20px; }
.shot .who { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.shot .who b { font-size: 1.02rem; letter-spacing: -.01em; }
.shot .who span { font-family: var(--mono); font-size: .78rem; color: var(--ink-4); }
.shot .cls { color: var(--ink-3); font-size: .85rem; margin-bottom: 16px; }

.shot ul { list-style: none; margin: 0 0 14px; padding: 0; }
.shot ul li {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 9px 0; border-bottom: 1px dashed var(--line);
	font-size: .9rem;
}
.shot ul li span:first-child { color: var(--ink-2); }
.shot ul li span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.shot ul li .per { color: var(--ink-4); font-size: .76rem; margin-left: 6px; }

.shot .total {
	display: flex; justify-content: space-between; align-items: center;
	padding: 13px 15px; border-radius: var(--radius-sm);
	background: var(--brand-soft); font-weight: 700; margin-bottom: 14px;
}
.shot .total span:last-child { font-family: var(--mono); color: var(--brand); }

.shot .paid {
	display: flex; align-items: center; gap: 9px;
	padding: 11px 14px; border-radius: var(--radius-sm);
	background: var(--green-soft); color: var(--green);
	font-size: .87rem; font-weight: 600;
}
.shot .paid .rcpt { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: .8rem; }

/* ── sections ───────────────────────────────────────────────────────────── */

section { padding: 84px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (max-width: 780px) { section { padding: 58px 0; } }

.head { max-width: 62ch; margin-bottom: 44px; }
.head .kicker {
	font-size: .77rem; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.032em; font-weight: 800; margin: 0 0 12px; line-height: 1.18; }
.head p { color: var(--ink-2); margin: 0; font-size: 1.04rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
	background: var(--bg); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 26px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .ico {
	width: 40px; height: 40px; border-radius: 11px;
	background: var(--brand-soft); color: var(--brand);
	display: grid; place-items: center; margin-bottom: 16px;
}
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 7px; font-size: 1.04rem; letter-spacing: -.015em; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ── split ──────────────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.checks b { display: block; font-weight: 700; font-size: .97rem; }
.checks span { color: var(--ink-2); font-size: .92rem; }

/* ── receipt ────────────────────────────────────────────────────────────── */

.receipt {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 26px 28px;
	font-family: var(--mono); font-size: .8rem; line-height: 1.95;
	white-space: pre; overflow-x: auto; color: var(--ink-2);
	position: relative;
}
.receipt::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
	background: repeating-linear-gradient(-45deg, var(--bg) 0 7px, transparent 7px 14px);
}

/* ── status table ───────────────────────────────────────────────────────── */

.status { width: 100%; border-collapse: collapse; font-size: .95rem; }
.status th, .status td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); }
.status th { color: var(--ink-4); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.status td:last-child { text-align: right; }
.pill {
	display: inline-block; padding: 4px 11px; border-radius: 999px;
	font-size: .77rem; font-weight: 700;
}
.pill.live { background: var(--green-soft); color: var(--green); }
.pill.soon { background: var(--bg-3); color: var(--ink-3); }

/* ── cta ────────────────────────────────────────────────────────────────── */

.cta {
	border-radius: 20px; padding: 56px 44px; text-align: center;
	background: linear-gradient(145deg, var(--brand), var(--brand-2));
	color: #fff; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 auto 26px; }
.cta .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.cta .btn-white { background: #fff; color: var(--brand-2); }
.cta .btn-white:hover { background: #f2f5ff; }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-3); font-size: .89rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--brand); }

/* ── reveal on scroll ───────────────────────────────────────────────────── */

/* Progressive enhancement, and the direction matters. The hidden state is
   applied by the `js-reveal` class, which the script adds to <html> only once
   it is actually running. If the script never runs -- JS disabled, a parse
   error, an observer that never fires -- nothing is hidden and the page is
   simply complete. Hiding in CSS and revealing in JS gets this exactly
   backwards: any failure leaves the content invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
	.btn:hover, .card:hover { transform: none; }
}

/* ── sign-in ────────────────────────────────────────────────────────────── */

.auth-shell {
	min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 44px 20px;
	background:
		radial-gradient(46rem 26rem at 50% -8%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%),
		var(--bg-2);
}
.auth-card {
	width: 100%; max-width: 412px; background: var(--bg);
	border: 1px solid var(--line); border-radius: 18px; padding: 34px;
	box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.45rem; margin: 0 0 6px; letter-spacing: -.03em; font-weight: 800; }
.auth-card p.hint { color: var(--ink-3); font-size: .92rem; margin: 0 0 24px; }

label { display: block; font-size: .84rem; font-weight: 600; margin: 0 0 7px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-2);
	border-radius: 10px; font-size: .97rem; font-family: inherit;
	background: var(--bg); color: var(--ink); margin-bottom: 17px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn-block { width: 100%; justify-content: center; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: .89rem; margin-bottom: 17px; display: none; }
.notice.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (prefers-color-scheme: dark) { .notice.error { background: #2a1416; color: #fda4a4; border-color: #5b2224; } }

dl.identity { margin: 0; font-size: .94rem; }
dl.identity div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
dl.identity dt { color: var(--ink-3); margin: 0; }
dl.identity dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }

.perms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.perm { font-size: .71rem; font-family: var(--mono); background: var(--brand-soft); color: var(--brand); padding: 4px 9px; border-radius: 6px; }
.muted { color: var(--ink-4); font-size: .85rem; }
