/* ───────── Customer site: tokens ───────── */
:root {
  color-scheme: light;
  --brand: #0021FF;
  --brand-600: #001BD6;
  --brand-700: #0015A8;
  --brand-50: #F0F2FF;
  --brand-100: #E0E5FF;
  --brand-200: #C2CBFF;
  --solid: #0021FF;          /* filled buttons + selected states (always deep blue) */
  --solid-hover: #001BD6;
  --solid-press: #0015A8;

  --ink: #0B1033;
  --ink-2: #3A4166;
  --ink-3: #6A7090;
  --ink-4: #A3A8C0;
  --line: #E6E8F0;
  --line-2: #D3D7E5;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --tint: #F5F6FD;
  --danger: #C8102E;
  --success: #0E8A5F;
  --danger-bg: #FDF1F3;
  --danger-line: #F3C2CB;
  --glass: rgba(250, 250, 250, .82);
  --glass-strong: rgba(255, 255, 255, .92);
  --hover: rgba(11, 16, 51, .04);
  --press: rgba(11, 16, 51, .08);

  --display: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 1180px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;

  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);

  /* depth: base → raised → floating (navy-tinted) */
  --sh-1: 0 1px 2px rgba(11, 16, 51, .04), 0 1px 3px rgba(11, 16, 51, .04);
  --sh-2: 0 1px 2px rgba(11, 16, 51, .04), 0 4px 12px -2px rgba(11, 16, 51, .06), 0 12px 28px -8px rgba(0, 33, 255, .08);
  --sh-3: 0 2px 4px rgba(11, 16, 51, .04), 0 12px 32px -8px rgba(11, 16, 51, .10), 0 32px 64px -24px rgba(0, 33, 255, .18);
  --sh-brand: 0 1px 2px rgba(0, 33, 255, .2), 0 6px 16px -4px rgba(0, 33, 255, .35);
}

/* ───────── dark mode ───────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #8C9BFF;          /* lighter accent so text and icons stay readable on navy */
  --brand-50: #161C4D;
  --brand-100: #232C73;
  --brand-200: #3A49B8;
  --brand-700: #B3BDFF;
  --ink: #EDEFFA;
  --ink-2: #B8BDD6;
  --ink-3: #8C92B0;
  --ink-4: #60668A;
  --line: #262B48;
  --line-2: #3A4066;
  --bg: #0A0D1F;
  --surface: #121630;
  --tint: #191E3B;
  --danger: #FF8A98;
  --danger-bg: rgba(255, 138, 152, .1);
  --danger-line: rgba(255, 138, 152, .35);
  --success: #4ED6A0;
  --glass: rgba(10, 13, 31, .8);
  --glass-strong: rgba(18, 22, 48, .92);
  --hover: rgba(255, 255, 255, .06);
  --press: rgba(255, 255, 255, .1);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -10px rgba(0, 0, 0, .6);
  --sh-3: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(140, 155, 255, .05);
  --sh-brand: 0 6px 18px -6px rgba(0, 33, 255, .7);
}

