/* =========================================================
   SHEILA THE WRITER — COMPLETE STYLESHEET v2
   Colors sourced from logos ONLY:
     Brand Blue (from sheila-colored.png): #223dff
     Dark mode bg  : #0f1211  (deep near-black)
     Dark mode text: #f0efe9  (warm off-white)
     Light mode bg : #f0efe9  (warm off-white)
     Light mode text: #0f1211 (deep near-black)
   ========================================================= */

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand constants */
  --blue:      #223dff;
  --blue-light:#5570ff;
  --blue-dark: #0f28cc;
  --blue-dim:  rgba(34,61,255,.12);
  --ink:       #0f1211;
  --paper:     #f0efe9;
  --cream:     #dddbd0;
  --serif:     'Playfair Display', serif;
  --sans:      Manrope, sans-serif;
  --mono:      'DM Mono', monospace;
}

/* Dark mode (default) */
[data-theme="dark"], :root {
  --bg:          #0f1211;
  --surface:     #191919;
  --surface2:    #222222;
  --surface3:    #2a2a2a;
  --text:        #f0efe9;
  --text-muted:  #8a9088;
  --text-dim:    #c0c4bc;
  --border:      rgba(240,239,233,.14);
  --header-bg:   rgba(15,18,17,.92);
  --btn-bg:      #223dff;
  --btn-text:    #ffffff;
  --card-bg:     #191919;
  --card-hover:  #222222;
  --line:        rgba(240,239,233,.14);
  --logo-color:  block;   /* colored logo shown */
  --logo-white:  none;    /* white logo hidden */
}

