/* ───────────────────────────────────────────────────────────────
   Auditly marketing site — shared styling.
   Light executive surface · dark "audit file" panels · Signal Assurance palette.
   Component visuals come from the DS bundle; this file owns layout,
   scroll-reveal, marquee, the pinned tour, and page rhythm.
   ─────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
* { box-sizing: border-box; }
::selection { background: var(--fill-accent); color: var(--color-primary); }

a { color: inherit; }

/* ── Layout primitives ── */
.container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { position: relative; }
.section--pad { padding-top: var(--sec-pad, 104px); padding-bottom: var(--sec-pad, 104px); }
.section--pad-sm { padding-top: 72px; padding-bottom: 72px; }
.section--surface { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section--ink { background: var(--color-primary); color: #fff; }

/* ── Full dark section ── */
.section--dark { background: radial-gradient(120% 120% at 50% -10%, #122740 0%, #0B1828 55%, #081320 100%); color: #E8F0FA; position: relative; overflow: clip; }
.section--dark .h-section, .section--dark .h-display { color: #F3F8FF; }
.section--dark .lede { color: #A9BFD6; }
.section--dark .text-soft { color: #8EA4BD; }
.section--dark .statement { color: #EAF2FB; }
.section--dark .statement .hl { color: #7E97B2; }
.section--dark .statement .on { color: #F3F8FF; }
.section--dark .idx { color: var(--color-accent-2); }
.section--dark > .container { position: relative; z-index: 2; }

/* node-graph canvas background */
.nodefield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nodefield canvas { display: block; width: 100%; height: 100%; }
.section--dark > .nodefield { -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 55%, transparent 92%); mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 55%, transparent 92%); opacity: 1; }

@media (max-width: 900px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .section--pad { padding-top: 72px; padding-bottom: 72px; }
}

/* ── Tweak-driven toggles ── */
body.no-nodes .nodefield { display: none; }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.no-motion .marquee__track { animation: none !important; }
body.no-motion .secbar { opacity: 1 !important; transform: none !important; }
body.no-motion .bm-node { animation: none !important; opacity: 1 !important; transform: none !important; }
body.no-motion .meter__fill, body.no-motion .pbar__fill { transition: none !important; }

/* ── Section header brand mark (Auditly graph — gradient strokes + pulsing nodes) ── */
.secbar { display: inline-flex; opacity: 0; transform: translateY(7px) scale(0.9); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.secbar.is-in { opacity: 1; transform: none; }
.secbar__mark { display: block; overflow: visible; }
.secbar .bm-node { transform-box: fill-box; transform-origin: center; animation: bm-pulse 2.6s ease-in-out infinite; }
@keyframes bm-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.78); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .secbar { opacity: 1 !important; transform: none !important; } .secbar .bm-node { animation: none; opacity: 1; transform: none; } }

/* Display headings */
.h-display { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; color: var(--color-primary); margin: 0; }
.h-section { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--color-primary); margin: 0; }
.lede { font-size: 19px; line-height: 1.66; color: var(--color-text-soft); margin: 0; }
.text-soft { color: var(--color-text-soft); }
.mono { font-family: var(--font-mono); }

/* ── Faint engineering grid background ── */
.bg-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37,66,94,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,66,94,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--up { transform: translateY(26px); }
.reveal--left { transform: translateX(28px); }
.reveal--right { transform: translateX(-28px); }
.reveal--scale { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Marquee ── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee-scroll 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; padding: 0 26px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--color-secondary); white-space: nowrap; }
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent-2); flex: none; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ── Dark "audit file" panel ── */
.afile {
  background: linear-gradient(168deg, #0F2336 0%, #0A1727 100%);
  border: 1px solid #1E3550;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -28px rgba(8, 20, 36, 0.55);
  color: #E8F0FA;
  overflow: hidden;
}
.afile__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.afile__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.afile__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #8EA4BD; margin-left: 4px; }
.afile__id { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: #5E7491; }
.afile__body { padding: 8px 20px 18px; }
.arow { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.055); }
.arow:last-child { border-bottom: 0; }
.arow__label { font-size: 13.5px; color: #8EA4BD; flex: none; width: 168px; }
.arow__val { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: #E8F0FA; }
.arow__val .mono { font-family: var(--font-mono); }

/* mini meter inside panels */
.meter { position: relative; width: 128px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width 1100ms var(--ease-out); }
.meter__fill.is-in { width: var(--meter-w, 0%); }

/* light-surface progress bar */
.pbar { position: relative; display: block; width: 100%; height: 8px; border-radius: 999px; background: var(--color-surface-strong); overflow: hidden; }
.pbar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; overflow: hidden; transition: width 1200ms var(--ease-out); }
.pbar__fill.is-in { width: var(--pw, 0%); }
.pbar__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); transform: translateX(-100%); }
.pbar__fill.is-in::after { animation: pbar-shimmer 2.4s ease-in-out 1.1s infinite; }
@keyframes pbar-shimmer { 0% { transform: translateX(-100%); } 55% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
.section--dark .pbar { background: rgba(255,255,255,0.10); }
body.no-motion .pbar__fill::after { animation: none !important; }

/* pill for panel statuses */
.pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.pill--ok { background: rgba(52,210,123,0.14); color: #5EE39B; }
.pill--warn { background: rgba(244,181,73,0.15); color: #F6C56B; }
.pill--bad { background: rgba(255,123,123,0.15); color: #FF9B9B; }
.pill--info { background: rgba(56,214,242,0.14); color: #6FE0F5; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Generic feature / question / outcome cards ── */
.card-grid { display: grid; gap: 18px; }
.gc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px; transition: transform var(--motion-panel) var(--ease-out), box-shadow var(--motion-panel) var(--ease-out), border-color var(--motion-panel) var(--ease-out); }
.gc--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.gc__ico { width: 46px; height: 46px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--fill-accent); color: var(--color-accent); margin-bottom: 18px; }
.gc__ico--cyan { background: var(--fill-cyan); color: var(--color-accent-2); }
.gc h3 { font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--color-primary); margin: 0 0 9px; letter-spacing: -0.01em; }
.gc p { font-size: 15px; line-height: 1.62; color: var(--color-text-soft); margin: 0; }

/* dark-section card variant */
.section--dark .gc { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.10); }
.section--dark .gc--hover:hover { border-color: rgba(56,214,242,0.4); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7); background: rgba(255,255,255,0.055); }
.section--dark .gc h3 { color: #F3F8FF; }
.section--dark .gc p { color: #9CB3CC; }
.section--dark .gc__ico { background: rgba(56,214,242,0.12); color: #38D6F2; }
.section--dark .gc__ico--cyan { background: rgba(90,140,255,0.14); color: #7FA6FF; }

/* node-graph corner motif for cards */
.gc--graph { position: relative; overflow: hidden; }
.gc--graph::after { content: ""; position: absolute; right: -28px; top: -28px; width: 130px; height: 130px; background-image: radial-gradient(circle at 18px 18px, var(--color-accent-2) 2px, transparent 2.5px), radial-gradient(circle at 70px 40px, var(--color-accent) 1.6px, transparent 2px), radial-gradient(circle at 40px 84px, var(--color-border-strong) 1.6px, transparent 2px); opacity: 0.55; pointer-events: none; }

/* Numbered index chip */
.idx { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--color-accent); letter-spacing: 0.04em; }

/* ── Pinned scrollytelling tour ── */
.tour { position: relative; }
.tour__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.tour__rail { position: sticky; top: 92px; height: calc(100vh - 110px); display: flex; flex-direction: column; justify-content: center; }
.tour__steps { display: flex; flex-direction: column; }
.tour__step { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; }
.tour__visual { position: relative; }
.tour__panelwrap { position: relative; min-height: 360px; }
.tour__panel { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out); pointer-events: none; }
.tour__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tour__progress { display: flex; gap: 8px; margin-bottom: 26px; }
.tour__tick { height: 3px; flex: 1; border-radius: 999px; background: var(--color-border-strong); overflow: hidden; }
.tour__tick > span { display: block; height: 100%; width: 0; background: var(--color-accent); transition: width 420ms var(--ease-out); }
.tour__tick.is-active > span { width: 100%; }
.section--dark .tour__tick { background: rgba(255,255,255,0.12); }
.section--dark .tour__tick > span { background: linear-gradient(90deg, #5A8CFF, #38D6F2); }
.section--dark .tour__num { color: #38D6F2; }
.tour__num { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); letter-spacing: 0.08em; margin-bottom: 14px; }

@media (max-width: 920px) {
  .tour__grid { grid-template-columns: 1fr; gap: 0; }
  .tour__rail { position: relative; height: auto; padding: 8px 0 36px; }
  .tour__steps { gap: 0; }
  .tour__step { min-height: 0; padding: 30px 0; }
  .tour__panelwrap { min-height: 0; }
  .tour__panel { position: relative; opacity: 1; transform: none; }
  .tour__panel:not(.is-active) { display: none; }
}

/* ── Layer list (methodology) ── */
.layer { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 24px 0; border-top: 1px solid var(--color-border); }
.layer:last-child { border-bottom: 1px solid var(--color-border); }
.layer__n { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--color-surface-strong); }
.layer.is-in .layer__n { color: var(--color-accent); transition: color 500ms var(--ease-out); }
.layer__t { font-family: var(--font-heading); font-size: 21px; font-weight: 600; color: var(--color-primary); margin: 0 0 5px; letter-spacing: -0.01em; }
.layer__d { font-size: 15px; line-height: 1.6; color: var(--color-text-soft); margin: 0; max-width: 620px; }
.layer__tag { justify-self: end; }
@media (max-width: 760px) { .layer { grid-template-columns: 44px 1fr; } .layer__tag { display: none; } }

/* ── Layer spine (methodology — scroll-driven node graph) ── */
.lspine { position: relative; }
.lspine__rail { position: absolute; left: 31px; top: 28px; bottom: 28px; width: 2px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.lspine__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2)); border-radius: 2px; }
.lstep { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 26px; align-items: start; padding: 26px 0; }
.lstep__node { grid-row: 1; justify-self: center; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-text-soft); background: var(--color-surface); border: 2px solid var(--color-border); position: relative; z-index: 2; transition: color 420ms var(--ease-out), background 420ms var(--ease-out), border-color 420ms var(--ease-out), box-shadow 420ms var(--ease-out), transform 420ms var(--ease-out); }
.lstep.is-lit .lstep__node { color: #fff; background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2)); border-color: var(--color-accent); box-shadow: 0 0 0 6px var(--fill-accent); transform: scale(1.06); }
.lstep__body { opacity: 0; transform: translateX(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); padding-top: 4px; }
.lstep.is-on .lstep__body { opacity: 1; transform: none; }
.lstep__t { font-family: var(--font-heading); font-size: 21px; font-weight: 600; color: var(--color-primary); margin: 0 0 6px; letter-spacing: -0.01em; }
.lstep__d { font-size: 15px; line-height: 1.6; color: var(--color-text-soft); margin: 0; max-width: 600px; }
.lstep__tag { justify-self: end; opacity: 0; transition: opacity 600ms var(--ease-out) 120ms; padding-top: 8px; }
.lstep.is-on .lstep__tag { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lstep__body { opacity: 1; transform: none; }
  .lstep__tag { opacity: 1; }
}
@media (max-width: 760px) { .lstep { grid-template-columns: 46px 1fr; } .lstep__tag { display: none; } .lspine__rail { left: 22px; } }

/* ── Feature-to-assurance rows (platform) ── */
.fmap { display: flex; flex-direction: column; gap: 18px; }
.frow { display: grid; grid-template-columns: 56px 1.15fr 1fr 1fr; gap: 28px; align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 30px; transition: border-color var(--motion-panel) var(--ease-out), box-shadow var(--motion-panel) var(--ease-out); }
.frow:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.frow__num { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); padding-top: 3px; }
.frow__feature h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; color: var(--color-primary); margin: 0 0 8px; letter-spacing: -0.01em; }
.frow__feature p { font-size: 14.5px; line-height: 1.58; color: var(--color-text-soft); margin: 0; }
.fcol__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-soft); margin: 0 0 7px; display: flex; align-items: center; gap: 7px; }
.fcol__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-2); }
.fcol--q .fcol__k::before { background: var(--color-accent); }
.fcol p { font-size: 14.5px; line-height: 1.56; color: var(--color-text); margin: 0; }
.fcol--q p { color: var(--color-primary); font-weight: 500; }
@media (max-width: 1000px) {
  .frow { grid-template-columns: 40px 1fr; gap: 16px 18px; }
  .frow__feature { grid-column: 2; }
  .frow__a, .frow__q { grid-column: 2; }
}

