/* Better Job Path (BJP.in) — design tokens and components
   Palette: fountain-pen ink, exam ballpoint blue, OMR-sheet rose, cool exam paper,
   notebook rule lines, lemon highlighter. Saffron and green are intentionally excluded. */

:root {
  --ink: #131A3A;
  --ink-2: #2B3360;
  --muted: #5A6288;
  --ballpoint: #2741D6;
  --ballpoint-dark: #1B2FA6;
  --ballpoint-tint: #E9EDFF;
  --rose: #D93A6E;
  --rose-dark: #B42456;
  --rose-tint: #FDE8EF;
  --paper: #F5F6FA;
  --white: #FFFFFF;
  --rule: #DCE1F0;
  --rule-strong: #C3CAE2;
  --hl: #EDF25E;
  --danger: #B42456;
  --ok: #1B2FA6;

  --display: "Anek Latin", "Hind", system-ui, sans-serif;
  --body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: clamp(2.2rem, 4.4vw, 3.05rem);
  --step-5: clamp(2.6rem, 6vw, 4.4rem);

  --r-input: 10px;
  --r-panel: 18px;
  --r-pill: 999px;
  --wrap: 1180px;
  --shadow-lift: 0 18px 40px -24px rgba(19, 26, 58, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ballpoint); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ballpoint-dark); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--hl); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 88%;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: var(--step-5); font-weight: 760; }
h2 { font-size: var(--step-4); font-weight: 720; }
h3 { font-size: var(--step-2); font-weight: 680; }
h4 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding: 0 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); }

/* ---------- Top contact bar ---------- */
.topbar { background: var(--ink); color: #D9DDF2; font-size: 0.9rem; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.topbar a:hover { color: var(--hl); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-stretch: 85%; font-weight: 760; font-size: 1.32rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--body); font-size: 0.74rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ballpoint); background: var(--ballpoint-tint); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rule-strong); background: var(--paper); color: var(--muted); border-radius: var(--r-pill); padding: 7px 12px; font: inherit; font-size: 0.92rem; cursor: pointer; }
.search-btn kbd { font-family: var(--body); font-size: 0.75rem; border: 1px solid var(--rule-strong); border-radius: 5px; padding: 0 5px; background: var(--white); }
.menu-btn { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 1060px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lift); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .search-btn span.lbl, .search-btn kbd { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; padding: 12px 20px; border-radius: var(--r-input); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ballpoint); color: var(--white); }
.btn-primary:hover { background: var(--ballpoint-dark); color: var(--white); }
.btn-cta { background: var(--rose); color: var(--white); }
.btn-cta:hover { background: var(--rose-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ballpoint); color: var(--ballpoint); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero::before { /* notebook ruling with margin line */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0 46px, rgba(217,58,110,.45) 46px 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px);
  opacity: .75; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; padding-top: 56px; padding-bottom: 64px; align-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 26px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-input); padding: 6px; box-shadow: 6px 6px 0 var(--ballpoint-tint); }
.hero-search input { flex: 1; border: 0; font: inherit; font-size: 1.05rem; padding: 8px 10px; background: transparent; color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 0.95rem; }
.page-hero { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 46px, rgba(217,58,110,.35) 46px 48px, transparent 48px); pointer-events: none; }
.page-hero .wrap { position: relative; padding-top: 44px; padding-bottom: 40px; }
.page-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 36px; }
  .hero::before, .page-hero::before { background-size: auto; }
}

/* ---------- Payslip (signature element) ---------- */
.payslip { position: relative; background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px 14px 0 0; padding: 22px 22px 34px; box-shadow: var(--shadow-lift);
  -webkit-mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 100% repeat-x;
          mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 100% repeat-x; }
.payslip-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1.5px dashed var(--rule-strong); padding-bottom: 12px; margin-bottom: 14px; }
.payslip-head strong { font-family: var(--display); font-stretch: 85%; font-size: 1.3rem; }
.payslip label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
.payslip-input { display: flex; align-items: center; border: 2px solid var(--ballpoint); border-radius: var(--r-input); padding: 4px 12px; background: var(--ballpoint-tint); }
.payslip-input span { font-weight: 700; color: var(--ballpoint); font-size: 1.3rem; }
.payslip-input input { border: 0; background: transparent; font: inherit; font-size: 1.5rem; font-weight: 700; color: var(--ink); width: 100%; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.payslip-input input:focus { outline: none; }
.slip-rows { margin: 16px 0 6px; padding: 0; list-style: none; }
.slip-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.slip-rows li span:first-child { color: var(--ink-2); }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.slip-total .amt { font-family: var(--display); font-stretch: 80%; font-weight: 780; font-size: 2.6rem; color: var(--ballpoint); line-height: 1; }
.slip-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 14px; }

