/* ==========================================================================
   CloakShield Pro — design system
   Neutral slate surfaces, a corporate blue for interface signal, and green
   reserved for "this passed". Colour carries meaning here, not decoration.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Surfaces (dark is the default theme) */
  --bg: #0b0f16;
  --bg-2: #0e131b;
  --surface: #121822;
  --surface-2: #171f2b;
  --raised: #1c2532;
  --line: #232d3c;
  --line-soft: #1a222e;

  /* Type */
  --text: #e7ebf1;
  --text-2: #b4bdca;
  --muted: #8b95a4;
  --faint: #67717f;

  /* Signal — blue is the interface colour: links, focus, selected state.
     --accent stays light enough to read as text on --bg; --accent-solid is
     the filled-button blue that carries white text. */
  --accent: #5c93ef;
  --accent-hi: #7fadf7;
  --accent-dim: #2b5aa8;
  --accent-wash: rgba(92, 147, 239, 0.1);
  --accent-line: rgba(92, 147, 239, 0.26);
  --accent-solid: #2f6bd4;
  --accent-solid-hi: #3b78e0;
  --on-solid: #ffffff;

  /* Status. Green means passed, red means stopped, amber means look at it. */
  --green: #46a879;
  --green-wash: rgba(70, 168, 121, 0.12);
  --green-line: rgba(70, 168, 121, 0.28);
  --amber: #cf9445;
  --amber-wash: rgba(207, 148, 69, 0.12);
  --red: #d9635c;
  --red-wash: rgba(217, 99, 92, 0.12);

  /* Secondary data colours, used only where a chart or a table needs a
     category that is neither "passed" nor "stopped". */
  --violet: #8b83e0;
  --violet-wash: rgba(139, 131, 224, 0.12);
  --violet-line: rgba(139, 131, 224, 0.28);
  --azure: #4aa3b8;
  --azure-wash: rgba(74, 163, 184, 0.12);
  --azure-line: rgba(74, 163, 184, 0.28);

  /* Platform marks. One per connector so a row is identifiable at a glance
     without reading the name — the same job a favicon does in a browser tab.
     They sit outside the signal palette on purpose: none of them means
     "passed" or "stopped". */
  --brand-ch: #4f7fd6;
  --brand-kt: #d1743a;
  --brand-vl: #7b6ee0;
  --brand-bn: #4a9d8f;
  --brand-rt: #cf5b57;

  --on-accent: #071426;

  /* Glass — a tinted, saturated blur that keeps its contrast in both themes
     rather than washing to grey over a light background. */
  --glass: rgba(17, 23, 32, 0.72);
  --glass-line: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(16px) saturate(1.25);

  /* Shape */
  --r-sm: 5px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Depth */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 26px -14px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 26px 56px -30px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px var(--accent-line), 0 14px 36px -24px rgba(0, 0, 0, 0.8);

  /* Type families */
  --f-display: "Chivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.6rem);
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 0.72, 0.26, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --raised: #ffffff;
  --line: #dbe1ea;
  --line-soft: #e8ecf2;

  --text: #0f1723;
  --text-2: #35404f;
  --muted: #5b6675;
  --faint: #79838f;

  --accent: #1f5fc4;
  --accent-hi: #174da6;
  --accent-dim: #1f5fc4;
  --accent-wash: rgba(31, 95, 196, 0.07);
  --accent-line: rgba(31, 95, 196, 0.22);
  --accent-solid: #1f5fc4;
  --accent-solid-hi: #17509f;
  --on-solid: #ffffff;

  --green: #1c7a4f;
  --green-wash: rgba(28, 122, 79, 0.08);
  --green-line: rgba(28, 122, 79, 0.22);
  --amber: #96631a;
  --amber-wash: rgba(150, 99, 26, 0.09);
  --red: #b23a33;
  --red-wash: rgba(178, 58, 51, 0.08);

  --violet: #55499f;
  --violet-wash: rgba(85, 73, 159, 0.08);
  --violet-line: rgba(85, 73, 159, 0.22);
  --azure: #1c6f80;
  --azure-wash: rgba(28, 111, 128, 0.08);
  --azure-line: rgba(28, 111, 128, 0.22);

  /* Darkened so a mark still carries against a white card. */
  --brand-ch: #2f5fb5;
  --brand-kt: #a8521f;
  --brand-vl: #574ab8;
  --brand-bn: #24756a;
  --brand-rt: #a83c38;

  --on-accent: #ffffff;

  --glass: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(15, 23, 35, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.6);

  --shadow-1: 0 1px 2px rgba(15, 23, 35, 0.07);
  --shadow-2: 0 10px 26px -16px rgba(15, 23, 35, 0.25);
  --shadow-3: 0 24px 50px -32px rgba(15, 23, 35, 0.3);
  --glow: 0 0 0 1px var(--accent-line), 0 14px 34px -26px rgba(15, 23, 35, 0.4);

  color-scheme: light;
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent-solid); color: var(--on-solid); }