/* Light mode */
[data-theme="light"] {
  --bg:          #f0efe9;
  --surface:     #e6e4dc;
  --surface2:    #d8d6ce;
  --surface3:    #cccac2;
  --text:        #0f1211;
  --text-muted:  #4e5450;
  --text-dim:    #2a2a2a;
  --border:      rgba(15,18,17,.16);
  --header-bg:   rgba(240,239,233,.94);
  --btn-bg:      #223dff;
  --btn-text:    #ffffff;
  --card-bg:     #e6e4dc;
  --card-hover:  #d8d6ce;
  --line:        rgba(15,18,17,.16);
  --logo-color:  none;    /* colored logo hidden in light */
  --logo-white:  block;   /* white logo shown in light */
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Grain overlay ──────────────────────────────────────── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
[data-theme="light"] .grain { opacity: .03; }

/* ── Logo visibility ────────────────────────────────────────
   HTML assigns:
     sheila-colored.png  →  class="logo-dark"   (colored/blue)
     sheila-white.png    →  class="logo-light"  (white)

   DARK mode  → show white logo (logo-light), hide colored (logo-dark)
   LIGHT mode → show colored logo (logo-dark), hide white (logo-light)
   ──────────────────────────────────────────────────────── */
/* Dark mode defaults (data-theme="dark") */
.logo-dark  { display: none !important; }   /* colored logo: hidden in dark mode */
.logo-light { display: block !important; }  /* white logo: shown in dark mode */
/* Light mode overrides */
[data-theme="light"] .logo-dark  { display: block !important; }  /* colored logo shown in light mode */
[data-theme="light"] .logo-light { display: none !important; }   /* white logo hidden in light mode */

/* ── Site Header ────────────────────────────────────────── */
.site-header {
  height: 96px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 4.5vw;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .3s, border-color .3s;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.brand-logo {
  height: 144px;
  width: auto;
  display: block;
  transition: filter .3s;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 0;
  margin-right: 20px;
}
.site-header nav a, .header-action {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.site-header nav a {
  color: var(--text-dim);
  transition: color .2s;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--blue); }
.site-header nav a.active { color: var(--blue); }
[data-theme="light"] .site-header nav a { color: var(--text-dim); }
[data-theme="light"] .site-header nav a:hover { color: var(--blue); }

/* Nav Platforms Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dd-arrow {
  font-size: 0.65em;
  transition: transform .25s ease;
}
.nav-dropdown:hover .nav-dd-arrow,
.nav-dropdown.dd-open .nav-dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.dd-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--surface);
  border-top: 0;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--blue-dim);
  color: var(--blue);
}
.nav-dd-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
[data-theme="light"] .nav-dropdown-menu {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
[data-theme="light"] .nav-dropdown-menu::before {
  border-bottom-color: #fff;
}
[data-theme="light"] .nav-dropdown-menu a {
  color: var(--text-dim);
}
[data-theme="light"] .nav-dropdown-menu a:hover {
  background: var(--blue-dim);
  color: var(--blue);
}

/* Nav auth buttons — Login & Sign Up */
.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}
.nav-btn-login {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.nav-btn-login:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.nav-btn-signup {
  border-radius: 30px;
  padding: 9px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.nav-btn-signup:hover { opacity: .88; transform: translateY(-1px); }

.header-action {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 16px;
  margin-left: 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.header-action:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.header-action i { font-style: normal; color: var(--blue); margin-left: 6px; }
.header-action:hover i { color: #fff; }

/* Dark/Light toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  margin-left: 8px;
}
.theme-toggle:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* Flash notice */
.notice {
  position: relative;
  z-index: 12;
  background: var(--blue);
  color: #fff;
  padding: 12px 5vw;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.notice.success { background: var(--blue-dark); color: #fff; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 2.5px;
  color: var(--blue);
  margin: 0 0 22px;
  text-transform: uppercase;
}
[data-theme="light"] .eyebrow { color: var(--blue-dark); }

h1, h2, h3 { margin: 0; }
h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.05em;
  font-style: italic;
}

.button {
  display: inline-block;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 30px;
  padding: 14px 24px;
  font: 700 12px var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .2s, transform .2s, background .3s;
  text-transform: uppercase;
}
.button:hover { opacity: .88; transform: translateY(-2px); }
.button span { font-style: normal; margin-left: 8px; }
.button.outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.button.outline:hover { background: var(--blue); color: #fff; }
[data-theme="light"] .button.outline { color: var(--blue-dark); border-color: var(--blue-dark); }
[data-theme="light"] .button.outline:hover { background: var(--blue-dark); color: #fff; }

.button-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.text-link { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.text-link span { margin-left: 8px; color: var(--blue); }

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 580px;
  margin: 28px 0;
}
[data-theme="light"] .lead { color: #1e2820; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 86px);
  padding: 7vw 4.5vw 5vw;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 6vw;
  align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(50px, 7vw, 110px);
  max-width: 850px;
  line-height: .95;
  letter-spacing: -.07em;
  color: var(--text);
}
[data-theme="light"] .hero h1 { color: var(--ink); }

.hero-art {
  height: 440px;
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  border-radius: 6px;
}
.orb { position: absolute; border-radius: 50%; }
.orb-one {
  height: 420px; width: 420px;
  background: var(--blue);
  right: -110px; top: -140px;
  opacity: .75;
  filter: blur(1px);
}
.orb-two {
  height: 340px; width: 340px;
  background: #6a5aff;
  left: -130px; bottom: -160px;
  mix-blend-mode: screen;
  opacity: .6;
}
[data-theme="light"] .orb-one { opacity: .22; }
[data-theme="light"] .orb-two { opacity: .18; mix-blend-mode: multiply; background: var(--blue); }

.hero-note {
  position: absolute; z-index: 2;
  left: 28px; top: 26px; right: 26px;
  display: flex; justify-content: space-between;
  font: 10px var(--mono); letter-spacing: 1.5px;
  color: var(--text);
}
[data-theme="light"] .hero-note { color: #fff; }
.hero-note b { font-size: 15px; }
.hero-art > p {
  position: absolute; bottom: 24px; right: 26px;
  text-align: right;
  font: italic 26px/1 var(--serif);
  z-index: 2;
  color: var(--text);
  /* Ensure legibility on both modes */
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
/* Light mode: dark text with strong contrast for legibility */
[data-theme="light"] .hero-art > p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 16px rgba(0,0,0,.4);
}
/* Named class for hero clarity text — extra specificity */
.hero-clarity-text {
  position: absolute; bottom: 24px; right: 26px;
  text-align: right;
  font: italic 26px/1 var(--serif);
  z-index: 3;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  margin: 0;
}
[data-theme="light"] .hero-clarity-text {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 0 20px rgba(0,0,0,.5) !important;
  background: rgba(0,0,0,.25);
  padding: 6px 10px;
  border-radius: 4px;
}

/* ── Metrics bar ────────────────────────────────────────── */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin: 0 4.5vw;
}
.metrics div {
  padding: 32px 20px;
  border-right: 1px solid var(--border);
}
.metrics div:first-child { padding-left: 0; }
.metrics div:last-child { border: 0; }
.metrics strong {
  font-size: 38px;
  letter-spacing: -.07em;
  display: block;
  color: var(--blue);
}
[data-theme="light"] .metrics strong { color: var(--blue-dark); }
.metrics span {
  font: 10px var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Section utilities ──────────────────────────────────── */
.section { padding: 9vw 4.5vw; }
.section-sm { padding: 5vw 4.5vw; }
.inner { padding: 8vw 10vw 0; }
.inner-pad { padding: 7vw 10vw; }

/* ── Split story ────────────────────────────────────────── */
.split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}
.split-story h2, .solution h2, .audience h2, .two-col h2 {
  font-size: clamp(32px, 4.5vw, 65px);
  line-height: 1.02;
  letter-spacing: -.06em;
  color: var(--text);
}
[data-theme="light"] .split-story h2,
[data-theme="light"] .solution h2,
[data-theme="light"] .audience h2,
[data-theme="light"] .two-col h2 { color: var(--ink); }

.split-story > div:last-child {
  padding-top: 40px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
}
[data-theme="light"] .split-story > div:last-child { color: #1e2820; }

/* ── Solution section ───────────────────────────────────── */
.solution {
  background: var(--surface);
  padding: 9vw 4.5vw;
  transition: background .3s;
}
[data-theme="light"] .solution { background: var(--surface2); }
.solution-label {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.solution-label span { font: 12px var(--mono); color: var(--text-muted); }
.solution h2 { max-width: 900px; margin: 65px 0; }

/* ── Feature / Service grids ───────────────────────────── */
.feature-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-grid article {
  background: var(--surface);
  padding: 28px;
  min-height: 210px;
  transition: background .3s;
}
.feature-grid article:hover { background: var(--surface2); }
[data-theme="light"] .feature-grid article { background: var(--bg); }
[data-theme="light"] .feature-grid article:hover { background: var(--surface); }

.feature-grid b, .service-card small {
  font: 10px var(--mono);
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.feature-grid h3 {
  font-size: 19px;
  margin: 32px 0 10px;
  letter-spacing: -.04em;
  color: var(--text);
}
[data-theme="light"] .feature-grid h3 { color: var(--ink); }
.feature-grid p { color: var(--text-muted); margin: 0; font-size: 14px; }
[data-theme="light"] .feature-grid p { color: #4e5450; }

.service-card h3 {
  font-size: 20px;
  margin: 34px 0 10px;
  letter-spacing: -.04em;
  color: var(--text);
}
[data-theme="light"] .service-card h3 { color: var(--ink); }

.service-grid { grid-template-columns: repeat(3,1fr); margin-top: 40px; }
.service-card {
  background: var(--card-bg);
  padding: 26px;
  min-height: 280px;
  transition: background .3s, transform .3s;
  display: block;
  color: var(--text);
}
.service-card:hover { background: var(--card-hover); transform: translateY(-5px); }
.service-icon {
  font: 30px var(--serif);
  color: var(--blue);
  display: block;
  margin-bottom: 16px;
}
.service-card p { color: var(--text-muted); font-size: 13px; min-height: 55px; margin: 0; }
[data-theme="light"] .service-card p { color: #4e5450; }
.service-card > b {
  font: 11px var(--mono);
  display: block;
  margin-top: 26px;
  color: var(--text-dim);
  letter-spacing: .5px;
}
[data-theme="light"] .service-card > b { color: #1e2820; }
.service-card i { font-size: 15px; color: var(--blue); font-style: normal; float: right; }

/* ── Audience ───────────────────────────────────────────── */
.audience { border-top: 1px solid var(--border); padding: 9vw 4.5vw; }
.audience h2 { max-width: 850px; }
.audience-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.audience-list span {
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 11px 18px;
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color .2s, color .2s;
  cursor: default;
}
[data-theme="light"] .audience-list span { color: #1e2820; }
.audience-list span:hover { border-color: var(--blue); color: var(--blue); }

/* ── Page intro ─────────────────────────────────────────── */
.page-title {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: .96;
  letter-spacing: -.07em;
  margin: 0;
  max-width: 950px;
  color: var(--text);
}
[data-theme="light"] .page-title { color: var(--ink); }

/* ── Two-column layout ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
  padding-bottom: 8vw;
}
.two-col p { font-size: 16px; color: var(--text-dim); margin-top: 0; line-height: 1.75; }
[data-theme="light"] .two-col p { color: #1e2820; }
.two-col .button { margin-top: 18px; }

/* ── Article / Blog grid ───────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  padding-top: 56px;
}
.article-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  transition: background .3s, transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(34,61,255,.12);
}
[data-theme="light"] .article-card { background: var(--surface); }
[data-theme="light"] .article-card:hover { background: var(--surface2); }

/* Card image */
.article-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }

/* Card body */
.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .tag {
  font: 10px var(--mono);
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
[data-theme="light"] .article-card .tag { color: var(--blue-dark); }
.article-card h3 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 0 0 12px;
  color: var(--text);
}
[data-theme="light"] .article-card h3 { color: var(--ink); }
.article-card .excerpt {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
[data-theme="light"] .article-card .excerpt { color: #4e5450; }
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.article-card .read-link {
  font: 700 12px var(--sans);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
[data-theme="light"] .article-card .read-link { color: var(--blue-dark); }
.article-card .read-link:hover { text-decoration: underline; }
.article-card .meta { font: 10px var(--mono); color: var(--text-muted); margin: 0; }
[data-theme="light"] .article-card .meta { color: #6e7870; }

/* ── Contact form ───────────────────────────────────────── */
.form-shell {
  display: grid;
  grid-template-columns: 1fr .5fr;
  gap: 8vw;
  padding-top: 65px;
  padding-bottom: 9vw;
}
.form-shell form, .auth form { display: grid; gap: 20px; }
.form-shell label, .auth label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
[data-theme="light"] .form-shell label,
[data-theme="light"] .auth label { color: #3a4038; }

.form-shell input, .form-shell textarea, .form-shell select,
.auth input, select {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 12px 0;
  font: 16px var(--sans);
  outline: none;
  margin-top: 6px;
  transition: border-color .2s;
}
[data-theme="light"] .form-shell input,
[data-theme="light"] .form-shell textarea,
[data-theme="light"] .form-shell select,
[data-theme="light"] .auth input,
[data-theme="light"] select {
  color: var(--ink);
  border-bottom-color: rgba(15,18,17,.25);
}
.form-shell input:focus, .form-shell textarea:focus, .auth input:focus {
  border-bottom-color: var(--blue);
}
.form-shell textarea { resize: vertical; }
.form-shell aside {
  border-left: 1px solid var(--border);
  padding-left: 38px;
}
.form-shell aside h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; color: var(--text); }
[data-theme="light"] .form-shell aside h3 { color: var(--ink); }
.form-shell aside a { color: var(--blue); font-size: 14px; }
[data-theme="light"] .form-shell aside a { color: var(--blue-dark); }
.contact-detail { display: flex; flex-direction: column; gap: 26px; }
.contact-item p { font: 10px var(--mono); letter-spacing: 1.5px; color: var(--text-muted); margin: 0 0 6px; text-transform: uppercase; }
[data-theme="light"] .contact-item p { color: #3a4038; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--text); }
[data-theme="light"] .contact-item a, [data-theme="light"] .contact-item span { color: var(--ink); }
.contact-item a:hover { color: var(--blue); }

/* ── Detail page ────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 8vw;
  padding-top: 65px;
  padding-bottom: 9vw;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}
[data-theme="light"] .check-list li { color: #1e2820; }
.check-list li::before { content: '✓'; color: var(--blue); margin-right: 14px; }
.purchase-card {
  background: var(--surface);
  padding: 30px;
  border-top: 3px solid var(--blue);
  border-radius: 4px;
}
.purchase-card span { font: 10px var(--mono); color: var(--blue); letter-spacing: 2px; }
[data-theme="light"] .purchase-card span { color: var(--blue-dark); }
.purchase-card h2 { margin: 22px 0; font-size: 32px; letter-spacing: -.05em; color: var(--text); }
[data-theme="light"] .purchase-card h2 { color: var(--ink); }
.purchase-card p { color: var(--text-muted); font-size: 14px; }
[data-theme="light"] .purchase-card p { color: #4e5450; }
.purchase-card form { margin-top: 28px; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonials { padding: 9vw 4.5vw; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 4px;
  border-left: 3px solid var(--blue);
  transition: background .3s;
}
.testimonial-card:hover { background: var(--surface2); }
[data-theme="light"] .testimonial-card { background: var(--surface); }
[data-theme="light"] .testimonial-card:hover { background: var(--surface2); }
.testimonial-card blockquote {
  margin: 0 0 18px;
  font: italic 16px/1.6 var(--serif);
  color: var(--text-dim);
}
[data-theme="light"] .testimonial-card blockquote { color: #1e2820; }
.testimonial-card cite {
  font: 10px var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
[data-theme="light"] .testimonial-card cite { color: #4e5450; }
.star-row { color: var(--blue); font-size: 13px; margin-bottom: 14px; }
[data-theme="light"] .star-row { color: var(--blue-dark); }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--surface);
  padding: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.pricing-card.featured {
  border-color: var(--blue);
  background: var(--surface2);
}
[data-theme="light"] .pricing-card { background: var(--surface); }
[data-theme="light"] .pricing-card.featured { background: #dde1ff; border-color: var(--blue); }
.pricing-card .plan-name {
  font: 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
[data-theme="light"] .pricing-card .plan-name { color: var(--blue-dark); }
.pricing-card .plan-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.06em;
  margin: 0 0 6px;
  color: var(--text);
}
[data-theme="light"] .pricing-card .plan-price { color: var(--ink); }
.pricing-card .plan-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .pricing-card .plan-desc { color: #4e5450; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pricing-card ul li { font-size: 14px; color: var(--text-dim); padding-left: 20px; position: relative; line-height: 1.5; }
[data-theme="light"] .pricing-card ul li { color: #1e2820; }
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── Process steps ──────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.step {
  background: var(--surface);
  padding: 28px;
  transition: background .3s;
}
.step:hover { background: var(--surface2); }
[data-theme="light"] .step { background: var(--bg); }
[data-theme="light"] .step:hover { background: var(--surface); }
.step-num {
  font: 700 10px var(--mono);
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
  letter-spacing: 2px;
}
[data-theme="light"] .step-num { color: var(--blue-dark); }
.step h3 { font-size: 17px; letter-spacing: -.03em; margin-bottom: 10px; color: var(--text); }
[data-theme="light"] .step h3 { color: var(--ink); }
.step p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.65; }
[data-theme="light"] .step p { color: #4e5450; }

/* ── Subject / Exam tags ────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.tag-pill {
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color .2s, color .2s, background .2s;
  cursor: default;
}
[data-theme="light"] .tag-pill { color: #1e2820; }
.tag-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Exam cards ─────────────────────────────────────────── */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 48px;
}
.exam-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 4px;
  border-top: 3px solid var(--blue);
  transition: background .3s;
}
.exam-card:hover { background: var(--surface2); }
[data-theme="light"] .exam-card { background: var(--surface); }
[data-theme="light"] .exam-card:hover { background: var(--surface2); }
.exam-card .exam-name { font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin: 0 0 8px; color: var(--text); }
[data-theme="light"] .exam-card .exam-name { color: var(--ink); }
.exam-card .exam-full { font: 10px var(--mono); color: var(--text-muted); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.exam-card p { font-size: 13px; color: var(--text-dim); margin: 0 0 18px; line-height: 1.65; }
[data-theme="light"] .exam-card p { color: #1e2820; }
.exam-card .exam-price { font: 700 13px var(--mono); color: var(--blue); }
[data-theme="light"] .exam-card .exam-price { color: var(--blue-dark); }
.exam-card .button { margin-top: 16px; }

/* ── Course catalog ─────────────────────────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin-top: 48px;
}
.course-card {
  background: var(--surface);
  padding: 28px 30px;
  border-radius: 4px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: background .3s;
}
.course-card:hover { background: var(--surface2); }
[data-theme="light"] .course-card { background: var(--surface); }
[data-theme="light"] .course-card:hover { background: var(--surface2); }
.course-num {
  font: 700 26px var(--mono);
  color: var(--blue);
  opacity: .4;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.course-body h3 { font-size: 18px; letter-spacing: -.03em; margin: 0 0 8px; color: var(--text); }
[data-theme="light"] .course-body h3 { color: var(--ink); }
.course-body p { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.65; }
[data-theme="light"] .course-body p { color: #4e5450; }
.course-meta {
  display: flex;
  gap: 12px;
  font: 10px var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.course-meta span { color: var(--blue); }
[data-theme="light"] .course-meta span { color: var(--blue-dark); }

/* ── Materials cards ────────────────────────────────────── */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 48px;
}
.material-card {
  background: var(--surface);
  padding: 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.material-card:hover { border-color: var(--blue); background: var(--surface2); }
[data-theme="light"] .material-card { background: var(--surface); }
[data-theme="light"] .material-card:hover { background: var(--surface2); }
.material-icon { font-size: 26px; margin-bottom: 12px; display: block; }
.material-card h3 { font-size: 15px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--text); line-height: 1.35; }
[data-theme="light"] .material-card h3 { color: var(--ink); }
.material-card p { font-size: 12px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
[data-theme="light"] .material-card p { color: #4e5450; }
.material-card .mat-price { font: 700 13px var(--mono); color: var(--blue); }
[data-theme="light"] .material-card .mat-price { color: var(--blue-dark); }

/* ── Team grid ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 48px;
}
.team-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 4px;
  transition: background .3s;
  text-align: center;
}
.team-card:hover { background: var(--surface2); }
[data-theme="light"] .team-card { background: var(--surface); }
[data-theme="light"] .team-card:hover { background: var(--surface2); }
.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 17px; letter-spacing: -.03em; margin: 0 0 6px; color: var(--text); }
[data-theme="light"] .team-card h3 { color: var(--ink); }
.team-card .role { font: 10px var(--mono); color: var(--blue); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: block; }
[data-theme="light"] .team-card .role { color: var(--blue-dark); }
.team-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.65; }
[data-theme="light"] .team-card p { color: #4e5450; }

/* ── Values ─────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.value-item {
  background: var(--surface);
  padding: 30px;
  transition: background .3s;
}
.value-item:hover { background: var(--surface2); }
[data-theme="light"] .value-item { background: var(--bg); }
[data-theme="light"] .value-item:hover { background: var(--surface); }
.value-icon { font-size: 26px; margin-bottom: 12px; display: block; }
.value-item h3 { font-size: 19px; letter-spacing: -.03em; margin: 0 0 10px; color: var(--text); }
[data-theme="light"] .value-item h3 { color: var(--ink); }
.value-item p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.7; }
[data-theme="light"] .value-item p { color: #4e5450; }

/* ── Auth pages ─────────────────────────────────────────── */
.auth {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1fr .7fr;
}
.auth > section {
  padding: 8vw max(5vw, calc((100vw - 680px)/2));
  background: var(--surface);
  color: var(--text);
  transition: background .3s;
}
[data-theme="light"] .auth > section { background: var(--bg); }
.auth .brand { margin-bottom: 56px; display: flex; }
.auth .brand-logo { height: 46px; }
.auth h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: .97;
  letter-spacing: -.07em;
  color: var(--text);
}
[data-theme="light"] .auth h1 { color: var(--ink); }
.auth > section > p:not(.eyebrow):not(.auth-switch) {
  color: var(--text-muted);
  max-width: 460px;
  margin: 22px 0 32px;
  font-size: 15px;
  line-height: 1.7;
}
[data-theme="light"] .auth > section > p:not(.eyebrow):not(.auth-switch) { color: #3a4038; }
.auth form { max-width: 440px; }
.auth .button { width: max-content; margin-top: 8px; }
.auth-switch { font-size: 13px; margin-top: 22px; color: var(--text-muted); }
[data-theme="light"] .auth-switch { color: #3a4038; }
.auth-switch a { color: var(--blue); font-weight: 800; }
[data-theme="light"] .auth-switch a { color: var(--blue-dark); }
.auth > aside {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5vw;
  font: 11px var(--mono);
  color: rgba(255,255,255,.72);
}
.auth > aside b {
  font: italic 34px/1.06 var(--serif);
  color: #fff;
  max-width: 340px;
  margin-top: 20px;
}
/* Auth aside is always blue bg — always show white logo, hide colored */
.auth > aside .auth-logo { margin-bottom: auto; width: 120px; }
.auth > aside .logo-dark  { display: none !important; }
.auth > aside .logo-light { display: block !important; filter: brightness(0) invert(1); }

/* ── Checkout & Success ─────────────────────────────────── */
.checkout, .success { padding: 9vw; min-height: 65vh; }
.checkout h1, .success h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -.07em;
  margin: 0 0 40px;
  color: var(--text);
}
[data-theme="light"] .checkout h1,
[data-theme="light"] .success h1 { color: var(--ink); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 7vw;
  max-width: 960px;
}
.checkout-grid section {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.checkout-grid h3 { font-size: 20px; color: var(--text); }
[data-theme="light"] .checkout-grid h3 { color: var(--ink); }
.paypal-placeholder {
  border: 1px dashed var(--border);
  padding: 20px;
  color: var(--text-muted);
  margin-bottom: 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}
[data-theme="light"] .paypal-placeholder { color: #4e5450; }
.paypal-placeholder code { color: var(--blue); }
.success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.success-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

/* ── Dashboard ──────────────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 86px);
}
.dash-nav {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  overflow-y: auto;
  transition: background .3s;
}
[data-theme="light"] .dash-nav { background: var(--surface); }
.dash-nav .brand { margin-bottom: 44px; }
.dash-nav .brand-logo { height: 34px; }
.dash-nav > p {
  font: 700 9px var(--mono);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 6px;
  padding: 0 10px;
}
[data-theme="light"] .dash-nav > p { color: #6e7870; }
.dash-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
[data-theme="light"] .dash-nav a { color: #1e2820; }
.dash-nav a:hover { color: var(--text); background: var(--surface2); }
[data-theme="light"] .dash-nav a:hover { color: var(--ink); background: var(--surface2); }
.dash-nav a.active { color: var(--blue); background: rgba(34,61,255,.1); }
[data-theme="light"] .dash-nav a.active { color: var(--blue-dark); background: rgba(34,61,255,.08); }

.dash-content { padding: 6vw; }
.dash-content h1 {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.06em;
  margin: 0 0 36px;
  color: var(--text);
}
[data-theme="light"] .dash-content h1 { color: var(--ink); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.dash-stats div {
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  transition: background .3s;
}
.dash-stats div:last-child { border: 0; }
.dash-stats div:hover { background: var(--surface2); }
.dash-stats b {
  font-size: 32px;
  letter-spacing: -.06em;
  color: var(--blue);
  display: block;
  margin-bottom: 4px;
}
[data-theme="light"] .dash-stats b { color: var(--blue-dark); }
.dash-stats span { font: 9px var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
[data-theme="light"] .dash-stats span { color: #6e7870; }

.section-label {
  font: 700 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .section-label { color: #3a4038; }

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 3px solid var(--blue);
  transition: background .3s;
}
.order-row:hover { background: var(--surface2); }
[data-theme="light"] .order-row { background: var(--surface); }
[data-theme="light"] .order-row:hover { background: var(--surface2); }
.order-row h3 { font-size: 15px; letter-spacing: -.02em; margin: 4px 0; color: var(--text); }
[data-theme="light"] .order-row h3 { color: var(--ink); }
.order-row p { font-size: 12px; color: var(--text-muted); margin: 0; }
[data-theme="light"] .order-row p { color: #4e5450; }
.order-row a { font: 700 12px var(--mono); color: var(--blue); white-space: nowrap; }
[data-theme="light"] .order-row a { color: var(--blue-dark); }

.status-badge {
  font: 700 9px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--blue-dim);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 4px;
}
[data-theme="light"] .status-badge { color: var(--blue-dark); background: rgba(34,61,255,.1); }

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}

.empty { padding: 40px 0; }
.empty .lead { color: var(--text-muted); }
[data-theme="light"] .empty .lead { color: #4e5450; }

/* ── Admin dashboard ────────────────────────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.admin-stat-card {
  background: var(--surface);
  padding: 22px;
  border-radius: 4px;
  border-top: 3px solid var(--blue);
  transition: background .3s;
}
.admin-stat-card:hover { background: var(--surface2); }
[data-theme="light"] .admin-stat-card { background: var(--surface); }
[data-theme="light"] .admin-stat-card:hover { background: var(--surface2); }
.admin-stat-card .stat-label { font: 10px var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
[data-theme="light"] .admin-stat-card .stat-label { color: #3a4038; }
.admin-stat-card .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.05em; color: var(--blue); }
[data-theme="light"] .admin-stat-card .stat-value { color: var(--blue-dark); }
.admin-stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
[data-theme="light"] .admin-stat-card .stat-sub { color: #6e7870; }

.admin-table { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 2fr;
  gap: 16px;
  padding: 14px 18px;
  align-items: center;
}
.table-head {
  background: var(--surface2);
  font: 700 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .table-head { color: #3a4038; background: var(--surface2); }
.table-row { border-bottom: 1px solid var(--border); background: var(--surface); transition: background .3s; }
.table-row:last-child { border: 0; }
.table-row:hover { background: var(--surface2); }
[data-theme="light"] .table-row { background: var(--surface); }
[data-theme="light"] .table-row:hover { background: var(--surface2); }
.table-row b { font-size: 14px; display: block; color: var(--text); }
[data-theme="light"] .table-row b { color: var(--ink); }
.table-row small { font: 11px var(--mono); color: var(--text-muted); display: block; margin-top: 2px; }
[data-theme="light"] .table-row small { color: #4e5450; }
.table-row select, .table-row input[type="number"] {
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  margin-right: 8px;
}
[data-theme="light"] .table-row select,
[data-theme="light"] .table-row input[type="number"] {
  background: var(--bg);
  color: var(--ink);
  border-color: rgba(15,18,17,.25);
}
.table-row button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  font: 700 11px var(--sans);
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .2s;
}
.table-row button:hover { opacity: .8; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 38px; max-width: 760px; }
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 16px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--text); }
[data-theme="light"] .faq-item h3 { color: var(--ink); }
.faq-item p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.7; }
[data-theme="light"] .faq-item p { color: #4e5450; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--blue);
  border-radius: 8px;
  padding: 56px 60px;
  margin: 3vw 4.5vw;
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 50px);
  letter-spacing: -.06em;
  margin: 0 0 14px;
  color: #fff;
}
.cta-banner p { color: rgba(255,255,255,.8); font-size: 16px; margin: 0 0 30px; }
.cta-banner .button { background: #fff; color: var(--blue); }
.cta-banner .button:hover { background: var(--paper); opacity: 1; }

/* ── Footer ─────────────────────────────────────────────── */
footer { margin-top: 8vw; border-top: 1px solid var(--border); }
.footer-cta { padding: 8vw 10vw; }
.footer-cta .eyebrow { color: var(--blue); }
[data-theme="light"] .footer-cta .eyebrow { color: var(--blue-dark); }
.footer-cta h2 {
  font-size: clamp(32px, 4.5vw, 65px);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 0 0 36px;
  color: var(--text);
}
[data-theme="light"] .footer-cta h2 { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 28px 10vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.footer-bottom .brand { color: var(--text); }
.footer-bottom .brand-logo { height: 160px; }
.footer-bottom div:last-child { text-align: right; }
.footer-bottom a:hover { color: var(--blue); }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
[data-theme="light"] .footer-bottom p { color: #4e5450; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 12px; font-weight: 600; color: var(--text-dim); transition: color .2s; }
[data-theme="light"] .footer-links a { color: #1e2820; }
.footer-links a:hover { color: var(--blue); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Inline content helpers ─────────────────────────────── */
.info-box {
  background: var(--surface);
  padding: 32px;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}
[data-theme="light"] .info-box { background: var(--surface); }
.info-box h3 { font-size: 20px; letter-spacing: -.03em; margin: 0 0 14px; color: var(--text); }
[data-theme="light"] .info-box h3 { color: var(--ink); }
.info-box p { color: var(--text-dim); font-size: 15px; margin: 0; line-height: 1.75; }
[data-theme="light"] .info-box p { color: #1e2820; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 40px 0;
}
.stat-cell {
  background: var(--surface);
  padding: 28px 24px;
  transition: background .3s;
}
[data-theme="light"] .stat-cell { background: var(--bg); }
.stat-cell:hover { background: var(--surface2); }
.stat-cell strong { font-size: 36px; letter-spacing: -.06em; color: var(--blue); display: block; margin-bottom: 4px; }
[data-theme="light"] .stat-cell strong { color: var(--blue-dark); }
.stat-cell span { font: 10px var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .site-header nav { gap: 14px; }
  .brand-logo { height: 120px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 60px 5vw 50px; }
  .hero-art { height: 300px; }
  .metrics { grid-template-columns: repeat(2, 1fr); margin: 0 5vw; }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(3) { border-top: 1px solid var(--border); }
  .service-grid, .feature-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .exam-grid { grid-template-columns: repeat(2,1fr); }
  .materials-grid { grid-template-columns: repeat(2,1fr); }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-header nav { display: none; flex-direction: column; position: absolute; top: 96px; left: 0; right: 0; background: var(--header-bg); padding: 20px 5vw; border-bottom: 1px solid var(--border); z-index: 200; backdrop-filter: blur(18px); }
  .site-header nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: 12px; }
  .header-action { display: none; }
  .nav-auth-btns { display: none; }
  /* Mobile dropdown: show inline, no hover pop-up */
  .nav-dropdown { flex-direction: column; align-items: flex-start; }
  .nav-dropdown-toggle { pointer-events: none; }
  .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; background: transparent; border: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a { padding: 6px 0; font-size: 12px; }
  .nav-dd-arrow { display: none; }
  .brand-logo { height: 96px; }
  .theme-toggle { margin-left: auto; }
  .split-story { grid-template-columns: 1fr; gap: 30px; }
  .split-story > div:last-child { padding-top: 0; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .form-shell { grid-template-columns: 1fr; }
  .form-shell aside { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth > aside { display: none; }
  .team-grid, .materials-grid, .values-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .dash-nav {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .dash-nav .brand { display: none; }
  .dash-nav > p { display: none; }
  .dash-content { padding: 32px 20px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .admin-table { overflow-x: auto; }
  .footer-cta { padding: 60px 5vw; }
  .footer-bottom { padding: 22px 5vw; grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom div:last-child { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .cta-banner { margin: 5vw 5vw; padding: 40px 28px; }
  .inner { padding: 40px 5vw 0; }
  .inner-pad { padding: 40px 5vw; }
  .section { padding: 60px 5vw; }
  .checkout { padding: 40px 5vw; }
  .checkout-grid { grid-template-columns: 1fr; }
  .exam-grid { grid-template-columns: 1fr; }
  .service-grid, .feature-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-grid, .materials-grid, .values-grid, .admin-stats { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ── Courses Page ───────────────────────────────────────── */
.course-card-new {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.course-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34,61,255,.15);
}

/* ── Material cards ─────────────────────────────────────── */
.material-card-new {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.material-card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(34,61,255,.12);
}

/* ── Tutor type cards ───────────────────────────────────── */
.tutor-type-card {
  transition: border-color .2s, background .2s;
}
.radio-hidden:checked + .tutor-type-card {
  border-color: var(--blue) !important;
  background: var(--blue-dim) !important;
}

/* ── Nav - extra links ──────────────────────────────────── */
.site-header nav {
  gap: 20px;
}
.site-header nav a {
  font-size: 11px;
}

/* ── Footer logo area ───────────────────────────────────── */
.footer-bottom {
  align-items: flex-start;
}
.footer-bottom .brand {
  padding-top: 4px;
}

/* ── Larger logo on mobile ──────────────────────────────── */
@media (max-width: 768px) {
  .site-header { height: auto; padding: 12px 5vw; flex-wrap: wrap; }
  .brand-logo { height: 72px !important; }
  .footer-bottom .brand-logo { height: 100px !important; }
}

/* ═══════════════════════════════════════════════════════════
   NEW FEATURES — Final Fixes Pass
   ═══════════════════════════════════════════════════════════ */

/* ── Back to Top Button ─────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s, transform .35s, background .2s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(34,61,255,.4);
}
#back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}
[data-theme="light"] #back-to-top {
  box-shadow: 0 4px 20px rgba(34,61,255,.3);
}

/* ── WhatsApp Floating Button ──────────────────────────── */
#whatsapp-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s, background .2s;
}
#whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}
#whatsapp-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
[data-theme="light"] #whatsapp-btn {
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}

@media (max-width: 768px) {
  #back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; font-size: 17px; }
  #whatsapp-btn { bottom: 20px; left: 20px; width: 46px; height: 46px; }
  #whatsapp-btn svg { width: 22px; height: 22px; }
}

/* ── Navbar Auth Buttons ────────────────────────────────── */
.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  flex-shrink: 0;
}
.nav-btn-login {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font: 700 11px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-btn-login:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.nav-btn-signup {
  border: 0;
  border-radius: 30px;
  padding: 9px 18px;
  font: 700 11px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: opacity .2s, transform .2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-btn-signup:hover { opacity: .88; transform: translateY(-1px); }
@media (max-width: 768px) {
  .nav-auth-btns { display: none; }
  .site-header nav .nav-btn-login,
  .site-header nav .nav-btn-signup {
    display: flex;
  }
}

/* ── Blog Articles - REDESIGNED Full Pages ─────────────── */

/* Hero banner with full-width image */
.blog-article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.blog-article-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,18,17,.92) 0%, rgba(15,18,17,.6) 40%, rgba(15,18,17,.2) 100%);
}
[data-theme="light"] .blog-article-hero-overlay {
  background: linear-gradient(to top, rgba(240,239,233,.95) 0%, rgba(240,239,233,.7) 40%, rgba(240,239,233,.15) 100%);
}
.blog-article-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 10vw 48px;
  width: 100%;
  max-width: 900px;
}
.blog-article-hero-content .back-to-blog {
  margin-bottom: 20px;
}
.blog-article-category {
  font: 700 10px var(--mono);
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  background: var(--blue-dim);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
[data-theme="light"] .blog-article-category { color: var(--blue-dark); }
.blog-article-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -.06em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text);
  max-width: 780px;
}
[data-theme="light"] .blog-article-hero-content h1 { color: var(--ink); }
.blog-article-meta-row {
  font: 12px var(--mono);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-article-meta-sep { opacity: .4; }
.blog-article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-article-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 700 11px var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Two-column article layout (content + sidebar) */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 56px 10vw 0;
  align-items: start;
}

/* Main article content */
.blog-article-content {
  max-width: 720px;
}
.blog-article-lead {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  font-style: italic;
  font-family: var(--serif);
}
[data-theme="light"] .blog-article-lead { color: #1e2820; }
.blog-article-content .article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 24px;
}
[data-theme="light"] .blog-article-content .article-body p { color: #1e2820; }
.blog-article-content .article-body h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -.04em;
  margin: 48px 0 16px;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
[data-theme="light"] .blog-article-content .article-body h2 { color: var(--ink); }
.blog-article-content .article-body h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 36px 0 12px;
  color: var(--text);
}
[data-theme="light"] .blog-article-content .article-body h3 { color: var(--ink); }
.blog-article-content .article-body ul,
.blog-article-content .article-body ol {
  padding-left: 24px;
  margin: 0 0 24px;
}
.blog-article-content .article-body li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 8px;
}
[data-theme="light"] .blog-article-content .article-body li { color: #1e2820; }
.blog-article-content .article-body blockquote {
  border-left: 4px solid var(--blue);
  margin: 36px 0;
  padding: 24px 30px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font: italic 20px/1.6 var(--serif);
  color: var(--text-dim);
  position: relative;
}
.blog-article-content .article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 60px;
  color: var(--blue);
  opacity: .2;
  font-family: var(--serif);
  line-height: 1;
}
[data-theme="light"] .blog-article-content .article-body blockquote { color: #1e2820; background: var(--surface); }

/* Tags row */
.blog-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.blog-article-tag-pill {
  font: 700 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}

/* Author bio card */
.blog-article-author-card {
  margin-top: 36px;
  padding: 28px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.blog-article-author-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 700 18px var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-article-author-label {
  font: 700 10px var(--mono);
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.blog-article-author-name {
  font: 700 16px var(--sans);
  color: var(--text);
  margin-bottom: 6px;
}
[data-theme="light"] .blog-article-author-name { color: var(--ink); }
.blog-article-author-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sidebar */
.blog-article-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.blog-toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
  line-height: 1.4;
}
.blog-toc-link:last-child { border-bottom: none; }
.blog-toc-link:hover { color: var(--blue); }
.blog-article-sidebar-cta {
  background: var(--blue);
  border-radius: 12px;
  padding: 28px;
}
.blog-article-sidebar-cta .eyebrow { color: rgba(255,255,255,.6); }
.blog-article-sidebar-newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* Related articles section */
.blog-article-related {
  padding: 60px 10vw 0;
}
.blog-article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Back to blog link */
.back-to-blog {
  font: 700 11px var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  transition: color .2s;
}
[data-theme="light"] .back-to-blog { color: var(--blue-dark); }
.back-to-blog:hover { text-decoration: underline; }

/* Responsive blog article */
@media (max-width: 1000px) {
  .blog-article-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-article-sidebar { position: static; }
  .blog-article-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-article-hero { min-height: 320px; }
  .blog-article-hero-content { padding: 40px 5vw 32px; }
  .blog-article-layout { padding: 32px 5vw 0; }
  .blog-article-related { padding: 40px 5vw 0; }
  .blog-article-related-grid { grid-template-columns: 1fr; }
}

/* ── Tutoring page redesign — booking section higher ────── */
.tutoring-booking-hero {
  background: var(--surface);
  border-top: 3px solid var(--blue);
  padding: 60px 10vw;
  margin: 0;
}
[data-theme="light"] .tutoring-booking-hero { background: var(--surface); }
.tutoring-booking-hero h2 {
  font-size: clamp(28px, 3.5vw, 50px);
  letter-spacing: -.05em;
  margin-bottom: 10px;
  color: var(--text);
}
[data-theme="light"] .tutoring-booking-hero h2 { color: var(--ink); }
.booking-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .booking-split { grid-template-columns: 1fr; gap: 36px; }
  .tutoring-booking-hero { padding: 48px 5vw; }
}

/* ═══════════════════════════════════════════════════════════
   TUTORING PAGE — COMPLETE REDESIGN
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.tutor-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6vw;
  align-items: center;
  padding: 7vw 4.5vw 5vw;
  min-height: calc(100vh - 96px);
  overflow: hidden;
}
.tutor-hero-content h1 {
  font-size: clamp(46px, 6.5vw, 100px);
  line-height: .95;
  letter-spacing: -.07em;
  color: var(--text);
  margin: 0 0 20px;
}
[data-theme="light"] .tutor-hero-content h1 { color: var(--ink); }
.tutor-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 32px 0 0;
  border-radius: 6px;
  overflow: hidden;
}
.tutor-stat {
  background: var(--surface);
  padding: 18px 16px;
  text-align: center;
}
.tutor-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--blue);
  margin-bottom: 4px;
}
[data-theme="light"] .tutor-stat strong { color: var(--blue-dark); }
.tutor-stat span {
  font: 10px var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.tutor-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}
.tutor-badge-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 0 0 20px var(--blue-dim), 0 0 0 40px rgba(34,61,255,.04);
}
.tutor-badge-icon { font-size: 72px; line-height: 1; }
.tutor-badge-label {
  font: 700 11px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  padding: 0 20px;
}

/* How it works */
.tutor-how { padding-top: 6vw; }
.tutor-how h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: -.05em;
  margin: 0 0 44px;
  color: var(--text);
}
[data-theme="light"] .tutor-how h2 { color: var(--ink); }
.tutor-steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.tutor-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  padding: 28px 24px;
}
.tutor-step-num {
  font: 700 11px var(--mono);
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 14px;
}
.tutor-step h3 {
  font-size: 17px;
  letter-spacing: -.03em;
  margin: 0 0 10px;
  color: var(--text);
}
[data-theme="light"] .tutor-step h3 { color: var(--ink); }
.tutor-step p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.7; }
.tutor-step-arrow {
  font-size: 28px;
  color: var(--blue);
  display: flex;
  align-items: center;
  padding-top: 60px;
  opacity: .6;
}

/* Compare section */
.tutor-compare-section { padding-top: 6vw; }
.tutor-compare-section h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: -.05em;
  margin: 0 0 44px;
  color: var(--text);
}
[data-theme="light"] .tutor-compare-section h2 { color: var(--ink); }
.tutor-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 900px;
}
.tutor-compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
}
.tutor-compare-human { border-top: 4px solid var(--blue); }
.tutor-compare-ai { border-top: 4px solid var(--blue-light); }
.tutor-compare-icon { font-size: 48px; margin-bottom: 12px; }
.tutor-compare-label {
  font: 700 10px var(--mono);
  letter-spacing: 2.5px;
  color: var(--blue);
  margin-bottom: 6px;
}
.tutor-compare-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--text);
  margin-bottom: 14px;
}
[data-theme="light"] .tutor-compare-price { color: var(--ink); }
.tutor-compare-price span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.tutor-compare-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin: 0 0 20px; }
[data-theme="light"] .tutor-compare-card p { color: #1e2820; }
.tutor-compare-list { list-style: none; margin: 0 0 28px; padding: 0; }
.tutor-compare-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
[data-theme="light"] .tutor-compare-list li { color: #1e2820; }
.tutor-compare-list li:last-child { border-bottom: 0; }
.tutor-compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  padding-top: 120px;
}
.tutor-compare-divider span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px var(--mono);
  color: var(--text-muted);
}

/* Booking section */
.tutor-booking-section {
  background: var(--surface);
  border-top: 3px solid var(--blue);
  padding: 7vw 4.5vw;
  margin: 6vw 0 0;
}
.tutor-booking-inner { max-width: 1100px; }
.tutor-booking-header { margin-bottom: 40px; }
.tutor-booking-header h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  letter-spacing: -.05em;
  margin: 8px 0 0;
  color: var(--text);
}
[data-theme="light"] .tutor-booking-header h2 { color: var(--ink); }
.tutor-booking-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.tutor-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}
.tutor-form { display: flex; flex-direction: column; gap: 28px; }
.tutor-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.tutor-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  width: 100%;
}
.tutor-legend-num {
  background: var(--blue);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 10px var(--mono);
  flex-shrink: 0;
}
.tutor-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tutor-type-option { cursor: pointer; display: block; }
.tutor-type-tile {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
  cursor: pointer;
}
.tutor-type-tile:hover { border-color: var(--blue); }
.tutor-radio:checked + .tutor-type-tile {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 0 3px rgba(34,61,255,.1);
}
.tutor-tile-emoji { font-size: 34px; margin-bottom: 8px; }
.tutor-tile-name { font: 700 14px var(--sans); color: var(--text); margin-bottom: 4px; }
[data-theme="light"] .tutor-tile-name { color: var(--ink); }
.tutor-tile-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.tutor-tile-price { font: 700 13px var(--sans); color: var(--blue); }

.tutor-select-wrap { position: relative; }
.tutor-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font: 14px var(--sans);
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.tutor-select:focus { outline: none; border-color: var(--blue); }

.tutor-days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tutor-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.tutor-day-chip input { display: none; }
.tutor-day-chip span {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font: 600 12px var(--sans);
  color: var(--text-dim);
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.tutor-day-chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tutor-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tutor-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 11px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tutor-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text);
  font: 14px var(--sans);
  transition: border-color .2s;
  margin-top: 6px;
}
.tutor-input:focus { outline: none; border-color: var(--blue); }

.tutor-submit-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tutor-submit-btn { font-size: 14px; padding: 16px 28px; }
.tutor-submit-note { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Info sidebar */
.tutor-info-sidebar { display: flex; flex-direction: column; gap: 20px; }
.tutor-next-steps {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  padding: 28px;
}
.tutor-next-list { display: flex; flex-direction: column; gap: 0; }
.tutor-next-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.tutor-next-item:last-child { border-bottom: 0; }
.tutor-next-num {
  background: var(--blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px var(--mono);
  flex-shrink: 0;
}
.tutor-next-item h4 { font-size: 14px; margin: 0 0 4px; color: var(--text); }
[data-theme="light"] .tutor-next-item h4 { color: var(--ink); }
.tutor-next-item p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.tutor-guarantee-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.tutor-guarantee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tutor-guarantee-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
[data-theme="light"] .tutor-guarantee-list li { color: #1e2820; }
.tutor-guarantee-list li:last-child { border-bottom: 0; }

/* Responsive tutoring */
@media (max-width: 1000px) {
  .tutor-hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .tutor-hero-visual { height: 240px; }
  .tutor-badge-ring { width: 180px; height: 180px; }
  .tutor-badge-icon { font-size: 52px; }
  .tutor-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tutor-steps-row { grid-template-columns: 1fr; gap: 20px; }
  .tutor-step-arrow { display: none; }
  .tutor-compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .tutor-compare-divider { padding: 12px 0; }
  .tutor-compare-divider span { transform: rotate(90deg); }
  .tutor-booking-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .tutor-hero { padding: 48px 5vw 40px; }
  .tutor-fields-row { grid-template-columns: 1fr; }
  .tutor-type-grid { grid-template-columns: 1fr 1fr; }
  .tutor-booking-section { padding: 48px 5vw; }
  .tutor-form-wrap { padding: 24px 20px; }
}

/* ── Checkout — not a sign-up gate ─────────────────────── */
.checkout-auth-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 32px;
  max-width: 560px;
}
.checkout-auth-prompt h3 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin: 0 0 10px;
  color: var(--text);
}
[data-theme="light"] .checkout-auth-prompt h3 { color: var(--ink); }
.checkout-auth-prompt p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.65;
}
[data-theme="light"] .checkout-auth-prompt p { color: #4e5450; }
.checkout-auth-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Course / Material enrol without login — redirect ───── */
.enrol-btn-guest {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  border-radius: 30px;
  padding: 14px 24px;
  font: 700 12px var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.enrol-btn-guest:hover { opacity: .88; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   2026 IMMERSIVE PLATFORM REDESIGN
   A FundingPips-inspired visual system, adapted to Sheila's
   original blue, ink and warm-paper brand palette.
   ═══════════════════════════════════════════════════════════ */
:root {
  --blue: #223dff;
  --blue-light: #6680ff;
  --blue-dark: #152bd4;
  --blue-dim: rgba(34, 61, 255, .14);
  --ink: #060811;
  --paper: #f4f5fa;
  --cream: #e7e9f2;
  --serif: Manrope, sans-serif;
  --sans: Manrope, sans-serif;
  --mono: 'DM Mono', monospace;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .24);
  --glow: 0 0 90px rgba(34, 61, 255, .32);
}

[data-theme="dark"], :root {
  --bg: #060811;
  --surface: #0d101b;
  --surface2: #141827;
  --surface3: #1b2134;
  --text: #f7f8ff;
  --text-muted: #8f96aa;
  --text-dim: #c7ccda;
  --border: rgba(206, 214, 255, .12);
  --header-bg: rgba(10, 12, 22, .82);
  --card-bg: #0d101b;
  --card-hover: #141827;
  --line: rgba(206, 214, 255, .12);
}

[data-theme="light"] {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface2: #e9ecf5;
  --surface3: #dde1ee;
  --text: #070914;
  --text-muted: #646b7d;
  --text-dim: #303647;
  --border: rgba(14, 22, 47, .12);
  --header-bg: rgba(255, 255, 255, .84);
  --card-bg: #ffffff;
  --card-hover: #f7f8fd;
  --line: rgba(14, 22, 47, .12);
  --shadow: 0 24px 70px rgba(26, 37, 76, .12);
}

html { scroll-padding-top: 110px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(34,61,255,.20), transparent 30rem),
    var(--bg);
  font-size: 15px;
  line-height: 1.65;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(34,61,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,61,255,.035) 1px, transparent 1px);
}
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }
.grain { opacity: .025; z-index: 2; }

/* Floating navigation */
.site-header {
  width: min(1380px, calc(100% - 40px));
  height: 76px;
  margin: 18px auto 0;
  padding: 0 16px 0 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--header-bg);
  box-shadow: 0 14px 50px rgba(0,0,0,.22);
  top: 14px;
  gap: 12px;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(100deg, rgba(255,255,255,.18), transparent 35%, rgba(34,61,255,.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.brand-logo { height: 104px; max-width: 150px; object-fit: contain; }
.site-header nav { gap: 6px; margin-right: 4px; }
.site-header nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .01em;
  text-transform: none;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--text); background: var(--surface2); }
.site-header nav a.active { box-shadow: inset 0 0 0 1px var(--border); }
.nav-auth-btns { gap: 6px; margin-left: 0; }
.nav-btn-login,
.nav-btn-signup,
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 13px;
  text-transform: none;
}
.nav-btn-login { background: var(--surface2); border-color: transparent; }
.nav-btn-signup,
.header-action { box-shadow: 0 10px 28px rgba(34,61,255,.3); }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface2);
  border-color: transparent;
}

/* Type and controls */
h1, h2, h3, h4 { text-wrap: balance; }
h1 em, h2 em, h3 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--blue-light);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(34,61,255,.28);
  border-radius: 999px;
  background: rgba(34,61,255,.08);
  color: #8ea0ff;
  font: 700 10px var(--mono);
  letter-spacing: 1.4px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px var(--blue-light);
}
[data-theme="light"] .eyebrow { color: var(--blue-dark); background: rgba(34,61,255,.06); }
.button, .enrol-btn-guest {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: none;
  box-shadow: 0 12px 34px rgba(34,61,255,.28);
}
.button:hover, .enrol-btn-guest:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 16px 42px rgba(34,61,255,.38); }
.button.outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}
.button.outline:hover { background: var(--surface2); border-color: rgba(34,61,255,.48); color: var(--text); }
.text-link { text-transform: none; font-size: 13px; color: var(--text-dim); }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }

/* Homepage hero: centered, immersive and luminous */
.hero {
  position: relative;
  min-height: 780px;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 7vw 100px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  text-align: center;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -48%);
  pointer-events: none;
}
.hero::before {
  width: min(55vw, 720px);
  aspect-ratio: 1;
  z-index: -2;
  background:
    radial-gradient(circle at 42% 38%, rgba(153,171,255,.92), rgba(34,61,255,.82) 18%, rgba(20,32,120,.58) 45%, transparent 69%);
  filter: blur(1px);
  box-shadow: var(--glow);
  opacity: .72;
}
.hero::after {
  width: min(66vw, 860px);
  aspect-ratio: 1;
  z-index: -3;
  border: 1px solid rgba(102,128,255,.18);
  box-shadow: inset 0 0 90px rgba(34,61,255,.08), 0 0 120px rgba(34,61,255,.1);
}
.hero-copy { position: relative; z-index: 3; max-width: 960px; }
.hero h1 {
  max-width: 940px;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: .92;
  letter-spacing: -.075em;
  text-shadow: 0 10px 50px rgba(0,0,0,.36);
}
.hero .lead { max-width: 680px; margin: 28px auto 34px; color: rgba(247,248,255,.82); }
[data-theme="light"] .hero .lead { color: #293044; }
.hero .button-row { justify-content: center; }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: auto 8% 34px;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(100deg, rgba(13,16,27,.74), rgba(34,61,255,.18));
  box-shadow: var(--shadow);
  opacity: .8;
}
.hero-art > img { width: 100%; height: 100%; max-height: none !important; margin: 0 !important; object-fit: cover; opacity: .27 !important; filter: saturate(.55) contrast(1.15); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 35%, transparent 65%, var(--bg)); }
.hero-note { top: auto; bottom: 28px; left: 32px; right: 32px; z-index: 3; color: #fff; }
.hero-clarity-text { bottom: 26px; right: 32px; z-index: 4; font: 700 22px/1.1 var(--sans); letter-spacing: -.04em; color: #fff; }
.orb { filter: blur(25px); opacity: .5; }

/* Shared content containers */
.section, .section-sm, .inner, .inner-pad, .testimonials,
.tutor-hero, .tutor-booking-section, .footer-cta, .footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.section { padding: 100px 0; }
.section-sm { padding: 68px 0; }
.inner { padding: 120px 0 24px; }
.inner-pad { padding: 82px 0; }
.page-title {
  max-width: 1050px;
  font-size: clamp(48px, 7vw, 102px);
  line-height: .94;
  letter-spacing: -.075em;
}
.inner > .lead { max-width: 700px; }
main > .inner:first-child {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
main > .inner:first-child::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -150px;
  top: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(109,133,255,.72), rgba(34,61,255,.3) 34%, transparent 70%);
  filter: blur(2px);
}
main > .inner-pad > img,
main > .inner > img {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Elevated content panels and grids */
.solution,
.testimonials,
.tutor-booking-section {
  padding: 90px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  box-shadow: var(--shadow);
}
.solution h2, .audience h2, .split-story h2, .two-col h2 { letter-spacing: -.055em; }
.solution-label { border: 0; }
.solution-label span { color: var(--blue-light); }
.feature-grid, .service-grid, .values-grid, .process-steps {
  gap: 14px;
  background: transparent;
  border: 0;
}
.feature-grid article,
.service-card,
.value-item,
.step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--surface2), var(--surface));
  padding: 30px;
}
.feature-grid article::after,
.service-card::after,
.value-item::after,
.step::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(34,61,255,.18);
  filter: blur(18px);
  transition: transform .35s, opacity .35s;
}
.feature-grid article:hover,
.service-card:hover,
.value-item:hover,
.step:hover { background: var(--surface2); border-color: rgba(102,128,255,.35); transform: translateY(-5px); }
.feature-grid article:hover::after,
.service-card:hover::after,
.value-item:hover::after,
.step:hover::after { transform: scale(1.4); opacity: .8; }
.service-grid { gap: 16px; }
.service-card { min-height: 310px; }
.service-icon,
.value-icon,
.material-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-dim);
  font: 700 24px/1 var(--sans);
}
.service-card h3 { margin-top: 40px; }
.audience { border: 0; }
.audience-list span, .tag-pill {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface);
}
.metrics {
  width: min(1120px, calc(100% - 64px));
  margin: -6px auto 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(13,16,27,.84);
  box-shadow: var(--shadow);
  overflow: hidden;
}
[data-theme="light"] .metrics { background: rgba(255,255,255,.86); }
.metrics div { padding: 24px; text-align: center; }
.metrics strong { font-size: 34px; }