/* ---------- Path list (entry points) ---------- */
.pathlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pathlist li { border-bottom: 1px solid var(--rule-strong); }
.pathlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 22px 4px; text-decoration: none; color: var(--ink); align-items: center; }
.pathlist a:hover { background: var(--ballpoint-tint); }
.pathlist .who { font-family: var(--display); font-stretch: 85%; font-weight: 720; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.pathlist .what { grid-column: 1; color: var(--ink-2); font-size: 1rem; }
.pathlist .go { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--ballpoint); white-space: nowrap; }

/* ---------- Ruled table / index ---------- */
.rtable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }
.rtable th, .rtable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rtable th { font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 1rem; color: var(--ink-2); background: var(--paper); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable td a { font-weight: 650; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-panel); }

/* ---------- Panels & grids ---------- */
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 24px; }
.panel-ink { background: var(--ink); color: #E7E9F7; border-radius: var(--r-panel); padding: 28px; }
.panel-ink h2, .panel-ink h3 { color: var(--white); }
.panel-ink a { color: var(--hl); }
.panel-rose { background: var(--rose-tint); border: 1px solid #F5C3D4; border-radius: var(--r-panel); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-aside { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .section { padding: 44px 0; } }
.sticky-aside { position: sticky; top: 92px; }

.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rowlist > li:first-child { padding-top: 0; }
.rowlist h3 { font-size: var(--step-1); margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 650; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ballpoint-tint); color: var(--ballpoint-dark); }
.chip-rose { background: var(--rose-tint); color: var(--rose-dark); }
.chip-plain { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: var(--r-input); padding: 11px 12px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ballpoint); box-shadow: 0 0 0 3px var(--ballpoint-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ballpoint); flex: none; }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.err { color: var(--danger); }
.form-done { background: var(--ballpoint-tint); border: 1.5px solid var(--ballpoint); border-radius: var(--r-panel); padding: 22px; }
.form-done h3 { color: var(--ballpoint-dark); }

/* OMR-style option bubbles (quiz answers, goal cards) */
.omr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.omr { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--white); cursor: pointer; font: inherit; text-align: left; width: 100%; color: var(--ink); }
.omr:hover { border-color: var(--rose); }
.omr .bub { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rose); flex: none; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: var(--rose); background: var(--white); }
.omr[aria-pressed="true"], .omr.selected { border-color: var(--ballpoint); background: var(--ballpoint-tint); }
.omr[aria-pressed="true"] .bub, .omr.selected .bub { background: var(--ballpoint); border-color: var(--ballpoint); color: var(--white); }
.omr.correct { border-color: var(--ballpoint); background: #E3E8FF; }
.omr.correct .bub { background: var(--ballpoint); border-color: var(--ballpoint); color: var(--white); }
.omr.wrong { border-color: var(--rose); background: var(--rose-tint); }
.omr.wrong .bub { background: var(--rose); color: var(--white); }
.omr[disabled] { cursor: default; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .goal-grid { grid-template-columns: 1fr; } }

/* Stepper (true sequence) */
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 650; color: var(--muted); counter-increment: s; }
.stepper li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rose); display: grid; place-items: center; font-size: 0.8rem; color: var(--rose); background: var(--white); flex: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--ballpoint); border-color: var(--ballpoint); color: var(--white); }
.stepper li.now { color: var(--ink); }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--rule-strong); margin: 0 8px; }
@media (max-width: 560px) { .stepper li span { display: none; } }
.step[hidden] { display: none; }

