/* ==========================================================================
   certtop Ã¢â‚¬â€ design system
   Emerald / amber certification palette. Light-only. CSS-only motion.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fafaf7;
  --bg-alt: #f3f5f1;
  --bg-elevated: #ffffff;
  --bg-inset: #f7f8f5;

  --text: #171717;
  --text-muted: #000000;
  --text-subtle: #737373;

  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  --primary: #16a34a;
  --primary-hover: #166534;
  --primary-dark: #14532d;
  --primary-strong: #15803d;
  --primary-ink: #15803d;
  --on-primary: #ffffff;
  --primary-soft: #ecfdf3;
  --primary-ring: rgba(22, 163, 74, 0.28);

  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-ink: #b45309;
  --accent-soft: #fef3c7;
  --orange: #f97316;
  --orange-soft: #ffedd5;

  --success: #15803d;
  --success-soft: #ecfdf3;
  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.05);
  --shadow-md: 0 6px 20px rgba(23, 23, 23, 0.07);
  --shadow-lg: 0 24px 60px rgba(23, 23, 23, 0.12);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --maxw: 1160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.2s;
  --dur-2: 0.38s;
  --dur-3: 0.85s;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0c0f0d;
  --bg-alt: #141a16;
  --bg-elevated: #161c18;
  --bg-inset: #10150f;

  --text: #ecf2ed;
  --text-muted: #9aa79e;
  --text-subtle: #7d8a83;

  --border: #26302a;
  --border-strong: #35413a;

  --primary: #34d399;
  --primary-hover: #6ee7b7;
  --primary-dark: #059669;
  --primary-strong: #34d399;
  --primary-ink: #34d399;
  --on-primary: #08130d;
  --primary-soft: #12291e;
  --primary-ring: rgba(52, 211, 153, 0.3);

  --accent: #fbbf24;
  --accent-hover: #fcd34d;
  --accent-ink: #fbbf24;
  --accent-soft: #2a2110;
  --orange: #fb923c;
  --orange-soft: #2a1a0e;

  --success: #34d399;
  --success-soft: #10291f;
  --danger: #f87171;
  --danger-soft: #2a1414;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary-strong); color: var(--on-primary);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Icons ---------- */
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; display: inline-block; vertical-align: -0.22em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.6em; height: 1.6em; }
.icon-xl { width: 1.9em; height: 1.9em; }

/* ---------- Motion primitives ----------
   Scoped to .js so content stays visible if JavaScript never runs. */
.js .reveal,
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
/* Horizontal travel is capped at 18px so it stays inside the container's 20px
   padding; anything larger pushes these full-width grid children past the
   viewport edge. The vertical component keeps the entrance noticeable. */
.js .reveal-left { transform: translate(-18px, 24px); }
.js .reveal-right { transform: translate(18px, 24px); }
.js .reveal-scale { transform: scale(0.88); }
.js .reveal.is-visible,
.js [data-reveal-group] > *.is-visible { opacity: 1; transform: none; }

.js [data-reveal-group] > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-group] > *:nth-child(2) { transition-delay: 90ms; }
.js [data-reveal-group] > *:nth-child(3) { transition-delay: 180ms; }
.js [data-reveal-group] > *:nth-child(4) { transition-delay: 270ms; }
.js [data-reveal-group] > *:nth-child(5) { transition-delay: 360ms; }
.js [data-reveal-group] > *:nth-child(6) { transition-delay: 450ms; }
.js [data-reveal-group] > *:nth-child(7) { transition-delay: 540ms; }
.js [data-reveal-group] > *:nth-child(n + 8) { transition-delay: 630ms; }

@keyframes tk-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1.2deg); }
}
@keyframes tk-pop {
  0% { transform: scale(0.5) rotate(-8deg); opacity: 0; }
  55% { transform: scale(1.18) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes tk-toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes tk-sheen {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(260%) skewX(-18deg); }
}
@keyframes tk-mesh {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4%, -3%, 0) scale(1.12); }
  66% { transform: translate3d(-3%, 3%, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes tk-shimmer {
  from { background-position: -220% 0; }
  to { background-position: 220% 0; }
}
@keyframes tk-blink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.14); opacity: 0.72; }
}

.float { animation: tk-float 6s var(--ease) infinite; }
.float-slow { animation: tk-float 8.5s var(--ease) infinite; }
.float-delay { animation-delay: -2.5s; }
.float-fast { animation: tk-float 4.6s var(--ease) infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 700; font-family: inherit; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; background: var(--primary-strong); }
.btn-ghost:disabled:hover, .btn-ghost[disabled]:hover { background: transparent; }
/* overflow:hidden clips the sheen, but it also zeroes the automatic minimum size,
   so the button would shrink below its label in a flex row. Restore that floor. */
.btn-primary { position: relative; overflow: hidden; min-width: fit-content; background: var(--primary-strong); color: var(--on-primary); box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 8px 22px rgba(22, 163, 74, 0.32); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.btn-primary:hover::after { animation: tk-sheen 0.85s var(--ease); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary-ink); }
.btn-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 16%, var(--accent-soft)); border-color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }
.btn .icon { transition: transform var(--dur-1) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand-footer .brand-logo { height: 76px; }
.footer-col a.brand::after { content: none; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 20px; }
.nav-links > a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.nav-links > a:hover { color: var(--primary-ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Certifications dropdown ---------- */
.nav-dropdown { position: static; }
.nav-dropdown-toggle {
  background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--text-muted);
  font-weight: 600; font-size: 0.95rem; padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle:hover { color: var(--primary-ink); }
.nav-dropdown-toggle .caret { font-size: 0.7rem; line-height: 1; transition: transform var(--dur-2) var(--ease); }
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown.is-open .nav-dropdown-toggle .caret { transform: rotate(180deg); }

@keyframes navMenuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.985); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navVendorIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu {
  position: absolute; top: calc(100% - 4px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 0;
  width: 760px; max-width: calc(100vw - 32px); display: none; z-index: 130;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; animation: navMenuIn var(--dur-2) var(--ease) both; }
.nav-dropdown.is-closed .nav-dropdown-menu { display: none; }
/* Invisible bridge spanning the gap between the toggle and the panel so the
   pointer can travel down into the menu without leaving the dropdown. */
.nav-dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}

/* Two-panel layout: categories on the left, that category's vendors on the right. */
.nav-dropdown-body { display: grid; grid-template-columns: 232px 1fr; }
.nav-dropdown-cats {
  display: flex; flex-direction: column; gap: 2px; padding: 12px;
  background: var(--bg-alt); border-right: 1px solid var(--border);
  border-top-left-radius: calc(var(--radius-lg) - 1px);
}
.nav-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.86rem; color: var(--text-muted);
  padding: 10px 12px; border-radius: 10px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.nav-cat:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); transform: translateX(2px); }
.nav-cat.is-active { color: var(--primary-ink); background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.nav-cat-n {
  font-size: 0.7rem; font-weight: 700; color: var(--text-subtle);
  background: color-mix(in srgb, currentColor 14%, transparent);
  padding: 1px 7px; border-radius: 999px;
}
.nav-cat.is-active .nav-cat-n { color: var(--primary-ink); }

.nav-dropdown-panels { padding: 14px 16px; min-height: 340px; max-height: calc(100vh - 150px); overflow-y: auto; }
.nav-panel { display: none; }
.nav-panel.is-active { display: block; animation: navPanelIn var(--dur-1) var(--ease) both; }
.nav-panel.is-active .nav-vendor { animation: navVendorIn 0.36s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.028s); }
.nav-panel-desc { font-size: 0.8rem; color: var(--text-subtle); margin: 0 0 10px; }
.nav-vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }

.nav-vendor {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border-radius: 12px; color: var(--text); border: 1px solid transparent;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease), translate var(--dur-1) var(--ease);
}
.nav-vendor:hover {
  background: color-mix(in srgb, var(--v) 10%, transparent);
  border-color: color-mix(in srgb, var(--v) 38%, transparent);
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--v) 55%, transparent);
  translate: 0 -2px; text-decoration: none;
}
.nav-vendor-icon {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid rgba(16, 24, 40, 0.1);
  transition: border-color var(--dur-1) var(--ease), scale var(--dur-2) var(--ease);
}
.nav-vendor-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-vendor-text { display: flex; flex-direction: column; min-width: 0; }
.nav-vendor-name {
  font-weight: 700; font-size: 0.88rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nav-vendor-count { font-size: 0.74rem; color: var(--text-muted); }
.nav-vendor:hover .nav-vendor-name { color: var(--v); }
.nav-vendor:hover .nav-vendor-icon { border-color: color-mix(in srgb, var(--v) 45%, transparent); scale: 1.08; }

.nav-dropdown-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border); padding: 10px 14px;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}
.nav-dropdown-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
}
.nav-dropdown-search:hover { background: var(--bg-alt); color: var(--primary-ink); text-decoration: none; }
.nav-dropdown-all {
  font-size: 0.82rem; font-weight: 700; color: var(--primary-ink); white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transition: background var(--dur-1) var(--ease);
}
.nav-dropdown-all:hover { background: color-mix(in srgb, var(--primary) 18%, transparent); text-decoration: none; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--text); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-direction: column; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 72px 0 64px; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -20%, var(--primary-soft), transparent 68%),
    radial-gradient(700px 380px at 92% 4%, var(--accent-soft), transparent 66%);
}
/* Slow-drifting colour mesh behind the hero. Two blurred blobs on their own
   compositing layer so the movement costs nothing on the main thread. */
.hero::before {
  content: ""; position: absolute; inset: -30% -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--primary) 34%, transparent), transparent 72%) 18% 30% / 46% 58% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%) 82% 22% / 42% 54% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--primary) 20%, transparent), transparent 72%) 62% 88% / 40% 50% no-repeat;
  filter: blur(52px);
  opacity: 0.5;
  animation: tk-mesh 22s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: 800;
  color: var(--primary-ink); background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary-ink); }
.hero-lead { font-size: 1.12rem; color: var(--text-muted); max-width: 54ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-search { display: flex; gap: 10px; margin: 0 0 22px; max-width: 540px; }
.hero-search input {
  flex: 1; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-elevated); color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.hero-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.hero-stats { display: flex; gap: 34px; margin-top: 6px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 0.84rem; }

/* ---------- Hero: vendor trust strip ---------- */
.hero-vendors { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-vendors-label {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-vendors-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero-vendors-list li {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.hero-vendors-list img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Hero: animated film ----------
   The home hero is the looping product film. It is a fixed 16:9 composition, so it
   only renders at >=820px; below that the accessible copy column takes over. The film
   is decorative (aria-hidden) - the real h1 lives in .hero-film-copy. */
.hero-film { padding: 72px 0 64px; }
.hero-film-stage { display: none; }
.hero-film-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hero-film-copy { display: block; }
@media (min-width: 820px) {
  .hero-film { padding: 0; }
  .hero-film-stage { display: block; position: relative; z-index: 1; }
  .hero-film-copy { display: none; }
}

/* Hero Ã¢â‚¬â€ animated exam interface */
.hero-visual { position: relative; }
.exam-ui-title { font-size: 0.82rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.exam-ui-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }
/* legacy exam-ui mock rules removed (section 5 now uses the ported .tk-sheet-section answer-sheet mock) */

.float-card {
  position: absolute; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 15px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; z-index: 2;
}
.float-card .fc-value { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.float-card .fc-label { font-size: 0.72rem; color: var(--text-muted); }
.float-score { top: -22px; left: -20px; }
.float-score .ring { width: 44px; height: 44px; }
.float-badge { bottom: -22px; right: -18px; }

.ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .ring-track { stroke: var(--bg-alt); }
.ring .ring-value { stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s var(--ease); }
.ring.is-visible .ring-value, .ring.is-on .ring-value { stroke-dashoffset: calc(100 - var(--pct, 0)); }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Search section: decorative backdrop ----------
   Gradient wash with two large half-circles cut off by the edges, each carrying
   a small ball that orbits the ring. */
.section-search {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 8% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(1000px 520px at 100% 110%, var(--accent-soft), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.section-search > .container { position: relative; z-index: 1; }
.deco-ring { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.deco-ring-a {
  width: 460px; height: 460px; left: -230px; bottom: -230px;
  border: 1.5px solid rgba(255, 255, 255, 0.60);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 68%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.10);
  animation: tk-orbit 20s linear infinite;
}
.deco-ring-b {
  width: 620px; height: 620px; right: -310px; top: -300px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 68%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
  animation: tk-orbit 32s linear infinite;
}
.deco-badge {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.deco-badge svg { width: 15px; height: 15px; }
/* One green award badge per ring, sitting in the visible side gutter. */
.deco-ring-a .deco-badge { top: 0.7%; left: 58.7%; }
.deco-ring-b .deco-badge { top: 98.2%; left: 37.1%; }
@keyframes tk-orbit { to { transform: rotate(360deg); } }
html[data-motion="reduced"] .deco-ring { animation: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--text-muted); margin: 8px 0 0; max-width: 62ch; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.link-more .icon { transition: transform var(--dur-1) var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }
.index-heading { font-size: 1.3rem; margin: 0 0 20px; }
.index-heading:not(:first-child) { margin-top: 48px; }
.category-block, .vendor-section { scroll-margin-top: 84px; }

.grid { display: grid; gap: 20px; }
.grid-vendors { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-exams { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-posts { grid-template-columns: 1fr; } }
.grid-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.grid-cats { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* ---------- Cards ---------- */
.vendor-card, .exam-card, .post-card, .step, .plan, .side-card, .dash-card, .auth-card,
.cat-card, .benefit, .testimonial, .panel {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.vendor-card { padding: 22px; display: block; color: var(--text); transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.vendor-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.vendor-card:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vendor-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vendor-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9rem;
  background: var(--primary-soft); color: var(--primary-ink);
}
.vendor-badge-lg { font-size: 1.05rem; padding: 8px 18px; }
.vendor-count { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.vendor-card p { margin: 14px 0 0; color: var(--text-muted); font-size: 0.92rem; }

.exam-card { padding: 20px; display: flex; flex-direction: column; transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.exam-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: var(--shadow-md); }
.exam-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.exam-code {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  background: var(--primary-soft); color: var(--primary-ink); padding: 4px 10px; border-radius: 7px;
}
.exam-code-lg { font-size: 1rem; padding: 6px 14px; }
.tag {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px;
}
.tag-beginner { color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: var(--primary-soft); }
.tag-intermediate { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.tag-advanced { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); background: var(--danger-soft); }
.exam-card h3 { margin: 0 0 4px; font-size: 1.06rem; }
.exam-card h3 a { color: var(--text); }
.exam-card h3 a:hover { color: var(--primary-ink); text-decoration: none; }
.exam-vendor { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 14px; }
.exam-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 16px; padding: 0; }
.exam-meta div { background: var(--bg-inset); border-radius: var(--radius-sm); padding: 8px 10px; }
.exam-meta dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.exam-meta dd { margin: 2px 0 0; font-weight: 800; font-size: 0.95rem; }
.exam-card-actions { display: flex; gap: 10px; }
.exam-card-actions .btn { flex: 1; }

/* ---------- Popular exams: masterâ€“detail with question preview ----------
   A compact list of exams on the left selects the big card on the right; the
   big card morphs from exam info into a real sample question, then a neutral
   "ready to drill" state. Driven by src/js/ui.js (initExamPreview). */
.exam-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.exam-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.exam-pick-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: inherit; color: var(--text); cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.exam-pick-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.exam-pick-row.is-active { border-color: var(--primary); background: var(--primary-soft); }
.exam-pick-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.exam-pick-mark {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
  background: var(--bg-elevated); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.exam-pick-mark img { width: 22px; height: 22px; object-fit: contain; }
.exam-pick-text { min-width: 0; }
.exam-pick-row .exam-code { display: block; background: none; padding: 0; font-size: 0.78rem; }
.exam-pick-title { display: block; font-weight: 700; font-size: 0.88rem; line-height: 1.25; }
.exam-pick-go { margin-left: auto; flex: 0 0 auto; color: var(--text-subtle); transition: transform var(--dur-1) var(--ease); }
.exam-pick-row.is-active .exam-pick-go { color: var(--primary-ink); }
.exam-pick-row:hover .exam-pick-go { transform: translateX(3px); }

.exam-preview-stack { position: relative; min-height: 400px; }
.exam-preview-wrap { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease); }
.exam-preview-wrap.is-active { opacity: 1; pointer-events: auto; }

.exam-card.exam-preview {
  position: relative; height: 100%; min-height: 400px; padding: 24px; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 14%, var(--bg-elevated)), var(--bg-elevated) 55%);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}
.exam-card.exam-preview:hover { transform: none; border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: var(--shadow-sm); }

.exam-face { display: flex; flex-direction: column; min-height: 100%; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.exam-preview.is-preview .exam-face { opacity: 0; transform: scale(1.03); pointer-events: none; }
.exam-face-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.exam-face .exam-mark { width: 60px; height: 60px; border-radius: 17px; margin: 0; box-shadow: var(--shadow-sm); }
.exam-face .exam-mark img { width: 34px; height: 34px; }
.exam-face .exam-code { background: none; padding: 0; color: var(--primary-ink); font-size: 0.82rem; }
.exam-face h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0; }
.exam-face .exam-vendor { font-size: 0.92rem; margin-bottom: 16px; }
.exam-face .exam-meta { max-width: 440px; margin: 0 0 16px; }
.exam-face .exam-card-actions { margin-top: auto; }

.exam-q { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: scale(0.97); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.exam-preview.is-preview .exam-q { opacity: 1; pointer-events: auto; transform: none; }
.exam-q-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.exam-q-topic { color: var(--primary-ink); font-weight: 700; }
.exam-q-body { display: flex; flex-direction: column; flex: 1; transition: opacity 0.3s var(--ease); }
.exam-preview.is-done .exam-q-body { opacity: 0; pointer-events: none; }
.exam-q-text { font-size: 1rem; font-weight: 600; line-height: 1.45; margin: 0 0 14px; color: #000000; }
.exam-q-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.exam-q-opts li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 0.85rem; color: var(--text-muted); opacity: 0; transform: translateX(-8px); }
.exam-preview.is-preview .exam-q-opts li { animation: tk-q-in 0.32s var(--ease) forwards; }
.exam-preview.is-preview .exam-q-opts li:nth-child(1) { animation-delay: 0.05s; }
.exam-preview.is-preview .exam-q-opts li:nth-child(2) { animation-delay: 0.13s; }
.exam-preview.is-preview .exam-q-opts li:nth-child(3) { animation-delay: 0.21s; }
.exam-preview.is-preview .exam-q-opts li:nth-child(4) { animation-delay: 0.29s; }
@keyframes tk-q-in { to { opacity: 1; transform: none; } }
.exam-q-opts .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); flex: 0 0 auto; }
.exam-q-opts li.is-correct { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.exam-q-opts li.is-correct .dot { border-color: var(--primary); background: var(--primary); }
.exam-q-badge { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--primary-ink); opacity: 0; transition: opacity 0.3s var(--ease); }
.exam-preview.is-answered .exam-q-badge { opacity: 1; }

.exam-ready { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.exam-preview.is-done .exam-ready { opacity: 1; pointer-events: auto; }
.exam-ring-wrap { position: relative; width: 104px; height: 104px; margin-bottom: 10px; }
.exam-ring { width: 104px; height: 104px; transform: rotate(-90deg); }
.exam-ring circle { fill: none; stroke-width: 6; }
.exam-ring-bg { stroke: var(--border); }
.exam-ring-fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1s var(--ease); }
.exam-preview.is-done .exam-ring-fg { stroke-dashoffset: 0; }
.exam-ready-seal { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease) 0.5s, transform 0.5s var(--ease-spring) 0.5s; }
.exam-preview.is-done .exam-ready-seal { opacity: 1; transform: scale(1); }
.exam-ready-seal .icon { width: 40px; height: 40px; }
.exam-ready-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.exam-ready-sub { margin: 0; color: var(--text-muted); font-size: 0.86rem; max-width: 34ch; }
.exam-ready-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--primary-ink);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  padding: 4px 12px 4px 5px; border-radius: 999px;
}
.exam-ready-tag img { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-elevated); object-fit: contain; }
.exam-ready-topic { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.exam-ready .btn { margin-top: 14px; }

[data-theme="dark"] .exam-q-text { color: var(--text); }

html[data-motion="reduced"] .exam-preview-wrap,
html[data-motion="reduced"] .exam-face,
html[data-motion="reduced"] .exam-q,
html[data-motion="reduced"] .exam-q-body,
html[data-motion="reduced"] .exam-q-opts li,
html[data-motion="reduced"] .exam-q-badge,
html[data-motion="reduced"] .exam-ready,
html[data-motion="reduced"] .exam-ready-seal,
html[data-motion="reduced"] .exam-ring-fg { transition: none !important; animation: none !important; }
html[data-motion="reduced"] .exam-q-opts li { opacity: 1 !important; transform: none !important; }
html[data-motion="reduced"] .exam-preview.is-done .exam-ready-seal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .exam-split { grid-template-columns: 1fr; }
  .exam-pick { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .exam-pick-row { flex: 0 0 auto; max-width: 280px; }
  .exam-pick-go { display: none; }
  .exam-preview-stack { min-height: 380px; }
  .exam-card.exam-preview { min-height: 380px; }
}
@media (max-width: 560px) {
  .exam-card.exam-preview { padding: 20px; min-height: 520px; }
  .exam-preview-stack { min-height: 520px; }
  .exam-q { padding: 20px; }
  .exam-q-badge { left: 20px; right: 20px; bottom: 20px; }
  .exam-face h3 { font-size: 1.3rem; }
}

.step { padding: 26px; position: relative; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark)); color: var(--on-primary);
  font-weight: 800; margin-bottom: 14px; font-size: 0.9rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.93rem; }
.step-line { display: none; }

.post-card { padding: 22px; display: flex; flex-direction: column; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.post-card h2, .post-card h3 { font-size: 1.1rem; }
.post-card a { color: var(--text); }
.post-card a:hover { color: var(--primary-ink); text-decoration: none; }
.post-card .link-more { margin-top: auto; align-self: flex-start; padding: 9px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.post-card .link-more:hover { background: var(--primary-strong); color: var(--on-primary); border-color: var(--primary-strong); }
.post-date, .post-tags { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; }

/* ---------- Category cards ---------- */
.cat-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  color: var(--text);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}
.cat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); text-decoration: none; }
.cat-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--primary-soft); color: var(--primary-ink);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.cat-card:hover .cat-icon { background: var(--primary); color: #fff; transform: scale(1.06); }
.cat-card h3 { margin: 0; font-size: 1.02rem; }
.cat-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.cat-meta { margin-top: auto; font-size: 0.8rem; font-weight: 700; color: var(--primary-ink); display: flex; align-items: center; gap: 6px; }

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md);
}
.search-panel .search-row { display: flex; gap: 10px; }
.search-panel input {
  flex: 1; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.search-panel input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-chips-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); align-self: center; margin-right: 4px; }

