/* Dr Pankaj Tiwari — standalone theme. Palette derived from the source profile. */
:root {
  --navy: #1e3a5f;
  --navy-deep: #15294a;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --green: #25d366;
  --red: #ef4444;
  --ink: #1e293b;
  --body: #374151;
  --muted: #6b7280;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(15, 23, 42, 0.15);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: 'Playfair Display', Georgia, serif; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .7rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px var(--blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-light); margin-bottom: .9rem;
}
.eyebrow-dark { color: var(--blue); }

/* ---- Live banner ---- */
.live-banner {
  background: linear-gradient(90deg, var(--red), #f97316);
  color: #fff; text-align: center; font-weight: 600; font-size: .9rem;
  padding: .5rem 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.7)} 70%{box-shadow:0 0 0 10px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top center;
  background: var(--navy); border: 2px solid var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.08);
  flex: none; transition: box-shadow .2s, transform .2s;
}
.nav-brand:hover .brand-badge { box-shadow: 0 0 0 4px rgba(245,158,11,.25); transform: scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--ink); font-size: 1rem; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: .55rem; }
.nav-link { color: var(--body); font-weight: 500; font-size: .84rem; white-space: nowrap; }
.nav-link:hover { color: var(--blue); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s; }
.nav-toggle:hover { background: var(--bg-alt); border-color: var(--navy); }
.nav-toggle:active { transform: scale(.96); }
.nav-toggle .ico-close { display: none; }
body.nav-open .nav-toggle .ico-open { display: none; }
body.nav-open .nav-toggle .ico-close { display: block; }
.inline-form { display: inline; margin: 0; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(21,41,74,.94) 0%, rgba(30,58,95,.82) 45%, rgba(30,58,95,.55) 100%); }
.hero-inner { position: relative; padding: 5.5rem 0 5rem; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .6rem; }
.hero-sub { font-size: 1.15rem; color: #e2e8f0; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 2.4rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.8rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--amber-light); }
.stat-label { font-size: .82rem; color: #cbd5e1; }

/* ---- Sections ---- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #e2e8f0; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: .2s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card-icon { font-size: 2rem; margin-bottom: .7rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--body); font-size: .95rem; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--blue); font-weight: 600; }

/* ---- Premium content cards (courses · subjects · batches) ---- */
.course-card, .subject-card, .batch-card {
  display: flex; flex-direction: column; padding: 1.9rem 1.6rem 1.6rem; overflow: hidden;
}
.course-card::before, .subject-card::before, .batch-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--amber-light));
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.course-card:hover::before, .subject-card:hover::before, .batch-card:hover::before { transform: scaleX(1); }
.course-card .card-icon, .subject-card .card-icon, .batch-card .card-icon {
  width: 54px; height: 54px; margin-bottom: 1.05rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.55rem;
  background: linear-gradient(135deg, #eef3ff, #e2e9fd);
  border: 1px solid #dde6ff; box-shadow: 0 5px 12px -7px rgba(37,99,235,.55);
}
.course-card h3, .subject-card h3, .batch-card h3 { color: var(--ink); }
.course-card p, .subject-card p, .batch-card p { margin-top: .4rem; flex: 1; }
.course-card .card-link {
  margin-top: 1.25rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
  padding: .52rem 1rem; border-radius: 999px; background: #eff4ff; color: var(--blue-dark);
  font-size: .9rem; transition: background .2s, color .2s, gap .2s, box-shadow .2s;
}
.course-card:hover .card-link {
  background: var(--blue); color: #fff; gap: .65rem; box-shadow: 0 8px 18px -8px rgba(37,99,235,.7);
}
.batch-card { padding: 2rem; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact-grid h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 460px; }
.contact-rows { display: flex; flex-direction: column; gap: .8rem; margin: 1.6rem 0; }
.contact-row { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; color: #fff; font-weight: 500; }
.contact-row span { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.35rem; }
.contact-card p { color: var(--muted); margin-bottom: 1.3rem; }
.contact-card .btn { margin-bottom: .7rem; }

/* ---- Footer ---- */
.footer { background: var(--navy-deep); color: #cbd5e1; padding: 3rem 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-bottom: 2rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; margin-bottom: .4rem; }
.footer p { max-width: 380px; font-size: .95rem; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 1.2rem; font-size: .85rem; }

/* ---- WhatsApp FAB ---- */
.wa-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.8); transition: .2s;
}
.wa-fab:hover { transform: scale(1.08); }

/* ---- Welcome chat bubble (delayed) ---- */
.welcome-pop {
  position: fixed; right: 20px; bottom: 88px; z-index: 59; width: 290px; max-width: calc(100vw - 40px);
  opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.3,1.2);
}
.welcome-pop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.welcome-card {
  display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: .85rem 1rem; box-shadow: 0 16px 40px -14px rgba(15,23,42,.4);
  position: relative;
}
.welcome-card::after {
  content: ''; position: absolute; right: 26px; bottom: -7px; width: 14px; height: 14px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.welcome-avatar { position: relative; flex: none; width: 48px; height: 48px; }
.welcome-avatar img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 2px solid var(--amber-light); box-shadow: 0 0 0 4px rgba(245,158,11,.12);
}
.welcome-online {
  position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff;
}
.welcome-text { display: flex; flex-direction: column; gap: .15rem; line-height: 1.3; }
.welcome-text strong { color: var(--navy); font-size: .95rem; }
.welcome-text span { color: var(--muted); font-size: .82rem; }
.welcome-close {
  position: absolute; top: -10px; right: -8px; z-index: 1; width: 24px; height: 24px; border: none;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: .15s;
}
.welcome-close:hover { background: var(--navy-deep); transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .welcome-pop { transition: opacity .2s ease; transform: none; }
  .welcome-pop.show { transform: none; }
}

/* ---- Welcome announcement modal (center-screen, once per visit) ---- */
.pt-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; opacity: 0; transition: opacity .25s ease;
}
/* The `hidden` attribute must win over `display:flex`, otherwise the closed
   modal stays as an invisible (opacity:0) full-viewport layer that swallows
   every click on the page — header links included. */
.pt-modal[hidden] { display: none !important; }
.pt-modal.show { opacity: 1; }
.pt-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.62); backdrop-filter: blur(3px); }
.pt-modal-card {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  padding: 2.4rem 1.9rem 1.9rem; text-align: center; border-top: 5px solid var(--amber-light);
  box-shadow: 0 24px 64px -12px rgba(15,23,42,.45);
  transform: translateY(16px) scale(.95); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.pt-modal.show .pt-modal-card { transform: translateY(0) scale(1); }
.pt-modal-x {
  position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; display: grid; place-items: center;
  border: none; border-radius: 50%; background: var(--bg-alt, #f1f5f9); color: var(--navy);
  font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s, transform .2s;
}
.pt-modal-x:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
.pt-modal-avatar { display: inline-flex; }
.pt-modal-avatar img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid var(--amber-light); box-shadow: 0 6px 18px rgba(30,58,95,.22);
}
.pt-modal-eyebrow {
  display: block; margin-top: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--amber, #d97706);
}
.pt-modal-title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; line-height: 1.25;
  margin: .35rem 0 .55rem; color: var(--navy);
}
.pt-modal-msg { color: var(--muted); font-size: .98rem; line-height: 1.55; margin: 0 0 1.6rem; }
.pt-modal-msg strong { color: var(--ink); }
.pt-modal-actions { display: flex; flex-direction: column; gap: .6rem; }
.pt-modal-actions .btn { width: 100%; justify-content: center; }
.pt-modal-later { color: var(--muted); }
body.pt-modal-open { overflow: hidden; }
@media (min-width: 480px) {
  .pt-modal-actions { flex-direction: row; }
  .pt-modal-actions .btn { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-modal, .pt-modal-card { transition: opacity .2s ease; }
  .pt-modal-card { transform: none; }
  .pt-modal.show .pt-modal-card { transform: none; }
}

/* ---- Vocab Games ---- */
.games-main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.games-hero { text-align: center; margin-bottom: 1.6rem; }
.games-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--navy); margin: .3rem 0 .5rem; }
.games-sub { color: var(--muted); max-width: 56ch; margin: 0 auto; line-height: 1.6; }
.games-sub strong { color: var(--navy); }
.games-count { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); }
.eyebrow-dark { color: var(--amber); }
.games-hud { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ghud-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; color: var(--muted); box-shadow: var(--shadow-sm, 0 2px 6px rgba(15,23,42,.06)); }
.ghud-chip strong { color: var(--navy); }
.games-noscript { text-align: center; color: var(--muted); }

