/* Hirenest brand tokens (from the logo canvas: construction, colour, type) */
:root {
  --cobalt: #1D4ED8;
  --cobalt-hover: #1A43BE;
  --amber: #F59E0B;
  --amber-text: #B45309; /* amber for text on light grounds */
  --midnight: #0B1F4D;
  --ink: #101828;
  --slate: #52607A;
  --body: #3B475E;
  --mist: #F3F5FA;
  --line: #E2E6EF;
  --line-strong: #D9DEE8;
  --input-border: #B8C0D0;
  --on-dark: #C9D2E6;
  --on-dark-muted: #8E9BBA;
  --dark-line: #2A3D6B;
  --dark-line-soft: #1C2F5C;
  --dark-border: #3B4F7D;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --white: #FFFFFF;

  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--cobalt); }
a:hover { color: var(--midnight); }
input, select, button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--slate); }
.label-caps { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--slate); }
.section { scroll-margin-top: var(--header-h); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 660px; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.025em; line-height: 1.1; }
.lede { margin: 0; color: var(--body); font-size: 17px; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.logo__word { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; color: var(--cobalt); padding-bottom: 2px; }
.logo--reversed .logo__word { color: var(--white); font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0;
  background: var(--cobalt); color: var(--white); font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--cobalt-hover); color: var(--white); }
.btn:disabled { cursor: default; opacity: .75; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--cobalt); border-radius: 6px; background: var(--white);
  color: var(--cobalt); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn-ghost:hover { background: var(--mist); }
.btn-ghost--neutral { border-color: var(--input-border); color: var(--ink); padding: 0 16px; font-size: 16px; }
.btn-ghost:disabled { cursor: default; opacity: .5; }
.btn-ghost:disabled:hover { background: var(--white); }