/* ---------- Home search: "Search exams" button color ---------- */
.search-panel .search-row .btn {
  background: #171717; border-color: #171717; color: #ffffff;
}
.search-panel .search-row .btn:hover { background: #000000; border-color: #000000; color: #ffffff; }
.search-panel .search-row .btn .icon { color: #ffffff; }

/* ---------- Search panel: live motion ----------
   The field hint auto-types the category names and the matching chip catches it.
   Scoped to .js (content is fully visible with no JS) and disabled when the user
   has turned animation off (data-motion="reduced"). */
.search-anim-field { flex: 1 1 auto; min-width: 0; display: block; position: relative; }
.search-anim-field input { width: 100%; }
.search-hint { display: none; }
.js .search-hint {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  display: block; pointer-events: none; font-size: 1rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
  transition: opacity var(--dur-1) var(--ease);
}
.search-hint-word { color: var(--primary-ink); font-weight: 700; }
.search-hint::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px;
  vertical-align: -0.15em; background: var(--primary); animation: tk-caret 1s steps(1) infinite;
}
@keyframes tk-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.js .search-anim-field:focus-within .search-hint,
.js .search-anim-field.is-filled .search-hint { opacity: 0; }
.js .search-anim-field input::placeholder { color: transparent; }

.js .search-anim .section-head,
.js .search-anim .search-row {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .search-anim .search-row { transition-delay: 0.08s; }
.js .search-anim .search-anim-chips > * {
  opacity: 0; transform: translateY(12px) scale(0.92);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
  transition-delay: calc(var(--rail, 0ms) + var(--i, 0) * 55ms);
}
.js .search-anim .search-anim-chips[data-rail="1"] { --rail: 220ms; }
.js .search-anim .search-anim-chips[data-rail="2"] { --rail: 330ms; }
.js .search-anim.is-on .section-head,
.js .search-anim.is-on .search-row { opacity: 1; transform: none; }
.js .search-anim.is-on .search-anim-chips > * { opacity: 1; transform: none; }

.js .search-anim-field::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--primary) 22%, transparent) 50%, transparent 80%);
  transform: translateX(-120%) skewX(-14deg); opacity: 0;
}
.js .search-anim.is-on .search-anim-field::after { animation: tk-sweep 1.05s var(--ease) 0.38s 1; }
@keyframes tk-sweep {
  0% { opacity: 0; transform: translateX(-120%) skewX(-14deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%) skewX(-14deg); }
}

.chip.is-catch { border-color: #15803d; color: #fff; background: #15803d; animation: tk-catch 0.32s var(--ease) 1; }
.chip.is-catch span { color: rgba(255, 255, 255, 0.75); }
.chip.is-catch .icon { color: #ffffff; opacity: 1; }
@keyframes tk-catch { from { background: var(--bg-elevated); color: var(--text); } }

html[data-motion="reduced"] .search-anim .section-head,
html[data-motion="reduced"] .search-anim .search-row,
html[data-motion="reduced"] .search-anim .search-anim-chips > * {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
html[data-motion="reduced"] .search-anim-field::after { animation: none !important; }
html[data-motion="reduced"] .search-hint::after { animation: none; }
html[data-motion="reduced"] .search-anim-field:focus-within .search-hint,
html[data-motion="reduced"] .search-anim-field.is-filled .search-hint { opacity: 0 !important; }
html[data-motion="reduced"] .chip.is-catch { animation: none; }

/* ---------- Practice preview ---------- */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.preview-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.preview-list li { display: flex; gap: 12px; align-items: flex-start; }
.preview-list .icon { color: var(--primary-ink); margin-top: 3px; }
.preview-list strong { display: block; }
.preview-list span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Benefits ---------- */
.grid-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.benefit { padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.benefit:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.benefit-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink);
}
.benefit h3 { font-size: 1rem; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Readiness / analytics ---------- */
.readiness { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.readiness-card { padding: 26px; }
.readiness-top { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.readiness-score { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.readiness-label { color: var(--text-muted); font-size: 0.86rem; }
.readiness-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.readiness-stat { background: var(--bg-inset); border-radius: var(--radius-sm); padding: 12px 14px; }
.readiness-stat .rs-value { font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.readiness-stat .rs-label { font-size: 0.76rem; color: var(--text-muted); }
.bar-row { margin-bottom: 14px; }
.bar-row-top { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 6px; }
.bar-row-top strong { font-weight: 700; }
.bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0; border-radius: 999px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.3s var(--ease);
}
/* Light sweep that runs twice as the bar fills, then settles. */
.bar-fill::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.6) 50%, transparent 82%);
  background-size: 220% 100%;
}
.bar-fill.is-on::after, .is-visible .bar-fill::after { opacity: 1; animation: tk-shimmer 1.9s var(--ease) 0.3s 2; }
.bar-fill.is-warm { background: linear-gradient(90deg, var(--accent), var(--danger)); }
.bar-fill.is-on { width: var(--w, 0%); }
.is-visible .bar-fill { width: var(--w, 0%); }

/* ---------- Testimonials ---------- */
.grid-testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.testimonial { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.testimonial:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.testimonial-quote { margin: 0; font-size: 0.96rem; color: var(--text); }
.testimonial-quote::before { content: "\201C"; display: block; font-size: 2.2rem; line-height: 0.6; color: var(--primary-ink); opacity: 0.5; margin-bottom: 8px; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark)); color: var(--on-primary);
  font-weight: 800; font-size: 0.9rem; flex: 0 0 auto;
}
img.avatar { display: block; object-fit: cover; background: var(--bg-inset); }
.testimonial-who { display: flex; flex-direction: column; min-width: 0; }
.testimonial-name { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.testimonial-role { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(135deg, #16a34a, #15803d 45%, #14532d);
  color: #fff; border-radius: var(--radius-xl); padding: 44px 46px;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(251, 191, 36, 0.3) 1.4px, transparent 1.4px);
  background-size: 22px 22px; opacity: 0.6; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2, .cta-band p { color: #fff; margin-bottom: 6px; }
.cta-band p { opacity: 1; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: #15803d; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.cta-band .btn-primary:hover { background: #fff; transform: translateY(-2px); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.18); }
.cta-band .btn-ghost:hover { background: rgba(0, 0, 0, 0.32); border-color: #fff; color: #fff; }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { padding: 44px 0 8px; }
.page-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 70ch; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }

/* ---------- Vendor pages ---------- */
.vendor-head { display: flex; gap: 24px; align-items: flex-start; }
.vendor-logo {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 120px; height: 120px; border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 16px;
}
.vendor-logo img { width: 100%; height: auto; object-fit: contain; }
.vendor-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.vendor-head-note { font-size: 0.85rem; color: var(--text-muted); }
.vendor-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
/* Home: "Browse by vendor" (left) + "Frequently asked questions" (right) side by side
   in one section. */
.vendor-faq-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.vendor-faq-split .vf-col { min-width: 0; }
.vendor-faq-split .vendor-index { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.vendor-faq-split .vendor-index .chip-vendor {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius); background: #ffffff;
  border: 1px solid var(--border); transform: none;
}
.vendor-faq-split .vendor-index .chip-vendor .chip-mark { width: 24px; height: 24px; }
.vendor-faq-split .vendor-index .chip-vendor span { margin-left: auto; }
.vendor-faq-split .vendor-index .chip-vendor:hover {
  border-color: var(--primary); transform: none; box-shadow: var(--shadow-sm); color: var(--text);
}
@media (max-width: 620px) {
  .vendor-faq-split .vendor-index { grid-template-columns: 1fr; }
}
/* Home "Browse by vendor": rotating 3x3 vendor grid (one tile swaps out / a new
   vendor swaps in on a timer; driven by initVendorGrid in ui.js). */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mgrid .mcell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; min-height: 104px; border: 1px solid var(--danger); border-radius: var(--radius);
  background: var(--bg-elevated); text-align: center; color: var(--primary-ink);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mgrid .mcell img { width: 44px; height: 44px; object-fit: contain; }
.mgrid .mcell .nm { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.mgrid .mcell .c { font-size: 0.98rem; font-weight: 700; color: var(--text-muted); }
.mgrid .mcell:hover { border-color: #b91c1c; box-shadow: var(--shadow-sm); text-decoration: none; }
.mgrid .mcell.swap { opacity: 0; transform: scale(0.85); }
.mgrid .mcell.hl { background: #15803d; border-color: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.28); }
.mgrid .mcell.hl .nm { color: #ffffff; }
.mgrid .mcell.hl .c { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 520px) { .mgrid { grid-template-columns: repeat(2, 1fr); } }
/* Question (summary) = dark #171717 with white text; answer = white. */
.vendor-faq-split .faq { background: #ffffff; }
.vendor-faq-split .faq summary { background: #350d271a; color: #1c1917; }
.vendor-faq-split .faq summary:hover,
.vendor-faq-split .faq[open] summary { color: #1c1917; }
.vendor-faq-split .faq summary::after { border-color: var(--primary); }
.vendor-faq-split .faq[open] summary::after { border-color: var(--primary); }
.vendor-faq-split .faq p { background: transparent; color: var(--text-muted); }
@media (max-width: 900px) {
  .vendor-faq-split { grid-template-columns: 1fr; gap: 40px; }
}
.chip {
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 15px; color: var(--text);
  font-weight: 700; font-size: 0.9rem; background: var(--bg-elevated);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary-ink); transform: translateY(-1px); }
.chip span { color: var(--text-muted); font-weight: 600; }
.vendor-section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--border); }
.vendor-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.vendor-section-head > div { flex: 1 1 260px; min-width: 0; }
.vendor-section-head p { color: var(--text-muted); max-width: 70ch; margin: 6px 0 0; }

/* ---------- Exam detail ---------- */
.exam-head { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; margin-top: 6px; }
/* Right column of the exam header: buy card + the side cards (Free questions,
   Related exams) moved up from the body so the sidebar reads as one column. */
.exam-head-aside { display: grid; gap: 24px; align-content: start; }
.exam-head-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.exam-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; margin: 0 0 22px; }
.exam-head-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 560px; }
.exam-head-stat {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.ehs-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ehs-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.practice-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.exam-buy-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.buy-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 4px; font-weight: 800; }
.buy-price { font-size: 2.2rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.03em; }
.buy-once { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-left: 8px; }
.buy-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.exam-buy-card .btn + .btn { margin-top: 10px; }
.buy-alt { font-size: 0.85rem; color: var(--text-muted); margin: 14px 0 0; text-align: center; }
.exam-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.exam-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 0; margin: 0 0 36px; }
.exam-facts div { background: var(--bg-inset); border-radius: var(--radius-sm); padding: 13px 15px; }
.exam-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.exam-facts dd { margin: 3px 0 0; font-weight: 800; }
.exam-facts-compact { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }

/* ---------- Exam page: overview, sample question, prep plan ---------- */
.prose { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; max-width: 68ch; margin: 0 0 26px; }
.mini-heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 12px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.pill {
  display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 0.86rem; background: var(--bg-elevated); color: var(--text);
}
.pill-soft { background: var(--bg-inset); border-color: var(--border); font-weight: 600; }

.sample-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated);
  padding: 24px; box-shadow: var(--shadow-sm); margin: 0 0 40px;
}
.sample-topic {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-ink);
  font-weight: 800; margin: 0 0 10px;
}
.sample-q { font-weight: 700; font-size: 1.05rem; line-height: 1.5; margin: 0 0 16px; }
.sample-options { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.sample-options li {
  display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; background: var(--bg); font-size: 0.94rem;
}
.sample-opt-id {
  flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 8px; background: var(--bg-inset); font-weight: 800; font-size: 0.76rem;
}
.sample-reveal summary {
  cursor: pointer; font-weight: 700; color: var(--primary-ink); font-size: 0.92rem;
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.sample-reveal summary::-webkit-details-marker { display: none; }
.sample-reveal summary::before { content: "\25B8"; font-size: 0.8rem; transition: transform var(--dur-1) var(--ease); }
.sample-reveal[open] summary::before { transform: rotate(90deg); }
.sample-reveal summary:hover { text-decoration: underline; }
.sample-answer {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--primary-soft); border-left: 4px solid var(--primary);
}
.sample-answer p { margin: 0 0 8px; font-size: 0.94rem; line-height: 1.6; }
.sample-answer p:last-child { margin-bottom: 0; color: var(--text-muted); }

.depth { margin: 0 0 40px; padding: 13px 17px; border-radius: var(--radius-sm); font-size: 0.9rem; border: 1px solid var(--border); background: var(--bg-inset); }
.depth-good { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.depth-ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.depth-thin { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 26%, transparent); }

.prep-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
.prep-list li { display: flex; gap: 16px; align-items: flex-start; }
.prep-num {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark)); color: var(--on-primary);
  font-weight: 800; font-size: 0.86rem;
}
.prep-list h3 { margin: 4px 0 4px; font-size: 1rem; }
.prep-list p { margin: 0; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

.chip-mark { border-radius: 5px; object-fit: contain; flex: 0 0 auto; }
.vendor-index .chip { display: inline-flex; align-items: center; gap: 7px; }

.topic-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 16px; }
.topic-list li { padding: 0; }
.topic-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.topic-name { font-weight: 700; font-size: 0.95rem; }
.topic-count { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.check-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary-ink); font-weight: 800;
}
.faq-list { display: grid; gap: 10px; }
.faq {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--bg-elevated);
  overflow: hidden; transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--dur-2) var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--primary-ink); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); animation: tk-toast-in var(--dur-2) var(--ease); }
.exam-side { display: grid; gap: 20px; position: sticky; top: 86px; }
.side-card { padding: 22px; }
.side-card h2, .side-card h3, .side-card-title { font-size: 1rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related-list a { color: var(--text); font-weight: 700; font-size: 0.92rem; }
.related-list a:hover { color: var(--primary-ink); }
.related-list .exam-code { margin-right: 6px; }
.side-card-cta { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }

/* ---------- Quiz ---------- */
.quiz-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.quiz-main { min-height: 320px; }
.quiz { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quiz-bar { margin-bottom: 20px; }
.quiz-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.quiz-bar-title { font-weight: 800; font-size: 0.92rem; }
.quiz-bar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-timer {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 0.86rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-inset); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}
.quiz-timer.is-low { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.quiz-mode { display: inline-flex; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.quiz-mode-btn {
  background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); padding: 5px 13px; border-radius: 999px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.quiz-mode-btn:hover { color: var(--text); }
.quiz-mode-btn.is-active { background: var(--primary-strong); color: var(--on-primary); }
.quiz-progress-wrap { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.quiz-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: width var(--dur-3) var(--ease); }
.quiz-status { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0 0; font-weight: 600; }

.quiz-nav-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-inset); padding: 12px 14px; margin-bottom: 22px; }
.quiz-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.quiz-nav-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.quiz-nav-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: var(--bg-elevated); border: 1px solid var(--border-strong); }
.legend-dot.is-answered { background: var(--primary-soft); border-color: var(--primary); }
.legend-dot.is-correct { background: var(--success); border-color: var(--success); }
.legend-dot.is-wrong { background: var(--danger-soft); border-color: var(--danger); border-style: dashed; }
.legend-dot.is-marked { background: var(--accent); border-color: var(--accent); }
.legend-dot.is-current { background: var(--text); border-color: var(--text); }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.quiz-nav-btn {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-muted);
  font-family: inherit; font-size: 0.8rem; font-weight: 800;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.quiz-nav-btn:hover { border-color: var(--primary); color: var(--primary-ink); transform: translateY(-1px); }