/* ---------- Tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.result { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-panel); padding: 22px; }
.result .big { font-family: var(--display); font-stretch: 80%; font-weight: 780; font-size: clamp(2.2rem, 5vw, 3.1rem); color: var(--ballpoint); line-height: 1.05; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.kv { list-style: none; margin: 10px 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.kv li.total { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.donut { width: 170px; height: 170px; border-radius: 50%; margin: 6px auto 12px; position: relative; }
.donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--white); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare .col { border: 1.5px solid var(--rule-strong); border-radius: 12px; padding: 14px; }
.compare .col.win { border-color: var(--ballpoint); background: var(--ballpoint-tint); }
.cta-inline { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--rose-tint); border: 1px dashed var(--rose); }
.cta-inline p { margin: 0 0 10px; font-weight: 600; }
details.adv { border: 1px solid var(--rule); border-radius: 12px; padding: 4px 14px; background: var(--paper); }
details.adv summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.amort { max-height: 320px; overflow: auto; }

/* Typing test */
.typing-text { font-size: 1.25rem; line-height: 1.9; background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: 12px; padding: 18px; min-height: 160px; user-select: none; }
.typing-text .ok { color: var(--ballpoint); }
.typing-text .bad { color: var(--white); background: var(--rose); border-radius: 3px; }
.typing-text .cur { border-bottom: 3px solid var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-family: var(--display); font-stretch: 80%; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.stat span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Quiz */
.quiz-card { background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: var(--r-panel); padding: 22px; }
.quiz-q { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.explain { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--ballpoint); background: var(--ballpoint-tint); border-radius: 0 10px 10px 0; }
.bar { height: 8px; background: var(--rule); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ballpoint); width: 0; transition: width .3s; }

