/* CYAN Trust Centre — shared stylesheet. Tokens identical to legal.cyansolutions.co.uk. Both index.html and sub-processors/index.html load this file. */
/* =============================================
   CYAN Brand Tokens — identical to legal.cyansolutions.co.uk
   ============================================= */
:root {
  --cyan-aqua:   #37FFB7;
  --cyan-black:  #040815;
  --cyan-blue:   #1130AB;
  --cyan-white:  #F5F6FC;
  --ink-muted:   rgba(245,246,252,0.78);
  --surface-dim: rgba(255,255,255,0.05);
  --border-dim:  rgba(245,246,252,0.1);
  --border-box:  rgba(245,246,252,0.2);

  --font-title: 'Sora', Arial, sans-serif;
  --font-body:  'Plus Jakarta Sans', Arial, sans-serif;

  --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 72px;
  --max-w: 1100px;
  --gutter: clamp(24px, 6vw, 80px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  font-family: var(--font-body);
  background: var(--cyan-black);
  color: var(--cyan-white);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; }
ul { list-style: none; }

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(4,8,21,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,246,252,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-logo-divider { width: 1px; height: 22px; background: rgba(245,246,252,0.25); }
.nav-logo-text { font-family: var(--font-title); font-size: 0.9375rem; color: rgba(245,246,252,0.85); letter-spacing: 0.01em; }
.nav-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  color: var(--cyan-black);
  background: var(--cyan-aqua);
  border-radius: 100px; padding: 10px 24px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: #FFFFFF; transform: translateY(-1px); }

/* Reading progress line: sits on the bottom edge of the main nav and fills
   left to right as the page is scrolled. --p (0–1) is set by each page's script.
   z-index above .section-nav so it stays visible when that bar slides in. */
.scroll-progress {
  position: fixed; top: 72px; left: 0; z-index: 201;
  height: 2px; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cyan-blue), var(--cyan-aqua));
  pointer-events: none; opacity: 0.9;
}

/* In-page section navigation, sits under the main nav */
.section-nav {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 190;
  background: rgba(4,8,21,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,246,252,0.06);
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-nav.is-shown { transform: translateY(0); }
.section-nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  display: inline-block; padding: 14px 14px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(245,246,252,0.7); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.section-nav a:hover, .section-nav a.is-active { color: var(--cyan-aqua); border-bottom-color: var(--cyan-aqua); }

/* =============================================
   Hero
   ============================================= */
.hero {
  padding: 168px var(--gutter) 120px;
  position: relative; overflow: hidden;
}
/* Looping background video, same treatment as legal.cyansolutions.co.uk:
   the poster paints first so the hero is never a bare dark rectangle, the
   video is a muted 1600px web encode (1.5MB, down from the 5.9MB original,
   which stays in assets/ as the master). */
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 1;
  /* The source clip is graded dark; lift it so the HUD detail reads. */
  filter: brightness(1.08) contrast(1.05) saturate(1.1);
  /* Anchor to the bottom-right of the frame: the clip's red "COMP 2" label
     sits in the top-left, and this keeps it out of shot at common viewport
     ratios rather than parked behind the eyebrow pill. */
  object-position: 100% 100%;
  transform: scale(1.18); transform-origin: 100% 100%;
}
.hero::before {
  /* Legibility scrim. Heaviest on the left where the headline sits, clearing
     towards the right so the footage stays visible behind the stats panel.
     A touch of brand blue in the mid-stop and aqua at the far corner keep it
     on-palette rather than a flat black fade. */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(4, 8, 21, 0.55) 0%,
      rgba(4, 8, 21, 0.30) 45%,
      rgba(4, 8, 21, 0.00) 100%),
    radial-gradient(ellipse 60% 55% at 90% 5%, rgba(55,255,183,0.14), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 95%, rgba(17,48,171,0.35), transparent 70%);
}
.hero::after {
  /* Fades the bottom of the video into the black so the curved panel below
     lands on a solid colour, not a moving picture. */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--cyan-black));
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title);
  font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 9px 24px;
  margin-bottom: 24px;
  color: var(--cyan-aqua);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-aqua);
  box-shadow: 0 0 0 4px rgba(55,255,183,0.2);
}
.hero-h1 {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 28px;
}
.hero-h1 em { font-style: normal; color: var(--cyan-aqua); }
.hero-sub {
  font-size: 1.125rem; color: var(--ink-muted); line-height: 1.75;
  max-width: 600px; margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-direction: row; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--cyan-black);
  background: var(--cyan-aqua);
  border-radius: 9999px; padding: 12px 32px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
  white-space: nowrap; cursor: pointer;
}
.btn-pill:hover { background: #FFFFFF; color: var(--cyan-black); transform: translateY(-1px); }
.btn-pill.outline {
  background: transparent; color: rgba(245,246,252,0.8);
  border-color: rgba(245,246,252,0.28);
}
.btn-pill.outline:hover { border-color: rgba(245,246,252,0.6); color: var(--cyan-white); background: transparent; }
.btn-pill svg { width: 15px; height: 15px; }
.hero-meta { margin-top: 28px; font-size: 0.8125rem; color: rgba(245,246,252,0.6); }

/* Stats panel — bordered grid like the main site's feature grid */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-box); border-radius: 8px; overflow: hidden;
  background: rgba(4,8,21,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border-box);
  border-bottom: 1px solid var(--border-box);
}
.hero-stat:nth-child(2n) { border-right: none; }
.hero-stat:nth-last-child(-n+2) { border-bottom: none; }
.stat-num {
  font-family: var(--font-title); font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 400;
  color: var(--cyan-aqua); line-height: 1; display: block;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,246,252,0.75);
  display: block; margin-top: 10px; line-height: 1.4;
}