.quiz-nav-btn.is-answered { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary-ink); }
.quiz-nav-btn.is-correct { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.quiz-nav-btn.is-wrong { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); border-style: dashed; }
.quiz-nav-btn.is-marked { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.quiz-nav-btn.is-current { outline: 2px solid var(--text); outline-offset: 1px; font-weight: 900; }
.quiz-stage { min-height: 200px; }
.quiz-stage > * { animation: tk-toast-in var(--dur-2) var(--ease); }
.quiz-loading { color: var(--text-muted); }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.q-topic { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-ink); font-weight: 800; }
.q-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.q-text { font-size: 1.14rem; font-weight: 700; margin-bottom: 20px; line-height: 1.45; }
.q-hint { font-size: 0.85rem; color: var(--text-muted); margin: -14px 0 18px; }
.q-exam-note { font-size: 0.85rem; color: var(--text-muted); margin: 16px 0 0; }
.q-options { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.q-option {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  padding: 15px 17px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text); cursor: pointer; font-size: 1rem;
  font-family: inherit; line-height: 1.5;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.q-option:hover:not(:disabled) { border-color: var(--text-muted); background: var(--bg-inset); transform: translateX(2px); }
.q-option:disabled { cursor: default; }
.q-option-key {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto;
  border-radius: 7px; background: var(--bg-alt); font-weight: 800; font-size: 0.78rem; color: var(--text-muted);
}
.q-option.is-selected { border-color: var(--text); background: var(--bg-inset); }
.q-option.is-selected .q-option-key { background: var(--text); color: var(--bg); }
.q-option.is-correct { border-color: var(--success); background: var(--success-soft); }
.q-option.is-correct .q-option-key { background: var(--success); color: #fff; }
.q-option.is-wrong { border-color: var(--danger); background: var(--danger-soft); }
.q-option.is-wrong .q-option-key { background: var(--danger); color: #fff; }
.q-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.q-actions-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.q-mark.is-marked { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.q-mark .icon { color: var(--accent-ink); }
.q-explain { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-inset); border-left: 4px solid var(--primary); animation: tk-toast-in var(--dur-2) var(--ease); }
.q-explain h2, .q-explain h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.q-explain p { margin: 0; color: var(--text-muted); }
.q-verdict { font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: 7px; }
.q-verdict.is-correct { color: var(--success); }
.q-verdict.is-wrong { color: var(--danger); }
.q-verdict.is-blank { color: var(--text-muted); }
.q-result { text-align: center; }
.q-score { font-size: 3.2rem; font-weight: 800; margin: 0; letter-spacing: -0.04em; }
.q-score-label { color: var(--text-muted); margin-bottom: 20px; }
.result-ring-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 18px; }
.ring-lg { width: 132px; height: 132px; }
.ring-lg circle { stroke-width: 3.4; }
.result-ring-center {
  position: absolute; inset: 0; display: grid; place-content: center;
}
.result-ring-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.result-ring-label {
  display: block; text-align: center; margin: 0 0 20px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
}
.result-heading { font-size: 1.15rem; margin: 0 0 6px; }
.result-subheading { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 26px 0 14px; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin: 0 auto 8px; max-width: 560px; }
.result-stats div { background: var(--bg-inset); border-radius: var(--radius-sm); padding: 12px 10px; }
.result-stats dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.result-stats dd { margin: 3px 0 0; font-weight: 800; font-size: 1.15rem; }
.result-stats dd.is-good { color: var(--success); }
.result-stats dd.is-bad { color: var(--danger); }
.result-marked { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 8px; }
.q-review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.q-review-head .q-verdict { margin: 0; }
.q-mark-flag {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px;
}
.result-topics { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 520px; display: grid; gap: 14px; text-align: left; }
.result-notice { max-width: 520px; margin: 22px auto; text-align: left; }
.q-topic-breakdown { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 440px; display: grid; gap: 8px; text-align: left; }
.q-topic-breakdown li { display: flex; justify-content: space-between; padding: 9px 14px; background: var(--bg-inset); border-radius: var(--radius-sm); font-size: 0.92rem; }
.q-review { display: grid; gap: 14px; margin: 0 0 24px; text-align: left; }
.q-review-item { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.q-review-item .q-text { font-size: 1rem; margin-bottom: 8px; }
.q-review-item .q-explain { margin-top: 12px; }
.q-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quiz-side { display: grid; gap: 20px; position: sticky; top: 86px; }
.notice {
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--text); padding: 13px 17px; border-radius: var(--radius-sm); font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.plan { padding: 30px; display: flex; flex-direction: column; position: relative; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.plan:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.plan-featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-featured::before { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none; box-shadow: 0 0 0 1px var(--primary); }
.plan-flag {
  position: absolute; top: -12px; left: 30px; background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark));
  color: var(--on-primary); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.plan-price { font-size: 2.3rem; font-weight: 800; margin: 8px 0; letter-spacing: -0.03em; }
.plan-period { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.plan-desc { color: var(--text-muted); font-size: 0.92rem; }
.plan .check-list { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.price-table th { background: var(--bg-alt); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 800; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--bg-inset); }
.price-cell { font-weight: 800; }

/* ---------- Search ---------- */
.search-form { margin-top: 18px; }
.search-summary { color: var(--text-muted); margin-bottom: 22px; }

/* ---------- Auth / dashboard ---------- */
.auth-section { min-height: 60vh; }
.auth-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; max-width: 900px; margin: 0 auto; }
.auth-card { padding: 34px; }
.auth-sub { color: var(--text-muted); }
.auth-form { display: grid; gap: 8px; margin-top: 18px; }
.auth-form label { font-size: 0.85rem; font-weight: 700; }
.auth-form input { padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text); font-size: 1rem; font-family: inherit; margin-bottom: 8px; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.auth-alt { font-size: 0.9rem; margin-top: 16px; text-align: center; }
.auth-side { padding-top: 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.dash-card { padding: 26px; }

/* ---------- Account / auth state ---------- */
.account-nav { display: inline-flex; align-items: center; gap: 10px; }
.auth-note {
  font-size: 0.85rem; padding: 11px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-muted);
}
.auth-note.is-demo { border-color: var(--accent); }
.auth-note.is-live { border-color: var(--success); color: var(--success); }
.auth-message { font-size: 0.9rem; margin: 0 0 10px; min-height: 1.2em; }
.auth-message.is-ok { color: var(--success); }
.auth-message.is-error { color: var(--danger); }
[data-bookmark-exam].is-saved { border-color: var(--success); color: var(--success); }

/* ---------- Dashboard ---------- */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 8px; }
.dash-stat {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.dash-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dash-stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.dash-stat-label { color: var(--text-muted); font-size: 0.85rem; }
.dash-heading { margin: 36px 0 18px; }
.price-actions { display: flex; gap: 8px; }

/* ---------- Toasts ---------- */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(360px, 90vw); }
.toast {
  background: var(--text); color: var(--bg); padding: 13px 17px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 600; animation: tk-toast-in var(--dur-2) var(--ease);
}
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2), transform var(--dur-2); }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article-head { margin-bottom: 26px; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; }
.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.4em; }
.article-cta { margin-top: 40px; padding: 28px; background: var(--bg-alt); border-radius: var(--radius-lg); }

/* ---------- Error ---------- */
.error-section { min-height: 55vh; display: grid; place-items: center; }
.error-wrap { text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 800; color: var(--primary-ink); margin: 0; letter-spacing: -0.04em; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-blurb { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 36ch; }
.footer-col h2, .footer-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 14px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { position: relative; display: inline-block; color: var(--text); font-size: 0.92rem; transition: color var(--dur-1) var(--ease); }
.footer-col a:hover {
  color: var(--primary-ink); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--primary) 75%, transparent);
}
/* Social icons under the footer blurb. */
.footer-col .footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.footer-col .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; background: var(--sc, var(--primary-strong)); border: 1px solid transparent;
  transition: background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease),
    translate var(--dur-1) var(--ease), filter var(--dur-1) var(--ease);
}
.footer-col .footer-social a::after { content: none; }
.footer-col .footer-social a .icon { width: 18px; height: 18px; }
.footer-col .footer-social a:hover {
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--sc, var(--primary-strong)) 75%, transparent);
  translate: 0 -2px;
}
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom a { color: inherit; font-weight: 600; transition: color var(--dur-1) var(--ease); }
.footer-bottom a:hover { color: var(--primary-ink); text-decoration: underline; }
.footer-note { font-size: 0.82rem; }

/* Animated footer background: an aurora mesh that drifts behind the columns,
   plus a slow conic beacon sweep. Content sits above it. */
.site-footer > .container { position: relative; z-index: 1; }
.footer-bg {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 55% at 12% 22%, rgba(22, 163, 74, 0.22), transparent 70%),
    radial-gradient(40% 52% at 88% 16%, rgba(245, 158, 11, 0.16), transparent 70%),
    radial-gradient(52% 70% at 52% 118%, rgba(45, 130, 246, 0.14), transparent 70%),
    radial-gradient(34% 44% at 72% 78%, rgba(16, 185, 129, 0.14), transparent 72%);
  background-size: 190% 190%;
  filter: blur(18px);
  animation: footerMesh 26s ease-in-out infinite alternate;
}
.site-footer::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--primary) 18%, var(--accent) 50%, var(--primary) 82%, transparent);
  background-size: 200% 100%;
  animation: footerSheen 7s linear infinite;
}
@keyframes footerSheen { to { background-position: 200% 0; } }
@keyframes footerMesh {
  0% { background-position: 0% 0%; transform: scale(1); }
  50% { background-position: 70% 30%; transform: scale(1.08); }
  100% { background-position: 100% 100%; transform: scale(1); }
}
html[data-motion="reduced"] .footer-bg,
html[data-motion="reduced"] .site-footer::after { animation: none !important; }

/* ---------- Grid min-content guards ----------
   Grid items default to min-width:auto, so wide children (e.g. the question
   navigator strip) can force a track wider than the viewport. */
.hero-inner > *,
.preview-grid > *,
.readiness > *,
.exam-head > *,
.exam-body > *,
.quiz-layout > *,
.auth-wrap > *,
.vendor-head > *,
.practice-head > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { gap: 36px; }
  .float-score { left: -10px; }
  .float-badge { right: -6px; }
  .grid-testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 56px; }
  .exam-head, .exam-body, .quiz-layout, .auth-wrap { grid-template-columns: 1fr; }
  .exam-side, .quiz-side { position: static; }
  .preview-grid, .readiness { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .readiness-stats { grid-template-columns: repeat(2, 1fr); }
  .js .reveal-left, .js .reveal-right { transform: translateY(34px); }
}

@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .site-nav { gap: 16px; }
  .nav-links > a, .nav-dropdown-toggle { font-size: 0.9rem; }
  .nav-actions { gap: 8px; }
}