/* --- Ambient background --------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient::before {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 5%, transparent 70%);
  opacity: 0.4;
}

.ambient::after {
  /* a very slight lift behind the fold, not a glow */
  content: "";
  position: absolute;
  top: -26vh;
  left: 50%;
  width: min(1200px, 130vw);
  height: 62vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-wash), transparent 66%);
  filter: blur(30px);
  opacity: 0.7;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { position: relative; z-index: 1; }

section { position: relative; }

.section {
  padding-block: clamp(3.5rem, 6.5vw, 5.75rem);
}

.section--tight { padding-block: clamp(2.6rem, 4.6vw, 3.9rem); }

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.05rem, 4vw, 3.05rem); }
.h-lg { font-size: clamp(1.62rem, 2.8vw, 2.25rem); }
.h-md { font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -0.018em; }
.h-sm { font-size: 1.02rem; letter-spacing: -0.012em; line-height: 1.35; }

.lede {
  font-size: clamp(0.99rem, 1.2vw, 1.075rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 62ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.6; }
.mono { font-family: var(--f-mono); font-variant-ligatures: none; }

code {
  font-family: var(--f-mono);
  font-variant-ligatures: none;
  font-size: 0.86em;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.34em;
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
  flex: none;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 64ch;
  margin-bottom: clamp(1.9rem, 3.4vw, 2.75rem);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn svg { flex: none; }

.btn--primary {
  --btn-bg: var(--accent-solid);
  --btn-fg: var(--on-solid);
  --btn-line: var(--accent-solid);
  box-shadow: var(--shadow-1);
}

.btn--primary:hover {
  --btn-bg: var(--accent-solid-hi);
  --btn-line: var(--accent-solid-hi);
}

.btn--ghost { --btn-bg: var(--surface); }
.btn--ghost:hover { --btn-line: var(--accent-line); --btn-bg: var(--surface-2); }

.btn--quiet { --btn-line: transparent; color: var(--text-2); padding-inline: 0.6rem; }
.btn--quiet:hover { color: var(--text); }

.btn--lg { padding: 0.78rem 1.45rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* --- Badges & pills ------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.72rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  white-space: nowrap;
}

.badge--accent {
  border-color: var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent);
}

.badge--ok {
  border-color: var(--green-line);
  background: var(--green-wash);
  color: var(--green);
  gap: 0.45rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 0 3px var(--green-wash);
}

.dot--live { animation: pulse-dot 2.4s var(--ease) infinite; }

/* Work in progress — an import running, a payment not yet reconciled. */
.dot--work { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }

/* Nothing wrong, nothing running — a connector that exists but is unused. */
.dot--off { background: var(--faint); box-shadow: none; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-wash); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* --- Navigation ----------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: auto;
}

.nav__link {
  padding: 0.45rem 0.78rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text-2);
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.24rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.036em;
  font-size: 1.115rem;
  color: var(--text);
  flex: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
  transition: transform 0.5s var(--ease-out);
}

.logo:hover .logo__mark { transform: rotate(-7deg) scale(1.06); }

