@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@500;600;700&family=Newsreader:opsz,wght@6..72,500&display=swap");

/* ==========================================================================
   DEFENDFLOW SKIN  -  light edition (2026-09)
   ==========================================================================
   Loads after each page's inline base <style> and re-themes it. The base
   layers are dark-first, so every colour they hardcode is overridden here;
   layout rules (grids, widths, spacing) are left to the base unless a light
   surface needs different geometry.

   House rules:
     - White pages, "snow" tinted bands, one dark surface (code, footer).
     - "Newsreader" (serif) for the H1/H2 display line, "Geist" for everything
       else, "Geist Mono" only for code and data.
     - Buttons and chips are pills; cards are 12px; frames are 12px.
     - --accent is for links, icons and emphasis; --ink is the CTA fill.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-tint: #eef6fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbfe;
  --border: #e4e7ef;
  --border-strong: #cfd5e1;
  --input-border: #7f8aa0;   /* form-field edges, 3.4:1 on white (WCAG 1.4.11) */
  --text: #0f1729;
  --text-muted: #5b6579;
  --ink: #0f1729;
  --ink-hover: #1e2a44;
  --accent: #0369a1;
  --accent-hover: #075985;
  --accent-bright: #0ea5e9;
  --accent-soft: #e6f4fd;
  --blue: #0369a1;
  --purple: #6d4fd4;
  --amber: #b45309;
  --red: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 999px;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

html {
  background: var(--bg);
  color-scheme: light;
  scroll-padding-top: 88px;
}

