/* ready4hire landing page. Same palette and type as the app (app.readyforhires.com). */
:root {
  --ink: #15202e;
  --ink-2: #4b5768;
  --ink-3: #6b7685;
  --paper: #ffffff;
  --mist: #f1f5f3;
  --line: #dde5e1;
  --green: #1d6b5d;
  --green-deep: #0f4a40;
  --mint: #dcefe8;
  --amber: #a86a0c;
  --wrong: #b3261e;
  --wrong-bg: #fbeceb;
  --radius: 10px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.nav { display: flex; gap: 24px; margin-left: 8px; }
.nav a, .link-quiet { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .link-quiet:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .link-quiet { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid var(--green); }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--line); }
.btn-light { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); }
.arrow-link { display: inline-block; margin-top: 20px; font-weight: 600; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }

/* hero */
.hero { padding: 72px 0 40px; background: linear-gradient(to bottom, var(--mist), var(--paper) 85%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; max-width: 12ch; }
.lede { margin-top: 22px; font-size: 1.1875rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.price-note { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-3); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }

/* the sample exam window */
.exam { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgb(21 32 46 / 0.06), 0 18px 40px -18px rgb(15 74 64 / 0.28); overflow: hidden; }
.exam-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.exam-bar > span:first-child { font-weight: 600; color: var(--ink); }
.exam-pos { margin-left: auto; }
.timer { font-family: var(--mono); font-weight: 500; color: var(--ink); background: var(--mist); border-radius: 6px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.exam-body { padding: 20px 20px 22px; }
.exam-type { font-size: 0.8125rem; font-weight: 600; color: var(--green); }
.exam-q { margin-top: 4px; font-weight: 600; font-size: 1.0625rem; }
.code { margin: 14px 0 0; padding: 14px 16px; background: #10201c; color: #d9ece6; border-radius: 8px; font: 400 0.875rem/1.65 var(--mono); overflow-x: auto; }
.code .k { color: #8fd3c1; } .code .f { color: #f0d58c; } .code .s { color: #f2a98e; } .code .n { color: #b8c7f5; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.opt b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--mist); font-size: 0.75rem; }
.opt:hover:not(:disabled) { border-color: var(--green); }
.opt:disabled { cursor: default; }
.opt.is-right { border-color: var(--green); background: var(--mint); }
.opt.is-right b { background: var(--green); color: #fff; }
.opt.is-wrong { border-color: var(--wrong); background: var(--wrong-bg); }
.explain { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--mist); border-radius: 0 8px 8px 0; font-size: 0.9375rem; }
.explain-note { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 480px) { .options { grid-template-columns: 1fr; } .exam-bar > span:first-child { display: none; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 56px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 22px 24px 0 0; }
.facts dt { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--green-deep); }
.facts dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 22em; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 8px; } }

/* sections */
main > section { padding: 96px 0; }
.band { background: var(--mist); }
.section-head { max-width: 46em; margin-bottom: 40px; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.fine { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-3); max-width: 60em; }
@media (max-width: 640px) { main > section { padding: 64px 0; } }

/* question tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #e3ebe7; border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; padding: 10px 16px; border-radius: 7px; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(21 32 46 / 0.08); }
.panels { margin-top: 20px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel[hidden] { display: none; }
.panel-note { color: var(--ink-2); padding-top: 18px; }
.sample { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sample-meta { font-size: 0.8125rem; color: var(--ink-3); }
.sample-q { margin-top: 6px; font-weight: 600; }
.sample-a { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.sample-opts { margin: 14px 0 0; padding-left: 1.5em; display: grid; gap: 6px; }
.sample-opts li { padding: 6px 10px; border-radius: 6px; }
.sample-opts .right { background: var(--mint); font-weight: 600; }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; gap: 0; } }

/* image slots: the placeholder shows only while the image file is missing */
.shot { position: relative; margin: 48px 0 0; border-radius: 14px; overflow: hidden; background:
  repeating-linear-gradient(135deg, #e6eeea 0 12px, #edf3f0 12px 24px); border: 1px dashed #b9cbc3; }
.shot-wide { aspect-ratio: 16 / 9; }
.shot-tall { aspect-ratio: 4 / 5; margin: 0; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .ph { position: absolute; inset: auto 16px 16px 16px; padding: 10px 14px; background: rgb(255 255 255 / 0.9); border-radius: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.shot .ph b { color: var(--ink); margin-right: 6px; }
.shot:has(img) { border: 0; }
.shot:has(img) .ph { display: none; }

/* topic or company */
.two-ways { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.way { border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.way > p { margin-top: 10px; color: var(--ink-2); }
.way-company { background: var(--green-deep); color: #e7f3ef; border-color: var(--green-deep); }
.way-company > p { color: #b9d6cd; }
.way-company .arrow-link { color: #fff; }
.way-company .fine { color: #8fb5aa; }
.company-wall { margin-top: 22px !important; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: #fff !important; }
.tag-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 5px 11px; border-radius: 999px; background: var(--mist); font-size: 0.875rem; color: var(--ink); }
.tag-roles li { background: rgb(255 255 255 / 0.1); color: #e7f3ef; }
@media (max-width: 860px) { .two-ways { grid-template-columns: 1fr; } .way { padding: 24px; } }

/* how it works */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); font-weight: 600; font-size: 0.9375rem; }
.steps p { color: var(--ink-2); margin-top: 2px; }
@media (max-width: 920px) { .how-grid { grid-template-columns: 1fr; gap: 48px; } }

.report { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; position: sticky; top: 96px; }
.report-label { font-size: 0.8125rem; color: var(--ink-3); }
.report-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-test { font-weight: 600; font-size: 1.125rem; }
.report-sub { color: var(--ink-3); font-size: 0.875rem; }
.report-score { font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--green-deep); }
.report-score span { font-size: 1.5rem; }
.bars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: 12px; font-size: 0.875rem; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.report-q { margin-top: 22px; padding: 14px 16px; background: var(--mist); border-radius: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.report-q-head { display: flex; justify-content: space-between; color: var(--ink); font-size: 0.8125rem; margin-bottom: 6px; }
@media (max-width: 480px) { .bars li { grid-template-columns: 7.5rem 1fr 2.5rem; } .report { padding: 20px; } }

/* rank */
.rank-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.rank-grid > div > p { color: var(--ink-2); max-width: 36em; }
.url { font-family: var(--mono); font-size: 0.9375rem; color: var(--ink); }
@media (max-width: 860px) { .rank-grid { grid-template-columns: 1fr; gap: 40px; } }

/* pricing */
.prices { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfdcd6; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px 18px 0; border-bottom: 1px solid #cfdcd6; margin-right: 24px; }
.prices b { font-size: 1.5rem; font-weight: 700; color: var(--green-deep); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } .prices li { margin-right: 0; padding-right: 0; } }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* closing and footer */
.closing { background: var(--green); color: #fff; }
main > section.closing { padding: 72px 0; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { max-width: 20ch; }
@media (max-width: 760px) { .closing-row { flex-direction: column; align-items: flex-start; } }

.foot { background: #0d1a17; color: #b7c8c2; padding: 56px 0 28px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; }
.foot-grid > div > p { margin-top: 10px; line-height: 1.9; }
.foot h3 { font-size: 0.9375rem; color: #fff; }
.foot a { color: #b7c8c2; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #22332e; font-size: 0.8125rem; color: #7f948d; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* top students (filled by the server from the leaderboard) */
.leaders-title { margin-top: 32px; font-size: 1rem; }
.leaders { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.leaders li { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.l-rank { font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.l-who { min-width: 0; }
.l-who a { font-weight: 600; color: var(--ink); text-decoration: none; }
.l-who a:hover { text-decoration: underline; }
.l-who small, .l-pts small { display: block; font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.leaders-empty { margin-top: 12px; padding: 14px 16px; background: var(--mist); border-radius: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.prices b small { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-right: 4px; }

/* public profile pages (/u/<username>, rendered by the server) */
.pwrap { padding: 24px 0 64px; max-width: 860px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 16px; }
.pcard h2 { font-size: 1.25rem; margin-bottom: 12px; }
.ptop { padding: 0; overflow: hidden; margin-top: 0; }
.pfoot { border-top: 1px solid var(--line); padding: 16px 0; font-size: 0.6875rem; line-height: 1.6; color: var(--ink-3); }
.pfoot a { color: var(--ink-3); }
/* experience and education as a timeline */
.ptime { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.ptime::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--mint); }
.ptime > li { position: relative; padding-bottom: 18px; }
.ptime > li:last-child { padding-bottom: 0; }
.ptime > li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); }
.ptime > li:first-child::before { background: var(--green); }
.ptime h3 { font-size: 1.0625rem; }
.ptime p { margin-top: 4px; color: var(--ink-2); }
/* rated skills */
.pbars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.pbars li { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr 3rem; align-items: center; gap: 12px; font-size: 0.9375rem; }
.pbars b { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.pbar { height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2f8f7d, var(--green-deep)); }
.phead { padding: 0 24px 24px; }
.ptop { border-top: 4px solid var(--green); }
.phead { padding-top: 24px; }
.pphoto { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--paper); object-fit: cover; background: var(--mint); }
.pinit { font-size: 2.5rem; font-weight: 700; color: var(--green-deep); }
.phead h1 { font-size: 2rem; max-width: none; margin-top: 12px; letter-spacing: -0.02em; }
.phl { margin-top: 6px; font-size: 1.125rem; }
.pmeta { color: var(--ink-3); font-size: 0.9375rem; }
.pactions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.pabout { white-space: pre-line; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist > li { padding: 14px 0; border-top: 1px solid var(--line); }
.plist > li:first-child { border-top: 0; padding-top: 0; }
.plist h3 { font-size: 1.0625rem; }
.plist p { margin-top: 4px; color: var(--ink-2); }
.prow { display: flex; justify-content: space-between; gap: 16px; }
.prow small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.ptags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ptags li { padding: 5px 11px; border-radius: 999px; background: var(--mist); font-size: 0.875rem; }
@media (max-width: 640px) { .pphoto { width: 88px; height: 88px; } .phead h1 { font-size: 1.625rem; } }
.prices b s { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); margin-right: 4px; }