/* Cards */
.article-grid, .course-grid, .materials-grid, .pricing-grid, .exam-grid, .team-grid { gap: 18px; }
.article-card, .course-card, .course-card-new, .material-card, .material-card-new,
.pricing-card, .exam-card, .team-card, .testimonial-card, .purchase-card,
.info-box, .checkout-auth-prompt, .admin-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--surface2), var(--surface));
  box-shadow: 0 14px 46px rgba(0,0,0,.12);
}
.article-card, .exam-card, .purchase-card, .admin-stat-card { border-top: 1px solid var(--border); }
.article-card:hover, .course-card:hover, .course-card-new:hover,
.material-card:hover, .material-card-new:hover, .exam-card:hover,
.team-card:hover, .testimonial-card:hover {
  border-color: rgba(102,128,255,.42);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.article-card-img { height: 220px; margin: 8px; width: calc(100% - 16px); border-radius: 16px; }
.testimonial-card { border-left: 1px solid var(--border); padding: 30px; }
.testimonial-card blockquote { font-family: var(--sans); font-style: normal; }
.star-row { letter-spacing: 4px; }
.pricing-card { padding: 34px; }
.pricing-card.featured { transform: translateY(-10px); border-color: rgba(102,128,255,.65); box-shadow: var(--glow); }
.exam-card { padding: 30px; }
.team-avatar { width: 78px; height: 78px; box-shadow: 0 0 0 9px var(--blue-dim); }
.faq-list { max-width: 900px; }
.faq-item {
  margin-bottom: 10px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

/* Forms and transactional views */
.form-shell { gap: 40px; }
.form-shell form, .auth form, .checkout-grid section {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.form-shell input, .form-shell textarea, .form-shell select,
.auth input, select, .tutor-input, .tutor-select {
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}
.form-shell textarea { min-height: 150px; }
.form-shell aside { border: 0; padding: 34px; border-radius: var(--radius-md); background: var(--surface); }
.auth {
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 54px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth > section { padding: 70px; }
.auth > aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #111b7a, var(--blue));
}
.auth > aside::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  top: 70px;
  left: -100px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.05), 0 0 80px rgba(255,255,255,.18);
}
.checkout, .success { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Tutoring funnel */
.tutor-hero {
  min-height: 720px;
  padding: 110px 60px 80px;
  margin-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: radial-gradient(circle at 82% 44%, rgba(34,61,255,.45), transparent 26%);
}
.tutor-hero-content h1 { font-size: clamp(52px, 7vw, 100px); }
.tutor-badge-ring {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(126,146,255,.65);
  background: radial-gradient(circle at 42% 35%, #758bff, var(--blue) 34%, #111a62 72%);
  box-shadow: 0 0 0 28px rgba(34,61,255,.08), 0 0 110px rgba(34,61,255,.38);
}
.tutor-badge-icon { filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.tutor-badge-label { color: #fff; }
.tutor-hero-stats { gap: 10px; background: transparent; border: 0; }
.tutor-stat { border: 1px solid var(--border); border-radius: 14px; }
.tutor-step, .tutor-compare-card, .tutor-form-wrap, .tutor-next-steps, .tutor-guarantee-box {
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--surface2), var(--surface));
}
.tutor-step, .tutor-compare-human, .tutor-compare-ai, .tutor-booking-section { border-top: 1px solid var(--border); }
.tutor-booking-section { margin-top: 50px; }
.tutor-type-tile { border-radius: 16px; }

/* Dashboard */
.dashboard { width: min(1420px, calc(100% - 40px)); margin: 40px auto; min-height: 700px; gap: 18px; }
.dash-nav {
  top: 108px;
  height: calc(100vh - 130px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.dash-content { padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(13,16,27,.55); }
[data-theme="light"] .dash-content { background: rgba(255,255,255,.62); }
.dash-stats { gap: 12px; border: 0; }
.dash-stats div, .order-row { border: 1px solid var(--border) !important; border-radius: 16px; }
.admin-table { border-radius: 18px; }

/* Footer */
.cta-banner {
  width: min(1180px, calc(100% - 40px));
  margin: 60px auto;
  padding: 72px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.28), transparent 22%),
    linear-gradient(135deg, #1729b7, var(--blue));
  box-shadow: 0 28px 90px rgba(34,61,255,.28);
}
footer {
  width: min(1380px, calc(100% - 40px));
  margin: 100px auto 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.footer-cta { width: 100%; padding: 80px; margin: 0; }
.footer-bottom {
  width: 100%;
  padding: 34px 44px;
  margin: 0;
  background: var(--surface2);
}
.footer-bottom .brand-logo { height: 110px; }
.footer-links a { padding: 5px 0; }
#back-to-top { border-radius: 50%; }

/* Motion */
.reveal { transform: translateY(18px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .site-header nav a { padding: 9px 8px; font-size: 10px; }
  .brand-logo { max-width: 125px; }
  .solution, .testimonials { padding: 70px 40px; }
}
@media (max-width: 900px) {
  .site-header { width: calc(100% - 24px); margin-top: 12px; top: 8px; }
  .site-header nav {
    top: 84px;
    left: -1px;
    right: -1px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--header-bg);
    box-shadow: var(--shadow);
  }
  .site-header nav a { width: 100%; padding: 12px 14px; font-size: 12px; }
  .hero { width: 100%; min-height: 700px; padding: 120px 24px 80px; }
  .hero::before { width: 620px; max-width: 110vw; }
  .hero-art { inset: auto 20px 28px; height: 220px; }
  .metrics { width: calc(100% - 40px); }
  .section, .section-sm, .inner, .inner-pad, .testimonials,
  .tutor-hero, .tutor-booking-section { width: calc(100% - 32px); }
  .solution { width: calc(100% - 32px); margin-left: auto; margin-right: auto; }
  .solution, .testimonials, .tutor-booking-section { padding: 60px 28px; }
  .pricing-card.featured { transform: none; }
  .footer-cta { padding: 60px 28px; }
}
@media (max-width: 768px) {
  body { background: radial-gradient(circle at 50% 0, rgba(34,61,255,.18), transparent 22rem), var(--bg); }
  .site-header { height: 68px; padding: 0 10px 0 14px; border-radius: 18px; }
  .brand-logo { height: 66px !important; max-width: 114px; }
  .nav-toggle { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface2); }
  .hero { min-height: 650px; padding-top: 100px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero .lead { font-size: 16px; }
  .hero-art { height: 190px; }
  .hero-note { display: none; }
  .hero-clarity-text { right: 22px; bottom: 20px; font-size: 17px; }
  .metrics { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .metrics div { padding: 18px 10px; }
  .metrics strong { font-size: 28px; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .inner { padding-top: 84px; }
  main > .inner:first-child { min-height: 420px; }
  main > .inner:first-child::after { width: 340px; height: 340px; right: -180px; }
  .page-title { font-size: clamp(46px, 13vw, 72px); }
  .solution, .testimonials { border-radius: 24px; }
  .feature-grid, .service-grid, .values-grid, .process-steps { gap: 10px; }
  .form-shell form, .auth form, .form-shell aside { padding: 24px; }
  .auth { width: calc(100% - 24px); min-height: auto; margin: 28px auto; border-radius: 24px; }
  .auth > section { padding: 44px 24px; }
  .tutor-hero { width: 100%; padding: 86px 20px 50px; border-radius: 0; }
  .tutor-hero-visual { display: none; }
  .tutor-hero-stats { grid-template-columns: 1fr 1fr; }
  .tutor-booking-section { border-radius: 24px; }
  .dashboard { width: calc(100% - 24px); margin: 24px auto; }
  .dash-content { padding: 24px 16px; }
  .cta-banner { padding: 48px 24px; border-radius: 24px; }
  footer { width: calc(100% - 24px); margin-top: 64px; border-radius: 24px; }
  .footer-bottom { padding: 28px; }
}
/* Normalize legacy inline card shells without changing page content */
main [style*="background:var(--surface)"][style*="border-radius"] {
  border-radius: var(--radius-md) !important;
  border-color: var(--border) !important;
  box-shadow: 0 14px 46px rgba(0,0,0,.12);
}
.cta-banner { margin: 60px auto !important; }

@media (max-width: 480px) {
  .hero-art { inset-inline: 12px; }
  .metrics { width: calc(100% - 24px); }
  .metrics strong { font-size: 24px; }
  .button-row { gap: 14px; }
  .button { width: 100%; }
  .text-link { width: 100%; text-align: center; }
  .service-card { min-height: 260px; }
  .tutor-type-grid { grid-template-columns: 1fr; }
  .footer-cta { padding: 48px 22px; }
  .footer-bottom .brand-logo { height: 82px !important; }
  main [style*="grid-template-columns:1fr 1fr"],
  main [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Cinematic interaction layer ─────────────────────────── */
.site-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light), #fff);
  box-shadow: 0 0 18px rgba(102, 128, 255, .8);
  will-change: transform;
}
.pointer-aura {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(62, 86, 255, .09), rgba(62, 86, 255, .025) 38%, transparent 68%);
  filter: blur(10px);
  transition: opacity .4s ease;
  will-change: transform;
}
.pointer-aura.is-visible { opacity: 1; }
body > main,
body > .auth,
body > .dashboard { position: relative; z-index: 3; }

.site-header {
  will-change: width, transform, box-shadow, background;
  transition:
    width .4s cubic-bezier(.2,.8,.2,1),
    transform .4s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease,
    background .35s ease,
    border-color .35s ease;
}
.has-scrolled .site-header {
  width: min(1240px, calc(100% - 56px));
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--header-bg) 94%, transparent);
  border-color: rgba(102,128,255,.22);
  box-shadow: 0 18px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(102,128,255,.04);
}
.site-header .brand-logo { transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s; }
.site-header .brand:hover .brand-logo { transform: scale(1.04); filter: drop-shadow(0 0 14px rgba(102,128,255,.26)); }

.site-header nav a { position: relative; overflow: hidden; }
/* Underline removed — only the pill highlight indicates the active page */
.site-header nav a::after { display: none; }

.button, .nav-btn-signup, .header-action, .enrol-btn-guest {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.button::before, .nav-btn-signup::before, .header-action::before, .enrol-btn-guest::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -120%;
  left: -35%;
  width: 28%;
  height: 340%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(20deg) translateX(-320%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.button:hover::before, .nav-btn-signup:hover::before,
.header-action:hover::before, .enrol-btn-guest:hover::before { transform: rotate(20deg) translateX(620%); }

.hero::before { animation: hero-breathe 8s ease-in-out infinite alternate; }
.hero::after { animation: orbit-ring 26s linear infinite; }
.hero-copy { animation: hero-arrive .9s .08s both cubic-bezier(.16,1,.3,1); }
.hero-art { animation: hero-panel-arrive 1.1s .18s both cubic-bezier(.16,1,.3,1); }
.hero h1 {
  background: linear-gradient(110deg, var(--text) 5%, var(--text) 44%, #afbbff 54%, var(--text) 64%, var(--text) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 9s 1.2s ease-in-out infinite;
}
.hero h1 em { -webkit-text-fill-color: var(--blue-light); }

.interactive-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease !important;
}
.interactive-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(320px circle at var(--spot-x) var(--spot-y), rgba(119,139,255,.16), transparent 58%);
  transition: opacity .3s ease;
}
.interactive-card:hover::before { opacity: 1; }
.interactive-card > * { position: relative; z-index: 1; }

.reveal { transition-delay: var(--reveal-delay, 0ms); }
.metrics strong,
.admin-stat-card .stat-value,
.dash-stats b { font-variant-numeric: tabular-nums; }
.metrics div { position: relative; overflow: hidden; }
.metrics div::after {
  content: '';
  position: absolute;
  inset: auto 22% 0;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  transition: transform .35s ease;
}
.metrics div:hover::after { transform: scaleX(1); }

.page-about main > .inner:first-child::after,
.page-services main > .inner:first-child::after,
.page-courses main > .inner:first-child::after,
.page-exam-prep main > .inner:first-child::after,
.page-classes main > .inner:first-child::after,
.page-essays main > .inner:first-child::after,
.page-materials main > .inner:first-child::after,
.page-blog main > .inner:first-child::after,
.page-contact main > .inner:first-child::after {
  animation: inner-orb-drift 10s ease-in-out infinite alternate;
}

.nav-toggle { line-height: 1; transition: color .25s, transform .3s, background .25s; }
.nav-toggle.is-open { color: #fff; background: var(--blue); transform: rotate(90deg); }

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(30px) scale(.975); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-panel-arrive {
  from { opacity: 0; transform: translateY(50px) scale(.96); }
  to { opacity: .8; transform: none; }
}
@keyframes hero-breathe {
  0% { transform: translate(-50%, -48%) scale(.93); filter: blur(2px) saturate(.9); }
  100% { transform: translate(-50%, -48%) scale(1.06); filter: blur(0) saturate(1.1); }
}
@keyframes orbit-ring {
  from { transform: translate(-50%, -48%) rotate(0deg); }
  to { transform: translate(-50%, -48%) rotate(360deg); }
}
@keyframes title-sheen {
  0%, 72%, 100% { background-position: 110% 0; }
  86% { background-position: -80% 0; }
}
@keyframes inner-orb-drift {
  from { transform: translate3d(-14px,-8px,0) scale(.96); opacity: .76; }
  to { transform: translate3d(18px,14px,0) scale(1.06); opacity: 1; }
}

@media (max-width: 900px) {
  .has-scrolled .site-header { width: calc(100% - 24px); transform: none; }
  .pointer-aura { display: none; }
  .interactive-card { transform: none !important; }
  .site-header nav a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-copy, .hero-art, .hero h1,
  main > .inner:first-child::after { animation: none !important; }
  .hero-copy { opacity: 1; }
  .interactive-card { transform: none !important; }
  .pointer-aura { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   FUNDINGPIPS-INSPIRED HOMEPAGE HERO — SHEILA CONTENT SYSTEM
   A split editorial/product composition using only Sheila assets.
   ═══════════════════════════════════════════════════════════ */
.page-home .hero {
  width: min(1380px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 92px 42px 82px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(520px, 1.07fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
  overflow: visible;
}
.page-home .hero::before {
  width: min(58vw, 820px);
  top: 48%;
  left: 77%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 42% 38%, rgba(111,135,255,.72), rgba(34,61,255,.48) 20%, rgba(20,32,120,.24) 48%, transparent 72%);
  filter: blur(8px);
  opacity: .68;
}
.page-home .hero::after {
  width: min(56vw, 760px);
  top: 49%;
  left: 76%;
  transform: translate(-50%, -50%);
  opacity: .72;
}
.page-home .hero-copy {
  max-width: 660px;
  justify-self: end;
  position: relative;
}
.page-home .hero-copy::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 1px;
  left: -142px;
  top: 19px;
  background: linear-gradient(90deg, transparent, rgba(102,128,255,.8));
}
.page-home .hero h1 {
  max-width: 650px;
  font-size: clamp(60px, 6.6vw, 102px);
  line-height: .91;
  letter-spacing: -.078em;
  text-shadow: 0 18px 54px rgba(0,0,0,.32);
}
.page-home .hero h1 em {
  display: inline-block;
  color: var(--blue-light);
  text-shadow: 0 0 42px rgba(70,95,255,.34);
}
.page-home .hero .lead {
  max-width: 590px;
  margin: 30px 0 34px;
  color: rgba(247,248,255,.76);
}
[data-theme="light"] .page-home .hero .lead { color: #343a4d; }
.page-home .hero .button-row { justify-content: flex-start; }

.page-home .hero-art {
  position: relative;
  z-index: 1;
  inset: auto;
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  perspective: 1100px;
}
.page-home .hero-art::after { display: none; }
.study-window {
  position: absolute;
  z-index: 3;
  inset: 48px 4px 34px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(184,196,255,.2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(19,23,39,.96), rgba(8,10,20,.96));
  box-shadow: 0 34px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.025) inset, 0 0 90px rgba(34,61,255,.18);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
  animation: studyWindowFloat 7s ease-in-out infinite;
}
[data-theme="light"] .study-window {
  border-color: rgba(34,61,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(235,238,249,.98));
  box-shadow: 0 34px 90px rgba(32,45,95,.18), 0 0 0 1px rgba(255,255,255,.7) inset, 0 0 80px rgba(34,61,255,.12);
}
.study-window-bar,
.study-window-footer {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font: 700 11px var(--sans);
}
.study-window-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-right: 10px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(34,61,255,.35);
}
.study-live { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.study-live i,
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #64e49c;
  box-shadow: 0 0 12px rgba(100,228,156,.8);
  animation: statusPulse 2s ease-in-out infinite;
}
.study-window-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.35fr .82fr;
  gap: 14px;
  padding: 18px;
}
.study-progress-card,
.study-mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: rgba(255,255,255,.035);
}
[data-theme="light"] .study-progress-card,
[data-theme="light"] .study-mini-card { background: rgba(255,255,255,.7); }
.study-progress-card { padding: 22px; display: flex; flex-direction: column; }
.study-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.study-card-heading div { display: grid; gap: 6px; }
.study-card-heading small,
.study-mini-card small {
  color: var(--text-muted);
  font: 700 9px var(--mono);
  letter-spacing: 1.3px;
}
.study-card-heading strong { font-size: 19px; letter-spacing: -.04em; }
.study-card-heading > span {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--blue-dim);
  color: #8da0ff;
  font: 700 12px var(--mono);
}
.study-chart {
  height: 190px;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(to bottom, transparent 49%, var(--border) 50%, transparent 51%);
}
.study-chart span {
  flex: 1;
  height: var(--h);
  min-width: 10px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(to top, #223dff, #7f94ff);
  box-shadow: 0 5px 18px rgba(34,61,255,.24);
  transform-origin: bottom;
  animation: chartGrow 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.study-chart span:nth-child(2) { animation-delay: .08s; }
.study-chart span:nth-child(3) { animation-delay: .16s; }
.study-chart span:nth-child(4) { animation-delay: .24s; }
.study-chart span:nth-child(5) { animation-delay: .32s; }
.study-chart span:nth-child(6) { animation-delay: .4s; }
.study-chart span:nth-child(7) { animation-delay: .48s; }
.study-chart-labels { display: flex; justify-content: space-between; padding-top: 10px; color: var(--text-muted); font: 8px var(--mono); }
.study-side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.study-mini-card { padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.study-mini-card::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  top: -66px;
  right: -56px;
  border-radius: 50%;
  background: rgba(34,61,255,.2);
  filter: blur(13px);
}
.study-mini-card strong { margin: 10px 0 4px; font-size: 17px; letter-spacing: -.035em; }
.study-mini-card > span,
.study-mini-card p { margin: 0; color: var(--text-muted); font-size: 10px; }
.study-arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface3);
  color: var(--blue-light);
  font-style: normal;
}
.study-mini-card.accent { background: linear-gradient(145deg, rgba(34,61,255,.28), rgba(34,61,255,.09)); }
.focus-score { display: flex; align-items: baseline; margin-top: 8px; }
.focus-score strong { margin: 0; color: #fff; font-size: 44px; line-height: 1; letter-spacing: -.07em; }
[data-theme="light"] .focus-score strong { color: var(--ink); }
.focus-score span { color: var(--text-muted); font: 10px var(--mono); }
.study-window-footer { min-height: 54px; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 0; font-size: 10px; }
.study-window-footer > span { display: flex; align-items: center; gap: 8px; }
.study-window-footer b { color: var(--text-dim); font-weight: 700; }
.hero-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(112,135,255,.21);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one { width: 470px; height: 470px; right: -54px; top: 18px; animation: orbitSpin 28s linear infinite; }
.hero-orbit-two { width: 320px; height: 320px; left: 6px; bottom: 3px; border-style: dashed; animation: orbitSpin 22s linear infinite reverse; }
.hero-orbit::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: 12%;
  left: 14%;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 18px var(--blue-light);
}
.floating-study-chip {
  position: absolute;
  z-index: 5;
  min-width: 145px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(190,200,255,.22);
  border-radius: 15px;
  background: rgba(13,16,27,.9);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .floating-study-chip { background: rgba(255,255,255,.9); box-shadow: 0 18px 42px rgba(26,37,76,.14); }
.floating-study-chip b { color: var(--text); font-size: 18px; line-height: 1.2; letter-spacing: -.04em; }
.floating-study-chip span { color: var(--text-muted); font: 8px var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.chip-one { left: -9px; bottom: 6px; animation: chipFloat 5.6s ease-in-out infinite; }
.chip-two { right: -15px; top: 24px; animation: chipFloat 6.4s ease-in-out -1.3s infinite; }
.chip-two span { color: #8da0ff; }

@keyframes studyWindowFloat { 0%,100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); } 50% { transform: rotateY(-3deg) rotateX(1deg) translateY(-10px); } }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes chartGrow { from { transform: scaleY(.08); opacity: .25; } to { transform: scaleY(1); opacity: 1; } }
@keyframes statusPulse { 0%,100% { opacity: .65; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .page-home .hero { grid-template-columns: minmax(0,.9fr) minmax(470px,1.1fr); padding-left: 20px; padding-right: 20px; gap: 35px; }
  .page-home .hero h1 { font-size: clamp(58px, 7vw, 82px); }
  .page-home .hero-copy::before { display: none; }
}
@media (max-width: 980px) {
  .page-home .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 104px 26px 78px;
    text-align: center;
  }
  .page-home .hero::before,
  .page-home .hero::after { left: 50%; top: 69%; width: min(92vw, 720px); }
  .page-home .hero-copy { max-width: 760px; justify-self: center; }
  .page-home .hero h1 { max-width: 760px; }
  .page-home .hero .lead { margin-left: auto; margin-right: auto; }
  .page-home .hero .button-row { justify-content: center; }
  .page-home .hero-art { width: min(720px, 100%); height: 520px; justify-self: center; }
  .study-window { left: 24px; }
}
@media (max-width: 620px) {
  .page-home .hero { width: 100%; padding: 82px 18px 56px; gap: 34px; }
  .page-home .hero h1 { font-size: clamp(49px, 15vw, 68px); }
  .page-home .hero .lead { margin-top: 22px; margin-bottom: 28px; }
  .page-home .hero-art { height: 450px; }
  .study-window { inset: 24px 0 22px; transform: none; animation-name: mobileWindowFloat; }
  .study-window-bar { min-height: 54px; padding: 0 14px; }
  .study-window-body { grid-template-columns: 1fr; padding: 11px; gap: 10px; }
  .study-progress-card { padding: 16px; }
  .study-chart { height: 138px; }
  .study-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 10px; }
  .study-mini-card { min-height: 110px; padding: 14px; }
  .study-mini-card strong { font-size: 13px; }
  .focus-score strong { font-size: 34px; }
  .study-window-footer { display: none; }
  .floating-study-chip { min-width: 122px; padding: 10px 12px; }
  .floating-study-chip b { font-size: 15px; }
  .chip-one { left: -5px; bottom: 0; }
  .chip-two { right: -4px; top: 0; }
  .hero-orbit-one { width: 370px; height: 370px; right: -120px; }
  .hero-orbit-two { width: 250px; height: 250px; left: -90px; }
}
@keyframes mobileWindowFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ══════════════════════════════════════════════════════════
   REDESIGNED STUDY MATERIAL CARDS
   ══════════════════════════════════════════════════════════ */
.stw-mat-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.stw-mat-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(34,61,255,.12);
}
[data-theme="light"] .stw-mat-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

/* Card image area */
.stw-mat-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #1729b7 0%, #223dff 50%, #5570ff 100%);
}
.stw-mat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.stw-mat-card:hover .stw-mat-card-img img {
  transform: scale(1.05);
}
.stw-mat-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.35);
}
.stw-mat-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(34,61,255,0.85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.stw-mat-card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 800 20px var(--sans);
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: -0.02em;
}