body {
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(14, 165, 233, 0.22);
  color: var(--text);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* --- Accessibility utilities --------------------------------------------- */
/* Skip link: first child of <body> on every page, invisible until it takes
   keyboard focus, then drops in over the fixed nav. Targets <main id="main">. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 0.75rem; color: #fff; outline: 2px solid var(--accent); outline-offset: 2px; }

/* Visually hidden, still read by assistive tech. */
.sr-only {
  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;
}

/* --- Nav ------------------------------------------------------------------ */
.nav {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  height: 72px;
  max-width: 1280px;
}

.nav-brand {
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 8px;
}

.nav-links { gap: 1.6rem; }

.nav-links a {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-toggle span { background: var(--text); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  min-height: 42px;
  padding: 0 1.3rem;
  border-radius: var(--pill);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
              box-shadow 160ms ease, transform 160ms ease;
}

.btn-large {
  min-height: 50px;
  padding: 0 1.8rem;
  font-size: 1rem;
}

.btn-primary,
.nav-links a.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn-primary:hover,
.nav-links a.btn-primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.btn-outline,
.nav-links a.btn-outline {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover,
.nav-links a.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
  color: var(--text);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 9.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 55% at 50% -10%, rgba(14, 165, 233, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 88% 10%, rgba(109, 79, 212, 0.08), transparent 70%),
    linear-gradient(180deg, #f2f8fd 0%, #ffffff 72%);
}

.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(78% 70% at 50% 44%, rgba(255,255,255,0.88), rgba(255,255,255,0.55) 48%, transparent 84%); }

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge,
.err-code {
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.err h1 {
  color: var(--text);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

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

.hero p,
.err > .err-inner > p {
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

/* --- Display headings ----------------------------------------------------- */
.section-header h2,
.definition-inner h2,
.fine-print h2,
.deploy-inner h2,
.trial-inner h2,
.cta h2,
.cta-end h2,
.techzone-head h2,
.prose h2,
#demo h2 {
  color: var(--text);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.definition-inner h2,
.deploy-inner h2,
.fine-print h2,
.prose h2,
.cta-end h2,
.techzone-head h2,
#demo h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.trial-inner h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }

.stake-card h3,
.wf-step h3,
.link-card h2 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p { color: var(--text-muted); }

/* --- Eyebrows ------------------------------------------------------------- */
.section-header::before { content: none; }

.section-header[data-eyebrow]::before,
.eyebrow {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Section surfaces ----------------------------------------------------- */
.frameworks,
.stance,
.features,
.definition,
.faq,
.pricing,
.matrix,
.fine-print,
.comparison,
.stakeholders,
.workflow,
.trial,
.deploy,
.cta,
.section,
.howto,
.attest,
.screenshot {
  border-color: var(--border);
  background-color: var(--bg);
}

/* Tinted bands, so consecutive sections read as distinct blocks without the
   dark theme's hairline-on-navy trick. */
.statband,
.screenshot,
.features,
.attest,
.definition,
.deploy,
.fine-print,
.section.alt,
.stakeholders,
.matrix,
.toc,
#demo {
  background-color: var(--bg-alt);
}

.features:nth-of-type(even) { background-color: var(--bg-alt); }
.pricing { background-color: var(--bg); }

/* --- Cards ---------------------------------------------------------------- */
.glance-card,
.feature-card,
.price-card,
.trial-inner,
.faq-item,
.definition-callout,
.fp-item,
.stake-card,
.wf-step,
.link-card,
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.callout { border-left: 3px solid var(--accent); }

.glance-card,
.feature-card,
.price-card,
.faq-item,
.fp-item,
.stake-card,
.wf-step,
.link-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.glance-card:hover,
.feature-card:hover,
.price-card:hover,
.faq-item:hover,
.fp-item:hover,
.stake-card:hover,
.wf-step:hover,
.link-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.feature-card:hover,
.link-card:hover { transform: translateY(-2px); }

.faq-item h3 { color: var(--text); }

.feature-icon {
  border: 1px solid rgba(3, 105, 161, 0.14);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.framework-item,
.stance-item h2,
.glance-card dt {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.framework-item .count,
.tag { border-radius: var(--pill); }

/* --- Screenshot frames ---------------------------------------------------- */
.screenshot-frame,
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screenshot-bar,
thead th {
  border-color: var(--border);
  background: #f1f3f8;
}

.screenshot-dot {
  border-radius: 50%;
  background: #d3d8e3;
}

table { color: var(--text-muted); }

th,
td,
tbody td { border-color: var(--border); }

thead th,
td.feature { font-family: var(--sans); font-weight: 600; color: var(--text); }

tbody tr:hover td { background: var(--bg-alt); }

td.ours,
thead th.ours { background: var(--accent-soft); }

/* --- Code ----------------------------------------------------------------- */
.code-block {
  border: 1px solid #1e2a44;
  border-radius: var(--radius);
  background: var(--ink);
  color: #dbe3ee;
  font-family: var(--mono);
  box-shadow: var(--shadow-md);
}

.code-block .comment { color: #8b96aa; }
.code-block .cmd { color: #7dd3fc; }
.code-block .k { color: #c4b5fd; }
.code-block .s { color: #86efac; }

code,
td code,
.fine-print code,
.stance-item code,
.price-card code,
.faq-item code,
.cap-copy code {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85em;
}

/* --- Forms ---------------------------------------------------------------- */
.trial-form input,
.trial-form select,
.sales-form input,
.sales-form select,
.sales-form textarea {
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* Focus ring stays an outline (2px --accent, 5.9:1 on white); the soft
   box-shadow is decoration only. Do not reintroduce outline: none here or in
   the pages' inline styles, this is the single source for form focus. */
.trial-form input:focus,
.trial-form select:focus,
.sales-form input:focus,
.sales-form select:focus,
.sales-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.14);
}

.trial-result,
.bac-result { border-radius: var(--radius-sm); }

.trial-result.success,
.bac-result.success {
  background: var(--accent-soft);
  border: 1px solid rgba(3, 105, 161, 0.25);
  color: var(--text);
}

.trial-result.error,
.bac-result.error {
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: var(--red);
}

.notice,
.stake-win { border-radius: var(--radius-sm); }

.workflow .wf-step .num,
.wf-step .num {
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  border-top: 0;
  background: var(--ink);
  color: #a8b3c7;
}

.footer a { color: #d5dce8; }
.footer a:hover { color: #fff; }
.footer p { color: #8b96aa; }

@media (max-width: 768px) {
  /* The mobile menu is position:fixed. A backdrop-filter on an ancestor makes
     that ancestor a containing block for fixed descendants, so with the blur
     on .nav the menu's offsets resolved against the ~73px header instead of
     the viewport — a `bottom: 0` collapsed the open panel to a ~37px sliver
     that clipped every link. On mobile we drop the blur on .nav (solid bg
     instead) so nothing between the menu and the viewport is a containing
     block, and the panel fills the screen below the header. */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
  }
  .nav-links a { font-size: 1.15rem; padding: 0.9rem 0; }

  .hero { padding-top: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   SHARED MARKETING COMPONENTS
   ========================================================================== */

/* --- Inline SVG icons ----------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg { width: 32px; height: 32px; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --- Screenshot-led feature card ------------------------------------------ */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.shot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.shot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.shot-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
  transition: transform 320ms ease;
}

.shot-card:hover .shot-media img { transform: scale(1.015); }

.shot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem 1.5rem;
}

.shot-body h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.shot-body h3 .icon {
  flex: none;
  color: var(--accent);
}

.shot-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.shot-body .learn {
  margin-top: auto;
  padding-top: 0.35rem;
}

.learn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.learn::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.shot-card:hover .learn::after,
.learn:hover::after { transform: translateX(3px); }

/* --- Stat band ------------------------------------------------------------ */
.statband {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  padding: 2.8rem 2rem 2.4rem;
}

.statband-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
}

.stat dt {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat dd {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat dd span { color: var(--accent); }

/* Big screenshot straight under the numbers; the two share one tinted band. */
.screenshot { padding-top: 0.5rem; }

/* --- Alternating media/copy rows ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 0;
}

.split + .split { border-top: 1px solid var(--border); }

@media (min-width: 860px) {
  .split.reverse .split-media { order: 2; }
}

.split-copy h3 {
  margin-bottom: 0.9rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.split-copy p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.split-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Checklist ------------------------------------------------------------ */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.ticks li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Framework wall ------------------------------------------------------- */
.fw-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
  width: 100%;
  min-width: 0;
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}

.fw-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  transition: background 160ms ease;
}

.fw-cell:hover { background: var(--bg-alt); }

.fw-cell b {
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fw-cell span {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.fw-cell:hover span { color: var(--accent); }

@media (max-width: 560px) {
  .fw-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-cell { padding: 0.7rem 0.8rem; }
}

@media (max-width: 640px) {
  .shot-grid { grid-template-columns: 1fr; }
  .split { gap: 2rem; padding: 2.5rem 0; }
}

/* --- Hero qualifying marks ------------------------------------------------ */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-chips .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.shot-card,
.mini-card {
  color: inherit;
  text-decoration: none;
}

/* --- Mini cards ----------------------------------------------------------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 1.5rem auto 0;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.mini-card .icon-lg {
  padding: 6px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mini-card h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.mini-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.mini-card .learn { margin-top: auto; padding-top: 0.5rem; }
.mini-card:hover .learn::after { transform: translateX(3px); }

.section-more {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.shot-card:focus-visible,
.mini-card:focus-visible,
.fw-cell:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Technical zone divider (legacy, kept for /docs deep links) ----------- */
.techzone-head {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}

.techzone-inner { max-width: 720px; margin: 0 auto; }

.techzone-head p {
  margin-top: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   /platform  -  capability detail page
   ========================================================================== */
.toc {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 2rem;
}

.toc-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.toc-group > span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }

.toc-group a {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.toc-group a:hover { color: var(--text); border-bottom-color: var(--border-strong); }

.capgroup { background-color: var(--bg); border-color: var(--border); }
.capgroup:nth-of-type(even) { background-color: var(--bg-alt); }

.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.6rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}

.cap:first-of-type { border-top: 0; }

/* Text-only capability: keep the full-width border-top aligned with its
   neighbours and cap only the copy's measure. */
.cap:not(:has(.cap-media)) { grid-template-columns: minmax(0, 1fr); }
.cap:not(:has(.cap-media)) .cap-copy { max-width: 62ch; }

.cap-copy h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cap-copy h3 .icon { flex: none; color: var(--accent); }

.cap-copy p { color: var(--text-muted); line-height: 1.7; }
.cap-copy p + p { margin-top: 0.6rem; }
.cap-copy ul {
  margin: 0.6rem 0 0.9rem 1.15rem;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.cap-copy li { margin: 0.2rem 0; padding-left: 0.15rem; }

.cap-copy em {
  color: var(--text-muted);
  font-style: normal;
  border-left: 2px solid rgba(180, 83, 9, 0.55);
  padding-left: 0.6rem;
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.cap-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.cap-media img { width: 100%; height: auto; display: block; }

.cta-end {
  padding: 5.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(14, 165, 233, 0.14), transparent 70%),
    var(--bg-alt);
}

.cta-end-inner { max-width: 680px; margin: 0 auto; }

.cta-end p { margin-top: 0.8rem; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 860px) {
  .cap { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

.trial-terms {
  max-width: 40rem;
  margin: 1.4rem auto 1.8rem;
  text-align: left;
}

.trial-terms strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   FUNNEL HOMEPAGE
   ========================================================================== */
.fw-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.fw-chips li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, background 160ms ease;
}

.fw-chips li:hover {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

.howto {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.howto-inner { max-width: 1200px; margin: 0 auto; }

.howto-steps {
  margin-top: 0;
  padding: 0;
  list-style: none;
}

.howto-steps .mini-card { min-height: 0; }

.cmd-line {
  display: block;
  margin-top: 0.4rem;
  padding: 0.65rem 0.6rem;
  border: 1px solid #1e2a44;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.attest {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.attest .split-copy .learn { margin-top: 0.25rem; }

.trial-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  margin: 0 -1.5rem 1.8rem;
  padding: 0;
  list-style: none;
}

.trial-facts li {
  padding: 0 0.6rem;
  border-left: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trial-facts li:first-child { border-left: 0; }

.trial-note,
.trial-alt {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.trial-alt { margin-top: 0.6rem; }
.trial-alt a { color: var(--accent); font-weight: 600; }

.trial-inner { box-shadow: var(--shadow-md); }

/* --- Footer columns ------------------------------------------------------- */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 2rem 3rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a { font-size: 0.9rem; }

.footer-head {
  margin-bottom: 0.35rem;
  color: #7dd3fc;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   /continuous-attestation  -  diagram and callouts, re-inked for white
   ========================================================================== */
.diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.d-box { fill: #ffffff; stroke: var(--border-strong); stroke-width: 1.5; }
.d-bar { fill: #f6f7fb; stroke: var(--border-strong); stroke-width: 1.5; }
.d-band { fill: #eef6fc; stroke: rgba(14, 165, 233, 0.55); stroke-width: 1.5; }
.d-rule { stroke: var(--border-strong); stroke-width: 1; }
.d-dash { stroke: #9aa5b8; stroke-width: 1.4; fill: none; stroke-dasharray: 5 5; }
.d-flow { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-glyph { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-tick { fill: var(--accent); }
.d-numbox { fill: #ffffff; stroke: var(--accent); stroke-width: 1.5; }
.d-num { fill: var(--accent); font-family: var(--sans); font-size: 13px; font-weight: 700; text-anchor: middle; }
.d-eyebrow { fill: var(--accent); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.d-col { fill: var(--text-muted); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.d-title { fill: var(--text); font-family: var(--sans); font-size: 21px; font-weight: 600; }
.d-sub { fill: var(--text); font-family: var(--sans); font-size: 16px; font-weight: 600; }
.d-mono { fill: var(--text-muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.3px; }
.d-code { fill: var(--accent); font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }
.d-note { fill: var(--text-muted); font-family: var(--sans); font-size: 14px; }

.callout p { color: var(--text); }
.prose p strong { color: var(--text); }

/* ==========================================================================
   /pricing
   ========================================================================== */
.price-card.featured {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14), var(--shadow-md);
}

.price-card.featured::before {
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 { color: var(--text); }

#demo { border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .howto { padding: 3rem 1rem; }
  .attest { padding: 1rem; }
  .footer-cols { gap: 1.5rem 2rem; text-align: center; }
  .footer-col { align-items: center; }
  .trial-facts { margin-left: 0; margin-right: 0; gap: 0.4rem; }
  .trial-facts li {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--pill);
    font-size: 0.68rem;
  }
  .trial-facts li:first-child { border-left: 1px solid var(--border-strong); }
}

/* ==========================================================================
   FLOW MOTIF  -  ambient theme layer (2026-09)
   ==========================================================================
   Two decorative, aria-hidden hooks ship on every marketing page:
     .flow-field    first child of <section class="hero">, a slow drifting
                    gradient + ribbon motif behind the hero copy.
     .flow-divider  a thin flowing current placed between top-level sections.
   Both are pure decoration for a compliance-buyer audience (CISO/CRO/VP
   Security/CCO/CLO): motion stays slow, low-contrast and GPU-only
   (transform/background-position only), and freezes to a still frame under
   prefers-reduced-motion. Subtle over showy - dial opacity/speed down, not
   up, if ever in doubt.
   ========================================================================== */

/* Hero stacking: the field paints behind existing hero content. These two
   rules are the only ones in this block that target a pre-existing
   selector - everything else below is new, .flow-*-scoped. */
.hero { position: relative; overflow: hidden; }
.hero > :not(.flow-field) { position: relative; z-index: 1; }

/* --- Hero field -------------------------------------------------------------
   Three blurred colour pools plus three hairline bezier ribbons, composed
   into one absolutely-positioned layer so a single slow transform drifts
   them together as one organic mass. Masked out under the (left-aligned)
   headline so body copy never sits on top of moving background. */
.flow-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

@keyframes flow-drift {
  0%   { transform: translate3d(-3.5%, -1%, 0) scale(1.05) skew(-0.6deg, 0deg); }
  50%  { transform: translate3d(3.5%, 1.6%, 0) scale(1.12) skew(0.6deg, 0deg); }
  100% { transform: translate3d(-3.5%, -1%, 0) scale(1.05) skew(-0.6deg, 0deg); }
}

/* --- Section divider ---------------------------------------------------------
   A calm, repeating current between top-level sections. Low enough contrast
   to sit on either --bg or --bg-alt without competing with the copy above
   or below it. */
.flow-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 center;
  background-size: 240px 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64' viewBox='0 0 240 64'%3E%3Cpath d='M0 34 C 30 14, 60 54, 90 34 S 150 14, 180 34 S 240 54, 240 34' fill='none' stroke='%230369a1' stroke-width='1.6' stroke-linecap='round' opacity='0.14'/%3E%3C/svg%3E");
  will-change: background-position;
  animation: flow-shift 14s linear infinite;
}

@keyframes flow-shift {
  from { background-position-x: 0; }
  to   { background-position-x: 240px; }
}

/* --- Reduced motion -----------------------------------------------------------
   Holds a still, already-composed frame instead of animating. */
@media (prefers-reduced-motion: reduce) {
  .flow-field,
  .flow-divider {
    animation: none !important;
  }
}


/* ===================== GET-STARTED + FLOW TAB ADD-ONS ===================== */
/* Hero email capture (replaces the old dual CTA) */
.hero-getstarted { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; max-width: 460px; }
.hero-getstarted input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 0.85rem 1rem; font-size: 1rem;
  color: var(--text); background: var(--bg-card, #fff);
  border: 1px solid #d8e0ec; border-radius: 10px;
}
.hero-getstarted input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hero-getstarted .btn { flex: 0 0 auto; }

/* "How it works" as a collapsible footnote tab */
.howto-details { border: 1px solid #e3e9f2; border-radius: 14px; background: var(--bg-card, #fff); overflow: hidden; }
.howto-details > summary {
  cursor: pointer; list-style: none; padding: 1rem 1.4rem; font-weight: 650; color: var(--text);
  display: flex; align-items: center; gap: 0.7rem; font-size: 1.05rem;
}
.howto-details > summary::-webkit-details-marker { display: none; }
.howto-details > summary .eyebrow { margin: 0; }
.howto-details > summary::after { content: "\203A"; margin-left: auto; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 200ms ease; }
.howto-details[open] > summary::after { transform: rotate(90deg); }
.howto-details .howto-body { padding: 0.4rem 1.4rem 1.5rem; }
.deploy-note { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #eef2f8; }
.deploy-note h3 { margin: 0 0 0.4rem; }
@media (prefers-reduced-motion: reduce) { .howto-details > summary::after { transition: none; } }


/* Hero H1: brand-forward, flowing gradient + gentle flow motion */
.hero h1 {
  white-space: nowrap;
  font-size: clamp(1.9rem, 5vw, 3.7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  line-height: 1.02;
}
.hero h1 .hbrand {
  background: linear-gradient(100deg, #0f1729 0%, #0f1729 34%, #0369a1 64%, #0ea5e9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero h1 .htag { font-size: 0.56em; font-weight: 600; letter-spacing: -0.005em; color: var(--accent); }
@keyframes title-flow { from { background-position: 0% center; } to { background-position: 230% center; } }
@keyframes brand-float { 0%, 100% { transform: translateY(0) skew(0deg, 0deg); } 50% { transform: translateY(-7px) skew(-0.6deg, 0.4deg); } }
/* Subhead on one line - homepage only (has .hbrand); other heros wrap */
.hero:has(.hbrand) p { white-space: nowrap; }
@media (max-width: 640px) { .hero h1 { white-space: normal; } .hero:has(.hbrand) p { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .hbrand { animation: none; } }

/* Flow line graphics removed per request — the flowing title carries the theme */
.flow-divider { display: none !important; }


/* Aurora flow background - eye-catching, blurred, always moving */
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(-5deg) scale(1.05); }
  50%  { transform: translate3d(4%, 2%, 0)  rotate(4deg)  scale(1.16); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-2deg) scale(1.09); }
}
@media (prefers-reduced-motion: reduce) { .flow-field { animation: none; } }


/* Data-flow canvas (homepage hero) - light-tuned port of defendflow.xyz */
.flow-canvas-wrap { inset: 0 !important; background: none !important; filter: none !important; animation: none !important; opacity: 1 !important; }
.flow-canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}


/* Flowing clouds - two blurred layers, pronounced opposing drift */
.flow-field::before, .flow-field::after {
  content: ""; position: absolute; inset: -30%;
  filter: blur(56px) saturate(1.2);
  will-change: transform;
}
.flow-field::before {
  background:
    radial-gradient(38% 46% at 24% 40%, rgba(14,165,233,0.55), transparent 62%),
    radial-gradient(34% 42% at 66% 70%, rgba(2,132,199,0.48), transparent 62%),
    radial-gradient(30% 38% at 88% 30%, rgba(109,79,212,0.42), transparent 62%);
  animation: cloud-drift-a 13s ease-in-out infinite alternate;
}
.flow-field::after {
  background:
    radial-gradient(34% 44% at 78% 60%, rgba(45,212,191,0.42), transparent 62%),
    radial-gradient(30% 38% at 40% 22%, rgba(14,165,233,0.42), transparent 62%);
  animation: cloud-drift-b 17s ease-in-out infinite alternate;
}
@keyframes cloud-drift-a { 0% { transform: translate3d(-14%,-7%,0) scale(1.06) rotate(-4deg); } 100% { transform: translate3d(14%,7%,0) scale(1.26) rotate(4deg); } }
@keyframes cloud-drift-b { 0% { transform: translate3d(13%,8%,0) scale(1.22) rotate(3deg); } 100% { transform: translate3d(-13%,-8%,0) scale(1.04) rotate(-3deg); } }

/* Hero-less pages (e.g. /platform): first section must clear the fixed nav */
#main > section:first-of-type:not(.hero) { padding-top: 8rem; }
@media (max-width: 640px) { #main > section:first-of-type:not(.hero) { padding-top: 6.5rem; } }


/* Stripe-style animated mesh gradient (homepage hero) - vendored whatamesh */
#gradient-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  --gradient-color-1: #cfe9fb;
  --gradient-color-2: #8fcdf4;
  --gradient-color-3: #4aa3e6;
  --gradient-color-4: #a2e2ea;
}

/* Footer legal row: DefendFlow left of copyright */
.footer-legal { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.footer-brand { font-weight: 700; }

/* CTA-end trust chips (centered) */
.cta-end .cta-chips { justify-content: center; margin: 0 auto 1.4rem; }
