/* Featuriz site. Colours come from the brand pack: Flame Blue #1A8CFF, Leaf Teal #0E9F8E / #14B8A6,
   Ink Navy #1E2330, Paper #F2F4F7. Blue and teal are used as text only in the variants that pass contrast. */
:root {
  color-scheme: dark;
  --bg: #1e2330;
  --bg-alt: #1a1f2b;
  --surface: #262d3d;
  --surface-hi: #2e3649;
  --border: #384157;
  --text: #f2f4f7;
  --text-muted: #b4bccb;
  --text-faint: #8d97ab;
  --blue: #1a8cff;
  --teal: #14b8a6;
  --link: #5aaeff;
  --link-hover: #8cc5ff;
  --btn-bg: #1a8cff;
  --btn-bg-hover: #4aa6ff;
  --btn-text: #1e2330;
  --header-bg: rgb(30 35 48 / 0.85);
  --shadow: 0 8px 30px rgb(0 0 0 / 0.35);
  --fz-b: #14b8a6;
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;
  --surface: #ffffff;
  --surface-hi: #f2f4f7;
  --border: #dde1e8;
  --text: #1e2330;
  --text-muted: #4a5368;
  --text-faint: #586279;
  --link: #0b6bd6;
  --link-hover: #084f9e;
  --btn-bg: #0b6bd6;
  --btn-bg-hover: #084f9e;
  --btn-text: #ffffff;
  --header-bg: rgb(255 255 255 / 0.88);
  --shadow: 0 8px 30px rgb(30 35 48 / 0.1);
  --fz-b: #0e9f8e;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #ffffff;
    --bg-alt: #f2f4f7;
    --surface: #ffffff;
    --surface-hi: #f2f4f7;
    --border: #dde1e8;
    --text: #1e2330;
    --text-muted: #4a5368;
    --text-faint: #586279;
    --link: #0b6bd6;
    --link-hover: #084f9e;
    --btn-bg: #0b6bd6;
    --btn-bg-hover: #084f9e;
    --btn-text: #ffffff;
    --header-bg: rgb(255 255 255 / 0.88);
    --shadow: 0 8px 30px rgb(30 35 48 / 0.1);
    --fz-b: #0e9f8e;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
h3, .h3 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }
.center { text-align: center; }
.center .actions { justify-content: center; }
.muted { color: var(--text-muted); }
.muted-sm { color: var(--text-faint); font-size: 0.875rem; }
.lead { color: var(--text-muted); font-size: 1.2rem; max-width: 44rem; margin-bottom: 1.75rem; }
.center .lead { margin-inline: auto; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 0.9rem;
}
.grad {
  background: linear-gradient(90deg, #1a8cff, #14b8a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem;
  background: var(--btn-bg); color: var(--btn-text); border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Logo variants follow the theme */
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 2.25rem; width: auto; }
.seal { display: flex; justify-content: center; margin-top: 2rem; }
.seal img { height: 180px; width: 180px; opacity: 0.9; }
.logo-dark { display: block; }
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-dark { display: none !important; }
  :root:not([data-theme]) .logo-light { display: block !important; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a:not(.btn) {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.8rem; border-radius: 8px;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-hi); }
.nav-cta { margin-left: 0.5rem; }
.bar-actions { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover { background: var(--surface-hi); }
.menu-btn { display: none; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: inline; }
:root[data-theme="light"] .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-sun { display: inline; }
  :root:not([data-theme]) .icon-moon { display: none; }
}
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.6rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text); border: 2px solid var(--btn-bg);
  font: inherit; font-weight: 700; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-text); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--text-faint); color: var(--text); }
