/* 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__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--fit); color: var(--on-ink); display: grid; place-items: center; font-size: 17px; }
.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: #5b6875; }
.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); }