/* =============================================
   Curved section stacking
   ============================================= */
.panel {
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
  padding: calc(var(--space-6) + 20px) var(--gutter) calc(var(--space-6) + 40px);
}
.panel.dark  { background: var(--cyan-black); }
.panel.dark-alt { background: #070c1c; }
.panel.light { background: var(--cyan-white); color: var(--cyan-black); box-shadow: 0 -8px 40px rgba(0,0,0,0.25); }
#certifications { z-index: 2; }
#controls       { z-index: 4; }
#ai             { z-index: 5; }
#documents      { z-index: 6; }
#faq            { z-index: 7; }
#updates        { z-index: 8; }
#subscribe      { z-index: 9; }
.cta-section    { z-index: 10; }
.site-footer    { z-index: 11; }
.inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 9px 24px;
  margin-bottom: 24px;
  color: var(--cyan-aqua);
}
.panel.light .section-label {
  color: var(--cyan-blue);
  background: rgba(17,48,171,0.08);
  border: 1px solid rgba(17,48,171,0.2);
}
.section-h2 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400; color: var(--cyan-white);
  line-height: 1.15; margin-bottom: 16px;
}
.panel.light .section-h2 { color: var(--cyan-black); }
.section-sub {
  font-size: 1rem; color: var(--ink-muted);
  line-height: 1.7; max-width: 620px;
  margin-bottom: var(--space-6);
}
.panel.light .section-sub { color: #3A3F4C; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head .section-sub { margin-bottom: 0; }
.section-head + * { margin-top: var(--space-6); }

/* =============================================
   Certification cards
   ============================================= */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert-card {
  background: var(--surface-dim);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.25s, background 0.25s;
}
.cert-card:hover { border-color: rgba(55,255,183,0.3); background: rgba(255,255,255,0.07); }
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cert-logo {
  min-width: 72px; max-width: 150px; height: 72px; flex-shrink: 0;
  background: #FFFFFF; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 8px;
}
.cert-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
a.cert-logo { transition: transform 0.15s, box-shadow 0.15s; }
a.cert-logo:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--cyan-aqua); }
a.cert-logo:focus-visible { outline: 2px solid var(--cyan-aqua); outline-offset: 3px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid rgba(55,255,183,0.35); color: var(--cyan-aqua);
  background: rgba(55,255,183,0.08);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.renewing { border-color: rgba(255,200,87,0.4); color: #FFC857; background: rgba(255,200,87,0.08); }
.status.planned  { border-color: rgba(245,246,252,0.3); color: rgba(245,246,252,0.7); background: rgba(245,246,252,0.05); }
.cert-name { font-family: var(--font-title); font-size: 1.5rem; font-weight: 400; color: #FFFFFF; line-height: 1.25; }
.cert-short { font-size: 0.9375rem; color: var(--cyan-aqua); margin-top: 4px; }
.cert-body { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.7; }
.cert-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-box); border-radius: 8px; overflow: hidden;
}
.cert-fact { padding: 14px 16px; border-right: 1px solid var(--border-box); }
.cert-fact:last-child { border-right: none; }
.cert-fact dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,252,0.6); margin-bottom: 4px; }
.cert-fact dd { font-size: 0.9375rem; color: #FFFFFF; font-weight: 500; }
.cert-details { border-top: 1px solid var(--border-dim); padding-top: 4px; }
.cert-details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 0.9375rem; font-weight: 600; color: rgba(245,246,252,0.85);
}
.cert-details summary::-webkit-details-marker { display: none; }
.cert-details summary::after {
  content: ''; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s; margin-right: 4px;
}
.cert-details[open] summary::after { transform: rotate(225deg); }
.cert-details summary:hover { color: var(--cyan-aqua); }
.cert-scope { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; padding: 4px 0 14px; }
.cert-scope strong { color: #FFFFFF; font-weight: 600; display: block; margin-bottom: 4px; }
.cert-scope em { font-style: italic; }
.cert-notes { padding-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.cert-notes li { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; padding-left: 20px; position: relative; }
.cert-notes li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 1.5px; background: var(--cyan-aqua); }
.cert-verify {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 600; color: var(--cyan-aqua); text-decoration: none;
  transition: gap 0.2s;
}
.cert-verify:hover { gap: 14px; }
.cert-verify svg { width: 14px; height: 14px; }

/* Insurance cards within certifications. The list owns the columns and each
   card uses subgrid, so the headings line up however wide each figure's
   label is. */
.insurance-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); row-gap: 24px; margin-top: 24px; }
.insurance-card {
  grid-column: 1 / -1;
  /* The first column is sized to the figure itself, so Sora — which sets
     "£2,000,000" a good deal wider than the Arial fallback — can never run
     into the heading beside it. */
  display: grid; grid-template-columns: subgrid; gap: 48px;
  background: linear-gradient(120deg, rgba(17,48,171,0.35), rgba(17,48,171,0.08) 60%, rgba(55,255,183,0.06));
  border: 1px solid rgba(245,246,252,0.12);
  border-radius: var(--radius); padding: 36px;
}
.insurance-amount { font-family: var(--font-title); font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--cyan-aqua); line-height: 1; white-space: nowrap; }
.insurance-amount small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,252,0.75); margin-top: 10px; }
.insurance-title { font-family: var(--font-title); font-size: 1.375rem; color: #FFFFFF; margin-bottom: 10px; }
.insurance-body { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.8125rem; font-weight: 500; padding: 7px 14px; border-radius: 9999px; border: 1px solid var(--border-box); color: rgba(245,246,252,0.85); }
.insurance-note { font-size: 0.8125rem; color: rgba(245,246,252,0.6); margin-top: 16px; }

/* =============================================
   Accreditations (light strip)
   ============================================= */

/* =============================================
   Controls
   ============================================= */
.controls-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border-box); border-radius: 8px; overflow: hidden; }
.control {
  padding: 32px; border-right: 1px solid var(--border-box); border-bottom: 1px solid var(--border-box);
  display: flex; flex-direction: column; gap: 16px;
}
.control:nth-child(2n) { border-right: none; }
.control:nth-last-child(-n+2) { border-bottom: none; }
/* An odd number of domains would leave an empty cell; the last card spans both columns instead. */
.control:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; }
.control-head { display: flex; align-items: flex-start; gap: 16px; }
.control-icon { width: 40px; height: 40px; color: var(--cyan-aqua); flex-shrink: 0; }
.control-title { font-family: var(--font-title); font-size: 1.1875rem; font-weight: 400; color: #FFFFFF; line-height: 1.3; }
.control-fw { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,246,252,0.6); margin-top: 4px; }
.control-list { display: flex; flex-direction: column; gap: 10px; }
.control-list li { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; padding-left: 26px; position: relative; }
.control-list li strong { color: #FFFFFF; font-weight: 600; display: block; margin-bottom: 1px; }
.control-list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(55,255,183,0.12); border: 1px solid rgba(55,255,183,0.45);
}
.control-list li::after {
  content: ''; position: absolute; left: 4.5px; top: 7px; width: 4px; height: 7px;
  border-right: 1.5px solid var(--cyan-aqua); border-bottom: 1.5px solid var(--cyan-aqua); transform: rotate(45deg);
}