.btn-sm { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: 0.9rem; }
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Sections */
section { padding: 5rem 0; }
section.alt { background: var(--bg-alt); }
.page-head { padding: 4.5rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.more { margin-top: 2rem; font-weight: 600; }
.more a, .card-links a { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Hero */
.hero { padding: 5rem 0 4.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgb(26 140 255 / 0.18), rgb(20 184 166 / 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 3rem; align-items: center; position: relative; }
.hero-note { margin-top: 1.5rem; color: var(--text-faint); font-size: 0.95rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { height: clamp(220px, 32vw, 400px); width: auto; filter: drop-shadow(0 20px 40px rgb(26 140 255 / 0.25)); }

/* Stats band */
.band { padding: 2.25rem 0; background: var(--bg-alt); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.stats span { color: var(--text-muted); font-size: 0.95rem; }

/* Grids and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--text-faint); }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card h3 { overflow-wrap: anywhere; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.card-head h3 { margin-bottom: 0.25rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-weight: 600; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem;
  border-radius: 12px; margin-bottom: 1rem; color: var(--link);
  background: linear-gradient(135deg, rgb(26 140 255 / 0.16), rgb(20 184 166 / 0.16));
}
.service-icon .icon { width: 1.5rem; height: 1.5rem; }
.service-long .h3 { font-size: 1.3rem; }
.ticks { list-style: none; margin: 0 0 1.25rem; display: grid; gap: 0.5rem; }
.ticks li { display: flex; gap: 0.6rem; color: var(--text-muted); align-items: flex-start; }
.ticks .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; color: var(--teal); }
.badge {
  font-size: 0.72rem; font-weight: 700; white-space: nowrap; padding: 0.2rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.badge-live { border-color: var(--teal); color: var(--teal); }
:root[data-theme="light"] .badge-live { color: #0b7f72; border-color: #0b7f72; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .badge-live { color: #0b7f72; border-color: #0b7f72; } }
.badge-dev { border-color: var(--blue); color: var(--link); }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tags span {
  font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 6px;
  background: var(--surface-hi); color: var(--text-muted); border: 1px solid var(--border);
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding-top: 0.25rem; }
/* Connector from the previous circle (2.7rem wide, 1.25rem column gap) to this one, with 0.5rem breathing room */
.steps li + li::before {
  content: ""; position: absolute; top: 1.55rem; height: 2px; border-radius: 2px;
  left: calc(-100% - 1.25rem + 3.2rem); width: calc(100% + 1.25rem - 3.2rem - 0.5rem);
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; border-radius: 50%;
  font-weight: 800; margin-bottom: 0.75rem; color: #1e2330; background: linear-gradient(135deg, #1a8cff, #14b8a6);
}
.steps p { color: var(--text-muted); font-size: 0.95rem; }

.prose { max-width: 44rem; }
.prose p { color: var(--text-muted); font-size: 1.075rem; margin-bottom: 1.1rem; }
.prose .h3 { margin-top: 1.75rem; }

/* CTA band */
.cta { padding: 4rem 0; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  border-radius: 20px; padding: 2.5rem; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgb(26 140 255 / 0.16), rgb(20 184 166 / 0.14)), var(--surface);
}
.cta-box h2 { margin-bottom: 0.35rem; }
.cta-box p { color: var(--text-muted); }

/* Filters */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600; min-height: 2.5rem; padding: 0.4rem 1.1rem;
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.chip:hover { color: var(--text); background: var(--surface-hi); }
.chip.is-on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.form { display: grid; gap: 1.1rem; }
.form:hover { transform: none; box-shadow: none; border-color: var(--border); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--link); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); min-height: 3rem;
  border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #e5484d; }
.err, .form-error { color: #ff6b70; font-size: 0.9rem; margin: 0; }
:root[data-theme="light"] .err, :root[data-theme="light"] .form-error { color: #c4262b; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .err, :root:not([data-theme]) .form-error { color: #c4262b; } }
.form-error { padding: 0.8rem 1rem; border: 1px solid currentColor; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); }
.contact-list .icon { color: var(--teal); margin-top: 0.2rem; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-tag { font-weight: 700; margin: 1rem 0 0.25rem; font-size: 1.1rem; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 1rem; }
.footer-list { list-style: none; display: grid; gap: 0.5rem; }
.footer-list a { color: var(--text-muted); }
.footer-list a:hover { color: var(--text); }
.social { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.95rem; }
.legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: 0.85rem;
}

/* Floating buttons */
.fabs { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; gap: 0.75rem; justify-items: end; }
.fab {
  display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; border: none; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s, opacity 0.2s;
}
.fab:hover { transform: scale(1.07); }
.fab .icon { width: 1.6rem; height: 1.6rem; }
.fab-wa { background: #25d366; color: #0b2e1a; }
.fab-wa:hover { color: #0b2e1a; }
.fab-top { background: var(--surface); color: var(--text); border: 1px solid var(--border); width: 2.9rem; height: 2.9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { height: 150px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li + li::before { display: none; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .nav {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0 0 1rem; gap: 0.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .bar-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.1rem; }
  .grid-2, .grid-3, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-box { padding: 1.75rem; }
  .actions .btn { flex: 1 1 100%; }
  .page-head { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .fabs, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* Domains-per-year chart: bar height classes (b0..b20, 5% per domain) avoid inline styles under the CSP */
.years { list-style: none; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 0.4rem; align-items: end; height: 14rem; }
.years li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 0.35rem; }
.years .bar {
  display: flex; align-items: flex-start; justify-content: center; width: 100%; min-height: 2px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #1a8cff, #14b8a6); color: #1e2330; font-size: 0.7rem; font-weight: 800; overflow: hidden;
}
.years .bar b { padding-top: 0.15rem; }
.years li { min-width: 0; }
.years .yr { font-size: 0.7rem; color: var(--text-faint); writing-mode: vertical-rl; transform: rotate(180deg); flex: none; }
.b0 { height: 0%; }
.b1 { height: 5%; }
.b2 { height: 10%; }
.b3 { height: 15%; }
.b4 { height: 20%; }
.b5 { height: 25%; }
.b6 { height: 30%; }
.b7 { height: 35%; }
.b8 { height: 40%; }
.b9 { height: 45%; }
.b10 { height: 50%; }
.b11 { height: 55%; }
.b12 { height: 60%; }
.b13 { height: 65%; }
.b14 { height: 70%; }
.b15 { height: 75%; }
.b16 { height: 80%; }
.b17 { height: 85%; }
.b18 { height: 90%; }
.b19 { height: 95%; }
.b20 { height: 100%; }
@media (max-width: 640px) { .years { gap: 0.2rem; } .years .bar b { font-size: 0.6rem; } }
.b0 b, .b1 b, .b2 b { display: none; }

/* Touch devices: text links get a 44px target (WCAG 2.5.5) */
@media (pointer: coarse) {
  .card-links a, .more a, .social a, .footer-list a, .contact-list a, .prose a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .social { gap: 0 1.25rem; }
  .footer-list { gap: 0; }
  .chip { min-height: 44px; }
}

/* Avoid double padding between adjacent plain sections */
section:not(.alt):not(.cta):not(.hero):not(.band) + section:not(.alt):not(.cta):not(.band) { padding-top: 0; }
