/* Comsim website: comsim.co.za
   Design tokens follow the portal design system (docs/architecture.md section 7). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
  --ink: #0b1f2a;
  --ink-2: #12303f;
  --ink-3: #1b4152;
  --teal: #0f7c8c;
  --teal-deep: #0b5f6b;
  --teal-text: #0b6b79;
  --mint: #2bb3a3;
  --amber: #f2a541;
  --amber-deep: #d9861a;
  --coral: #e5604d;
  --green: #16a06a;
  --slate-50: #f4f7f8;
  --slate-100: #e9eef0;
  --slate-200: #d6dfe3;
  --slate-400: #8a9aa3;
  --slate-500: #5d6f79;
  --slate-600: #46575f;
  /* Logo hues (magenta #CC00CC, yellow #FFCC00, red #FF0000, green #00FF33, blue #0000FF), tuned
     for 3:1 contrast: segment colours on light surfaces; dark sections override them below. */
  --logo-blue: #0000ff;
  --logo-magenta: #cc00cc;
  --logo-yellow: #ffcc00;
  --logo-red: #ff0000;
  --logo-green: #00ff33;
  --seg-corp: #2b40e6;
  --seg-smme: #0d8f2f;
  --seg-upper: #c21cc2;
  --seg-middle: #9a7a00;
  --seg-mass: #e0262b;
  /* Team colours on dark surfaces (the portal's dark theme): led by the five logo hues. */
  --t1: #6d7cff;
  --t2: #ff5a5a;
  --t3: #2ed46a;
  --t4: #e45ce4;
  --t5: #ffcc1a;
  /* The five arrows as a hairline, in the logo's clockwise order. */
  --five: linear-gradient(90deg, #6d7cff 0 20%, #e45ce4 20% 40%, #ffcc1a 40% 60%, #ff5a5a 60% 80%, #2ed46a 80% 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 42, .06), 0 8px 24px -8px rgba(11, 31, 42, .12);
  --shadow-lg: 0 2px 6px rgba(11, 31, 42, .08), 0 24px 60px -20px rgba(11, 31, 42, .35);
  --header-h: 72px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .18s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 124, 140, .6); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f6b65f; color: var(--ink); box-shadow: 0 8px 22px -8px rgba(242, 165, 65, .7); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 31, 42, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-scrolled { background: rgba(11, 31, 42, .94); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header.is-scrolled .header-inner { height: 58px; }

/* The official logo (assets/logo*.svg). White wordmark on the dark header and footer, black on
   light pages. The arrows are never recoloured; the link padding keeps clear space around them. */
.brand { display: inline-flex; align-items: center; padding: 4px 0; text-decoration: none; color: #fff; border-radius: 8px; }
.brand:hover { color: #fff; }
.brand-logo { display: block; width: auto; height: 52px; transition: height .25s var(--ease); }
.is-scrolled .brand-logo { height: 44px; }
@media (max-width: 420px) { .brand-logo { height: 46px; } }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--five); opacity: .55; }

.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .82);
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .15s, background-color .15s;
}
.nav ul a:hover, .nav ul a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn .ic { width: 22px; height: 22px; }

