/* The Eligent website's one stylesheet: the look of the owner's Claude Design canvas "Eligent Website v1", as reusable parts.
   Colours are the brand's (src/client/brand/README.md). Every text colour here passes 4.5:1 on its background. */

:root {
  --navy: #16263b;
  --action: #24476f;
  --steel: #7ea3c6;
  --off-white: #f7f6f2;
  --page: #f3f5f8;
  --surface: #ffffff;
  --text-muted: #3f4e60;
  --text-quiet: #4b5a6b;
  --line: #e1e6ec;
  --line-soft: #e6ebf1;
  --cream-line: #e7e4dc;
  --info-bg: #e7f0f9;
  --info-text: #1d4f7a;
  --success-bg: #e2f3e9;
  --success-text: #0b5d34;
  --error-bg: #fdecec;
  --error-text: #8a1c1c;
  --on-dark-muted: #d5dee8;
  --on-dark-quiet: #c5d1de;
  --input-border: #74828f;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: var(--action); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, main:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
main:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--navy); color: #ffffff; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #ffffff; }

/* Type */
.eyebrow { display: inline-flex; padding: 6px 12px; background: var(--info-bg); color: var(--info-text); border-radius: 999px; font-size: 14px; font-weight: 600; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.display { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.display--page { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; max-width: 18em; }
.heading { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.heading--small { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-muted); max-width: 36em; text-wrap: pretty; }
.body-large { font-size: 18px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 14px; color: var(--text-quiet); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); align-items: flex-start; }
.stack > * { max-width: 100%; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 46em; font-size: 17px; color: var(--text-muted); }
.prose h2 { margin-top: 18px; font-size: 24px; line-height: 1.25; color: var(--navy); }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 10px;
  background: var(--action); color: #ffffff; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--navy); color: #ffffff; }
.button:disabled { opacity: 0.7; cursor: progress; }
.button--small { min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; }
.button--light { background: var(--off-white); color: var(--navy); }
.button--light:hover { background: #ffffff; color: var(--navy); }
.button--secondary { background: var(--surface); color: var(--action); box-shadow: inset 0 0 0 1px var(--input-border); }
.button--secondary:hover { background: var(--info-bg); color: var(--navy); }
.text-link { display: inline-block; padding: 12px 0; font-size: 16px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--navy); }
.brand img { width: 36px; height: 36px; }
.brand--large { gap: 14px; font-size: 32px; letter-spacing: -0.015em; line-height: 1; }
.brand--large img { width: 52px; height: 52px; }
.tm { font-size: 13px; font-weight: 500; vertical-align: super; margin-left: 2px; }
.site-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.site-nav a { padding: 10px 0; color: var(--navy); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--steel); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-button {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
/* With scripts, a narrow screen shows the menu behind a button; without them, the links simply wrap. */
@media (max-width: 960px) {
  .js .menu-button { display: inline-flex; }
  .js .site-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 4px; }
  .js .site-menu[data-open] { display: flex; }
  .js .site-nav { flex-direction: column; gap: 0; font-size: 17px; }
  .js .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .js .site-menu .button { align-self: flex-start; margin-top: 8px; }
}

/* Sections */
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section--hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 96px); }
.section--tight-top { padding-top: clamp(16px, 3vw, 32px); }
.section--flush-top { padding-top: 0; }
.band { background: var(--off-white); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.band--dark { background: var(--navy); color: var(--off-white); border: 0; }
.band--dark .lead, .band--dark .body-large { color: var(--on-dark-muted); }
.band--dark .kicker { color: var(--on-dark-quiet); }
.band--dark a { color: var(--off-white); }
.band--dark a:hover { color: #ffffff; }
.band--dark a:focus-visible { outline-color: var(--off-white); }
.band--dark .button--light { color: var(--navy); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.split > * { min-width: 0; }
.split--center { align-items: center; }
.split__narrow { flex: 1 1 320px; }
.split__wide { flex: 2 1 480px; }
.split__half { flex: 1 1 400px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 250px), 100%), 1fr)); padding: 0; list-style: none; }
.card { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); padding: clamp(24px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.card h2, .card h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.card p, .card li { font-size: 16px; color: var(--text-muted); }
.icon-tile { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--info-bg); color: var(--action); display: flex; align-items: center; justify-content: center; }
.check-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; }