/* Card body */
.stw-mat-card-body {
  padding: 20px 22px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.stw-mat-card-body h3 {
  font: 700 16px var(--sans);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
}
[data-theme="light"] .stw-mat-card-body h3 { color: var(--ink); }
.stw-mat-card-body > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 12px;
  flex: 1;
}
[data-theme="light"] .stw-mat-card-body > p { color: #4e5450; }

/* Meta row */
.stw-mat-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.stw-mat-card-meta span {
  font: 10px var(--mono);
  color: var(--text-muted);
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Includes list */
.stw-mat-card-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stw-mat-card-includes li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.stw-chk { color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* Card footer */
.stw-mat-card-footer {
  padding: 14px 22px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .stw-mat-card-img { height: 160px; }
  .stw-mat-card-price { font-size: 17px; }
  .checkout-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════
   SPACING & TEXT LAYOUT IMPROVEMENTS
   Fixes cramped text, improves breathing room throughout
   ═══════════════════════════════════════════════════════════ */

/* Better lead paragraph spacing */
.lead {
  margin: 24px 0 32px;
  line-height: 1.75;
}

/* Improve feature grid card spacing */
.feature-grid article {
  padding: 32px;
  min-height: 230px;
}
.feature-grid h3 {
  margin: 24px 0 12px;
}
.feature-grid p {
  line-height: 1.7;
}

/* Service cards: better breathing room */
.service-card {
  padding: 30px;
}
.service-card p {
  line-height: 1.6;
  min-height: 48px;
}

/* Testimonial cards spacing */
.testimonial-card {
  padding: 30px;
}
.testimonial-card blockquote {
  margin: 0 0 20px;
  line-height: 1.65;
}

/* Improve process steps spacing */
.step {
  padding: 30px;
}
.step p {
  line-height: 1.7;
}

/* Value items improved padding */
.value-item {
  padding: 34px;
}
.value-item p {
  line-height: 1.75;
}

/* Team card better text spacing */
.team-card {
  padding: 32px;
}
.team-card p {
  line-height: 1.7;
  margin-top: 8px;
}

/* Better check-list spacing */
.check-list li {
  padding: 16px 0;
  line-height: 1.65;
}

/* FAQ item spacing fix */
.faq-item {
  padding: 22px 0;
}
.faq-item p {
  line-height: 1.75;
  margin-top: 6px;
}

/* Exam card text improvements */
.exam-card {
  padding: 30px;
}
.exam-card p {
  line-height: 1.7;
}

/* Pricing card text spacing */
.pricing-card {
  padding: 32px;
}
.pricing-card ul li {
  line-height: 1.6;
  margin-bottom: 2px;
}

/* Course card body */
.course-body p {
  line-height: 1.7;
}

/* CTA banner breathing room */
.cta-banner {
  padding: 60px 64px;
}
.cta-banner p {
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 600px;
}

/* Split story text flow */
.split-story > div:last-child {
  line-height: 1.8;
}
.split-story > div:last-child p {
  margin-bottom: 16px;
}

/* Two-col section improvements */
.two-col p {
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Footer CTA spacing */
.footer-cta h2 {
  margin: 0 0 40px;
}

/* Page title lead spacing */
.inner .lead {
  margin: 20px 0 36px;
}

/* Material card text */
.material-card p {
  line-height: 1.65;
}

/* Info box line height */
.info-box p {
  line-height: 1.8;
}

/* Section eyebrow spacing */
.eyebrow {
  margin: 0 0 20px;
}

/* Article card body spacing */
.article-card-body {
  padding: 26px;
}
.article-card .excerpt {
  line-height: 1.7;
}

/* Blog article page better readability */
.blog-article-page .article-body p {
  line-height: 1.85;
  margin: 0 0 26px;
}

/* Tutor page form spacing */
.tutor-fieldset {
  margin-bottom: 8px;
}

/* Mobile spacing tightening */
@media (max-width: 768px) {
  .cta-banner {
    padding: 40px 28px;
  }
  .cta-banner p {
    margin: 0 0 28px;
  }
  .feature-grid article {
    padding: 26px;
  }
  .value-item {
    padding: 26px;
  }
  .team-card {
    padding: 24px;
  }
}