.logo__pro {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  border-radius: 4px;
  padding: 0.1rem 0.32rem;
  align-self: center;
  transform: translateY(1px);
}

.logo--lg { font-size: 1.5rem; }
.logo--lg .logo__mark { width: 38px; height: 38px; }

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 17px; height: 17px; transition: transform 0.5s var(--ease-out), opacity 0.25s; }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }

/* Mobile nav */
.nav__burger { display: none; width: 38px; height: 38px; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger span + span { margin-top: 4px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Seven links plus the CTA get tight before the burger takes over at 940px. */
@media (min-width: 941px) and (max-width: 1099px) {
  .nav__links { gap: 0.1rem; }
  .nav__link { padding-inline: 0.5rem; font-size: 0.86rem; }
  .nav__inner { gap: 1rem; }
}

@media (max-width: 940px) {
  .nav__burger { display: grid; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta { display: none; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.2rem, 5vw, 4.2rem);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 1.45rem; align-items: flex-start; }

.hero h1 .accent {
  color: var(--accent);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.hero__proof span { display: inline-flex; align-items: center; gap: 0.45rem; }

/* Console visual */
.console {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 62%);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  position: relative;
}

.console::after {
  /* sweep */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, var(--accent-wash) 62%, transparent);
  animation: sweep 6.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% { transform: translateY(-100px); opacity: 0; }
  16% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(440px); opacity: 0; }
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.console__title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.console__body { padding: 0.55rem 0.4rem 0.75rem; }

.crow {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  padding: 0.62rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.855rem;
  transition: background-color 0.3s var(--ease);
}

.crow:hover { background: var(--accent-wash); }
.crow + .crow { border-top: 1px solid var(--line-soft); }
.crow__name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow__val { font-family: var(--f-mono); font-size: 0.76rem; color: var(--text-2); letter-spacing: 0.02em; }
.crow__val--ok { color: var(--green); }
.crow__val--warn { color: var(--amber); }
.crow__val--stop { color: var(--red); }
.crow__ico { color: var(--muted); opacity: 0.9; }
.crow__ico svg { width: 15px; height: 15px; }

.console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.meter { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; flex: 1; max-width: 130px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 2px; animation: meter 3.4s var(--ease) infinite; transform-origin: left; }

@keyframes meter {
  0% { transform: scaleX(0.06); }
  60% { transform: scaleX(0.97); }
  100% { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { gap: 1.2rem; }
}

/* --- Trust strip ---------------------------------------------------------- */

.strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
  padding-block: 1.15rem;
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.strip__item svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* --- Feature grids -------------------------------------------------------- */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 920px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.2rem, 2vw, 1.55rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover { border-color: var(--line); box-shadow: var(--shadow-2); }
.card:hover::before { opacity: 1; }

.card__ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 1.05rem;
}

.card__ico svg { width: 19px; height: 19px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.925rem; }

.bento__a { grid-column: span 3; }
.bento__b { grid-column: span 3; }
.bento__c,
.bento__d,
.bento__e { grid-column: span 2; }
.bento__f { grid-column: span 6; }

/* Wide feature card with stat rail */
.bento__f {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.statrail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 1.05rem 0.9rem; text-align: center; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -0.03em; color: var(--text); }
.stat span { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__a, .bento__b, .bento__c, .bento__d, .bento__e { grid-column: span 2; }
  .bento__f { grid-column: span 2; grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__a, .bento__b, .bento__c, .bento__d, .bento__e, .bento__f { grid-column: span 1; }
  .statrail { grid-template-columns: 1fr; }
}

/* --- How it works --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 15px);
}

.step { position: relative; padding-top: 4.1rem; }

.step__num {
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg);
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: var(--accent);
}

.step__num::after { content: "0" counter(step); }
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* Staggered offsets so it doesn't read as four identical boxes */


@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem; }
  .steps::before { display: none; }
  .step:nth-child(even) { transform: none; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* --- Compatible platforms ------------------------------------------------- */

.compat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.compat__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.05rem;
}

.compat__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.compat__card h3 { margin-bottom: 0.1rem; }

.compat__mode {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.compat__facts {
  list-style: none;
  padding: 0.95rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compat__facts li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.85rem;
  color: var(--text-2);
}

.compat__facts svg { width: 15px; height: 15px; color: var(--accent); margin-top: 4px; }

.compat__more { margin-top: 1.6rem; }

.compat__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 1.6rem;
}

.split__col {
  background: var(--surface);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.compat__note {
  margin-top: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 72ch;
}

@media (max-width: 900px) {
  .compat { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* --- Platforms ------------------------------------------------------------ */

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.plat {
  background: var(--surface);
  padding: 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  transition: background-color 0.3s var(--ease);
}

.plat:hover { background: var(--surface-2); }
.plat b { font-family: var(--f-display); font-size: 0.96rem; letter-spacing: -0.018em; }
.plat span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.07em; color: var(--faint); text-transform: uppercase; }

/* --- Pricing -------------------------------------------------------------- */

.billing {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
}

.billing button {
  padding: 0.48rem 1.05rem;
  border-radius: 100px;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}

.billing button[aria-pressed="true"] { background: var(--accent-solid); color: var(--on-solid); }

.billing__save {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.34rem;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-left: 0.35rem;
}

.billing button[aria-pressed="true"] .billing__save { background: rgba(0, 0, 0, 0.18); color: inherit; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tier:hover { box-shadow: var(--shadow-2); }

.tier--featured {
  border-color: var(--accent-line);
  background: linear-gradient(175deg, var(--surface-2), var(--surface) 55%);
  box-shadow: var(--glow);
  position: relative;
}

@media (min-width: 921px) {
  .tier--featured { transform: translateY(-16px); }
  .tier--featured:hover { transform: translateY(-21px); }
}

.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.tier__name { font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.024em; }

.tier__price { display: flex; align-items: baseline; gap: 0.42rem; flex-wrap: wrap; }
.tier__amt { font-family: var(--f-display); font-size: clamp(2.15rem, 4.4vw, 2.85rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tier__per { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.tier__sub { font-size: 0.815rem; color: var(--faint); min-height: 1.35rem; }
.tier__sub b { color: var(--accent); font-weight: 600; }

.tier__desc { font-size: 0.9rem; color: var(--muted); }

.feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.62rem; font-size: 0.885rem; }
.feats li { display: grid; grid-template-columns: 16px 1fr; gap: 0.62rem; align-items: start; color: var(--text-2); }
.feats svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }

@media (max-width: 920px) {
  .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Multi-month calculator */
.calc {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.calc__controls { display: flex; flex-direction: column; gap: 1.15rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label,
.field__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Signed-in / signed-out swaps. The blocking script in each <head> stamps
   data-auth on <html> before first paint, so the nav never shows "Create
   account" to someone who is already registered and then corrects itself.
   js/account.js repeats the decision with the hidden attribute once the DOM
   is up; these rules only cover the gap before that. */
[data-auth="in"] [data-account-hide] { display: none !important; }
[data-auth="out"] [data-account-show] { display: none !important; }

/* Progress rail — the four steps between the pricing table and a paid plan.
   Shared by the register, verify and checkout pages so the visitor can see
   where they are in the flow from any of them. */
.flowsteps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
  list-style: none;
  padding: 0 0 1.15rem;
  margin: 0 0 1.35rem;
  border-bottom: 1px solid var(--line-soft);
}

.flowsteps--center { justify-content: center; }

.flowsteps__i {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.79rem;
  color: var(--faint);
}

.flowsteps__i span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.flowsteps__i.is-done { color: var(--text-2); }
.flowsteps__i.is-done span { border-color: var(--green-line); background: var(--green-wash); color: var(--green); }
.flowsteps__i.is-now { color: var(--text); font-weight: 500; }
.flowsteps__i.is-now span { border-color: var(--accent-solid); background: var(--accent-solid); color: var(--on-solid); }

/* Signed-in chip in the nav */
.acct { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.acct__who {
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.83rem;
  color: var(--text-2);
}
.acct__out {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.acct__out:hover { color: var(--text); border-color: var(--accent-line); }

@media (max-width: 720px) {
  .acct__who { display: none; }
}

.seg { display: flex; gap: 0.4rem; flex-wrap: wrap; }.seg button {
  flex: 1 1 auto;
  min-width: 58px;
  padding: 0.52rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: all 0.22s var(--ease);
}

.seg button:hover { border-color: var(--accent-line); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }

.calc__out {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.calc__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--muted); }
.calc__line b { font-family: var(--f-mono); color: var(--text-2); font-weight: 500; }
.calc__line--save b { color: var(--accent); }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.72rem; border-top: 1px solid var(--line); }
.calc__total span { font-size: 0.8rem; color: var(--faint); font-family: var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.calc__total b { font-family: var(--f-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.035em; }

@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* --- FAQ ------------------------------------------------------------------ */

.faq { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }

details.qa { border-bottom: 1px solid var(--line); }

details.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.015rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  transition: color 0.22s var(--ease);
}

details.qa summary::-webkit-details-marker { display: none; }
details.qa summary:hover { color: var(--accent); }

.qa__sign { position: relative; width: 15px; height: 15px; flex: none; color: var(--accent); }
.qa__sign::before,
.qa__sign::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; transition: transform 0.32s var(--ease-out); }
.qa__sign::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.qa__sign::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
details.qa[open] .qa__sign::after { transform: rotate(90deg); }

.qa__body { padding-bottom: 1.2rem; color: var(--muted); font-size: 0.925rem; max-width: 66ch; }
details.qa[open] .qa__body { animation: qa-in 0.34s var(--ease-out); }

@keyframes qa-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* --- Tabs ------------------------------------------------------------------
   Used to keep one long section (platform compatibility) to a single panel
   at a time. Buttons are real buttons; panels are hidden with [hidden] so a
   printed page and a JS-less browser still show the first one. */

.tabs { display: flex; flex-direction: column; gap: 1.15rem; }

.tabs__nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__nav::-webkit-scrollbar { display: none; }

.tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.95rem;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

/* The platform mark keeps its own colour whether or not the tab is selected —
   it is an identifier, not a state. */
.tabs__btn svg { width: 18px; height: 18px; flex: none; color: var(--brand-ch); }
.tabs__btn[data-brand="kt"] svg { color: var(--brand-kt); }
.tabs__btn[data-brand="vl"] svg { color: var(--brand-vl); }
.tabs__btn[data-brand="bn"] svg { color: var(--brand-bn); }
.tabs__btn[data-brand="rt"] svg { color: var(--brand-rt); }

.tabs__btn:hover { color: var(--text); }

.tabs__btn[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --- Brand strip -----------------------------------------------------------
   The named integrations, above the tabs that explain each one. Read-only —
   the tab below is the interactive control, so these are not buttons. */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.016em;
  color: var(--text);
}

.brand svg { width: 20px; height: 20px; flex: none; color: var(--brand-ch); }
.brand[data-brand="kt"] svg { color: var(--brand-kt); }
.brand[data-brand="vl"] svg { color: var(--brand-vl); }
.brand[data-brand="bn"] svg { color: var(--brand-bn); }
.brand[data-brand="rt"] svg { color: var(--brand-rt); }

@media (max-width: 620px) {
  .brands { gap: 0.45rem; }
  .brand { padding: 0.5rem 0.7rem; font-size: 0.83rem; }
  .brand svg { width: 17px; height: 17px; }
}

.tabs__panel { animation: qa-in 0.24s var(--ease-out); }
.tabs__panel[hidden] { display: none; }

.tabs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

@media (max-width: 780px) { .tabs__grid { grid-template-columns: 1fr; } }

/* --- Disclosure ("show the rest") ------------------------------------------
   A plain details/summary used to keep secondary detail off the first screen
   without hiding it from search engines or from someone who wants it. */

.disclose {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.disclose > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.18s var(--ease);
}

.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover { color: var(--text); }

.disclose > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.24s var(--ease-out);
}

.disclose[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclose[open] > summary { border-bottom: 1px solid var(--line); }

.disclose__body { padding: 1.1rem; }
.disclose[open] .disclose__body { animation: qa-in 0.28s var(--ease-out); }

/* --- Testimonials --------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: start; }



.quote__mark { font-family: var(--f-display); font-size: 3rem; line-height: 0.6; color: var(--accent); opacity: 0.35; }
.quote__text { font-size: 0.95rem; color: var(--text-2); margin: 0.85rem 0 1.25rem; }

.who { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.who__av {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.who__n { font-size: 0.875rem; font-weight: 600; }
.who__r { font-size: 0.775rem; color: var(--faint); }

@media (max-width: 900px) {
  .quotes { grid-template-columns: 1fr; }
  .quotes .card:nth-child(2) { transform: none; }
}

/* --- Contact -------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.2rem); align-items: start; }

.channels { display: flex; flex-direction: column; gap: 0.8rem; }

.channel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.channel:hover { border-color: var(--accent-line); background: var(--surface-2); }
.channel__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; }
.channel__ico svg { width: 21px; height: 21px; }
.channel--mail .channel__ico { background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent); }
.channel--tg .channel__ico { background: var(--azure-wash); border: 1px solid var(--azure-line); color: var(--azure); }
.channel--doc .channel__ico { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.channel__t { font-family: var(--f-display); font-weight: 700; font-size: 0.965rem; letter-spacing: -0.018em; }
.channel__s { font-size: 0.815rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel__go { color: var(--faint); transition: transform 0.3s var(--ease-out), color 0.3s; }
.channel:hover .channel__go { transform: translateX(3px); color: var(--accent); }

.hours {
  margin-top: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.83rem; }
.hours__row span:first-child { color: var(--muted); }
.hours__row span:last-child { font-family: var(--f-mono); font-size: 0.76rem; color: var(--text-2); }

/* Form */
.form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s;
}

.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.textarea { resize: vertical; min-height: 128px; font-family: inherit; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238b95a4' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2rem;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

.form__note { font-size: 0.79rem; color: var(--faint); }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form__status {
  display: none;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  font-size: 0.865rem;
  border: 1px solid transparent;
}

.form__status.is-on { display: flex; animation: qa-in 0.3s var(--ease-out); }
.form__status svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.form__status--ok { background: var(--green-wash); border-color: var(--green-line); color: var(--green); }
.form__status--err { background: var(--red-wash); border-color: rgba(217, 99, 92, 0.35); color: var(--red); }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* --- CTA band ------------------------------------------------------------- */

.band {
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px circle at 18% 0%, var(--accent-wash), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: clamp(2.1rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-2);
}

/* --- Footer --------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; margin-top: clamp(3rem, 7vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); padding-block: clamp(2.6rem, 6vw, 4rem); }
.footer__about { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; max-width: 38ch; }
.footer h4 { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { font-size: 0.885rem; color: var(--muted); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--accent); }

.socials { display: flex; gap: 0.5rem; }
.social { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); transition: all 0.25s var(--ease); }
.social:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
.social svg { width: 15px; height: 15px; }

.footer__bar { border-top: 1px solid var(--line); padding-block: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--faint); }
.footer__bar nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.newsletter { display: flex; gap: 0.5rem; width: 100%; }
.newsletter .input { flex: 1; min-width: 0; }

@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: span 2; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__about { grid-column: span 1; } }

/* --- Scroll reveal -------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal:nth-child(6) { transition-delay: 0.35s; }

/* Hero entrance */
.rise { animation: rise 0.85s var(--ease-out) both; }
.rise:nth-child(1) { animation-delay: 0.04s; }
.rise:nth-child(2) { animation-delay: 0.12s; }
.rise:nth-child(3) { animation-delay: 0.2s; }
.rise:nth-child(4) { animation-delay: 0.28s; }
.rise:nth-child(5) { animation-delay: 0.36s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.skip {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background: var(--accent-solid);
  color: var(--on-solid);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Long-form / legal pages ---------------------------------------------- */

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 {
  font-size: 1.32rem;
  letter-spacing: -0.024em;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: 1.02rem; margin-top: 1.7rem; }
.prose p, .prose li { color: var(--text-2); font-size: 0.95rem; }
.prose ul { padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose__meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Visually hidden but announced by screen readers (unlike .hp, which is a
   honeypot and should be hidden from everyone). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Glass surfaces ------------------------------------------------------- */

/* Layered rather than flat: a tinted blur, a hairline, and a top highlight so
   the edge reads as a lit surface instead of a plain translucent rectangle. */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-hi);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--glass-hi), transparent 42%, transparent 62%, var(--glass-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Backdrop blur on a large element is expensive on low-power GPUs, and the
   fallback (a solid surface) is perfectly legible. */
@supports not (backdrop-filter: blur(4px)) {
  .glass { background: var(--surface); }
}

/* --- Client logo row ------------------------------------------------------ */

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4.5vw, 3.4rem);
}

.logos__label {
  width: 100%;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}

/* Wordmarks are set in the site's own type rather than dropped in as images —
   one less request, and they inherit the theme instead of fighting it. */
.logos__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--muted);
  opacity: 0.78;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.logos__mark:hover { opacity: 1; color: var(--text); }
.logos__mark svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.logos__mark i { font-style: normal; font-weight: 400; opacity: 0.62; }

/* --- Journey strip -------------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  counter-reset: flowstep;
}

.flow__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.flow__item:hover { border-color: var(--accent-line); }

.flow__item[aria-current="step"] {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-wash), transparent 70%), var(--surface);
}

.flow__n {
  counter-increment: flowstep;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.flow__n::before { content: "0" counter(flowstep) " · "; }
.flow__t { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.018em; }
.flow__d { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

@media (max-width: 820px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .flow { grid-template-columns: 1fr; } }

/* --- Product console (dashboard preview + dashboard page) ----------------- */

.appshot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface);
  border: 1px solid var(--line);
}

.appshot__chrome {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.appshot__dots { display: flex; gap: 0.36rem; flex: none; }
.appshot__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.appshot__dots i:first-child { background: var(--red); opacity: 0.55; }
.appshot__dots i:nth-child(2) { background: var(--amber); opacity: 0.55; }
.appshot__dots i:last-child { background: var(--green); opacity: 0.55; }

.appshot__url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.22rem 0.8rem;
  background: var(--surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appshot__who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--muted);
  flex: none;
}

.appshot__av {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--violet-wash);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  font-size: 0.6rem;
}

.appshot__body { display: grid; grid-template-columns: 186px minmax(0, 1fr); }

.appshot__side {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.appshot__grp {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.75rem 0.6rem 0.35rem;
}

.appshot__navi {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.46rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.845rem;
  color: var(--text-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.appshot__navi svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
/* Hover belongs to the items that actually go somewhere. The rest are labels
   rendered in the same list, and a hover state on them promises a click that
   does nothing. */
a.appshot__navi:hover { background: var(--surface-2); color: var(--text); }
span.appshot__navi { cursor: default; }
.appshot__navi.is-on { background: var(--accent-wash); color: var(--accent); }
.appshot__navi.is-on svg { color: var(--accent); }
.appshot__navi b { margin-left: auto; font-family: var(--f-mono); font-size: 0.64rem; color: var(--amber); font-weight: 500; }

.appshot__main { padding: clamp(0.95rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.appshot__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.appshot__h { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.024em; }
.appshot__sub { font-size: 0.79rem; color: var(--muted); }

.ranges { display: flex; gap: 0.3rem; }
.ranges span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.24rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--muted);
}
.ranges span.is-on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }

.kpi {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.kpi__k { font-family: var(--f-mono); font-size: 0.63rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); }
.kpi__v { font-family: var(--f-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: -0.032em; line-height: 1.1; }
.kpi__d { font-family: var(--f-mono); font-size: 0.68rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.kpi__d--up { color: var(--green); }
.kpi__d--down { color: var(--red); }
.kpi__d--flat { color: var(--faint); }

@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* Chart */
.chartcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chartcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chartcard__t { font-family: var(--f-display); font-size: 0.93rem; font-weight: 700; letter-spacing: -0.018em; }

.legend { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 0.36rem; font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: block; flex: none; }
.legend .k-pass { background: var(--green); }
.legend .k-bot { background: var(--red); }
.legend .k-proxy { background: var(--amber); }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis { font-family: var(--f-mono); font-size: 7px; fill: var(--faint); }
.chart .bar { transition: opacity 0.2s var(--ease); }
.chart .bar:hover { opacity: 0.72; }
.chart .b-pass { fill: var(--green); }
.chart .b-bot { fill: var(--red); }
.chart .b-proxy { fill: var(--amber); }

/* Verdict table */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.tblwrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow-x: auto; }
.tbl th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 0.62rem 0.85rem; border-bottom: 1px solid var(--line-soft); color: var(--text-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color 0.2s var(--ease); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .mono { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.5rem;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--pass { color: var(--green); background: var(--green-wash); }
.pill--bot { color: var(--red); background: var(--red-wash); }
.pill--proxy { color: var(--amber); background: var(--amber-wash); }
.pill--flag { color: var(--violet); background: var(--violet-wash); }

/* --- Connector row (inside .appshot) ---------------------------------------
   The platforms the workspace is handing traffic on to. The mark keeps its own
   colour and the dot carries the state, so the two never compete: green live,
   amber importing, faint offered-but-not-wired-up. */

.conns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.conns__k {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.2rem;
}

.conn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.conn svg { width: 15px; height: 15px; flex: none; color: var(--brand-ch); }
.conn[data-brand="kt"] svg { color: var(--brand-kt); }
.conn[data-brand="vl"] svg { color: var(--brand-vl); }
.conn[data-brand="bn"] svg { color: var(--brand-bn); }
.conn[data-brand="rt"] svg { color: var(--brand-rt); }

.conn i { flex: none; margin-left: 0.1rem; }
.conn--off { color: var(--muted); }
.conn--off svg { opacity: 0.55; }

@media (max-width: 620px) {
  .conns__k { width: 100%; margin-right: 0; }
  .conn { padding: 0.3rem 0.5rem; font-size: 0.74rem; }
}

@media (max-width: 780px) {
  .appshot__body { grid-template-columns: 1fr; }
  .appshot__side {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 0.3rem;
    padding: 0.6rem;
  }
  .appshot__grp { display: none; }
  .appshot__navi { white-space: nowrap; }
  .appshot__navi b { display: none; }
}

/* The preview on the landing page is a display object, not a control surface:
   it is inert to pointers so a tap scrolls the page instead of chasing a link
   that goes nowhere. The dashboard page itself is not wrapped in this. */
.appshot--preview { pointer-events: none; user-select: none; }

/* ==========================================================================
   PEOPLE — about page
   ========================================================================== */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 0.9rem;
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 1.15rem 1.2rem 1.25rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}

.person:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }

.person__av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
}

.person--v .person__av { color: var(--violet); background: var(--violet-wash); border-color: var(--violet-line); }
.person--a .person__av { color: var(--azure); background: var(--azure-wash); border-color: var(--azure-line); }

.person__n { font-family: var(--f-display); font-weight: 700; font-size: 1.005rem; letter-spacing: -0.02em; }

.person__r {
  font-family: var(--f-mono);
  font-size: 0.715rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0.15rem 0 0.55rem;
}

.person__b { font-size: 0.865rem; color: var(--muted); line-height: 1.55; }

/* Company facts — a two-column list that stacks rather than a table, because
   there are only ever two cells and a table would collapse worse. */
.facts {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.05rem 1.4rem;
  border-top: 1px solid var(--line);
}

.facts > * {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.895rem;
}

.facts dt {
  font-family: var(--f-mono);
  font-size: 0.735rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.facts dd { color: var(--text); }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 0.2rem; }
}
