/* ==========  HOME PAGE  ========== */

/* HERO */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -20%, rgba(198,163,84,0.08), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(39,62,87,0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-preview { order: -1; margin-bottom: 8px; }
}
.hero-copy h1 {
  margin: 16px 0 20px;
  font-size: var(--fs-72);
  text-wrap: balance;
}
.hero-copy h1 .accent-serif {
  font-family: 'Fraunces', 'Inter Tight', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--eu-navy);
}
.hero-lead {
  font-size: var(--fs-18);
  color: var(--ink-3);
  max-width: 54ch;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  font-size: var(--fs-13);
  color: var(--ink-3);
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-proof strong { color: var(--ink); font-weight: 600; }

/* HERO TOOLS SHOWCASE */
.hero-tools-showcase {
  font-size: 50%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  --ui-bg: #f7f4ee;
  --ui-surface: rgba(255, 255, 255, 0.72);
  --ui-surface-strong: rgba(255, 255, 255, 0.9);
  --ui-ink: #162624;
  --ui-ink-soft: #64726e;
  --ui-border: rgba(22, 38, 36, 0.14);
  --ui-accent: #156f63;
  --ui-accent-strong: #0f5a51;
  --ui-header-blue: #283c59;
  --ui-energy: #ff6a43;
  --ui-success: #ddf3e8;
  --ui-success-ink: #145a43;
  --ui-danger: #fde6e0;
  --ui-danger-ink: #8b3a2f;
  --ui-radius-sm: 1.4rem;
  --ui-radius-md: 1.8rem;
  --ui-radius-lg: 2.4rem;
  --ui-radius-xl: 3.2rem;
  --ui-shadow-soft: 0 1.8rem 4.4rem rgba(17, 30, 28, 0.08);
  --ui-shadow-medium: 0 2.4rem 6rem rgba(17, 30, 28, 0.12);
  --ui-shadow-strong: 0 3rem 7.6rem rgba(17, 30, 28, 0.16);
  --ui-blur: 2rem;
}
.hero-preview-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-tools-showcase-item {
  position: relative;
  width: 100%;
  min-height: 490px;
}
.hero-tools-showcase-item--calculator {
  min-height: 576px;
}
.hero-modal-static {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  transform: translateX(-50%) scale(var(--hero-tool-scale, 1));
  transform-origin: top center;
}
.hero-tool-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
}
.hero-tool-frame--scratchpad {
  aspect-ratio: 496 / 490;
}
.hero-tool-frame--calculator {
  aspect-ratio: 320 / 576;
}
.hero-tools-showcase .scratchpad-modal {
  min-width: 320px;
  min-height: 277px;
  width: 496px;
  height: 490px;
  left: 50%;
  top: 0;
  --action-container-size: 88px;
}
.hero-tools-showcase .calculator-modal {
  min-width: 320px;
  min-height: 576px;
  width: 320px;
  height: 576px;
  left: 50%;
  top: 0;
  --action-container-size: 44px;
}
.hero-tools-showcase .draggable-modal {
  display: flex;
  --color-border: #1a1a1a;
  --color-bg-default: #ffffff;
  --color-brand: #2556a6;
  --border-thin: 1px;
  --border-medium: 2px;
  --radius-medium: 0.5rem;
  --fontsize-heading: 1.125rem;
  --fontsize-heading-l: 2rem;
  --fontsize-body: 1rem;
  --fontsize-body-s: 0.875rem;
}
.hero-tools-showcase .draggable-modal.open {
  display: flex;
}
.hero-tools-showcase .draggable-modal .contents {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: var(--border-medium) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg-default);
}
.hero-tools-showcase .scratchpad-modal .contents,
.hero-tools-showcase .calculator-modal .contents {
  border-color: var(--ui-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 255, 0.88) 100%);
  box-shadow:
    var(--ui-shadow-soft),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.2),
    0 0 0 0.1rem rgba(216, 169, 58, 0.12);
}
.hero-tools-showcase .scratchpad-modal .contents {
  flex-direction: column;
}
.hero-tools-showcase .draggable-modal .header {
  cursor: grab;
  display: flex;
  align-items: center;
  height: 6.5rem;
  padding: 0 0.5rem;
  gap: 1rem;
}
.hero-tools-showcase .scratchpad-modal .header {
  height: 6.5rem;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 0.5rem;
  gap: 1rem;
}
.hero-tools-showcase .draggable-modal.dragging .header {
  cursor: grabbing;
}
.hero-tools-showcase .draggable-modal .header.inverted {
  background: #111111;
  color: #ffffff;
}
.hero-tools-showcase .draggable-modal .header.inverted {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(18, 37, 34, 0.98) 0%, rgba(24, 55, 50, 0.96) 60%, rgba(15, 90, 81, 0.94) 100%);
  color: #fbf8f0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.hero-tools-showcase .draggable-modal .action-container-start,