/* The full nav row needs ~776px, so collapse to the hamburger before that. */
@media (max-width: 820px) {
  .site-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-elevated);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    padding: 16px 20px 22px; gap: 16px; display: none; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 66px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 14px; }
  .nav-dropdown-menu {
    position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0;
    overflow: visible;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-body { grid-template-columns: 1fr; }
  .nav-dropdown-cats {
    flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px 0;
    background: transparent; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .nav-cat { width: auto; white-space: nowrap; padding: 8px 12px; }
  .nav-dropdown-panels { padding: 10px 0; min-height: 0; max-height: none; overflow: visible; }
  .nav-vendor-grid { grid-template-columns: 1fr; }
  .nav-vendor { padding: 8px 4px; }
  .nav-dropdown-foot { padding: 10px 0; }
  .nav-actions { flex-wrap: wrap; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 0 44px; }
  .hero-actions .btn { flex: 1; }
  .hero-search { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 1.5rem; }
  .js .reveal-left, .js .reveal-right { transform: translateY(34px); }
  .float-score { top: -16px; left: -8px; }
  .float-badge { bottom: -16px; right: -6px; }

  .section { padding: 44px 0; }
  .cta-band { padding: 30px 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .vendor-head { flex-direction: column; }
  .exam-card-actions { flex-direction: column; }
  .grid-exams { grid-template-columns: 1fr; }
  .readiness-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-panel { padding: 20px; }
  .search-panel .search-row { flex-direction: column; }
  .quiz { padding: 20px; }
  .q-actions .btn { flex: 1; }
  .q-actions { flex-direction: column; align-items: stretch; }
  .q-actions-group { width: 100%; }
  .q-actions-group .btn { flex: 1; }
  .quiz-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .quiz-nav-legend { display: none; }
  .quiz-bar-tools { width: 100%; justify-content: space-between; }
  .q-option { padding: 14px; }
  .exam-meta { grid-template-columns: repeat(3, 1fr); }
  .exam-head-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .practice-head { align-items: flex-start; }
}

@media (max-width: 420px) {
  .exam-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .hero-vendors { margin-top: 26px; gap: 10px; }
  .hero-vendors-list { gap: 7px; }
  .hero-vendors-list li { width: 38px; height: 38px; border-radius: 10px; }
  .hero-vendors-list img { width: 22px; height: 22px; }
  .grid-testimonials { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ----------
   Animation is on by default. It is turned off only when the visitor uses the
   header motion toggle, which sets data-motion="reduced" and is remembered.
   The media query is a fallback for the no-JS case, where the attribute is
   never set, so an OS-level reduced-motion request is still honoured. */
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
html[data-motion="reduced"] .reveal,
html[data-motion="reduced"] [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
html[data-motion="reduced"] .hero::before { animation: none !important; opacity: 0.35; }
html[data-motion="reduced"] .bar-fill { width: var(--w, 0%) !important; }
html[data-motion="reduced"] .bar-fill::after { animation: none !important; opacity: 0 !important; }
html[data-motion="reduced"] .ring .ring-value { stroke-dashoffset: calc(100 - var(--pct, 0)) !important; }
html[data-motion="reduced"] .exam-ui-bar span { width: var(--w, 0%) !important; }
html[data-motion="reduced"] .float,
html[data-motion="reduced"] .float-slow,
html[data-motion="reduced"] .float-fast { animation: none !important; }
html[data-motion="reduced"] .btn-primary::after { display: none; }

/* No-JS fallback: without the inline resolver the attribute is never set. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) *,
  html:not([data-motion]) *::before,
  html:not([data-motion]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html:not([data-motion]) .reveal,
  html:not([data-motion]) [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  html:not([data-motion]) .bar-fill { width: var(--w, 0%) !important; }
  html:not([data-motion]) .ring .ring-value { stroke-dashoffset: calc(100 - var(--pct, 0)) !important; }
  html:not([data-motion]) .exam-ui-bar span { width: var(--w, 0%) !important; }
  html:not([data-motion]) .float,
  html:not([data-motion]) .float-slow,
  html:not([data-motion]) .float-fast { animation: none !important; }
}

/* ==========================================================================
   How practice tests work - "journey" section (ported from Qwen3.html)
   Scoped to .tk-journey-section. Uses site tokens + html[data-motion] only.
   ========================================================================== */
.tk-journey-section {
      --section-bg: var(--bg);
      --warm-white: var(--bg-elevated);
      --card-bg: var(--bg-elevated);

      --ink: var(--text);
      --muted: var(--text-subtle);
      --border-soft: var(--border);

      --emerald: var(--primary);
      --emerald-dark: var(--primary-strong);
      --emerald-soft: var(--primary-soft);

      --amber: var(--accent);
      --amber-soft: var(--accent-soft);

      --coral: #F97316;
      --coral-soft: rgba(249, 115, 22, 0.13);

      --gold: #D97706;
      --gold-soft: rgba(217, 119, 6, 0.14);

      --font-body: var(--font);
      --font-display: var(--font);
      --font-mono: var(--font);

      --ease-out: var(--ease);
      --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* =========================================================
       SECTION SHELL
       ========================================================= */
    .tk-journey-section {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background:
        radial-gradient(circle at 12% 10%, rgba(22, 163, 74, 0.08), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.08), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(249, 115, 22, 0.06), transparent 28%),
        var(--section-bg);
      padding: 96px 24px 110px;
    }

    .tk-journey-container {
      position: relative;
      z-index: 2;
      max-width: 1240px;
      margin: 0 auto;
    }

    /* =========================================================
       SUBTLE BACKGROUND OBJECTS
       ========================================================= */
    .tk-journey-bg {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-dots {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(28, 25, 23, 0.055) 1px, transparent 1px);
      background-size: 28px 28px;
      -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 72%);
      mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 72%);
      opacity: 0.55;
    }

    .bg-curve {
      position: absolute;
      opacity: 0.16;
    }

    .bg-curve.one {
      top: 12%;
      left: -4%;
      width: 420px;
    }

    .bg-curve.two {
      right: -6%;
      bottom: 10%;
      width: 460px;
      transform: rotate(12deg);
    }

    .float-symbol {
      position: absolute;
      font-family: var(--font-mono);
      font-weight: 700;
      color: rgba(28, 25, 23, 0.055);
      user-select: none;
      animation: floatSymbol 16s var(--ease-smooth) infinite;
    }

    .float-symbol.q1 { top: 16%; left: 8%; font-size: 34px; animation-delay: 0s; }
    .float-symbol.q2 { top: 28%; right: 12%; font-size: 28px; animation-delay: 2s; }
    .float-symbol.n1 { bottom: 22%; left: 16%; font-size: 42px; animation-delay: 1s; }
    .float-symbol.c1 { bottom: 18%; right: 18%; font-size: 30px; animation-delay: 3s; }
    .float-symbol.o1 { top: 62%; left: 44%; font-size: 24px; animation-delay: 4s; }

    @keyframes floatSymbol {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-10px) rotate(2deg); }
    }

    .tk-journey-section:not(.is-in-view) .float-symbol {
      animation-play-state: paused;
    }

    /* =========================================================
       HEADER
       ========================================================= */
    .tk-journey-header {
      text-align: center;
      max-width: 760px;
      margin: 0 auto 68px;
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .tk-journey-section.is-in-view .tk-journey-header {
      opacity: 1;
      transform: translateY(0);
    }

    .journey-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px 8px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid var(--border);
      box-shadow: 0 10px 24px -20px rgba(28, 25, 23, 0.35);
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--emerald-dark);
      margin-bottom: 18px;
    }

    .eyebrow-icon {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--emerald-soft);
      display: grid;
      place-items: center;
      color: var(--emerald);
    }

    .eyebrow-icon svg {
      width: 14px;
      height: 14px;
      stroke-width: 3;
    }

    .tk-journey-header h2 {
      margin: 0 0 14px;
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.35rem);
      line-height: 1.04;
      letter-spacing: -0.04em;
      font-weight: 800;
      color: var(--ink);
    }

    .tk-journey-header p {
      margin: 0 auto;
      max-width: 640px;
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--muted);
    }

    /* =========================================================
       JOURNEY STAGE
       ========================================================= */
    .tk-journey-stage {
      position: relative;
      min-height: 520px;
    }

    /* Desktop connector */
    .journey-connector--desktop {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 88px;
      z-index: 0;
      pointer-events: none;
    }

    .journey-path {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .path-base {
      fill: none;
      stroke: var(--border);
      stroke-width: 2;
      stroke-linecap: round;
    }

    .path-progress {
      fill: none;
      stroke: var(--active-color, var(--emerald));
      stroke-width: 3;
      stroke-linecap: round;
      transition: stroke 0.55s var(--ease-smooth);
    }

    .journey-dot {
      position: absolute;
      width: 18px;
      height: 18px;
      transform: translate(-50%, -50%);
      left: 12.5%;
      top: 50%;
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
    }

    .tk-journey-stage.is-running .journey-dot {
      opacity: 1;
    }

    .journey-dot span {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: var(--active-color, var(--emerald));
      box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.92),
        0 0 22px var(--active-color, var(--emerald));
      animation: dotPulse 1.8s var(--ease-smooth) infinite;
    }

    @keyframes dotPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.12); }
    }

    /* Mobile connector */
    .journey-connector--mobile {
      display: none;
      position: absolute;
      left: 31px;
      top: 32px;
      bottom: 32px;
      width: 2px;
      background: var(--border);
      border-radius: 99px;
      z-index: 0;
      pointer-events: none;
    }

    .mobile-progress {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 0%;
      background: var(--active-color, var(--emerald));
      border-radius: 99px;
      transition: height 0.12s linear, background 0.45s var(--ease-smooth);
    }

    .journey-dot--mobile {
      position: absolute;
      left: 50%;
      top: 0%;
    }

    /* =========================================================
       STEPS GRID
       ========================================================= */
    .journey-steps {
      position: relative;
      z-index: 1;
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 24px;
    }

    .journey-step {
      --step-color: var(--emerald);
      --step-soft: var(--emerald-soft);
      --step-shadow: rgba(22, 163, 74, 0.28);
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 8px;
      transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
    }

    .journey-step[data-step="2"] {
      --step-color: var(--amber);
      --step-soft: var(--amber-soft);
      --step-shadow: rgba(245, 158, 11, 0.28);
    }

    .journey-step[data-step="3"] {
      --step-color: var(--coral);
      --step-soft: var(--coral-soft);
      --step-shadow: rgba(249, 115, 22, 0.26);
    }

    .journey-step[data-step="4"] {
      --step-color: var(--emerald);
      --step-soft: var(--gold-soft);
      --step-shadow: rgba(217, 119, 6, 0.24);
    }

    .journey-steps:hover .journey-step:not(:hover) {
      opacity: 0.62;
      transform: scale(0.994);
    }

    .step-number-bg {
      position: absolute;
      top: -22px;
      left: 50%;
      transform: translateX(-50%);
      font-family: var(--font-display);
      font-size: 92px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.06em;
      color: transparent;
      -webkit-text-stroke: 1.4px var(--border);
      opacity: 0.55;
      pointer-events: none;
      transition: opacity 0.45s var(--ease-smooth), -webkit-text-stroke-color 0.45s var(--ease-smooth);
      z-index: 0;
    }

    .journey-step.is-active .step-number-bg,
    .journey-step.is-open .step-number-bg {
      opacity: 0.16;
      -webkit-text-stroke-color: var(--step-color);
    }

    .step-node {
      position: relative;
      z-index: 2;
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: var(--card-bg);
      border: 2px solid var(--border);
      display: grid;
      place-items: center;
      box-shadow: 0 14px 30px -24px rgba(28, 25, 23, 0.45);
      transition:
        border-color 0.45s var(--ease-smooth),
        box-shadow 0.45s var(--ease-smooth),
        transform 0.45s var(--ease-out);
    }

    .node-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: var(--step-soft);
      color: var(--step-color);
      display: grid;
      place-items: center;
      transition: transform 0.45s var(--ease-out), background 0.35s ease, color 0.35s ease;
    }

    .node-icon svg {
      width: 22px;
      height: 22px;
      stroke-width: 2.1;
    }

    .journey-step:hover .step-node,
    .journey-step.is-active .step-node,
    .journey-step.is-open .step-node {
      border-color: var(--step-color);
      box-shadow:
        0 0 0 6px var(--step-soft),
        0 22px 42px -28px var(--step-shadow);
      transform: translateY(-2px);
    }

    .journey-step:hover .node-icon,
    .journey-step.is-active .node-icon,
    .journey-step.is-open .node-icon {
      transform: scale(1.05) rotate(-2deg);
    }

    .step-content {
      width: 100%;
      margin-top: 24px;
      padding: 24px 22px 22px;
      display: flex;
      flex-direction: column;
      flex: 1;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid var(--border);
      border-radius: 24px;
      min-height: 382px;
      box-shadow: 0 18px 40px -34px rgba(28, 25, 23, 0.35);
      transition:
        transform 0.45s var(--ease-out),
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
    }

    .journey-step:hover .step-content,
    .journey-step.is-active .step-content,
    .journey-step.is-open .step-content {
      transform: translateY(-6px);
      border-color: color-mix(in srgb, var(--step-color) 24%, var(--border));
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 26px 56px -34px var(--step-shadow);
    }

    .step-kicker {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--step-color);
      margin-bottom: 10px;
    }

    .step-content h3 {
      margin: 0 0 10px;
      font-family: var(--font-display);
      font-size: 1.25rem;
      line-height: 1.22;
      letter-spacing: -0.03em;
      font-weight: 800;
      color: var(--ink);
    }

    .step-content > p {
      margin: 0;
      font-family: var(--font-body);
      font-size: 0.925rem;
      line-height: 1.62;
      color: var(--text-muted);
    }

    /* =========================================================
       MINI INTERFACES COMMON
       ========================================================= */
    .mini {
      position: relative;
      margin-top: 18px;
      flex: 1 1 auto;
      min-height: 190px;
      padding: 14px;
      border-radius: 18px;
      background: var(--warm-white);
      border: 1px dashed var(--border);
      overflow: hidden;
      text-align: left;
    }

    .mini-label {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* =========================================================
       STEP 1 â€” SEARCH / CHOOSE
       ========================================================= */
    .mini-search {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .mini-search .search-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }

    .search-icon {
      width: 16px;
      height: 16px;
      color: var(--muted);
      flex: none;
    }

    .search-field {
      height: 34px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #fff;
      display: flex;
      align-items: center;
      padding: 0 10px;
      flex: 0 0 46px;
      overflow: hidden;
      transition: flex-basis 0.75s var(--ease-out);
    }

    .search-text {
      display: inline-block;
      white-space: nowrap;
      overflow: hidden;
      max-width: 0;
      font-family: var(--font-mono);
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink);
      transition: max-width 0.75s var(--ease-out) 0.12s;
    }

    .search-caret {
      width: 1.5px;
      height: 14px;
      margin-left: 4px;
      background: var(--emerald);
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .search-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
    }

    .search-tags span {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      color: var(--muted);
      background: #F5F5F4;
      border: 1px solid var(--border-soft);
      padding: 5px 8px;
      border-radius: 999px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
    }

    .mini-badge {
      position: absolute;
      right: 12px;
      bottom: 12px;
      width: 112px;
      height: 74px;
      border-radius: 14px;
      background: #fff;
      border: 1px solid var(--border);
      box-shadow: 0 14px 28px -24px rgba(28, 25, 23, 0.4);
      padding: 10px;
      opacity: 0;
      transform: translateX(14px) scale(0.94);
      transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
    }

    .mini-badge-top {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .mini-badge-icon {
      width: 24px;
      height: 24px;
      border-radius: 8px;
      background: var(--emerald-soft);
      color: var(--emerald);
      display: grid;
      place-items: center;
    }

    .mini-badge-icon svg {
      width: 14px;
      height: 14px;
    }

    .mini-badge-lines {
      flex: 1;
    }

    .mini-badge-lines i {
      display: block;
      height: 5px;
      border-radius: 99px;
      background: #EEEDEA;
      margin-bottom: 5px;
    }

    .mini-badge-lines i:first-child {
      width: 70%;
      background: #E3F2E9;
    }

    .mini-badge-lines i:last-child {
      width: 45%;
    }

    .mini-check {
      position: absolute;
      right: -7px;
      top: -7px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--emerald);
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 8px 18px -10px rgba(22, 163, 74, 0.8);
      transform: scale(0);
      transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .journey-step.is-active .search-field,
    .journey-step.is-open .search-field {
      flex-basis: auto;
      flex-grow: 1;
    }

    .journey-step.is-active .search-text,
    .journey-step.is-open .search-text {
      max-width: 150px;
    }

    .journey-step.is-active .search-caret,
    .journey-step.is-open .search-caret {
      opacity: 1;
      animation: caretBlink 1s steps(2, start) infinite;
    }

    @keyframes caretBlink {
      50% { opacity: 0; }
    }

    .journey-step.is-active .search-tags span,
    .journey-step.is-open .search-tags span {
      opacity: 1;
      transform: translateY(0);
    }

    .journey-step.is-active .search-tags span:nth-child(1),
    .journey-step.is-open .search-tags span:nth-child(1) { transition-delay: 0.22s; }
    .journey-step.is-active .search-tags span:nth-child(2),
    .journey-step.is-open .search-tags span:nth-child(2) { transition-delay: 0.32s; }
    .journey-step.is-active .search-tags span:nth-child(3),
    .journey-step.is-open .search-tags span:nth-child(3) { transition-delay: 0.42s; }

    .journey-step.is-active .mini-badge,
    .journey-step.is-open .mini-badge {
      opacity: 1;
      transform: translateX(0) scale(1);
      transition-delay: 0.35s;
    }

    .journey-step.is-active .mini-check,
    .journey-step.is-open .mini-check {
      transform: scale(1);
      transition-delay: 0.72s;
    }

    /* =========================================================
       STEP 2 â€” PRACTICE TEST PREVIEW
       ========================================================= */
    .mini-exam-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--muted);
    }

    .q-number {
      color: var(--ink);
      font-weight: 700;
    }

    .mini-timer {
      color: var(--amber);
      font-weight: 700;
    }

    .mini-stem {
      margin: 10px 0 12px;
      font-size: 12.5px;
      line-height: 1.5;
      color: #292524;
      min-height: 38px;
    }

    .mini-options {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 7px;
    }

    .mini-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 9px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      font-size: 11.5px;
      color: var(--muted);
      opacity: 0;
      transform: translateY(8px);
      transition:
        opacity 0.32s ease,
        transform 0.38s var(--ease-out),
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
    }

    .radio {
      position: relative;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 1.5px solid #D6D3D1;
      flex: none;
      transition: border-color 0.25s ease, background 0.25s ease;
    }

    .radio::after {
      content: "";
      position: absolute;
      inset: 3px;
      border-radius: 50%;
      background: #fff;
      transform: scale(0);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mini-feedback {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 12px;
      height: 30px;
      border-radius: 10px;
      background: var(--emerald);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.38s var(--ease-out);
      box-shadow: 0 12px 24px -18px rgba(22, 163, 74, 0.9);
    }

    .mini-feedback svg {
      width: 14px;
      height: 14px;
      stroke-width: 3;
    }

    .journey-step.is-active .mini-option,
    .journey-step.is-open .mini-option {
      opacity: 1;
      transform: translateY(0);
    }

    .journey-step.is-active .mini-option:nth-child(1),
    .journey-step.is-open .mini-option:nth-child(1) { transition-delay: 0.10s; }
    .journey-step.is-active .mini-option:nth-child(2),
    .journey-step.is-open .mini-option:nth-child(2) { transition-delay: 0.20s; }
    .journey-step.is-active .mini-option:nth-child(3),
    .journey-step.is-open .mini-option:nth-child(3) { transition-delay: 0.30s; }
    .journey-step.is-active .mini-option:nth-child(4),
    .journey-step.is-open .mini-option:nth-child(4) { transition-delay: 0.40s; }

    .journey-step.is-active .mini-option[data-correct],
    .journey-step.is-open .mini-option[data-correct] {
      border-color: var(--emerald);
      background: rgba(22, 163, 74, 0.08);
      color: #14532D;
      transition-delay: 0.75s;
    }

    .journey-step.is-active .mini-option[data-correct] .radio,
    .journey-step.is-open .mini-option[data-correct] .radio {
      border-color: var(--emerald);
      background: var(--emerald);
      transition-delay: 0.75s;
    }

    .journey-step.is-active .mini-option[data-correct] .radio::after,
    .journey-step.is-open .mini-option[data-correct] .radio::after {
      transform: scale(1);
      transition-delay: 0.82s;
    }

    .journey-step.is-active .mini-feedback,
    .journey-step.is-open .mini-feedback {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 1s;
    }

    /* =========================================================
       STEP 3 â€” REVIEW ANSWERS
       ========================================================= */
    .mini-review {
      display: flex;
      flex-direction: column;
    }

    .review-list {
      display: grid;
      gap: 7px;
      margin-top: 10px;
    }

    .review-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 9px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      opacity: 0;
      transform: translateX(-8px);
      transition:
        opacity 0.3s ease,
        transform 0.38s var(--ease-out);
    }

    .mark {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #D6D3D1;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 700;
      transform: scale(0.55);
      transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
    }

    .row-correct .mark {
      background: var(--emerald);
    }

    .row-incorrect .mark {
      background: var(--coral);
    }

    .explain-panel {
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid rgba(249, 115, 22, 0.22);
      background: rgba(249, 115, 22, 0.07);
      padding: 0 10px;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      transition:
        max-height 0.45s var(--ease-out),
        opacity 0.3s ease,
        transform 0.4s var(--ease-out),
        padding 0.35s ease;
    }

    .explain-panel p {
      margin: 10px 0;
      font-size: 11.5px;
      line-height: 1.55;
      color: #44403C;
    }

    .explain-panel strong {
      color: var(--coral);
    }

    .next-chip {
      margin-top: auto;
      align-self: flex-end;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      color: var(--coral);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
    }

    .next-chip svg {
      width: 12px;
      height: 12px;
      stroke-width: 3;
      animation: nudgeRight 1.5s var(--ease-smooth) infinite;
    }

    @keyframes nudgeRight {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(3px); }
    }

    .journey-step.is-active .review-row,
    .journey-step.is-open .review-row {
      opacity: 1;
      transform: translateX(0);
    }

    .journey-step.is-active .review-row:nth-child(1),
    .journey-step.is-open .review-row:nth-child(1) { transition-delay: 0.10s; }
    .journey-step.is-active .review-row:nth-child(2),
    .journey-step.is-open .review-row:nth-child(2) { transition-delay: 0.22s; }
    .journey-step.is-active .review-row:nth-child(3),
    .journey-step.is-open .review-row:nth-child(3) { transition-delay: 0.34s; }
    .journey-step.is-active .review-row:nth-child(4),
    .journey-step.is-open .review-row:nth-child(4) { transition-delay: 0.46s; }

    .journey-step.is-active .mark,
    .journey-step.is-open .mark {
      transform: scale(1);
    }

    .journey-step.is-active .review-row:nth-child(1) .mark,
    .journey-step.is-open .review-row:nth-child(1) .mark { transition-delay: 0.25s; }
    .journey-step.is-active .review-row:nth-child(2) .mark,
    .journey-step.is-open .review-row:nth-child(2) .mark { transition-delay: 0.37s; }
    .journey-step.is-active .review-row:nth-child(3) .mark,
    .journey-step.is-open .review-row:nth-child(3) .mark { transition-delay: 0.49s; }
    .journey-step.is-active .review-row:nth-child(4) .mark,
    .journey-step.is-open .review-row:nth-child(4) .mark { transition-delay: 0.61s; }

    .journey-step.is-active .explain-panel,
    .journey-step.is-open .explain-panel {
      max-height: 200px;
      opacity: 1;
      transform: translateY(0);
      padding: 0 10px;
      transition-delay: 0.8s;
    }

    .journey-step.is-active .next-chip,
    .journey-step.is-open .next-chip {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 1.05s;
    }

    /* =========================================================
       STEP 4 â€” SCORE TRACKING
       ========================================================= */
    .mini-score {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .score-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 10px;
    }

    .score-ring {
      position: relative;
      width: 94px;
      height: 94px;
      flex: none;
    }

    .score-ring svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }

    .ring-bg {
      fill: none;
      stroke: #EEEDEA;
      stroke-width: 8;
    }

    .ring-progress {
      fill: none;
      stroke: var(--step-color);
      stroke-width: 8;
      stroke-linecap: round;
      stroke-dasharray: 245;
      stroke-dashoffset: 245;
      transition: stroke-dashoffset 1.35s var(--ease-out);
    }

    .journey-step.is-active .ring-progress,
    .journey-step.is-open .ring-progress {
      stroke-dashoffset: calc(245 - (245 * var(--score, 0) / 100));
    }

    .ring-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .score-value {
      font-family: var(--font-mono);
      font-size: 22px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
    }

    .score-caption {
      margin-top: 4px;
      font-family: var(--font-mono);
      font-size: 8.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .score-stats {
      flex: 1;
      min-width: 0;
      display: grid;
      gap: 9px;
    }

    .stat-line {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--muted);
    }

    .stat-line strong {
      color: var(--ink);
      font-size: 11.5px;
      font-weight: 700;
    }

    .score-bar {
      height: 7px;
      border-radius: 99px;
      background: #EEEDEA;
      overflow: hidden;
    }

    .score-bar i {
      display: block;
      width: 0%;
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--emerald), var(--gold));
      transition: width 1.2s var(--ease-out);
    }

    .journey-step.is-active .score-bar i,
    .journey-step.is-open .score-bar i {
      width: var(--bar, 0%);
    }

    .cert-ready {
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 11px;
      border-radius: 14px;
      background: rgba(217, 119, 6, 0.09);
      border: 1px solid rgba(217, 119, 6, 0.2);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
    }

    .cert-ready-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--gold);
      color: #fff;
      display: grid;
      place-items: center;
      flex: none;
      box-shadow: 0 10px 20px -12px rgba(217, 119, 6, 0.85);
    }

    .cert-ready-icon svg {
      width: 15px;
      height: 15px;
      stroke-width: 2.6;
    }

    .cert-ready-text b {
      display: block;
      font-family: var(--font-display);
      font-size: 12px;
      font-weight: 800;
      color: #78350F;
      letter-spacing: -0.01em;
    }

    .cert-ready-text span {
      display: block;
      margin-top: 2px;
      font-family: var(--font-mono);
      font-size: 9.5px;
      color: #92400E;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .journey-step.is-active .cert-ready,
    .journey-step.is-open .cert-ready {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.85s;
    }

    /* =========================================================
       FINAL COMPLETE STATE
       ========================================================= */
    .journey-complete {
      margin-top: 38px;
      display: flex;
      justify-content: center;
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
      pointer-events: none;
    }

    .tk-journey-stage.is-complete .journey-complete {
      opacity: 1;
      transform: translateY(0);
    }

    .complete-pill {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 14px 22px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(22, 163, 74, 0.22);
      box-shadow: 0 22px 48px -34px rgba(22, 163, 74, 0.55);
      font-family: var(--font-mono);
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .complete-check {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--emerald);
      color: #fff;
      display: grid;
      place-items: center;
      flex: none;
    }

    .complete-check svg {
      width: 14px;
      height: 14px;
      stroke-width: 3;
    }

    .complete-score {
      color: var(--emerald-dark);
      font-weight: 700;
    }

    .complete-ready {
      color: var(--ink);
      font-weight: 700;
      letter-spacing: 0.1em;
    }

    /* =========================================================
       RESPONSIVE
       ========================================================= */
    @media (max-width: 1080px) {
      .journey-steps {
        gap: 18px;
      }

      .step-content {
        min-height: 392px;
        padding: 22px 18px 20px;
      }

      .step-number-bg {
        font-size: 78px;
      }
    }

    @media (max-width: 900px) {
      .tk-journey-section {
        padding: 76px 20px 92px;
      }

      .tk-journey-header {
        margin-bottom: 48px;
      }

      .tk-journey-stage {
        min-height: auto;
      }

      .journey-connector--desktop {
        display: none;
      }

      .journey-connector--mobile {
        display: block;
      }

      .journey-steps {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .journey-step {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
          "node content";
        column-gap: 18px;
        align-items: start;
        text-align: left;
        padding: 0;
      }

      .journey-steps:hover .journey-step:not(:hover) {
        opacity: 1;
        transform: none;
      }

      .step-number-bg {
        top: -10px;
        left: 0;
        transform: none;
        font-size: 64px;
      }

      .step-node {
        grid-area: node;
        width: 64px;
        height: 64px;
      }

      .node-icon {
        width: 32px;
        height: 32px;
        border-radius: 11px;
      }

      .node-icon svg {
        width: 18px;
        height: 18px;
      }

      .step-content {
        grid-area: content;
        margin-top: 0;
        min-height: auto;
      }

      .mini {
        height: auto;
        min-height: 180px;
      }

      .score-wrap {
        gap: 12px;
      }

      .score-ring {
        width: 84px;
        height: 84px;
      }
    }

    @media (max-width: 560px) {
      .tk-journey-header h2 {
        font-size: 2rem;
      }

      .tk-journey-header p {
        font-size: 0.98rem;
      }

      .step-content h3 {
        font-size: 1.12rem;
      }

      .mini {
        padding: 12px;
      }

      .complete-pill {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        border-radius: 22px;
        padding: 14px 16px;
      }
    }

    @media (max-width: 900px) {
      .mini-review {
        padding-bottom: 38px;
      }

      .journey-step.is-active .explain-panel,
      .journey-step.is-open .explain-panel {
        max-height: 220px;
      }
    }

    /* =========================================================
       REDUCED MOTION (site convention: html[data-motion="reduced"])
       ========================================================= */
    html[data-motion="reduced"] .tk-journey-section,
    html[data-motion="reduced"] .tk-journey-section *,
    html[data-motion="reduced"] .tk-journey-section *::before,
    html[data-motion="reduced"] .tk-journey-section *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html[data-motion="reduced"] .journey-dot {
      display: none;
    }

    html[data-motion="reduced"] .path-progress {
      stroke-dashoffset: 0 !important;
    }

    html[data-motion="reduced"] .mobile-progress {
      height: 100% !important;
    }

    /* dark theme: remap the ported hard-coded light bits to site tokens */
    [data-theme="dark"] .tk-journey-section .bg-dots {
      background-image: radial-gradient(rgba(236, 242, 237, 0.06) 1px, transparent 1px);
    }

    [data-theme="dark"] .tk-journey-section .path-base {
      stroke: var(--border-strong);
    }

    [data-theme="dark"] .tk-journey-section .step-content,
    [data-theme="dark"] .tk-journey-section .journey-step.is-active .step-content,
    [data-theme="dark"] .tk-journey-section .journey-step.is-open .step-content,
    [data-theme="dark"] .tk-journey-section .complete-pill {
      background: var(--bg-elevated);
    }

    [data-theme="dark"] .tk-journey-section .mini {
      background: var(--bg-inset);
    }

    [data-theme="dark"] .tk-journey-section .search-field,
    [data-theme="dark"] .tk-journey-section .mini-option,
    [data-theme="dark"] .tk-journey-section .review-row,
    [data-theme="dark"] .tk-journey-section .mini-badge,
    [data-theme="dark"] .tk-journey-section .radio::after {
      background: var(--bg-elevated);
    }

    [data-theme="dark"] .tk-journey-section .search-tags span {
      background: var(--bg-inset);
    }

    [data-theme="dark"] .tk-journey-section .mini-badge-lines i {
      background: var(--border);
    }

    [data-theme="dark"] .tk-journey-section .mini-badge-lines i:first-child {
      background: var(--primary-soft);
    }

    [data-theme="dark"] .tk-journey-section .mini-stem,
    [data-theme="dark"] .tk-journey-section .explain-panel p {
      color: var(--text);
    }

    [data-theme="dark"] .tk-journey-section .journey-step.is-open .mini-option[data-correct],
    [data-theme="dark"] .tk-journey-section .journey-step.is-active .mini-option[data-correct] {
      color: var(--primary-ink);
    }

    [data-theme="dark"] .tk-journey-section .radio {
      border-color: var(--border-strong);
    }

    [data-theme="dark"] .tk-journey-section .mark {
      background: var(--border-strong);
    }

    [data-theme="dark"] .tk-journey-section .explain-panel {
      background: rgba(249, 115, 22, 0.12);
      border-color: rgba(249, 115, 22, 0.3);
    }

    [data-theme="dark"] .tk-journey-section .ring-bg {
      stroke: var(--border);
    }

    [data-theme="dark"] .tk-journey-section .score-bar {
      background: var(--border);
    }

    [data-theme="dark"] .tk-journey-section .cert-ready-text b {
      color: var(--accent);
    }

    [data-theme="dark"] .tk-journey-section .cert-ready-text span {
      color: var(--accent-ink);
    }

/* ==========================================================================
   Home section: "See exactly what the exam looks like" (answer-sheet style)
   Ported from Qwen5.html. Scoped to .tk-sheet-section; site tokens +
   html[data-motion] only.
   ========================================================================== */
.tk-sheet-section{
      --warm-white: var(--bg);
      --paper: var(--bg-elevated);
      --paper-deep: var(--bg-inset);
      --paper-shadow: rgba(60, 48, 30, 0.18);

      --ink: var(--text);
      --ink-print: var(--text);
      --muted: var(--text-subtle);
      --muted-soft: var(--text-subtle);

      --graphite: var(--text);
      --graphite-soft: var(--text-subtle);

      
      --border-soft: var(--border);
      --track: var(--border);

      --rule: rgba(43, 38, 32, 0.06);
      --margin-red: rgba(214, 93, 77, 0.28);

      --emerald: var(--primary);
      --emerald-dark: var(--primary-strong);
      --emerald-deep: var(--primary-ink);
      --emerald-soft: var(--primary-soft);

      --amber: var(--accent);
      --amber-dark: var(--accent-ink);
      --amber-soft: var(--accent-soft);
      --highlighter: rgba(245, 158, 11, 0.30);

      --coral: #F97316;
      --coral-dark: #C2410C;
      --coral-soft: rgba(249, 115, 22, 0.13);

      --gold: #D97706;
      --gold-dark: #92400E;
      --gold-soft: rgba(217, 119, 6, 0.14);

      --stamp-red: #D65D4D;

      --font-body: var(--font);
      --font-display: var(--font);
      --font-mono: var(--font);
      --font-hand: var(--font);

      --ease-out: var(--ease);
      --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
      --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    }.tk-sheet-section{
      position: relative;
      isolation: isolate;
      overflow: hidden;
      padding: 96px 24px 104px;
      background:
        radial-gradient(circle at 14% 16%, rgba(22, 163, 74, 0.13), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.15), transparent 28%),
        radial-gradient(circle at 52% 92%, rgba(249, 115, 22, 0.10), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(22, 163, 74, 0.08), transparent 30%),
        linear-gradient(180deg, #FBFBF6, var(--warm-white));
    }.tk-sheet-section .tk-sheet-bg{
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }.tk-sheet-section .sheet-curve{ position: absolute; opacity: 0.15; }.tk-sheet-section .sheet-curve.one{ top: 8%; left: -5%; width: 430px; }.tk-sheet-section .sheet-curve.two{ right: -6%; bottom: 12%; width: 470px; transform: rotate(9deg); }.tk-sheet-section .sheet-symbol{
      position: absolute;
      font-family: var(--font-mono);
      font-weight: 700;
      color: rgba(60, 48, 30, 0.06);
      user-select: none;
      animation: sheetFloat 18s var(--ease-smooth) infinite;
    }.tk-sheet-section .sheet-symbol.s1{ top: 15%; left: 7%; font-size: 34px; }.tk-sheet-section .sheet-symbol.s2{ top: 27%; right: 9%; font-size: 28px; animation-delay: 2s; }.tk-sheet-section .sheet-symbol.s3{ bottom: 22%; left: 12%; font-size: 38px; animation-delay: 1s; }.tk-sheet-section .sheet-symbol.s4{ bottom: 16%; right: 16%; font-size: 30px; animation-delay: 3s; }@keyframes sheetFloat{
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-10px) rotate(2deg); }
    }.tk-sheet-section::before{
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image: radial-gradient(rgba(60, 48, 30, 0.045) 1px, transparent 1px);
      background-size: 26px 26px;
      -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 12%, transparent 74%);
      mask-image: radial-gradient(circle at 50% 45%, #000 12%, transparent 74%);
      opacity: 0.6;
    }.tk-sheet-section .tk-shell{
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 60px;
      align-items: center;
    }.tk-sheet-section .tk-eyebrow{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 14px;
      padding: 7px 12px;
      border-radius: 4px;
      background: var(--paper);
      border: 1px dashed var(--border);
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--emerald-dark);
      transform: rotate(-1deg);
    }.tk-sheet-section .tk-eyebrow i{
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--emerald);
      box-shadow: 0 0 0 4px var(--emerald-soft);
    }.tk-sheet-section .tk-copy h2{
      margin: 0 0 14px;
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.1rem);
      line-height: 1.04;
      letter-spacing: -0.04em;
      font-weight: 800;
      color: var(--ink);
    }.tk-sheet-section .tk-lede{
      margin: 0;
      max-width: 540px;
      font-size: 1.02rem;
      line-height: 1.7;
      color: var(--muted);
    }.tk-sheet-section .tk-notes{
      list-style: none;
      margin: 30px 0 0;
      padding: 0;
      display: grid;
      gap: 12px;
    }.tk-sheet-section .tk-note{
      position: relative;
      display: grid;
      grid-template-columns: 8px minmax(0, 1fr);
      gap: 14px;
      align-items: stretch;
      padding: 14px 16px 14px 14px;
      background: var(--paper);
      border: 1px solid var(--border);
      border-radius: 6px;
      box-shadow: 0 10px 22px -18px var(--paper-shadow);
      cursor: pointer;
      transition:
        transform 0.28s var(--ease-out),
        box-shadow 0.28s var(--ease-smooth),
        background 0.28s ease,
        border-color 0.25s ease;
      outline: none;
      overflow: hidden;
    }.tk-sheet-section .tk-note::before{
      content: "";
      grid-row: 1 / -1;
      width: 6px;
      align-self: stretch;
      border-radius: 3px;
      background: var(--tab, var(--emerald));
      transition: width 0.28s var(--ease-out), box-shadow 0.28s ease;
    }.tk-sheet-section .tk-note[data-focus="question"]{ --tab: var(--emerald); }.tk-sheet-section .tk-note[data-focus="answer"]{ --tab: var(--amber); }.tk-sheet-section .tk-note[data-focus="progress"]{ --tab: var(--coral); }.tk-sheet-section .tk-note[data-focus="topics"]{ --tab: var(--gold); }.tk-sheet-section .tk-note::after{
      content: "";
      position: absolute;
      top: 0; right: 0;
      width: 18px; height: 18px;
      background: linear-gradient(225deg, var(--warm-white) 50%, var(--paper-deep) 50%);
      border-bottom-left-radius: 6px;
      box-shadow: -2px 2px 4px rgba(60, 48, 30, 0.06);
    }.tk-sheet-section .tk-note:hover, .tk-sheet-section .tk-note:focus-visible, .tk-sheet-section .tk-note.is-active{
      transform: translateY(-2px) rotate(-0.4deg);
      border-color: color-mix(in srgb, var(--tab) 55%, var(--border));
      background: color-mix(in srgb, var(--tab) 9%, var(--paper));
      box-shadow: 0 18px 34px -20px var(--paper-shadow),
        0 0 0 3px color-mix(in srgb, var(--tab) 24%, transparent);
    }.tk-sheet-section .tk-note.is-active::before, .tk-sheet-section .tk-note:hover::before{
      width: 8px;
      box-shadow: 0 0 14px color-mix(in srgb, var(--tab) 70%, transparent);
    }.tk-sheet-section .tk-note:focus-visible{
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--tab) 30%, transparent);
    }.tk-sheet-section .tk-note-body{ grid-column: 2; min-width: 0; }.tk-sheet-section .tk-note h3{
      margin: 0 0 4px;
      font-family: var(--font-display);
      font-size: 1rem;
      line-height: 1.25;
      letter-spacing: -0.02em;
      font-weight: 800;
      color: var(--ink-print);
      display: flex;
      align-items: center;
      gap: 8px;
    }.tk-sheet-section .tk-note h3 svg{
      width: 18px; height: 18px;
      flex: none;
      color: var(--tab);
      stroke-width: 2.1;
    }.tk-sheet-section .tk-note p{
      margin: 0;
      font-size: 0.9rem;
      line-height: 1.55;
      color: var(--muted);
    }.tk-sheet-section .tk-note .hint{
      display: inline-block;
      margin-top: 8px;
      font-family: var(--font-hand);
      font-size: 15px;
      font-weight: 600;
      color: var(--tab);
      opacity: 0;
      transform: translateY(3px);
      transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
    }.tk-sheet-section .tk-note:hover .hint, .tk-sheet-section .tk-note.is-active .hint{
      opacity: 1;
      transform: translateY(0);
    }.tk-sheet-section .tk-cta{
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 28px;
      padding: 13px 24px;
      border-radius: 6px;
      background: var(--primary-strong);
      color: var(--on-primary);
      text-decoration: none;
      font-weight: 700;
      font-size: 14px;
      border: 1px solid rgba(0,0,0,0.2);
      box-shadow: 0 14px 28px -18px rgba(31, 27, 22, 0.6);
      overflow: hidden;
      transition: background 0.28s ease, transform 0.28s var(--ease-out), box-shadow 0.28s ease;
    }.tk-sheet-section .tk-cta::after{
      content: "";
      position: absolute;
      top: 0; left: -45%;
      width: 38%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transform: skewX(-14deg);
      transition: left 0.65s var(--ease-smooth);
    }.tk-sheet-section .tk-cta:hover{
      background: var(--primary-hover);
      transform: translateY(-1px);
      box-shadow: 0 18px 34px -18px rgba(22, 163, 74, 0.5);
    }.tk-sheet-section .tk-cta:hover::after{ left: 120%; }.tk-sheet-section .tk-cta svg{ width: 15px; height: 15px; transition: transform 0.28s var(--ease-out); }.tk-sheet-section .tk-cta:hover svg{ transform: translateX(4px); }.tk-sheet-section .tk-reveal{
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }.tk-sheet-section.is-visible .tk-reveal{
      opacity: 1;
      transform: translateY(0);
    }.tk-sheet-section .tk-eyebrow.tk-reveal{ transition-delay: 0s; }.tk-sheet-section .tk-copy h2.tk-reveal{ transition-delay: 0.05s; }.tk-sheet-section .tk-lede.tk-reveal{ transition-delay: 0.12s; }.tk-sheet-section .tk-notes .tk-note:nth-child(1){ transition-delay: 0.18s; }.tk-sheet-section .tk-notes .tk-note:nth-child(2){ transition-delay: 0.25s; }.tk-sheet-section .tk-notes .tk-note:nth-child(3){ transition-delay: 0.32s; }.tk-sheet-section .tk-notes .tk-note:nth-child(4){ transition-delay: 0.39s; }.tk-sheet-section .tk-cta.tk-reveal{ transition-delay: 0.46s; }.tk-sheet-section .tk-demo{
      position: relative;
      min-width: 0;
    }.tk-sheet-section .paper-under{
      position: absolute;
      inset: 0;
      background: var(--paper-deep);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 18px 40px -26px var(--paper-shadow);
      pointer-events: none;
    }.tk-sheet-section .paper-under.one{ transform: rotate(1.6deg) translate(10px, 10px); opacity: 0.75; }.tk-sheet-section .paper-under.two{ transform: rotate(-1.4deg) translate(-8px, 16px); opacity: 0.5; }.tk-sheet-section .exam-ui{
      position: relative;
      z-index: 1;
      width: 100%;
      min-height: 660px;
      display: grid;
      grid-template-rows: auto auto auto minmax(0, 1fr);
      background:
        repeating-linear-gradient(0deg, transparent 0 30px, var(--rule) 30px 31px),
        var(--paper);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 30px 60px -34px var(--paper-shadow);
      overflow: hidden;
      opacity: 0;
      transform: translateY(20px) rotate(-0.6deg);
      transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
    }.tk-sheet-section.is-visible .exam-ui{
      opacity: 1;
      transform: translateY(0) rotate(-0.3deg);
      transition-delay: 0.12s;
    }.tk-sheet-section .exam-ui::before{
      content: "";
      position: absolute;
      top: 0; bottom: 0; left: 46px;
      width: 1px;
      background: var(--margin-red);
      pointer-events: none;
      z-index: 3;
    }.tk-sheet-section .corner-fold{
      position: absolute;
      bottom: 0; right: 0;
      width: 34px; height: 34px;
      background: linear-gradient(315deg, var(--paper-deep) 50%, transparent 50%);
      box-shadow: -3px -3px 6px rgba(60, 48, 30, 0.06);
      z-index: 6;
      pointer-events: none;
    }.tk-sheet-section .sheet-head{
      position: relative;
      z-index: 2;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding: 22px 24px 16px 62px;
      border-bottom: 2px solid var(--ink-print);
    }.tk-sheet-section .sheet-title strong{
      display: block;
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--ink-print);
    }.tk-sheet-section .sheet-title small{
      display: block;
      margin-top: 3px;
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }.tk-sheet-section .sheet-stamps{
      display: flex;
      align-items: center;
      gap: 12px;
      flex: none;
    }.tk-sheet-section .live-stamp{
      position: relative;
      padding: 5px 10px;
      border: 2px solid var(--emerald-dark);
      border-radius: 4px;
      color: var(--emerald-dark);
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transform: rotate(-6deg);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      opacity: 0.9;
    }.tk-sheet-section .live-stamp i{
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--emerald);
      animation: livePulse 2.2s var(--ease-smooth) infinite;
    }@keyframes livePulse{
      0% { box-shadow: 0 0 0 0 rgba(22,163,74,.35); }
      70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
      100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
    }.tk-sheet-section .timer-stamp{
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 10px;
      border: 1px dashed var(--border);
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 700;
      color: var(--ink-print);
      font-variant-numeric: tabular-nums;
      background: rgba(255,255,255,0.5);
    }.tk-sheet-section .timer-stamp svg{ width: 15px; height: 15px; color: var(--muted); }.tk-sheet-section .timer-stamp.pulse svg{
      animation: timerPulse 0.6s var(--ease-smooth);
    }@keyframes timerPulse{
      50% { transform: scale(1.15); color: var(--amber-dark); }
    }.tk-sheet-section .sheet-progress{
      position: relative;
      z-index: 2;
      padding: 14px 24px 14px 62px;
      border-bottom: 1px dashed var(--border);
    }.tk-sheet-section .sheet-progress-meta{
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }.tk-sheet-section .sheet-progress-meta b{ color: var(--emerald-dark); font-weight: 800; }.tk-sheet-section .exam-ui-bar{
      position: relative;
      height: 10px;
      margin-top: 9px;
      border-radius: 99px;
      background: var(--track);
      border: 1px solid var(--border-soft);
      box-shadow: inset 0 1px 2px rgba(60,48,30,0.06);
    }.tk-sheet-section .exam-ui-fill{
      position: absolute;
      inset: 1px auto 1px 1px;
      width: 40%;
      border-radius: 99px;
      background: repeating-linear-gradient(45deg, var(--emerald) 0 8px, var(--emerald-dark) 8px 16px);
      transition: width 0.55s var(--ease-out);
    }.tk-sheet-section .exam-ui-thumb{
      position: absolute;
      top: 50%; left: 40%;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--paper);
      border: 3px solid var(--emerald-dark);
      transform: translate(-50%, -50%);
      box-shadow: 0 3px 8px -3px rgba(22,163,74,.5);
      transition: left 0.55s var(--ease-out);
    }.tk-sheet-section .saved-stamp{
      position: absolute;
      right: 18px; top: 34px;
      padding: 3px 8px;
      border: 2px solid var(--emerald-dark);
      border-radius: 4px;
      color: var(--emerald-dark);
      font-family: var(--font-hand);
      font-size: 16px;
      font-weight: 700;
      transform: rotate(4deg) scale(0.7);
      opacity: 0;
      transition: opacity 0.25s ease, transform 0.35s var(--ease-pop);
      pointer-events: none;
    }.tk-sheet-section .exam-ui.focus-progress .saved-stamp{
      opacity: 1;
      transform: rotate(4deg) scale(1);
    }.tk-sheet-section .exam-ui.focus-progress .exam-ui-bar{
      box-shadow: inset 0 1px 2px rgba(60,48,30,.06), 0 0 0 4px var(--emerald-soft);
    }.tk-sheet-section .answer-grid{
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 12px 24px 12px 62px;
      border-bottom: 1px solid var(--border-soft);
      overflow-x: auto;
      scrollbar-width: none;
    }.tk-sheet-section .answer-grid::-webkit-scrollbar{ display: none; }.tk-sheet-section .grid-cell{
      flex: none;
      width: 30px; height: 30px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.6);
      display: grid;
      place-items: center;
      font-family: var(--font-mono);
      font-size: 9.5px;
      font-weight: 700;
      color: var(--muted-soft);
      transition: all 0.28s var(--ease-smooth);
    }.tk-sheet-section .grid-cell.done{
      background: var(--graphite);
      border-color: var(--graphite);
      color: #F5F1E6;
    }.tk-sheet-section .grid-cell.current{
      border: 2px solid var(--amber);
      color: var(--amber-dark);
      background: var(--amber-soft);
      animation: currentPulse 1.8s var(--ease-smooth) infinite;
    }@keyframes currentPulse{
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.07); }
    }.tk-sheet-section .sheet-body{
      position: relative;
      z-index: 2;
      min-height: 0;
      padding: 20px 24px 26px 62px;
    }.tk-sheet-section .q-stage{
      position: relative;
      transition: transform 0.42s var(--ease-out), opacity 0.32s ease;
      will-change: transform, opacity;
    }.tk-sheet-section .q-stage.out-up{ opacity: 0; transform: translateY(-18px); }.tk-sheet-section .q-stage.in-down{ animation: stageInDown 0.45s var(--ease-out); }@keyframes stageInDown{
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }.tk-sheet-section .q-label{
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
      padding: 4px 8px;
      border-radius: 4px;
      transition: background 0.25s ease, box-shadow 0.25s ease;
    }.tk-sheet-section .q-label b{ color: var(--ink-print); font-weight: 800; }.tk-sheet-section .q-stem{
      margin: 0 0 18px;
      font-size: 1.08rem;
      line-height: 1.55;
      font-weight: 600;
      color: var(--ink-print);
      padding: 4px 6px;
      border-radius: 4px;
      transition: background 0.25s ease, box-shadow 0.25s ease;
    }.tk-sheet-section .exam-ui.focus-question .q-label, .tk-sheet-section .exam-ui.focus-question .q-stem{
      background: var(--highlighter);
      box-shadow: 0 0 0 4px var(--highlighter);
    }.tk-sheet-section .tk-q-options{
      position: relative;
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
    }.tk-sheet-section .tk-q-option{
      display: grid;
      grid-template-columns: 26px 22px minmax(0, 1fr) 26px;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 6px;
      border: 1px solid transparent;
      border-bottom: 1px solid var(--border-soft);
      background: transparent;
      color: var(--ink-print);
      font-size: 0.95rem;
      line-height: 1.45;
      opacity: 0;
      transform: translateY(8px);
      transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }.tk-sheet-section .tk-q-options.enter .tk-q-option{
      animation: optionIn 0.35s var(--ease-out) forwards;
    }.tk-sheet-section .tk-q-options.enter .tk-q-option:nth-child(1){ animation-delay: 0.04s; }.tk-sheet-section .tk-q-options.enter .tk-q-option:nth-child(2){ animation-delay: 0.12s; }.tk-sheet-section .tk-q-options.enter .tk-q-option:nth-child(3){ animation-delay: 0.20s; }.tk-sheet-section .tk-q-options.enter .tk-q-option:nth-child(4){ animation-delay: 0.28s; }@keyframes optionIn{
      to { opacity: 1; transform: translateY(0); }
    }.tk-sheet-section .omr{
      position: relative;
      width: 22px; height: 22px;
      border-radius: 50%;
      border: 1.5px solid var(--graphite-soft);
      background: rgba(255,255,255,0.7);
      flex: none;
    }.tk-sheet-section .omr-fill{
      position: absolute;
      inset: 2px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #6b675f, var(--graphite) 65%);
      transform: scale(0) rotate(0deg);
      opacity: 0;
      transition: transform 0.3s var(--ease-pop), opacity 0.2s ease;
    }.tk-sheet-section .tk-q-option.marked .omr-fill{
      transform: scale(1) rotate(8deg);
      opacity: 1;
    }.tk-sheet-section .tk-q-option.marked{
      background: rgba(22, 163, 74, 0.06);
      border: 1px solid rgba(22, 163, 74, 0.25);
      box-shadow: 0 0 0 3px rgba(22,163,74,.06);
    }.tk-sheet-section .opt-letter{
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
    }.tk-sheet-section .tk-q-option.marked .opt-letter{ color: var(--emerald-deep); }.tk-sheet-section .grade-mark{
      width: 26px; height: 26px;
      display: grid;
      place-items: center;
      opacity: 0;
      transform: scale(0.6) rotate(-8deg);
      transition: opacity 0.25s ease, transform 0.35s var(--ease-pop);
    }.tk-sheet-section .grade-mark svg{ width: 26px; height: 26px; }.tk-sheet-section .grade-path{
      fill: none;
      stroke: var(--emerald);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 24;
      stroke-dashoffset: 24;
      transition: stroke-dashoffset 0.35s ease 0.05s;
    }.tk-sheet-section .tk-q-option.graded .grade-mark{
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }.tk-sheet-section .tk-q-option.graded .grade-path{ stroke-dashoffset: 0; }.tk-sheet-section .exam-ui.focus-answer .tk-q-option.marked{
      background: rgba(22, 163, 74, 0.10);
      box-shadow: 0 0 0 4px rgba(22,163,74,.10);
    }.tk-sheet-section .pencil{
      position: absolute;
      left: 0; top: 0;
      width: 30px; height: 30px;
      z-index: 8;
      pointer-events: none;
      opacity: 0;
      transform: translate(0, 0) rotate(0deg);
      transition: transform 0.45s var(--ease-out), opacity 0.2s ease;
      filter: drop-shadow(0 4px 6px rgba(60,48,30,0.25));
    }.tk-sheet-section .pencil.visible{ opacity: 1; }.tk-sheet-section .pencil.writing{ animation: pencilWiggle 0.5s var(--ease-smooth); }@keyframes pencilWiggle{
      0%, 100% { rotate: 0deg; }
      25% { rotate: -6deg; }
      50% { rotate: 4deg; }
      75% { rotate: -3deg; }
    }.tk-sheet-section .verdict{
      margin-top: 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-hand);
      font-size: 20px;
      font-weight: 700;
      color: var(--emerald-dark);
      opacity: 0;
      transform: translateY(6px) rotate(-1deg);
      transition: opacity 0.28s ease, transform 0.35s var(--ease-pop);
    }.tk-sheet-section .verdict.show{ opacity: 1; transform: translateY(0) rotate(-1deg); }.tk-sheet-section .tk-q-explain{
      margin-top: 10px;
      border-radius: 6px;
      border-left: 4px solid var(--amber);
      background: rgba(245, 158, 11, 0.08);
      padding: 0 14px;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      transition:
        max-height 0.45s var(--ease-out),
        opacity 0.3s ease,
        transform 0.38s var(--ease-out),
        padding 0.35s ease;
    }.tk-sheet-section .tk-q-explain.open{
      max-height: 160px;
      opacity: 1;
      transform: translateY(0);
      padding: 12px 14px;
    }.tk-sheet-section .tk-q-explain strong{
      display: block;
      font-family: var(--font-hand);
      font-size: 18px;
      font-weight: 700;
      color: var(--amber-dark);
      margin-bottom: 4px;
    }.tk-sheet-section .tk-q-explain p{
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.58;
      color: var(--ink-print);
    }.tk-sheet-section .exam-ui.focus-answer .tk-q-explain.open{
      background: rgba(22, 163, 74, 0.07);
      border-left-color: var(--emerald);
    }.tk-sheet-section .report-overlay{
      position: absolute;
      inset: 20px;
      z-index: 7;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--paper);
      box-shadow: 0 24px 54px -38px var(--paper-shadow);
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transform: scale(0.98) rotate(-0.5deg);
      transition: opacity 0.3s ease, transform 0.38s var(--ease-out);
    }.tk-sheet-section .exam-ui.focus-topics .report-overlay{
      opacity: 1;
      pointer-events: auto;
      transform: scale(1) rotate(-0.5deg);
    }.tk-sheet-section .exam-ui.focus-topics .q-stage{ opacity: 0.1; }.tk-sheet-section .report-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--ink-print);
    }.tk-sheet-section .report-head b{
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--ink-print);
    }.tk-sheet-section .report-grade{
      font-family: var(--font-hand);
      font-size: 26px;
      font-weight: 700;
      color: var(--emerald-dark);
      transform: rotate(6deg);
      border: 2px solid var(--emerald-dark);
      border-radius: 6px;
      padding: 0 8px;
    }.tk-sheet-section .report-list{ display: grid; gap: 12px; }.tk-sheet-section .report-row{
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr) 44px;
      align-items: center;
      gap: 12px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
    }.tk-sheet-section .report-row b{
      color: var(--ink-print);
      font-weight: 700;
      text-align: right;
    }.tk-sheet-section .report-bar{
      height: 8px;
      border-radius: 99px;
      background: var(--track);
      border: 1px solid var(--border-soft);
      overflow: hidden;
    }.tk-sheet-section .report-bar i{
      display: block;
      height: 100%;
      width: 0%;
      border-radius: 99px;
      background: repeating-linear-gradient(45deg, var(--emerald) 0 6px, var(--emerald-dark) 6px 12px);
      transition: width 0.8s var(--ease-out);
    }.tk-sheet-section .exam-ui.focus-topics .report-bar i{ width: var(--v); }@media (max-width: 1080px){.tk-sheet-section .tk-shell{ gap: 40px; }.tk-sheet-section .exam-ui{ min-height: 620px; }
    }@media (max-width: 940px){.tk-sheet-section{ padding: 76px 20px 88px; }.tk-sheet-section .tk-shell{ grid-template-columns: 1fr; gap: 34px; }.tk-sheet-section .tk-copy{ order: 1; }.tk-sheet-section .tk-demo{ order: 2; }.tk-sheet-section .exam-ui{ min-height: 600px; }
    }@media (max-width: 640px){.tk-sheet-section .tk-copy h2{ font-size: 2rem; }.tk-sheet-section .tk-lede{ font-size: 0.98rem; }.tk-sheet-section .exam-ui::before{ left: 22px; }.tk-sheet-section .sheet-head, .tk-sheet-section .sheet-progress, .tk-sheet-section .answer-grid, .tk-sheet-section .sheet-body{ padding-left: 38px; padding-right: 16px; }.tk-sheet-section .sheet-title strong{ font-size: 15px; }.tk-sheet-section .live-stamp{ display: none; }.tk-sheet-section .q-stem{ font-size: 1rem; }.tk-sheet-section .tk-q-option{
        grid-template-columns: 22px 18px minmax(0, 1fr) 22px;
        gap: 9px;
        font-size: 0.9rem;
      }.tk-sheet-section .report-row{ grid-template-columns: 86px minmax(0,1fr) 40px; font-size: 10px; }
    }