/* ── Capability cards (platform) — visual, progress-bar driven ── */
.capc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px 24px 22px; height: 100%; display: flex; flex-direction: column; transition: transform var(--motion-panel) var(--ease-out), box-shadow var(--motion-panel) var(--ease-out), border-color var(--motion-panel) var(--ease-out); }
.capc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.capc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.capc__ico { width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--fill-cyan); }
.capc__idx { font-size: 12px; color: var(--color-text-soft); letter-spacing: 0.04em; }
.capc__t { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-primary); margin: 0 0 7px; letter-spacing: -0.01em; }
.capc__d { font-size: 14px; line-height: 1.55; color: var(--color-text-soft); margin: 0; }
.capc__metawrap { margin-top: auto; padding-top: 18px; }
.capc__meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.capc__k { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); }
.capc__pct { font-size: 15px; font-weight: 600; }

/* ── Capability assurance pipeline (platform) — phases flow into one conclusion ── */
.pipe { position: relative; }
.pipe__stages { display: grid; grid-template-columns: repeat(3, 1fr) 1.06fr; gap: 20px; align-items: stretch; }
.pstage { position: relative; height: 100%; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px 22px 24px; display: flex; flex-direction: column; transition: border-color var(--motion-panel) var(--ease-out), box-shadow var(--motion-panel) var(--ease-out), transform var(--motion-panel) var(--ease-out); }
.pstage:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.pstage__track { position: relative; height: 18px; margin-bottom: 16px; }
.pstage__track::before { content: ""; position: absolute; left: 8px; right: -20px; top: 50%; transform: translateY(-50%); height: 2px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2)); border-radius: 2px; opacity: 0.5; }
.pipe__stages > .pstage:last-child .pstage__track::before { display: none; }
.pstage__node { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2)); z-index: 2; animation: pnode-pulse 2.8s ease-in-out infinite; }
.pstage__node--proof { background: linear-gradient(180deg, #5A8CFF, #38D6F2); }
@keyframes pnode-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 42%, transparent); } 70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--color-accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 0%, transparent); } }
.pstage__k { font-size: 11px; letter-spacing: 0.12em; color: var(--color-accent); margin-bottom: 11px; }
.pstage__name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-primary); margin: 0 0 8px; letter-spacing: -0.01em; }
.pstage__d { font-size: 13.5px; line-height: 1.55; color: var(--color-text-soft); margin: 0 0 18px; }
.pcaps { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pcap { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--color-primary); padding: 9px 11px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.pcap__i { display: inline-flex; color: var(--color-accent); flex: none; }
/* outcome stage — the destination */
.pstage--proof { background: linear-gradient(168deg, #0F2336 0%, #0A1727 100%); border-color: #1E3550; box-shadow: 0 24px 60px -30px rgba(8, 20, 36, 0.5); }
.pstage--proof:hover { border-color: #2E4663; }
.pstage--proof .pstage__k { color: #6FE0F5; }
.pstage--proof .pstage__name { color: #F3F8FF; }
.pstage--proof .pstage__d { color: #9CB3CC; }
.pcap--proof { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #F3F8FF; padding: 12px 13px; background: rgba(56, 214, 242, 0.10); border: 1px solid rgba(56, 214, 242, 0.28); border-radius: var(--radius-md); margin-top: auto; }
.pcap--proof .pcap__i { color: #38D6F2; }
.pstage__seal { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: #8EA4BD; }
.pstage__seal svg { color: #34D27B; flex: none; }
body.no-motion .pstage__node { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .pstage__node { animation: none; } }
@media (max-width: 1040px) { .pipe__stages { grid-template-columns: 1fr 1fr; } .pstage__track::before { display: none !important; } }
@media (max-width: 560px) { .pipe__stages { grid-template-columns: 1fr; } }

/* ── Module chips (home product preview) ── */
.modgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mod { display: flex; align-items: center; gap: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 16px; transition: transform var(--motion-hover) var(--ease-out), border-color var(--motion-hover) var(--ease-out); }
.mod:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.mod__i { color: var(--color-accent); flex: none; display: inline-flex; }
.mod__t { font-size: 14px; font-weight: 500; color: var(--color-primary); line-height: 1.3; }
@media (max-width: 980px) { .modgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modgrid { grid-template-columns: 1fr; } }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(246,249,252,0.78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out); }
.nav.is-stuck { border-bottom-color: var(--color-border); background: rgba(246,249,252,0.9); }
.nav--dark { background: rgba(9,17,29,0.6); }
.nav--dark.is-stuck { background: rgba(9,17,29,0.88); border-bottom-color: #1E3550; }
.nav--dark .nav__link { color: #9CB3CC; }
.nav--dark .nav__link:hover, .nav--dark .nav__link.is-active { color: #F3F8FF; }
.nav__inner { max-width: 1200px; margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 30px; padding: 0 32px; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--color-secondary); text-decoration: none; position: relative; padding: 4px 0; transition: color var(--motion-hover) var(--ease-out); }
.nav__link:hover { color: var(--color-primary); }
.nav__link.is-active { color: var(--color-primary); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--color-accent); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.footer__top { max-width: 1200px; margin: 0 auto; padding: 64px 32px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); margin: 0 0 16px; }
.footer__col a { display: block; font-size: 14px; color: var(--color-secondary); text-decoration: none; margin-bottom: 11px; transition: color var(--motion-hover) var(--ease-out); }
.footer__col a:hover { color: var(--color-accent); }
.footer__blurb { font-size: 14px; line-height: 1.6; color: var(--color-text-soft); margin: 16px 0 0; max-width: 280px; }
.footer__bottom { border-top: 1px solid var(--color-border); }
.footer__bottom-inner { max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--color-text-soft); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }

/* ── Big quote / statement ── */
.statement { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.02em; line-height: 1.32; color: var(--color-primary); }
.statement .hl { color: var(--color-text-soft); }
.statement .on { color: var(--color-primary); }

/* helper: accent rule */
.rule-accent { width: 48px; height: 3px; border-radius: 3px; background: var(--color-accent); }

/* ── Product screenshots ("a look inside Auditly") ── */
.pshots { display: flex; flex-direction: column; gap: 92px; }
.pshot { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; }
.pshot--flip .pshot__copy { order: 2; }
.pshot__ey { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-2); display: inline-flex; align-items: center; gap: 8px; }
.pshot__ey::before { content: ""; width: 22px; height: 1.5px; background: var(--color-accent-2); border-radius: 2px; }
.pshot__copy h3 { font-family: var(--font-heading); font-weight: 600; font-size: 31px; letter-spacing: -0.02em; color: var(--color-primary); margin: 16px 0 0; line-height: 1.16; }
.pshot__copy p { font-size: 16.5px; line-height: 1.62; color: var(--color-text-soft); margin: 16px 0 0; max-width: 470px; }
.pshot__pts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.pshot__pts li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--color-text); }
.pshot__pts li b { color: var(--color-primary); font-weight: 600; }
.pshot__pts svg { color: var(--color-accent-2); flex: none; margin-top: 1px; }
.pshot__bullet { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent-2); flex: none; margin-top: 6px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-2) 48%, transparent); animation: pshot-pulse 2.6s ease-in-out infinite; }
@keyframes pshot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-2) 48%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-accent-2) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-2) 0%, transparent); }
}
body.no-motion .pshot__bullet { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .pshot__bullet { animation: none; } }

