/* ================================================================
   style.css — TypeForJob.com
   Written clean from scratch — no duplicate rules
   ================================================================ */

/* ── VARIABLES ────────────────────────────────────────────────── */
:root {
  --navy:   #0C447C;
  --blue:   #185FA5;
  --lblue:  #E6F1FB;
  --purple: #534AB7;
  --lpurpl: #EEEDFE;
  --green:  #16A34A;
  --lgreen: #DCFCE7;
  --red:    #DC2626;
  --lred:   #FEE2E2;
  --amber:  #D97706;
  --lamber: #FEF3C7;
  --dark:   #111827;
  --gray:   #6B7280;
  --lgray:  #F3F4F6;
  --border: #E5E7EB;
  --white:  #ffffff;
  --bg:     #F9FAFB;
  --font:   'Inter', system-ui, sans-serif;
  --mono:   'Courier New', monospace;
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: #F7F7F5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 64px 0; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.nav {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 8px;
}
@media (min-width: 768px) { .nav { padding: 0 32px; } }
.nav__logo         { font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; }
.nav__logo:hover   { text-decoration: none; opacity: .9; }
.nav__logo-accent  { color: #AFA9EC; }
.nav__logo-dot     { color: #7B74D4; font-size: 15px; }
.nav__links        { display: none; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav__link         { color: #B5D4F4; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); transition: .15s; }
.nav__link:hover,
.nav__link--active { background: #185FA5; color: #fff; text-decoration: none; }
.nav__right        { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav__cta          { display: inline-block; background: var(--purple); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; transition: .15s; }
.nav__cta:hover    { background: #3C3489; text-decoration: none; }

/* Hamburger */
.nav__hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; border-radius: var(--r-sm); -webkit-tap-highlight-color: transparent; }
.nav__hamburger-line { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; transform-origin: center; }
.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 768px) { .nav__links { display: flex; } .nav__hamburger { display: none; } }

/* Mobile menu */
.mobile-menu { background: #0A3560; border-top: 1px solid #185FA5; }
.mobile-menu__link { display: block; padding: 14px 24px; color: #B5D4F4; font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); transition: .1s; }
.mobile-menu__link:hover { background: var(--blue); color: #fff; text-decoration: none; }
/* mobile-menu__cta styles moved to footer section below */
/* mobile-menu visibility controlled by JS via hidden attribute — no CSS override */

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: #FAFAF8;
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero__sub {
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  margin: -8px 0 0;
}
.hero__hint {
  font-size: 13px;
  color: #9CA3AF;
  text-align: center;
  margin-top: -4px;
}
.hero__hint kbd {
  background: var(--lgray);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════════════════
   TYPING WIDGET
   ═══════════════════════════════════════════════════════════════ */
.tw {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Topbar ── */
.tw__topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 12px 18px;
  background: var(--lgray);
  border-bottom: 1px solid var(--border);
}
.tw__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.tw__sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}

/* Mode buttons — no borders, pill active state */
.tw__opt {
  background: none;
  border: none;
  border-radius: var(--r-sm);
  padding: 6px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.tw__opt:hover    { color: var(--dark); background: rgba(0,0,0,.05); }
.tw__opt--active  { color: var(--purple); background: var(--lpurpl); font-weight: 600; }

/* Time buttons */
.tw__time {
  background: none;
  border: none;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  font-family: var(--mono);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.tw__time:hover   { color: var(--dark); background: rgba(0,0,0,.05); }
.tw__time--active { color: var(--purple); background: var(--lpurpl); font-weight: 600; }

/* ── Instruction bar ── */
.tw__instruction {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--gray);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.tw__legend      { display: inline-flex; align-items: center; gap: 4px; }
.tw__legend-blue { color: #3B82F6; font-size: 15px; line-height: 1; }
.tw__legend-red  { color: #DC2626; font-size: 15px; line-height: 1; }

/* ── Stats bar ── */
.tw__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}
.tw__stat { display: flex; align-items: baseline; gap: 4px; }
.tw__stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tw__stat--timer .tw__stat-num { color: var(--purple); }
.tw__stat-lbl { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }

/* ── Passage — fixed 3 lines, rolling window ── */
.tw__passage {
  padding: 20px 24px 8px;
  font-size: 22px;
  line-height: 1.9;
  font-family: var(--mono);
  word-break: break-word;
  /* line-clamp: always show exactly 3 lines, no empty space ever */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  /* fallback for non-webkit */
  max-height: calc(22px * 1.9 * 3 + 28px); /* 125px + top+bottom padding */
}

/* Word colour states */
.tw-word         { display: inline; }
.tw-word--future { color: #9CA3AF; }
.tw-word--current {
  color: var(--dark);
  font-weight: 700;
  border-bottom: 2px solid var(--purple);
  background: #EEEDFE;
  border-radius: 3px;
  padding: 0 2px;
}
.tw-word--correct { color: #3B82F6; }
.tw-word--wrong   {
  color: var(--red);
  background: var(--lred);
  border-radius: 3px;
  padding: 0 1px;
}

/* Char states inside current word */
.tw-ch        { display: inline; }
.tw-ch--ok    { color: #3B82F6; }
.tw-ch--bad   { color: var(--red); background: var(--lred); border-radius: 2px; }
.tw-ch--extra { color: var(--red); opacity: .7; }

/* ── Input wrap ── */
.tw__input-wrap {
  padding: 0 16px 12px;   /* no top gap — passage and textarea feel connected */
}
.tw__textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--lgray);
  border: 1.5px solid var(--border);
  border-top: 2px solid var(--border);  /* slight top border as divider from passage */
  border-radius: 0 0 var(--r-md) var(--r-md);  /* only bottom corners rounded */
  font-size: 22px;        /* matches passage exactly */
  font-family: var(--mono);
  color: var(--dark);
  resize: none;
  outline: none;
  line-height: 1.5;
  min-height: 90px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.tw__textarea:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(83,74,183,.12);
  outline: none;
}
.tw__textarea::placeholder { color: #9CA3AF; }
.tw__textarea:disabled     { opacity: .5; cursor: not-allowed; }

/* ── Bottom bar ── */
.tw__bottombar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--border);
  background: var(--lgray);
}
.tw__restart-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 12px;
  padding: 0;
  flex-shrink: 0;
  transition: color .15s;
}
.tw__restart-btn:hover { color: var(--purple); }
.tw__restart-hint      { font-size: 11px; opacity: .6; }
.tw__prog-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.tw__prog-fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  border-radius: 2px;
  transition: width .25s;
}

/* ═══════════════════════════════════════════════════════════════
   RESULT SCREEN
   ═══════════════════════════════════════════════════════════════ */
.tw-result {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp .3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Score row */
.tw-result__scores {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tw-result__main     { display: flex; align-items: baseline; gap: 6px; }
.tw-result__wpm      { font-size: 80px; font-weight: 800; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -3px; }
.tw-result__wpm-lbl  { font-size: 20px; color: var(--gray); font-weight: 600; }

/* ── WPM Grid: Net + Gross ── */
.tw-result__wpm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 20px 0;
}
.tw-result__wpm-card {
  background: var(--lgray);
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tw-result__wpm-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.tw-result__wpm-num--gross { color: var(--gray); }
.tw-result__wpm-label { font-size: 13px; font-weight: 600; color: var(--dark); }
.tw-result__wpm-label--muted { color: var(--gray); }
.tw-result__wpm-sub { font-size: 11px; color: var(--gray); }
.tw-result__wpm-dot {
  position: absolute;
  top: 13px; right: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ── Net info bar ── */
.tw-result__net-info {
  margin: 10px 20px 0;
  padding: 9px 12px;
  background: var(--lblue);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--blue);
  line-height: 1.5;
}

/* ── Stat cards ── */
.tw-result__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 20px 0;
}
.tw-result__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: var(--lgray);
  border-radius: var(--r-sm);
  gap: 3px;
}
.tw-result__stat span { font-size: 18px; font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.tw-result__stat small { font-size: 11px; color: var(--gray); }
.tw-result__stat--correct span { color: var(--green); }
.tw-result__stat--errors span  { color: var(--red); }

/* Verdict */
.tw-result__verdict  { padding: 10px 20px 0; }
.verdict             { padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.verdict strong      { font-weight: 700; }
.verdict--great      { background: var(--lgreen); color: #14532D; border: 1px solid #BBF7D0; }
.verdict--good       { background: var(--lblue);  color: var(--navy); border: 1px solid #BFDBFE; }
.verdict--ok         { background: var(--lamber); color: #78350F; border: 1px solid #FDE68A; }
.verdict--practice   { background: var(--lgray);  color: var(--dark); border: 1px solid var(--border); }

/* ── How calculated ── */
.tw-result__calc { margin: 10px 20px 0; }
.tw-result__calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--lgray);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tw-result__calc-summary::-webkit-details-marker { display: none; }
.tw-result__calc-chevron { font-size: 16px; }
.tw-result__calc-body {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.tw-result__calc-body p { margin: 0 0 6px; }
.tw-result__calc-body p:last-child { margin: 0; }
.tw-result__calc-body strong { color: var(--dark); }

/* Certificate pitch */
.tw-result__cert {
  padding: 16px 20px;
  background: var(--lgray);
  border-top: 1px solid var(--border);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tw-result__cert-title  { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0; }
.tw-result__cert-desc   { font-size: 13px; color: var(--gray); line-height: 1.5; margin: 0; }
.tw-result__cert-badges { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--green); font-weight: 500; }
.tw-result__name-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.tw-result__name-input:focus        { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(83,74,183,.1); }
.tw-result__name-input::placeholder { color: #9CA3AF; }
.tw-result__cert-btn {
  display: block;
  text-align: center;
  background: var(--purple);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-md);
  transition: background .15s;
}
.tw-result__cert-btn:hover { background: #3C3489; text-decoration: none; }
.tw-result__free-link      { font-size: 12px; color: var(--gray); text-align: center; }

/* ── Share section ── */
.tw-result__share-section {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.tw-result__share-label {
  font-size: 12px;
  color: var(--gray);
  display: block;
  margin-bottom: 10px;
}
.tw-result__share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tw-result__share-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, transform .1s;
}
.tw-result__share-btn:hover { opacity: .88; transform: translateY(-1px); }
.tw-result__share-btn--linkedin  { background: #0A66C2; color: #fff; }
.tw-result__share-btn--twitter   { background: #000; color: #fff; }
.tw-result__share-btn--facebook  { background: #1877F2; color: #fff; }
.tw-result__share-btn--whatsapp  { background: #25D366; color: #fff; }
.tw-result__share-btn--copy      { background: var(--lgray); color: var(--gray); border: 1px solid var(--border); }
.tw-result__share-btn--copy:hover { border-color: var(--purple); color: var(--purple); }

/* ── Footer ── */
.tw-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px 20px;
}
.tw-result__retry {
  display: flex; align-items: center; gap: 6px;
  background: var(--lgray); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 8px 18px;
  font-size: 14px; color: var(--gray); transition: .15s;
}
.tw-result__retry:hover  { border-color: var(--purple); color: var(--purple); }
.tw-result__jobs         { font-size: 13px; color: var(--purple); font-weight: 500; }
.tw-result__jobs:hover   { text-decoration: underline; }

/* Mobile */
@media (max-width: 480px) {
  .tw-result__stats { grid-template-columns: repeat(2, 1fr); }
  .tw-result__wpm-grid { grid-template-columns: 1fr 1fr; }
  .tw-result__wpm-num { font-size: 40px; }
}
.tw-result__jobs:hover   { color: var(--purple); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   PROOF STRIP
   ═══════════════════════════════════════════════════════════════ */
.proof-strip { background: var(--navy); padding: 14px 0; }
.proof-strip__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 20px;
  font-size: 14px; color: #B5D4F4;
  text-align: center; padding: 0 20px;
}
.proof-strip__inner strong { color: #fff; }
.proof-dot { color: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════════════════════════════ */
.section__title { font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section__desc  { font-size: 16px; color: var(--gray); margin-bottom: 32px; max-width: 58ch; }

/* ═══════════════════════════════════════════════════════════════
   JOB CARDS
   ═══════════════════════════════════════════════════════════════ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.job-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px; padding: 16px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; min-height: 88px;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.job-card:hover         { border-color: var(--purple); box-shadow: 0 4px 16px rgba(83,74,183,.12); transform: translateY(-2px); text-decoration: none; }
.job-card__top          { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 6px; flex-wrap: nowrap; }
.job-card__title        { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.3; flex: 1; min-width: 0; }
.job-card__wpm          { font-size: 10px; font-weight: 600; color: var(--purple); background: var(--lpurpl); padding: 2px 6px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; margin-top: 1px; }
.job-card__bottom       { display: flex; justify-content: space-between; align-items: center; }
.job-card__searches     { font-size: 12px; color: var(--gray); }
.job-card__arrow        { color: var(--purple); font-size: 16px; }
.job-card--more         { border-style: dashed; background: var(--lgray); }
.job-card--more .job-card__title { color: var(--gray); }

/* ═══════════════════════════════════════════════════════════════
   WHY GRID
   ═══════════════════════════════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.why-card__icon  { font-size: 28px; margin-bottom: 12px; }
.why-card__title { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.why-card__desc  { font-size: 14px; color: var(--gray); line-height: 1.6; margin: 0; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq            { padding: 60px 0; border-top: 1px solid var(--border); }
.faq__title     { font-size: clamp(20px, 3.5vw, 26px); font-weight: 700; margin-bottom: 28px; }
.faq__list      { max-width: 680px; }
.faq__item      { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 0; background: none; border: none;
  text-align: left; font-family: var(--font); -webkit-tap-highlight-color: transparent;
}
.faq__question-text         { font-size: 16px; font-weight: 500; color: var(--dark); line-height: 1.4; }
.faq__question:hover .faq__question-text { color: var(--purple); }
.faq__icon                  { font-size: 22px; font-weight: 300; color: var(--purple); flex-shrink: 0; transition: transform .2s; }
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__answer                { padding: 0 0 16px; }
.faq__answer-text           { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   CERT CTA (shared component)
   ═══════════════════════════════════════════════════════════════ */
.cert-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0A3560 100%);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  margin: 60px 0;
}
.cert-cta__inner { display: flex; flex-direction: column; gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .cert-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cert-cta__title    { font-size: clamp(20px, 3vw, 26px); color: #fff; font-weight: 700; margin-bottom: 8px; }
.cert-cta__desc     { font-size: 15px; color: #B5D4F4; line-height: 1.6; max-width: 50ch; }
.cert-cta__badges   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cert-cta__badge    { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #B5D4F4; }
.cert-cta__badge-icon { color: #34D399; font-weight: 700; }
.cert-cta__actions  { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; min-width: 220px; }
.cert-cta__btn      { display: block; text-align: center; padding: 13px 24px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity .15s, transform .1s; }
.cert-cta__btn:hover { text-decoration: none; opacity: .92; transform: translateY(-1px); }
.cert-cta__btn--paid { background: var(--purple); color: #fff; }
.cert-cta__btn--free { background: rgba(255,255,255,.08); color: #B5D4F4; font-size: 13px; padding: 10px 24px; }
.cert-cta__note     { font-size: 12px; color: #85B7EB; text-align: center; margin: 0; }
.cert-cta-compact   { background: var(--lpurpl); border-left: 3px solid var(--purple); padding: 14px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 20px 0; }
.cert-cta-compact__text { font-size: 15px; color: var(--dark); margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   RELATED JOBS
   ═══════════════════════════════════════════════════════════════ */
.related-jobs       { padding: 40px 0; border-top: 1px solid var(--border); }
.related-jobs__title { font-size: clamp(18px, 3vw, 22px); font-weight: 700; margin-bottom: 20px; }
.related-jobs__list  { display: flex; flex-direction: column; gap: 8px; }
.related-jobs__card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.related-jobs__card:hover        { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.related-jobs__card-content      { display: flex; flex-direction: column; gap: 3px; }
.related-jobs__job-title         { font-size: 15px; font-weight: 600; color: var(--dark); }
.related-jobs__wpm               { font-size: 13px; color: var(--gray); }
.related-jobs__arrow             { color: var(--purple); font-size: 18px; }

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════ */
.breadcrumb           { padding: 24px 0 0; }
.breadcrumb__list     { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb__link     { font-size: 13px; color: var(--gray); }
.breadcrumb__link:hover { color: var(--purple); }
.breadcrumb__sep      { font-size: 13px; color: var(--border); }
.breadcrumb__item--current { font-size: 13px; color: var(--dark); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer  { background: var(--navy); color: #B5D4F4; padding: 56px 0 0; margin-top: 80px; }
.footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 640px) { .footer__inner { grid-template-columns: 1fr 1fr; padding: 0 32px; } }
@media (min-width: 960px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__logo         { font-size: 20px; font-weight: 700; color: #fff; display: inline-block; margin-bottom: 12px; }
.footer__logo:hover   { text-decoration: none; }
.footer__logo-accent  { color: #AFA9EC; }
.footer__tagline      { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.footer__cta          { display: inline-block; background: var(--purple); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; }
.footer__cta:hover    { background: #3C3489; text-decoration: none; }
.footer__col-title    { font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer__links        { display: flex; flex-direction: column; gap: 8px; }
.footer__links a      { color: #B5D4F4; font-size: 14px; text-decoration: none; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  max-width: 1100px; margin: 48px auto 0;
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; padding: 16px 32px; } }
.footer__copy   { font-size: 13px; color: #85B7EB; margin: 0; }
.footer__legal  { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: #85B7EB; font-size: 13px; text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn          { display: inline-block; padding: 12px 24px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-family: var(--font); transition: .15s; }
.btn:hover    { text-decoration: none; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: #3C3489; }
.btn--outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn--outline:hover { background: var(--lpurpl); }


/* ── Group label (text / time) ── */
.tw__group-label {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 4px;
  user-select: none;
}

/* ── Bottom bar hint ── */
.tw__bottombar-hint {
  font-size: 11px;
  color: #9CA3AF;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Passage wrapper — no gap to textarea ── */
.tw__passage-wrap {
  display: flex;
  flex-direction: column;
}


/* ================================================================
   DARK MODE TOGGLE BUTTON (navbar)
   ================================================================ */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 5px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  font-family: var(--font);
}
.nav__theme-toggle:hover {
  background: rgba(255,255,255,.2);
}
.nav__theme-label {
  font-size: 12px;
}
/* Hide label on very small screens */
@media (max-width: 480px) {
  .nav__theme-label { display: none; }
}

/* Mobile menu theme button */
.mobile-menu__theme {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 24px;
  color: #B5D4F4;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .1s;
}
.mobile-menu__theme:hover {
  background: var(--blue);
  color: #fff;
}

/* ================================================================
   FIX: Untyped word contrast — #9CA3AF → #6B7280
   ================================================================ */
.tw-word--future { color: #6B7280 !important; }


/* ================================================================
   DARK MODE — all overrides under [data-theme="dark"]
   ================================================================ */
[data-theme="dark"] {
  --bg:     #1a1f2e;
  --white:  #242b3d;
  --lgray:  #1e2535;
  --border: #2d3a52;
  --dark:   #E2E8F0;
  --gray:   #8892A4;
}

/* Body and page background */
[data-theme="dark"] body {
  background: #1e2235;
  color: #F9FAFB;
}

/* Hero section */
[data-theme="dark"] .hero {
  background: #1e2235;
  border-bottom-color: #374151;
}
[data-theme="dark"] .hero__title { color: #F9FAFB; }
[data-theme="dark"] .hero__sub   { color: #9CA3AF; }
[data-theme="dark"] .hero__hint  { color: #6B7280; }
[data-theme="dark"] .hero__hint kbd {
  background: #1F2937;
  border-color: #374151;
  color: #9CA3AF;
}

/* Typing widget */
[data-theme="dark"] .tw {
  background: #262d40;
  border-color: #374151;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
[data-theme="dark"] .tw__topbar {
  background: #1c2133;
  border-bottom-color: #374151;
}
[data-theme="dark"] .tw__opt        { color: #6B7280; }
[data-theme="dark"] .tw__opt:hover  { color: #D1D5DB; background: rgba(255,255,255,.05); }
[data-theme="dark"] .tw__opt--active { color: #AFA9EC; background: rgba(83,74,183,.25); }
[data-theme="dark"] .tw__time        { color: #6B7280; }
[data-theme="dark"] .tw__time:hover  { color: #D1D5DB; background: rgba(255,255,255,.05); }
[data-theme="dark"] .tw__time--active { color: #AFA9EC; background: rgba(83,74,183,.25); }
[data-theme="dark"] .tw__group-label  { color: #4B5563; }
[data-theme="dark"] .tw__sep          { background: #374151; }

[data-theme="dark"] .tw__instruction {
  background: #222840;
  border-bottom-color: #374151;
  color: #6B7280;
}
[data-theme="dark"] .tw__legend-blue { color: #60A5FA; }
[data-theme="dark"] .tw__legend-red  { color: #F87171; }

[data-theme="dark"] .tw__stats {
  background: #222840;
  border-bottom-color: #374151;
}
[data-theme="dark"] .tw__stat-num            { color: #F9FAFB; }
[data-theme="dark"] .tw__stat--timer .tw__stat-num { color: #AFA9EC; }
[data-theme="dark"] .tw__stat-lbl            { color: #6B7280; }

/* Passage words in dark mode */
[data-theme="dark"] .tw__passage    { background: #262d40; } /* line-clamp preserved */
[data-theme="dark"] .tw-word--future  { color: #5a6a82 !important; }
[data-theme="dark"] .tw-word--current {
  color: #F9FAFB !important;
  border-bottom-color: #AFA9EC !important;
  background: rgba(83,74,183,.2) !important;
}
[data-theme="dark"] .tw-word--correct { color: #60A5FA !important; }
[data-theme="dark"] .tw-word--wrong   {
  color: #F87171 !important;
  background: rgba(220,38,38,.15) !important;
}
[data-theme="dark"] .tw-ch--ok    { color: #60A5FA !important; }
[data-theme="dark"] .tw-ch--bad   { color: #F87171 !important; background: rgba(220,38,38,.15) !important; }
[data-theme="dark"] .tw-ch--extra { color: #F87171 !important; }

/* Textarea in dark mode */
[data-theme="dark"] .tw__textarea {
  background: #1c2133;
  border-color: #374151;
  color: #F9FAFB;
}
[data-theme="dark"] .tw__textarea::placeholder { color: #4B5563; }
[data-theme="dark"] .tw__textarea:focus {
  border-color: #7C73D4;
  background: #1c2133;
  box-shadow: 0 0 0 3px rgba(124,115,212,.2);
}

/* Bottom bar */
[data-theme="dark"] .tw__bottombar {
  background: #1c2133;
  border-top-color: #374151;
}
[data-theme="dark"] .tw__restart-btn    { color: #4B5563; }
[data-theme="dark"] .tw__restart-btn:hover { color: #AFA9EC; }
[data-theme="dark"] .tw__prog-track     { background: #374151; }
[data-theme="dark"] .tw__bottombar-hint { color: #4B5563; }

/* Result screen */
[data-theme="dark"] .tw-result {
  background: #262d40;
  border-color: #374151;
}
[data-theme="dark"] .tw-result__scores   { border-bottom-color: #374151; }
[data-theme="dark"] .tw-result__wpm      { color: #AFA9EC; }
[data-theme="dark"] .tw-result__wpm-lbl  { color: #6B7280; }
[data-theme="dark"] .tw-result__stat span { color: #F9FAFB; }
[data-theme="dark"] .tw-result__stat small { color: #6B7280; }
[data-theme="dark"] .verdict--great   { background: rgba(22,163,74,.15);  color: #4ADE80; border-color: rgba(22,163,74,.3); }
[data-theme="dark"] .verdict--good    { background: rgba(59,130,246,.15); color: #60A5FA; border-color: rgba(59,130,246,.3); }
[data-theme="dark"] .verdict--ok      { background: rgba(217,119,6,.15);  color: #FCD34D; border-color: rgba(217,119,6,.3); }
[data-theme="dark"] .verdict--practice { background: #2d3a52; color: #CBD5E0; border-color: #3d4f6b; }
[data-theme="dark"] .tw-result__cert        { background: #1c2133; border-top-color: #2d3a52; }
[data-theme="dark"] .tw-result__cert-title  { color: #F9FAFB; }
[data-theme="dark"] .tw-result__cert-desc   { color: #9CA3AF; }
[data-theme="dark"] .tw-result__cert-badges { color: #34D399; }
[data-theme="dark"] .tw-result__name-input {
  background: #1c2133;
  border-color: #374151;
  color: #F9FAFB;
}
[data-theme="dark"] .tw-result__name-input::placeholder { color: #4B5563; }
[data-theme="dark"] .tw-result__free-link { color: #6B7280; }
[data-theme="dark"] .tw-result__retry    { background: #2d3a52; border-color: #3d4f6b; color: #8892A4; }
[data-theme="dark"] .tw-result__jobs     { color: #6B7280; }

/* Proof strip */
[data-theme="dark"] .proof-strip { background: #171d30; }

/* Sections and cards */
[data-theme="dark"] .section__title { color: #F9FAFB; }
[data-theme="dark"] .section__desc  { color: #9CA3AF; }
[data-theme="dark"] .job-card {
  background: #262d40;
  border-color: #374151;
}
[data-theme="dark"] .job-card__title   { color: #F9FAFB; }
[data-theme="dark"] .job-card--more    { background: #1c2133; }
[data-theme="dark"] .job-card--more .job-card__title { color: #6B7280; }
[data-theme="dark"] .why-card {
  background: #262d40;
  border-color: #374151;
}
[data-theme="dark"] .why-card__title { color: #F9FAFB; }
[data-theme="dark"] .why-card__desc  { color: #9CA3AF; }

/* FAQ */
[data-theme="dark"] .faq              { border-top-color: #374151; }
[data-theme="dark"] .faq__title       { color: #F9FAFB; }
[data-theme="dark"] .faq__item        { border-bottom-color: #374151; }
[data-theme="dark"] .faq__item:first-child { border-top-color: #374151; }
[data-theme="dark"] .faq__question-text   { color: #F9FAFB; }
[data-theme="dark"] .faq__answer-text     { color: #9CA3AF; }

/* Footer — already dark, minor tweaks */
[data-theme="dark"] .site-footer { background: #171d30; }
[data-theme="dark"] .footer__bottom { border-top-color: rgba(255,255,255,.05); }


/* ── Dark mode toggle button — cleaner pill style ── */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1;
}
.nav__theme-toggle:hover { background: rgba(255,255,255,.2); }
.nav__theme-label { font-size: 12px; letter-spacing: .02em; }
@media (max-width: 520px) { .nav__theme-label { display: none; } }

.mobile-menu__theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 24px;
  color: #B5D4F4;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .1s;
}
.mobile-menu__theme:hover { background: var(--blue); color: #fff; }


/* ================================================================
   SUN/MOON TOGGLE — radio pill style
   ================================================================ */

/* Hide old text-based toggle styles */
.nav__theme-label { display: none !important; }

.nav__theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}

/* The sliding track */
.nav__toggle-track {
  display: block;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}

/* The sliding thumb */
.nav__toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Dark mode — thumb slides right, track turns purple */
[data-theme="dark"] .nav__toggle-track {
  background: var(--purple);
  border-color: var(--purple);
}
[data-theme="dark"] .nav__toggle-thumb {
  transform: translateX(18px);
}

/* The icon next to the toggle */
.nav__toggle-icon {
  font-size: 15px;
  line-height: 1;
  user-select: none;
}

/* ================================================================
   MOBILE NAV — hide certificate from top bar, fix menu button
   ================================================================ */

/* Hide certificate CTA on mobile */
.nav__cta--desktop {
  display: none;
}
@media (min-width: 768px) {
  .nav__cta--desktop {
    display: inline-block;
  }
}

/* Mobile menu footer with certificate */
.mobile-menu__footer {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-menu__cta {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--purple);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background .15s;
  box-sizing: border-box;
}
.mobile-menu__cta:hover {
  background: #3C3489;
  text-decoration: none;
}

/* ================================================================
   FIX: Remove the visible separator line after "all letters"
   tw__sep should only show between the two groups — hidden on
   small screens when groups wrap to separate rows
   ================================================================ */
.tw__sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
  align-self: center;
}

/* On narrow screens where buttons wrap, hide the sep
   to avoid a floating vertical line on its own row */
@media (max-width: 600px) {
  .tw__sep { display: none; }
}


/* passage height handled below */

/* ================================================================
   FIX: Mobile certificate button — properly aligned
   ================================================================ */
.mobile-menu__footer {
  padding: 16px 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}

.mobile-menu__cta {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px 20px !important;
  background: var(--purple) !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  transition: background .15s !important;
}
.mobile-menu__cta:hover {
  background: #3C3489 !important;
  text-decoration: none !important;
}

/* ================================================================
   FIX: Dark mode — softer text colours for eye comfort
   ================================================================ */
[data-theme="dark"] .hero__title  { color: #E2E8F0; }
[data-theme="dark"] .section__title { color: #E2E8F0; }
[data-theme="dark"] .why-card__title { color: #E2E8F0; }
[data-theme="dark"] .job-card__title { color: #CBD5E0; }
[data-theme="dark"] .faq__question-text { color: #E2E8F0; }
[data-theme="dark"] .tw-result__wpm { color: #AFA9EC; }
[data-theme="dark"] .tw-result__stat span { color: #E2E8F0; }
[data-theme="dark"] .tw__stat-num { color: #E2E8F0; }
[data-theme="dark"] .tw__stat--timer .tw__stat-num { color: #AFA9EC; }

/* Passage text in dark — off-white not pure white */
[data-theme="dark"] .tw-word--current {
  color: #E2E8F0 !important;
  border-bottom-color: #AFA9EC !important;
  background: rgba(83,74,183,.25) !important;
  border-radius: 3px !important;
}

/* Textarea text in dark — off white */
[data-theme="dark"] .tw__textarea {
  color: #CBD5E0 !important;
}
[data-theme="dark"] .tw__textarea::placeholder {
  color: #3d4f6b !important;
}


/* ================================================================
   FINAL COLOUR POLISH
   ================================================================ */

/* Light mode — very slight warm off-white, easier than pure white */
.tw {
  background: #FEFEFE;
}
.tw__topbar,
.tw__bottombar,
.tw__stats {
  background: #F4F4F2;
}
.tw__instruction {
  background: #F8F8F6;
}
.tw__textarea {
  background: #F0F0EE;
}
.tw__textarea:focus {
  background: #ffffff;
}

/* Dark mode — warmer navy, less harsh */
[data-theme="dark"] body          { background: #1e2235 !important; }
[data-theme="dark"] .hero         { background: #1e2235 !important; border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .tw           { background: #262d40 !important; border-color: #2a3150 !important; }
[data-theme="dark"] .tw__topbar   { background: #1c2133 !important; border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .tw__stats    { background: #222840 !important; border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .tw__instruction { background: #222840 !important; border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .tw__passage  { background: #262d40 !important; } /* line-clamp preserved */
[data-theme="dark"] .tw__textarea {
  background: #1c2133 !important;
  border-color: #2a3150 !important;
  color: #CDD5E0 !important;
}
[data-theme="dark"] .tw__textarea:focus {
  background: #1c2133 !important;
  border-color: #7C73D4 !important;
}
[data-theme="dark"] .tw__textarea::placeholder { color: #3d4f6b !important; }
[data-theme="dark"] .tw__bottombar { background: #1c2133 !important; border-top-color: #2a3150 !important; }
[data-theme="dark"] .proof-strip  { background: #171d30 !important; }
[data-theme="dark"] .job-card     { background: #262d40 !important; border-color: #2a3150 !important; }
[data-theme="dark"] .job-card--more { background: #1c2133 !important; }
[data-theme="dark"] .why-card     { background: #262d40 !important; border-color: #2a3150 !important; }
[data-theme="dark"] .site-footer  { background: #171d30 !important; }
[data-theme="dark"] .tw-result    { background: #262d40 !important; border-color: #2a3150 !important; }
[data-theme="dark"] .tw-result__scores { border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .tw-result__cert { background: #1c2133 !important; border-top-color: #2a3150 !important; }
[data-theme="dark"] .faq          { border-top-color: #2a3150 !important; }
[data-theme="dark"] .faq__item    { border-bottom-color: #2a3150 !important; }
[data-theme="dark"] .faq__item:first-child { border-top-color: #2a3150 !important; }

/* Dark mode text — warm off-white, not harsh pure white */
[data-theme="dark"] .hero__title    { color: #D8DFF0 !important; }
[data-theme="dark"] .hero__sub      { color: #7A8BA8 !important; }
[data-theme="dark"] .section__title { color: #D8DFF0 !important; }
[data-theme="dark"] .why-card__title { color: #D8DFF0 !important; }
[data-theme="dark"] .job-card__title { color: #C8D0E0 !important; }
[data-theme="dark"] .faq__question-text { color: #D8DFF0 !important; }
[data-theme="dark"] .faq__answer-text   { color: #7A8BA8 !important; }
[data-theme="dark"] .tw__stat-num  { color: #D8DFF0 !important; }
[data-theme="dark"] .tw-result__wpm { color: #AFA9EC !important; }
[data-theme="dark"] .tw-result__stat span { color: #D8DFF0 !important; }

/* Passage words in dark — warm tones */
[data-theme="dark"] .tw-word--future  { color: #4a5878 !important; }
[data-theme="dark"] .tw-word--current {
  color: #D8DFF0 !important;
  border-bottom-color: #AFA9EC !important;
  background: rgba(83,74,183,.2) !important;
  border-radius: 3px !important;
}
[data-theme="dark"] .tw-word--correct { color: #60A5FA !important; }
[data-theme="dark"] .tw-word--wrong   { color: #F87171 !important; background: rgba(220,38,38,.12) !important; }
[data-theme="dark"] .tw-ch--ok   { color: #60A5FA !important; }
[data-theme="dark"] .tw-ch--bad  { color: #F87171 !important; background: rgba(220,38,38,.12) !important; }


/* ================================================================
   TOPBAR — more spacing, buttons feel clickable
   ================================================================ */

/* Topbar: more padding, flex column so TEXT and TIME are clearly separate rows */
.tw__topbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 14px 18px 12px !important;
  background: var(--lgray) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Each row: label + buttons on same line */
.tw__group {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}

/* Separator between rows — now hidden since rows are stacked */
.tw__sep {
  display: none !important;
}

/* Group label (TEXT / TIME) */
.tw__group-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9CA3AF !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  width: 36px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

/* Mode buttons — proper button feel */
.tw__opt {
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 5px 13px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray) !important;
  cursor: pointer !important;
  transition: all .15s !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
}
.tw__opt:hover {
  border-color: var(--purple) !important;
  color: var(--purple) !important;
  background: var(--white) !important;
}
.tw__opt--active {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(83,74,183,.3) !important;
}

/* Time buttons — proper button feel */
.tw__time {
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 5px 11px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray) !important;
  font-family: var(--mono) !important;
  cursor: pointer !important;
  transition: all .15s !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
}
.tw__time:hover {
  border-color: var(--purple) !important;
  color: var(--purple) !important;
  background: var(--white) !important;
}
.tw__time--active {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(83,74,183,.3) !important;
}

/* Dark mode topbar buttons */
[data-theme="dark"] .tw__opt {
  background: #2a3150 !important;
  border-color: #3a4a6b !important;
  color: #8892A4 !important;
  box-shadow: none !important;
}
[data-theme="dark"] .tw__opt:hover {
  border-color: #AFA9EC !important;
  color: #AFA9EC !important;
  background: #2a3150 !important;
}
[data-theme="dark"] .tw__opt--active {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
}
[data-theme="dark"] .tw__time {
  background: #2a3150 !important;
  border-color: #3a4a6b !important;
  color: #8892A4 !important;
  box-shadow: none !important;
}
[data-theme="dark"] .tw__time:hover {
  border-color: #AFA9EC !important;
  color: #AFA9EC !important;
  background: #2a3150 !important;
}
[data-theme="dark"] .tw__time--active {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
}


/* ================================================================
   TOPBAR — more gap between TEXT and TIME rows + mobile fix
   ================================================================ */

/* More vertical gap between the two rows */
.tw__topbar {
  gap: 10px !important;
  padding: 16px 20px 14px !important;
}

/* TEXT label fixed width so buttons align */
.tw__group-label {
  min-width: 42px !important;
  width: 42px !important;
}

/* ── MOBILE: smaller buttons, single row each ── */
@media (max-width: 640px) {
  .tw__topbar {
    padding: 12px 14px 10px !important;
    gap: 8px !important;
  }

  .tw__group {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important; /* hide scrollbar Firefox */
    -ms-overflow-style: none !important;
    gap: 4px !important;
    width: 100% !important;
  }

  /* Hide scrollbar Chrome/Safari */
  .tw__group::-webkit-scrollbar {
    display: none !important;
  }

  .tw__group-label {
    min-width: 34px !important;
    width: 34px !important;
    font-size: 9px !important;
    flex-shrink: 0 !important;
  }

  .tw__opt,
  .tw__time {
    padding: 5px 10px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}


/* passage always visible */

/* ── Mobile: fix passage + textarea layout ── */
@media (max-width: 640px) {
  .tw__passage {
    font-size: 18px !important;
    padding: 16px 16px 6px !important;
    -webkit-line-clamp: 3 !important;
  }
  .tw__input-wrap {
    padding: 0 12px 10px !important;
  }
  .tw__textarea {
    font-size: 16px !important;
    padding: 10px 12px !important;
    min-height: 70px !important;
  }
}


/* ================================================================
   FIX: "all letters" cut off on mobile — fade edge hint
   ================================================================ */
@media (max-width: 640px) {
  /* Wrapper to contain the scroll group with fade */
  .tw__group {
    position: relative !important;
  }

  /* Fade on right edge to hint that more buttons exist */
  .tw__topbar {
    position: relative !important;
  }

  /* Make buttons slightly smaller so more fit */
  .tw__opt {
    padding: 4px 9px !important;
    font-size: 12px !important;
  }
  .tw__time {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }

  /* Ensure last button fully visible with right padding */
  .tw__group::after {
    content: '' !important;
    min-width: 8px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }
}


/* ================================================================
   ROBOTO MONO — replace Courier New everywhere
   ================================================================ */
:root {
  --mono: 'Roboto Mono', 'Courier New', monospace;
}
.tw__passage  { font-family: var(--mono) !important; font-size: 24px !important; }
.tw__textarea { font-family: var(--mono) !important; font-size: 18px !important; }

/* ================================================================
   MODERN SPACING — rounder, softer, more breathing room
   ================================================================ */
.tw {
  border-radius: 20px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08) !important;
}
.tw-result {
  border-radius: 20px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08) !important;
}
.tw__stats {
  padding: 14px 24px !important;
  gap: 28px !important;
}
.tw__stat-num {
  font-size: 28px !important;
  min-width: unset !important;
}

/* ================================================================
   CERTIFICATE BUTTON — authoritative, pulsing, with badge
   ================================================================ */
.nav__cta--desktop {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 28px !important;
  background: var(--purple) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(83,74,183,.4), 0 0 0 0 rgba(83,74,183,.3) !important;
  animation: cert-pulse 4s ease-in-out infinite !important;
  transition: background .15s, transform .1s !important;
  position: relative !important;
}
.nav__cta--desktop:hover {
  background: #3C3489 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(83,74,183,.5) !important;
}
.nav__cta-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  background: rgba(255,255,255,.25) !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

@keyframes cert-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(83,74,183,.4), 0 0 0 0 rgba(83,74,183,.3); }
  60%       { box-shadow: 0 2px 8px rgba(83,74,183,.4), 0 0 0 8px rgba(83,74,183,.0); }
  70%       { box-shadow: 0 2px 8px rgba(83,74,183,.4), 0 0 0 12px rgba(83,74,183,.0); }
}

/* ================================================================
   MOBILE STATS FIX — wrap gracefully, no overflow
   ================================================================ */
@media (max-width: 480px) {
  .tw__stats {
    flex-wrap: wrap !important;
    gap: 10px 20px !important;
    padding: 12px 16px !important;
  }
  .tw__stat-num { font-size: 22px !important; min-width: 36px !important; }
  .tw__stat-lbl { font-size: 10px !important; }

  /* Shorten ACCURACY to ACC on mobile */
  .tw__stat:last-of-type .tw__stat-lbl::after { content: ''; }
  .tw__stat:last-of-type .tw__stat-lbl { font-size: 0 !important; }
  .tw__stat:last-of-type .tw__stat-lbl::before {
    content: 'acc' !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: var(--gray) !important;
  }
}

/* ================================================================
   TABLET NAVBAR — prevent link wrapping
   ================================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav__link {
    font-size: 12px !important;
    padding: 5px 7px !important;
  }
  .nav__links { gap: 0 !important; }
  .nav__cta--desktop {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }
}

/* ================================================================
   SHARE BUTTONS — result screen
   ================================================================ */
/* ================================================================
   RESULT PAGE — /result/
   ================================================================ */
.result-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.result-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
}
.result-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}
.result-card__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.result-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--lgreen);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #BBF7D0;
}
.result-card__scores {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 28px 28px 16px;
  flex-wrap: wrap;
}
.result-card__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.result-card__wpm {
  font-size: 80px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
}
.result-card__wpm-lbl {
  font-size: 20px;
  color: var(--gray);
  font-weight: 600;
}
.result-card__details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.result-card__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.result-card__detail span {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}
.result-card__detail small {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.result-card__date {
  font-size: 13px;
  color: var(--gray);
  padding: 0 28px 16px;
}
.result-card__verdict {
  padding: 0 28px 16px;
}
.rc-verdict {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.rc-verdict--great   { background: var(--lgreen); color: #14532D; border: 1px solid #BBF7D0; }
.rc-verdict--good    { background: var(--lblue);  color: var(--navy); border: 1px solid #BFDBFE; }
.rc-verdict--ok      { background: var(--lamber); color: #78350F; border: 1px solid #FDE68A; }
.result-card__cta {
  background: var(--lgray);
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-card__cta-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 100%;
}
.result-card__try-btn {
  display: block;
  text-align: center;
  background: var(--purple);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s;
}
.result-card__try-btn:hover { background: #3C3489; text-decoration: none; }
.result-card__cert-link {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
/* Invalid state */
.result-card__invalid {
  padding: 60px 28px;
  text-align: center;
}
.result-card__invalid-icon  { font-size: 48px; margin-bottom: 16px; }
.result-card__invalid-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.result-card__invalid-desc  { font-size: 15px; color: var(--gray); margin-bottom: 24px; line-height: 1.6; }
/* Loading state */
.result-card__loading {
  padding: 60px 28px;
  text-align: center;
  color: var(--gray);
  font-size: 15px;
}
.result-card__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dark mode result page */
[data-theme="dark"] .result-card          { background: #262d40; border-color: #2a3150; }
[data-theme="dark"] .result-card__header  { background: #1c2133; border-bottom-color: #2a3150; }
[data-theme="dark"] .result-card__logo    { color: #AFA9EC; }
[data-theme="dark"] .result-card__wpm     { color: #AFA9EC; }
[data-theme="dark"] .result-card__detail span { color: #D8DFF0; }
[data-theme="dark"] .result-card__cta     { background: #1c2133; border-top-color: #2a3150; }
[data-theme="dark"] .result-card__invalid-title { color: #D8DFF0; }


/* ================================================================
   NAV FIX — certificate hidden on mobile+tablet, hamburger aligned
   ================================================================ */

/* Hide certificate from nav on everything below 1100px */
.nav__cta--desktop {
  display: none !important;
}
@media (min-width: 1100px) {
  .nav__cta--desktop {
    display: inline-flex !important;
  }
}

/* Nav right — no overflow, just toggle + hamburger on mobile */
.nav__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

/* Hamburger always visible on mobile/tablet */
@media (max-width: 1099px) {
  .nav__hamburger { display: flex !important; }
  .nav__links     { display: none !important; }
}
@media (min-width: 1100px) {
  .nav__hamburger { display: none !important; }
  .nav__links     { display: flex !important; }
}

/* ================================================================
   MOBILE PASSAGE — ensure font size doesn't overflow container
   ================================================================ */
@media (max-width: 480px) {
  .tw__passage {
    font-size: 18px !important;
    line-height: 1.85 !important;
    padding: 14px 14px 8px !important;
  }
  .tw__textarea {
    font-size: 16px !important;
  }
}


/* ================================================================
   HAMBURGER MENU — JS controls visibility via hidden attribute
   Only hide via CSS on true desktop where hamburger doesn't exist
   ================================================================ */
@media (min-width: 1100px) {
  /* On desktop, hamburger is hidden so menu never opens — safe to force hide */
  #mobile-menu[hidden] { display: none; }
}

/* Mobile menu always full width, proper styling */
.mobile-menu {
  position: relative;
  z-index: 999;
  width: 100%;
}
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================================================================
   MOBILE TEXTAREA — fixed height, no growing
   ================================================================ */
@media (max-width: 768px) {
  .tw__input-wrap {
    padding: 4px 14px 12px !important;
  }
  .tw__textarea {
    min-height: 70px !important;
    max-height: 70px !important;
    overflow-y: hidden !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
    resize: none !important;
  }

  /* Passage smaller on mobile so 3 lines fit */
  .tw__passage {
    font-size: 17px !important;
    line-height: 1.8 !important;
    padding: 14px 14px 8px !important;
  }
}


/* mobile textarea — handled in final rules below */


/* ================================================================
   TEXTAREA — single line on ALL devices, never grows
   ================================================================ */
.tw__textarea {
  rows: 1;
  min-height: 90px;
  max-height: 90px;
  overflow: hidden;
  resize: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  textarea.tw__textarea[rows] {
    min-height: 70px !important;
    max-height: 70px !important;
    height: 70px !important;
    overflow: hidden !important;
    resize: none !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  textarea.tw__textarea[rows]::placeholder {
    font-size: 13px !important;
  }
}

/* ================================================================
   JOB PAGES — /jobs/[slug]/
   ================================================================ */

/* Req badges below H1 */
.job-hero__reqs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 8px;
}
.job-hero__req {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lgray);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.job-hero__req-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.job-hero__req-lbl {
  font-size: 12px;
  color: var(--gray);
}

/* What employers expect — darker body text */
.job-info__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .job-info__grid { grid-template-columns: 1fr; } }
.job-info__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.job-info__body {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.7;
}
.job-info__card {
  background: var(--lgray);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.job-info__card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.job-info__card-row:last-child { border-bottom: none; }
.job-links-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; border: 1px solid var(--border); }
.job-links-table th { background: var(--lgray); color: var(--dark); font-weight: 700; padding: 11px 14px; text-align: left; border: 1px solid var(--border); }
.job-links-table td { padding: 10px 14px; color: var(--dark); border: 1px solid var(--border); vertical-align: middle; }
.job-links-table td a { color: var(--purple); font-weight: 500; text-decoration: none; }
.job-links-table td a:hover { text-decoration: underline; }
[data-theme="dark"] .job-links-table { border-color: #2d3a52; }
[data-theme="dark"] .job-links-table th { color: #f9fafb; background: #1a2035; border-color: #2d3a52; }
[data-theme="dark"] .job-links-table td { color: #E5E7EB; border-color: #2d3a52; }
.job-info__card-lbl { font-size: 13px; color: var(--gray); }
.job-info__card-val { font-size: 15px; font-weight: 700; color: var(--dark); }

/* Long-form content from markdown */
.page-job .section h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 32px 0 10px; }
.page-job .section h2:first-child { margin-top: 0; }
.page-job .section p { font-size: 15px; color: #4B5563; line-height: 1.7; margin-bottom: 14px; }
.page-job .section strong { color: var(--dark); font-weight: 600; }
.page-job .section ul { margin: 0 0 14px 20px; }
.page-job .section li { font-size: 15px; color: #4B5563; line-height: 1.7; margin-bottom: 6px; }

/* Dark mode */
[data-theme="dark"] .job-hero__req { background: #1e2535; border-color: #2d3a52; }
[data-theme="dark"] .job-info__card { background: #1e2535; border-color: #2d3a52; }
[data-theme="dark"] .job-info__card-row { border-bottom-color: #2d3a52; }
[data-theme="dark"] .job-info__body { color: #9CA3AF; }
[data-theme="dark"] .page-job .section p { color: #9CA3AF; }
[data-theme="dark"] .page-job .section li { color: #9CA3AF; }

/* ================================================================
   JOBS INDEX PAGE — /jobs/
   ================================================================ */
.jobs-hero { padding: 16px 0 32px; border-bottom: 1px solid var(--border); }
.jobs-hero__title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 10px; margin-top: 16px; }
.jobs-hero__sub { font-size: 16px; color: var(--gray); max-width: 580px; line-height: 1.6; }
.jobs-grid-section { padding: 40px 0 56px; }
.jobs-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.jobs-card:hover { border-color: var(--purple); box-shadow: 0 4px 12px rgba(83,74,183,.1); text-decoration: none; }
.jobs-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; flex-wrap: nowrap; }
.jobs-card__category { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gray); text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs-card__wpm { font-size: 11px; font-weight: 700; color: var(--purple); background: var(--lpurpl); padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.jobs-card__title { font-size: 17px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.jobs-card__desc { font-size: 13px; color: var(--gray); line-height: 1.6; flex: 1; }
.jobs-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.jobs-card__accuracy { font-size: 12px; color: var(--green); font-weight: 600; }
.jobs-card__arrow { font-size: 16px; color: var(--purple); }
[data-theme="dark"] .jobs-card { background: #1e2535; border-color: #2d3a52; }
[data-theme="dark"] .jobs-card:hover { border-color: var(--purple); }

/* ── WPM TABLE ─────────────────────────────────────────────────── */
.wpm-table-wrap { overflow-x: auto; margin-top: 24px; }
.wpm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wpm-table th { text-align: left; padding: 10px 16px; background: var(--lpurpl); color: var(--purple); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.wpm-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--dark); }
.wpm-table td a { color: var(--purple); text-decoration: none; font-weight: 600; }
.wpm-table td a:hover { text-decoration: underline; }
.wpm-table tr:last-child td { border-bottom: none; }
.wpm-table tr:hover td { background: var(--lgray); }
[data-theme="dark"] .wpm-table th { background: #1e2535; color: #a78bfa; }
[data-theme="dark"] .wpm-table td { border-bottom-color: #2a3150; color: #e2e8f0; }
[data-theme="dark"] .wpm-table tr:hover td { background: #1e2535; }

/* ── CTA BLOCK ─────────────────────────────────────────────────── */
.cta-section { background: var(--lpurpl); }
.cta-block { text-align: center; padding: 20px 0; }
.cta-block__title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.cta-block__desc { font-size: 16px; color: var(--gray); margin-bottom: 24px; }
.cta-block__btn { display: inline-block; background: var(--purple); color: #fff; padding: 14px 32px; border-radius: var(--r-md); font-weight: 700; font-size: 16px; text-decoration: none; transition: opacity .15s; }
.cta-block__btn:hover { opacity: .9; text-decoration: none; }
[data-theme="dark"] .cta-section { background: #1e2535; }
[data-theme="dark"] .cta-block__title { color: #f9fafb; }

/* ── ABOUT SECTION ─────────────────────────────────────────────── */
.about-section { background: var(--bg); }
.about-content { max-width: 100%; }
.about__title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; color: var(--dark); margin-bottom: 24px; line-height: 1.3; }
.about__para { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.about__para:last-child { margin-bottom: 0; }
[data-theme="dark"] .about__title { color: #f9fafb; }
[data-theme="dark"] .about__para { color: #cbd5e0; }

/* ── CALCULATOR PAGE ───────────────────────────────────────────── */
.calc-page { max-width: 100%; margin: 0; padding: 16px 0 60px; }
.calc-page__header { margin-bottom: 32px; }
.calc-page__title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: var(--dark); margin-bottom: 10px; margin-top: 16px; letter-spacing: -1px; }
.calc-page__desc { font-size: 16px; color: var(--gray); line-height: 1.6; }

/* Widget */
.calc-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 48px; }
.calc-tabs { display: flex; border-bottom: 1px solid var(--border); }
.calc-tab { flex: 1; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--gray); background: none; border: none; cursor: pointer; transition: all .15s; }
.calc-tab--active { color: var(--purple); border-bottom: 2px solid var(--purple); background: var(--lpurpl); }
.calc-tab:hover:not(.calc-tab--active) { background: var(--lgray); color: var(--dark); }
.calc-panel { display: none; padding: 32px; }
.calc-panel--active { display: block; }
.calc-input-group { margin-bottom: 20px; }
.calc-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.calc-input { width: 100%; max-width: 280px; padding: 12px 16px; font-size: 18px; font-weight: 600; border: 2px solid var(--border); border-radius: var(--r-md); color: var(--dark); background: var(--bg); transition: border-color .15s; }
.calc-input:focus { outline: none; border-color: var(--purple); }
.calc-result { margin-top: 24px; padding: 20px 24px; background: var(--lpurpl); border-radius: var(--r-md); display: inline-block; min-width: 200px; }
.calc-result--accent { background: var(--purple); }
.calc-result--accent .calc-result__num { color: #fff; }
.calc-result--accent .calc-result__label { color: rgba(255,255,255,.8); }
.calc-result__num { display: block; font-size: 36px; font-weight: 700; color: var(--purple); line-height: 1.1; }
.calc-result__label { display: block; font-size: 13px; color: var(--gray); margin-top: 4px; }
.calc-formula { margin-top: 16px; font-size: 13px; color: var(--gray); font-family: 'Roboto Mono', monospace; }
.calc-inputs-row { display: flex; gap: 16px; flex-wrap: wrap; }
.calc-inputs-row .calc-input { max-width: 160px; }
.calc-results-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* Table section */
.calc-table-section { margin-bottom: 48px; }
.calc-table__title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.calc-table__desc { font-size: 15px; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }

/* Content */
.calc-content h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 36px 0 12px; }
.calc-content p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 18px; }

/* Dark mode */
[data-theme="dark"] .calc-widget { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .calc-tab--active { background: #1e2a45; }
[data-theme="dark"] .calc-input { background: #0f1729; border-color: #2a3150; color: #f9fafb; }
[data-theme="dark"] .calc-result { background: #1e2a45; }
[data-theme="dark"] .calc-result__num { color: #a78bfa; }
[data-theme="dark"] .calc-page__title { color: #f9fafb; }
[data-theme="dark"] .calc-table__title { color: #f9fafb; }
[data-theme="dark"] .calc-content h2 { color: #f9fafb; }
[data-theme="dark"] .calc-content p { color: #cbd5e0; }

/* ── TYPING TOOLS HUB ──────────────────────────────────────────── */
.tools-page { padding: 16px 0 60px; }
.page-tools .breadcrumb { margin-top: 16px; }
.page-calculator .breadcrumb { margin-top: 20px; }
.page-keyboards .breadcrumb { margin-top: 20px; }
.tools-page__header { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.tools-page__title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: var(--dark); margin-bottom: 10px; letter-spacing: -1px; }
.tools-page__desc { font-size: 16px; color: var(--gray); line-height: 1.6; max-width: 600px; }
.tools-section { margin-top: 48px; }
.tools-section__title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.tool-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--purple); text-decoration: none; }
.tool-card--soon { opacity: .7; cursor: default; pointer-events: none; }
.tool-card--soon:hover { box-shadow: none; border-color: var(--border); }
.tool-card__icon { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.tool-card__title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-card__badge { font-size: 10px; font-weight: 600; background: var(--lgray); color: var(--gray); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tool-card__desc { font-size: 13px; color: var(--gray); line-height: 1.55; margin-bottom: 12px; }
.tool-card__link { font-size: 13px; font-weight: 600; color: var(--purple); }
[data-theme="dark"] .tools-page__title { color: #f9fafb; }
[data-theme="dark"] .tools-section__title { color: #f9fafb; border-color: #2a3150; }
[data-theme="dark"] .tool-card { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .tool-card__title { color: #f9fafb; }
[data-theme="dark"] .tool-card__badge { background: #2a3150; color: #9ca3af; }

/* ── TYPING TIME CALCULATOR EXTRAS ─────────────────────────────── */
.calc-panel__hint { font-size: 13px; color: var(--gray); margin-bottom: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.preset-btn { font-size: 12px; font-weight: 600; color: var(--purple); background: var(--lpurpl); border: none; padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.preset-btn:hover { background: var(--purple); color: #fff; }
[data-theme="dark"] .preset-btn { background: #1e2a45; color: #a78bfa; }
[data-theme="dark"] .preset-btn:hover { background: var(--purple); color: #fff; }

/* ── COPY BUTTON & CONTEXT ─────────────────────────────────────── */
.calc-context { font-size: 14px; color: var(--gray); margin-top: 14px; margin-bottom: 10px; line-height: 1.6; font-style: italic; }
.copy-btn { font-size: 13px; font-weight: 600; color: var(--purple); background: none; border: 1px solid var(--purple); padding: 6px 14px; border-radius: var(--r-md); cursor: pointer; transition: all .15s; margin-bottom: 12px; }
.copy-btn:hover { background: var(--purple); color: #fff; }
.preset-btn--active { background: var(--purple); color: #fff; }
[data-theme="dark"] .calc-context { color: #9ca3af; }
[data-theme="dark"] .copy-btn { border-color: #a78bfa; color: #a78bfa; }
[data-theme="dark"] .copy-btn:hover { background: var(--purple); color: #fff; }

/* ── TABLE NOTE ────────────────────────────────────────────────── */
.calc-table__note { font-size: 12px; color: var(--gray); margin-top: 10px; font-style: italic; }

/* ── TABLE EXTRAS ──────────────────────────────────────────────── */
.wpm-table__highlight td { font-weight: 600; background: var(--lpurpl); }
[data-theme="dark"] .wpm-table__highlight td { background: #1e2a45; }
.calc-legend { margin-top: 20px; padding: 16px 20px; background: var(--lgray); border-radius: var(--r-md); }
.calc-legend__title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.calc-legend__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.calc-legend__list li { font-size: 13px; color: var(--gray); }
[data-theme="dark"] .calc-legend { background: #1a2035; }
[data-theme="dark"] .calc-legend__title { color: #f9fafb; }

/* ── 10-KEY WIDGET ─────────────────────────────────────────────── */
.tk-hero { padding: 16px 0 0; }
.tk-hero__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 8px; margin-top: 16px; }
.tk-hero__sub { font-size: 16px; color: var(--gray); max-width: 580px; line-height: 1.6; margin-bottom: 24px; }

.tk-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 48px; }

/* Controls */
.tk__controls { display: flex; align-items: center; gap: 8px; padding: 14px 20px 0; flex-wrap: wrap; }
.tk__label { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.tk__opt { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--gray); cursor: pointer; transition: all .15s; }
.tk__opt--active { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 600; }
.tk__opt:hover:not(.tk__opt--active) { border-color: var(--purple); color: var(--purple); }
.tk__time { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--gray); cursor: pointer; transition: all .15s; }
.tk__time--active { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 600; }
.tk__time:hover:not(.tk__time--active) { border-color: var(--purple); color: var(--purple); }

/* Instruction */
.tk__instruction { font-size: 13px; color: var(--gray); padding: 12px 20px; border-top: 1px solid var(--border); margin-top: 14px; }
.tk__instruction kbd { font-family: 'Roboto Mono', monospace; font-size: 11px; background: var(--lgray); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* Stats */
.tk__stats { display: flex; gap: 32px; padding: 16px 20px; }
.tk__stat { display: flex; align-items: baseline; gap: 6px; }
.tk__stat--kph span:first-child { font-size: 32px; font-weight: 800; color: var(--dark); font-variant-numeric: tabular-nums; }
.tk__stat--time span:first-child { font-size: 32px; font-weight: 800; color: var(--purple); font-variant-numeric: tabular-nums; }
.tk__stat--acc span:first-child { font-size: 32px; font-weight: 800; color: var(--dark); font-variant-numeric: tabular-nums; }
.tk__stat small { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: .06em; text-transform: uppercase; }

/* Sequence display */
.tk__seq-wrap { padding: 0 20px; margin: 4px 0 0; height: 184px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.tk__seq-list { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.tk__seq { font-family: 'Roboto Mono', monospace; font-size: 20px; padding: 8px 12px; border-radius: 6px; color: #aab; letter-spacing: .05em; height: 44px; display: flex; align-items: center; }
.tk__seq--active { color: var(--dark); background: var(--lpurpl); font-weight: 600; border-left: 3px solid var(--purple); }
.tk__seq--done { color: var(--border); text-decoration: line-through; opacity: .4; }

/* Input */
.tk__input-wrap { padding: 0 20px 12px; margin-top: 0; }
.tk__input { width: 100%; font-family: 'Roboto Mono', monospace; font-size: 18px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--r-md); background: var(--lgray); color: var(--dark); transition: border-color .15s; box-sizing: border-box; }
.tk__input:focus { outline: none; border-color: var(--purple); background: var(--bg); }
.tk__input--error { border-color: #DC2626 !important; }
.tk__input::placeholder { color: var(--gray); font-size: 14px; }

/* Footer */
.tk__footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-top: 1px solid var(--border); }
.tk__restart { font-size: 13px; color: var(--gray); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.tk__restart:hover { color: var(--purple); }
.tk__restart-hint { font-size: 11px; color: var(--border); }
.tk__footer-hint { font-size: 12px; color: var(--gray); }

/* Result screen */
.tk__result { padding: 32px 20px; text-align: center; }
.tk__result-title { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.tk__result-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tk__result-card { background: var(--lpurpl); border-radius: var(--r-md); padding: 20px 24px; min-width: 140px; }
.tk__result-card--main { background: var(--purple); }
.tk__result-card--main .tk__result-num { color: #fff; }
.tk__result-card--main .tk__result-label { color: rgba(255,255,255,.8); }
.tk__result-num { display: block; font-size: 36px; font-weight: 800; color: var(--purple); line-height: 1; margin-bottom: 6px; }
.tk__result-label { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tk__result-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tk__result-retry { background: var(--purple); color: #fff; border: none; padding: 12px 32px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.tk__result-retry:hover { opacity: .9; }

/* Content */
.tk-content { margin-bottom: 60px; }
.tk-content h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 36px 0 12px; }
.tk-content p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 18px; }
.tk-content a { color: var(--purple); }

/* Dark mode */
[data-theme="dark"] .tk-widget { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .tk-hero__title { color: #f9fafb; }
[data-theme="dark"] .tk__stat--kph span:first-child,
[data-theme="dark"] .tk__stat--acc span:first-child { color: #f9fafb; }
[data-theme="dark"] .tk__seq--active { color: #f9fafb; background: #1e2a45; }
[data-theme="dark"] .tk__seq { color: #4a5568; }
[data-theme="dark"] .tk__input { background: #0f1729; border-color: #2a3150; color: #f9fafb; }
[data-theme="dark"] .tk__result-title { color: #f9fafb; }
[data-theme="dark"] .tk-content h2 { color: #f9fafb; }
[data-theme="dark"] .tk-content p { color: #cbd5e0; }

/* ── PRACTICE ENGINE — class aliases for pk__ prefix ──────────── */
/* Active sequence highlight */
.tk__seq--active,
.pk__seq--active,
.tk__seq.pk__seq--active { color: var(--dark); background: var(--lpurpl); font-weight: 700; font-size: 20px; border-left: 3px solid var(--purple); }

/* Mode and time button active states */
.pk__opt--active,
.tk__opt.pk__opt--active { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 600; }
.pk__time--active,
.tk__time.pk__time--active { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 600; }

/* Mobile fixes for practice tools */
@media (max-width: 600px) {
  .tk__controls { gap: 6px; padding: 10px 14px 0; }
  .tk__opt, .pk__opt { font-size: 12px; padding: 4px 10px; }
  .tk__time, .pk__time { font-size: 12px; padding: 4px 10px; }
  .tk__stats { gap: 16px; padding: 12px 14px; }
  .tk__stat--kph span:first-child,
  .tk__stat--time span:first-child,
  .tk__stat--acc span:first-child { font-size: 24px; }
  .tk__seq-wrap { padding: 0 14px; }
  .tk__seq { font-size: 18px; }
  .tk__input-wrap { padding: 0 14px 12px; }
  .tk__result-cards { grid-template-columns: 1fr 1fr; display: grid; gap: 12px; }
  .tk__result-card--main { grid-column: 1 / -1; }
  .tk__result-num { font-size: 28px; }
  .tk__result-actions { flex-direction: column; align-items: center; gap: 10px; }
  .tk__result-retry,
  .pk-share-btn { width: 100%; max-width: 280px; }
  .copy-btn { width: 100%; max-width: 280px; text-align: center; }
}

/* Dark mode pk__ aliases */
[data-theme="dark"] .pk__seq--active { color: #f9fafb; background: #1e2a45; }

/* ── SHARE BUTTON ──────────────────────────────────────────────── */
.pk-share-btn { font-size: 13px; font-weight: 600; color: #fff; background: #000; border: none; padding: 8px 18px; border-radius: var(--r-md); cursor: pointer; transition: opacity .15s; display: inline-flex; align-items: center; gap: 6px; }
.pk-share-btn:hover { opacity: .85; }
[data-theme="dark"] .pk-share-btn { background: #1a1a2e; border: 1px solid #444; }

/* ── PRACTICE RESULT PAGE ──────────────────────────────────────── */
.pk-view-result { background: none; color: var(--purple); border: 1px solid var(--purple); text-decoration: none; font-size: 14px; }
.pk-view-result:hover { background: var(--lpurpl); }
.pk-cert-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gray); text-decoration: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--r-md); transition: all .15s; }
.pk-cert-link:hover { border-color: var(--purple); color: var(--purple); }


.jobs-section__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 8px; margin-top: 0; }
.jobs-section__sub   { font-size: 15px; color: var(--gray); margin-bottom: 24px; }


/* ================================================================
   CRITICALL DATA ENTRY WIDGET
   Paste at the bottom of style.css — replaces any previous cc- block
   ================================================================ */

/* ── Page layout ───────────────────────────────────────────── */
.cc-page { padding: 16px 0 60px; }
.cc-page__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 8px; margin-top: 16px; }
.cc-page__desc { font-size: 16px; color: var(--gray); max-width: 580px; line-height: 1.6; margin-bottom: 28px; }

/* ── Widget container ──────────────────────────────────────── */
.cc-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  /* no overflow:hidden — breaks position:sticky on narrative */
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

/* Round the stats bar top corners to match widget */
.cc-widget__stats {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* ── Stats bar ─────────────────────────────────────────────── */
.cc-widget__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}
.cc-stat { display: flex; align-items: baseline; gap: 4px; }
.cc-stat__val {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  line-height: 1;
}
.cc-stat--timer .cc-stat__val { color: var(--purple); }
.cc-stat__lbl { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.cc-timer--warn { color: var(--red) !important; }
.cc-timer--paused { color: var(--gray) !important; font-size: 18px !important; letter-spacing: .02em; }

/* ── Two-column sticky layout (#12) ────────────────────────── */
.cc-widget__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 520px;
}

/* Left column — sticky narrative */
.cc-widget__left {
  position: sticky;
  top: 0;
  align-self: start;
  border-right: 1px solid var(--border);
  height: 100%;
}

.cc-widget__narrative-wrap {
  background: #FAFAF8;
  height: 100%;
}

.cc-widget__narrative-label {
  padding: 7px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}

.cc-widget__narrative {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--dark);
  margin: 0;
}

/* Right column — form */
.cc-widget__right {
  display: flex;
  flex-direction: column;
}

/* ── Record counter ────────────────────────────────────────── */
.cc-widget__record {
  padding: 10px 20px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Form fields ───────────────────────────────────────────── */
.cc-widget__form { padding: 0 20px 4px; }

.cc-field { margin-bottom: 6px; }

/* Label on top */
.cc-field__label {
  display: block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1.5px solid var(--navy);
  border-bottom: none;
}

/* Input below */
.cc-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--mono);
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid #9CA3AF;
  border-top: none;
  border-radius: 0;
  outline: none;
  transition: background .15s, border-color .15s;
}
.cc-field input:focus { background: var(--lblue); border-color: var(--blue); }
.cc-field input:disabled { opacity: .45; cursor: not-allowed; background: var(--lgray); }

/* First record before test starts — fields disabled but look neutral not broken */
.cc-widget--prestart .cc-field input:disabled {
  opacity: 1;
  cursor: default;
  background: var(--white);
  color: var(--gray);
}

.cc-field__input--ok  { background: var(--lgreen) !important; border-color: var(--green) !important; }
.cc-field__input--err { background: var(--lred)   !important; border-color: var(--red)   !important; }

/* ── Meta row — field count + validation msg ───────────────── */
.cc-widget__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 4px;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.cc-field-count { font-size: 12px; color: var(--gray); font-weight: 500; }
.cc-field-count--done { color: var(--green); font-weight: 700; }
.cc-validation-msg { font-size: 12px; color: var(--red); font-weight: 600; }

/* ── Controls ──────────────────────────────────────────────── */
.cc-widget__controls {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--lgray);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.cc-widget__showerr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); cursor: pointer; user-select: none; }
.cc-widget__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.cc-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.cc-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.cc-btn:disabled { opacity: .4; cursor: not-allowed; }
.cc-btn--primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.cc-btn--primary:hover:not(:disabled) { background: #3C3489; border-color: #3C3489; color: #fff; }
.cc-btn--ghost { color: var(--gray); }
.cc-btn--ghost:hover:not(:disabled) { color: var(--purple); border-color: var(--purple); }
.cc-btn--begin { background: var(--green); color: #fff; border-color: var(--green); }
.cc-btn--begin:hover:not(:disabled) { background: #0E7A5C; border-color: #0E7A5C; color: #fff; }

/* ── Answer box ────────────────────────────────────────────── */
.cc-answer { margin: 0 20px 14px; background: var(--lgray); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.cc-answer__row { display: flex; gap: 16px; margin-bottom: 6px; align-items: baseline; }
.cc-answer__row:last-child { margin-bottom: 0; }
.cc-answer__key { flex-shrink: 0; min-width: 160px; font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .03em; }
.cc-answer__val { font-size: 13px; font-family: var(--mono); font-weight: 600; color: var(--dark); }

/* ── How it works ──────────────────────────────────────────── */
.cc-info { margin-bottom: 48px; }
.cc-info__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.cc-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cc-info__card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.cc-info__icon { font-size: 26px; margin-bottom: 10px; }
.cc-info__card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cc-info__card p { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; }

/* ── Field guide ───────────────────────────────────────────── */
.cc-field-guide__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.cc-field-guide__desc  { font-size: 15px; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }
.cc-field-guide { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 48px; }
.cc-field-guide__row { display: flex; gap: 20px; padding: 11px 16px; border-bottom: 1px solid var(--border); align-items: baseline; }
.cc-field-guide__row:last-child { border-bottom: none; }
.cc-field-guide__row:nth-child(odd) { background: var(--lgray); }
.cc-field-guide__name { flex-shrink: 0; min-width: 160px; font-size: 13px; font-weight: 700; font-family: var(--mono); color: var(--dark); }
.cc-field-guide__tip  { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ── FAQ ───────────────────────────────────────────────────── */
.cc-faq { margin-bottom: 48px; }
.cc-faq__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }

/* ── SEO content ───────────────────────────────────────────── */
.tk-content { margin-bottom: 48px; }
.tk-content h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 36px 0 12px; }
.tk-content p { font-size: 15px; color: var(--gray); line-height: 1.75; margin-bottom: 16px; }

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .cc-widget { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .cc-widget__stats { background: #151c30; border-bottom-color: #2a3150; }
[data-theme="dark"] .cc-stat__val { color: #f9fafb; }
[data-theme="dark"] .cc-stat--timer .cc-stat__val { color: #a78bfa; }
[data-theme="dark"] .cc-widget__left { border-right-color: #2a3150; }
[data-theme="dark"] .cc-widget__narrative-wrap { background: #0f1729; }
[data-theme="dark"] .cc-widget__narrative-label { background: #151c30; border-color: #2a3150; }
[data-theme="dark"] .cc-widget__narrative { color: #e2e8f0; }
[data-theme="dark"] .cc-widget__record { color: #6b7280; }
[data-theme="dark"] .cc-field__label { background: #0A3560; border-color: #0A3560; }
[data-theme="dark"] .cc-field input { background: #0f1729; border-color: #374151; color: #f9fafb; }
[data-theme="dark"] .cc-field input:focus { background: #1e2a45; border-color: var(--blue); }
[data-theme="dark"] .cc-field input:disabled { background: #151c30; }
[data-theme="dark"] .cc-widget__controls { background: #151c30; border-top-color: #2a3150; }
[data-theme="dark"] .cc-btn { background: #1a2035; border-color: #2a3150; color: #e2e8f0; }
[data-theme="dark"] .cc-btn--primary { background: var(--purple); border-color: var(--purple); color: #fff; }
[data-theme="dark"] .cc-answer { background: #1e2535; border-color: #2a3150; }
[data-theme="dark"] .cc-answer__val { color: #e2e8f0; }
[data-theme="dark"] .cc-info__card { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .cc-info__card h3 { color: #f9fafb; }
[data-theme="dark"] .cc-info__title { color: #f9fafb; }
[data-theme="dark"] .cc-field-guide { border-color: #2a3150; }
[data-theme="dark"] .cc-field-guide__title { color: #f9fafb; }
[data-theme="dark"] .cc-field-guide__row { border-bottom-color: #2a3150; }
[data-theme="dark"] .cc-field-guide__row:nth-child(odd) { background: #151c30; }
[data-theme="dark"] .cc-field-guide__name { color: #e2e8f0; }
[data-theme="dark"] .cc-faq__title { color: #f9fafb; }
[data-theme="dark"] .cc-page__title { color: #f9fafb; }
[data-theme="dark"] .tk-content h2 { color: #f9fafb; }

/* ── Responsive — single column on mobile ──────────────────── */
@media (max-width: 768px) {
  .cc-widget__body { grid-template-columns: 1fr; }
  .cc-widget__left { position: static; border-right: none; border-bottom: 1px solid var(--border); }
  .cc-widget__stats { gap: 16px; padding: 10px 14px; }
  .cc-stat__val { font-size: 22px; }
  .cc-widget__narrative { font-size: 14px; padding: 12px 14px; }
  .cc-widget__form { padding: 0 14px 4px; }
  .cc-widget__controls { padding: 12px 14px 16px; }
  .cc-widget__btns { flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
  .cc-answer { margin: 0 14px 14px; }
  .cc-answer__key { min-width: 100px; }
  .cc-field-guide__row { flex-direction: column; gap: 4px; }
  .cc-field-guide__name { min-width: unset; }
}


/* ================================================================
   CODE TYPING PRACTICE
   Paste at the bottom of style.css
   ================================================================ */

.ct-page { padding: 16px 0 60px; }
.ct-page__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 8px; margin-top: 16px; }
.ct-page__desc { font-size: 16px; color: var(--gray); max-width: 580px; line-height: 1.6; margin-bottom: 28px; }

/* ── Widget ────────────────────────────────────────────────── */
.ct-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

/* ── Stats ─────────────────────────────────────────────────── */
.ct-stats {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}
.ct-stat__val { font-size: 24px; font-weight: 700; font-family: var(--mono); color: var(--dark); line-height: 1; }
.ct-stat__val--timer { color: var(--purple); }
.ct-stat__lbl { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.ct-stat__sep { font-size: 13px; color: var(--border); margin: 0 2px; }

/* ── Side by side body ─────────────────────────────────────── */
.ct-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.ct-left  { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.ct-right { display: flex; flex-direction: column; background: var(--white); }

.ct-col-hdr {
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  background: var(--lgray);
}

/* ── Reference code ────────────────────────────────────────── */
.ct-code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  padding: 16px;
  background: var(--lgray);
  flex: 1;
  user-select: none;
}

.ct-line { display: flex; gap: 12px; min-height: 1.9em; }
.ct-ln   { color: var(--gray); min-width: 22px; text-align: right; font-size: 12px; flex-shrink: 0; opacity: .4; user-select: none; }
.ct-lc   { white-space: pre; }

/* Character states — exact site colors */
.ck     { display: inline; color: var(--dark); }
.ck.fut { color: var(--dark); }
.ck.ok  { color: #3B82F6; }
.ck.err { color: var(--red); background: var(--lred); border-radius: 2px; padding: 0 1px; }

/* Current word — whole word highlighted as one block */
.ck.cur {
  color: var(--dark);
  font-weight: 700;
  background: var(--lpurpl);
  border-radius: 3px;
  padding: 0 2px;
}

/* Typed chars inside the highlighted word */
.ct-ch-ok  { color: #3B82F6; }
.ct-ch-err { color: var(--red); }

/* Fix language label gap */
.ct-widget .tw__group-label { margin-right: 12px; }

/* ── Visible textarea on right ─────────────────────────────── */
.ct-textarea {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  padding: 16px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  resize: none;
  background: var(--white);
  color: var(--dark);
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  caret-color: var(--purple);
  min-height: 240px;
}

.ct-textarea::placeholder {
  color: var(--gray);
  font-family: var(--font);
  font-size: 13px;
  white-space: normal;
}

/* ── Progress bar ──────────────────────────────────────────── */
.ct-progress     { height: 3px; background: var(--border); }
.ct-progress-bar { height: 100%; background: var(--purple); transition: width .1s; width: 0%; border-radius: 0 2px 2px 0; }

/* ── Footer ────────────────────────────────────────────────── */
.ct-footer { padding: 10px 20px; background: var(--lgray); border-top: 1px solid var(--border); }
.ct-hint   { font-size: 12px; color: var(--gray); margin: 0; }

/* ── Info cards ────────────────────────────────────────────── */
.ct-info { margin-bottom: 48px; }
.ct-info__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.ct-info__grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ct-info__card  { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.ct-info__icon  { font-size: 26px; margin-bottom: 10px; }
.ct-info__card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.ct-info__card p  { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; }

/* ── FAQ ───────────────────────────────────────────────────── */
.ct-faq { margin-bottom: 48px; }
.ct-faq__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .ct-widget          { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .ct-stats           { background: #151c30; border-bottom-color: #2a3150; }
[data-theme="dark"] .ct-stat__val       { color: #f9fafb; }
[data-theme="dark"] .ct-stat__val--timer{ color: #a78bfa; }
[data-theme="dark"] .ct-left            { border-right-color: #2a3150; }
[data-theme="dark"] .ct-col-hdr         { background: #151c30; border-bottom-color: #2a3150; color: #6b7280; }
[data-theme="dark"] .ct-code            { background: #0f1729; }
[data-theme="dark"] .ct-lc              { color: #e2e8f0; }
[data-theme="dark"] .ck                 { color: #e2e8f0; }
[data-theme="dark"] .ck.fut             { color: #e2e8f0; }
[data-theme="dark"] .ck.ok              { color: #60A5FA; }
[data-theme="dark"] .ck.err             { color: #F87171; background: rgba(220,38,38,.12); }
[data-theme="dark"] .ck.cur             { background: #2d2a6e; color: #f9fafb; }
[data-theme="dark"] .ct-right           { background: #1a2035; }
[data-theme="dark"] .ct-textarea        { background: #1a2035; color: #e2e8f0; }
[data-theme="dark"] .ct-progress        { background: #2a3150; }
[data-theme="dark"] .ct-footer          { background: #151c30; border-top-color: #2a3150; }
[data-theme="dark"] .ct-info__card      { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .ct-info__card h3   { color: #f9fafb; }
[data-theme="dark"] .ct-info__title     { color: #f9fafb; }
[data-theme="dark"] .ct-faq__title      { color: #f9fafb; }
[data-theme="dark"] .ct-page__title     { color: #f9fafb; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ct-body            { grid-template-columns: 1fr; }
  .ct-left            { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; overflow: auto; }
  .ct-textarea        { min-height: 160px; }
  .ct-stats           { gap: 8px; padding: 8px 14px; flex-wrap: wrap; }
  .ct-stat__val       { font-size: 20px; }
}



/* ================================================================
   TYPING TIPS — BLOG SECTION
   Paste at the bottom of style.css
   ================================================================ */

/* ── Guide layout (article pages) ─────────────────────────── */
.guide-hero { padding: 32px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.guide-hero__title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 10px; line-height: 1.2; }
.guide-hero__desc { font-size: 17px; color: var(--gray); max-width: 680px; line-height: 1.6; margin-bottom: 8px; }
.guide-hero__meta { font-size: 13px; color: var(--gray); margin: 0; }

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  padding: 8px 0 48px;
}

/* ── Article content ───────────────────────────────────────── */
.guide-content { min-width: 0; }

.guide-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 12px;
  padding-top: 0;
  border-top: none;
}

.guide-content h2:first-child { margin-top: 0; }

.guide-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}

.guide-content p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 18px;
}

.guide-content ul, .guide-content ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.guide-content li {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.75;
  margin-bottom: 6px;
}

.guide-content strong { color: var(--dark); font-weight: 600; }

.guide-content blockquote {
  background: var(--lpurpl);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 16px;
  color: var(--dark);
  font-weight: 600;
}

.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--border);
}

.guide-content th {
  background: var(--lgray);
  color: var(--dark);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.guide-content td {
  padding: 10px 14px;
  color: var(--dark);
  border: 1px solid var(--border);
}

.guide-content tr:nth-child(even) td { background: var(--lgray); }

.guide-content a { color: var(--purple); text-decoration: underline; }
.guide-content a:hover { color: #3C3489; }

/* Remove hr — sections separated by h2 spacing only */
.guide-content hr { display: none; }

/* Checkbox list styling */
.guide-content li input[type="checkbox"] { margin-right: 8px; accent-color: var(--purple); }

/* Guide figure — for diagrams and images in articles */
.guide-figure { margin: 24px 0; }
.guide-figure figcaption { font-size: 12px; color: var(--gray); text-align: center; margin-top: 8px; }
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}

.guide-checklist li:last-child { border-bottom: none; }
.guide-checklist li:nth-child(even) { background: var(--lgray); }

.guide-checklist input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--purple);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.guide-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-sidebar__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.guide-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  margin: 0;
  padding: 10px 14px;
  background: var(--lgray);
  border-bottom: 1px solid var(--border);
}

.guide-sidebar__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-sidebar__links li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.guide-sidebar__links li:last-child { border-bottom: none; }

.guide-sidebar__links a {
  display: block;
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  padding: 9px 14px;
  transition: background .12s;
}

.guide-sidebar__links a:hover {
  background: var(--lgray);
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.guides-hero { padding: 16px 0 32px; border-bottom: 1px solid var(--border); }
.guides-hero__title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 10px; margin-top: 16px; }
.guides-hero__sub { font-size: 17px; color: var(--gray); max-width: 580px; line-height: 1.6; margin: 0; }

/* ── Grid ──────────────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* ── Card ──────────────────────────────────────────────────── */
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}

.guide-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(83, 74, 183, .1);
  text-decoration: none;
}

.guide-card--soon {
  opacity: .75;
  cursor: default;
}

.guide-card--soon:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

/* ── Card meta ─────────────────────────────────────────────── */
.guide-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple);
  background: var(--lpurpl);
  padding: 3px 8px;
  border-radius: 20px;
}

.guide-card__read-time {
  font-size: 12px;
  color: var(--gray);
}

.guide-card__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  background: var(--lgray);
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── Card content ──────────────────────────────────────────── */
.guide-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.guide-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.guide-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  margin-top: auto;
}

.guide-card__link--muted {
  color: var(--gray);
}

/* ── CTA section ───────────────────────────────────────────── */
.section--gray { background: var(--lgray); padding: 48px 0; }
.guides-cta__title { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.guides-cta__sub { font-size: 16px; color: var(--gray); margin-bottom: 24px; }
.guides-cta__links { display: flex; gap: 12px; flex-wrap: wrap; }
.guides-cta__btn { font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--white); color: var(--dark); text-decoration: none; transition: border-color .15s, color .15s; }
.guides-cta__btn:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.guides-cta__btn--primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.guides-cta__btn--primary:hover { background: #3C3489; border-color: #3C3489; color: #fff; }

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .guide-hero__title { color: #f9fafb; }
[data-theme="dark"] .guide-content h2 { color: #f9fafb; border-top-color: #2a3150; }
[data-theme="dark"] .guide-content h3 { color: #f9fafb; }
[data-theme="dark"] .guide-content strong { color: #f9fafb; }
[data-theme="dark"] .guide-content blockquote { background: #1e1a4a; border-left-color: #a78bfa; color: #e2e8f0; }
[data-theme="dark"] .guide-content th { background: #151c30; color: #f9fafb; border-bottom-color: #2a3150; }
[data-theme="dark"] .guide-content td { border-bottom-color: #2a3150; }
[data-theme="dark"] .guide-content tr:nth-child(even) td { background: #151c30; }
[data-theme="dark"] .guide-content hr { border-top-color: #2a3150; }
[data-theme="dark"] .guide-sidebar__card { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .guide-sidebar__title { color: #f9fafb; }
[data-theme="dark"] .guide-hero { border-bottom-color: #2a3150; }
[data-theme="dark"] .guide-card { background: #1a2035; border-color: #2a3150; }
[data-theme="dark"] .guide-card:hover { border-color: #a78bfa; }
[data-theme="dark"] .guide-card__title { color: #f9fafb; }
[data-theme="dark"] .guides-hero__title { color: #f9fafb; }
[data-theme="dark"] .guides-cta__title { color: #f9fafb; }
[data-theme="dark"] .section--gray { background: #151c30; }
[data-theme="dark"] .guides-cta__btn { background: #1a2035; border-color: #2a3150; color: #e2e8f0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-sidebar { position: static; }
}

@media (max-width: 640px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guides-cta__links { flex-direction: column; }
  .guides-cta__btn { text-align: center; }
  .guide-content table { font-size: 13px; }
  .guide-content th, .guide-content td { padding: 8px 10px; }
}


/* ================================================================
   VERIFY PAGE
   ================================================================ */
.verify-page { padding: 60px 0; min-height: 60vh; }
.verify-card { max-width: 600px; margin: 0 auto; text-align: center; }
.verify-state { padding: 40px 24px; }
.verify-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--purple); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.verify-icon { font-size: 40px; margin-bottom: 12px; }
.verify-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--dark); margin: 0 0 10px; }
.verify-desc { font-size: 15px; color: var(--gray); margin: 0 0 28px; line-height: 1.6; }
.verify-hint { font-size: 13px; color: var(--gray); margin: 10px 0 0; }
.verify-badge { display: inline-block; padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.verify-badge--valid { background: #E1F5EE; color: #0F6E56; }
.verify-badge--invalid { background: #FCEBEB; color: #A32D2D; }
.verify-input-row { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 12px; }
.verify-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); font-size: 14px; color: var(--dark); background: var(--white); font-family: monospace; }
.verify-input:focus { outline: none; border-color: var(--purple); }
.verify-btn { padding: 10px 20px; background: var(--purple); color: #fff; border: none; border-radius: var(--r-md); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.verify-btn:hover { background: #3C3489; }
.verify-scores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 28px; }
.verify-score-card { background: var(--lgray); border-radius: 8px; padding: 16px 20px; min-width: 100px; text-align: center; }
.verify-score-card--primary { background: #0F2355; }
.verify-score-card__num { display: block; font-size: 28px; font-weight: 700; color: var(--dark); line-height: 1; }
.verify-score-card--primary .verify-score-card__num { color: #fff; }
.verify-score-card__lbl { display: block; font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.verify-score-card--primary .verify-score-card__lbl { color: #9FB3D8; }
.verify-meta { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }
.verify-meta__item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.verify-meta__label { color: var(--gray); }
.verify-meta__val { font-weight: 600; color: var(--dark); }
.verify-meta__val--mono { font-family: monospace; font-size: 12px; }
.verify-cta { border-top: 1px solid var(--border); padding-top: 24px; }
.verify-cta__text { font-size: 14px; color: var(--gray); margin: 0 0 12px; }
.verify-cta__btn { display: inline-block; padding: 10px 24px; background: var(--purple); color: #fff; border-radius: var(--r-md); font-size: 14px; font-weight: 600; text-decoration: none; }
.verify-cta__btn:hover { background: #3C3489; text-decoration: none; }
.verify-try-link { display: block; margin-top: 16px; font-size: 14px; color: var(--purple); }
[data-theme="dark"] .verify-score-card { background: #1a2035; }
[data-theme="dark"] .verify-score-card--primary { background: #0F2355; }
[data-theme="dark"] .verify-score-card__num { color: #f9fafb; }
[data-theme="dark"] .verify-input { background: #1a2035; border-color: #2d3a52; color: #f9fafb; }

/* ── Legal Pages (About, Privacy, Terms, Contact) ─────────── */
.legal-content { max-width: 740px; margin: 48px auto 80px; padding: 0 16px; }
.legal-content h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 16px; letter-spacing: -0.5px; }
.legal-content h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 40px 0 12px; }
.legal-content h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 24px 0 8px; }
.legal-content p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.legal-intro { font-size: 17px; line-height: 1.75; color: var(--gray); margin-bottom: 32px; border-left: 3px solid var(--purple); padding-left: 16px; }
.legal-content ul { margin: 0 0 20px 0; padding-left: 24px; }
.legal-content ul li { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 8px; }
.legal-content a { color: var(--purple); text-decoration: none; font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--dark); font-weight: 600; }

[data-theme="dark"] .legal-content h1,
[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .legal-content h3,
[data-theme="dark"] .legal-content strong { color: #f9fafb; }
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li { color: #cbd5e0; }
[data-theme="dark"] .legal-intro { color: #a0aec0; border-color: #534AB7; }
