/* ==========================================================================
   Wingcert — Product landing page
   Design system + page styles. No external dependencies.

   Brand tokens are taken directly from the supplied logo artwork:
     Primary  #184389   Secondary #5b646f   Black/Ink #101820
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — exact values from Logo Primary / Secondary / Black */
  --brand-blue: #184389;
  --brand-slate: #5b646f;
  --brand-ink: #101820;

  /* Blue scale extended from the brand primary */
  --blue-950: #05101f;
  --blue-900: #0a1c3c;
  --blue-800: #102e60;
  --blue-700: #184389; /* brand */
  --blue-600: #1f58b4;
  --blue-500: #2a6fd9;
  --blue-400: #4e90f5;
  --blue-300: #8cbaff;
  --blue-200: #c3dbff;
  --blue-100: #e4eeff;
  --blue-50: #f2f7ff;

  /* Neutrals — warm-free, tuned to sit under the brand blue */
  --ink-950: #080c12;
  --ink-900: #101820; /* brand black */
  --ink-800: #18222d;
  --ink-700: #26323f;
  --ink-600: #3a4754;
  --slate-500: #5b646f; /* brand secondary */
  --slate-400: #7d8792;
  --slate-300: #a8b1bb;
  --slate-200: #d2d8de;
  --slate-100: #e8ecf0;
  --slate-50: #f5f7fa;
  --white: #ffffff;

  /* Semantic */
  --ok: #15926b;
  --ok-soft: #e6f6f0;
  --warn: #b7791f;
  --warn-soft: #fdf5e6;
  --crit: #c0392f;
  --crit-soft: #fdeceb;

  /* Surface roles — light context (default) */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --fg: var(--ink-900);
  --fg-muted: var(--slate-500);
  --fg-faint: var(--slate-400);
  --line: var(--slate-200);
  --line-soft: var(--slate-100);
  --accent: var(--blue-700);

  /* Typography — resolves to SF Pro on Apple hardware, Segoe UI Variable on
     Windows. Zero network requests, native rendering on every platform. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
    "Segoe UI Mono", Menlo, monospace;

  /* Spacing rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 10.5rem);
  --max: 1200px;
  --max-narrow: 820px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.05), 0 1px 3px rgba(16, 24, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 32, 0.06), 0 12px 28px rgba(16, 24, 32, 0.07);
  --shadow-lg: 0 8px 24px rgba(16, 24, 32, 0.08), 0 32px 64px rgba(16, 24, 32, 0.12);
  --shadow-xl: 0 24px 60px rgba(10, 28, 60, 0.18), 0 60px 140px rgba(10, 28, 60, 0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark context — applied per-section, not globally. A marketing page commits
   to its art direction rather than following the OS theme. */
.ctx-dark {
  --bg: var(--ink-900);
  --bg-alt: var(--ink-800);
  --fg: var(--white);
  --fg-muted: rgba(255, 255, 255, 0.66);
  --fg-faint: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: var(--blue-400);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue-700); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--max-narrow); }
.wrap-wide { max-width: 1400px; }

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.85rem, 7.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 700;
}
.h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
  font-weight: 650;
}
.h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -0.014em;
  font-weight: 620;
}

.lede {
  font-size: clamp(1.1rem, 1.65vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--fg-muted);
  font-weight: 400;
}