@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 20px; }
}
@media (max-width: 999.98px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 20px 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .is-scrolled .nav { top: 58px; }
  .nav.is-open { display: block; animation: drop .22s var(--ease); }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: 14px 12px; font-size: 1.0625rem; }
  .nav-cta { margin-top: 14px; flex-direction: column; }
  .nav-cta .btn { min-height: 48px; }
  .no-js .site-header { position: relative; }
  .no-js .hero { padding-top: 48px; }
  .no-js .menu-btn { display: none; }
  .no-js .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .no-js .site-header { background: var(--ink); }
  .no-js .nav { position: static; display: block; box-shadow: none; padding: 0 0 12px; width: 100%; max-height: none; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .nav ul a { padding: 8px 10px; font-size: .9375rem; }
  .no-js .nav-cta { flex-direction: row; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Common ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 14px; font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text);
}
.eyebrow-light { color: var(--mint); }
.eyebrow-name { text-transform: none; letter-spacing: .03em; font-size: .9375rem; } /* the brand is never written in capitals */
.section { padding: 88px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-tint { background: var(--slate-50); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2, .why-copy h2, .online-copy h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -0.03em; }
.section-lead { margin-top: 18px; font-size: 1.1875rem; color: var(--slate-600); }
.sub-title { font-size: 1.5rem; margin: 64px 0 22px; }
.card {
  background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.muted { color: var(--slate-400); }
.muted-dark { color: var(--slate-500); margin: 2px 0 0; font-size: .9375rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.pill-live { background: rgba(43, 179, 163, .14); color: #7fe0d3; }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(43, 179, 163, .6); animation: pulse 2s infinite; }
.pill-amber { background: rgba(242, 165, 65, .16); color: #ffd394; }
.pill-outline { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 179, 163, .6); } 70% { box-shadow: 0 0 0 8px rgba(43, 179, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 179, 163, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 80px; }
@media (min-width: 1000px) { .hero { padding: calc(var(--header-h) + 80px) 0 110px; } }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(15, 124, 140, .45), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, rgba(0, 0, 255, .16), transparent 70%),
    radial-gradient(30% 35% at 60% 100%, rgba(255, 204, 0, .09), transparent 70%),
    radial-gradient(28% 30% at 40% 0%, rgba(204, 0, 204, .08), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 3.9vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.06; font-weight: 750; }
.hero h1 .hl { background: linear-gradient(92deg, var(--mint), #8fe6da 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 24px 0 0; font-size: 1.1875rem; color: rgba(255, 255, 255, .8); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 600px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; font-size: .875rem; color: rgba(255, 255, 255, .62); line-height: 1.35; }
.hero-facts strong { color: #fff; font-size: .9375rem; font-weight: 600; }
@media (max-width: 520px) { .hero-facts { grid-template-columns: 1fr; gap: 12px; } }

/* Dashboard mock */
.dash {
  margin: 0; position: relative; padding: 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(27, 65, 82, .72), rgba(18, 48, 63, .78));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (min-width: 1000px) { .dash { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); } .dash:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); } }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dash-kicker { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); font-weight: 700; }
.dash-title { display: block; font-size: 1.125rem; font-weight: 650; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: rgba(11, 31, 42, .55); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; min-width: 0; }
.kpi-label { display: block; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.kpi-val { display: block; font-size: clamp(.9rem, .7rem + .9vw, 1.1875rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-delta { font-size: .75rem; font-weight: 600; }
.kpi-delta.up { color: #4fd59a; }
.kpi-delta.down { color: #ff8b78; }
.dash-panel { background: rgba(11, 31, 42, .55); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 14px; }
.dash-panel + .dash-panel { margin-top: 10px; }
.panel-head { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 600; margin-bottom: 10px; }
.panel-head .muted { font-weight: 500; color: rgba(255, 255, 255, .5); }
.line-chart { width: 100%; height: auto; overflow: visible; }
.line-chart .grid path { stroke: rgba(255, 255, 255, .08); stroke-width: 1; fill: none; }
.ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) forwards; }
.ln-1 { stroke: var(--t1); stroke-width: 3; animation-delay: .2s; }
.ln-2 { stroke: var(--t2); animation-delay: .35s; }
.ln-3 { stroke: var(--t3); animation-delay: .5s; }
.ln-4 { stroke: var(--t4); animation-delay: .65s; }
.ln-5 { stroke: var(--t5); animation-delay: .8s; }
.end-1 { fill: var(--t1); opacity: 0; animation: fadein .3s 1.9s forwards, glow 2.4s 2.2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes glow { 0%, 100% { r: 3.5; } 50% { r: 5.5; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .75rem; color: rgba(255, 255, 255, .72); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.t1 { background: var(--t1); } .sw.t2 { background: var(--t2); } .sw.t3 { background: var(--t3); } .sw.t4 { background: var(--t4); } .sw.t5 { background: var(--t5); }
.seg-bars { display: grid; gap: 7px; }
.seg-row { display: grid; grid-template-columns: 74px 1fr 50px; align-items: center; gap: 10px; font-size: .75rem; }
.seg-name { color: rgba(255, 255, 255, .72); }
.seg-num { text-align: right; color: rgba(255, 255, 255, .85); font-weight: 600; }
.seg-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.seg-fill { display: block; height: 100%; border-radius: 99px; transform-origin: left; transform: scaleX(0); animation: grow 1.2s var(--ease) forwards; }
.seg-corp { background: var(--seg-corp); animation-delay: .5s; }
.seg-smme { background: var(--seg-smme); animation-delay: .6s; }
.seg-upper { background: var(--seg-upper); animation-delay: .7s; }
.seg-middle { background: var(--seg-middle); animation-delay: .8s; }
.seg-mass { background: var(--seg-mass); animation-delay: .9s; }
.w-34 { width: 34%; } .w-48 { width: 48%; } .w-62 { width: 62%; } .w-78 { width: 78%; } .w-90 { width: 90%; }
@keyframes grow { to { transform: scaleX(1); } }
.dash-cap { margin-top: 12px; font-size: .75rem; color: rgba(255, 255, 255, .5); text-align: right; }
@media (max-width: 420px) {
  .dash { padding: 14px; }
  .kpis { gap: 6px; }
  .kpi { padding: 10px 8px; }
  .seg-row { grid-template-columns: 62px 1fr 44px; gap: 8px; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 20px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar { padding: 32px 28px; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar h3 { font-size: 1.3125rem; margin: 20px 0 12px; }
.pillar p { color: var(--slate-600); }
.pillar-ic, .feature-ic {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center;
  background: rgba(15, 124, 140, .1); color: var(--teal);
}
.pillar-ic .ic, .feature-ic .ic { width: 24px; height: 24px; }
.feature-ic-amber { background: rgba(242, 165, 65, .18); color: #a6600a; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .why-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } .why-copy { position: sticky; top: 110px; } }
.why-copy h2 { margin-bottom: 20px; }
.lead-dark { font-size: 1.25rem; font-weight: 600; color: var(--teal-text); }
.why-copy p:not(.lead-dark):not(.eyebrow) { color: var(--slate-600); font-size: 1.0625rem; }
.empower { padding: 32px 28px; }
@media (min-width: 600px) { .empower { padding: 40px; } }
.empower-title { font-size: 1.25rem; margin-bottom: 20px; }
.ticks { display: grid; gap: 4px; }
.ticks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); line-height: 1.5; }
.ticks li:last-child { border-bottom: 0; }
.ticks .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; margin-top: 1px; }
.ticks-light li { border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.ticks-light .ic { background: var(--mint); color: var(--ink); }

/* ---------- Quote ---------- */
.quote-band { background: linear-gradient(120deg, #094e58, var(--teal-deep) 45%, var(--teal)); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.quote-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.quote { margin: 0 auto; max-width: 900px; text-align: center; position: relative; z-index: 1; }
.quote-mark { width: 48px; height: 36px; margin: 0 auto 24px; fill: var(--amber); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.quote figcaption { margin-top: 22px; font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: rgba(255, 255, 255, .92); }

/* ---------- How it works ---------- */
.loop-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .loop-grid { grid-template-columns: 420px 1fr; gap: 64px; } }
.loop-visual { max-width: 420px; margin: 0 auto; width: 100%; }
.loop { width: 100%; height: auto; overflow: visible; }
.loop-ring { fill: none; stroke: var(--slate-100); stroke-width: 14; }
.loop-ring-dash { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 4 8; opacity: .55; }
.loop-orbit { transform-box: view-box; transform-origin: 50% 50%; animation: spin 12s linear infinite; }
.loop-dot { fill: var(--amber); stroke: #fff; stroke-width: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop-node circle { fill: #fff; stroke: var(--teal); stroke-width: 2.5; }
.loop-node text { font-size: 13px; font-weight: 700; fill: var(--ink); text-anchor: middle; font-family: inherit; }
.loop-node.n2 circle { fill: var(--teal); }
.loop-node.n2 text { fill: #fff; }
.loop-center-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; fill: var(--teal-text); text-anchor: middle; }
.loop-center { font-size: 20px; font-weight: 700; fill: var(--ink); text-anchor: middle; letter-spacing: -0.02em; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--slate-50); border: 1px solid var(--slate-100); }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step:nth-child(2) .step-n { background: var(--teal); }
.step h3 { font-size: 1.1875rem; margin: 6px 0 6px; }
.step p { color: var(--slate-600); font-size: 1rem; }

.calc-flow { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.calc-flow-title { font-weight: 700; margin-bottom: 16px; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: c; }
.chips li {
  counter-increment: c; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem; color: rgba(255, 255, 255, .9);
}
.chips li::before {
  content: counter(c); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(43, 179, 163, .2); color: #8fe6da; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chips li:last-child { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 600; }
.chips li:last-child::before { background: rgba(11, 31, 42, .15); color: var(--ink); }

.areas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.area { padding: 24px; transition: border-color .2s, transform .2s var(--ease); }
.area:hover { border-color: rgba(15, 124, 140, .4); transform: translateY(-2px); }
.area .ic { width: 28px; height: 28px; color: var(--teal); }
.area h4 { font-size: 1.0625rem; margin: 14px 0 6px; }
.area p { font-size: .9375rem; color: var(--slate-600); }

.market { margin-top: 64px; display: grid; gap: 28px; align-items: center; padding: 32px; border-radius: var(--radius); border: 1px solid var(--slate-100); background: linear-gradient(180deg, #fff, var(--slate-50)); }
@media (min-width: 900px) { .market { grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 40px; } }
.market .sub-title { margin-top: 0; margin-bottom: 12px; }
.market-copy p { color: var(--slate-600); }
.segments { display: grid; gap: 10px; }
.segment { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--slate-100); font-weight: 600; position: relative; overflow: hidden; }
.segment::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.seg-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.s-corp .seg-dot, .s-corp::after { background: var(--seg-corp); }
.s-smme .seg-dot, .s-smme::after { background: var(--seg-smme); }
.s-upper .seg-dot, .s-upper::after { background: var(--seg-upper); }
.s-middle .seg-dot, .s-middle::after { background: var(--seg-middle); }
.s-mass .seg-dot, .s-mass::after { background: var(--seg-mass); }

.two-up { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 860px) { .two-up { grid-template-columns: 1fr 1fr; gap: 24px; } }
.feature { padding: 28px; }
.feature h3 { font-size: 1.25rem; margin: 18px 0 10px; }
.feature p { color: var(--slate-600); }

.receive { margin-top: 24px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--slate-100); box-shadow: var(--shadow); }
.receive-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.receive-head h3 { font-size: 1.25rem; }
.receive-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .receive-list { grid-template-columns: repeat(2, 1fr); gap: 14px 28px; } }
@media (min-width: 1100px) { .receive-list { grid-template-columns: repeat(3, 1fr); } }
.receive-list li { padding: 14px 0 0; border-top: 2px solid var(--slate-100); color: var(--slate-600); font-size: .9375rem; }
.receive-list strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* ---------- Online ---------- */
.hero, .section-dark { --seg-corp: #6d7cff; --seg-smme: #2ed46a; --seg-upper: #e45ce4; --seg-middle: #ffcc1a; --seg-mass: #ff5a5a; }
.portal { --seg-corp: #2b40e6; --seg-smme: #0d8f2f; --seg-upper: #c21cc2; --seg-middle: #9a7a00; --seg-mass: #e0262b; }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 30%, rgba(15, 124, 140, .35), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(204, 0, 204, .12), transparent 70%); pointer-events: none; }
.online-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .online-grid { grid-template-columns: .95fr 1.05fr; gap: 64px; } }
.online-copy h2 { margin-bottom: 18px; }
.online-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .78); font-size: 1.125rem; margin-bottom: 18px; }

.portal { margin: 0; border-radius: 16px; overflow: hidden; background: #f4f7f8; color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .75); border: 1px solid rgba(255, 255, 255, .15); }
.portal-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #dfe7ea; }
.portal-chrome .dots { display: inline-flex; gap: 6px; }
.portal-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: #b9c6cc; }
.portal-chrome .url { flex: 1; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: .75rem; color: var(--slate-600); max-width: 260px; }
.portal-chrome .url .ic { width: 12px; height: 12px; color: var(--green); }
.portal-body { display: grid; grid-template-columns: 108px 1fr; min-height: 340px; }
.portal-rail { background: var(--ink); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.pr-logo { display: block; width: 28px; height: 28px; margin: 0 0 12px 6px; }
.pr-item { font-size: .75rem; color: rgba(255, 255, 255, .62); padding: 7px 10px; border-radius: 8px; }
.pr-item.on { background: rgba(43, 179, 163, .18); color: #fff; font-weight: 600; }
.portal-main { padding: 16px; min-width: 0; }
.pm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pm-k { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-text); font-weight: 700; }
.pm-t { display: block; font-size: 1rem; font-weight: 700; }
.pm-top .pill-amber { background: rgba(242, 165, 65, .2); color: #8a4f06; white-space: nowrap; }
.pm-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.pm-card { background: #fff; border-radius: 12px; border: 1px solid var(--slate-100); padding: 12px; min-width: 0; }
.pm-card-t { display: block; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.pm-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .75rem; padding: 4px 0; color: var(--slate-600); }
.pm-field > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.sd { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sd.s-corp { background: var(--seg-corp); } .sd.s-smme { background: var(--seg-smme); } .sd.s-upper { background: var(--seg-upper); } .sd.s-middle { background: var(--seg-middle); } .sd.s-mass { background: var(--seg-mass); }
.pm-input { border: 1px solid var(--slate-200); border-radius: 6px; padding: 2px 8px; color: var(--ink); font-weight: 600; background: var(--slate-50); }
.pm-check { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 600; color: #0f7a51; }
.pm-check .ic { width: 14px; height: 14px; }
.pm-board { display: grid; gap: 2px; }
.pm-board li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .75rem; padding: 5px 6px; border-radius: 6px; white-space: nowrap; }
.pm-board li > span:last-child { font-weight: 600; }
.pm-board .nm { overflow: hidden; text-overflow: ellipsis; }
.pm-board li.me { background: rgba(242, 165, 65, .16); font-weight: 600; }
.pm-board .sw { width: 8px; height: 8px; }
.pm-status { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--slate-100); font-size: .6875rem; color: var(--slate-600); }
.pm-dots { display: inline-flex; gap: 4px; }
.pm-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-200); }
.pm-dots i.on { background: var(--green); }
.portal-cap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink-2); color: rgba(255, 255, 255, .7); font-size: .75rem; }
@media (max-width: 640px) {
  .portal-body { grid-template-columns: 1fr; }
  .portal-rail { flex-direction: row; overflow: hidden; padding: 8px 10px; }
  .pr-logo { margin: 0 6px 0 0; width: 24px; height: 24px; flex: none; }
  .pm-grid { grid-template-columns: 1fr; }
  .pr-item:nth-child(n+5) { display: none; }
}

/* ---------- Industries ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries li {
  padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--slate-200);
  font-weight: 600; font-size: .9875rem; transition: border-color .2s, background-color .2s, color .2s;
}
.industries li:hover { border-color: var(--teal); background: rgba(15, 124, 140, .06); color: var(--teal-deep); }

/* ---------- Audience ---------- */
.audience { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.aud { padding: 26px; border-top: 4px solid var(--teal); }
.aud:nth-child(2) { border-top-color: var(--mint); }
.aud:nth-child(3) { border-top-color: var(--amber); }
.aud:nth-child(4) { border-top-color: var(--seg-corp); }
.aud-level { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.aud h3 { font-size: 1.1875rem; margin: 8px 0 10px; }
.aud p { color: var(--slate-600); font-size: .9375rem; }
.formats { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.formats li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.formats .ic { width: 28px; height: 28px; color: var(--mint); }
.formats strong { display: block; color: #fff; font-size: 1.0625rem; }

/* ---------- Access ---------- */
.section-access { background: linear-gradient(180deg, #fff, var(--slate-50)); }
.access-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .access-grid { grid-template-columns: .82fr 1.18fr; gap: 28px; } }
.access-card { padding: 28px 22px; scroll-margin-top: 90px; }
@media (min-width: 600px) { .access-card { padding: 36px; } }
.access-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.access-head h3 { font-size: 1.5rem; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.field label, .field legend { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small-link { font-size: .875rem; font-weight: 600; }
.req { color: #b4380f; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #75858d; }
input:hover, textarea:hover { border-color: var(--slate-400); }
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 124, 140, .18); }
[aria-invalid="true"] { border-color: #c2412b !important; }
.err { margin: 0; font-size: .875rem; color: #b3301b; font-weight: 500; }
.err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-opt { position: relative; display: block; cursor: pointer; }
.choice-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-opt span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 600; color: var(--slate-600);
  transition: border-color .15s, background-color .15s, color .15s;
}
.choice-opt:hover span { border-color: var(--slate-400); }
.choice-opt input:checked + span { border-color: var(--teal); background: rgba(15, 124, 140, .08); color: var(--teal-deep); }
.choice-opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice[aria-invalid="true"] .choice-opt span { border-color: #c2412b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--slate-600); cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: none; cursor: pointer; }
.form-note { font-size: .875rem; color: var(--slate-500); margin: 0; }
.form-status { margin: 0; font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3301b; background: #fdeeeb; border: 1px solid #f5c9c0; border-radius: var(--radius-sm); padding: 10px 14px; }
.form-status.is-busy { color: var(--slate-600); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 28px 8px 8px; }
.form-done:focus { outline: none; }
.done-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(22, 160, 106, .12); color: var(--green); margin-bottom: 16px; animation: pop .45s var(--ease); }
.done-ic .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.form-done h4 { font-size: 1.375rem; margin-bottom: 8px; }
.form-done p { color: var(--slate-600); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.sent-note { display: none; align-items: flex-start; gap: 12px; padding: 16px 20px; margin-bottom: 24px; border-radius: var(--radius); background: #e8f6ef; border: 1px solid #b6e3cc; color: #0c5e3d; }
.sent-note .ic { width: 22px; height: 22px; margin-top: 2px; stroke-width: 2.4; }
.sent-note.is-shown, html:not(.js) #access:target .sent-note { display: flex; }
.sent-note:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr .7fr 1.2fr; gap: 56px; } }
.footer-brand .brand-logo { height: 64px; }
.footer-brand p { margin: 16px 0 18px; max-width: 340px; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; text-decoration: none; }
.footer-link:hover { color: #8fe6da; }
.footer-link .ic { width: 1em; height: 1em; }
.footer-nav ul { display: grid; gap: 4px; }
.footer-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.footer-privacy { scroll-margin-top: 90px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; font-size: .875rem; position: relative; }
.footer-base::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .footer-base::before { left: 32px; right: 32px; } }
.footer-base p { margin: 0; }
.footer-base a { color: rgba(255, 255, 255, .8); }

/* ---------- 404 and helper pages ---------- */
.plain { min-height: 100dvh; display: grid; place-items: center; background: var(--ink); color: #fff; padding: 40px 20px; text-align: center; }
.plain-box { max-width: 560px; }
.plain h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 24px 0 12px; }
.plain p { color: rgba(255, 255, 255, .75); }
.plain .brand { justify-content: center; }
.plain .brand-logo, .confirm-box .brand-logo { height: 72px; }
.plain .hero-actions { justify-content: center; }
.big-num { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(92deg, var(--mint), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.confirm-page { background: var(--slate-50); min-height: 100dvh; padding: 40px 20px; }
.confirm-box { max-width: 640px; margin: 0 auto; padding: 32px; }
.confirm-box h1 { font-size: 1.75rem; margin: 20px 0 10px; }
.confirm-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 20px 0; font-size: .9375rem; }
.confirm-box dt { font-weight: 600; }
.confirm-box dd { margin: 0; color: var(--slate-600); overflow-wrap: anywhere; }
.confirm-box .brand { color: var(--ink); }
.confirm-box .errs { color: #b3301b; background: #fdeeeb; border: 1px solid #f5c9c0; border-radius: var(--radius-sm); padding: 12px 16px 12px 34px; list-style: disc; margin: 16px 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .loop-orbit { animation: none; }
  .dash, .dash:hover { transform: none; }
}

/* ---------- High contrast / forced colours ---------- */
@media (forced-colors: active) {
  .btn, .card, .chips li, .industries li, .choice-opt span { border: 1px solid CanvasText; }
  .hero h1 .hl { color: Highlight; background: none; }
}

@media print {
  .site-header, .hero-bg, .dash, .portal, .loop-visual, .access-grid { display: none !important; }
  .hero, .section-dark, .site-footer { background: #fff; color: #000; }
}