/* Controls on the light panel */
.panel.light .controls-grid { border-color: rgba(4,8,21,0.12); background: #FFFFFF; }
.panel.light .control { border-color: rgba(4,8,21,0.12); }
.panel.light .control-icon { color: var(--cyan-blue); }
.panel.light .control-title { color: var(--cyan-black); }
.panel.light .control-fw { color: #5A6072; }
.panel.light .control-list li { color: #3A3F4C; }
.panel.light .control-list li strong { color: var(--cyan-black); }
.panel.light .control-list li::before { background: rgba(17,48,171,0.08); border-color: rgba(17,48,171,0.45); }
.panel.light .control-list li::after { border-color: var(--cyan-blue); }
@media (max-width: 760px) {
  .panel.light .control:nth-last-child(-n+2) { border-bottom-color: rgba(4,8,21,0.12); }
}

/* =============================================
   Documents
   ============================================= */
.doc-list { display: flex; flex-direction: column; gap: 56px; }
.doc-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.doc-group-title { font-family: var(--font-title); font-size: clamp(1.375rem, 2.2vw, 1.625rem); font-weight: 400; color: #FFFFFF; line-height: 1.25; }
.doc-group-note { font-size: 0.8125rem; color: rgba(245,246,252,0.6); }
.doc-rows { border-top: 1px solid var(--border-dim); }
.doc-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--border-dim);
}
.doc-name { font-family: var(--font-title); font-size: 1rem; font-weight: 400; color: rgba(245,246,252,0.92); line-height: 1.3; }
.doc-meta { font-size: 0.8125rem; color: rgba(245,246,252,0.62); margin-top: 3px; }
.doc-type { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,246,252,0.6); white-space: nowrap; }
.doc-action {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-width: 150px; padding: 9px 18px; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
}
.doc-action.public { color: var(--cyan-aqua); border: 1.5px solid transparent; }
.doc-action.public:hover { background: rgba(55,255,183,0.08); border-color: rgba(55,255,183,0.35); }
.doc-action.request { border: 1.5px solid rgba(245,246,252,0.28); color: rgba(245,246,252,0.85); }
.doc-action.request:hover { border-color: var(--cyan-aqua); color: var(--cyan-aqua); }
.doc-action svg { width: 13px; height: 13px; }
.doc-action .da-short { display: none; }
.doc-foot { margin-top: 28px; font-size: 0.875rem; color: rgba(245,246,252,0.65); line-height: 1.6; max-width: 720px; }

/* =============================================
   FAQ (light)
   ============================================= */
.faq-list { border-top: 1px solid rgba(4,8,21,0.12); max-width: 860px; }
.faq-item { border-bottom: 1px solid rgba(4,8,21,0.12); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-title); font-size: 1.0625rem; font-weight: 400; color: var(--cyan-black); line-height: 1.4;
  transition: color 0.18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan-blue); }
.faq-item summary .plus {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(4,8,21,0.25); display: grid; place-items: center; position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ''; position: absolute; background: var(--cyan-black); transition: transform 0.2s, background 0.2s;
}
.faq-item summary .plus::before { width: 12px; height: 1.5px; }
.faq-item summary .plus::after  { width: 1.5px; height: 12px; }
.faq-item[open] summary .plus { background: var(--cyan-black); border-color: var(--cyan-black); }
.faq-item[open] summary .plus::before { background: var(--cyan-aqua); }
.faq-item[open] summary .plus::after  { transform: rotate(90deg); background: var(--cyan-aqua); }
.faq-a { padding: 0 60px 24px 0; font-size: 0.9375rem; color: #3A3F4C; line-height: 1.75; max-width: 720px; }
.faq-more { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--cyan-blue); text-decoration: none; }
.faq-more:hover { text-decoration: underline; }

/* =============================================
   Updates timeline
   ============================================= */