html[data-motion="reduced"] .tk-sheet-section *,
html[data-motion="reduced"] .tk-sheet-section *::before,
html[data-motion="reduced"] .tk-sheet-section *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html[data-motion="reduced"] .tk-sheet-section .tk-reveal,
html[data-motion="reduced"] .tk-sheet-section .exam-ui,
html[data-motion="reduced"] .tk-sheet-section .tk-q-option { opacity: 1 !important; transform: none !important; }
html[data-motion="reduced"] .tk-sheet-section .pencil,
html[data-motion="reduced"] .tk-sheet-section .report-overlay,
html[data-motion="reduced"] .tk-sheet-section .sheet-symbol,
html[data-motion="reduced"] .tk-sheet-section .sheet-curve { display: none !important; }
html[data-motion="reduced"] .tk-sheet-section .tk-q-explain { max-height: none !important; opacity: 1 !important; transform: none !important; padding: 12px 14px !important; }
html[data-motion="reduced"] .tk-sheet-section .verdict { opacity: 1 !important; transform: none !important; }
html[data-motion="reduced"] .tk-sheet-section .grade-path { stroke-dashoffset: 0 !important; }
html[data-motion="reduced"] .tk-sheet-section .omr-fill { transform: scale(1) !important; opacity: 1 !important; }