.hero-tools-showcase .draggable-modal .action-container-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.hero-tools-showcase .scratchpad-modal .action-container-start,
.hero-tools-showcase .scratchpad-modal .action-container-end {
  width: auto;
  justify-content: center;
  flex-direction: row;
}
.hero-tools-showcase .draggable-modal .title-container {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fontsize-heading);
  pointer-events: none;
}
.hero-tools-showcase .scratchpad-modal .title-container { flex: 0 0 auto; }
.hero-tools-showcase .draggable-modal .content {
  position: relative;
  flex: 1 1 auto;
  background: var(--color-bg-default);
  border-top: var(--border-thin) solid var(--color-border);
  overflow: hidden;
}
.hero-tools-showcase .scratchpad-modal .content { display: flex; }
.hero-tools-showcase .scratchpad-modal .icon-bar-btn {
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  background: transparent;
  color: inherit;
}
.hero-tools-showcase .scratchpad-modal .icon {
  width: 2rem;
  height: 2rem;
}
.hero-tools-showcase .scratchpad-modal .header .icon-bar-btn {
  color: #ffffff;
}
.hero-tools-showcase .scratchpad-modal .header .icon-bar-btn:hover,
.hero-tools-showcase .scratchpad-modal .header .icon-bar-btn:focus-visible,
.hero-tools-showcase .scratchpad-modal .header .icon-bar-btn.active {
  background: rgba(255, 255, 255, 0.15);
}
.hero-tools-showcase .calculator-modal .header .icon-bar-btn {
  color: #ffffff;
  background: transparent;
}
.hero-tools-showcase .icon-bar-btn {
  border-color: rgba(13, 34, 72, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  color: var(--ui-accent);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 0.8rem 2rem rgba(13, 34, 72, 0.08);
}
.hero-tools-showcase .icon-bar-btn:hover,
.hero-tools-showcase .icon-bar-btn:focus-visible,
.hero-tools-showcase .icon-bar-btn.active,
.hero-tools-showcase .icon-bar-btn.toggled {
  border-color: rgba(216, 169, 58, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 248, 255, 0.98) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 0 0 0.1rem rgba(216, 169, 58, 0.12),
    0 1.2rem 2.8rem rgba(13, 34, 72, 0.12);
}
.hero-tools-showcase .scratchpad-modal .header .icon-bar-btn,
.hero-tools-showcase .calculator-modal .header .icon-bar-btn {
  color: #fbf8f0;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.hero-tools-showcase .calculator-modal .action-container-start,
.hero-tools-showcase .calculator-modal .action-container-end {
  width: var(--action-container-size);
  justify-content: center;
}
.hero-tools-showcase .calculator-modal .content {
  border-top: var(--border-thin) solid var(--color-border);
}
.hero-tools-showcase .scratchpad-modal .content {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.06) 0, rgba(21, 111, 99, 0) 26%),
    linear-gradient(180deg, rgba(252, 249, 244, 0.98) 0%, rgba(244, 239, 230, 0.96) 100%);
}
.hero-tools-showcase .calculator {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  gap: 1px;
  position: relative;
}
.hero-tools-showcase .calculator .screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: var(--border-medium) solid var(--color-border);
  border-radius: 0;
  padding: 0;
  min-height: 10rem;
  background: #1a1a1a;
  gap: 0;
  margin-top: -1px;
  flex: 1 1 auto;
}
.hero-tools-showcase .calculator .expression {
  color: #b5b5b5;
  font-size: var(--fontsize-body-s);
  min-height: 2.4rem;
  text-align: right;
  padding: 0;
  margin: 0;
}
.hero-tools-showcase .calculator .result {
  font-size: var(--fontsize-heading-l);
  font-weight: 700;
  color: #ffffff;
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 0;
  min-height: 3.2rem;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-tools-showcase .calculator .result span {
  display: block;
  width: 100%;
  text-align: right;
}
.hero-tools-showcase .calculator .keyboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(var(--grid-rows-count), auto);
  gap: 0.0625rem;
  flex: 0 0 auto;
}
.hero-tools-showcase .calculator .key {
  border: var(--border-thin) solid #ffffff;
  border-radius: 0;
  background: #ffffff;
  color: #121212;
  font-size: var(--fontsize-body);
  font-weight: 400;
  cursor: pointer;
  margin: 0.5px;
  aspect-ratio: 1 / 1;
}
.hero-tools-showcase .calculator .key.operator {
  background: var(--color-brand);
  color: #ffffff;
}
.hero-tools-showcase .calculator .key.digit {
  background: #cfe6ff;
  color: #121212;
}
.hero-tools-showcase .calculator .key.command,
.hero-tools-showcase .calculator .key.function {
  background: #e6e6e6;
  color: #121212;
}
.hero-tools-showcase .calculator .key[data-command="execute"] {
  aspect-ratio: auto;
}
.hero-tools-showcase .calculator .key:focus-visible {
  outline: 1px solid var(--color-brand);
  outline-offset: 2px;
}
.hero-tools-showcase .live-result-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.hero-tools-showcase .scratchpad-container {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.hero-tools-showcase .scratchpad-tools {
  list-style: none;
  margin: 0;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 5rem;
  border-right: var(--border-thin) solid var(--color-border);
}
.hero-tools-showcase .scratchpad-tools li { position: relative; }
.hero-tools-showcase .scratchpad-tools .scratchpad-tool-btn.active,
.hero-tools-showcase .scratchpad-tools .scratchpad-subtool-btn.active {
  outline: 2px solid #121212;
  outline-offset: 2px;
}
.hero-tools-showcase .tools-options {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: none;
  flex-direction: row;
  gap: 0.5rem;
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-default);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-medium);
  z-index: 3;
}
.hero-tools-showcase .scratchpad-tools li:hover > .tools-options,
.hero-tools-showcase .scratchpad-tools li:focus-within > .tools-options {
  display: flex;
}
.hero-tools-showcase .scratchpad-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  position: relative;
  background-color: #ffffff;
}
.hero-tools-showcase .scratchpad-text-input {
  position: absolute;
  z-index: 2;
  min-width: 12rem;
  max-width: 60rem;
  min-height: 3rem;
  padding: 0.25rem 0.5rem;
  border: 0.125rem dashed #121212;
  background: rgba(255, 255, 255, 0.9);
  color: #121212;
  font-size: 1.6rem;
  line-height: 1.4;
  resize: none;
  outline: none;
}
.hero-tools-showcase #hero-scratchpad-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}
.hero-tools-showcase .resize-hitbox {
  position: absolute;
  background: transparent;
}
.hero-tools-showcase .hitbox-top-left,
.hero-tools-showcase .hitbox-top-right,
.hero-tools-showcase .hitbox-bottom-right,
.hero-tools-showcase .hitbox-bottom-left {
  width: 1rem;
  height: 1rem;
}
.hero-tools-showcase .hitbox-top,
.hero-tools-showcase .hitbox-bottom {
  left: 0.25rem;
  right: 0.25rem;
  height: 1rem;
}
.hero-tools-showcase .hitbox-left,
.hero-tools-showcase .hitbox-right {
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1rem;
}
.hero-tools-showcase .hitbox-top-left { top: -0.75rem; left: -0.75rem; }
.hero-tools-showcase .hitbox-top-right { top: -0.75rem; right: -0.75rem; }
.hero-tools-showcase .hitbox-bottom-right { right: -0.75rem; bottom: -0.75rem; }
.hero-tools-showcase .hitbox-bottom-left { left: -0.75rem; bottom: -0.75rem; }
.hero-tools-showcase .hitbox-top { top: -0.75rem; }
.hero-tools-showcase .hitbox-right { right: -0.75rem; }
.hero-tools-showcase .hitbox-bottom { bottom: -0.75rem; }
.hero-tools-showcase .hitbox-left { left: -0.75rem; }
.hero-tools-showcase .hitbox-top-left,
.hero-tools-showcase .hitbox-bottom-right {
  cursor: nwse-resize;
}
.hero-tools-showcase .hitbox-top-right,
.hero-tools-showcase .hitbox-bottom-left {
  cursor: nesw-resize;
}
.hero-tools-showcase .hitbox-top,
.hero-tools-showcase .hitbox-bottom {
  cursor: ns-resize;
}
.hero-tools-showcase .hitbox-left,
.hero-tools-showcase .hitbox-right {
  cursor: ew-resize;
}
@media (max-width: 980px) {
  .hero-tools-showcase-item {
    margin-inline: auto;
    max-width: 496px;
  }
}


