/* Finale Booking: public pages. */
/* Fonts: Outfit everywhere. Indie Flower (handwriting) is loaded too: use class="font-hand" or var(--font-hand). */
:root { --font: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-hand: "Indie Flower", cursive; }
.font-hand { font-family: var(--font-hand); font-weight: 400; }
:root { --accent: #32936f; --cta: #32936f; --cta-hover: #2c8161; --yellow: #ffbf00; --cta-ink: #fff; --green: #32936f; --green-hover: #2c8161; --header: #212a30; --ink: #1f2328; --muted: #6a6f76; --line: #e2e4e8; --soft: #f5f6f8; --bg: #fafaf8; --ok: #1a7f37; --warn: #9a6700; --err: #b42318; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
body.embed { background: transparent; padding: 4px; }
a { color: var(--accent); text-decoration: none; }
a:where(:hover) { color: var(--green-hover); }
:where(button.link, .link, .flb-link):hover { color: var(--green-hover); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 26px 0 12px; }
code { font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.site-header { background: var(--header); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .18); }
/* Jump links (eg #book, #contact) land below the sticky header, not under it. */
[id] { scroll-margin-top: 96px; }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.brand img { max-height: 48px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; color: #fff; font-weight: 500; }
.site-nav a:hover { color: var(--yellow); }
.site-nav .link { color: #fff; text-decoration: none; font-weight: 500; }
.site-nav .link:hover { color: var(--yellow); }
/* Short pages: main grows so the footer sits at the bottom of the screen. */
body.site { display: flex; flex-direction: column; overflow-x: clip; }
body.site > .site-main { flex: 1 0 auto; width: 100%; }
.site-main { padding-top: 32px; padding-bottom: 56px; }
.site-footer { background: var(--header); color: #c9ced3; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-main { display: flex; align-items: center; gap: 32px 48px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.footer-logo img { max-height: 90px; width: auto; display: block; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 2px solid rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.45; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-social { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.footer-social .icon { width: 30px; height: 30px; }
.site-footer-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #c9ced3; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.site-nav .nav-icon { display: inline-flex; }
.site-nav .nav-icon .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
	.footer-main { flex-direction: column; align-items: flex-start; gap: 20px; }
	.footer-contact { padding-left: 0; border-left: 0; }
	.footer-social { margin-left: 0; }
}
.site-nav { margin-left: auto; }
.site-header .nav-cta, .site-header .nav-contact { flex: 0 0 auto; }
.site-header .nav-contact { background: #fff; border-color: #fff; color: var(--header); margin-right: -6px; }
.site-header .nav-contact:hover { background: #e9edf0; border-color: #e9edf0; color: var(--header); }
@media (max-width: 640px) {
	.site-header-in { padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
	.brand img { max-height: 40px; }
	.site-header .nav-contact { order: 2; margin-left: auto; margin-right: -8px; }
	.site-header .nav-cta { order: 2; }
	.site-header .nav-cta, .site-header .nav-contact { padding: 6px 10px; font-size: 13px; }
	.site-nav { order: 3; width: 100%; margin-left: 0; gap: 16px; font-size: 14px; }
}
form.inline { display: inline; margin: 0; }
button.link, .link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: none; }
.link.danger, .danger { color: var(--err); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--err); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.card h2:first-child { margin-top: 0; }
/* Short forms (log in, passwords): a centred card with the fields stacked. */
.card.narrow { max-width: 480px; margin: 24px auto; }
.card.narrow .form > .btn { align-self: stretch; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 2px solid var(--cta); border-radius: 6px; background: var(--cta); color: var(--cta-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ghost { background: transparent; border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-row form { margin: 0; }

.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.field > span { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c5c8cd; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea.input { min-height: 0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; }

.notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; font-size: 15px; border: 1px solid; }
.notice-success { background: #e8f5ec; border-color: #cbe8d3; color: #114b22; }
.notice-error { background: #fdecea; border-color: #f5cdc8; color: #7a1a12; }
.notice-warn { background: #fff4d6; border-color: #f3dfa4; color: #5c3d00; }
.notice-info { background: #eef4fb; border-color: #cfe0f2; color: #16395e; }

.lesson-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.lesson-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.lesson-row:first-child { border-top: 0; }
.lesson-row.is-past { color: var(--muted); }
.lesson-date { display: flex; flex-direction: column; }
.lesson-date span { font-size: 14px; color: var(--muted); }
.lesson-info small { display: block; color: var(--muted); }
.lesson-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }

@media (max-width: 640px) {
	h1 { font-size: 24px; }
	.row { grid-template-columns: 1fr; }
	.lesson-row { grid-template-columns: 1fr; gap: 4px; }
	.lesson-actions { justify-content: flex-start; margin-top: 6px; }
	.card { padding: 18px; }
}

/* ---------- Booking app (shared with the old plugin) ---------- */

.flb-app, .flb-account {
	--flb-accent: var(--accent, #32936f);
	--flb-ink: #1f2328;
	--flb-muted: #6a6f76;
	--flb-line: #dfe1e5;
	--flb-soft: #f5f6f8;
	--flb-ok: #1a7f37;
	--flb-warn: #9a6700;
	--flb-err: #b42318;
	--flb-radius: 10px;
	color: var(--flb-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: none;
	margin: 0;
}
.flb-app *, .flb-account * { box-sizing: border-box; }

/* Buttons: reset theme styles. */
.flb-app button, .flb-account button { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.flb-btn, .flb-app .flb-btn, .flb-account .flb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 46px; padding: 10px 22px; border: 2px solid var(--flb-accent); border-radius: 8px;
	background: var(--cta, #32936f); border-color: var(--cta, #32936f); color: var(--cta-ink, #fff) !important; font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; transition: filter .15s, background .15s; box-shadow: none;
}
.flb-btn:hover { background: var(--cta-hover, #2c8161); border-color: var(--cta-hover, #2c8161); }
.flb-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--flb-accent) 40%, transparent); outline-offset: 2px; }
.flb-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.flb-btn-ghost, .flb-app .flb-btn-ghost, .flb-account .flb-btn-ghost { background: transparent; border-color: var(--flb-accent); color: var(--flb-accent) !important; }
.flb-btn-ghost:hover, .flb-app .flb-btn-ghost:hover { background: var(--flb-accent); border-color: var(--flb-accent); color: #fff !important; }
.flb-btn-small { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.flb-link { background: none; border: 0; padding: 0; color: var(--flb-accent); text-decoration: none; cursor: pointer; font-size: 14px; }

/* Progress. */
.flb-progress { display: flex; gap: 4px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: none; }
.flb-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--flb-muted); position: relative; margin: 0; padding: 0; }
.flb-progress li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--flb-line); z-index: 0; }
.flb-progress li:first-child::before { display: none; }
.flb-progress li span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--flb-line); font-weight: 700; font-size: 13px; }
.flb-progress li.done span { background: var(--flb-accent); border-color: var(--flb-accent); color: #fff; }
.flb-progress li.done::before, .flb-progress li.current::before { background: var(--flb-accent); }
.flb-progress li.current { color: var(--flb-ink); font-weight: 600; }
.flb-progress li.current span { border-color: var(--flb-accent); color: var(--flb-accent); }

.flb-h { font-size: 22px; line-height: 1.25; margin: 22px 0 12px; }
.flb-body > .flb-h:first-child { margin-top: 0; }
.flb-muted { color: var(--flb-muted); }
.flb-small { font-size: 13px; }

/* Chips. */
.flb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.flb-chips span { background: var(--flb-soft); border: 1px solid var(--flb-line); border-radius: 999px; padding: 3px 12px; font-size: 13px; }

/* Cards. */
.flb-cards { display: grid; gap: 12px; margin-bottom: 16px; }
.flb-cards-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flb-card, .flb-app .flb-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
	padding: 18px 18px; background: #fff; color: var(--flb-ink); border: 2px solid var(--flb-line); border-radius: var(--flb-radius);
	cursor: pointer; transition: border-color .15s, box-shadow .15s; width: 100%; min-height: 0; font-weight: 400;
}
.flb-card:hover:not([disabled]) { border-color: var(--flb-accent); }
.flb-card.is-selected { border-color: var(--flb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flb-accent) 18%, transparent); }
.flb-card[disabled] { opacity: .5; cursor: not-allowed; }
.flb-card-static { cursor: default; background: var(--flb-soft); }
.flb-card-compact { padding: 14px 16px; }
.flb-card-title { font-weight: 700; font-size: 17px; }
.flb-card-price { font-weight: 600; color: var(--flb-accent); }
.flb-card-price s { color: var(--flb-muted); font-weight: 400; margin-left: 4px; }
.flb-card-text { color: var(--flb-muted); font-size: 14px; }
.flb-badge { position: absolute; top: -10px; right: 12px; background: var(--flb-ok); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Teachers. */
.flb-input, .flb-app .flb-input {
	width: 100%; padding: 11px 12px; border: 1px solid #c5c8cd; border-radius: 8px; font: inherit; background: #fff; color: var(--flb-ink); min-height: 46px; box-shadow: none; margin: 0;
}
.flb-input:focus { outline: none; border-color: var(--flb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flb-accent) 18%, transparent); }
.flb-search { margin-bottom: 12px; }
.flb-teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.flb-teacher, .flb-app .flb-teacher {
	display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; width: 100%;
	background: #fff; color: var(--flb-ink); border: 2px solid var(--flb-line); border-radius: var(--flb-radius); cursor: pointer; font-weight: 400;
}
.flb-teacher:hover:not([disabled]) { border-color: var(--flb-accent); }
.flb-teacher.is-selected { border-color: var(--flb-accent); }
.flb-teacher[disabled] { opacity: .55; cursor: not-allowed; }
.flb-avatar-img { object-fit: cover; padding: 0; }
.flb-avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--flb-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.flb-teacher-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flb-teacher-name { font-weight: 700; font-size: 17px; }
.flb-teacher-inst { font-size: 14px; }
.flb-teacher-meta { font-size: 13px; color: var(--flb-muted); }
.flb-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.flb-tag-warn { background: #fff4d6; color: var(--flb-warn); }
.flb-tag-muted { background: var(--flb-soft); color: var(--flb-muted); }

/* Calendar. */
.flb-cal { border: 1px solid var(--flb-line); border-radius: var(--flb-radius); padding: 12px; background: #fff; max-width: 420px; }
.flb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.flb-cal-nav, .flb-app .flb-cal-nav { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--flb-line); background: #fff; color: var(--flb-ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.flb-cal-nav[disabled] { opacity: .3; cursor: default; }
.flb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.flb-cal-dow { text-align: center; font-size: 12px; color: var(--flb-muted); padding: 4px 0; }
.flb-cal-day, .flb-app .flb-cal-day { aspect-ratio: 1; border-radius: 8px; border: 0; background: transparent; color: #b3b7bd; font-size: 15px; padding: 0; min-height: 0; cursor: default; }
.flb-cal-day.has-slots { background: color-mix(in srgb, var(--flb-accent) 10%, #fff); color: var(--flb-ink); font-weight: 600; cursor: pointer; }
.flb-cal-day.has-slots:hover { background: color-mix(in srgb, var(--flb-accent) 22%, #fff); }
.flb-cal-day.is-selected { background: var(--flb-accent) !important; color: #fff; }
.flb-cal-day.is-today { outline: 1px dashed var(--flb-muted); outline-offset: -3px; }
.flb-cal-grid .flb-loading { grid-column: 1 / -1; }
.flb-slots { margin-top: 14px; }
.flb-slots-title { font-size: 16px; margin: 0 0 8px; }
.flb-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.flb-slot, .flb-app .flb-slot { padding: 10px 6px; border: 1px solid var(--flb-accent); border-radius: 8px; background: #fff; color: var(--flb-accent); font-weight: 600; cursor: pointer; min-height: 0; font-size: 15px; }
.flb-slot:hover { background: color-mix(in srgb, var(--flb-accent) 10%, #fff); }
.flb-slot.is-selected { background: var(--flb-accent); color: #fff; }
.flb-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; background: var(--flb-soft); border-radius: 8px; }
.flb-selected .flb-btn { margin-left: auto; }

/* Weekly plan. */
.flb-plan-box { margin-top: 16px; padding: 14px 16px; background: var(--flb-soft); border-radius: var(--flb-radius); }
.flb-plan-box h3 { margin: 0 0 8px; font-size: 16px; }
.flb-plan-list { margin: 0 0 8px 1.2em; padding: 0; columns: 2; column-gap: 24px; font-size: 14px; }
.flb-plan-list li { margin: 0 0 3px; break-inside: avoid; }

/* Forms. */
.flb-form { display: flex; flex-direction: column; gap: 12px; }
.flb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flb-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.flb-field > span { font-size: 14px; font-weight: 600; }
.flb-check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.flb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.flb-review { margin-top: 8px; padding: 14px 16px; border: 1px solid var(--flb-line); border-radius: var(--flb-radius); }
.flb-review h3 { margin: 0 0 8px; font-size: 16px; }
.flb-dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: 15px; }
.flb-dl dt { color: var(--flb-muted); margin: 0; }
.flb-dl dd { margin: 0; }
.flb-split { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.flb-split td { padding: 6px 0; border: 0; border-top: 1px solid var(--flb-line); background: none; }
.flb-split td:last-child { text-align: right; white-space: nowrap; }
.flb-split-total td { font-weight: 700; }

/* Nav. */
.flb-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }

/* Notices. */
.flb-notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; font-size: 15px; border: 1px solid; }
.flb-notice-error { background: #fdecea; border-color: #f5cdc8; color: #7a1a12; }
.flb-notice-warn { background: #fff4d6; border-color: #f3dfa4; color: #5c3d00; }
.flb-notice-info { background: #eef4fb; border-color: #cfe0f2; color: #16395e; }
.flb-notice-success { background: #e8f5ec; border-color: #cbe8d3; color: #114b22; }
.flb-loading { padding: 16px 0; color: var(--flb-muted); font-size: 14px; }
.flb-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--flb-line); border-top-color: var(--flb-accent); border-radius: 50%; animation: flb-spin .8s linear infinite; }
@keyframes flb-spin { to { transform: rotate(360deg); } }

/* Payment. */
.flb-pay-summary { padding: 14px 16px; background: var(--flb-soft); border-radius: var(--flb-radius); margin-bottom: 14px; }
.flb-pay-item { font-weight: 600; }
.flb-pay-total { margin-top: 6px; font-size: 18px; font-weight: 700; }
.flb-pay-lessons { margin-top: 6px; font-size: 14px; }
.flb-pay-lessons ol { margin: 6px 0 0 1.2em; padding: 0; }
.flb-pay-explain { font-size: 15px; }
.flb-parts { display: flex; flex-direction: column; gap: 12px; }
.flb-part { border: 2px solid var(--flb-line); border-radius: var(--flb-radius); padding: 14px 16px; background: #fff; }
.flb-part-active { border-color: var(--flb-accent); }
.flb-part-paid { border-color: var(--flb-ok); background: #f3faf5; }
.flb-part-waiting { opacity: .6; }
.flb-part-head { display: flex; align-items: center; gap: 10px; }
.flb-part-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--flb-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.flb-part-paid .flb-part-num { background: var(--flb-ok); }
.flb-part-waiting .flb-part-num { background: #b3b7bd; }
.flb-part-label { flex: 1; }
.flb-part-units { font-size: 13px; color: var(--flb-muted); }
.flb-part-amount { font-size: 18px; }
.flb-part-status { margin-top: 6px; font-size: 14px; color: var(--flb-muted); }
.flb-part-paid .flb-part-status { color: var(--flb-ok); font-weight: 600; }
.flb-pp { margin-top: 12px; max-width: 420px; }
.flb-hold { font-size: 14px; color: var(--flb-muted); margin-top: 14px; }

/* Done. */
.flb-done { text-align: center; padding: 10px 0; }
.flb-done .flb-plan-list { display: inline-block; text-align: left; }
.flb-done-icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--flb-ok); color: #fff; display: grid; place-items: center; }
.flb-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* My Account. */
.flb-account h3 { margin-top: 26px; }
.flb-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.flb-block-card { border: 1px solid var(--flb-line); border-radius: var(--flb-radius); padding: 14px 16px; }
.flb-block-title { font-weight: 700; }
.flb-block-meta { font-size: 14px; color: var(--flb-muted); }
.flb-meter { height: 8px; background: var(--flb-soft); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.flb-meter span { display: block; height: 100%; background: var(--flb-accent); }
.flb-table td, .flb-table th { padding: 10px 8px; vertical-align: top; }
.flb-table .flb-actions { white-space: nowrap; text-align: right; }
.flb-table .flb-actions .flb-link { margin-left: 10px; }
.flb-past { margin-top: 20px; }
.flb-past summary { cursor: pointer; font-weight: 600; }

@media (max-width: 600px) {
	.flb-row { grid-template-columns: 1fr; }
	.flb-progress li { font-size: 0; }
	.flb-progress li span { font-size: 13px; }
	.flb-h { font-size: 20px; }
	.flb-plan-list { columns: 1; }
	.flb-cal { max-width: none; }
	.flb-nav .flb-btn { flex: 1; }
	.flb-table .flb-actions { white-space: normal; text-align: left; }
}

/* Standalone page tweaks. */
.flb-account { max-width: none; margin: 0; }
.form > h2:first-of-type { margin-top: 0; }
.form > h2 + p { margin-top: -6px; }

/* ---------- Teachers (matches the school website) ---------- */
.teachers-title { color: var(--green); font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.teachers-intro { color: #3d4247; }
.teachers-sub { font-size: 26px; font-weight: 500; color: #5d5d6f; margin: 26px 0 22px; }
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 40px; }
.teacher-tile { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; }
.teacher-photo { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #e9ecef; box-shadow: 0 6px 18px rgba(33, 42, 49, .12); display: block; transition: transform .2s, box-shadow .2s; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher-tile:hover .teacher-photo, .teacher-tile:focus-visible .teacher-photo { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(33, 42, 49, .2); }
.teacher-initial { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; font-weight: 700; color: #fff; background: var(--green); }
.teacher-name { margin-top: 16px; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.teacher-name.is-yellow { color: #e0a800; }
.teacher-name.is-green { color: var(--green); }
.teacher-inst { font-size: 15px; color: #3d4247; line-height: 1.3; margin-top: 2px; }
.teacher-rating { font-size: 13px; margin-top: 4px; }
.stars { color: #e0a800; display: inline-flex; gap: 1px; vertical-align: -2px; }
.stars .star-off { color: #d5d8dc; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.crumbs { margin: -12px 0 18px; font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; margin-bottom: 40px; }
.profile-photo { aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(33, 42, 49, .15); background: #e9ecef; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { font-size: 36px; text-transform: uppercase; color: var(--green); margin: 0; }
.profile-inst { font-size: 19px; font-weight: 500; margin: 2px 0 8px; }
.profile-meta { color: var(--muted); font-size: 15px; }
.profile-meta a { color: inherit; }
.socials { display: flex; gap: 8px; margin: 12px 0; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--header); color: #fff; transition: background .15s; }
.socials a:hover { background: var(--green); }
.profile-bio { margin: 16px 0 20px; color: #2f3439; }
.profile-book { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 40px; }
.profile-book > h2, .profile-reviews > h2 { font-size: 24px; margin: 0 0 18px; }
.profile-reviews { border-top: 1px solid var(--line); padding-top: 28px; }
.profile-reviews h2 small { font-size: 16px; font-weight: 500; margin-left: 8px; }
.review { margin: 0 0 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.review blockquote { margin: 6px 0; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review-form { margin-top: 24px; }
.review-form h3 { margin: 0; }
.rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; width: 100%; }
.rate input { position: absolute; opacity: 0; }
.rate label { color: #d5d8dc; cursor: pointer; line-height: 0; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #e0a800; }
.rate input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }
@media (max-width: 760px) {
	.profile { grid-template-columns: 1fr; gap: 20px; }
	.profile-photo { max-width: 320px; }
	.teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
	.teachers-sub { font-size: 20px; }
}

/* ---------- Account menu (header) ---------- */
.acct-menu { position: relative; }
.acct-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; font-weight: 500; font-size: 15px; padding: 4px 6px; border-radius: 6px; }
.acct-menu summary::-webkit-details-marker { display: none; }
.acct-menu summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.acct-menu summary:hover { color: var(--yellow); }
.acct-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 330px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(33, 42, 49, .2); padding: 8px; }
.site-nav .acct-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.site-nav .acct-item:hover { background: #f3f6f4; color: var(--ink); }
.acct-item strong { display: block; font-size: 15px; font-weight: 600; }
.acct-item small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.acct-ico { flex: 0 0 34px; height: 34px; border-radius: 8px; background: #eaf5f0; color: var(--green); display: grid; place-items: center; }
/* Music School menu opens from its left edge. */
@media (min-width: 641px) { .site-menu .acct-pop { right: auto; left: 0; } }
.acct-logout { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.acct-logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.acct-logout button:hover { background: #f3f6f4; }
.acct-logout .acct-ico { background: #f1f2f4; color: var(--muted); }
@media (max-width: 640px) {
	.acct-pop { position: fixed; left: 12px; right: 12px; top: 110px; width: auto; }
}

/* ---------- Account pages ---------- */
.acct-tabs { display: flex; gap: 4px; overflow-x: auto; margin: -12px 0 26px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 12px 11px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-tabs a .icon { width: 18px; height: 18px; }
.acct-tabs a:hover { color: var(--ink); }
.acct-tabs a.on { color: var(--green); border-bottom-color: var(--green); }
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.acct-card h2 { margin: 0 0 4px; font-size: 18px; }
.acct-card > p.muted { margin: 0 0 16px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.acct-grid .full { grid-column: 1 / -1; }
.acct-actions { display: flex; justify-content: flex-end; gap: 12px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inv-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.inv-list tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f2; color: #3b4250; }
.pill-ok { background: #e5f5ee; color: #0b6b48; }
.pill-warn { background: #fef6e0; color: #7a5500; }
.pill-bad { background: #fde8e9; color: #9b1c23; }
.review-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; }
.review-card .rc-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #e9ecef; display: grid; place-items: center; font-weight: 700; font-size: 26px; color: #fff; background-color: var(--green); }
.review-card .rc-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
	.acct-grid { grid-template-columns: 1fr; }
	.acct-card { padding: 18px; }
	.review-card { grid-template-columns: 1fr; }
}

/* ---------- Invoice ---------- */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px 40px; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.inv-head h1 { font-size: 28px; margin: 0 0 4px; }
.inv-meta { display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 14px; }
.inv-meta dt { color: var(--muted); }
.inv-meta dd { margin: 0; text-align: right; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; font-size: 14px; }
.inv-parties h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.inv-total td { font-weight: 700; font-size: 17px; border-bottom: 0; }
.inv-note { font-size: 13px; color: var(--muted); margin-top: 24px; }
@media print {
	.site-header, .site-footer, .acct-tabs, .no-print, .notice { display: none !important; }
	body { background: #fff; }
	.site-main { padding: 0; }
	.invoice { border: 0; padding: 0; max-width: none; }
}

/* Where: logo buttons for In person, Zoom and Google Meet. */
.flb-where { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.flb-where-btn, .flb-app .flb-where-btn { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.flb-where-logo { flex: 0 0 48px; height: 48px; border-radius: 10px; background: var(--flb-soft); display: grid; place-items: center; }
.flb-where-logo img { display: block; }
.flb-where-logo.is-place { color: var(--green, #32936f); }
.flb-where-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.platform-logo { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }

/* ---------- Online courses ---------- */
.crumbs { margin: 0 0 14px; font-size: 14px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 22px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.course-card:hover { box-shadow: 0 10px 28px rgba(33, 42, 49, .12); transform: translateY(-2px); color: var(--ink); }
.course-img { aspect-ratio: 16 / 9; background: var(--soft); display: block; }
.course-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.course-meta { font-size: 13px; color: var(--muted); margin: 0; }
.course-title { font-size: 18px; line-height: 1.3; }
.course-teaser { font-size: 14px; color: var(--muted); flex: 1; }
.course-price { font-weight: 700; color: var(--green); font-size: 18px; }
.course-progress { display: flex; flex-direction: column; gap: 2px; }
.course-progress .flb-meter { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.course-progress .flb-meter span { display: block; height: 100%; background: var(--green); }
.course-progress small { color: var(--muted); font-size: 13px; }

.course-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.course-hero { width: 100%; border-radius: 12px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.course-head h1 { font-size: 30px; margin: 4px 0 16px; }
.course-buy { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.course-buy .btn { align-self: flex-start; }
.course-price-big { font-size: 28px; font-weight: 800; color: var(--ink); }
.course-price-big small { font-size: 14px; font-weight: 400; color: var(--muted); }
.course-buy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.course-buy-fields .field:last-child { grid-column: 1 / -1; }
.course-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.course-about h2, .course-lessons h2 { margin-top: 0; }

.prose { line-height: 1.65; }
.prose h2 { font-size: 22px; margin: 22px 0 10px; }
.prose h3 { font-size: 19px; margin: 20px 0 8px; }
.prose h4 { font-size: 17px; margin: 18px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose li > ul, .prose li > ol { margin: 4px 0 4px; }

.lesson-list-c { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lesson-list-c li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.lesson-list-c li:first-child { border-top: 0; }
.lesson-list-c a { color: var(--ink); text-decoration: none; flex: 1; }
.lesson-list-c a:hover { color: var(--green); }
.lesson-list-c li > span:nth-child(2) { flex: 1; }
.ll-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.lesson-list-c li.is-done .ll-num { background: var(--green); color: #fff; }
.lesson-list-c li.is-current { background: #f3f8f5; }
.lesson-list-c li.is-current a { font-weight: 600; }
.ll-lock { color: var(--muted); display: inline-flex; }
.ll-lock .icon { width: 16px; height: 16px; }
.lesson-list-c.compact li { padding: 8px 12px; font-size: 14px; }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.lesson-main h1 { margin: 4px 0 16px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lesson-nav form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.lesson-done { color: var(--green); font-weight: 700; }
.lesson-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }

.my-courses { display: flex; flex-direction: column; gap: 14px; }
.my-course { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.my-course img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.my-course h2 { margin: 0 0 6px; font-size: 20px; }
.my-course h2 a { color: var(--ink); }

@media (max-width: 860px) {
	.course-head, .course-cols, .lesson-layout { grid-template-columns: 1fr; }
	.lesson-side { position: static; }
	.my-course { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.course-buy-fields { grid-template-columns: 1fr; }
	.course-head h1 { font-size: 24px; }
}

/* ---------- Gift certificates ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.gift-item .course-price small { font-size: 13px; font-weight: 500; }
@media (max-width: 900px) { .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.gift-card:hover { box-shadow: 0 10px 28px rgba(33, 42, 49, .12); transform: translateY(-2px); color: var(--ink); }
.gift-ribbon { width: 44px; height: 44px; border-radius: 10px; background: #fff4cc; color: #b78500; display: grid; place-items: center; margin-bottom: 6px; }
.gift-ribbon .icon { width: 24px; height: 24px; }
.gift-card .course-price small { font-size: 13px; font-weight: 500; }
.gift-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gift-buy h1 { margin-top: 0; }
.gift-points { padding-left: 1.2em; line-height: 1.8; }
.redeem-gift { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff8e0; border-radius: 10px; margin-bottom: 14px; }
.redeem-gift .icon { width: 28px; height: 28px; color: #b78500; flex: 0 0 auto; }
.code-input { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
.certificate { max-width: 720px; margin: 0 auto; background: #fff; border: 3px double var(--yellow); border-radius: 16px; padding: 44px 40px; text-align: center; }
.cert-logo { height: 60px; filter: invert(1) brightness(.2); margin-bottom: 10px; }
.cert-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: 13px; color: var(--muted); margin: 0; }
.cert-for { margin: 18px 0 0; color: var(--muted); }
.cert-name { font-size: 44px; font-weight: 800; margin: 4px 0 8px; color: var(--green); }
.cert-what { font-size: 18px; font-weight: 600; margin: 0; }
.cert-from { color: var(--muted); margin: 6px 0 0; }
.cert-msg { font-style: italic; font-size: 17px; margin: 20px auto; max-width: 520px; color: #3d4247; }
.cert-code { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 22px; border: 2px dashed var(--yellow); border-radius: 10px; margin: 16px 0; }
.cert-code span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cert-code strong { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 2px; }
.cert-how, .cert-note { font-size: 14px; color: #3d4247; }
.cert-foot { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 760px) { .gift-buy { grid-template-columns: 1fr; } .certificate { padding: 28px 18px; } .cert-name { font-size: 36px; } }
@media print { .certificate { border-color: #999; } }

/* ---------- Regular groups ---------- */
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.group-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.group-card:hover { box-shadow: 0 10px 28px rgba(33, 42, 49, .12); transform: translateY(-2px); color: var(--ink); }
.group-top { display: flex; justify-content: space-between; align-items: center; }
.group-top .gift-ribbon { margin-bottom: 0; }
.group-price { font-weight: 700; color: var(--green); font-size: 18px; }
.group-price small { font-weight: 500; font-size: 13px; color: var(--muted); }
.group-when { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.group-when .icon { width: 17px; height: 17px; color: var(--green); }
.group-card .course-teaser { flex: 1; }
.group-dates { font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.group-dates small { color: var(--muted); font-size: 14px; }
.group-go { font-weight: 600; color: var(--green); font-size: 15px; }
.group-card:hover .group-go { color: var(--green-hover); }
.date-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.date-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 15px; }
.date-opt:has(input:checked) { border-color: var(--green); background: #f3f8f5; }
.date-opt.is-full { opacity: .5; cursor: not-allowed; }
.date-list { margin: 8px 0; padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) { .group-grid { grid-template-columns: 1fr; } }

/* ---------- Homepage and contact ---------- */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; margin: 12px 0 48px; }
.home-intro-img { width: 100%; max-width: 480px; height: auto; display: block; justify-self: center; }
.home-intro .prose { font-size: 17px; }
.instrument-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.instrument-grid li { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.25; transition: border-color .15s, transform .15s; }
.instrument-grid li:hover { border-color: var(--green); transform: translateY(-2px); }
.ig-icon { width: 52px; height: 52px; border-radius: 12px; background: #eaf5f0; color: var(--green); display: grid; place-items: center; }
.more-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.more-card:hover { box-shadow: 0 10px 28px rgba(33, 42, 49, .12); transform: translateY(-2px); color: var(--ink); }
.more-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.more-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.more-go { margin-top: auto; padding-top: 6px; color: var(--green); font-weight: 600; font-size: 14px; }
.home-section { margin-bottom: 48px; }
.home-section h2, .home-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; }
.home-head { margin-bottom: 18px; }
.home-head h2 { margin: 0; }
.home-head { display: flex; justify-content: space-between; align-items: baseline; }
.home-teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.home-teacher { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.home-teacher .teacher-photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; margin-bottom: 4px; }
.home-teacher .teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-teacher small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.home-teacher:hover strong { color: var(--green); }
.home-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.contact-info p { margin: 0 0 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) {
	.home-intro, .contact-cols { grid-template-columns: 1fr; gap: 24px; }
	.home-intro-img { max-width: 300px; }
}

/* ---------- Homepage hero: the playable piano ---------- */
.piano-hero { position: relative; overflow: hidden; background: var(--header); color: #fff; margin: -32px calc(50% - 50vw) 36px; width: 100vw; padding-top: 110px; user-select: none; -webkit-user-select: none; }
.ph-inner { position: relative; z-index: 2; }
.ph-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.ph-copy .btn-row { justify-content: center; }
.ph-title { font-weight: 800; line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.02em; text-transform: capitalize; }
.ph-t1, .ph-t2 { display: block; }
.ph-t1 { font-size: 42px; font-weight: 700; }
.ph-t2 { font-size: 76px; }
.ph-sub { color: #cfd6dc; font-size: 17px; max-width: 50ch; margin: 0 auto 20px; }
.piano-hero .btn-ghost { border-color: #fff; color: #fff; }
.piano-hero .btn-ghost:hover { background: #fff; color: var(--header); }

/* Background notes rest faintly, and glow up then fade when keys are played. */
.ph-bg-notes span { position: absolute; z-index: 1; color: #fff; font-size: 30px; opacity: .14; transition: opacity 1.4s ease, color 1.4s ease, transform 1.4s ease; animation: ph-bob 6s ease-in-out infinite; }
.ph-bg-notes span.lit { opacity: .95; color: var(--yellow); transform: scale(1.25); transition: opacity .12s ease, color .12s ease, transform .12s ease; }
.ph-bg-notes span:nth-child(1) { top: 14%; left: 6%; font-size: 40px; }
.ph-bg-notes span:nth-child(2) { top: 30%; left: 13%; animation-delay: -1s; }
.ph-bg-notes span:nth-child(3) { top: 10%; left: 22%; font-size: 24px; animation-delay: -2s; }
.ph-bg-notes span:nth-child(4) { top: 38%; left: 4%; animation-delay: -3s; }
.ph-bg-notes span:nth-child(5) { top: 12%; left: 76%; font-size: 26px; animation-delay: -4s; }
.ph-bg-notes span:nth-child(6) { top: 32%; left: 84%; font-size: 22px; animation-delay: -5s; }
.ph-bg-notes span:nth-child(7) { top: 16%; left: 92%; animation-delay: -1.5s; }
.ph-bg-notes span:nth-child(8) { top: 40%; left: 93%; font-size: 36px; animation-delay: -2.5s; }
.ph-bg-notes span:nth-child(9) { top: 22%; left: 30%; font-size: 20px; animation-delay: -3.5s; }
.ph-bg-notes span:nth-child(10) { top: 26%; left: 68%; font-size: 24px; animation-delay: -4.5s; }
.ph-bg-notes span:nth-child(11) { top: 44%; left: 22%; font-size: 26px; animation-delay: -0.5s; }
.ph-bg-notes span:nth-child(12) { top: 46%; left: 74%; font-size: 30px; animation-delay: -5.5s; }
@keyframes ph-bob { 50% { translate: 0 -8px; rotate: 6deg; } }

.ph-stage { position: relative; z-index: 2; perspective: 1400px; perspective-origin: 50% 0; margin-top: 90px; }
.piano { --n: 21; position: relative; display: flex; height: clamp(150px, 20vw, 230px); transform: rotateX(28deg); transform-origin: 50% 100%; touch-action: none; cursor: pointer; }
.pk { position: relative; display: block; }
.pk-white { flex: 1; background: linear-gradient(#fff 80%, #eceff1); border: 1px solid var(--header); border-top: 0; border-radius: 0 0 6px 6px; box-shadow: inset 0 -6px 0 #d9dee2; transition: background .06s; }
.pk-white i { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-style: normal; font-size: 12px; font-weight: 600; color: #9aa4ac; }
.pk-white i.is-c { color: var(--green); font-weight: 800; }
.pk-black { position: absolute; top: 0; z-index: 2; width: calc(100% / var(--n) * .6); height: 62%; left: calc(100% / var(--n) * var(--i) - (100% / var(--n) * .3)); background: linear-gradient(#2b343b, #0e1216); border-radius: 0 0 4px 4px; box-shadow: inset 0 -5px 0 #3a444c, 0 3px 4px rgba(0, 0, 0, .4); transition: background .06s; }
.pk-white.down { background: linear-gradient(#ffe38a, #ffbf00); box-shadow: inset 0 -2px 0 #e6ac00; }
.pk-black.down { background: linear-gradient(#3aa37c, #227559); box-shadow: inset 0 -2px 0 #1b5e47; }

/* Notes off the keys: fade in, drift up, fade out. */
.ph-float { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ph-note { position: absolute; font-size: 30px; color: var(--yellow); transform: translate(-50%, -50%); opacity: 0; animation: ph-rise 2.4s ease-in-out forwards; text-shadow: 0 0 14px rgba(255, 191, 0, .45); }
.ph-note:nth-child(even) { color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, .35); }
@keyframes ph-rise {
	0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); }
	25% { opacity: 1; }
	65% { opacity: .85; }
	100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -240px) rotate(var(--rot)) scale(1.15); }
}
.ph-bar { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px 16px; font-size: 13px; color: #aeb7be; }
.ph-mute { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; cursor: pointer; }
.ph-mute:hover { border-color: var(--yellow); color: var(--yellow); }
.ph-mute .off, .ph-mute.is-muted .on { display: none; }
.ph-mute.is-muted .off { display: block; }
@media (hover: none) { .ph-kbd { display: none; } }
@media (max-width: 700px) {
	.piano-hero { padding-top: 56px; }
	.ph-stage { margin-top: 48px; }
	.home-section h2, .home-head h2 { font-size: 26px; }
	.ph-t1 { font-size: 26px; }
	.ph-t2 { font-size: 44px; }
	.ph-bg-notes span:nth-child(n+7) { display: none; }
	.piano { transform: rotateX(20deg); }
}
@media (prefers-reduced-motion: reduce) {
	.ph-bg-notes span { animation: none; }
	.ph-note { display: none; }
}

/* Course facts: Lifetime access, level, lessons, students. */
.course-facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: #3d4247; }
.course-facts li { display: inline-flex; align-items: center; gap: 6px; }
.course-facts .icon { width: 18px; height: 18px; color: var(--yellow); stroke-width: 2; }
.course-card .course-facts { margin: 2px 0 4px; font-size: 13px; gap: 4px 12px; }
.course-card .course-facts .icon { width: 15px; height: 15px; }

/* Reviews carousel: testimonials from Settings, plus 5-star teacher reviews. */
.rv-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -8px; }
.rv-viewport::-webkit-scrollbar { display: none; }
.rv-track { display: flex; }
.rv-card { flex: 0 0 calc(100% / 3); scroll-snap-align: start; margin: 0; padding: 8px; box-sizing: border-box; display: flex; }
.rv-inner { flex: 1; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.rv-inner .stars { color: var(--yellow); letter-spacing: 2px; font-size: 16px; }
.rv-inner blockquote { margin: 0; color: #3d4247; line-height: 1.6; flex: 1; }
.rv-inner figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rv-initial { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: #eaf5f0; color: var(--green); font-weight: 700; }
.rv-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
.rv-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.rv-btn:hover { border-color: var(--green); color: var(--green); }
.rv-btn[data-dir="-1"] .icon { transform: rotate(-90deg); }
.rv-btn[data-dir="1"] .icon { transform: rotate(90deg); }
.rv-dots { display: flex; gap: 6px; }
.rv-dots span { width: 8px; height: 8px; border-radius: 50%; background: #cfd6dc; }
.rv-dots span.on { background: var(--green); }
@media (max-width: 900px) { .rv-card { flex-basis: 50%; } }
@media (max-width: 600px) { .rv-card { flex-basis: 100%; } }

/* Teacher's courses button (under their photo) and "About your teacher" on course pages. */
.profile-courses { width: 100%; margin-top: 12px; }
.profile-courses .icon { width: 18px; height: 18px; }
.about-teacher { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.about-teacher h2 { margin: 0 0 12px; font-size: 18px; }
.at-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.at-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.at-head small { display: block; color: var(--muted); font-size: 13px; }
.about-teacher p { color: #3d4247; font-size: 14px; line-height: 1.55; }

/* "Been given a gift?" box (gift shop and homepage). */
.redeem-box { display: flex; align-items: center; gap: 18px; margin: 22px 0 36px; padding: 20px 24px; background: #fff8e0; border: 1px solid #f3dc8a; border-radius: 14px; }
.rb-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #fff; color: #b78500; display: grid; place-items: center; }
.rb-icon .icon { width: 28px; height: 28px; }
.rb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rb-text strong { font-size: 19px; }
.rb-text span { color: #5a4a12; }
@media (max-width: 640px) { .redeem-box { flex-direction: column; align-items: flex-start; } }

/* Home icon at the start of the main menu. */
.site-nav .nav-home { display: inline-flex; align-items: center; }
.site-nav .nav-home .icon { width: 20px; height: 20px; }

.profile-venue { display: flex; align-items: center; gap: 6px; color: #3d4247; margin: 0 0 12px; }
.profile-venue .icon { width: 18px; height: 18px; color: var(--green); }

/* Booking: "Can't see a suitable slot?" */
.flb-nofit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 14px; }

/* Log in: password or emailed link. */
.login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