/* dark theme: map the cream "paper" surfaces to site tokens */
[data-theme="dark"] .tk-sheet-section .tk-sheet-section,
[data-theme="dark"] .tk-sheet-section { background-color: var(--bg); --rule: rgba(236, 242, 237, 0.08); --margin-red: rgba(214, 93, 77, 0.4); }
[data-theme="dark"] .tk-sheet-section .sheet-symbol { color: rgba(236, 242, 237, 0.05); }
[data-theme="dark"] .tk-sheet-section .exam-ui { background: var(--bg-elevated); }
[data-theme="dark"] .tk-sheet-section .sheet-head,
[data-theme="dark"] .tk-sheet-section .tk-q-nav { background: var(--bg-inset); }

/* ==========================================================================
   Home visual upgrade â€” certification seals, category chip icons,
   study-guide covers, verified testimonials, FAQ polish
   ========================================================================== */

/* ---------- Category chips with icons ---------- */
.chip-cat { display: inline-flex; align-items: center; gap: 7px; }
.chip-cat .icon { color: var(--primary-ink); opacity: 0.85; transition: transform var(--dur-1) var(--ease); }
.chip-cat:hover .icon { transform: scale(1.12); }

/* ---------- Certification seal (reusable badge) ---------- */
.cert-seal {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.cert-seal::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, transparent);
}
.cert-seal .icon {
  width: 18px; height: 18px; padding: 3px; box-sizing: content-box;
  border-radius: 50%; background: var(--primary-strong); color: #fff;
  margin-bottom: 2px;
}
.cert-seal b { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.cert-seal i {
  font-style: normal; font-size: 0.52rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-ink);
}
.cert-seal-b { --seal-tint: 1; border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.cert-seal-b::before { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.cert-seal-b .icon { background: var(--accent-hover); }
.cert-seal-b i { color: var(--primary-ink); }

/* ---------- Final CTA: floating seal cluster ---------- */
.cta-band-cert { justify-content: space-between; }
.cta-band-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cta-band-copy .cta-actions { margin-top: 14px; }
.cta-seal-field {
  position: relative; flex: 0 0 auto; width: 250px; height: 220px;
  pointer-events: none;
}
.cta-seal-field .cert-seal { position: absolute; animation: cert-float 7s var(--ease) infinite alternate; }
.cta-seal-field .cert-seal:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.cta-seal-field .cert-seal:nth-child(3n) { animation-duration: 8s; animation-delay: -5s; }
.cert-seal-a { top: 6px; left: 22px; transform: rotate(-8deg); }
.cert-seal-b { top: 0; right: 0; transform: rotate(7deg) scale(0.86); }
.cert-seal-c { top: 50%; left: 50%; margin: -46px 0 0 -46px; transform: rotate(-3deg) scale(1.08); z-index: 1; }
.cert-seal-d { bottom: 0; left: 0; transform: rotate(6deg) scale(0.9); }
.cert-seal-e { bottom: 4px; right: 14px; transform: rotate(-7deg) scale(0.82); }
@keyframes cert-float {
  from { translate: 0 0; }
  to { translate: 0 -9px; }
}
html[data-motion="reduced"] .cta-seal-field .cert-seal { animation: none; }

/* ---------- Study guide covers ---------- */
.post-card { padding-top: 0; }
.post-card .post-card-cover {
  position: relative; height: auto; aspect-ratio: 5 / 4; margin: 0 -22px 16px;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  background:
    radial-gradient(120px 80px at 85% 20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 55%, var(--bg-alt)));
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  display: flex; align-items: center;
}
.post-card .post-card-cover-icon {
  position: absolute; right: -12px; bottom: -18px; width: 108px; height: 108px;
  color: var(--primary); opacity: 0.16; transform: rotate(-8deg);
}
.post-card .post-card-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.post-card .post-card-cover.has-cover { border-bottom-color: color-mix(in srgb, var(--primary) 22%, var(--border)); }
.post-card .post-card-cover.has-cover .post-card-cover-icon,
.post-card .post-card-cover.has-cover::before,
.post-card .post-card-cover.has-cover::after { content: none; display: none; }

/* ---------- Verified testimonial badge ---------- */
.testimonial-verified {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  background: var(--success-soft); color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}
.testimonial-verified .icon { width: 14px; height: 14px; }

/* ---------- FAQ polish ---------- */
.faq[open] { box-shadow: inset 3px 0 0 var(--primary), var(--shadow-sm); }
.faq[open] summary::after { border-color: var(--primary); }
.faq[open] summary { color: var(--primary-ink); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content {
    height: 0; overflow: clip;
    transition: height var(--dur-2) var(--ease), content-visibility var(--dur-2) allow-discrete;
  }
  .faq[open]::details-content { height: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cta-seal-field { display: none; }
  .cta-band-copy { align-items: stretch; }
}
@media (max-width: 560px) {
  .cert-seal { width: 78px; height: 78px; }
  .post-card .post-card-cover { margin: 0 -22px 14px; }
}

/* ---------- Dark theme adjustments ---------- */
[data-theme="dark"] .cert-seal { background: var(--bg-inset); }
[data-theme="dark"] .cert-seal i { color: var(--accent); }
[data-theme="dark"] .post-card .post-card-cover {
  background:
    radial-gradient(120px 80px at 85% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary-soft), var(--bg-inset));
}

/* ---------- Visual pass 2: vendor chip logos, credential art, richer covers ---------- */
.chip-vendor { display: inline-flex; align-items: center; gap: 8px; }
.chip-vendor .chip-mark { width: 18px; height: 18px; }
.chip-vendor:hover .chip-mark { transform: scale(1.15); transition: transform var(--dur-1) var(--ease); }

.readiness-credential {
  width: min(320px, 100%); height: auto; margin: 20px 0 4px;
  filter: drop-shadow(var(--shadow-md));
}

/* layered exam-paper behind the graduation cap on guide covers */
.post-card .post-card-cover::before {
  content: ""; position: absolute; right: 92px; top: 20px;
  width: 58px; height: 72px; border-radius: 6px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 12px,
      color-mix(in srgb, var(--primary) 22%, transparent) 12px 14px
    ) 10px 12px / 38px 52px no-repeat,
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  transform: rotate(7deg);
  box-shadow: var(--shadow-sm);
}
.post-card .post-card-cover::after {
  content: ""; position: absolute; right: 24px; bottom: 16px;
  width: 34px; height: 20px; border-radius: 4px;
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--accent) 75%, transparent) 0 6px,
      transparent 6px) 4px 8px / 6px 12px no-repeat,
    linear-gradient(to top,
      color-mix(in srgb, var(--primary) 60%, transparent) 0 10px,
      transparent 10px) 14px 4px / 6px 16px no-repeat,
    linear-gradient(to top,
      color-mix(in srgb, var(--primary-strong) 85%, transparent) 0 14px,
      transparent 14px) 24px 0 / 6px 20px no-repeat;
}
.post-card .post-card-cover-icon { right: 30px; }
[data-theme="dark"] .post-card .post-card-cover::before { background-color: var(--bg-inset); }