.timeline { position: relative; padding-left: 28px; max-width: 760px; }
.reviewed-note { margin-top: var(--space-5); font-size: 0.8125rem; color: rgba(245,246,252,0.6); }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--border-box); }
.update { position: relative; padding-bottom: 32px; }
.update:last-child { padding-bottom: 0; }
.update::before {
  content: ''; position: absolute; left: -28px; top: 7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--cyan-black); border: 1.5px solid var(--cyan-aqua);
}
.update:first-of-type::before { background: var(--cyan-aqua); box-shadow: 0 0 0 4px rgba(55,255,183,0.18); }
.update-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.update-date { font-size: 0.8125rem; color: rgba(245,246,252,0.62); }
.update-tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-aqua); padding: 3px 10px; border-radius: 9999px; border: 1px solid rgba(55,255,183,0.35); }
.update-title { font-family: var(--font-title); font-size: 1.125rem; font-weight: 400; color: #FFFFFF; margin-bottom: 6px; line-height: 1.3; }
.update-body { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; max-width: 600px; }

/* =============================================
   CTA + Footer
   ============================================= */
.cta-section {
  border-radius: 40px 40px 0 0; margin-top: -40px; position: relative;
  background: linear-gradient(55deg, #1130AB 0%, #1130AB 60%, #37FFB7 100%);
  padding: calc(var(--space-6) + 20px) var(--gutter) calc(var(--space-6) + 40px);
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; padding-bottom: 16px; }
.cta-inner .section-h2 { color: #FFFFFF; margin-bottom: 24px; }
.cta-inner .section-sub { font-size: 1.25rem; color: #FFFFFF; max-width: 600px; margin: 0 auto var(--space-5); }
.cta-section .btn-pill { background: var(--cyan-black); color: #FFFFFF; }
.cta-section .btn-pill:hover { background: #FFFFFF; color: var(--cyan-black); }

.site-footer {
  border-radius: 40px 40px 0 0; margin-top: -40px; position: relative;
  background: #020610; padding: var(--space-5) var(--gutter);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
.footer-logo { display: flex; align-items: center; min-height: 44px; }
.footer-logo img { height: 24px; display: block; }
.footer-copy { font-size: 0.8125rem; color: rgba(245,246,252,0.62); line-height: 1.6; }
.footer-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-links a {
  display: inline-block; padding: 12px 0; margin: -12px 0;
  font-size: 0.8125rem; font-weight: 500; color: rgba(245,246,252,0.62); text-decoration: none; transition: color 0.18s;
}
.footer-links a:hover { color: var(--cyan-aqua); }

/* =============================================
   Reveal animations
   ============================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }
.hero-load { animation: hero-in 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.hero-load-delay { animation: hero-in 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.hero-load-delay2 { animation: hero-in 0.9s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .reveal, .hero-load, .hero-load-delay, .hero-load-delay2 { animation: none; opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* The script also pauses the video for these users; hiding it as well
     leaves the poster frame showing, so the hero still has its texture. */
  .hero-video { display: none; }
  .hero { background: var(--cyan-black) url('./assets/hero-poster.jpg') center / cover no-repeat; }
}

/* Accessibility */
.skip-to-main {
  position: absolute; left: 50%; top: 12px; z-index: 300;
  transform: translateX(-50%) translateY(-250%);
  background: var(--cyan-aqua); color: var(--cyan-black);
  font-size: 0.9375rem; font-weight: 600; padding: 11px 24px; border-radius: 100px; text-decoration: none;
  transition: transform .18s ease;
}
.skip-to-main:focus-visible { transform: translateX(-50%) translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--cyan-aqua); outline-offset: 3px; border-radius: 4px; }
.panel.light a:focus-visible, .panel.light summary:focus-visible { outline-color: var(--cyan-blue); }
noscript .noscript-msg { display: block; padding: 24px var(--gutter); text-align: center; color: var(--cyan-white); background: var(--cyan-blue); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stat { border-bottom: none; }
  .hero-stat:nth-child(2n) { border-right: 1px solid var(--border-box); }
  .hero-stat:last-child { border-right: none; }
  .cert-grid { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .control { border-right: none; }
  .control:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-box); }
  .control:last-child { border-bottom: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 120px; }
  .site-nav { height: 64px; }
  .section-nav { top: 64px; }
  .scroll-progress { top: 64px; }
  .nav-logo-text { display: none; }
  .nav-logo-divider { display: none; }
  /* Phone hero: tightened so the stats and the top of the next panel fit on
     the first screen, rather than the hero filling it entirely. */
  .hero { padding: 96px var(--gutter) 40px; }
  .hero-inner { gap: 28px; }
  .hero-eyebrow { margin-bottom: 18px; padding: 7px 18px; font-size: 0.8125rem; }
  .hero-h1 { margin-bottom: 18px; }
  .hero-sub { font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn-pill { justify-content: center; padding: 11px 24px; }
  /* The audited / last-reviewed line repeats what the stats and Updates section say. */
  .hero-meta { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 14px 16px; border-bottom: 1px solid var(--border-box); }
  .stat-num { font-size: 1.625rem; }
  .stat-label { margin-top: 6px; font-size: 0.6875rem; }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .panel, .cta-section, .site-footer { border-radius: 24px 24px 0 0; margin-top: -24px; }
  .panel { padding: calc(var(--space-5) + 12px) var(--gutter) var(--space-6); }
  .section-sub { margin-bottom: var(--space-5); }
  .section-head + * { margin-top: var(--space-5); }
  .cert-card { padding: 24px; }
  /* Keep the three dates side by side on phones as a compact strip; stacking
     them made each certificate card about 150px taller. */
  .cert-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-fact { padding: 10px 10px; }
  .cert-fact dt { font-size: 0.625rem; letter-spacing: 0.06em; }
  .cert-fact dd { font-size: 0.8125rem; line-height: 1.35; }
  .insurance-list { grid-template-columns: 1fr; }
  .insurance-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .control { padding: 24px 20px; }
  /* Phones: type label on its own line above, then the name with a compact
     button beside it (a full-width ghost button left "View" floating mid-row). */
  .doc-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; padding: 16px 0; }
  .doc-row > span:empty { display: none; }
  .doc-type { order: -1; grid-column: 1 / -1; font-size: 0.6875rem; }
  .doc-action { min-width: 0; padding: 8px 14px; font-size: 0.8125rem; }
  .doc-action.public { border-color: rgba(55,255,183,0.35); }
  .doc-action .da-long { display: none; }
  .doc-action .da-short { display: inline; }
  .faq-item summary { font-size: 1rem; padding: 18px 0; }
  .faq-a { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: var(--space-4); }
}

/* =============================================
   Sub-processors page
   ============================================= */
.subpage-hero { padding: 152px var(--gutter) 64px; position: relative; overflow: hidden; }
.subpage-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 90% 5%, rgba(55,255,183,0.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 95%, rgba(17,48,171,0.30), transparent 70%);
}
.subpage-hero .hero-inner { display: block; max-width: 820px; margin: 0; }
.subpage-hero .hero-h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.subpage-hero .hero-sub { margin-bottom: 0; max-width: 720px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: rgba(245,246,252,0.62); margin-bottom: 24px; text-decoration: none; }
.crumb:hover { color: var(--cyan-aqua); }
.crumb svg { width: 12px; height: 12px; }
.draft-banner {
  position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto 32px;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,200,87,0.08); border: 1px solid rgba(255,200,87,0.4); border-radius: 12px;
  padding: 14px 18px; font-size: 0.875rem; color: #FFC857; line-height: 1.5;
}
.draft-banner strong { font-weight: 700; }
.draft-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.sp-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: var(--space-5); font-size: 0.875rem; color: rgba(245,246,252,0.7); }
.sp-meta strong { color: #FFFFFF; font-weight: 600; }

.sp-table-wrap { border: 1px solid var(--border-box); border-radius: 8px; overflow: hidden; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sp-table th, .sp-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--border-dim); }
.sp-table th { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,252,0.6); background: rgba(255,255,255,0.03); }
.sp-table tbody tr:last-child td { border-bottom: none; }
.sp-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.sp-name { font-family: var(--font-title); font-size: 1rem; color: #FFFFFF; white-space: nowrap; }
.sp-name .tag { display: inline-block; margin-left: 8px; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #FFC857; border: 1px solid rgba(255,200,87,0.4); border-radius: 9999px; padding: 2px 8px; vertical-align: middle; }
.sp-purpose { color: var(--ink-muted); line-height: 1.55; max-width: 380px; }
.sp-data { color: var(--ink-muted); line-height: 1.55; max-width: 260px; }
.sp-loc { white-space: nowrap; color: #FFFFFF; }
.sp-loc small { display: block; white-space: normal; font-size: 0.75rem; color: rgba(245,246,252,0.6); margin-top: 3px; }
.sp-certs { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-certs span { font-size: 0.75rem; padding: 3px 9px; border-radius: 9999px; border: 1px solid var(--border-box); color: rgba(245,246,252,0.85); white-space: nowrap; }
.sp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--cyan-aqua); text-decoration: none; white-space: nowrap; }
.sp-link:hover { text-decoration: underline; }
.sp-link svg { width: 12px; height: 12px; }

/* Stack the table into cards on narrow screens */
@media (max-width: 900px) {
  .sp-table thead { display: none; }
  .sp-table, .sp-table tbody, .sp-table tr, .sp-table td { display: block; width: 100%; }
  .sp-table tr { padding: 8px 0; border-bottom: 1px solid var(--border-dim); }
  .sp-table tbody tr:last-child { border-bottom: none; }
  .sp-table td { padding: 8px 18px; border-bottom: none; }
  .sp-table td::before { content: attr(data-label); display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,252,0.55); margin-bottom: 4px; }
  .sp-table td.sp-name-cell::before { display: none; }
  .sp-name-cell { padding-top: 14px; }
  .sp-purpose, .sp-data { max-width: none; }
  .sp-loc { white-space: normal; }
}

.sp-notes { margin-top: var(--space-5); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sp-note { background: var(--surface-dim); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 28px; }
.sp-note h3 { font-family: var(--font-title); font-size: 1.125rem; font-weight: 400; color: #FFFFFF; margin-bottom: 10px; }
.sp-note p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; }
.sp-note p + p { margin-top: 10px; }
@media (max-width: 720px) { .sp-notes { grid-template-columns: 1fr; } .subpage-hero { padding: 112px var(--gutter) 48px; } }

/* =============================================
   Subscribe
   ============================================= */
.subscribe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.subscribe-inner .section-sub { margin-bottom: 24px; }
.subscribe-points { display: flex; flex-direction: column; gap: 10px; }
.subscribe-points li { font-size: 0.9375rem; color: var(--ink-muted); padding-left: 26px; position: relative; line-height: 1.5; }
.subscribe-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: rgba(55,255,183,0.12); border: 1px solid rgba(55,255,183,0.45); }
.subscribe-points li::after { content: ''; position: absolute; left: 4.5px; top: 6px; width: 4px; height: 7px; border-right: 1.5px solid var(--cyan-aqua); border-bottom: 1.5px solid var(--cyan-aqua); transform: rotate(45deg); }
.subscribe-form-wrap { background: var(--surface-dim); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 36px; }
.form-fallback { margin-top: 18px; font-size: 0.8125rem; color: rgba(245,246,252,0.6); line-height: 1.5; }
.form-fallback a { color: var(--cyan-aqua); }
#hubspot-form .hs-form-frame { min-height: 320px; }
/* HubSpot embed: once the real form is in place these keep it on-brand */
#hubspot-form .hs-form-field label { font-size: 0.8125rem; font-weight: 600; color: rgba(245,246,252,0.8); }
#hubspot-form .hs-input { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--cyan-white); background: rgba(4,8,21,0.6); border: 1px solid var(--border-box); border-radius: 10px; padding: 12px 14px; }
#hubspot-form .hs-button { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--cyan-black); background: var(--cyan-aqua); border: 0; border-radius: 9999px; padding: 12px 32px; cursor: pointer; }
#hubspot-form .hs-error-msgs, #hubspot-form .hs-error-msg { color: #FFC857; font-size: 0.8125rem; }
@media (max-width: 900px) { .subscribe-inner { grid-template-columns: 1fr; gap: 32px; } .subscribe-form-wrap { padding: 24px; } }

/* AI statement page: the note cards share the sub-processor note style; the
   first card (our position) spans the full width as the lead statement. */
.ai-notes { margin-top: 0; }
.ai-notes .sp-note:first-child { grid-column: 1 / -1; }
.ai-notes .sp-note:first-child p { font-size: 1rem; }
.ai-notes .sp-note:last-child:nth-child(even) { grid-column: 1 / -1; }

/* AI summary section on the main page */
/* Governance path: four steps joined by connectors that draw in sequence.
   Each step's ::after is the connector to the next node, so the layout works
   the same across (desktop) and down (phones). */
.ai-more { margin-top: 32px; }
.ai-path { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.ai-step { position: relative; display: flex; flex-direction: column; gap: 18px; }
.ai-step-node {
  position: relative; z-index: 1; width: 48px; height: 48px; margin-left: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan-black);
  border: 1.5px solid rgba(245,246,252,0.22); color: rgba(245,246,252,0.45);
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ai-step-node svg { width: 24px; height: 24px; }
.ai-step:not(:last-child)::after {
  content: ''; position: absolute; top: 23px; left: 72px; width: calc(100% - 28px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-aqua), #5B8CFF);
  transform: scaleX(var(--seg, 0)); transform-origin: left center;
}
.ai-step:not(:last-child)::before {
  content: ''; position: absolute; top: 23px; left: 72px; width: calc(100% - 28px); height: 2px; background: var(--border-dim);
}
/* Scroll-linked (like the Updates timeline): the script sets --seg (0 to 1) on
   each step as the path moves through the viewport, both down and back up. */
.ai-step.is-lit .ai-step-node { border-color: var(--cyan-aqua); color: var(--cyan-aqua); box-shadow: 0 0 0 6px rgba(55,255,183,0.08); }
.ai-step-card { position: relative; flex: 1; display: flex; flex-direction: column; background: var(--surface-dim); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 24px; transition: border-color 0.25s ease, background 0.25s ease; }
.ai-step:hover .ai-step-card { border-color: rgba(55,255,183,0.3); background: rgba(55,255,183,0.04); }
.ai-step-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-title); font-size: 0.8125rem; color: rgba(245,246,252,0.35); letter-spacing: 0.04em; }
.ai-step-card h3 { font-family: var(--font-title); font-size: 1.0625rem; font-weight: 400; color: #FFFFFF; margin-bottom: 8px; padding-right: 28px; }
.ai-step-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; }
.ai-step-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--cyan-aqua); text-decoration: none; transition: gap 0.2s; }
.ai-step-link:hover { gap: 12px; }
.ai-step-link svg { width: 14px; height: 14px; }

