/* RoleSquire website. Colours and spacing come from tokens.css (shared with the app). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--text); }
img, svg { max-width: 100%; }
a { color: var(--fit); text-underline-offset: 3px; }
a:hover { color: var(--fit-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s5); }
.wrap--narrow { max-width: 820px; }
.skip-link { position: absolute; left: var(--s4); top: -60px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); border-radius: var(--radius); z-index: 10; }
.skip-link:focus { top: var(--s4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border: 0; border-radius: 10px; font: 600 17px/1 var(--text); text-decoration: none; cursor: pointer; }
.btn--accent { background: var(--fit); color: var(--on-ink); }
.btn--accent:hover { background: var(--fit-strong); color: var(--on-ink); }
.btn--ink { background: var(--ink); color: var(--paper); min-height: 44px; font-size: 16px; padding: 0 18px; }
.btn--ink:hover { color: var(--paper); opacity: 0.9; }

/* ---- header ----------------------------------------------------------- */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s4); padding-bottom: var(--s4); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); font-size: 16px; font-weight: 500; }
.nav__link { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav__link:hover { color: var(--fit); }
.nav__link[aria-current="page"] { color: var(--fit); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 22px; background: var(--surface); color: var(--ink); font: 500 15px/1 var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--ink-3); }
@media (max-width: 720px) {
  .nav { width: 100%; justify-content: space-between; gap: var(--s2) var(--s4); }
  .nav__cta { width: 100%; }
}

/* ---- sections ----------------------------------------------------------- */
.section { padding: var(--s9) 0; }
.section--band { background: var(--band); }
.section--surface { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--deep { background: var(--deep); color: var(--deep-ink); }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.025em; }
.split { display: flex; flex-wrap: wrap; gap: var(--s7); }
.split > * { flex: 1 1 380px; min-width: 0; }
.split > .split__wide { flex: 1.4 1 480px; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }

/* ---- hero --------------------------------------------------------------- */
.hero { padding: var(--s7) 0 var(--s9); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--s5); }
.hero__kicker { font-size: 16px; font-weight: 600; color: var(--fit); }
.hero__title { font-size: clamp(48px, 7vw, 88px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.hero__lead { font-size: 21px; color: var(--ink-2); max-width: 34em; }
.hero__demo { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---- sample shortlist ------------------------------------------------- */
.shortlist { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.shortlist__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); }
.shortlist__title { font-weight: 700; font-size: 17px; }
.shortlist__note { font-size: 14px; color: var(--ink-3); }
.role { display: flex; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.role:last-child { border-bottom: 0; padding-bottom: 0; }
.role__score { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--fit-soft); color: var(--fit-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.role__score b { font-size: 22px; font-weight: 800; }
.role__score span { font-size: 12px; font-weight: 600; margin-top: 3px; }
.role__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.role__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.role__meta { font-size: 15px; color: var(--ink-2); }
.role__why { font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--shade); color: var(--ink-2); }
.chip--pay { background: var(--fit-soft); color: var(--fit-ink); font-weight: 600; }
.chip--unknown { background: var(--review-soft); color: var(--review-ink); font-weight: 600; }
.ghost { border: 1.5px dashed var(--rule); border-radius: var(--radius-lg); padding: 14px 18px; display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.ghost svg { flex: 0 0 22px; color: var(--review); }
.ghost s { color: var(--ink-3); }

/* ---- steps, promises, faq --------------------------------------------- */
.steps { margin: var(--s7) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps__n { font-size: 15px; font-weight: 700; color: var(--fit); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-2); }
.promises { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 40px; }
.promises dt { font-weight: 700; font-size: 21px; margin-bottom: 6px; }
.promises dd { margin: 0; color: var(--ink-2); }
.faq { border-top: 1px solid var(--rule); margin-top: var(--s6); }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 20px; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fit); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: var(--s3); color: var(--ink-2); }

/* ---- signup form ------------------------------------------------------ */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.signup__label { font-size: 16px; font-weight: 600; }
.signup__optional { font-weight: 400; color: var(--ink-3); }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row .signup__input { flex: 1 1 240px; }
.signup__input { min-width: 0; height: 52px; padding: 0 16px; font: 17px var(--text); color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink-3); border-radius: 10px; }
.signup__input::placeholder { color: var(--ink-3); }
.signup .btn { min-height: 52px; }
.signup__note { font-size: 14px; color: var(--ink-2); }
.signup__status:empty { display: none; }
.signup__status { font-size: 15px; font-weight: 600; color: var(--fit-ink); background: var(--fit-soft); padding: 10px 14px; border-radius: var(--radius); }
.signup__status[data-kind="error"] { color: var(--risk-ink); background: var(--risk-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup--dark .signup__input { background: rgba(255, 255, 255, 0.06); color: var(--deep-ink); border-color: #8a96a1; }
.signup--dark .signup__note { color: var(--deep-ink-2); }
.signup--dark .signup__optional { color: var(--deep-ink-2); }
.signup--dark a { color: var(--deep-accent); }
.signup--dark .btn--accent { background: var(--deep-accent); color: #10201c; }

/* ---- inner pages ------------------------------------------------------ */
.page-head { padding: var(--s8) 0 var(--s6); }
.page-head__title { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.page-head__lead { margin-top: var(--s4); font-size: 21px; color: var(--ink-2); max-width: 36em; }
.page-body { padding-bottom: var(--s9); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.updated { font-size: 15px; color: var(--ink-3); }
.callout { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.card h2, .card h3 { font-size: 21px; letter-spacing: -0.01em; }
.card a { font-weight: 600; }
.card__soon { font-size: 14px; font-weight: 600; color: var(--review-ink); background: var(--review-soft); align-self: flex-start; padding: 2px 8px; border-radius: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s5); }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.plan--deep { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.plan h2 { font-size: 28px; }
.plan__price { font-size: 20px; font-weight: 600; color: var(--fit); }
.plan--deep .plan__price { color: var(--deep-accent); }
.plan ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: var(--s2); }
.plan--deep ul { color: var(--deep-ink-2); }

/* ---- footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface-2); font-size: 15px; color: var(--ink-2); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--s6) var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); }
.footer__about { flex: 1 1 280px; display: flex; flex-direction: column; gap: var(--s2); max-width: 30em; }
.footer__brand { font: 800 19px/1 var(--display); color: var(--ink); }
.footer__col { flex: 0 1 150px; }
.footer__title { font: 700 15px/1.3 var(--text); letter-spacing: 0; color: var(--ink); margin-bottom: var(--s3); }
.footer__col ul, .footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer__social { flex-direction: row; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--fit); }
.lead--deep { color: var(--deep-ink-2); }
.subhead { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.mt-7 { margin-top: var(--s7); }
.page-body__note { margin-top: var(--s6); }

/* ---- header search link ------------------------------------------------ */
.nav__search { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav__search:hover { color: var(--fit); }
@media (min-width: 721px) { .nav__search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---- breadcrumbs ------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

/* ---- guides and claim pages ------------------------------------------- */
.article__head { padding-top: var(--s7); padding-bottom: var(--s5); }
.article__title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
.article__byline { margin-top: var(--s4); font-size: 15px; color: var(--ink-3); }
.article__body { padding-bottom: var(--s9); display: flex; flex-direction: column; gap: var(--s6); }
.article__body .prose { max-width: 68ch; }
.draft-note { display: inline-block; margin-bottom: var(--s4); font-size: 15px; font-weight: 600; color: var(--review-ink); background: var(--review-soft); padding: 6px 12px; border-radius: var(--radius); }
.answer { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--fit); border-radius: var(--radius-lg); padding: var(--s5); max-width: 68ch; }
.answer__title, .sure__title, .toc__title { font: 700 15px/1.3 var(--text); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); }
.answer p { font-size: 19px; }
.sure { max-width: 68ch; }
.sure__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.sure__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 17px; }
.sure__list li > span:last-child { flex: 1 1 260px; }
.sure__how { margin-top: var(--s3); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font: 600 14px/1 var(--text); letter-spacing: 0; padding: 5px 9px; border-radius: 6px; white-space: nowrap; vertical-align: middle; }
.badge__icon { flex: 0 0 14px; }
/* A thin outline in the badge's own colour, so the shape shows on white and on tinted bands. */
.badge, .chip--pay, .chip--unknown, .role__score { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); }
.badge--strong { background: var(--fit-soft); color: var(--fit-ink); }
.badge--some { background: var(--band); color: var(--fit-ink); }
.badge--consensus { background: var(--shade); color: var(--ink); }
.badge--opinion { background: var(--review-soft); color: var(--review-ink); }
.badge--myth { background: var(--risk-soft); color: var(--risk-ink); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: 15px; }
.toc { max-width: 68ch; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s4) 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 16em; column-gap: var(--s6); font-size: 17px; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.verdict { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); max-width: 68ch; display: flex; flex-direction: column; gap: var(--s3); }
.verdict__claim { font-size: 20px; font-weight: 600; }
.verdict__label { display: block; font: 700 14px/1.3 var(--text); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.verdict__title { font: 700 18px/1.4 var(--text); letter-spacing: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sources { max-width: 68ch; border-top: 1px solid var(--rule); padding-top: var(--s5); }
.sources h2 { font-size: 22px; margin-bottom: var(--s3); }
.sources ol { margin: 0; padding-left: 1.4em; font-size: 16px; display: flex; flex-direction: column; gap: var(--s2); }
.sources__note { color: var(--ink-2); }
.related h2 { font-size: 22px; margin-bottom: var(--s4); }
.cards--compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.cards--compact .card { padding: var(--s4); }
.card__kicker { font-size: 14px; font-weight: 600; color: var(--fit); }
.card .badge { align-self: flex-start; }
.article__foot { max-width: 68ch; border-top: 1px solid var(--rule); padding-top: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.prose blockquote { margin: 0; padding-left: var(--s4); border-left: 3px solid var(--rule); color: var(--ink-2); }
.prose code { font-size: 0.9em; }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }

/* ---- glossary ---------------------------------------------------------- */
.glossary dt { font-weight: 700; font-size: 20px; margin-top: var(--s5); scroll-margin-top: var(--s5); }
.glossary dd { margin: 6px 0 0; color: var(--ink-2); }

/* ---- listing checklist tool ------------------------------------------- */
.checklist fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.checklist__item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s4); cursor: pointer; }
.checklist__item input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 22px; accent-color: var(--fit); }
.checklist__item b { color: var(--ink); }
.checklist__item span { color: var(--ink-2); }
.checklist__score { margin-top: var(--s4); font-weight: 600; }
.checklist__score:empty { display: none; }

/* ---- search ------------------------------------------------------------ */
.search { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.search__status { margin-top: var(--s4); }
.search__status:empty { display: none; }
.search__results { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.search__results li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s4); }
.search__results a { font-weight: 700; font-size: 19px; }
.search__section { display: block; font-size: 14px; font-weight: 600; color: var(--fit); margin-bottom: 4px; }
.search__snippet { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.search__snippet mark { background: var(--fit-soft); color: var(--fit-ink); padding: 0 2px; border-radius: 3px; }

/* ---- print: checklists and guides print cleanly ------------------------ */
@media print {
  .site-header, .site-footer, .skip-link, .article__foot, .related, .signup, .crumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
  .prose a[href^="http"]::after, .sources a::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .answer, .verdict, .checklist__item, .card { border-color: #999; break-inside: avoid; }
  .page-head, .article__head { padding-top: 0; }
}