/* ==========================================================================
   Home "Why certtop" â€” one practice-exam card that morphs through six
   states, driven by the six benefit buttons. Ported from the Qwen6 study.
   Every rule is scoped to .tk-why-section; shared names were renamed
   (.tkw-benefit, .tkw-ui, .tkw-head, .tkw-body, .tkw-qtext, .tkw-qcounter)
   so the global .benefit / .exam-ui / .exam-head / .exam-body / .q-text
   rules can't leak in.
   ========================================================================== */
.tk-why-section { position: relative; }
.tk-why-section .container { position: relative; }
.tk-why-section .section-head { position: relative; z-index: 1; }
.tk-why-section .tk-why-grid { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: center; }

/* connector: active benefit -> card */
.tk-why-section .connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.tk-why-section .connector path { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none; opacity: 0.8; }
.tk-why-section .connector .cdot { fill: var(--accent); }

/* benefit nav */
.tk-why-section .benefits { position: relative; z-index: 2; display: flex; flex-direction: column; }
.tk-why-section .tkw-benefit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); cursor: pointer; font-family: inherit; font-size: 1rem; color: var(--text); position: relative; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); overflow: hidden; }
.tk-why-section .tkw-benefit + .tkw-benefit { margin-top: 10px; }
.tk-why-section .tkw-benefit:hover { border-color: var(--border-strong); }
.tk-why-section .tkw-benefit:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tk-why-section .tkw-benefit.is-active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); transform: translateX(3px); }
.tk-why-section .b-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-inset); color: var(--text-subtle); flex: none; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring); }
.tk-why-section .b-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-why-section .tkw-benefit.is-active .b-ico { background: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.tk-why-section .b-body { flex: 1; min-width: 0; }
.tk-why-section .b-body b { display: block; font-size: 0.9rem; letter-spacing: -0.01em; color: var(--text); }
.tk-why-section .b-body small { display: block; color: var(--text-muted); font-size: 0.73rem; margin-top: 1px; }
.tk-why-section .b-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-inset); color: var(--text-subtle); font-weight: 800; font-size: 0.7rem; flex: none; position: relative; transition: background 0.3s, color 0.3s; }
.tk-why-section .b-num .ck { position: absolute; width: 15px; height: 15px; fill: none; stroke: var(--primary-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.tk-why-section .tkw-benefit.is-done .b-num .n { display: none; }
.tk-why-section .tkw-benefit.is-done .b-num .ck { display: block; }
.tk-why-section .tkw-benefit.is-done .b-num { background: var(--primary-soft); color: var(--primary-ink); }
.tk-why-section .b-underline { position: absolute; left: 14px; bottom: 7px; height: 2px; width: 0; background: var(--primary); border-radius: 2px; transition: width 0.5s var(--ease); }
.tk-why-section .tkw-benefit.is-active .b-underline { width: calc(100% - 28px); }

/* exam card + peeking decorations */
.tk-why-section .tkw-col { position: relative; z-index: 2; display: flex; justify-content: center; }
.tk-why-section .tkw-stage { position: relative; width: 100%; max-width: 640px; display: flex; justify-content: center; }
.tk-why-section .deco { position: absolute; z-index: 1; pointer-events: none; opacity: 0; }
.tk-why-section .tkw-stage.in .deco { animation: tkwDecoIn 0.8s var(--ease) both; }
@keyframes tkwDecoIn { from { opacity: 0; transform: translateY(10px) scale(0.8); } to { opacity: 1; transform: none; } }
.tk-why-section .d-ring { top: -44px; right: -14px; width: 74px; height: 74px; animation-delay: 0.5s; }
.tk-why-section .d-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tk-why-section .d-ring .dr-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.tk-why-section .d-ring .dr-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 21; }
.tk-why-section .d-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; color: var(--accent-ink); }
.tk-why-section .d-badge { top: -30px; left: -10px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-md); animation-delay: 0.35s; }
.tk-why-section .d-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-why-section .d-q { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-elevated); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--primary-ink); box-shadow: var(--shadow-md); font-size: 0.85rem; }
.tk-why-section .d-q1 { bottom: -16px; left: 6%; animation-delay: 0.65s; }
.tk-why-section .d-q2 { bottom: 26px; right: -14px; animation-delay: 0.8s; color: var(--accent-ink); }

/* the morphing card */
.tk-why-section .tkw-ui { position: relative; width: 100%; max-width: 620px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; transition: max-width 0.7s var(--ease), border-radius 0.7s var(--ease); }
.tk-why-section .tkw-ui.is-mobile { max-width: 310px; border-radius: 38px; margin: 0 auto; }
.tk-why-section .tkw-ui.is-mobile::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 84px; height: 6px; border-radius: 99px; background: var(--border-strong); z-index: 6; }
.tk-why-section .tkw-ui.is-mobile::after { content: ""; position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 4px; border-radius: 99px; background: var(--border-strong); z-index: 6; }
.tk-why-section .tkw-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.tk-why-section .tkw-ui.is-mobile .tkw-head { padding: 26px 16px 12px; }
.tk-why-section .mode-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary-ink); background: var(--primary-soft); border: 1px solid var(--primary-ring); border-radius: 999px; padding: 5px 10px; }
.tk-why-section .mode-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.tk-why-section .timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.85rem; color: var(--text-muted); }
.tk-why-section .tkw-body { position: relative; min-height: 470px; }
.tk-why-section .tkw-ui.is-mobile .tkw-body { min-height: 440px; }
.tk-why-section .scene { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px) scale(0.985); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.tk-why-section .scene.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* scene: question / result / explanation */
.tk-why-section .tkw-qcounter { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 10px; }
.tk-why-section .tkw-qcounter b { color: var(--text); }
.tk-why-section .tkw-qtext { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; margin: 0 0 16px; color: var(--text); }
.tk-why-section .tkw-qtext.sm { font-size: 0.9rem; }
.tk-why-section .opts { display: grid; gap: 8px; flex: none; }
.tk-why-section .opt { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); opacity: 0; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.tk-why-section .opts.enter .opt { animation: tkwOptIn 0.5s var(--ease) both; }
.tk-why-section .opts.enter .opt:nth-child(1) { animation-delay: 0.05s; }
.tk-why-section .opts.enter .opt:nth-child(2) { animation-delay: 0.13s; }
.tk-why-section .opts.enter .opt:nth-child(3) { animation-delay: 0.21s; }
.tk-why-section .opts.enter .opt:nth-child(4) { animation-delay: 0.29s; }
@keyframes tkwOptIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tk-why-section .opt-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; position: relative; }
.tk-why-section .opt-key { font-weight: 800; font-size: 0.72rem; color: var(--text-subtle); width: 14px; }
.tk-why-section .opt-text { font-size: 0.87rem; flex: 1; color: var(--text); }
.tk-why-section .opt-check { width: 20px; height: 20px; flex: none; color: var(--primary); opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.3s var(--ease-spring); }
.tk-why-section .opt-check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tk-why-section .opt-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.tk-why-section .scene-q.show-result .opt-correct { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }
.tk-why-section .scene-q.show-result .opt-correct .opt-dot { border-color: var(--primary); background: var(--primary); }
.tk-why-section .scene-q.show-result .opt-correct .opt-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-elevated); }
.tk-why-section .scene-q.show-result .opt-correct .opt-check { opacity: 1; transform: scale(1); }
.tk-why-section .scene-q.show-result .opt-correct .opt-check svg path { animation: tkwDrawCheck 0.45s var(--ease) 0.2s both; }
@keyframes tkwDrawCheck { to { stroke-dashoffset: 0; } }
.tk-why-section .result-banner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary-ring); color: var(--primary-ink); font-weight: 700; font-size: 0.88rem; flex: none; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.tk-why-section .result-banner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tk-why-section .scene-q.show-result .result-banner { opacity: 1; transform: none; transition-delay: 0.35s; }
.tk-why-section .explain { margin-top: 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; flex: none; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease), padding 0.45s var(--ease); }
.tk-why-section .explain .exp-why { font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.tk-why-section .explain p { margin: 6px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--text); }
.tk-why-section .scene-q.show-explain .explain { max-height: 130px; opacity: 1; padding: 12px 14px; }

/* scene: progress */
.tk-why-section .prog-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 18px; }
.tk-why-section .prog-main { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; flex: 1; }
.tk-why-section .prog-ring { position: relative; width: 130px; height: 130px; }
.tk-why-section .prog-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tk-why-section .pr-bg { fill: none; stroke: var(--bg-inset); stroke-width: 9; }
.tk-why-section .pr-fg { fill: none; stroke: url(#tkWhyGrad); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; }
.tk-why-section .pr-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-why-section .prog-side { display: grid; gap: 14px; }
.tk-why-section .ps-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: var(--text-muted); }
.tk-why-section .ps-row b { font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.tk-why-section .prog-bar { height: 9px; border-radius: 99px; background: var(--bg-inset); border: 1px solid var(--border); overflow: hidden; }
.tk-why-section .prog-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* scene: attempts */
.tk-why-section .att-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 18px; }
.tk-why-section .replay { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-ink); background: var(--primary-soft); border: 1px solid var(--primary-ring); }
.tk-why-section .replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-why-section .scene-attempts.is-active .replay { animation: tkwReplaySpin 1.1s var(--ease) 0.9s both; }
@keyframes tkwReplaySpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.tk-why-section .att-list { display: grid; gap: 12px; flex: 1; align-content: center; }
.tk-why-section .att-row { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 12px; font-size: 0.8rem; }
.tk-why-section .att-row > span { color: var(--text-muted); }
.tk-why-section .att-bar { height: 9px; border-radius: 99px; background: var(--bg-inset); border: 1px solid var(--border); overflow: hidden; }
.tk-why-section .att-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.tk-why-section .scene-attempts.is-active .att-bar i { animation: tkwAttGrow 1s var(--ease) both; animation-delay: var(--d); }
@keyframes tkwAttGrow { from { width: 0; } to { width: var(--w); } }
.tk-why-section .att-row b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.tk-why-section .att-row:last-child b { color: var(--primary-ink); }

/* scene: mobile */
.tk-why-section .scene-mobile .opts { gap: 7px; }
.tk-why-section .scene-mobile .opt { padding: 9px 11px; }
.tk-why-section .scene-mobile .opt-text { font-size: 0.8rem; }
.tk-why-section .scene-mobile .opt-correct { border-color: var(--primary); background: var(--primary-soft); }
.tk-why-section .scene-mobile .opt-correct .opt-dot { border-color: var(--primary); background: var(--primary); position: relative; }
.tk-why-section .scene-mobile .opt-correct .opt-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-elevated); }
.tk-why-section .scene-mobile .opt-correct .opt-check { opacity: 1; transform: scale(1); }
.tk-why-section .scene-mobile .prog-bar { margin-top: 16px; }
.tk-why-section .scene-mobile .prog-bar i { width: 52%; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* final banner */
.tk-why-section .final-banner { position: relative; z-index: 1; max-width: 720px; margin: 44px auto 0; text-align: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg-elevated); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tk-why-section .final-banner.is-on { opacity: 1; transform: none; }
.tk-why-section .fb-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.tk-why-section .fb-checks span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft); border: 1px solid var(--primary-ring); border-radius: 999px; padding: 5px 11px; }
.tk-why-section .final-banner h3 { margin: 0 0 16px; font-size: 1.2rem; letter-spacing: -0.02em; }
.tk-why-section .fb-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 0.92rem; text-decoration: none; border-radius: 999px; padding: 13px 22px; transition: background 0.25s, transform 0.25s var(--ease); }
.tk-why-section .fb-cta:hover { background: var(--primary-strong); transform: translateY(-1px); }

/* ambient background elements */
.tk-why-section .bg-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tk-why-section .bg-deco span { position: absolute; display: block; animation: tkwBdFloat 7s ease-in-out infinite; }
.tk-why-section .bg-deco svg { display: block; width: 100%; height: 100%; }
@keyframes tkwBdFloat { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.tk-why-section .bg-deco .bd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; animation-duration: 6s; }
.tk-why-section .bg-deco .bd-dot2 { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: 0.6; animation-duration: 8s; animation-delay: -2s; }
.tk-why-section .bg-deco .bd-ring { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.4; animation-duration: 9s; animation-delay: -4s; }
.tk-why-section .bg-deco .bd-ring.is-amber { border-color: var(--accent); width: 11px; height: 11px; opacity: 0.5; animation-duration: 7s; animation-delay: -1s; }
.tk-why-section .bg-deco .bd-plus { width: 13px; height: 13px; opacity: 0.35; animation-duration: 7.5s; animation-delay: -3s; background: linear-gradient(var(--primary), var(--primary)) center/13px 2px no-repeat, linear-gradient(var(--primary), var(--primary)) center/2px 13px no-repeat; }
.tk-why-section .bg-deco .bd-check { width: 15px; height: 15px; color: var(--primary); opacity: 0.5; animation-duration: 6.5s; animation-delay: -1.5s; }
.tk-why-section .bg-deco .bd-check svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tk-why-section .bg-deco .bd-badge { width: 17px; height: 17px; border-radius: 6px; border: 2px solid var(--accent); opacity: 0.5; animation-duration: 8.5s; animation-delay: -5s; }
.tk-why-section .bg-deco .bd-arc { width: 22px; height: 22px; opacity: 0.45; animation-duration: 9.5s; animation-delay: -2.5s; }
.tk-why-section .bg-deco .bd-arc svg { transform: rotate(-90deg); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 72 23; }
.tk-why-section .bg-deco .bd-1 { top: 3%; left: 1%; }
.tk-why-section .bg-deco .bd-2 { top: 10%; left: 4%; }
.tk-why-section .bg-deco .bd-3 { top: 4.5%; right: 1.5%; }
.tk-why-section .bg-deco .bd-4 { top: 12%; right: 5%; }
.tk-why-section .bg-deco .bd-5 { top: 42%; left: 0.6%; }
.tk-why-section .bg-deco .bd-6 { top: 50%; right: 0.6%; }
.tk-why-section .bg-deco .bd-7 { top: 79%; left: 7%; }
.tk-why-section .bg-deco .bd-8 { top: 87%; right: 9%; }