.body-lg { font-size: 1.0625rem; line-height: 1.62; color: var(--fg-muted); }
.body { font-size: 1rem; line-height: 1.6; color: var(--fg-muted); }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--fg-muted); }
.tiny { font-size: 0.78rem; line-height: 1.45; color: var(--fg-faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.grad-text {
  background: linear-gradient(96deg, var(--blue-300) 0%, var(--white) 42%, var(--blue-200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-blue {
  background: linear-gradient(96deg, var(--blue-700) 0%, var(--blue-500) 55%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Line breaks that only apply once there is room for them */
@media (max-width: 720px) {
  br.hide-sm { display: none; }
}

.section-head { max-width: 720px; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h1 + .lede,
.section-head .h2 + .lede { margin-top: 1.15rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.975rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s;
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.12);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24, 67, 137, 0.28); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--blue-700); }
.btn-primary:hover { --btn-bg: var(--blue-600); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  box-shadow: none;
}

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn-light:hover { --btn-bg: var(--blue-50); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.03rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 545;
  font-size: 1rem;
  transition: gap 0.24s var(--ease);
}
.link-arrow svg { transition: transform 0.24s var(--ease); }
.link-arrow:hover { gap: 0.6rem; }
.link-arrow:hover svg { transform: translateX(2px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.btn-row.center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(16, 24, 32, 0.08);
}
/* Over the dark hero, before the page scrolls */
.nav:not(.is-stuck) { color: #fff; }

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

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img, .nav-logo svg { height: 21px; width: auto; }
.nav-logo .logo-dark { display: none; }
.nav.is-stuck .logo-dark { display: block; }
.nav.is-stuck .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  opacity: 0.82;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.75rem; }
.nav-cta .btn-ghost { border-color: color-mix(in srgb, currentColor 25%, transparent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 68px 0 auto 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem var(--gutter) 1.75rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 99;
  color: var(--ink-900);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 0.85rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
}
.nav-mobile .btn { margin-top: 1rem; width: 100%; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora field — slow-drifting radial gradients in brand blue */
.aurora {
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 130%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.85;
}
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.aurora i:nth-child(1) {
  width: 52vw; height: 52vw; left: 4%; top: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(31, 88, 180, 0.75), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 44vw; height: 44vw; right: 2%; top: 0;
  background: radial-gradient(circle at 50% 50%, rgba(42, 111, 217, 0.55), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 60vw; height: 40vw; left: 22%; top: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(24, 67, 137, 0.85), transparent 68%);
  animation: drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8%, 5%, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(4%, -6%, 0) scale(1.15); } }

/* Fine grid overlay for technical texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 20%, transparent 78%);
}

.hero-inner { position: relative; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.85rem;
}
.hero-badge b {
  font-weight: 620;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  background: var(--blue-600);
  color: #fff;
}
.hero-badge span { opacity: 0.55; }

.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede {
  max-width: 58ch;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.68);
}
.hero .btn-row { margin-top: 2.4rem; }

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Hero product shot — rises and flattens as the page scrolls */
.hero-shot {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  perspective: 2200px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-shot-inner {
  /* Declared here rather than only as var() fallbacks: wingcert.js overrides
     both on scroll, and declaring them keeps the resting state defined in CSS
     for anything that reads the stylesheet without running the script. */
  --shot-rx: 16deg;
  --shot-s: 0.94;
  transform: rotateX(var(--shot-rx)) scale(var(--shot-s));
  transform-origin: 50% 0;
  transition: transform 0.1s linear;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.09);
  position: relative;
}
.hero-shot-inner::after {
  content: "";
  position: absolute;
  inset: auto 8% -14%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(42, 111, 217, 0.55), transparent 70%);
  filter: blur(28px);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   8. Framework marquee
   -------------------------------------------------------------------------- */
.frameworks {
  background: var(--white);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--slate-100);
}
.frameworks p {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 600;
  margin-bottom: 1.9rem;
}
.framework-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.75rem);
}
.framework-row li {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 680;
  letter-spacing: -0.015em;
  color: var(--slate-300);
  transition: color 0.3s var(--ease);
  cursor: default;
}
.framework-row li:hover { color: var(--brand-blue); }
.framework-row li small {
  display: block;
  font-size: 0.63rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   9. Stat band
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat dt em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-left: 0.15em;
  vertical-align: 0.35em;
}
.stat dd { margin: 0.85rem 0 0; font-size: 0.95rem; color: var(--fg-muted); max-width: 30ch; }

/* --------------------------------------------------------------------------
   10. Lifecycle thread
   -------------------------------------------------------------------------- */
.thread {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.thread::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-500), var(--blue-200));
  border-radius: 2px;
  transform: scaleX(var(--thread-p, 0));
  transform-origin: left;
  transition: transform 1.6s var(--ease-out-expo);
}
.thread.in::before { --thread-p: 1; }

.thread-step { text-align: center; padding-inline: 0.5rem; position: relative; }
.thread-step .dot {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-200);
  display: grid;
  place-items: center;
  color: var(--blue-700);
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s, background-color 0.4s, color 0.4s;
}
.thread.in .thread-step .dot { animation: pop 0.6s var(--ease-out-expo) backwards; }
.thread.in .thread-step:nth-child(1) .dot { animation-delay: 0.15s; }
.thread.in .thread-step:nth-child(2) .dot { animation-delay: 0.35s; }
.thread.in .thread-step:nth-child(3) .dot { animation-delay: 0.55s; }
.thread.in .thread-step:nth-child(4) .dot { animation-delay: 0.75s; }
.thread.in .thread-step:nth-child(5) .dot { animation-delay: 0.95s; }
.thread.in .thread-step:nth-child(6) .dot { animation-delay: 1.15s; }
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.thread-step:hover .dot {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
  transform: scale(1.08);
}
.thread-step h3 { font-size: 0.95rem; font-weight: 620; letter-spacing: -0.01em; }
.thread-step p { font-size: 0.82rem; color: var(--fg-muted); margin-top: 0.35rem; }

/* --------------------------------------------------------------------------
   11. Bento module grid
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease),
    border-color 0.3s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-200);
}
.tile-span-3 { grid-column: span 3; }
.tile-span-2 { grid-column: span 2; }
.tile-span-4 { grid-column: span 4; }
.tile-span-6 { grid-column: span 6; }

.tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--blue-700);
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.tile h3 { margin-bottom: 0.5rem; }
.tile p { font-size: 0.945rem; color: var(--fg-muted); }
.tile-body { flex: 1; }
.tile-visual { margin-top: 1.5rem; }

.tile-feature {
  background: linear-gradient(160deg, var(--ink-900) 0%, #16273f 55%, var(--blue-800) 130%);
  border-color: transparent;
  color: #fff;
}
.tile-feature p { color: rgba(255, 255, 255, 0.62); }
.tile-feature .tile-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Mini chart used inside tiles */
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mini-bars i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out-expo);
}
.in .mini-bars i { transform: scaleY(1); }
.mini-bars i:nth-child(1) { transition-delay: 0.05s; }
.mini-bars i:nth-child(2) { transition-delay: 0.11s; }
.mini-bars i:nth-child(3) { transition-delay: 0.17s; }
.mini-bars i:nth-child(4) { transition-delay: 0.23s; }
.mini-bars i:nth-child(5) { transition-delay: 0.29s; }
.mini-bars i:nth-child(6) { transition-delay: 0.35s; }
.mini-bars i:nth-child(7) { transition-delay: 0.41s; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.76rem;
  font-weight: 540;
  padding: 0.32rem 0.7rem;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
}
.tile-feature .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   12. Product mockup chrome
   -------------------------------------------------------------------------- */