/* Jobs & videos */
.job { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.job img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--rule); background: var(--white); }
.job .logo-fallback { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--ballpoint-tint); color: var(--ballpoint-dark); font-weight: 800; }
.job h3 { font-size: 1.15rem; margin: 0 0 2px; }
.job .co { color: var(--ink-2); font-weight: 600; }
@media (max-width: 640px) { .job { grid-template-columns: 44px minmax(0, 1fr); } .job .apply { grid-column: 2; } }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; } }
.video { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video .frame button { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: var(--ink); }
.video .frame button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .frame button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .cap { padding: 12px 14px; }
.video .cap h3 { font-size: 1.02rem; margin: 0 0 4px; font-family: var(--body); font-weight: 650; line-height: 1.35; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--rose); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Notices */
.notice { border-left: 5px solid var(--rose); background: var(--white); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.notice strong { color: var(--rose-dark); }
.affil { font-size: 0.86rem; color: var(--muted); border-top: 1px dashed var(--rule-strong); padding-top: 12px; margin-top: 18px; }

/* Bands */
.band { background: var(--ink); color: #E7E9F7; }
.band h2 { color: var(--white); }
.band .lead { color: #C9CEEA; }
.band-rose { background: var(--rose-tint); border-top: 1px solid #F5C3D4; border-bottom: 1px solid #F5C3D4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CEEA; padding: 52px 0 24px; margin-top: 0; font-size: 0.95rem; }
.site-footer a { color: #E7E9F7; text-decoration: none; }
.site-footer a:hover { color: var(--hl); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-grid h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-legal { border-top: 1px solid #2D3563; margin-top: 34px; padding-top: 18px; font-size: 0.86rem; color: #A9AFD3; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--white); border-top: 1px solid var(--rule); padding: 10px 14px; gap: 10px; box-shadow: 0 -8px 24px -18px rgba(19,26,58,.5); }
  .mobile-cta .btn { flex: 1; padding: 11px 10px; }
  body { padding-bottom: 70px; }
}

/* Search palette */
.palette { position: fixed; inset: 0; z-index: 80; background: rgba(19, 26, 58, .55); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.palette.open { display: flex; }
.palette-box { width: 100%; max-width: 640px; background: var(--white); border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); font: inherit; font-size: 1.15rem; padding: 18px 20px; }
.palette-box input:focus { outline: none; box-shadow: none; }
.palette-results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.palette-results a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.palette-results a:hover, .palette-results a.active { background: var(--ballpoint-tint); }
.palette-results small { display: block; color: var(--muted); }

/* Consent + toast */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-panel); padding: 18px; box-shadow: var(--shadow-lift); display: none; }
.consent.show { display: block; }
@media (max-width: 760px) { .consent { bottom: 84px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; z-index: 90; display: none; font-weight: 600; }
.toast.show { display: block; }

/* Resume preview */
.resume-sheet { background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow-lift); padding: 34px 38px; min-height: 600px; font-size: 0.95rem; color: #111; }
.resume-sheet h2 { font-family: var(--display); font-size: 1.9rem; margin: 0; color: #111; }
.resume-sheet .rs-title { color: var(--ballpoint); font-weight: 650; margin-bottom: 6px; }
.resume-sheet .rs-contact { font-size: 0.86rem; color: #333; margin-bottom: 14px; }
.resume-sheet h3 { font-size: 1rem; font-family: var(--body); font-weight: 700; border-bottom: 1.5px solid #222; padding-bottom: 3px; margin: 16px 0 8px; color: #111; }
.resume-sheet ul { margin: 4px 0 8px; padding-left: 18px; }
.resume-sheet.modern h3 { color: var(--ballpoint); border-color: var(--ballpoint); }
.exp-block { border: 1px solid var(--rule); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--paper); }

/* Tracker */
.tracker-list { list-style: none; padding: 0; margin: 14px 0 0; }
.tracker-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.days { font-family: var(--display); font-stretch: 80%; font-weight: 760; font-size: 1.8rem; color: var(--ballpoint); line-height: 1; }

/* Recorder */
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .mobile-cta, .consent, .no-print, .page-hero, .crumbs { display: none !important; }
  body { background: #fff; padding: 0; }
  .print-only-area { display: block !important; }
  .resume-sheet { box-shadow: none; border: 0; padding: 0; }
}

/* Tabs (lead tracks) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.tabs [role=tab] { font: inherit; font-weight: 700; font-size: 1.02rem; background: transparent; border: 0; border-bottom: 4px solid transparent; padding: 12px 14px; margin-bottom: -2px; cursor: pointer; color: var(--muted); }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--rose); }
.tabs [role=tab]:hover { color: var(--ballpoint); }
#print-root { display: none; }
@media print {
  body.print-resume > *:not(#print-root) { display: none !important; }
  body.print-resume #print-root { display: block !important; }
  @page { margin: 14mm; }
}
.tool-index td:first-child { width: 34%; }
.badge-free { font-size: .78rem; font-weight: 700; color: var(--ballpoint-dark); }
.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.author { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 18px 0 24px; font-size: .92rem; color: var(--ink-2); }
.author svg { width: 40px; height: 40px; flex: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; background: var(--white); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 700; }
.tier { border: 1.5px solid var(--rule-strong); border-radius: 14px; padding: 18px; background: var(--white); }
.tier.featured { border-color: var(--ballpoint); box-shadow: 6px 6px 0 var(--ballpoint-tint); }
.tier .price { font-family: var(--display); font-stretch: 80%; font-weight: 780; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.alloc { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alloc li { display: grid; grid-template-columns: 170px minmax(0,1fr) 46px; gap: 10px; align-items: center; font-size: .95rem; }
.alloc .bar { height: 12px; }
@media (max-width: 560px) { .alloc li { grid-template-columns: 1fr 46px; } .alloc li .bar { grid-column: 1 / -1; grid-row: 2; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.form-grid.filters { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .form-grid.filters { grid-template-columns: 1fr; } }

/* ---- Review fixes ---- */
.brand-name { white-space: nowrap; }
.header-actions .btn, .search-btn { white-space: nowrap; }
.nav a { padding: 8px 9px; }
.hero-search input[type=text] { border: 0; box-shadow: none; background: transparent; padding: 8px 10px; }
.hero-search input[type=text]:focus { box-shadow: none; }
.topbar a { overflow-wrap: anywhere; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 74ch; }
.wrap.prose > table, .wrap.prose > .table-scroll { max-width: 100%; }
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lift); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .menu-btn { display: inline-flex; margin-left: auto; }
}
@media (max-width: 760px) {
  .header-actions .btn-cta { display: none; }
  .hero::before { background: linear-gradient(90deg, transparent 0 8px, rgba(217,58,110,.4) 8px 10px, transparent 10px), repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px); }
  .page-hero::before { background: linear-gradient(90deg, transparent 0 8px, rgba(217,58,110,.35) 8px 10px, transparent 10px); }
  .payslip-head { flex-direction: column; gap: 2px; }
  .slip-total .amt { font-size: 2.2rem; }
}
/* Mobile overflow guards */
fieldset { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool, .grid-aside { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .form-grid, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.result, .panel { min-width: 0; }
.compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .compare { grid-template-columns: minmax(0, 1fr); } }
