/* IF HealthTech & GovTech — English site
   Plain CSS, no build step. Light theme by default, dark theme via prefers-color-scheme.
   Contrast (WCAG 2.x) checked for every text/background pair below; see notes. */

:root {
  color-scheme: light dark;

  /* Brand */
  --navy: #010711;
  --navy-2: #0e3a6e;
  --cyan: #2ad6dc;
  --ink: #e9f7fb;
  --slate: #90aab5;

  /* Light theme tokens */
  --bg: #ffffff;
  --bg-alt: #f3f8fa;
  --surface: #ffffff;
  --text: #010711;            /* 20.2:1 on #fff */
  --muted: #4a5f69;           /* 6.7:1 on #fff, 6.3:1 on #f3f8fa */
  --heading: #010711;
  --link: #0a6476;            /* 6.8:1 on #fff */
  --link-hover: #0e3a6e;      /* 11.4:1 on #fff */
  --accent: #2ad6dc;          /* decoration only on light backgrounds */
  --accent-text: #06676c;     /* 6.6:1 on #fff */
  --border: #d6e3e9;
  --border-strong: #6b8591;   /* 3.9:1 on #fff, 3.2:1 on the hero glow (UI boundary) */
  --tag-bg: #dcf6f7;
  --tag-text: #064f54;        /* 8.3:1 on tag bg */
  --status-bg: #eef3f6;
  --status-text: #2f434d;
  --btn-bg: #010711;
  --btn-text: #ffffff;
  --btn-hover: #0e3a6e;
  --focus: #0e3a6e;
  --hero-glow: rgba(42, 214, 220, 0.20);
  --shadow: 0 1px 2px rgba(1, 7, 17, 0.05), 0 10px 30px rgba(1, 7, 17, 0.06);

  /* Dark bands (footer, call to action) stay navy in both themes */
  --band-bg: #010711;
  --band-text: #e9f7fb;       /* 18.4:1 */
  --band-muted: #90aab5;      /* 8.3:1 */
  --band-link: #2ad6dc;       /* 11.3:1 */
  --band-border: #1c3343;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --gutter: 24px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #010711;
    --bg-alt: #06121d;
    --surface: #0a1824;
    --text: #e9f7fb;          /* 18.4:1 on bg, 16.4:1 on surface */
    --muted: #a3bcc6;         /* 9.6:1 on bg, 8.6:1 on surface */
    --heading: #ffffff;
    --link: #2ad6dc;          /* 11.3:1 on bg, 10.0:1 on surface */
    --link-hover: #8af0f3;
    --accent: #2ad6dc;
    --accent-text: #2ad6dc;
    --border: #1c3343;
    --border-strong: #557d91;   /* 4.0:1 on surface */
    --tag-bg: #0d2f3a;
    --tag-text: #8af0f3;      /* 10.6:1 on tag bg */
    --status-bg: #132634;
    --status-text: #cfe3ea;
    --btn-bg: #2ad6dc;
    --btn-text: #010711;      /* 11.3:1 */
    --btn-hover: #8af0f3;
    --focus: #2ad6dc;
    --hero-glow: rgba(42, 214, 220, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --band-bg: #0a1824;
    --band-border: #1c3343;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.1875rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.92em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: 70ch; }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 0.75rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: var(--btn-text); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy-2), var(--cyan)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { display: block; height: 36px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block; padding: 0.45rem 0.7rem; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 0.98rem; text-decoration: none;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
.site-nav a[aria-current="page"], .site-nav a.is-section {
  color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.site-nav a.nav-cta { background: var(--btn-bg); color: var(--btn-text); padding: 0.45rem 1rem; border-radius: 999px; }
.site-nav a.nav-cta:hover { background: var(--btn-hover); color: var(--btn-text); }
.site-nav a.nav-cta[aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--btn-bg); }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 48px 0; }
.section-head { max-width: 68ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(55% 90% at 100% 0%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero h1 { max-width: 20ch; }
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { max-width: 24ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.glance { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.glance h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.glance ul { list-style: none; padding: 0; margin: 0; }
.glance li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); margin: 0; }
.glance li:first-child { border-top: 0; padding-top: 0; }
.glance li::before { content: ""; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--tag-bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a:hover { color: var(--link-hover); text-decoration: underline; }
.card p { color: var(--muted); }
.card--service { border-top: 4px solid var(--accent); }
.card .price-from { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--text); }
.card .price-from strong { display: block; font-size: 1.05rem; }
.card .more { font-weight: 700; margin-top: 10px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.tag { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; background: var(--tag-bg); color: var(--tag-text); }
.tag--status { background: var(--status-bg); color: var(--status-text); }

/* Lists */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.4rem;
  border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg);
}
.dash { list-style: none; padding: 0; }
.dash li { position: relative; padding-left: 1.3rem; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 2px; background: var(--border-strong); }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); font-weight: 800;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }
.steps--rows { grid-template-columns: 1fr; }
.steps--rows li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.steps--rows li::before { margin: 0; grid-row: span 2; }

/* Two-column content blocks */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 48px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel > :last-child { margin-bottom: 0; }
.note { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text); }
.note > :last-child { margin-bottom: 0; }