/* responsive */
@media (max-width: 880px) {
  .tk-why-section .tk-why-grid { grid-template-columns: 1fr; gap: 26px; }
  .tk-why-section .benefits { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tk-why-section .benefits::-webkit-scrollbar { display: none; }
  .tk-why-section .tkw-benefit { flex: 0 0 auto; width: auto; min-width: 210px; }
  .tk-why-section .tkw-benefit + .tkw-benefit { margin-top: 0; margin-left: 10px; }
  .tk-why-section .b-body small { display: none; }
  .tk-why-section .connector { display: none; }
  .tk-why-section .deco { display: none; }
  .tk-why-section .bg-deco { display: none; }
  .tk-why-section .scene { padding: 16px; }
  .tk-why-section .tkw-qcounter { margin-bottom: 8px; }
  .tk-why-section .tkw-qtext { font-size: 0.94rem; margin-bottom: 12px; }
  .tk-why-section .opts { gap: 7px; }
  .tk-why-section .opt { padding: 9px 10px; }
  .tk-why-section .opt-text { font-size: 0.84rem; }
  .tk-why-section .result-banner { margin-top: 10px; padding: 10px 12px; font-size: 0.84rem; }
  .tk-why-section .explain { margin-top: 10px; }
  .tk-why-section .explain p { font-size: 0.8rem; line-height: 1.45; }
  .tk-why-section .tkw-body { min-height: 560px; }
}
@media (max-width: 420px) {
  .tk-why-section .tkw-body { min-height: 584px; }
}

/* reduced motion */
html[data-motion="reduced"] .tk-why-section .opt,
html[data-motion="reduced"] .tk-why-section .result-banner,
html[data-motion="reduced"] .tk-why-section .final-banner { opacity: 1 !important; transform: none !important; }
html[data-motion="reduced"] .tk-why-section .explain { max-height: none !important; padding: 12px 14px !important; }
html[data-motion="reduced"] .tk-why-section .att-bar i { width: var(--w) !important; }
html[data-motion="reduced"] .tk-why-section .deco { opacity: 1 !important; }
html[data-motion="reduced"] .tk-why-section .bg-deco span { animation: none !important; }

/* ==========================================================================
   Home 7 - "What candidates say" karaoke spotlight
   Word-by-word quote highlight with a per-card progress bar and a verified
   check that draws when each quote is read. Motion is toolbar-controlled.
   ========================================================================== */
.tk-quotes-section { position: relative; }
.tk-quotes-section .container { position: relative; z-index: 1; }

/* testimonial-themed ambient background marks */
.tk-quotes-section .bg-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tk-quotes-section .bg-deco > span { position: absolute; display: block; animation: tkqBdFloat 7s ease-in-out infinite; }
.tk-quotes-section .bg-deco svg { display: block; width: 100%; height: 100%; }

/* big quote glyphs */
.tk-quotes-section .bg-deco .bd-quote { font-size: 76px; line-height: 0.8; font-weight: 800; color: var(--primary); opacity: 0.13; animation-duration: 11s; animation-delay: -2s; }
.tk-quotes-section .bg-deco .bd-quote.is-amber { color: var(--accent); opacity: 0.18; animation-duration: 9s; animation-delay: -4s; }

/* chat bubble */
.tk-quotes-section .bg-deco .bd-bubble { width: 38px; height: 38px; opacity: 0.35; color: var(--primary); animation-duration: 10s; animation-delay: -1s; }
.tk-quotes-section .bg-deco .bd-bubble svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* stars + verified mark */
.tk-quotes-section .bg-deco .bd-star { width: 22px; height: 22px; opacity: 0.5; color: var(--accent); animation-duration: 8s; }
.tk-quotes-section .bg-deco .bd-star svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tk-quotes-section .bg-deco .bd-badge { width: 26px; height: 26px; opacity: 0.42; color: var(--primary); animation-duration: 8.5s; animation-delay: -3s; }
.tk-quotes-section .bg-deco .bd-badge svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* avatar ring */
.tk-quotes-section .bg-deco .bd-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, transparent); opacity: 0.5; animation-duration: 9.5s; animation-delay: -1.5s; }

/* ghost testimonial cards */
.tk-quotes-section .bg-deco .bd-card { width: 176px; height: 100px; padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; opacity: 0.6; border: 1.5px dashed color-mix(in srgb, var(--primary) 42%, transparent); border-radius: var(--radius); animation-duration: 12s; animation-delay: -5s; }
.tk-quotes-section .bg-deco .bd-card.is-amber { border-color: color-mix(in srgb, var(--accent) 48%, transparent); animation-duration: 10s; animation-delay: -2.5s; }
.tk-quotes-section .bg-deco .bd-card i { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 20%, transparent); }
.tk-quotes-section .bg-deco .bd-card i:nth-of-type(2) { width: 68%; }
.tk-quotes-section .bg-deco .bd-card.is-amber i { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.tk-quotes-section .bg-deco .bd-card b { width: 22px; height: 22px; margin-top: auto; border-radius: 50%; background: color-mix(in srgb, var(--primary) 18%, transparent); }
.tk-quotes-section .bg-deco .bd-card.is-amber b { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* dots + mini progress rail */
.tk-quotes-section .bg-deco .bd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.55; animation-duration: 6s; }
.tk-quotes-section .bg-deco .bd-dot2 { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: 0.6; animation-duration: 8s; animation-delay: -2s; }
.tk-quotes-section .bg-deco .bd-rail { display: flex; align-items: center; gap: 12px; opacity: 0.75; animation-duration: 9s; animation-delay: -3s; }
.tk-quotes-section .bg-deco .bd-rail::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--primary) 40%, transparent); }
.tk-quotes-section .bg-deco .bd-rail i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* positions: top/bottom padding bands + side gutters */
.tk-quotes-section .bg-deco .bd-1 { top: 0.5%; left: 43%; }
.tk-quotes-section .bg-deco .bd-2 { bottom: 2px; left: 44%; }
.tk-quotes-section .bg-deco .bd-3 { top: 3.5%; left: 70%; }
.tk-quotes-section .bg-deco .bd-4 { bottom: 6px; left: 28%; }
.tk-quotes-section .bg-deco .bd-5 { top: 1.5%; left: 29%; }
.tk-quotes-section .bg-deco .bd-6 { bottom: 12px; left: 58%; }
.tk-quotes-section .bg-deco .bd-7 { top: 30%; right: 1.2%; }
.tk-quotes-section .bg-deco .bd-8 { top: 2%; left: 52%; }
.tk-quotes-section .bg-deco .bd-9 { top: 58%; left: 0.6%; }
.tk-quotes-section .bg-deco .bd-10 { bottom: 20px; left: 76%; }
.tk-quotes-section .bg-deco .bd-11 { top: 6.5%; left: 33%; }
.tk-quotes-section .bg-deco .bd-12 { bottom: 18px; left: 64%; }
@keyframes tkqBdFloat { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* progress bar (segments are built by JS) */
.tkq-progress { display: flex; gap: 6px; width: 230px; max-width: 100%; }
.tkq-progress i { position: relative; flex: 1; height: 8px; border-radius: 99px; background: var(--bg-inset); border: 1px solid var(--border); overflow: hidden; }
.tkq-progress i s { position: absolute; inset: 0; width: 0; border-radius: 99px; text-decoration: none; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.tkq-progress i.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-ring); }

/* quote word highlight */
.tk-quotes-section .tq-word { border-radius: 4px; transition: background-color 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.tk-quotes-section .tq-word.is-lit { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.tk-quotes-section .tq-word.is-cur { background: color-mix(in srgb, var(--accent) 62%, transparent); }

/* active / finished cards (scoped transition override for a snappier lift) */
.tk-quotes-section .testimonial { transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), opacity var(--dur-3) var(--ease); }
.tk-quotes-section .testimonial.is-active { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-md); transform: translateY(-4px); }
.tk-quotes-section .testimonial.is-read { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

/* verified badge: armed pending state + drawn check */
.tk-quotes-section .testimonial-verified { transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.tk-quotes-section .testimonial-verified path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.42s var(--ease); }
.tk-quotes-section .testimonial-verified .tkq-ck-b { transition-delay: 0.3s; }
.tk-quotes-section.tkq-armed .testimonial:not(.is-verified) .testimonial-verified { background: transparent; color: var(--text-subtle); border: 1px dashed var(--border-strong); }
.tk-quotes-section.tkq-armed .testimonial:not(.is-verified) .testimonial-verified path { stroke-dashoffset: 1; }

@media (max-width: 1200px) {
  .tk-quotes-section .bg-deco .bd-7,
  .tk-quotes-section .bg-deco .bd-9 { display: none; }
}
@media (max-width: 880px) {
  .tk-quotes-section .bg-deco { display: none; }
}
@media (max-width: 640px) {
  .tkq-progress { width: 100%; }
}

/* reduced motion */
html[data-motion="reduced"] .tk-quotes-section .bg-deco span { animation: none !important; }
html[data-motion="reduced"] .tk-quotes-section .testimonial.is-active { transform: none !important; }
html[data-motion="reduced"] .tk-quotes-section .tq-word { background: none !important; box-shadow: none !important; }

/* ==========================================================================
   Visual rhythm + hero atmosphere (2026-10-01) — background-only polish.
   Sections keep their layout/content; only environments change. Tinted
   sections fade to white at their edges so chapters blend. The floating
   3D chips are decorative, pointer-transparent, and frozen by the header
   motion toggle (html[data-motion="reduced"]).
   ========================================================================== */

/* ---------- Section tints (home rhythm) ---------- */
.tint-white { background: #ffffff; }
.tint-gray {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f4 16%, #f5f5f4 84%, #ffffff 100%);
}
.tint-mint {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 22%, #f0fdf4 100%);
}
.tint-warm { background: #fffbeb; }
.tint-warm-soft {
  background: linear-gradient(180deg, #fffbeb 0%, #fafaf7 52%, #ffffff 100%);
}

/* Search section: tech image backdrop (search panel keeps its own white card) */
.section-search {
  background:
    url("/assets/images/Find-your-certification-exam.png") center / cover no-repeat,
    linear-gradient(180deg, #fafaf7 0%, #f5f5f4 14%, #f5f5f4 86%, #ffffff 100%);
}

/* Journey section: very light green chapter */
.tk-journey-section { --section-bg: #f0fdf4; }

/* Answer-sheet section: white chapter (paper keeps its own contrast) */
.tk-sheet-section {
  background:
    radial-gradient(circle at 14% 16%, rgba(22, 163, 74, 0.10), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.12), transparent 28%),
    radial-gradient(circle at 52% 92%, rgba(249, 115, 22, 0.08), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(22, 163, 74, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff, #fdfdfb);
}

/* ---------- Hero atmosphere ---------- */
/* Warm-white -> pale-green opening environment under the existing radials
   and drifting mesh (kept). Scoped to the home film hero. */
.hero.hero-film {
  background:
    radial-gradient(900px 420px at 12% -20%, var(--primary-soft), transparent 68%),
    radial-gradient(700px 380px at 92% 4%, var(--accent-soft), transparent 66%),
    linear-gradient(180deg, #fdfdfb 0%, #eef7f1 46%, #fafaf7 100%);
}

.hero-atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-film-copy { position: relative; z-index: 2; }

/* Desktop: the film IS the hero background, edge to edge. The separate atmo
   layer (grid + floating chips) is only used by the copy hero on mobile; behind
   the film it only peeked through the thin top/bottom bands and got sliced. */
@media (min-width: 820px) {
  .hero-film { padding: 0; }
  .hero-atmo { display: none; }
}

/* Subtle certification grid, fading out from the hero centre */
.hero-grid {
  position: absolute; inset: 0; opacity: 0.8;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 8%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 100% at 50% 32%, #000 22%, transparent 74%);
  mask-image: radial-gradient(85% 100% at 50% 32%, #000 22%, transparent 74%);
}

/* ---------- Floating 3D chips (hero + final CTA) ---------- */
.d3-layer { position: absolute; inset: 0; perspective: 900px; pointer-events: none; }
.d3 {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; box-shadow: 0 12px 26px rgba(23, 23, 23, 0.08);
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -12deg));
  animation: d3float 12s ease-in-out infinite alternate;
}
@keyframes d3float {
  from { transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -12deg)) translateY(0); }
  to { transform: rotateX(calc(var(--rx, 10deg) * -0.55)) rotateY(calc(var(--ry, -12deg) * -0.5)) translateY(-8px); }
}
/* mini question card */
.d3-chip {
  width: 76px; height: 52px; border-radius: 10px;
  background:
    linear-gradient(rgba(23, 23, 23, 0.12) 0 0) 20% 34% / 56% 4px no-repeat,
    linear-gradient(rgba(23, 23, 23, 0.09) 0 0) 20% 62% / 38% 4px no-repeat,
    rgba(255, 255, 255, 0.92);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
}
/* verified badge */
.d3-check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  color: var(--primary-strong);
}
.d3-check .icon { width: 22px; height: 22px; }
/* progress ring */
.d3-ring {
  width: 56px; height: 56px; border-radius: 50%; box-shadow: none;
  background: conic-gradient(var(--accent) 132deg, color-mix(in srgb, var(--accent) 20%, transparent) 132deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
  mask: radial-gradient(circle, transparent 52%, #000 54%);
}
/* answer-sheet card with amber margin + ruled lines */
.d3-lines {
  width: 66px; height: 46px; border-radius: 8px;
  background:
    linear-gradient(rgba(245, 158, 11, 0.5) 0 0) 0 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(23, 23, 23, 0.07) 0 3px, transparent 3px 12px) 16px 8px / calc(100% - 24px) calc(100% - 16px) no-repeat,
    rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
/* question-mark glyph */
.d3-q {
  font-size: 44px; font-weight: 800; line-height: 1;
  color: color-mix(in srgb, var(--primary) 24%, transparent);
  background: none; border: 0; box-shadow: none;
}
.d3-q-amber { color: color-mix(in srgb, var(--accent) 34%, transparent); }

/* Motion toggle freezes the chips in their tilted pose */
html[data-motion="reduced"] .d3 { animation: none !important; }

/* Chips live only where the film shows (desktop) / beside the CTA band */
@media (max-width: 819px) {
  .hero-3d { display: none; }
}
@media (max-width: 1100px) {
  .cta-3d { display: none; }
}

/* ---------- Final CTA section ---------- */
.cta-3d-section { position: relative; overflow: hidden; }
.cta-3d-section > .container { position: relative; z-index: 1; }
.cta-3d .d3 { opacity: 0.9; }

/* ==========================================================================
   Badge marquee engine (shared) - the horizontal slider used by the
   certification-badge section rendered on every page
   (templates/partials/badges.html). Clones + speed are set up in ui.js
   (initCertMarquee); the motion toggle (html[data-motion="reduced"]) stops the
   scroll and lets the row scroll horizontally instead.
   ========================================================================== */
.cert-marquee {
  position: relative;
  margin-top: 4px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cert-track {
  display: flex;
  width: max-content;
  padding: 6px 0 18px;
  animation: certScroll var(--cert-dur, 44s) linear infinite;
  will-change: transform;
}
.cert-marquee:hover .cert-track { animation-play-state: paused; }
@keyframes certScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--cert-shift, 0px))); }
}
.cert-set { display: flex; gap: 22px; padding-right: 22px; }

@media (max-width: 620px) {
  .cert-set { gap: 14px; padding-right: 14px; }
}
html[data-motion="reduced"] .cert-track { animation: none !important; transform: none !important; }
html[data-motion="reduced"] .cert-marquee {
  overflow-x: auto;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: none;
}
html[data-motion="reduced"] .cert-marquee::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Badge marquee - alternative to the certificate cards (comparison section).
   Shield plaque SVG (uniform gold/amber rim + dark navy plate, reused via a
   single <g id="badgePlate">), with the vendor mark + exam text overlaid as
   HTML so it uses the site fonts and real logo assets. Same marquee engine.
   ========================================================================== */
.section-badges {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ea 44%, #ffffff 100%);
}
.badge-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.badge-card {
  position: relative;
  flex: 0 0 auto;
  width: 208px;
  aspect-ratio: 1 / 1;
  margin: 0;
}
.badge-plate {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  transition: transform var(--dur-2) var(--ease);
}
.badge-card:hover { z-index: 2; }
.badge-card:hover .badge-plate { transform: translateY(-4px) scale(1.02); }
.badge-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 20% 15% 21%;
  text-align: center;
}
.badge-mark { width: 30px; height: 30px; object-fit: contain; }
.badge-certified {
  font-size: 12px; font-weight: 900; letter-spacing: 0.2em; text-indent: 0.2em;
  text-transform: uppercase; color: #ffffff; line-height: 1;
}
.badge-code {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em;
  color: #FFB03A;
  background: rgba(255, 153, 0, 0.16);
  border: 1px solid rgba(255, 153, 0, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
}
.badge-title {
  font-size: 9.5px; font-weight: 600; line-height: 1.25;
  color: #E2E8F0; max-width: 18ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.badge-stars { color: #FF9900; font-size: 11px; letter-spacing: 3px; text-indent: 3px; line-height: 1; }

@media (max-width: 620px) {
  .badge-card { width: 172px; }
  .badge-mark { width: 32px; height: 32px; }
  .badge-certified { font-size: 12px; }
  .badge-title { font-size: 9.5px; }
}

/* Exam page: badge marquee embedded under the header stats (exam.html).
   Constrained to the stats width, no section padding and no full-bleed bg. */
.exam-head .section-badges {
  max-width: 560px;
  margin-top: 24px;
  padding: 0;
  background: none;
}
.exam-head .section-badges .container { max-width: none; padding: 0; }
.exam-head .section-badges .section-head {
  margin-bottom: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.exam-head .section-badges .section-head h2 { font-size: 1.05rem; }
.exam-head .section-badges .section-head .section-sub,
.exam-head .section-badges .section-head .link-more { display: none; }

/* ==========================================================================
   Testimonial layout D - vertical marquee (kept for comparison with the grid).
   ========================================================================== */
.tstyle-tag {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}

/* ---------- D: Vertical marquee ---------- */
/* Dark tech image backdrop — the heading has to flip to light against it. */
.quotes-vmarquee {
  background:
    url("/assets/images/testimonilas-bg.png") center / cover no-repeat,
    linear-gradient(180deg, #06100c 0%, #04100e 100%);
}
.quotes-vmarquee .section-head h2 { color: #fff; }
.quotes-vmarquee .vm-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 520px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.quotes-vmarquee .vm-col { overflow: hidden; }
.quotes-vmarquee .vm-track { display: flex; flex-direction: column; animation: vmScroll 60s linear infinite; will-change: transform; }
.quotes-vmarquee .vm-up { animation-direction: reverse; }
.quotes-vmarquee .vm-up .vm-set { flex-direction: column-reverse; }
.quotes-vmarquee .vm-wrap:hover .vm-track { animation-play-state: paused; }
@keyframes vmScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.quotes-vmarquee .vm-set { display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; }
.quotes-vmarquee .vm-card { padding: 20px; gap: 12px; }
.quotes-vmarquee .vm-stars { display: inline-flex; gap: 2px; color: var(--accent); }
.quotes-vmarquee .vm-stars .icon { width: 15px; height: 15px; }
.quotes-vmarquee .testimonial-quote::before { display: none; }
.quotes-vmarquee .vm-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quotes-vmarquee .vm-meta .avatar { width: 54px; height: 54px; font-size: 1.1rem; }
.quotes-vmarquee .vm-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quotes-vmarquee .vm-name { font-size: 0.92rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.quotes-vmarquee .vm-cert { font-size: 0.78rem; font-weight: 700; color: var(--primary-strong); line-height: 1; }
.quotes-vmarquee .vm-li { width: 16px; height: 16px; color: #0a66c2; vertical-align: -3px; margin: 0 2px; }

@media (max-width: 820px) {
  .quotes-vmarquee .vm-wrap { grid-template-columns: 1fr; height: 460px; }
  .quotes-vmarquee .vm-col:nth-child(2) { display: none; }
}
html[data-motion="reduced"] .quotes-vmarquee .vm-track { animation: none !important; transform: none !important; }