/* "How you'll know": the real AI badge beside what it means */
.ai-label { margin-top: 28px; display: flex; align-items: center; gap: 40px; padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--border-dim); background: linear-gradient(120deg, rgba(55,255,183,0.06), rgba(91,140,255,0.05) 55%, rgba(255,255,255,0.02)); }
.ai-label-badge { width: 300px; max-width: 100%; height: auto; flex-shrink: 0; }
.ai-label-text h3 { font-family: var(--font-title); font-size: 1.125rem; font-weight: 400; color: #FFFFFF; margin-bottom: 8px; }
.ai-label-text p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.65; margin-bottom: 12px; max-width: 620px; }

@media (max-width: 960px) {
  .ai-path { grid-template-columns: 1fr; gap: 16px; }
  .ai-step { flex-direction: row; align-items: flex-start; gap: 16px; }
  .ai-step-node { margin-left: 0; flex-shrink: 0; }
  .ai-step:not(:last-child)::before, .ai-step:not(:last-child)::after { top: 48px; left: 23px; width: 2px; height: calc(100% - 48px + 16px); }
  .ai-step:not(:last-child)::after { background: linear-gradient(180deg, var(--cyan-aqua), #5B8CFF); transform: scaleY(var(--seg, 0)); transform-origin: center top; }
  .ai-label { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
  .ai-label-badge { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-step-node, .ai-step::after { transition: none; }
}

/* Show more / show fewer buttons (controls cards and updates timeline) */
.control-toggle, .list-toggle {
  align-self: flex-start; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 600 0.875rem var(--font-body); color: var(--cyan-aqua); display: inline-flex; align-items: center; gap: 6px;
}
.control-toggle::after, .list-toggle::after {
  content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s;
}
.control-toggle[aria-expanded="true"]::after, .list-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.control-toggle:hover, .list-toggle:hover { text-decoration: underline; }
.control-toggle:focus-visible, .list-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.panel.light .control-toggle { color: var(--cyan-blue); }
.list-toggle { margin-top: 28px; margin-left: 28px; }
.control-list li[hidden] { margin-top: -10px; }
.control-list:first-child, .control-list li[hidden]:first-child { margin-top: 0; }
.control:not(:has(.control-list li:not([hidden]))) .control-list { margin-top: -16px; }
.update[hidden] { padding: 0; }

/* Section nav: edge fades show there are more links to scroll to on small screens */
.section-nav::before, .section-nav::after {
  content: ''; position: absolute; top: 0; bottom: 1px; width: 44px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s; z-index: 1;
}
.section-nav::before { left: 0; background: linear-gradient(to left, rgba(4,8,21,0), rgba(4,8,21,0.97)); }
.section-nav::after { right: 0; background: linear-gradient(to right, rgba(4,8,21,0), rgba(4,8,21,0.97) 60%); }
.section-nav.more-left::before, .section-nav.more-right::after { opacity: 1; }

/* 404 page */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound > .inner { width: 100%; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.notfound-help { margin-top: 28px; font-size: 0.9rem; color: rgba(245,246,252,0.65); }
.notfound-help a { color: var(--cyan-aqua); }
.ai-badge { display: block; width: 420px; max-width: 100%; height: auto; margin: 8px 0 20px; }

/* Request prompt (Documents section) and contact page */
.request-prompt { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap;
  background: var(--surface-dim); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 32px; }
.request-prompt > div { flex: 1 1 420px; }
.request-prompt p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.7; margin-top: 10px; max-width: 640px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.request-form-wrap { background: var(--surface-dim); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 32px; }
.request-form-wrap .hs-form-frame { min-height: 560px; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side a { color: var(--cyan-aqua); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .request-form-wrap { padding: 20px; } .request-prompt { padding: 24px; } .request-prompt .btn-pill { width: 100%; justify-content: center; white-space: normal; text-align: center; } }

/* Contact page: vulnerability reporting card stands out without alarming */
.sp-note.contact-urgent { background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.45); }
.sp-note.contact-urgent h3 { display: flex; align-items: center; gap: 10px; color: #FFFFFF; }
.sp-note.contact-urgent h3 svg { width: 20px; height: 20px; color: #FF8A8A; flex-shrink: 0; }
.contact-side .sp-note.contact-urgent a { color: #FFB0B0; }

/* AI statement: icon beside each section heading, matching the Controls icons */
.ai-note-head { display: flex; align-items: center; gap: 12px; }
.ai-icon { width: 30px; height: 30px; color: var(--cyan-aqua); flex-shrink: 0; }

/* Information Security Policy statement page */
.isp-block { margin-bottom: 20px; }
.isp-block-gap { margin-top: 56px; margin-bottom: 0; }
.isp-lead { font-size: 1.0625rem; color: var(--cyan-white); line-height: 1.65; max-width: 760px; margin-top: 10px; }
.isp-notes { margin-top: 20px; }
.isp-request { margin-top: 32px; }

/* CIA triad (Information Security Policy statement) */
.isp-triad { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, rgba(55,255,183,0.05), rgba(91,140,255,0.04) 60%, rgba(255,255,255,0.02)); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 40px 48px; }
.isp-triad-figure { margin: 0; }
.isp-triad-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.triad-edge { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.triad-inner { fill: none; stroke: rgba(245,246,252,0.12); stroke-width: 1; stroke-dasharray: 3 5; }
.triad-fill { opacity: 0; transition: opacity 1.2s ease 0.6s; }
.triad-centre { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: rgba(245,246,252,0.62); text-anchor: middle; letter-spacing: 0.02em; }
.triad-label { font-family: var(--font-title); font-size: 17px; fill: #FFFFFF; text-anchor: middle; transition: fill 0.25s ease; }
.triad-node .dot { fill: #040815; stroke: #37FFB7; stroke-width: 1.5; transition: fill 0.25s ease; }
.triad-node .halo { fill: #37FFB7; opacity: 0.08; transform-box: fill-box; transform-origin: center; transition: opacity 0.25s ease, transform 0.25s ease; }
.triad-node text { font-family: var(--font-title); font-size: 17px; font-weight: 600; fill: #37FFB7; text-anchor: middle; transition: fill 0.25s ease; }
.triad-node.is-active .dot { fill: #37FFB7; }
.triad-node.is-active text { fill: #040815; }
.triad-node.is-active .halo { opacity: 0.22; transform: scale(1.15); }
.isp-triad.is-visible .triad-edge { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.65,0,0.35,1) 0.2s; }
.isp-triad.is-visible .triad-fill { opacity: 1; }
.isp-triad-list { list-style: none; margin: 0; padding: 0; }
.isp-triad-item { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 16px; margin: 0 -16px; border-radius: 12px; outline: none; transition: background 0.25s ease; }
.isp-triad-item { position: relative; }
.isp-triad-item + .isp-triad-item::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--border-dim); }
.isp-triad-item.is-active::before, .isp-triad-item.is-active + .isp-triad-item::before { opacity: 0; }
.isp-triad-item.is-active, .isp-triad-item:focus-visible { background: rgba(55,255,183,0.06); }
.isp-triad-item:focus-visible { box-shadow: 0 0 0 2px var(--cyan-aqua); }
.isp-triad-mark { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--cyan-aqua); color: var(--cyan-aqua); display: grid; place-items: center; font-family: var(--font-title); font-weight: 600; font-size: 1rem; transition: background 0.25s ease, color 0.25s ease; }
.isp-triad-item.is-active .isp-triad-mark { background: var(--cyan-aqua); color: var(--cyan-black); }
.isp-triad-item h3 { font-family: var(--font-title); font-size: 1.125rem; font-weight: 400; color: #FFFFFF; margin-bottom: 6px; }
.isp-triad-item p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 900px) {
  .isp-triad { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
  .isp-triad-figure { max-width: 300px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .triad-edge { stroke-dashoffset: 0; }
  .isp-triad.is-visible .triad-edge, .triad-fill { transition: none; }
  .triad-fill { opacity: 1; }
}

/* =============================================
   Homepage upgrades: live status, validity bars,
   controls filter and timeline progress
   ============================================= */
.hero-panel { display: flex; flex-direction: column; gap: 14px; }
.hero-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; color: #FFFFFF;
  padding: 8px 14px 8px 12px; border-radius: 9999px;
  background: rgba(4,8,21,0.72); border: 1px solid rgba(55,255,183,0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-status-date { font-weight: 500; color: rgba(245,246,252,0.6); }
.hero-status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-aqua); flex-shrink: 0; }
.hero-status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--cyan-aqua); animation: status-pulse 2.4s ease-out infinite; }
@keyframes status-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-status.is-warning { border-color: rgba(255,200,87,0.45); }
.hero-status.is-warning .hero-status-dot { background: #FFC857; }
.hero-status.is-warning .hero-status-dot::after { border-color: #FFC857; }

.cert-validity { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; }
.cv-track { position: relative; height: 6px; border-radius: 9999px; background: rgba(245,246,252,0.1); overflow: hidden; }
.cv-fill {
  position: absolute; top: 0; right: 0; bottom: 0; width: 0; border-radius: 9999px;
  background: linear-gradient(90deg, #5B8CFF, var(--cyan-aqua));
  transition: width 1.3s cubic-bezier(0.22,1,0.36,1) 0.35s;
}
.cert-card.is-visible .cv-fill { width: var(--cv); }
.cv-text { font-size: 0.8125rem; color: rgba(245,246,252,0.72); }
.cert-validity.is-due .cv-fill { background: #FFC857; }
.cert-validity.is-due .cv-text { color: #FFC857; }
.cert-validity.is-expired .cv-text { color: #FFC857; }

.control-filter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.control-filter-label { font-size: 0.8125rem; font-weight: 600; color: #5A6072; }
.control-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  padding: 7px 8px 7px 14px; border-radius: 9999px;
  border: 1px solid rgba(4,8,21,0.16); background: #FFFFFF; color: #3A3F4C;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: var(--cyan-blue); color: var(--cyan-blue); }
.filter-chip:focus-visible { outline: 2px solid var(--cyan-blue); outline-offset: 2px; }
.filter-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; display: inline-grid; place-items: center; font-size: 0.6875rem; background: rgba(17,48,171,0.08); color: var(--cyan-blue); }
.filter-chip[aria-pressed="true"] { background: var(--cyan-blue); border-color: var(--cyan-blue); color: #FFFFFF; }
.filter-chip[aria-pressed="true"] .filter-count { background: rgba(255,255,255,0.2); color: #FFFFFF; }
.control-filter-status { min-height: 1.4em; margin-bottom: 16px; font-size: 0.8125rem; color: #5A6072; }
.control { transition: background 0.35s ease; }
.control > * { transition: opacity 0.35s ease, filter 0.35s ease; }
.control.is-dimmed > * { opacity: 0.32; filter: grayscale(1); }
.panel.light .control.is-match { background: #F4F7FF; }
/* While a filter is on, the grid lines are drawn with a 1px gap over a tinted
   background instead of per-card borders, so cards can be reordered (matching
   domains first) without the borders breaking. */
.controls-grid.is-filtered { gap: 1px; background: var(--border-box); }
.panel.light .controls-grid.is-filtered { background: rgba(4,8,21,0.12); }
.controls-grid.is-filtered .control { border: none; background: var(--cyan-black); }
.panel.light .controls-grid.is-filtered .control { background: #FFFFFF; }
.panel.light .controls-grid.is-filtered .control.is-match { background: #F4F7FF; }
.controls-grid.is-filtered .control:last-child:nth-child(odd) { grid-column: auto; }
.controls-grid.is-filtered .control.is-dimmed { order: 1; }

.timeline-progress {
  position: absolute; left: 6px; top: 8px; width: 1px; height: 0; z-index: 1;
  background: linear-gradient(180deg, var(--cyan-aqua), #5B8CFF);
  box-shadow: 0 0 8px rgba(55,255,183,0.45);
}
.update::before { z-index: 2; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; border-color: rgba(245,246,252,0.3); }
.update.is-passed::before { border-color: var(--cyan-aqua); }
.update:first-of-type::before { border-color: var(--cyan-aqua); }

@media (max-width: 760px) {
  .control-filter { flex-direction: column; align-items: flex-start; gap: 10px; }
  .control-filter-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .control-filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-status-dot::after { animation: none; opacity: 0; }
  .cv-fill { transition: none; width: var(--cv); }
  .control, .control > * { transition: none; }
}
.ai-notes .sp-note { scroll-margin-top: 104px; }

.isp-full-meta { display: block; margin-top: 8px; font-size: 0.8125rem; color: rgba(245,246,252,0.55); }