/* window frame — mirrors the product's dark UI */
.ashot { background: linear-gradient(168deg, #0F2336 0%, #0A1727 100%); border: 1px solid #1E3550; border-radius: 16px; box-shadow: 0 44px 100px -54px rgba(4, 12, 24, 0.92); overflow: hidden; }
.ashot__bar { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.018); }
.ashot__brand { display: inline-flex; align-items: center; gap: 8px; }
.ashot__brand svg { display: block; flex: none; }
.ashot__brand b { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: #E8F0FA; letter-spacing: -0.02em; }
.ashot__l3 { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; color: #38D6F2; border: 1px solid rgba(56,214,242,0.34); border-radius: 5px; padding: 1px 5px; }
.ashot__crumb { font-family: var(--font-mono); font-size: 11px; color: #5E7491; letter-spacing: 0.03em; padding-left: 6px; border-left: 1px solid rgba(255,255,255,0.09); }
.ashot__sys { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #8EA4BD; }
.ashot__body { padding: 18px 20px 20px; }
.ashot__cap { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.ashot__cap h4 { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: #E8F0FA; margin: 0; }
.ashot__cap span { font-family: var(--font-mono); font-size: 11px; color: #5E7491; }

/* shot: ontology entities + traceability chain */
.ont { display: flex; flex-direction: column; gap: 9px; }
.ont__node { display: flex; gap: 13px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.09); border-radius: 11px; background: rgba(255,255,255,0.022); }
.ont__ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(56,214,242,0.11); color: #38D6F2; }
.ont__code { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: #5E7491; }
.ont__name { font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; color: #E8F0FA; margin-top: 2px; }
.ont__desc { font-size: 12px; color: #8298B0; margin-top: 3px; line-height: 1.45; }
.ont__link { margin-left: auto; align-self: center; font-family: var(--font-mono); font-size: 10.5px; color: #6FE0F5; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ont__link::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #6FE0F5; }
.ont__chain { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.07); }
.ont__chip { font-family: var(--font-mono); font-size: 10.5px; color: #A9BFD6; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.ont__arrow { color: #41597A; display: inline-flex; }

/* shot: appetite rows */
.apt { display: flex; flex-direction: column; }
.apt__r { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.apt__r:last-child { border-bottom: 0; }
.apt__top { display: flex; align-items: center; gap: 12px; }
.apt__dom { font-size: 13.5px; font-weight: 500; color: #E8F0FA; }
.apt__pill { margin-left: auto; }
.apt__thr { font-family: var(--font-mono); font-size: 11px; color: #6B819B; margin-top: 5px; display: flex; align-items: center; gap: 10px; }
.apt__thr .meter { flex: none; }

/* shot: controls effectiveness table */
.ctbl { width: 100%; border-collapse: collapse; }
.ctbl th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: #5E7491; text-align: left; font-weight: 500; padding: 0 10px 11px 0; border-bottom: 1px solid rgba(255,255,255,0.09); }
.ctbl th.c, .ctbl td.c { text-align: center; padding-right: 0; }
.ctbl td { padding: 12px 10px 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.ctbl tr:last-child td { border-bottom: 0; }
.ctbl__id { font-family: var(--font-mono); font-size: 11px; color: #6FE0F5; }
.ctbl__obj { font-size: 12.5px; color: #E8F0FA; line-height: 1.38; max-width: 230px; }
.ctbl__dom { font-size: 11px; color: #6B819B; margin-top: 3px; }
@media (max-width: 940px) {
  .pshot { grid-template-columns: 1fr; gap: 32px; }
  .pshot--flip .pshot__copy { order: 0; }
  .ctbl__obj { max-width: none; }
}

/* CTA panel */
.ctapanel { background: linear-gradient(150deg, #0E2238 0%, #16314F 100%); border-radius: var(--radius-xl); padding: 64px 56px; position: relative; overflow: hidden; }
.ctapanel__nodes { z-index: 0; -webkit-mask-image: radial-gradient(circle at 82% 30%, #000, transparent 72%); mask-image: radial-gradient(circle at 82% 30%, #000, transparent 72%); }
@media (max-width: 700px) { .ctapanel { padding: 44px 28px; } }

/* ───────────────────────────────────────────────────────────────
   Mobile navigation (hamburger + slide-down panel)
   ─────────────────────────────────────────────────────────────── */
.nav__toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); color: var(--color-primary); cursor: pointer;
  transition: background var(--motion-hover) var(--ease-out), border-color var(--motion-hover) var(--ease-out);
}
.nav__toggle:hover { background: var(--color-surface-alt); }
.nav--dark .nav__toggle { color: #E8F0FA; border-color: rgba(255,255,255,0.18); }
.nav--dark .nav__toggle:hover { background: rgba(255,255,255,0.06); }

.nav__mobile {
  display: none; overflow: hidden;
  border-top: 1px solid var(--color-border);
  background: rgba(246,249,252,0.98);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav--dark .nav__mobile { background: rgba(9,17,29,0.97); border-top-color: #1E3550; }
.nav__mobile-inner { max-width: 1200px; margin: 0 auto; padding: 12px 22px 24px; display: flex; flex-direction: column; }
.nav__mobile-link {
  font-size: 16px; font-weight: 500; color: var(--color-primary); text-decoration: none;
  padding: 15px 4px; border-bottom: 1px solid var(--color-border);
}
.nav--dark .nav__mobile-link { color: #E8F0FA; border-bottom-color: rgba(255,255,255,0.08); }
.nav__mobile-link.is-active { color: var(--color-accent); }
.nav__mobile .adl-btn { margin-top: 20px; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__right { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile.is-open { display: block; }
  .nav__inner { gap: 14px; }
}
@media (min-width: 761px) { .nav__mobile { display: none !important; } }

/* ───────────────────────────────────────────────────────────────
   Responsive: tablet & mobile
   ─────────────────────────────────────────────────────────────── */

/* Fluid headings + lede on smaller screens (override inline px sizes) */
@media (max-width: 880px) {
  .h-display { font-size: clamp(33px, 8.4vw, 52px) !important; }
  .h-section { font-size: clamp(27px, 6.2vw, 40px) !important; }
  .lede { font-size: 16.5px !important; }
}

/* Two-column hero → single column */
@media (max-width: 900px) {
  .hero-2col { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* Generic 2-column content split → stack */
@media (max-width: 860px) {
  .split-2col { grid-template-columns: 1fr !important; gap: 38px !important; align-items: start !important; }
}

/* Card grids: 3/4-up → 2-up on tablet, 1-up on phone */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr !important; }
}

/* Stat strip + flow list */
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 520px) { .flow-2col { grid-template-columns: 1fr !important; } }

/* Compliance row (methodology) → stacked */
@media (max-width: 760px) {
  .compliance-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .compliance-row > span:last-child { justify-content: flex-start !important; max-width: none !important; }
}

/* Audit-file panels: keep meters + labels from overflowing narrow screens */
@media (max-width: 560px) {
  .afile__body { padding-left: 16px; padding-right: 16px; }
  .arow { gap: 10px; flex-wrap: wrap; }
  .arow__label { width: auto !important; flex: 1 1 auto; min-width: 120px; }
  .arow__val { margin-left: auto; }
  .meter { width: 84px !important; }
  .afile__id { display: none; }
}

/* Product-screenshot windows */
@media (max-width: 600px) {
  .ashot__bar { flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; }
  .ashot__crumb { display: none; }
  .ashot__sys { margin-left: auto; font-size: 11px; }
  .ashot__body { padding: 14px 14px 16px; }
  .ctbl th, .ctbl td { padding-right: 8px; }
  .ctbl__obj { font-size: 12px; }
  .ont__node { padding: 11px 12px; }
  .ont__desc { display: none; }
}

/* Section padding tightens further on phones */
@media (max-width: 560px) {
  .section--pad { padding-top: 56px; padding-bottom: 56px; }
  .container { padding-left: 18px; padding-right: 18px; }
}

/* ───────────────────────────────────────────────────────────────
   Contact / demo-request form
   ─────────────────────────────────────────────────────────────── */
#contact { scroll-margin-top: 84px; }

.cpoint { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--color-border); }
.cpoint:last-child { border-bottom: 1px solid var(--color-border); }
.cpoint__i {
  flex: none; width: 38px; height: 38px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill-cyan); color: var(--color-accent-2);
}
.cpoint__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-soft); margin-bottom: 3px; }
.cpoint__v { font-size: 15px; font-weight: 500; color: var(--color-primary); line-height: 1.4; }

.cform {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__note { font-size: 12.5px; color: var(--color-text-soft); margin: 16px 0 0; text-align: center; }
.cform__err {
  font-size: 13.5px; line-height: 1.5; color: var(--color-danger); margin: 16px 0 0;
  background: var(--fill-danger); border: 1px solid color-mix(in srgb, var(--color-danger) 28%, transparent);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.cform__err a { color: var(--color-danger); font-weight: 600; }
.cform__done { text-align: center; padding: 18px 8px 22px; }
.cform__check {
  width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(52,210,123,0.14); color: var(--color-success); margin-bottom: 16px;
}
.cform__done h3 { font-family: var(--font-heading); font-weight: 600; font-size: 21px; color: var(--color-primary); margin: 0 0 10px; letter-spacing: -0.01em; }
.cform__done p { font-size: 15px; line-height: 1.6; color: var(--color-text-soft); margin: 0 auto; max-width: 340px; }
.cform__done p b { color: var(--color-primary); }

@media (max-width: 520px) {
  .cform { padding: 24px 20px; }
  .cform__row { grid-template-columns: 1fr; }
}