/* Numbered steps */
.steps { padding: 0; list-style: none; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 16px; color: var(--text-muted); }
.step-rule { display: flex; align-items: center; gap: 14px; }
.step-rule::after { content: ""; flex: 1; height: 2px; background: var(--steel); }
.number { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--navy); color: var(--off-white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.number--small { width: 32px; height: 32px; font-size: 15px; }
.task-list { padding: 0; list-style: none; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.task-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.task-list li:last-child { border-bottom: 0; }

/* Security points on a dark band */
.point-list { padding: 0; list-style: none; display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.point-list li { display: flex; gap: 14px; align-items: flex-start; }
.point-list svg { flex: none; margin-top: 2px; }
.point-list small { display: block; color: var(--on-dark-quiet); font-size: 15px; }

/* Calls to action */
.cta { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta--dark { background: transparent; box-shadow: none; padding: 0; }

/* The sample screen on the home page */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero__text { flex: 1 1 400px; min-width: 0; --stack-gap: 22px; }
.mock { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mock__window { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(22, 38, 59, 0.45), 0 0 0 1px #dde3ea; }
.mock__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--navy); color: var(--off-white); font-size: 13px; font-weight: 600; }
.mock__titlebar > div { display: flex; align-items: center; gap: 8px; }
.mock__tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; color: var(--text-quiet); }
.mock__tabs span { padding: 12px 0 10px; display: flex; align-items: center; gap: 6px; }
.mock__tabs .is-current { border-bottom: 2px solid var(--action); color: var(--navy); }
.badge { background: var(--info-bg); color: var(--info-text); border-radius: 999px; padding: 0 8px; font-size: 12px; line-height: 20px; }
.mock__body { padding: clamp(16px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 18px; }
.mock__patient { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.mock__name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.mock__meta { font-size: 13px; color: var(--text-quiet); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 14px; border-radius: 12px; background: var(--success-bg); color: var(--success-text); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.figures { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.figure { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.figure__label { font-size: 12px; font-weight: 600; color: var(--text-quiet); text-transform: uppercase; letter-spacing: 0.06em; }
.figure__value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.figure__value small { font-size: 14px; font-weight: 500; color: var(--text-quiet); letter-spacing: 0; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.meter span { display: block; height: 6px; background: var(--steel); }
.callout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 16px; border-radius: 10px; background: var(--info-bg); color: var(--info-text); }
.callout > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.callout strong { font-size: 16px; }
.callout__action { flex: none; align-self: center; padding: 8px 14px; border-radius: 8px; background: var(--action); color: #ffffff; font-size: 13px; font-weight: 600; }
.caption { font-size: 13px; color: var(--text-quiet); text-align: center; }

/* Sign-in card on the IT page */
.signin-card { width: 100%; max-width: 380px; margin: 0 auto; background: var(--surface); border-radius: 16px; box-shadow: 0 24px 50px -30px rgba(22, 38, 59, 0.45), 0 0 0 1px #dde3ea; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.signin-card__button { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: var(--action); color: #ffffff; font-size: 16px; font-weight: 600; }
.details { display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.details dt { font-size: 14px; font-weight: 600; color: var(--text-quiet); }
.details dd { font-size: 16px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; min-height: 44px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--info-bg); color: var(--action); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 16px; }

/* Forms */
.form-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.form-layout > * { min-width: 0; }
.form-intro { flex: 1 1 360px; --stack-gap: 28px; }
.form-card { flex: 1 1 440px; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 50px -36px rgba(22, 38, 59, 0.45), 0 0 0 1px var(--line); padding: clamp(24px, 3.5vw, 44px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--text-quiet); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 8px; font: inherit; font-size: 16px; color: var(--navy); background: var(--surface); }
.field textarea { padding: 12px 14px; resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid var(--error-text); }
.field__hint { font-size: 14px; color: var(--text-quiet); }
.field__error { font-size: 14px; font-weight: 600; color: var(--error-text); }
.field__error:empty { display: none; }
.notice { border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.notice:focus { outline: 3px solid var(--action); outline-offset: 3px; }
.notice h2, .notice h3 { font-size: 18px; }
.notice--error { background: var(--error-bg); color: var(--error-text); }
.notice--error a { color: var(--error-text); }
.notice--success { background: var(--success-bg); color: var(--success-text); }
.notice--info { background: var(--info-bg); color: var(--info-text); }
.notice ul { padding-left: 1.2em; }
.notice textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 8px; font: inherit; font-size: 14px; color: var(--navy); background: var(--surface); }
.contact-card { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.contact-card a { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.mini-steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--text-muted); }
.mini-steps .number { width: 30px; height: 30px; font-size: 14px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--off-white); border-top: 1px solid var(--cream-line); }
.site-footer__inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.site-footer__about { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__about p { font-size: 15px; color: var(--text-muted); max-width: 30em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.site-footer__links > * { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.site-footer__links a { padding: 6px 0; }
.site-footer nav a { color: var(--navy); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid #e1ddd3; font-size: 14px; color: var(--text-quiet); }
