/* Tuition page: same family as shibinlal.com, a little warmer and more direct. */

/* ---------- Tokens ---------- */

:root {
	--paper: #f7f5f0;
	--surface: #efebe3;
	--card: #fffdf9;
	--ink: #17181a;
	--ink-2: #3d3f44;
	--muted: #69645d;
	--line: #e0dbd1;
	--accent: #8c3a2b;
	--accent-soft: #f3e4dd;
	--ok: #3f6b4a;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wide: 70rem;
	--gutter: clamp(1rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #111213;
		--surface: #1a1b1d;
		--card: #1d1e21;
		--ink: #eeebe5;
		--ink-2: #c9c5be;
		--muted: #9a958d;
		--line: #2c2e31;
		--accent: #e3a08d;
		--accent-soft: #2e221f;
		--ok: #8fc29b;
	}
}
:root[data-theme="dark"] {
	--paper: #111213;
	--surface: #1a1b1d;
	--card: #1d1e21;
	--ink: #eeebe5;
	--ink-2: #c9c5be;
	--muted: #9a958d;
	--line: #2c2e31;
	--accent: #e3a08d;
	--accent-soft: #2e221f;
	--ok: #8fc29b;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--serif);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ol, ul { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--paper); }

.kicker, .pl-kicker, .pl-label, label, legend {
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.kicker { color: var(--accent); margin-bottom: 0.6rem; }

.skip {
	position: absolute; left: -999px; top: 0.5rem; z-index: 20;
	padding: 0.5rem 0.75rem; background: var(--ink); color: var(--paper);
	font-family: var(--sans); font-size: 0.9rem;
}
.skip:focus { left: 0.5rem; }

/* ---------- Top bar ---------- */

.topbar {
	position: sticky; top: 0; z-index: 10;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.3) blur(12px);
	-webkit-backdrop-filter: saturate(1.3) blur(12px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner {
	max-width: var(--wide); margin: 0 auto; padding: 0.8rem var(--gutter);
	display: flex; align-items: center; gap: 1.75rem;
}
.wordmark { font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto; }
.wordmark span {
	margin-left: 0.35rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--sans); font-size: 0.85rem; }
.nav a {
	color: var(--muted); text-decoration: none; white-space: nowrap; padding: 0.2rem 0;
	border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav .nav-cta {
	color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0.35rem 0.9rem;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.theme-toggle {
	flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
	border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink);
	cursor: pointer; transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle svg path { fill: currentColor; stroke: none; }

@media (max-width: 760px) {
	.topbar-inner { flex-wrap: wrap; row-gap: 0.5rem; padding-top: 0.7rem; padding-bottom: 0.6rem; }
	.nav { order: 3; width: 100%; gap: 1.3rem; overflow-x: auto; scrollbar-width: none; }
	.nav::-webkit-scrollbar { display: none; }
	.nav .nav-cta { margin-left: auto; }
}
@media (max-width: 400px) { .wordmark span { display: none; } }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.8rem 1.45rem; font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
	text-decoration: none; cursor: pointer;
	background: var(--ink); color: var(--paper);
	border: 1px solid var(--ink); border-radius: 999px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
	max-width: var(--wide); margin: 0 auto;
	padding: clamp(3rem, 10vh, 6.5rem) var(--gutter) clamp(3.5rem, 9vh, 5.5rem);
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.hero h1 {
	font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em;
	margin-bottom: 1.5rem; text-wrap: balance;
}
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.75rem; }
.creds {
	display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
	font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
}
.creds li { position: relative; padding-left: 0.95rem; }
.creds li::before {
	content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem;
	border-radius: 50%; background: var(--accent);
}

/* Example planner card */
.planner {
	margin: 0; padding: 1.25rem; background: var(--card);
	border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -22px rgb(40 30 20 / 0.28);
	font-family: var(--sans); font-size: 0.85rem; line-height: 1.45; color: var(--ink-2);
	transform: rotate(0.6deg);
}
.planner p { margin: 0; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.pl-kicker { color: var(--accent); font-size: 0.68rem; }
.pl-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-top: 0.15rem !important; }
.pl-tag {
	font-size: 0.68rem; padding: 0.2rem 0.55rem; border: 1px dashed var(--muted);
	border-radius: 999px; color: var(--muted); white-space: nowrap;
}
.pl-label { color: var(--muted); font-size: 0.68rem; margin-bottom: 0.35rem !important; }
.pl-next {
	display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1rem;
	padding: 0.8rem 0.9rem; background: var(--accent-soft); border-radius: 9px; margin-bottom: 0.9rem;
}
.pl-next .pl-label { grid-column: 1 / -1; }
.pl-when { color: var(--ink); font-weight: 500; }
.pl-link { color: var(--accent); font-weight: 500; white-space: nowrap; }
.pl-block { padding: 0.85rem 0 0; margin-top: 0.85rem; border-top: 1px solid var(--line); }
.pl-next + .pl-block { border-top: 0; margin-top: 0; padding-top: 0; }
.pl-row { display: flex; justify-content: space-between; align-items: baseline; }
.pl-count { font-size: 0.78rem; color: var(--muted); }
.pl-bar { height: 6px; background: var(--surface); border-radius: 99px; overflow: hidden; margin: 0.15rem 0 0.7rem; }
.pl-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pl-topics li { position: relative; padding: 0.12rem 0 0.12rem 1.4rem; color: var(--muted); }
.pl-topics li::before {
	content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8rem; height: 0.8rem;
	border: 1.5px solid var(--line); border-radius: 50%;
}
.pl-topics .is-done { color: var(--ink-2); }
.pl-topics .is-done::before { background: var(--ok); border-color: var(--ok); }
.pl-topics .is-done::after {
	content: ""; position: absolute; left: 0.27rem; top: 0.58em; width: 0.22rem; height: 0.4rem;
	border: solid var(--card); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.pl-topics .is-now { color: var(--ink); font-weight: 500; }
.pl-topics .is-now::before { border-color: var(--accent); background: radial-gradient(var(--accent) 0 35%, transparent 40%); }
.pl-scores li { display: flex; justify-content: space-between; padding: 0.15rem 0; }
.pl-scores b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-note p:last-child { font-family: var(--serif); font-size: 0.98rem; font-style: italic; color: var(--ink-2); }

@media (max-width: 860px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.planner { transform: none; max-width: 28rem; }
}

/* ---------- Sections: title left, content right ---------- */

main > .section {
	max-width: var(--wide); margin: 0 auto;
	padding: clamp(3.25rem, 7vw, 5rem) var(--gutter);
	display: grid; grid-template-columns: 13rem minmax(0, 46rem);
	column-gap: clamp(2rem, 6vw, 5rem); position: relative;
}
main > .section::before {
	content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
	border-top: 1px solid var(--line);
}
.section-title {
	font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em;
	align-self: start; position: sticky; top: 6rem;
}
@media (max-width: 860px) {
	main > .section { grid-template-columns: minmax(0, 1fr); }
	.section-title { position: static; font-size: 2rem; margin-bottom: 1.5rem; }
	.section-title::before {
		content: ""; display: block; width: 1.75rem; border-top: 2px solid var(--accent); margin-bottom: 1rem;
	}
}
.intro { font-size: 1.2rem; color: var(--ink); margin-bottom: 1.75rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.4rem; }

/* What I teach */
.teach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.teach-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.teach-card p:last-child { margin: 0; font-size: 1.05rem; }
@media (max-width: 560px) { .teach { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.steps { counter-reset: step; }
.steps li {
	counter-increment: step; position: relative;
	padding: 0 0 1.6rem 3.4rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0;
	width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
	border: 1px solid var(--accent); border-radius: 50%;
	font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--accent);
	background: var(--paper);
}
.steps li:not(:last-child)::after {
	content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: 0.3rem;
	border-left: 1px dashed var(--line);
}
.steps h3 { padding-top: 0.25rem; }
.steps p { margin: 0; }

/* Planner features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.75rem; }
.features li { border-top: 2px solid var(--accent); padding-top: 0.8rem; }
.features h3 { font-size: 1.15rem; }
.features p { margin: 0; font-size: 1rem; line-height: 1.5; }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Fees */
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fee {
	padding: 1.3rem 1.3rem 1.2rem; background: var(--card);
	border: 1px solid var(--line); border-radius: 10px;
}
.fee:first-child { border-color: var(--accent); }
.fee-amount { font-size: 2rem; line-height: 1.1; color: var(--ink); margin: 0.2rem 0 0.5rem; font-variant-numeric: lining-nums; }
.fee-amount span, .fee-amount small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.fee-ask { font-size: 1.55rem; font-style: italic; }
.fee-note { margin: 1rem 0 0; font-size: 1.02rem; color: var(--ink); }
.fee-sub { margin: 0; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.terms { margin-top: 1.75rem; font-size: 1.02rem; }
.terms li { position: relative; padding: 0.2rem 0 0.2rem 1.3rem; }
.terms li::before { content: "\2014"; position: absolute; left: 0; color: var(--muted); }
@media (max-width: 760px) { .fees { grid-template-columns: minmax(0, 1fr); } }

/* About */
.about p { margin-bottom: 1.1em; }
.about-link { font-style: italic; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1rem 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; flex: none; font-family: var(--sans); font-size: 1.3rem; font-weight: 300;
	color: var(--accent); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -0.2rem 0 1.1rem; max-width: 36rem; }

/* Enquiry */
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
label, legend { color: var(--muted); padding: 0; }
label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
select, input[type="text"], textarea {
	width: 100%; padding: 0.7rem 0.8rem; font: inherit; font-size: 1.05rem; color: var(--ink);
	background: var(--card); border: 1px solid var(--line); border-radius: 8px;
	transition: border-color 0.2s;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
fieldset.field { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
fieldset.field legend { width: 100%; margin-bottom: 0.4rem; }
.choice {
	display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
	font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.choice input { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
.send { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.contact-alt { margin: 1.5rem 0 0; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) { .enquiry { grid-template-columns: minmax(0, 1fr); } .send .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */

.footer {
	max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 3rem;
	font-family: var(--sans); font-size: 0.8rem; color: var(--muted);
}
.footer p { margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.topbar, .planner, .enquiry, .theme-toggle { display: none; }
	.faq details > * { display: block; }
}