/* ───────── display toggles ───────── */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.display-toggles { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.icon-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; transition: transform .25s var(--spring), background-color .15s, color .15s; }
.icon-toggle svg { width: 18px; height: 18px; }
.icon-toggle:hover { color: var(--ink); background: var(--hover); }
.icon-toggle:active { transform: scale(.92); background: var(--press); }
.icon-toggle:focus-visible { outline-offset: 1px; }
.icon-toggle[aria-pressed="true"] { background: var(--brand-50); color: var(--brand); }
.icon-toggle .ic-sun { display: none; }
[data-theme="dark"] .icon-toggle .ic-sun { display: block; }
[data-theme="dark"] .icon-toggle .ic-moon { display: none; }
.show-sm { display: none; }
@media (max-width: 480px) { .hide-sm { display: none; } .show-sm { display: inline; } .header-row { gap: var(--sp-3); } }

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; font-feature-settings: 'cv11', 'ss01'; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ───────── brand ───────── */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; transition: opacity .15s; }
.brand-logo { display: block; height: 26px; width: auto; }
@media (min-width: 900px) { .brand-logo { height: 30px; } }
.brand-lg .brand-logo { height: 34px; }
.brand .on-dark { display: none; }
[data-theme="dark"] .brand .on-light { display: none; }
[data-theme="dark"] .brand .on-dark { display: block; }
@media (max-width: 380px) { .brand-logo { height: 22px; } }
.brand:hover { opacity: .85; }
.brand:active { opacity: .7; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.25em; border-radius: 10px; border: 1px solid transparent;
  background: var(--solid); color: #fff; font-weight: 600; font-size: .975rem; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; user-select: none; white-space: nowrap; box-shadow: var(--sh-brand);
  transition: transform .3s var(--spring), background-color .15s, box-shadow .2s, border-color .15s, opacity .2s;
}
.btn:hover { background: var(--solid-hover); transform: translateY(-1px); }
.btn:active { background: var(--solid-press); transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:focus-visible { outline-offset: 3px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-secondary:active { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-ghost:active { background: var(--brand-50); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 6px 20px -6px rgba(0, 0, 40, .35); }
.btn-white:hover { background: #fff; }
.btn-white:active { background: var(--brand-50); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-white:active { background: rgba(255,255,255,.18); }
.btn-lg { min-height: 52px; font-size: 1.02rem; padding: 0 1.5em; }
.btn-sm { min-height: 38px; font-size: .9rem; padding: 0 1em; border-radius: 9px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--brand); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s; }
.link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.link:active { opacity: .7; }

/* ───────── header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); background: var(--glass-strong); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--sp-5); }
.site-nav { display: none; gap: var(--sp-1); }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .45em .8em; border-radius: 8px; transition: color .15s, background-color .15s; }
.site-nav a:hover { color: var(--ink); background: var(--hover); }
.site-nav a:active { background: var(--press); }
.header-cta { display: flex; gap: var(--sp-2); align-items: center; }
.header-cta .btn-ghost { display: none; }
@media (min-width: 900px) { .site-nav { display: flex; } .header-cta .btn-ghost { display: inline-flex; } }

/* ───────── hero ───────── */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: clip; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 55% at 85% 20%, rgba(0, 33, 255, .10), transparent 70%),
    radial-gradient(30% 40% at 65% 85%, rgba(0, 33, 255, .06), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(0, 33, 255, .04), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

.pill { display: inline-flex; align-items: center; gap: .5em; padding: .35em .8em .35em .4em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.pill b { display: inline-grid; place-items: center; height: 22px; padding: 0 .55em; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .78rem; }
.hero h1 { margin: var(--sp-5) 0 0; font-family: var(--display); font-weight: 750; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 .accent { color: var(--brand); }
.hero-lede { margin: var(--sp-5) 0 0; max-width: 34rem; font-size: clamp(1.05rem, 1.8vw, 1.18rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } .hero-facts { margin-top: var(--sp-6); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin: var(--sp-7) 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: .55em; font-size: .93rem; font-weight: 500; color: var(--ink-2); }
.hero-facts svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }

/* key information card (floating layer) */
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); width: 100%; max-width: 460px; justify-self: center; }
@media (min-width: 980px) { .facts-card { justify-self: end; } }
.facts-title { margin: 0 0 var(--sp-2); font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.facts { margin: 0; }
.fact { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.fact-ic svg { width: 20px; height: 20px; }
.fact dt { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }
.fact dd { margin: 0; font-weight: 600; font-size: .97rem; line-height: 1.4; }
.fact:first-child dd { color: var(--brand); }

/* about the tutor */
.about-grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 940px) { .about-grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); } }
.about-grid .lede + .lede { margin-top: var(--sp-4); }
.imperial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.imperial-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-6) var(--sp-5); background: var(--solid); color: #fff; }
.imperial-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.2), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(0,0,60,.3), transparent 60%); }
.imperial-head::after { content: ''; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; z-index: -1; opacity: .1; background: url('/logo-white.svg') center / contain no-repeat; }
.imperial-rank { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; }
.imperial-head strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.imperial-head div span { font-size: .9rem; color: rgba(255,255,255,.8); }
.imperial-list { list-style: none; margin: 0; padding: var(--sp-3) var(--sp-5) var(--sp-4); }
.imperial-list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; font-size: .96rem; }
.imperial-list li:first-child { border-top: 0; }
.imperial-list b { color: var(--ink); font-weight: 600; }
.imperial-list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--brand); margin-top: 1px; }