/* HERO PREVIEW CARD */
.hero-preview {
  position: relative;
}
.preview-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.preview-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  padding: 4px 10px;
  background: var(--bg-elev);
  border-radius: 6px;
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-body { padding: 20px 22px 22px; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.preview-timer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-13);
  margin-bottom: 8px;
}
.preview-clock { font-size: var(--fs-20); font-weight: 600; color: var(--ink); }
.preview-progress {
  height: 4px;
  background: var(--bg-strong);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}
.preview-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--eu-navy), var(--eu-navy-500));
  border-radius: inherit;
}
.preview-passage {
  font-size: var(--fs-14);
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border-left: 2px solid var(--gold);
}
.preview-opts { display: flex; flex-direction: column; gap: 8px; }
.preview-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  color: var(--ink-2);
  transition: all 150ms var(--ease);
}
.preview-opt b {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
}
.preview-opt.is-selected {
  border-color: var(--eu-navy);
  background: var(--eu-navy-50);
  color: var(--eu-navy-700);
}
.preview-opt.is-selected b { background: var(--eu-navy); color: #fff; }

.preview-float {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--sh-lg);
  font-size: var(--fs-12);
  animation: float 5s ease-in-out infinite;
}
.preview-float-1 { top: -18px; right: -12px; }
.preview-float-2 { bottom: 32px; left: -24px; animation-delay: -2s; }
.float-kpi { font-weight: 600; color: var(--ok); font-size: var(--fs-16); }
.float-label { color: var(--ink-4); font-size: 11px; margin-top: 2px; }
.float-avatars { display: flex; }
.float-avatars i {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eu-navy-500), var(--eu-navy));
  border: 2px solid var(--bg-elev);
  margin-left: -6px;
  font-size: 10px;
  color: #fff;
  display: grid; place-items: center;
  font-style: normal;
  font-weight: 600;
}
.float-avatars i:nth-child(2) { background: linear-gradient(135deg, #b89548, var(--gold)); }
.float-avatars i:nth-child(3) { background: linear-gradient(135deg, #0d7c3f, #16a34a); }
.float-avatars i:first-child { margin-left: 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 640px) {
  .preview-float-1, .preview-float-2 { display: none; }
}

/* STRIP */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 28px 0;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item strong {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 640;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.strip-item span { font-size: var(--fs-13); color: var(--ink-4); }
@media (max-width: 900px) { .strip-inner { grid-template-columns: repeat(3, 1fr); } .strip-item:nth-child(n+4) { display:none } }
@media (max-width: 520px) { .strip-inner { grid-template-columns: 1fr 1fr; } .strip-item:nth-child(3) { display: none; } }

/* ========== RUNNER STAGE ========== */
.runner-stage {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.runner-stage--exam {
  --runner-frame-width: 1280px;
  --runner-frame-height: 820px;
  --runner-frame-scale: 1;
  position: relative;
  height: calc(var(--runner-frame-height) * var(--runner-frame-scale));
  background: #f7f8fb;
  border-color: #cfd5e0;
}
.runner-stage-frame {
  display: block;
  width: var(--runner-frame-width);
  height: var(--runner-frame-height);
  border: 0;
  background: #fff;
  transform: scale(var(--runner-frame-scale));
  transform-origin: top left;
}
.runner-stage--exam .exam-runner-shell {
  display: none;
}
.exam-runner-shell {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  color: #121212;
  font-family: "Nunito Sans", "Source Sans Pro", var(--font-sans);
}
.exam-runner-top {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 2px solid #121212;
  background: #fff;
}
.exam-runner-brandline {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}
.exam-runner-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #121212;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.exam-runner-crumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
}
.exam-runner-crumbs strong { font-weight: 800; }
.exam-runner-crumbs span { color: #555; }
.exam-runner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.exam-runner-total-timer {
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 2px solid #121212;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #f2f7ff;
  color: #121212;
}
.exam-tool-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cfd5e0;
  border-radius: 8px;
  background: #fff;
  color: #121212;
  font-size: 13px;
  font-weight: 700;
}
.exam-tool-btn:hover { background: #f2f2f2; }
.exam-runner-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 260px;
  background: #f7f8fb;
}
.exam-runner-sidebar {
  display: block;
  padding: 18px;
  border-right: 1px solid #d8dde4;
  background: #fff;
}
.exam-runner-sidebar h4,
.exam-runner-panel h4 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}
.exam-runner-question {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  overflow: auto;
}
.exam-runner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #4f4f4f;
  font-size: 14px;
  font-weight: 700;
}
.exam-runner-progress {
  width: min(280px, 45%);
  height: 8px;
  border-radius: 999px;
  background: #e4e8ef;
  overflow: hidden;
}
.exam-runner-progress i {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: #273e57;
}
.exam-runner-card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8dde4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.exam-runner-passage {
  padding: 24px 28px;
  border-bottom: 1px solid #d8dde4;
  background:
    linear-gradient(180deg, rgba(39,62,87,0.06), transparent 42%),
    #fff;
}
.exam-source {
  display: block;
  margin-bottom: 12px;
  text-align: right;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exam-runner-passage p {
  color: #121212;
  font-size: 17px;
  line-height: 1.75;
}
.exam-runner-prompt {
  padding: 24px 28px 8px;
}
.exam-runner-prompt h3 {
  color: #121212;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.exam-runner-prompt p {
  margin-top: 10px;
  color: #333;
  font-size: 15px;
}
.exam-answer-list {
  display: grid;
  gap: 10px;
  padding: 18px 28px 28px;
}
.exam-answer {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid #d8dde4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--ease);
}
.exam-answer:hover {
  border-color: #121212;
  background: #f7f8fb;
}
.exam-answer.is-selected {
  border-color: #273e57;
  background: #e6f3ff;
}
.exam-answer-letter {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f2f2f2;
  font-weight: 900;
}
.exam-answer.is-selected .exam-answer-letter {
  background: #273e57;
  color: #fff;
}
.exam-runner-panel {
  display: block;
  padding: 18px;
  border-left: 1px solid #d8dde4;
  background: #fff;
}
.question-timer-demo {
  padding: 16px;
  border: 1px solid #d8dde4;
  border-radius: 16px;
  background: #f8fafc;
}
.question-timer-demo span {
  display: block;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.question-timer-demo strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 34px;
  color: #121212;
}
.question-timer-demo i {
  display: block;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #273e57 0 58%, #d8dde4 58% 100%);
}
.exam-side-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #faf5e8;
  color: #4b370f;
  font-size: 13px;
  line-height: 1.45;
}
.exam-runner-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 2px solid #121212;
  background: #fff;
}
.exam-footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
.exam-primary-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: #121212;
  color: #fff;
  font-weight: 800;
}
.exam-secondary-action {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #cfd5e0;
  border-radius: 10px;
  background: #fff;
  color: #121212;
  font-weight: 800;
}
@media (max-width: 1080px) {
  .exam-runner-workspace { grid-template-columns: 190px minmax(0, 1fr); }
  .exam-runner-panel { display: none; }
}
@media (max-width: 760px) {
  .exam-runner-top { grid-template-columns: 1fr; }
  .exam-runner-actions { justify-content: flex-start; }
  .exam-runner-workspace { grid-template-columns: 1fr; }
  .exam-runner-sidebar { border-right: 0; border-bottom: 1px solid #d8dde4; }
  .exam-runner-footer { align-items: stretch; flex-direction: column; }
  .exam-footer-center { justify-content: center; }
}

/* Runner */
.runner-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-elev));
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.runner-chrome-left, .runner-chrome-right { display: flex; align-items: center; gap: 12px; }
.runner-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--eu-navy-50);
  color: var(--eu-navy-700);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-13);
}