/* Price tables */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
table.prices { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.98rem; }
table.prices caption { text-align: left; padding: 16px 20px; font-weight: 700; font-size: 1.05rem; color: var(--heading); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
table.prices th, table.prices td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--border); }
table.prices tr:last-child > * { border-bottom: 0; }
table.prices thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface); }
table.prices tbody th { font-weight: 700; color: var(--heading); min-width: 9rem; }
table.prices .amt { font-weight: 800; color: var(--heading); white-space: nowrap; }
table.prices td.money { white-space: nowrap; }
table.prices .group th { background: var(--bg-alt); font-size: 0.95rem; }
table.prices .group a { color: var(--heading); }
.price-tables { display: grid; gap: 28px; }
.table-wrap + .panel, .table-wrap + p { margin-top: 20px; }
.grid + .more { margin-top: 24px; }

@media (max-width: 760px) {
  table.prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.prices, table.prices caption, table.prices tbody, table.prices tr, table.prices th, table.prices td { display: block; width: 100%; }
  table.prices tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  table.prices tbody tr:last-child { border-bottom: 0; }
  table.prices tbody th, table.prices tbody td { padding: 4px 0; border: 0; min-width: 0; }
  table.prices tbody th { font-size: 1.08rem; padding-bottom: 6px; }
  table.prices td.money { white-space: normal; }
  table.prices td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 6px;
  }
  table.prices .group th { padding: 12px 18px; margin: 0; }
  table.prices .group { padding: 0; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 80ch; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 700; color: var(--heading); border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.faq .answer { padding: 14px 20px 4px; }
.faq .answer p { color: var(--text); }

/* Work page */
.work-list { display: grid; gap: 28px; }
.work-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.work-item header { margin-bottom: 14px; }
.work-item h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.5rem; }
.work-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.work-body h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 1.2rem 0 0.5rem; }
.work-body > div > h3:first-child { margin-top: 0; }
.work-side { border-left: 1px solid var(--border); padding-left: 28px; }
.work-side p, .work-side li { font-size: 0.96rem; }
.limits { color: var(--muted); }
.links { list-style: none; padding: 0; }
.links a { font-weight: 700; }
.no-link { color: var(--muted); font-style: italic; }
.index-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.index-list li { margin: 0; }
.index-list a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: 0.93rem; font-weight: 600; background: var(--surface); }
.index-list a:hover { border-color: var(--link); }

a.ext::after { content: "\2009\2197"; content: "\2009\2197" / ""; }

/* Facts (about, contact) */
dl.facts { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--border); }
dl.facts dt, dl.facts dd { padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; }
dl.facts dt { font-weight: 700; color: var(--heading); padding-right: 16px; }
dl.facts dd { color: var(--text); }

.email-big { font-size: clamp(1.2rem, 3.4vw, 1.75rem); font-weight: 800; word-break: break-all; }
.subject-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.subject-list li { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.subject-list .subj { font-family: var(--mono); font-size: 0.92rem; color: var(--muted); }

/* Call to action band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--band-bg); color: var(--band-text);
  border: 1px solid var(--band-border); border-radius: var(--radius-lg);
  padding: 44px 40px;
}
.cta-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--cyan); }
.cta-band h2 { color: #ffffff; max-width: 30ch; }
.cta-band p { color: var(--band-muted); max-width: 60ch; }
.cta-band a:not(.btn) { color: var(--band-link); }
.cta-band .btn--primary { background: var(--cyan); color: var(--navy); }
.cta-band .btn--primary:hover { background: #8af0f3; color: var(--navy); }
.cta-band .btn--secondary { color: var(--band-text); border-color: #557d91; }
.cta-band .btn--secondary:hover { border-color: var(--band-text); color: #ffffff; }
.cta-band :focus-visible { outline-color: var(--cyan); }

/* Footer */
.site-footer { background: var(--navy); color: var(--band-text); margin-top: 0; border-top: 1px solid var(--band-border); --focus: #2ad6dc; }
.site-footer a { color: var(--band-link); }
.site-footer a:hover { color: #8af0f3; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 1.3fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer li { font-size: 0.97rem; }
.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { color: var(--band-muted); max-width: 34ch; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--band-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--band-border); padding-top: 20px; padding-bottom: 28px; font-size: 0.92rem; color: var(--band-muted); }
.footer-legal p { margin: 0 0 0.4rem; }
.footer-legal .sep { padding: 0 0.4rem; color: #557d91; }

/* 404 */
.notfound { padding: 96px 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-body { grid-template-columns: 1fr; }
  .work-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .header-inner { min-height: 0; padding-top: 14px; padding-bottom: 10px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 0.4rem 0.45rem; font-size: 0.94rem; }
  .site-nav a.nav-cta { padding: 0.4rem 0.8rem; margin-left: 2px; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 44px; }
  .page-hero { padding: 40px 0 36px; }
  .cta-band { padding: 32px 22px 32px 28px; }
  .work-item { padding: 22px 18px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  dl.facts dd { padding-top: 4px; }
  .actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header::before, .skip-link, .site-nav, .cta-band .actions { display: none; }
  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, a { color: #000; }
}