.chip {
  min-height: 44px; padding: 0 16px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--input-border); background: var(--white); color: var(--ink);
}
.chip[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt); color: var(--white); }
.chip--ink[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.check-list { display: flex; align-items: center; gap: 8px; }
.icon-check { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--white); }
.site-header__inner { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--ink); text-decoration: none; }
.nav__links a:hover { color: var(--cobalt); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__status { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--amber); flex: none; animation: hnPulse 2s ease-out infinite; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero__lede { margin: 0; font-size: 19px; color: var(--body); max-width: 580px; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero__ctas .text-link { font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hero__promises { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--body); }

.ledger {
  flex: 1 1 400px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px; background: var(--white);
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -12px rgba(11,31,77,.18);
}
.ledger__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ledger__head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--slate); }
.ledger__sub { font-size: 13px; color: var(--slate); }
.ledger__total { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.ledger__row { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.ledger__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger__country { font-weight: 600; font-size: 17px; }
.ledger__count { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ledger__track { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.ledger__bar { height: 8px; border-radius: 4px; background: var(--cobalt); width: 0; }
.ledger__domains { font-size: 13px; color: var(--slate); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.marquee__title { margin: 0; text-align: center; }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; gap: 48px; animation: hnMarqL 70s linear infinite; }
.marquee__track--rev { animation-name: hnMarqR; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--body); white-space: nowrap; }

/* ---------- Guarantees band ---------- */
.band { background: var(--midnight); color: var(--white); }
.guarantees { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.guarantee { display: flex; flex-direction: column; gap: 10px; }
.guarantee__num { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--amber); }
.guarantee strong { font-size: 19px; font-weight: 600; }
.guarantee span:last-child { color: var(--on-dark); }

/* ---------- Employers ---------- */
.employers { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.company-grid {
  margin: 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.company-grid li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 72px; padding: 16px 20px;
  display: flex; align-items: center; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  transition: color .2s ease, background-color .2s ease;
}
.company-grid li:hover { color: var(--cobalt); background: var(--mist); }

/* ---------- Courses ---------- */
.courses { background: var(--mist); }
.courses__inner { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.course-list { border-top: 1px solid var(--ink); }
.course { border-bottom: 1px solid var(--line-strong); padding: 28px 0; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.course__id { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.course__num { font-family: var(--mono); font-size: 13px; color: var(--slate); }
.course h3 { margin: 0; font-size: 23px; letter-spacing: -0.015em; line-height: 1.2; }
.course__roles { font-size: 14px; color: var(--slate); }
.course__topics { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 5px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.course__cta { flex: 0 1 210px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 14px; }
.course__cta .muted { color: var(--slate); }
.course__cta strong { font-weight: 600; }
.course-empty { margin: 0; padding: 32px 0; color: var(--slate); }
.link-button { background: none; border: 0; padding: 0; color: var(--cobalt); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ---------- How it works ---------- */
.how { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.planner {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-wrap: wrap; background: var(--white);
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 20px 40px -24px rgba(11,31,77,.25);
}
.planner__rail { flex: 1 1 300px; min-width: 0; background: var(--midnight); color: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.planner__rail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 8px 12px; }
.planner__rail-head .eyebrow { font-size: 12px; letter-spacing: 0.06em; color: var(--on-dark); }
.tour-toggle { min-height: 36px; padding: 0 12px; border: 1px solid var(--dark-border); background: transparent; color: var(--white); border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.step {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 0; border-radius: 6px;
  cursor: pointer; text-align: left; background: transparent; color: var(--white); transition: background-color .25s ease;
}
.step[aria-current="step"] { background: var(--white); color: var(--midnight); }
.step__num {
  flex: none; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500; border: 1px solid var(--dark-border); color: var(--on-dark);
}
.step.is-done .step__num { border-color: var(--amber); background: var(--amber); color: var(--midnight); }
.step[aria-current="step"] .step__num { border-color: var(--cobalt); background: var(--cobalt); color: var(--white); }
.step__text { display: flex; flex-direction: column; gap: 2px; }
.step__title { font-weight: 600; font-size: 16px; }
.step__when { font-size: 13px; opacity: .8; }

.planner__body { flex: 3 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--slate); }
.timeline__head strong { font-weight: 600; }
.timeline__track { position: relative; height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.timeline__bar { height: 10px; border-radius: 5px; background: var(--cobalt); width: 4%; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.timeline__ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.stage { display: flex; flex-direction: column; gap: 24px; }
.stage__when { font-family: var(--mono); font-size: 13px; color: var(--amber-text); letter-spacing: 0.04em; }
.stage h3 { margin: 6px 0 0; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.stage__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.stage__grid > div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.stage__out { font-weight: 600; }
.guarantee-meter { display: flex; flex-direction: column; gap: 12px; background: var(--mist); border-radius: 8px; padding: 20px; }
.guarantee-meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.guarantee-meter__head strong { font-weight: 600; }
.guarantee-meter__head span { color: var(--slate); }
.dots { display: flex; gap: 6px; align-items: center; }
.dots__dot { flex: 1 1 0; max-width: 40px; height: 14px; border-radius: 3px; background: var(--line-strong); transform: scaleY(.7); transition: background-color .35s ease, transform .35s ease; }
.dots__dot.is-on { background: var(--amber); transform: none; }
.dots__plus { font-size: 18px; font-weight: 700; color: var(--amber-text); padding-left: 4px; }
.planner__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Results ---------- */
.results__inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }
.results__top { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.results__head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.results__head .eyebrow { color: var(--amber); letter-spacing: 0.06em; }
.results__head h2 { margin: 0; font-size: clamp(64px, 9vw, 120px); line-height: .95; letter-spacing: -0.05em; font-weight: 700; font-variant-numeric: tabular-nums; }
.results__lede { flex: 1 1 380px; min-width: 0; margin: 0; font-size: 20px; color: var(--on-dark); text-wrap: pretty; }
.matrix { display: flex; flex-direction: column; gap: 16px; }
.matrix h3 { margin: 0; font-size: 20px; font-weight: 600; }
.matrix__scroll { overflow-x: auto; border: 1px solid var(--dark-line); border-radius: 8px; }
.matrix table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 16px 20px; text-align: left; }
.matrix thead th { font-weight: 600; color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }
.matrix thead th span { color: var(--amber); }
.matrix tbody th { font-weight: 600; }
.matrix tbody th, .matrix tbody td { border-bottom: 1px solid var(--dark-line-soft); }
.matrix td.no { color: var(--on-dark-muted); }
.matrix td > span { display: flex; align-items: center; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq .h2 { flex: 1 1 260px; }
.faq__list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; min-height: 44px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--body); }

/* ---------- Booking ---------- */
.book { background: var(--mist); }
.book__inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.book__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.book__copy .h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.book__perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.book__perks li { display: flex; gap: 10px; align-items: flex-start; }
.book__perks svg { margin-top: 3px; }
.book__contact { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-strong); padding-top: 16px; margin-top: 8px; font-size: 15px; color: var(--body); }
.book__contact a { font-weight: 600; }
.book__card { flex: 1 1 460px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: 0 20px 40px -28px rgba(11,31,77,.3); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__alert { margin: 0; padding: 12px 14px; background: var(--error-bg); color: var(--error); border-radius: 6px; font-size: 15px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select { min-height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 6px; font-size: 16px; color: var(--ink); background: var(--white); }
.field select { padding: 0 12px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 14px; color: var(--error); }
.form__note { margin: 0; font-size: 14px; color: var(--amber-text); }
.form__privacy { margin: 0; font-size: 13px; color: var(--slate); }
.sent { display: flex; flex-direction: column; gap: 12px; }
.sent h3 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.sent p { margin: 0; color: var(--body); }
.sent .btn-ghost { align-self: flex-start; padding: 0 16px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--on-dark); }
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--white); }
.site-footer__contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__contact a { color: var(--white); }

/* ---------- Motion ---------- */
@keyframes hnUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hnDraw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes hnMarqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hnMarqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes hnPulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,.55); }
  70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.up { animation: hnUp .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
.draw { stroke-dasharray: 40; animation: hnDraw 1.1s .3s cubic-bezier(.6,0,.2,1) both; }
.swap { animation: hnFade .45s ease both; }
.ledger__bar { transition: width 1s cubic-bezier(.2,.7,.2,1); }
@supports (animation-timeline: view()) {
  .reveal { animation: hnUp linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; gap: 12px 48px; }
}