.runner-body {
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 900px) {
  .runner-body { grid-template-columns: 1fr; }
  .runner-rail { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}

.runner-rail {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.runner-rail h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.runner-qgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.q-chip {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  transition: all 150ms var(--ease);
  position: relative;
}
.q-chip:hover { border-color: var(--eu-navy-300); }
.q-chip.done { background: var(--eu-navy); color: #fff; border-color: var(--eu-navy); }
.q-chip.current { background: var(--bg-elev); color: var(--eu-navy); border-color: var(--eu-navy); box-shadow: var(--sh-focus); }
.q-chip.flag::after {
  content: '';
  position: absolute; top: 2px; right: 2px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.runner-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-4);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.runner-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 2px; }
.dot-done { background: var(--eu-navy); }
.dot-current { background: transparent; border: 1.5px solid var(--eu-navy); }
.dot-flag { background: var(--gold); }

.runner-main { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.runner-qmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.runner-progress {
  flex: 1;
  max-width: 260px;
  height: 4px;
  background: var(--bg-strong);
  border-radius: 99px;
  overflow: hidden;
}
.runner-progress i {
  display: block;
  height: 100%;
  background: var(--eu-navy);
  border-radius: inherit;
}

.runner-q h3 { font-size: var(--fs-20); margin-bottom: 10px; font-weight: 600; }
.runner-q p { color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.runner-table {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: var(--fs-13);
}
.runner-table-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.runner-table-row:last-child { border-bottom: 0; }
.runner-table-row:first-child {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.runner-options { display: grid; gap: 8px; }
.runner-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 150ms var(--ease);
  background: var(--bg-elev);
}
.runner-opt:hover { border-color: var(--ink-4); background: var(--bg-soft); }
.runner-opt input { display: none; }
.runner-opt .opt-letter {
  width: 28px; height: 28px;
  background: var(--bg-soft);
  border-radius: 7px;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
}
.runner-opt.is-selected {
  border-color: var(--eu-navy);
  background: var(--eu-navy-50);
}
.runner-opt.is-selected .opt-letter { background: var(--eu-navy); color: #fff; }

.runner-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.runner-tools { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .runner-tools { order: 3; width: 100%; justify-content: center; }
}

/* SCRATCHPAD */
.scratchpad-wrap { padding: 20px; }
.scratchpad-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.scratch-tools, .scratch-colors { display: flex; gap: 4px; }
.scratch-tool {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: all 150ms var(--ease);
}
.scratch-tool:hover { background: var(--bg-elev); color: var(--ink); }
.scratch-tool.is-on { background: var(--bg-elev); color: var(--eu-navy); box-shadow: var(--sh-xs); }
.scratch-colors { padding-left: 12px; border-left: 1px solid var(--line); }
.scratch-color {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
  transition: transform 150ms var(--ease);
}
.scratch-color:hover { transform: scale(1.1); }
.scratch-color.is-on { border-color: var(--ink); }
.scratch-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.scratchpad {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  background-color: #fafbfc;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: crosshair;
  touch-action: none;
}
.scratchpad-hint { font-size: 12px; margin-top: 8px; text-align: center; }

/* CALCULATOR */
.calc-wrap { padding: 28px; }
.calc-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 760px) {
  .calc-preview { grid-template-columns: 1fr; }
}
.calc {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-lg);
}
.calc-display {
  background: #1e2a45;
  border-radius: var(--r-md);
  padding: 18px 16px;
  margin-bottom: 12px;
  text-align: right;
  color: #fff;
  min-height: 88px;
}
.calc-sub { font-size: 13px; color: rgba(255,255,255,0.5); min-height: 16px; }
.calc-main { font-size: 36px; font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calc-k {
  height: 48px;
  border-radius: var(--r-sm);
  background: #2a3a5c;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background 120ms var(--ease), transform 80ms;
}
.calc-k:hover { background: #344775; }
.calc-k:active { transform: scale(0.96); }
.calc-k-op { background: #1e2a45; color: var(--ink-5); }
.calc-k-op:hover { background: #263452; }
.calc-k-act { background: var(--eu-navy); color: #fff; }
.calc-k-act:hover { background: var(--eu-navy-500); }
.calc-k-eq { background: var(--gold); color: #1d1405; font-weight: 600; }
.calc-k-eq:hover { background: var(--gold-light); }
.calc-k-wide { grid-column: span 2; }
.calc-meta h4 { font-size: var(--fs-20); margin-bottom: 8px; }
.calc-feats { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.calc-feats li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); color: var(--ink-2); }
.kbd {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 24px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ink-2);
  font-weight: 500;
}

/* BENTO */
.bg-soft { background: var(--bg-soft); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.bento-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.bento-lg { grid-column: span 3; grid-row: span 2; }
.bento-wide { grid-column: span 6; }
.bento-card.card-dark { background: linear-gradient(165deg, var(--eu-navy-700), var(--eu-navy)); color: #fff; border-color: transparent; }
.bento-card.card-dark p { color: rgba(255,255,255,0.7); }
.bento-card.card-dark .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.bento-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--eu-navy-50);
  color: var(--eu-navy);
  display: grid; place-items: center;
}
.bento-icon svg { width: 20px; height: 20px; }
.card-dark .bento-icon { background: rgba(255,255,255,0.1); color: var(--gold); }
.bento-card h3 { font-size: var(--fs-24); font-weight: 640; letter-spacing: -0.02em; }
.bento-card p { color: var(--ink-3); font-size: var(--fs-15); }
.bento-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--eu-navy);
  margin-bottom: 12px;
}
.bento-num sup { font-size: 0.45em; letter-spacing: -0.02em; vertical-align: super; }
.card-dark .bento-num { color: #fff; }
.bento-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.bento-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.bento-skills { display: flex; flex-direction: column; gap: 10px; }
.skill-row {
  display: grid;
  grid-template-columns: 36px 1fr 100px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.skill-icon {
  width: 28px; height: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.skill-row strong { display: block; font-size: var(--fs-14); }
.skill-row .muted { font-size: 12px; }
.skill-bar { height: 4px; background: var(--bg-strong); border-radius: 99px; overflow: hidden; }
.skill-bar i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .bento-wide { grid-column: span 2; }
  .bento-split { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-lg, .bento-wide { grid-column: span 1; }
}

/* TESTIMONIALS */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
}
.testi p { font-size: var(--fs-18); color: var(--ink); line-height: 1.55; letter-spacing: -0.01em; }
.testi p::before { content: '"'; font-family: 'Fraunces', serif; font-size: 2.5em; color: var(--gold); line-height: 0; vertical-align: -0.4em; margin-right: 2px; }
.testi footer { margin-top: 20px; display: flex; flex-direction: column; font-size: var(--fs-13); }
.testi footer strong { color: var(--ink); font-weight: 600; }

/* CTA FINAL */
.cta-final {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-2xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 300px at 90% 100%, rgba(198,163,84,0.2), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 8px 0 12px; }
.cta-final-actions { display: flex; gap: 10px; position: relative; }
@media (max-width: 800px) {
  .cta-final { grid-template-columns: 1fr; }
  .cta-final-actions { flex-wrap: wrap; }
}