/* start screen */
.game-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: center; margin-bottom: 1.3rem; }
.game-topics-label { font-weight: 700; font-size: .8rem; color: var(--ink); margin-right: .2rem; }
.game-topics-note { width: 100%; text-align: center; font-size: .74rem; color: var(--muted); }
.game-topic { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: .15s; }
.game-topic:hover { border-color: var(--navy); }
.game-topic.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.game-modes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .game-modes { grid-template-columns: repeat(3, 1fr); } }
.game-mode-card { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.5rem; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; gap: .25rem; }
.game-mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--amber-light); }
.gmc-icon { font-size: 2rem; }
.gmc-name { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.gmc-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--amber); }
.gmc-desc { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: .35rem; }
.gmc-badge { margin-top: .7rem; align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .74rem; font-weight: 700; color: var(--navy); }
.gmc-badge.done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.games-lvlbar { margin-top: 1.4rem; height: 22px; position: relative; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.games-lvlbar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--navy), var(--amber-light)); border-radius: 999px; transition: width .4s; }
.games-lvlbar small { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--ink); }

/* play screen */
.game-play { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.game-bar { display: flex; align-items: center; gap: .75rem; }
.gb-left { display: flex; align-items: center; gap: .6rem; flex: 1; }
.gb-score strong { color: var(--navy); font-size: 1.15rem; }
.gb-combo { color: var(--amber); font-weight: 700; transition: transform .15s; }
.gb-combo.pulse { transform: scale(1.35); }
.gb-right { font-size: 1rem; color: var(--ink); letter-spacing: .05em; }
.gb-right strong { color: var(--navy); }
.gb-dead { opacity: .5; }
.gb-quit { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-alt); color: var(--muted); font-size: 1rem; cursor: pointer; }
.gb-quit:hover { background: #fee2e2; color: #b91c1c; }
.game-timebar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin: .8rem 0 0; }
.game-timebar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), #16a34a); border-radius: 999px; transition: width 1s linear; }
.game-timebar span.low { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.game-q { font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 1.2rem 0 1.1rem; min-height: 3.2em; }
.game-opts { display: grid; gap: .6rem; }
.game-opt { display: flex; align-items: center; gap: .7rem; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .85rem 1rem; font-size: 1rem; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, transform .08s; }
.game-opt:hover:not(:disabled) { border-color: var(--navy); transform: translateX(2px); }
.go-key { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--bg-alt); color: var(--navy); font-weight: 800; font-size: .82rem; }
.game-opt.correct { border-color: #16a34a; background: #ecfdf5; }
.game-opt.correct .go-key { background: #16a34a; color: #fff; }
.game-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.game-opt.wrong .go-key { background: #dc2626; color: #fff; }
.game-opt:disabled { cursor: default; }
.game-fb { min-height: 1.6em; margin-top: .9rem; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.game-fb.good { color: #047857; }
.game-fb.bad { color: #b91c1c; }

/* results */
.game-results { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center; box-shadow: var(--shadow); }
.game-results h2 { color: var(--navy); font-size: 1.5rem; margin: 0 0 .6rem; }
.gr-score { font-family: 'Playfair Display', Georgia, serif; font-size: 3.4rem; font-weight: 800; color: var(--amber); line-height: 1; }
.gr-score small { display: block; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.gr-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.3rem 0 .8rem; color: var(--muted); font-size: .9rem; }
.gr-stats strong { color: var(--navy); }
.gr-xp { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.gr-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.gr-cta { display: inline-block; margin-top: 1.3rem; color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 2px solid var(--amber-light); padding-bottom: 2px; }
.gr-cta:hover { color: var(--amber); }
@media (prefers-reduced-motion: reduce) {
  .game-mode-card, .game-opt, .gb-combo, .games-lvlbar span { transition: none; }
}

/* ---- Auth pages ---- */
.page-plain { background: linear-gradient(135deg, #eef2f9 0%, #f8fafc 100%); min-height: 100vh; }
.auth-wrap { display: grid; place-items: center; padding: 3.5rem 18px; }
.auth-card { background: #fff; width: 100%; max-width: 440px; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 1.7rem; }
.auth-back { display: inline-block; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.auth-back:hover { color: var(--blue); }
.auth-alt { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--blue); font-weight: 600; }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: .15s; font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form textarea { resize: vertical; }

.alert { padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; margin-top: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ---- Dashboard / Admin ---- */
.dash { background: var(--bg-alt); min-height: calc(100vh - 68px); padding: 2.6rem 0 4rem; }
.dash-head h1 { font-size: 1.8rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.6rem; margin-top: 1.6rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); margin-top: 1.6rem; }
.panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.kpi { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--amber-light); }
.kpi-label { font-size: .85rem; color: #cbd5e1; }

/* ---- Modular admin dashboard ---- */
.admin-kpis { grid-template-columns: repeat(4, 1fr); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; position: sticky; top: 68px; background: var(--bg-alt); padding: .7rem 0; z-index: 20; }
.admin-tab { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .42rem .9rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.admin-tab:hover { background: var(--navy); color: #fff; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); margin-top: 1.4rem; scroll-margin-top: 130px; }
.admin-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.admin-card .kpis { margin-top: 0; margin-bottom: 1.2rem; }
.admin-card .form { max-width: 540px; }
.admin-card .table .form, .admin-card .table .inline-form { margin: 0; }
.admin-card .table input[type="number"], .admin-card .table input[type="text"] { width: 8.5rem; padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.admin-card .table .btn { padding: .35rem .8rem; font-size: .85rem; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: .6rem .6rem; border-bottom: 2px solid var(--line); }
.table td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .empty { text-align: center; color: var(--muted); padding: 1.6rem; }
.table-scroll { overflow-x: auto; }
.status-form select { padding: .35rem .5rem; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; text-transform: capitalize; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: capitalize; }
.badge-pending { background: #fff7ed; color: #c2410c; }
.badge-confirmed { background: #eff6ff; color: #1d4ed8; }
.badge-completed { background: #ecfdf5; color: #047857; }
.badge-cancelled { background: #fef2f2; color: #b91c1c; }

/* ---- Nav CTA link ---- */
.nav-link-cta { color: var(--blue); font-weight: 700; }
.nav-link-cta:hover { color: var(--blue-dark); }

/* ---- Why-choose / benefits ---- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.benefit { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: .2s; }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.benefit h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.benefit p { font-size: .92rem; color: var(--body); margin: 0; }

/* ---- Demo booking ---- */
.demo-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.demo-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.demo-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.demo-points li { font-weight: 500; color: var(--ink); }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.demo-card h3 { font-size: 1.3rem; }

/* ---- Profile card (About) ---- */
.profile-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.profile-photo { width: 100%; aspect-ratio: 5/6; object-fit: cover; display: block; background: var(--navy); }
.profile-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .15rem;
  background: linear-gradient(to top, rgba(15,23,42,.92), rgba(15,23,42,.5) 60%, transparent); color: #fff; }
.profile-meta strong { font-size: 1.25rem; }
.profile-meta span { color: #cbd5e1; font-size: .9rem; }
.profile-call { margin-top: .5rem; color: var(--amber-light); font-weight: 600; font-size: .95rem; }
.profile-call:hover { color: #fff; }

/* ---- Credential chips ---- */
.cred-chips { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.cred-chips li { background: #eff4fb; color: var(--navy); border: 1px solid #d7e3f4; border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600; }

/* ---- Resource / study-material cards ---- */
.resource-card { position: relative; }
.resource-tag { position: absolute; top: 1rem; right: 1rem; background: var(--amber); color: #422006; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; }

/* ---- Published books ---- */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover { position: relative; aspect-ratio: 3/4; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.book-fallback-title { color: rgba(255,255,255,.92); font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.4rem; line-height: 1.2; padding: 1.2rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.book-info { padding: 1.2rem 1.3rem 1.4rem; }
.book-info h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.book-meta { color: var(--blue); font-weight: 600; font-size: .88rem; margin: 0 0 .4rem; }
.book-byline { color: var(--muted); font-size: .86rem; margin: 0; }
.books-note { text-align: center; color: var(--muted); margin-top: 1.8rem; font-size: .95rem; }

/* ---- Testimonials ---- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative; margin: 0; }
.quote-mark { font-family: 'Playfair Display', Georgia, serif; font-size: 3.4rem; line-height: .6; color: var(--amber); height: 1.4rem; }
.testimonial blockquote { margin: .4rem 0 1.2rem; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.testimonial figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: .9rem; }
.testimonial figcaption strong { color: var(--navy); }
.testimonial figcaption span { color: var(--muted); font-size: .85rem; }

/* ---- How-to-join steps ---- */
.steps-grid { margin-bottom: 1.2rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--body); font-size: .95rem; margin: 0; }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }
.qfact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.qfact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.qfact-value { color: var(--ink); font-weight: 600; font-size: .92rem; }

/* ---- Practice tests: CTA band + hub cards ---- */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 3rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: .3rem 0; }
.cta-inner p { color: #cbd5e1; max-width: 560px; margin: 0; }
.cta-band .btn-primary { white-space: nowrap; }

.quiz-card { display: flex; flex-direction: column; }
.quiz-badge { display: inline-block; align-self: flex-start; background: var(--amber); color: #422006; font-weight: 800; font-size: .75rem; letter-spacing: .05em; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.quiz-card h3 { font-size: 1.25rem; }
.quiz-meta { display: flex; gap: 1.2rem; color: var(--muted); font-size: .88rem; margin: .8rem 0 1.2rem; }
.quiz-card .btn { margin-top: auto; }

/* ---- Quiz runtime ---- */
.quiz-page { background: var(--bg-alt); min-height: calc(100vh - 68px); padding: 1.6rem 0 4rem; }
.quiz-container { max-width: 760px; }
.quiz-container > #quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin-top: 1rem; }

.quiz-intro { text-align: center; }
.quiz-intro h1 { font-size: 1.6rem; margin: .6rem 0 1.2rem; }
.quiz-intro-meta { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.quiz-intro-meta div { background: var(--bg-alt); border-radius: 12px; padding: .9rem 1.2rem; min-width: 96px; }
.quiz-intro-meta strong { display: block; font-size: 1.2rem; color: var(--navy); }
.quiz-intro-meta span { font-size: .8rem; color: var(--muted); }
.quiz-rules { text-align: left; color: var(--body); font-size: .92rem; max-width: 520px; margin: 0 auto 1.4rem; padding-left: 1.2rem; }
.quiz-rules li { margin-bottom: .4rem; }
.q-center { text-align: center; }

.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.quiz-progress-text { font-weight: 600; color: var(--muted); font-size: .9rem; }
.quiz-timer { font-weight: 800; font-size: 1.15rem; color: var(--navy); background: var(--bg-alt); padding: .25rem .7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.q-timer-warn { color: #fff; background: var(--red); animation: pulse 1s infinite; }
.quiz-progress { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); transition: width .3s; }
.quiz-q { font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 1.2rem; white-space: pre-line; }
.quiz-opts { display: flex; flex-direction: column; gap: .7rem; }
.quiz-opt { display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%; padding: .95rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: .15s; }
.quiz-opt:hover { border-color: var(--blue); background: #f5f9ff; }
.quiz-opt.selected { border-color: var(--blue); background: #eaf2ff; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.quiz-opt-key { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--bg-alt); display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.quiz-opt.selected .quiz-opt-key { background: var(--blue); color: #fff; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.quiz-count { color: var(--muted); font-size: .82rem; }

/* ---- Quiz results ---- */
.quiz-result { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.result-ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; }
.result-ring span { font-size: 2rem; font-weight: 800; }
.result-ring.pass { background: conic-gradient(#10b981 0, #10b981 100%); box-shadow: 0 8px 24px -8px rgba(16,185,129,.6); }
.result-ring.fail { background: conic-gradient(#f59e0b 0, #f59e0b 100%); box-shadow: 0 8px 24px -8px rgba(245,158,11,.6); }
.result-score { font-size: 1.05rem; }
.result-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.rev-title { font-size: 1.3rem; margin: 0 0 1rem; }
.rev-list { display: flex; flex-direction: column; gap: 1rem; }
.rev-q { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.rev-q-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.rev-num { font-weight: 800; color: var(--navy); }
.rev-tag { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; text-transform: uppercase; }
.rev-tag.ok { background: #ecfdf5; color: #047857; }
.rev-tag.bad { background: #fef2f2; color: #b91c1c; }
.rev-topic { margin-left: auto; color: var(--muted); font-size: .8rem; }
.rev-text { font-weight: 600; color: var(--ink); margin-bottom: .6rem; white-space: pre-line; }
.rev-opt { padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; margin-bottom: .3rem; border: 1px solid transparent; }
.rev-opt.opt-correct { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; font-weight: 600; }
.rev-opt.opt-wrong { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.rev-exp { margin-top: .6rem; font-size: .9rem; color: var(--body); background: var(--bg-alt); padding: .7rem .9rem; border-radius: 8px; }

/* ---- Downloadable documents ---- */
.downloads-wrap { max-width: 880px; }
.doc-grid { display: flex; flex-direction: column; gap: .9rem; }
.doc-row { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.doc-icon { font-size: 1.8rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.doc-size { color: var(--muted); font-size: .82rem; }
.doc-row .btn { flex-shrink: 0; }
.doc-lock { color: var(--navy); }

/* ---- Recognition (Chief Guest etc.) ---- */
.recognition { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow-sm); margin: 0 0 1.4rem; }
.recognition img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recognition strong { display: block; color: var(--navy); font-size: .95rem; }
.recognition span { color: var(--muted); font-size: .82rem; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.2rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 1rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: .2s; }
.faq[open] summary::after { content: '–'; }
.faq p { margin: 0 0 1rem; color: var(--body); }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .dash-grid, .demo-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.2rem; }
}
/* The 11-item nav (10 links + CTA) needs ~1150px even when tightened, so until
   the viewport can fit it beside the brand it collapses into a clean, full-width
   hamburger drawer. Breakpoint sits just above the measured no-overlap width. */
@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
    box-shadow: 0 18px 30px -18px rgba(15,23,42,.35);
  }
  body.nav-open .nav-links { max-height: calc(100vh - 68px); overflow-y: auto; padding: .4rem 0 1rem; }
  .nav-links .nav-link {
    display: block; margin: 0; padding: .9rem 1.4rem; font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-link:hover { background: var(--bg-alt); }
  .nav-links .inline-form { display: block; margin: .8rem 1.4rem 0; }
  .nav-links .btn { display: block; width: 100%; text-align: center; margin: .8rem 1.4rem 0; }
  .nav-links .inline-form .btn { margin: 0; }
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-facts { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .quiz-container > #quiz { padding: 1.2rem; }
  .quiz-q { font-size: 1.08rem; }
  /* Stacked tables */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .9rem; padding: .4rem .2rem; }
  .table td { border: none; padding: .4rem .8rem; }
  .table td::before { content: attr(data-l) ": "; font-weight: 700; color: var(--muted); }
  .table td[data-l="Message"]::before, .table .empty::before { content: ""; }
}
@media (max-width: 460px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================================
   Practice Tests hub — premium redesign (navy + amber academic palette)
   Self-contained: new .tests-* / .qz-* / .tfilter classes, no overrides.
   ========================================================================== */

/* page-mount rise (skill motion system) */
@keyframes pt-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: pt-rise .7s cubic-bezier(.16,1,.3,1) both; }
.rise-1 { animation-delay: .06s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .18s; }

/* ---- Hero band ---- */
.tests-hero { position: relative; overflow: hidden; padding: 3.4rem 0 2.6rem;
  background: linear-gradient(180deg, #eef3fb 0%, #f6f9fd 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line); }
.tests-hero::before {
  content: ''; position: absolute; inset: -45% -8% auto -8%; height: 540px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 60% at 20% 28%, rgba(30,58,95,.16), transparent 70%),
    radial-gradient(38% 58% at 82% 16%, rgba(245,158,11,.20), transparent 72%);
  filter: blur(16px);
}
.tests-hero .container { position: relative; z-index: 1; }
.tests-kicker {
  display: inline-flex; align-items: center; gap: .55rem; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px;
  padding: .42rem .9rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 1.1rem;
}
.tests-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.tests-hero h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); letter-spacing: -.01em; max-width: 17ch; margin: 0 0 .7rem; }
.tests-lede { color: var(--body); font-size: 1.1rem; line-height: 1.6; max-width: 60ch; margin: 0; }
.tests-cta { margin-top: 1.3rem; }
.qz-revise {
  display: inline-flex; align-items: center; gap: .55rem; background: #fff;
  border: 1px solid #f3d9a6; color: #92580a; font-weight: 600; font-size: .92rem;
  padding: .62rem 1.05rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.32,.72,0,1), box-shadow .18s, border-color .18s, background .18s;
}
.qz-revise svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.qz-revise:hover { transform: translateY(-1px); background: #fffaf1; border-color: var(--amber);
  box-shadow: 0 10px 22px -12px rgba(245,158,11,.7); }
.qz-revise:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,158,11,.35); }

/* ---- Stat strip ---- */
.tests-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.tstat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.05rem 1.2rem; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 24px -20px rgba(15,23,42,.6); }
.tstat::before { content: ''; position: absolute; left: 1.2rem; top: 1.15rem; width: 26px; height: 3px;
  border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--amber)); opacity: .9; }
.tstat b { display: block; margin-top: .9rem; font-size: 1.55rem; font-weight: 800; color: var(--navy);
  line-height: 1.1; font-variant-numeric: tabular-nums; }
.tstat span { display: block; margin-top: .25rem; font-size: .82rem; color: var(--muted); }

/* ---- Section scaffolding ---- */
.tests-section { padding: 2.8rem 0; }
.tests-section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.tsec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem;
  flex-wrap: wrap; margin-bottom: 1.5rem; }
.tsec-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0; }
.tsec-head p { color: var(--muted); margin: .35rem 0 0; font-size: .96rem; }

/* ---- Filter tabs ---- */
.tests-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.tfilter {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem;
  font: 600 .87rem/1 'Inter', system-ui, sans-serif; color: var(--body); cursor: pointer;
  transition: transform .18s cubic-bezier(.32,.72,0,1), box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.tfilter:hover { border-color: #c7d2fe; color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.tfilter:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.32); }
.tfilter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(30,58,95,.75); }
.tcount { font-size: .72rem; font-weight: 700; background: rgba(15,23,42,.07); color: inherit;
  border-radius: 999px; padding: .1rem .46rem; font-variant-numeric: tabular-nums; }
.tfilter[aria-pressed="true"] .tcount { background: rgba(255,255,255,.22); }

/* ---- Featured mock cards (dark, premium) ---- */
.qz-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.qz-feat {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.09); border-radius: 22px;
  padding: 1.8rem 1.8rem 1.7rem;
  box-shadow: 0 2px 4px rgba(15,23,42,.18), 0 26px 50px -28px rgba(15,23,42,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(15,23,42,.18), 0 26px 50px -28px rgba(15,23,42,.85);
  transition: transform .24s cubic-bezier(.32,.72,0,1), box-shadow .24s cubic-bezier(.32,.72,0,1);
}
.qz-feat:hover { transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 16px rgba(15,23,42,.28), 0 34px 64px -28px rgba(15,23,42,.95); }
.qz-feat-glow { position: absolute; inset: -40% -30% auto auto; width: 320px; height: 320px; pointer-events: none;
  background: radial-gradient(circle, rgba(245,158,11,.34), transparent 62%); filter: blur(8px); }
.qz-feat > * { position: relative; }
.qz-feat-tag { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #422006;
  background: linear-gradient(180deg, #fcd34d, #f59e0b); padding: .32rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.qz-feat h3 { color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; line-height: 1.2; margin: 0 0 .5rem; }
.qz-feat p { color: #cdd9ec; font-size: .96rem; line-height: 1.55; margin: 0; flex: 1; }
.qz-feat-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1.2rem 0 1.4rem; }
.qz-feat-meta span { display: inline-flex; align-items: center; gap: .42rem; color: #aebdd4;
  font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.qz-feat-meta svg { width: 16px; height: 16px; color: var(--amber-light); flex: none; }
.qz-feat-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(180deg, #fcd34d, #f59e0b); color: #3a2606; font-weight: 800; font-size: .94rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1px solid rgba(180,110,9,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px rgba(245,158,11,.7);
  transition: transform .18s cubic-bezier(.32,.72,0,1), box-shadow .18s, filter .18s;
}
.qz-feat-cta:hover { transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 28px -10px rgba(245,158,11,.85); }
.qz-feat-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(252,211,77,.55); }

/* ---- Topic cards ---- */
.qz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.qz-grid:has(.qz-card[hidden]) { } /* progressive: filtered cards collapse below */
.qz-card[hidden] { display: none !important; }
.qz-card {
  --accent: linear-gradient(90deg, var(--navy), var(--blue));
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 22px -18px rgba(15,23,42,.55);
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s cubic-bezier(.32,.72,0,1), border-color .22s;
}
.qz-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.qz-card:hover { transform: translateY(-4px); border-color: #c7d2fe;
  box-shadow: 0 6px 14px -8px rgba(15,23,42,.16), 0 26px 44px -26px rgba(15,23,42,.6); }
.qz-card:hover::before { transform: scaleX(1); }
.qz-pgt { --accent: linear-gradient(90deg, var(--navy), var(--blue)); }
.qz-tgt { --accent: linear-gradient(90deg, var(--amber), var(--amber-light)); }

.qz-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.qz-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.qz-ico svg { width: 22px; height: 22px; }
.qz-pgt .qz-ico { background: linear-gradient(135deg, #eef3ff, #dbe6ff); color: var(--blue-dark); border: 1px solid #d7e3f4; }
.qz-tgt .qz-ico { background: linear-gradient(135deg, #fff5e6, #ffe9c7); color: #b45309; border: 1px solid #f6dca6; }
.qz-badge2 { font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: .28rem .62rem; border-radius: 999px; }
.qz-pgt .qz-badge2 { background: #eef4ff; color: var(--blue-dark); }
.qz-tgt .qz-badge2 { background: #fff4e2; color: #b45309; }
.qz-card h3 { font-size: 1.08rem; color: var(--ink); line-height: 1.3; margin: 0 0 .45rem; }
.qz-blurb { color: var(--body); font-size: .9rem; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qz-meta2 { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 1.05rem 0 1.25rem; }
.qz-meta2 span { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted);
  font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.qz-meta2 svg { width: 15px; height: 15px; opacity: .65; flex: none; }
.qz-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; padding: .72rem 1rem; border-radius: 12px; font-weight: 700; font-size: .92rem;
  color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line);
  transition: background .2s cubic-bezier(.32,.72,0,1), color .2s, border-color .2s, box-shadow .2s, transform .18s;
}
.qz-cta span { transition: transform .2s cubic-bezier(.32,.72,0,1); }
.qz-card:hover .qz-cta { background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(37,99,235,.7); }
.qz-card:hover .qz-cta span { transform: translateX(3px); }
.qz-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.qz-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.4); }

.qz-empty { text-align: center; color: var(--muted); padding: 2.2rem; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .qz-grid { grid-template-columns: repeat(2, 1fr); }
  .tests-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .qz-feat-grid { grid-template-columns: 1fr; }
  .qz-grid { grid-template-columns: 1fr; }
  .tests-hero { padding: 2.6rem 0 2rem; }
  .tsec-head { align-items: flex-start; }
  .tests-filter { width: 100%; }
}
@media (max-width: 420px) {
  .tests-stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tstat { padding: .9rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3 { animation: none; }
  .qz-card, .qz-feat, .qz-cta, .qz-feat-cta, .tfilter, .qz-revise { transition: none; }
}

/* ---- Homepage Daily Booster strip ---- */
.dailystrip { padding: 26px 0 0; }
.dailystrip-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(115deg, var(--navy-deep), var(--blue-dark) 70%, #4f7df0);
  color: #fff; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.dailystrip-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(37,99,235,.6); }
.dailystrip-badge {
  flex: none; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  background: var(--amber); color: #1f2937; padding: 6px 12px; border-radius: 999px;
}
.dailystrip-body { flex: 1 1 260px; }
.dailystrip-lead { margin: 0 0 2px; font-size: .85rem; color: #cbd5e1; }
.dailystrip-word { margin: 0 0 4px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; }
.dailystrip-word span { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500; color: var(--amber-light); }
.dailystrip-idiom { margin: 0; font-size: .9rem; color: #e2e8f0; }
.dailystrip-cta { flex: none; font-weight: 700; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.dailystrip-card:hover .dailystrip-cta { background: #fff; color: var(--navy); }
.dailystrip-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
@media (max-width: 640px) {
  .dailystrip-card { padding: 16px; }
  .dailystrip-word { font-size: 1.3rem; }
  .dailystrip-cta { width: 100%; text-align: center; }
}

/* Homepage "Learn — Study Notes" teaser (light card; contrasts the dark daily strip). */
.learnstrip { padding: 16px 0 0; }
.learnstrip-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fffdf7, #fef6e7 60%, #fdeccb);
  border: 1px solid #f3d9a6; color: var(--navy); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.learnstrip-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(180,83,9,.4); }
.learnstrip-badge {
  flex: none; align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .03em;
  background: var(--navy); color: #fff; padding: 6px 12px; border-radius: 999px;
}
.learnstrip-body { flex: 1 1 260px; }
.learnstrip-lead { margin: 0 0 3px; font-size: .85rem; color: #92611a; }
.learnstrip-title { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.learnstrip-desc { margin: 0; font-size: .9rem; color: #5b4a2e; line-height: 1.55; }
.learnstrip-cta { flex: none; font-weight: 800; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.learnstrip-card:hover .learnstrip-cta { background: var(--amber); color: #422006; border-color: var(--amber); }
@media (max-width: 640px) {
  .learnstrip-card { padding: 16px; }
  .learnstrip-title { font-size: 1.1rem; }
  .learnstrip-cta { width: 100%; text-align: center; }
}


/* ================= PT-BLOG-CSS (added 2026-06) ================= */
/* Professional top utility bar */
.topbar{background:var(--navy-deep);color:#cbd5e1;font-size:.82rem}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:38px;padding:6px 0}
.topbar-creds{font-weight:600;letter-spacing:.01em;color:#e2e8f0}
.topbar-contact{display:flex;align-items:center;gap:1.15rem;white-space:nowrap}
.topbar a{color:#cbd5e1;text-decoration:none;transition:color .15s}
.topbar a:hover{color:#fff}
.topbar-loc{color:#94a3b8}
@media (max-width:760px){.topbar-creds{display:none}.topbar-inner{justify-content:center}}
@media (max-width:460px){.topbar-loc{display:none}}

/* Blog landing */
.blog{padding:42px 0 56px;background:var(--bg-alt)}
.blog-hero{text-align:center;max-width:760px;margin:0 auto 30px}
.blog-hero h1{font-family:'Playfair Display',serif;font-size:2.1rem;color:var(--navy);margin:.4rem 0 .6rem}
.blog-sub{color:var(--muted);font-size:1.02rem}
.blog-cat{font-size:1.15rem;color:var(--navy);margin:30px 0 14px;padding-bottom:8px;border-bottom:2px solid var(--line)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.blog-card{display:flex;flex-direction:column;gap:.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-decoration:none;color:inherit;box-shadow:var(--shadow-sm);transition:transform .15s,box-shadow .15s,border-color .15s}
.blog-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c7d2fe}
.bc-tag{font-size:.72rem;font-weight:700;color:var(--blue-dark);background:#eff6ff;border:1px solid #dbeafe;align-self:flex-start;padding:3px 10px;border-radius:999px}
.bc-title{font-size:1.05rem;color:var(--ink);margin:.2rem 0;line-height:1.35}
.bc-desc{font-size:.9rem;color:var(--muted);margin:0;flex:1}
.bc-meta{font-size:.8rem;font-weight:700;color:var(--blue-dark);margin-top:.4rem}
@media (max-width:920px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.blog-grid{grid-template-columns:1fr}.blog-hero h1{font-size:1.7rem}}

/* Blog post article */
.post{padding:34px 0 56px;background:var(--bg-alt)}
.post-wrap{max-width:760px}
.post-back{display:inline-block;font-size:.86rem;font-weight:700;color:var(--blue-dark);text-decoration:none}
.post-back:hover{text-decoration:underline}
.post-tag{display:inline-block;margin:14px 0 6px;font-size:.74rem;font-weight:700;color:var(--blue-dark);background:#eff6ff;border:1px solid #dbeafe;padding:3px 12px;border-radius:999px}
.post h1{font-family:'Playfair Display',serif;font-size:2rem;color:var(--navy);line-height:1.25;margin:.2rem 0 .4rem}
.post-meta{color:var(--muted);font-size:.9rem;margin:0 0 18px}
.post-body{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 28px;box-shadow:var(--shadow-sm)}
.post-body h2{font-size:1.25rem;color:var(--navy);margin:1.5rem 0 .6rem}
.post-body h2:first-child{margin-top:.2rem}
.post-body p{margin:.6rem 0;color:var(--body)}
.post-body ul,.post-body ol{margin:.5rem 0 .9rem;padding-left:1.3rem}
.post-body li{margin:.32rem 0}
.post-box-h{display:block;font-weight:800;font-size:.82rem;letter-spacing:.02em;margin-bottom:.4rem}
.post-eg{background:#eff6ff;border-left:4px solid var(--blue);border-radius:10px;padding:12px 16px;margin:1rem 0}
.post-eg .post-box-h{color:var(--blue-dark)}
.post-warn{background:#fff7ed;border-left:4px solid var(--amber);border-radius:10px;padding:12px 16px;margin:1rem 0}
.post-warn .post-box-h{color:#b45309}
.post-revise{background:#ecfdf5;border-left:4px solid #10b981;border-radius:10px;padding:12px 16px;margin:1rem 0}
.post-revise .post-box-h{color:#047857}
.post-cta{margin-top:1.6rem;background:linear-gradient(160deg,var(--navy),var(--navy-deep));color:#f8fafc;border-radius:14px;padding:22px 24px;text-align:center}
.post-cta h3{margin:0 0 .4rem;font-size:1.2rem}
.post-cta p{color:#cbd5e1;margin:0 0 14px}
.post-cta-btns{display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap}
.post-foot{display:flex;justify-content:space-between;gap:1rem;margin-top:20px;flex-wrap:wrap}
@media (max-width:600px){.post h1{font-size:1.55rem}.post-body{padding:20px 18px}}
/* ================= /PT-BLOG-CSS ================= */


/* ============ PT-HEADER-V2 (pro header, 2026-06) ============ */
/* ============ Dr Pankaj Tiwari's English Academy — header (pth-) ============ */
.pth-header{font-family:'Inter',system-ui,sans-serif;color:var(--ink);position:sticky;top:0;z-index:1000}
.pth-header *{box-sizing:border-box}
.pth-header a{text-decoration:none;color:inherit}
body.pth-noscroll{overflow:hidden}

/* ---- Inline SVG icons via mask (no icon-font dependency) ---- */
.pth-ic{display:inline-block;width:1em;height:1em;vertical-align:-0.13em;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.pth-ic-cap{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c0 1 2.7 2.5 6 2.5s6-1.5 6-2.5v-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c0 1 2.7 2.5 6 2.5s6-1.5 6-2.5v-5'/%3E%3C/svg%3E")}
.pth-ic-book{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E")}
.pth-ic-users{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13A4 4 0 0 1 16 11'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13A4 4 0 0 1 16 11'/%3E%3C/svg%3E")}
.pth-ic-phone{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E")}
.pth-ic-pin{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.pth-ic-wa{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.21 4.79 1.21 5.46 0 9.91-4.45 9.91-9.91C21.95 6.45 17.5 2 12.04 2Zm5.8 14.16c-.24.68-1.42 1.31-1.95 1.36-.5.05-1.13.07-1.83-.11-.42-.13-.96-.31-1.66-.61-2.92-1.26-4.82-4.2-4.97-4.39-.14-.19-1.18-1.57-1.18-2.99 0-1.42.74-2.12 1.01-2.41.27-.29.58-.36.78-.36.19 0 .39 0 .56.01.18.01.42-.07.66.5.24.59.83 2.03.9 2.18.07.14.12.31.02.5-.09.19-.14.31-.28.48-.14.16-.29.36-.42.49-.14.14-.28.29-.12.57.16.28.71 1.17 1.53 1.9 1.05.94 1.94 1.23 2.22 1.37.28.14.44.12.6-.07.16-.19.69-.81.87-1.08.18-.28.36-.23.61-.14.25.09 1.58.75 1.85.88.27.14.45.21.52.32.07.12.07.66-.17 1.34Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.21 4.79 1.21 5.46 0 9.91-4.45 9.91-9.91C21.95 6.45 17.5 2 12.04 2Zm5.8 14.16c-.24.68-1.42 1.31-1.95 1.36-.5.05-1.13.07-1.83-.11-.42-.13-.96-.31-1.66-.61-2.92-1.26-4.82-4.2-4.97-4.39-.14-.19-1.18-1.57-1.18-2.99 0-1.42.74-2.12 1.01-2.41.27-.29.58-.36.78-.36.19 0 .39 0 .56.01.18.01.42-.07.66.5.24.59.83 2.03.9 2.18.07.14.12.31.02.5-.09.19-.14.31-.28.48-.14.16-.29.36-.42.49-.14.14-.28.29-.12.57.16.28.71 1.17 1.53 1.9 1.05.94 1.94 1.23 2.22 1.37.28.14.44.12.6-.07.16-.19.69-.81.87-1.08.18-.28.36-.23.61-.14.25.09 1.58.75 1.85.88.27.14.45.21.52.32.07.12.07.66-.17 1.34Z'/%3E%3C/svg%3E")}
.pth-ic-arrow{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}

/* ---- Top credential / contact strip ---- */
.pth-strip{background:var(--navy-deep);color:#dbe4f0;font-size:13px;line-height:1}
.pth-strip-inner{display:flex;align-items:center;justify-content:space-between;height:40px;gap:16px}
.pth-strip-creds{display:flex;align-items:center;gap:14px;color:#cdd9ea;min-width:0}
.pth-cred{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;letter-spacing:.1px}
.pth-cred .pth-ic{color:var(--amber-light);font-size:15px}
.pth-cred-sep{width:4px;height:4px;border-radius:50%;background:#3f567c;flex:0 0 auto}
.pth-strip-contact{display:flex;align-items:center;gap:18px}
.pth-strip-loc,.pth-strip-link{display:inline-flex;align-items:center;gap:7px;color:#dbe4f0;transition:color .18s ease;white-space:nowrap}
.pth-strip-loc .pth-ic,.pth-strip-link .pth-ic{color:var(--amber-light);font-size:15px}
.pth-strip-link:hover{color:#fff}
.pth-strip-wa{display:inline-flex;align-items:center;gap:6px;background:var(--green);color:#fff;padding:5px 12px;border-radius:999px;font-weight:600;transition:transform .18s ease,box-shadow .18s ease}
.pth-strip-wa .pth-ic{font-size:15px;color:#fff}
.pth-strip-wa:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,211,102,.35)}

/* ---- Sticky main bar ---- */
.pth-bar{background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(170%) blur(12px);backdrop-filter:saturate(170%) blur(12px);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(30,58,95,.04);transition:box-shadow .25s ease}
.pth-bar-inner{display:flex;align-items:center;gap:22px;height:74px}

/* ---- Logo lockup ---- */
.pth-logo{display:flex;align-items:center;gap:13px;margin-right:auto;flex:0 0 auto;min-width:0}
.pth-logo-ring{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;border:2px solid var(--amber);box-shadow:0 0 0 4px rgba(245,158,11,.13),0 2px 10px rgba(245,158,11,.22);flex:none;transition:transform .25s ease,box-shadow .25s ease}
.pth-logo:hover .pth-logo-ring{transform:translateY(-1px) rotate(-2deg);box-shadow:0 0 0 5px rgba(245,158,11,.2),0 6px 16px rgba(245,158,11,.32)}
.pth-logo-img{width:48px;height:48px;border-radius:50%;object-fit:cover;display:block;background:var(--bg-alt)}
.pth-logo-text{display:flex;flex-direction:column;line-height:1.12;min-width:0}
.pth-logo-name{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:21px;color:var(--navy);letter-spacing:.1px;white-space:nowrap}
.pth-logo-mark{color:var(--blue-dark);font-weight:600}
.pth-logo-role{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.5px;text-transform:uppercase;margin-top:3px;white-space:nowrap}

/* ---- Desktop nav ---- */
.pth-nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.pth-nav-link{position:relative;padding:9px 13px;font-size:14.5px;font-weight:500;color:var(--body);border-radius:10px;transition:color .18s ease,background .18s ease}
.pth-nav-link::after{content:"";position:absolute;left:13px;right:13px;bottom:5px;height:2px;background:var(--amber);border-radius:2px;transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.pth-nav-link:hover{color:var(--navy);background:var(--bg-alt)}
.pth-nav-link:hover::after{transform:scaleX(1)}

/* ---- Buttons ---- */
.pth-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.pth-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14.5px;font-weight:600;border-radius:12px;padding:11px 18px;line-height:1;cursor:pointer;white-space:nowrap;border:1.5px solid transparent;transition:transform .18s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.pth-btn-ghost{color:var(--navy);border-color:var(--line);background:#fff}
.pth-btn-ghost:hover{border-color:var(--blue);color:var(--blue-dark);background:var(--bg-alt);transform:translateY(-1px)}
.pth-btn-cta{color:var(--navy-deep);background:var(--amber);box-shadow:0 4px 14px rgba(245,158,11,.30)}
.pth-btn-cta .pth-ic{transition:transform .18s ease}
.pth-btn-cta:hover{background:var(--amber-light);transform:translateY(-2px);box-shadow:0 8px 22px rgba(245,158,11,.42)}
.pth-btn-cta:hover .pth-ic{transform:translateX(3px)}
.pth-btn-cta:active{transform:translateY(0)}
.pth-btn-block{width:100%;padding:13px 18px;font-size:15px}

/* ---- Hamburger (hidden on desktop) ---- */
.pth-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border:1.5px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;padding:0 11px;transition:border-color .18s ease,background .18s ease}
.pth-burger:hover{border-color:var(--blue);background:var(--bg-alt)}
.pth-burger-bar{display:block;height:2.5px;width:100%;background:var(--navy);border-radius:2px;transition:transform .28s ease,opacity .22s ease}

/* ---- Drawer + scrim ---- */
.pth-scrim{position:fixed;inset:0;background:rgba(21,41,74,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;z-index:1099}
.pth-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(86vw,340px);background:#fff;box-shadow:-12px 0 40px rgba(21,41,74,.18);transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:1100;display:flex;flex-direction:column;padding:84px 22px calc(26px + env(safe-area-inset-bottom));overflow-y:auto}
.pth-drawer-nav{display:flex;flex-direction:column}
.pth-drawer-link{padding:13px 12px;font-size:16px;font-weight:500;color:var(--ink);border-radius:12px;border-bottom:1px solid var(--line);transition:background .15s ease,color .15s ease,padding-left .15s ease}
.pth-drawer-link:last-child{border-bottom:none}
.pth-drawer-link:hover{background:var(--bg-alt);color:var(--blue-dark);padding-left:18px}
.pth-drawer-cta{display:flex;flex-direction:column;gap:11px;margin-top:20px}
.pth-drawer-contact{margin-top:auto;padding-top:22px;display:flex;flex-direction:column;gap:12px;font-size:14.5px;font-weight:500}
.pth-drawer-contact a{display:inline-flex;align-items:center;gap:8px;color:var(--body)}
.pth-drawer-contact .pth-ic{color:var(--blue);font-size:17px}
.pth-drawer-wa{color:var(--green)!important}
.pth-drawer-wa .pth-ic{color:var(--green)!important}

/* ---- Open state ---- */
.pth-header.pth-open .pth-scrim{opacity:1;visibility:visible}
.pth-header.pth-open .pth-drawer{transform:translateX(0)}
.pth-header.pth-open .pth-burger-bar:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.pth-header.pth-open .pth-burger-bar:nth-child(2){opacity:0}
.pth-header.pth-open .pth-burger-bar:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ================= RESPONSIVE ================= */
@media (max-width:1080px){
  .pth-nav-link{padding:9px 10px;font-size:14px}
  .pth-nav-link::after{left:10px;right:10px}
  .pth-logo-mark{display:none}
}
@media (max-width:960px){
  .pth-nav{display:none}
  .pth-burger{display:flex}
  .pth-btn-ghost{display:none}
}
@media (max-width:680px){
  .pth-strip-inner{height:auto;padding-top:8px;padding-bottom:8px}
  .pth-strip-creds .pth-cred:nth-child(n+3),.pth-cred-sep{display:none}
  .pth-strip-loc{display:none}
  .pth-bar-inner{height:64px;gap:12px}
  .pth-logo-ring{width:46px;height:46px}
  .pth-logo-img{width:42px;height:42px}
  .pth-logo-name{font-size:18px}
  .pth-logo-role{font-size:10.5px}
  .pth-btn-cta{padding:10px 14px;font-size:14px}
}
@media (max-width:430px){
  .pth-strip-creds{display:none}
  .pth-strip-inner{justify-content:flex-end}
  .pth-logo-role{display:none}
  .pth-btn-cta .pth-ic-arrow{display:none}
}
@media (prefers-reduced-motion:reduce){
  .pth-header *{transition:none!important}
}
/* ============ /PT-HEADER-V2 ============ */


/* ================= PT-THEME (premium theme layer, 2026-06) ================= */
/* --- refined tokens --- */
:root{
  /* ============================================================
     PREMIUM THEME LAYER — refinement tokens only.
     Brand hues (navy #1e3a5f / blue #3b82f6 / amber #f59e0b) untouched.
     ============================================================ */

  /* Warmer, paper-like neutrals + institutional gold tints */
  --ink: #182338;          /* deeper, calmer headline ink */
  --body: #3a4456;         /* warmer reading grey */
  --muted: #6b7587;        /* hairline-companion muted */
  --line: #e4e9f1;         /* softer hairline */
  --line-strong: #d4ddea;  /* divider hairline for rules/borders */
  --bg-alt: #f6f8fb;       /* quieter alt band */
  --paper: #fcfdff;        /* faint warm paper for raised cards */
  --gold-tint: #fbf6ea;    /* credential-chip wash */
  --gold-line: #ecd9ad;    /* underline / chip border */
  --gold-ink: #92580a;     /* readable gold-ink for chips */

  /* Tighter, more architectural radii (was 16px) */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  /* Layered, navy-tinted editorial depth */
  --shadow-sm: 0 1px 2px rgba(24,35,56,.05), 0 6px 16px -12px rgba(24,35,56,.28);
  --shadow: 0 2px 6px rgba(24,35,56,.06), 0 18px 42px -22px rgba(30,58,95,.42);
  --shadow-lg: 0 4px 10px rgba(24,35,56,.07), 0 36px 70px -30px rgba(21,41,74,.55);
  --ring-blue: 0 0 0 3px rgba(59,130,246,.30);
  --ring-gold: 0 0 0 3px rgba(245,158,11,.32);

  /* Fluid editorial type scale */
  --fs-h1: clamp(2.3rem, 1.5rem + 3.1vw, 3.55rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  --fs-h3: clamp(1.14rem, 1.02rem + .45vw, 1.3rem);
  --fs-lead: clamp(1.06rem, 1rem + .32vw, 1.18rem);

  /* Heading & body rhythm */
  --lh-display: 1.15;
  --lh-body: 1.7;
  --ls-display: -0.014em;
  --ls-eyebrow: .14em;

  /* Section vertical rhythm (generous, fluid; was a flat 4.5rem) */
  --section-y: clamp(4rem, 3rem + 4vw, 6.25rem);
  --section-y-sm: 3.25rem;
}
/* --- polish --- */
/* ============================================================================
   PREMIUM THEME LAYER  ·  "trust-academic" (editorial merge)
   Navy authority + sparing gold accents, editorial Playfair, generous
   whitespace, hairline rules, paper-like depth. Appended LAST — refines
   GLOBAL elements only via natural cascade (no !important).
   PROTECTED & UNTOUCHED: .pth-* header, .blog/.bc-, .post-, .dd-,
   .dailystrip-, .learnstrip-.  Content-link rule is scoped to prose and
   guarded against every protected namespace + nav/chrome.
   ========================================================================== */

/* ---- Base typography: editorial reading rhythm ---- */
body{
  line-height: var(--lh-body);
  letter-spacing: .002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Confident Playfair across the heading hierarchy (base set it on h1 only) */
h1, h2, h3{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
h1{ font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2{ font-size: var(--fs-h2); font-weight: 700; }
h3{ font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.008em; line-height: 1.3; }

/* Better wrapping for prose */
.section p, .about-text p, .contact-card p, .demo-card p, .card p{ text-wrap: pretty; }

/* Eyebrow / kicker: small-caps institutional gravitas (keeps brand colours) */
.eyebrow{ font-size: .76rem; letter-spacing: var(--ls-eyebrow); font-weight: 700; }

/* ---- Container: a touch more side air on large screens ---- */
@media (min-width: 768px){ .container{ padding-left: 30px; padding-right: 30px; } }

/* ---- Section vertical rhythm + centered head + sparing gold rule ---- */
.section{ padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head{ position: relative; margin-bottom: clamp(2.3rem, 1.8rem + 1.4vw, 3.2rem); }
.section-head p{ font-size: var(--fs-lead); line-height: 1.6; max-width: 60ch; margin-left: auto; margin-right: auto; }
.section-head::after{
  content: ""; display: block; width: 60px; height: 3px; margin: 1.1rem auto 0;
  border-radius: 999px; opacity: .92;
  background: linear-gradient(90deg, var(--navy), var(--amber) 88%);
}
.section-dark .section-head::after{
  background: linear-gradient(90deg, var(--amber-light), var(--amber));
}

/* A single restrained hairline only where two LIGHT sections stack.
   Alt / dark bands carry their own edge, so suppress the rule there. */
.section + .section{ border-top: 1px solid var(--line); }
.section-alt + .section, .section + .section-alt,
.section-dark + .section, .section + .section-dark,
.section-alt + .section-alt{ border-top: 0; }

/* ---- Buttons: refined padding, calmer brand shadow, crisp lift, focus ring ---- */
.btn{
  font-weight: 600; letter-spacing: .005em; padding: .76rem 1.4rem;
  transition: transform .2s cubic-bezier(.32,.72,0,1), box-shadow .2s ease,
              background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg{ padding: 1rem 1.85rem; font-size: 1.04rem; }
.btn:focus-visible{ outline: none; box-shadow: var(--ring-blue); }

.btn-primary{
  background: var(--blue);
  box-shadow: 0 1px 2px rgba(30,58,95,.16), 0 12px 26px -12px rgba(37,99,235,.58);
}
.btn-primary:hover{
  background: var(--blue-dark); transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(30,58,95,.18), 0 18px 34px -12px rgba(37,99,235,.7);
}
.btn-primary:active{ transform: translateY(0); }
.btn-primary:focus-visible{ box-shadow: var(--ring-gold); }   /* sparing gold cue */

/* Outline (dark hero) — crisper hairline + lift */
.btn-outline{ border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-outline:hover{ background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }

/* Ghost (light surfaces) — refined hairline + hover */
.btn-ghost{ border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover{ background: var(--bg-alt); border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---- Content links (prose only): refined accessible underline.
   Scoped to prose contexts and guarded against chrome + every protected block. ---- */
.section a:not(.btn):not(.card-link):not(.nav-link):not(.eyebrow):not([class*="pth-"]):not([class*="blog"]):not([class*="bc-"]):not([class*="post"]):not([class*="dd-"]):not([class*="dailystrip"]):not([class*="learnstrip"]),
.about-text a:not(.btn),
.contact-card a:not(.btn),
.demo-card a:not(.btn){
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .18em;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.section a:not(.btn):not(.card-link):not(.nav-link):not(.eyebrow):not([class*="pth-"]):not([class*="blog"]):not([class*="bc-"]):not([class*="post"]):not([class*="dd-"]):not([class*="dailystrip"]):not([class*="learnstrip"]):hover,
.about-text a:not(.btn):hover,
.contact-card a:not(.btn):hover,
.demo-card a:not(.btn):hover{
  color: var(--navy);
  text-decoration-color: var(--amber);
}
.card-link{ font-weight: 600; letter-spacing: .004em; }

/* ---- Generic cards: warm paper, layered depth, restrained hover ---- */
.card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3{ color: var(--ink); }

/* Generic homepage cards (benefit / step / testimonial / book) — shared premium polish */
.benefit, .step, .testimonial, .book{
  border-radius: var(--radius-lg); border-color: var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease, border-color .22s ease;
}
.benefit{ position: relative; overflow: hidden; }
/* sparing gold: a benefit reveals a navy→gold edge on hover */
.benefit::before{
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--navy), var(--amber));
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.benefit:hover, .step:hover, .book:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.benefit:hover::before{ transform: scaleY(1); }
.testimonial:hover{ box-shadow: var(--shadow); }
.testimonial blockquote{ line-height: 1.7; }

/* Credential chips: warm gold-tinted institutional pills (sparing) */
.cred-chips li{
  background: var(--gold-tint); border-color: var(--gold-line); color: var(--gold-ink); font-weight: 600;
}

/* ---- Hero: editorial gravity + gold-separated credibility stats ---- */
.hero-inner{ padding: clamp(5rem, 4rem + 4vw, 7rem) 0 clamp(4.5rem, 3.75rem + 3vw, 6rem); }
.hero h1{ letter-spacing: -0.024em; margin-bottom: .75rem; }
.hero-sub{ font-size: var(--fs-lead); line-height: 1.62; color: #e6edf6; max-width: 560px; }
.hero-stats{ gap: 0; }
.hero-stats .stat{ position: relative; padding: 0 clamp(1.1rem, .6rem + 1.2vw, 1.9rem); }
.hero-stats .stat:first-child{ padding-left: 0; }
/* sparing gold: a thin amber hairline between stats */
.hero-stats .stat + .stat::before{
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245,158,11,.5), transparent);
}
.stat-value{ letter-spacing: -0.01em; }

/* ---- Forms: calmer fields + branded focus ring ---- */
.form input, .form select, .form textarea{ border-radius: var(--radius-sm); border-color: var(--line-strong); }
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: var(--blue); box-shadow: var(--ring-blue); outline: none;
}

/* ---- Footer: quieter institutional close with one gold cue ---- */
.footer{ padding-top: clamp(3rem, 2.5rem + 1.5vw, 4rem); }
.footer-brand{ position: relative; display: inline-block; letter-spacing: .005em; padding-bottom: .35rem; }
.footer-brand::after{
  content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px;
  border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--amber-light));
}
.footer p{ line-height: 1.65; }
.footer-contact a{ transition: color .16s ease; }
.footer-bar{ border-top-color: rgba(255,255,255,.1); letter-spacing: .01em; }

/* ---- Reduced motion: neutralise every transition this layer adds ---- */
@media (prefers-reduced-motion: reduce){
  .btn, .btn-primary, .btn-outline, .btn-ghost,
  .card, .benefit, .benefit::before, .step, .book, .testimonial, .footer-contact a{ transition: none; }
  .btn-primary:hover, .btn-outline:hover, .btn-ghost:hover,
  .card:hover, .benefit:hover, .step:hover, .book:hover{ transform: none; }
}

/* ---- Small-screen rhythm tuning ---- */
@media (max-width: 760px){
  :root{ --section-y: var(--section-y-sm); }
  .hero-stats .stat{ padding: 0; }
  .hero-stats .stat + .stat::before{ display: none; }
}
/* --- quick wins (a11y/forms/print) --- */
/* ============================================================
   QUICK-WIN GLOBAL POLISH — APPENDED LAST (additive, safe)
   Reuses :root brand tokens only. Never redefines brand colors.
   Scoped to AVOID overriding .pth- / .blog- / .post- / .dd- /
   .qz- / .tfilter / .form components that ship their own states.
   ============================================================ */

/* 1. Accessible focus ring (keyboard only via :focus-visible, so
      mouse clicks stay clean). Components that already define their
      own :focus-visible (.pth-*, .qz-*, .tfilter) are explicitly
      excluded so this never double-rings them. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Form fields already focus on border+shadow; add a visible ring for
   keyboard users without touching the existing .form rule. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* 2. Consistent link hover for in-content prose links only.
      Restricted to .post-body / .blog body copy and section text so
      it can't repaint nav, cards, buttons, or namespaced components.
      Uses brand --blue-dark; underline appears on hover only. */
.post-body p a,
.post-body li a,
.section p a:not(.btn):not([class*="cta"]) {
  color: var(--blue-dark);
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-underline-offset: 2px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.post-body p a:hover,
.post-body li a:hover,
.section p a:not(.btn):not([class*="cta"]):hover {
  text-decoration-color: currentColor;
}

/* 3. Smooth-scroll anchoring — html{scroll-behavior:smooth} already
      exists, but sticky .nav / .pth-header hide anchor tops. Give all
      id targets room so they land below the sticky header. */
:where([id]) {
  scroll-margin-top: 90px;
}

/* 4. Image safety — base rule sets max-width:100% but no height:auto,
      so any width/height attrs can distort. Lock aspect ratio. */
img {
  height: auto;
}

/* 5. Refined form fields — additive only. Tidy placeholder colour,
      brand caret/accent for checkboxes & radios, comfortable tap
      targets. Does not alter the existing .form focus behaviour. */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input,
select,
textarea {
  accent-color: var(--blue);
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
}

/* 6. Section dividers — opt-in only via a utility class so nothing
      existing changes. Use <hr> or class="rule" where wanted. */
hr,
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

/* 7. Text selection — on-brand highlight instead of OS default. */
::selection {
  background: rgba(59, 130, 246, .22);  /* --blue @ 22% */
  color: var(--ink);
}

/* 8. Print-friendliness — readable, ink-saving output. Hides sticky
      chrome and interactive promos; lets content flow on white. */
@media print {
  .nav,
  .pth-header,
  .pth-strip,
  .pth-drawer,
  .pth-scrim,
  .live-banner,
  .nav-toggle,
  .pth-burger,
  .post-cta,
  .post-cta-btns,
  [class*="strip"]:not(.pth-strip-loc) {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .section,
  .hero-inner {
    padding: 1rem 0 !important;
  }
  .card,
  .post-body,
  .blog-card {
    box-shadow: none !important;
    border-color: #ccc !important;
    break-inside: avoid;
  }
  h1, h2, h3 {
    break-after: avoid;
  }
}

/* 9. Reduced-motion — global safety net. Component blocks already
      exist for .pth-header / .qz; this catches everything else
      (smooth-scroll, transitions, transforms, the pulse keyframe). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ================== /QUICK-WIN GLOBAL POLISH ================== */
/* ================= /PT-THEME ================= */


/* ================= PT-FIX (audit gap fixes, 2026-06) ================= */
/* Books: cover images are missing -> typographic covers (no broken images) */
.books-grid .book-cover{
  aspect-ratio: 3 / 4; height: auto; min-height: 0;
  background: var(--cv, var(--navy));
  background-image: linear-gradient(155deg, rgba(255,255,255,.10), rgba(0,0,0,.30));
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: 1.5rem 1.25rem; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.books-grid .book-cover::before{ content:""; position:absolute; top:0; bottom:0; left:12px; width:3px; background:rgba(255,255,255,.22); }
.book-cover-kicker{ font-size:.64rem; letter-spacing:.16em; text-transform:uppercase; opacity:.85; font-weight:700; }
.book-cover-title{ font-family:'Playfair Display',Georgia,serif; font-size:1.22rem; line-height:1.18; font-weight:700; }
.book-cover-foot{ font-size:.72rem; opacity:.82; }
/* Eyebrow contrast: amber-on-light fails WCAG AA -> readable gold-ink */
.eyebrow-dark{ color: var(--gold-ink, #92580a); }
/* ================= /PT-FIX ================= */