.frame {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
  font-size: 13px;
  line-height: 1.4;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: #f1f3f6;
  border-bottom: 1px solid #e2e6eb;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.frame-dots i:nth-child(1) { background: #ff5f57; }
.frame-dots i:nth-child(2) { background: #febc2e; }
.frame-dots i:nth-child(3) { background: #28c840; }
.frame-url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 6px;
  padding: 0.22rem 0.7rem;
  font-size: 11.5px;
  color: var(--slate-500);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.frame-url svg { width: 10px; height: 10px; flex-shrink: 0; color: var(--ok); }

/* App shell inside the frame */
.app {
  display: grid;
  grid-template-columns: 196px 1fr;
  min-height: 470px;
  background: #f7f9fb;
}
.app-side {
  background: var(--ink-900);
  padding: 0.95rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-side-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.55rem 1.1rem;
}
.app-side-logo img { height: 14px; width: auto; }
.app-side-group {
  font-size: 9.5px;
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 0.9rem 0.55rem 0.4rem;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.55rem;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
}
.app-nav svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }
.app-nav.is-active {
  background: var(--blue-700);
  color: #fff;
}
.app-nav.is-active svg { opacity: 1; }
.app-nav .badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 640;
  padding: 0.1rem 0.35rem;
  border-radius: 980px;
  background: var(--crit);
  color: #fff;
}

.app-main { padding: 1.15rem 1.35rem 1.5rem; overflow: hidden; }
.app-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e6eaef;
  margin-bottom: 1.15rem;
}
.app-top h4 { font-size: 15px; font-weight: 640; letter-spacing: -0.015em; margin: 0; }
.app-top .sub { font-size: 11px; color: var(--slate-400); margin-top: 1px; }
.app-top-actions { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; }
.pill {
  font-size: 10.5px;
  font-weight: 560;
  padding: 0.28rem 0.6rem;
  border-radius: 980px;
  border: 1px solid #dfe4ea;
  background: #fff;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.pill-solid { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.avatar-stack { display: flex; }
.avatar-stack i {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #fff;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 640; color: #fff;
  font-style: normal;
}
.avatar-stack i + i { margin-left: -7px; }

/* KPI cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.05rem;
}
.kpi {
  background: #fff;
  border: 1px solid #e6eaef;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.kpi .label {
  font-size: 10px;
  color: var(--slate-400);
  font-weight: 560;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.kpi .value {
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.03em;
  margin-top: 0.28rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi .delta { font-size: 10px; font-weight: 580; margin-top: 0.15rem; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--crit); }
.delta-flat { color: var(--slate-400); }

/* Panels */
.panel-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.7rem; }
.panel {
  background: #fff;
  border: 1px solid #e6eaef;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.panel-head h5 { font-size: 12px; font-weight: 640; margin: 0; letter-spacing: -0.01em; }
.panel-head .more { font-size: 10px; color: var(--blue-700); font-weight: 560; }

/* Horizontal compliance bars */
.reg-bar { margin-bottom: 0.7rem; }
.reg-bar:last-child { margin-bottom: 0; }
.reg-bar .reg-top {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  margin-bottom: 0.28rem;
}
.reg-bar .reg-top b { font-weight: 600; }
.reg-bar .reg-top span { color: var(--slate-400); font-variant-numeric: tabular-nums; }
.reg-track { height: 5px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.reg-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  width: 0;
  transition: width 1.3s var(--ease-out-expo);
}
.in .reg-fill { width: var(--w); }
.reg-fill.is-warn { background: linear-gradient(90deg, #d9a441, #e8c26b); }
.reg-fill.is-crit { background: linear-gradient(90deg, #c0392f, #e0645a); }

/* Finding list */
.find-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f3f6;
}
.find-item:last-child { border-bottom: 0; }
.lvl {
  font-size: 9px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.lvl-1 { background: var(--crit-soft); color: var(--crit); }
.lvl-2 { background: var(--warn-soft); color: var(--warn); }
.lvl-3 { background: var(--blue-100); color: var(--blue-700); }
.find-item .txt { flex: 1; min-width: 0; }
.find-item .txt b { display: block; font-size: 11.5px; font-weight: 570; letter-spacing: -0.005em; }
.find-item .txt span {
  display: block;
  font-size: 10px;
  color: var(--slate-400);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.find-item .due { font-size: 10px; font-weight: 580; color: var(--slate-400); flex-shrink: 0; }
.find-item .due.is-over { color: var(--crit); }

/* Data table mockup */
.tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.tbl th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e6eaef;
  white-space: nowrap;
}
.tbl td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid #f2f5f8;
  vertical-align: middle;
  white-space: nowrap;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl .ref { font-family: var(--font-mono); font-size: 10px; color: var(--blue-700); font-weight: 560; }
.status {
  font-size: 9.5px;
  font-weight: 600;
  padding: 0.16rem 0.45rem;
  border-radius: 980px;
  display: inline-block;
}
.st-open { background: var(--crit-soft); color: var(--crit); }
.st-prog { background: var(--warn-soft); color: var(--warn); }
.st-ver { background: var(--blue-100); color: var(--blue-700); }
.st-closed { background: var(--ok-soft); color: var(--ok); }

/* Gantt / audit schedule */
.gantt-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 10.5px;
}
.gantt-row b { font-weight: 570; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-track { position: relative; height: 16px; background: #f2f5f8; border-radius: 4px; }
.gantt-track i {
  position: absolute;
  top: 3px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue-600);
  display: block;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out-expo);
}
.in .gantt-track i { transform: scaleX(1); }
.gantt-track i.g2 { background: var(--blue-400); }
.gantt-track i.g3 { background: var(--slate-300); }
.gantt-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.gantt-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-size: 9px;
  color: var(--slate-400);
  font-weight: 560;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   13. Showcase (tabbed mockups)
   -------------------------------------------------------------------------- */
.showcase { background: var(--ink-900); color: #fff; overflow: hidden; position: relative; }
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(31, 88, 180, 0.35), transparent 70%);
  pointer-events: none;
}
.showcase > * { position: relative; }

.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 2.75rem;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  padding: 0.6rem 1.25rem;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 540;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s, background-color 0.35s var(--ease);
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink-900);
  font-weight: 580;
}

.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up 0.6s var(--ease-out-expo); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-caption {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.tab-caption > div { flex: 1; min-width: 200px; }
.tab-caption h4 {
  font-size: 0.95rem;
  font-weight: 620;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tab-caption h4 svg { color: var(--blue-400); width: 15px; height: 15px; }
.tab-caption p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }

/* --------------------------------------------------------------------------
   14. Tablet / field section
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split-copy h2 { margin-bottom: 1.15rem; }
.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.15rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .ic {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  flex-shrink: 0;
  margin-top: 1px;
}
.ctx-dark .feature-list .ic { background: rgba(78, 144, 245, 0.16); color: var(--blue-300); }
.feature-list b { display: block; font-size: 0.975rem; font-weight: 600; letter-spacing: -0.012em; }
.feature-list p { font-size: 0.9rem; color: var(--fg-muted); margin-top: 0.2rem; }

/* Tablet frame */
.tablet {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(150deg, #2a3340, #151d26);
  padding: 13px;
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  margin-inline: auto;
}
.tablet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-50%);
}
.tablet-screen {
  border-radius: 19px;
  overflow: hidden;
  background: #f7f9fb;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--ink-900);
}
.tablet-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid #e6eaef;
  font-size: 10.5px;
  font-weight: 580;
}
.tablet-status .time { font-variant-numeric: tabular-nums; }
.tablet-status .right { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.offline-chip {
  font-size: 9.5px;
  font-weight: 640;
  padding: 0.14rem 0.45rem;
  border-radius: 980px;
  background: var(--warn-soft);
  color: var(--warn);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.offline-chip i {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; display: block;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.audit-head {
  padding: 0.9rem 0.95rem;
  background: #fff;
  border-bottom: 1px solid #e6eaef;
}
.audit-head .ref { font-family: var(--font-mono); font-size: 10px; color: var(--blue-700); font-weight: 560; }
.audit-head h5 { font-size: 14px; font-weight: 650; margin: 0.2rem 0 0.65rem; letter-spacing: -0.015em; }
.audit-progress { display: flex; align-items: center; gap: 0.6rem; }
.ring { width: 34px; height: 34px; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: #eef1f5; }
.ring .fg {
  stroke: var(--blue-600);
  stroke-linecap: round;
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}
.in .ring .fg { stroke-dashoffset: 26; }
.audit-progress .meta b { font-size: 11.5px; font-weight: 620; display: block; }
.audit-progress .meta span { font-size: 10px; color: var(--slate-400); }

.check-list { flex: 1; overflow: hidden; padding: 0.6rem 0.7rem; display: flex; flex-direction: column; gap: 0.45rem; }
.check {
  background: #fff;
  border: 1px solid #e6eaef;
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
}
.check-top { display: flex; gap: 0.5rem; align-items: flex-start; }
.check-top .q { flex: 1; }
.check-top .q b { font-size: 11px; font-weight: 580; display: block; letter-spacing: -0.005em; }
.check-top .q span { font-size: 9.5px; color: var(--slate-400); font-family: var(--font-mono); }
.seg {
  display: flex;
  gap: 2px;
  background: #eef1f5;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}
.seg i {
  font-style: normal;
  font-size: 9px;
  font-weight: 640;
  padding: 0.2rem 0.42rem;
  border-radius: 4px;
  color: var(--slate-400);
  display: block;
}
.seg i.on-ok { background: var(--ok); color: #fff; }
.seg i.on-no { background: var(--crit); color: #fff; }
.seg i.on-na { background: var(--slate-400); color: #fff; }

.check-expand {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e2e6eb;
}
.evidence-row { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.evidence {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
  display: grid; place-items: center;
  color: var(--slate-400);
  border: 1px solid #e2e6eb;
}
.evidence.add { border-style: dashed; background: #fff; color: var(--blue-700); }
.finding-raise {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 10px;
  font-weight: 580;
  color: var(--crit);
  background: var(--crit-soft);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   15. Platform / subdomain cards
   -------------------------------------------------------------------------- */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.surface {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.surface:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.surface .host {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.surface h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.surface p { font-size: 0.9rem; color: var(--fg-muted); }
.surface .soon {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-size: 0.65rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 980px;
  background: var(--slate-100);
  color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   16. Security strip
   -------------------------------------------------------------------------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.sec-item .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--blue-300);
  margin-bottom: 0.9rem;
}
.sec-item h3 { font-size: 0.975rem; margin-bottom: 0.3rem; }
.sec-item p { font-size: 0.875rem; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   17. Pricing
   -------------------------------------------------------------------------- */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.switch {
  position: relative;
  width: 50px;
  height: 29px;
  border-radius: 980px;
  background: var(--slate-200);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s var(--ease);
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 32, 0.25);
  transition: transform 0.32s var(--ease-out-expo);
}
.switch[aria-checked="true"] { background: var(--blue-700); }
.switch[aria-checked="true"]::after { transform: translateX(21px); }
.price-toggle label { font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.price-toggle .save {
  font-size: 0.72rem;
  font-weight: 620;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  background: var(--ok-soft);
  color: var(--ok);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin-top: 3.5rem;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem 1.7rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease-out-expo);
}
.plan:hover { box-shadow: var(--shadow-md); }
.plan-featured {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 1px var(--blue-700), var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-featured:hover { transform: translateY(-10px); }
.plan-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 980px;
  background: var(--blue-700);
  color: #fff;
  white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.plan .who { font-size: 0.87rem; color: var(--fg-muted); margin-top: 0.35rem; min-height: 2.6em; }
.plan-price { margin: 1.4rem 0 0.35rem; display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price .cur { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-price .amt {
  font-size: 3rem;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .per { font-size: 0.87rem; color: var(--fg-muted); font-weight: 500; }
.plan-price .custom { font-size: 2.1rem; font-weight: 680; letter-spacing: -0.035em; line-height: 1.15; }
.plan .basis { font-size: 0.79rem; color: var(--fg-faint); margin-bottom: 1.5rem; min-height: 2.4em; }
.plan .btn { width: 100%; }
.plan-feats {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.plan-feats li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.plan-feats svg { width: 15px; height: 15px; color: var(--blue-700); flex-shrink: 0; margin-top: 3px; }
.plan-feats .muted { color: var(--fg-faint); }
.plan-feats .muted svg { color: var(--slate-300); }
.plan-feats .grp {
  font-size: 0.7rem;
  font-weight: 640;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 0.4rem;
}

.price-note {
  margin-top: 2.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 0.875rem;
  color: var(--slate-500);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.price-note svg { color: var(--blue-700); flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.faq-q .pm {
  margin-left: auto;
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  color: var(--slate-400);
  transition: color 0.25s, transform 0.35s var(--ease-out-expo);
}
.faq-q .pm::before,
.faq-q .pm::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s;
}
.faq-q .pm::before { width: 13px; height: 1.5px; }
.faq-q .pm::after { width: 1.5px; height: 13px; }
.faq-q[aria-expanded="true"] .pm { color: var(--blue-700); }
.faq-q[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out-expo);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  font-size: 0.975rem;
  color: var(--fg-muted);
  max-width: 68ch;
  padding-bottom: 1.5rem;
}
.faq-a p + p { padding-top: 0.9rem; }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 15% 10%, rgba(31, 88, 180, 0.4), transparent 65%),
    radial-gradient(ellipse 50% 50% at 88% 85%, rgba(24, 67, 137, 0.5), transparent 65%);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-aside h2 { margin-bottom: 1.1rem; }
.contact-aside .lede { color: rgba(255, 255, 255, 0.65); }
.contact-points { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-points li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-points .ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: grid; place-items: center;
  color: var(--blue-300);
  flex-shrink: 0;
}
.contact-points b { display: block; font-size: 0.95rem; font-weight: 580; }
.contact-points span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }

.form-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  box-shadow: var(--shadow-xl);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.field label .req { color: var(--blue-300); }
/* Text-like controls only. Checkboxes and radios must be excluded: this rule
   sets appearance:none, which strips the native tick and makes accent-color
   inert, so a checkbox would show no change at all when ticked. */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(78, 144, 245, 0.2);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field select option { background: var(--ink-800); color: #fff; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ef7b72; box-shadow: 0 0 0 3px rgba(239, 123, 114, 0.16); }
.field .err {
  font-size: 0.76rem;
  color: #ef9b94;
  display: none;
}
.field.has-error .err { display: block; }

/* Multiple-choice group — an organisation can hold several approvals at once. */
.checkgroup {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;      /* a fieldset defaults to min-content and breaks the grid */
}
.checkgroup legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 560;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.55rem;
}
.checkgroup .hint-inline {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  margin-left: 0.35rem;
}
.checkgroup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.4rem;
}
.checkpill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s;
}
.checkpill:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.checkpill input {
  /* Native rendering, so the tick and accent-color both work. */
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue-400);
  cursor: pointer;
}
.checkpill:has(input:checked) {
  background: rgba(78, 144, 245, 0.18);
  border-color: var(--blue-400);
  color: #fff;
}
.checkpill input:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}
.consent input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-500);
  cursor: pointer;
}
.consent label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.58); line-height: 1.5; }
.consent a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 2px; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.form-actions .btn { min-width: 190px; }
.form-actions .note { font-size: 0.79rem; color: rgba(255, 255, 255, 0.42); }

.btn[data-loading="true"] { pointer-events: none; opacity: 0.72; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn[data-loading="true"] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-result {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.form-result.is-shown { display: block; animation: fade-up 0.5s var(--ease-out-expo); }
.form-result .tick {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(21, 146, 107, 0.15);
  border: 1px solid rgba(21, 146, 107, 0.35);
  display: grid; place-items: center;
  color: #4ade9f;
}
.form-result h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.55rem; }
.form-result p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; max-width: 44ch; margin-inline: auto; }
.form-result.is-error .tick {
  background: rgba(192, 57, 47, 0.15);
  border-color: rgba(192, 57, 47, 0.4);
  color: #ef9b94;
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.6);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-brand img { height: 22px; width: auto; margin-bottom: 1.15rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.45); max-width: 34ch; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.1rem;
}
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bot {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}
.footer-bot .legal { margin-left: auto; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bot a:hover { color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   21. Scroll reveal
   -------------------------------------------------------------------------- */
/* Only hidden when JS is confirmed running — see the flag script in <head>.
   No JS, a script error, or a blocked file all leave the page fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .thread { grid-template-columns: repeat(3, 1fr); row-gap: 2.25rem; }
  .thread::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-3px); }
  .tile-span-3, .tile-span-2, .tile-span-4 { grid-column: span 6; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .panel-row { grid-template-columns: 1fr; }

  /* The mockup tables are denser than a phone is wide. Let them scroll
     sideways rather than being silently clipped by .app-main. */
  .app-main { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .panel { overflow-x: auto; }
  .tbl { min-width: 620px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .thread { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bot .legal { margin-left: 0; width: 100%; gap: 1rem; }
  .hero-shot-inner { --shot-rx: 8deg; }
  .tab-caption { gap: 1.5rem; }
  .app-main { padding: 0.9rem 1rem 1.2rem; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; }
  .framework-row { gap: 1.25rem 2rem; }
}

/* --------------------------------------------------------------------------
   23. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-shot-inner { transform: none; }
  .reg-fill { width: var(--w); }
  .gantt-track i, .mini-bars i { transform: scaleX(1) scaleY(1); }
}

@media print {
  .nav, .hero-shot, .showcase, .contact { display: none; }
  body { color: #000; }
}