/* hero: example session plan (floating layer) */
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--sp-5); width: 100%; max-width: 440px; justify-self: center; }
@media (min-width: 980px) { .plan-card { justify-self: end; } }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.plan-tag { font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: .3em .7em; border-radius: 999px; }
.plan-topic { margin: var(--sp-2) 0 var(--sp-4); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.plan-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.plan-steps li { position: relative; display: flex; gap: var(--sp-4); padding: 0 0 var(--sp-4); }
.plan-steps li:last-child { padding-bottom: 0; }
.plan-steps li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.plan-steps li:last-child::before { display: none; }
.plan-steps li.done::before { background: var(--solid); }
.plan-steps .dot { position: relative; z-index: 1; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.plan-steps li.done .dot { background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--brand); }
.plan-steps li.active .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.plan-steps li.active .dot::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--solid); }
.plan-steps b { display: block; font-weight: 600; line-height: 1.35; }
.plan-steps li:not(.done):not(.active) b { color: var(--ink-3); }
.plan-steps div span { display: block; font-size: .88rem; color: var(--ink-3); line-height: 1.45; }
.plan-foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.plan-bar { height: 8px; border-radius: 999px; background: var(--brand-50); overflow: hidden; }
.plan-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-200), var(--solid)); }
.plan-foot > span { display: block; margin-top: var(--sp-3); font-size: .88rem; color: var(--ink-2); line-height: 1.45; }

/* benefits */
.benefit-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit { padding: var(--sp-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.benefit-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--solid); color: #fff; box-shadow: var(--sh-brand); }
.benefit-ic svg { width: 22px; height: 22px; }
.benefit h3 { margin: var(--sp-5) 0 var(--sp-2); font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; }
.benefit p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.keyfacts { margin: var(--sp-6) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.keyfacts div { padding: var(--sp-4) var(--sp-5); border-left: 1px solid var(--line); margin-left: -1px; border-top: 1px solid var(--line); margin-top: -1px; }
.keyfacts dt { font-size: .8rem; color: var(--ink-3); }
.keyfacts dd { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }

/* what's covered */
.cover-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .cover-grid { grid-template-columns: 1.4fr 1fr; } }
.cover-card { padding: var(--sp-6) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.cover-card.soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.cover-top { display: flex; gap: var(--sp-4); align-items: center; }
.cover-top h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.cover-top p { margin: 2px 0 0; color: var(--ink-3); font-size: .93rem; }
.cover-card.soon .subject-icon { background: var(--tint); color: var(--ink-3); }
.soon-tag { font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: .3em .65em; border-radius: 999px; }
.topic-list { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.topic-list li { padding: .45em .9em; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 500; font-size: .92rem; }
.soon-text { margin: var(--sp-4) 0 var(--sp-5); color: var(--ink-2); font-size: .95rem; }

/* booking: unavailable chip */
.chip-soon span { border-style: dashed; color: var(--ink-3); background: transparent; cursor: default; gap: .5em; }
.chip-soon em { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: .2em .55em; border-radius: 999px; }
.chip.chip-soon:hover span { border-color: var(--line-2); color: var(--ink-3); transform: none; }

/* ───────── sections ───────── */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--sp-3); }
.h2 { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: var(--sp-4) 0 0; font-size: clamp(1.02rem, 1.6vw, 1.12rem); color: var(--ink-2); }

/* subjects */
.subject-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 561px) { .subject-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .subject-grid { grid-template-columns: repeat(4, 1fr); } }
.subject-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.subject-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); transition: background-color .2s, color .2s; }
.subject-icon svg { width: 22px; height: 22px; }
.subject-card h3 { margin: var(--sp-2) 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; }
.subject-card p { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.55; flex: 1; }

@media (max-width: 560px) {
  .subject-grid { gap: var(--sp-3); }
  .subject-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--sp-4); row-gap: 2px; padding: var(--sp-4); }
  .subject-icon { grid-row: span 2; }
  .subject-card h3 { margin: 0; font-size: 1.05rem; }
  .subject-card p { grid-column: 2; font-size: .87rem; }
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.step { position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1rem; box-shadow: var(--sh-brand); }
.step h3 { margin: var(--sp-5) 0 var(--sp-2); font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ───────── booking ───────── */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.book-grid > * { min-width: 0; }
@media (min-width: 980px) { .book-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: var(--sp-6); } }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 0 clamp(1.25rem, 3vw, 2rem); }
.notice { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--brand-200); border-radius: var(--r); background: var(--brand-50); color: var(--ink); margin-bottom: var(--sp-5); line-height: 1.5; }
.notice.error { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger); }

.bstep { padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--line); }
.bstep:first-child { border-top: 0; }
.bstep-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.bstep-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .85rem; transition: background-color .2s, color .2s; }
.bstep.done .bstep-num { background: var(--solid); color: #fff; }
.bstep-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }

.field-label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin: var(--sp-5) 0 var(--sp-2); }
.field-label:first-child { margin-top: 0; }
.field-label .opt { font-weight: 400; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1em; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 500; font-size: .94rem; color: var(--ink-2); background: var(--surface); transition: transform .25s var(--spring), background-color .15s, color .15s, border-color .15s; user-select: none; }
.chip:hover span { border-color: var(--ink-3); color: var(--ink); }
.chip input:active + span { transform: scale(.97); }
.chip input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip-lg span { min-height: 46px; font-size: 1rem; padding: 0 1.15em; }

.durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.dur { position: relative; }
.dur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.dur-card { display: grid; gap: 2px; padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: transform .3s var(--spring), background-color .15s, border-color .15s, box-shadow .2s; }
.dur-time { font-weight: 500; font-size: .9rem; color: var(--ink-3); }
.dur-price { font-family: var(--display); font-weight: 750; font-size: clamp(1.25rem, 3vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.2; }
.dur:hover .dur-card { border-color: var(--ink-3); }
.dur input:active + .dur-card { transform: scale(.98); }
.dur input:checked + .dur-card { background: var(--brand-50); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.dur input:checked + .dur-card .dur-price { color: var(--brand); }
.dur input:focus-visible + .dur-card { outline: 2px solid var(--brand); outline-offset: 2px; }

.freq { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .freq { grid-template-columns: 1fr 1fr; } }
.freq-opt { position: relative; }
.freq-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.freq-card { display: grid; gap: 4px; height: 100%; padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: transform .3s var(--spring), background-color .15s, border-color .15s, box-shadow .2s; }
.freq-card b { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); font-weight: 600; }
.freq-card b em { font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: .2em .55em; border-radius: 999px; }
.freq-card > span { font-size: .88rem; color: var(--ink-3); line-height: 1.45; }
.freq-opt:hover .freq-card { border-color: var(--ink-3); }
.freq-opt input:active + .freq-card { transform: scale(.98); }
.freq-opt input:checked + .freq-card { background: var(--brand-50); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.freq-opt input:focus-visible + .freq-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.step-hint { margin: calc(var(--sp-2) * -1) 0 var(--sp-4); font-size: .9rem; color: var(--ink-2); }
.sum-note { margin: calc(var(--sp-2) * -1) 0 var(--sp-4); font-size: .84rem; color: var(--ink-3); line-height: 1.45; }

.dates-wrap { margin: 0 calc(clamp(1.25rem, 3vw, 2rem) * -1); }
.dates { display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x proximity; padding: 2px clamp(1.25rem, 3vw, 2rem) var(--sp-3); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.date-btn { flex: 0 0 auto; scroll-snap-align: start; width: 68px; padding: var(--sp-2) 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; display: grid; justify-items: center; gap: 1px; line-height: 1.15; transition: transform .25s var(--spring), background-color .15s, color .15s, border-color .15s; }
.date-btn .dw { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.date-btn .dd { font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; }
.date-btn .dm { font-size: .76rem; color: var(--ink-3); }
.date-btn:hover { border-color: var(--ink-3); }
.date-btn:active { transform: scale(.96); }
.date-btn[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: #fff; box-shadow: var(--sh-brand); }
.date-btn[aria-pressed="true"] .dw, .date-btn[aria-pressed="true"] .dm { color: rgba(255,255,255,.8); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
.time-btn { min-height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: .93rem; color: var(--ink-2); cursor: pointer; transition: transform .25s var(--spring), background-color .15s, color .15s, border-color .15s; }
.time-btn:hover { border-color: var(--brand); color: var(--brand); }
.time-btn:active { transform: scale(.96); }
.time-btn[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: #fff; box-shadow: var(--sh-brand); }
.tz-note { font-size: .84rem; color: var(--ink-3); margin: var(--sp-3) 0 0; }
.empty { padding: var(--sp-5); border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--ink-2); line-height: 1.5; background: var(--bg); }

.fields { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: .65em .9em; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: .97rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(11,16,51,.03); transition: border-color .15s, box-shadow .2s; }
.textarea { min-height: 104px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236A7090' stroke-width='1.8'%3E%3Cpath d='m3.5 5.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.4em; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.summary { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--sh-3); }
.summary h3 { margin: 0 0 var(--sp-3); font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.summary dl { margin: 0; }
.summary .row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line); line-height: 1.4; font-size: .94rem; }
.summary .row:first-child { border-top: 0; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary dd.muted { color: var(--ink-4); font-weight: 400; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-4) 0; margin-bottom: var(--sp-2); border-top: 1px solid var(--line); }
.summary .total span { font-weight: 600; }
.summary .total strong { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
.secure { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin: var(--sp-3) 0 0; font-size: .8rem; color: var(--ink-3); text-align: center; line-height: 1.4; }
.secure svg { flex: 0 0 auto; }
.form-error { color: var(--danger); font-weight: 500; font-size: .9rem; margin: var(--sp-3) 0 0; line-height: 1.45; }
.form-error:empty { display: none; }

.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom)); background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11,16,51,.15); transform: translateY(110%); transition: transform .4s var(--out); }
.paybar.show { transform: translateY(0); }
.pb-total { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.1; }
.pb-sub { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }
@media (min-width: 980px) { .paybar { display: none; } }

/* ───────── payment dialog (embedded Stripe form) ───────── */
.pay-dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); overflow: hidden; }
.pay-dialog[open] { display: flex; flex-direction: column; animation: pay-in .35s var(--out); }
.pay-dialog::backdrop { background: rgba(5, 8, 30, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes pay-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--line); }
.pay-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.pay-sub { margin: 4px 0 0; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.pay-close { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: transform .25s var(--spring), background-color .15s, color .15s; }
.pay-close:hover { background: var(--tint); color: var(--ink); }
.pay-close:active { transform: scale(.92); }
.pay-body { padding: var(--sp-5); overflow-y: auto; overscroll-behavior: contain; }
.pay-loading { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); color: var(--ink-2); font-size: .95rem; }
/* Stripe's form uses a light theme, so it sits on a white surface in dark mode too */
.pay-surface { background: #FFFFFF; border-radius: var(--r); min-height: 80px; }
[data-theme="dark"] .pay-surface { padding: var(--sp-4); }
@media (max-width: 560px) {
  .pay-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
}

/* ───────── enquiry ───────── */
.enq-grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 980px) { .enq-grid { grid-template-columns: .9fr 1.1fr; gap: var(--sp-8); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(1.25rem, 3vw, 2rem); }
.contact-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: center; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: 0 0 auto; }
.contact-list strong { display: block; font-weight: 600; line-height: 1.3; }
.contact-list span, .contact-list a { color: var(--ink-3); font-size: .93rem; text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.share { margin-top: var(--sp-6); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.share h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.share p { margin: 0 0 var(--sp-4); color: var(--ink-3); font-size: .93rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.success { text-align: center; padding: var(--sp-7) var(--sp-4); }
.success .tick { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.success .big { font-family: var(--display); font-weight: 750; font-size: 1.5rem; letter-spacing: -0.03em; margin: var(--sp-4) 0 var(--sp-2); }

/* ───────── questions: FAQ + contact ───────── */
.q-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 940px) { .q-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); } }
.card-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.card-sub { margin: var(--sp-2) 0 var(--sp-5); color: var(--ink-2); font-size: .97rem; }
#enq-card .contact-list { margin: 0 0 var(--sp-5); }

/* ───────── faq ───────── */
.faq-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); } }
.faq { display: grid; gap: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); cursor: pointer; font-weight: 600; font-size: 1.02rem; border-radius: var(--r-lg); transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary:active { opacity: .7; }
.faq .chev { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); transition: transform .35s var(--spring), background-color .2s, color .2s; }
.faq details[open] .chev { transform: rotate(180deg); background: var(--solid); color: #fff; }
.faq .answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); }
.faq .answer p { margin: 0; }

/* ───────── footer ───────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: var(--sp-7) 0 var(--sp-6); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-5); align-items: flex-start; }
.footer-top p { margin: var(--sp-3) 0 0; color: var(--ink-3); font-size: .93rem; max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: .87rem; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }
#footer-contact { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

.footer-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.footer-share > span { font-size: .9rem; color: var(--ink-3); margin-right: var(--sp-2); }

/* ───────── utilities ───────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); z-index: 200; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: .75em 1.2em; border-radius: 12px; font-weight: 500; font-size: .94rem; box-shadow: var(--sh-3); transition: transform .4s var(--spring), opacity .2s; max-width: calc(100vw - 2rem); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--out), transform .7s var(--out); }
.reveal.in { opacity: 1; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
