/* FileFerret — curtilage.zone
   Aesthetic: a clean, professional, trustworthy light theme. Deep-navy ink on
   white, a confident trust-blue primary with a positive green for "yes/secure"
   cues, Fraunces display serif against a Hanken Grotesk body, JetBrains Mono for
   query syntax. CSP-safe: no inline styles/scripts; load animations use
   nth-child delays. */

:root {
  --bg:        #ffffff;
  --bg-2:      #f3f7fc;   /* light blue-tinted band / footer / trust strip */
  --surface:   #ffffff;
  --surface-2: #f6f9fd;
  --line:      rgba(20, 45, 85, 0.12);
  --line-2:    rgba(20, 45, 85, 0.20);

  --fg:        #112038;   /* deep navy ink — headings & strong */
  --fg-soft:   #3c4a60;   /* body text (AA on white) */
  --muted:     #5c6a82;   /* muted labels (AA on white) */

  --acc:       #1f6feb;   /* primary trust blue (fills, icons, buttons) */
  --acc-soft:  #1559c0;   /* darker blue for link/text on white (AA) */
  --acc-deep:  #0f3f8f;   /* deep blue — borders / hover */
  --acc-glow:  rgba(31, 111, 235, 0.12);

  /* positive / "secure" green — used for ticks, status, success */
  --grn:       #15a34a;
  --grn-soft:  #12823b;   /* green text on white (AA) */
  --grn-deep:  #0d5e2c;
  --grn-glow:  rgba(21, 163, 74, 0.12);

  --amber:     #b45309;   /* darker amber — warning / "problem" labels on white */

  /* Multi-hue accent set — cycled across cards/steps/icons for visual energy.
     Each is AA-contrast as text on white and reads well as a chip fill. */
  --c-blue:    #1f6feb;
  --c-teal:    #0e9aa6;
  --c-green:   #15a34a;
  --c-violet:  #6d4ae0;
  --c-amber:   #d97706;
  --c-rose:    #e0457b;

  /* AA "ink" variants of the accent hues — darkened so they clear 4.5:1 as
     small text on white AND on their own 12% tint (used by badges / colored
     headings). The bright hues above stay for fills, icons, and borders (which
     only need 3:1). See docs/accessibility-conformance.md. */
  --c-blue-ink:   #1559c0;
  --c-teal-ink:   #0a6a73;
  --c-green-ink:  #0b7233;
  --c-violet-ink: #5a34cf;
  --c-amber-ink:  #8a4b06;
  --c-rose-ink:   #b21e58;

  /* Darker amber for warning text on a warm tint (AA). */
  --amber-deep: #8a3f07;
  /* Button-fill blue: darker than --acc so #fff label text clears 4.5:1. */
  --acc-btn:    #175fd0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1140px;
  --r:   14px;
  --r-sm: 9px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-soft);
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(31, 111, 235, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(21, 163, 74, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Structure ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--fg); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--acc-soft); text-decoration: none; }
a:hover { color: var(--acc); }
strong { color: var(--fg); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--acc); color: #ffffff; padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.brand-text { font-size: 1.18rem; font-family: var(--sans); }
.logo { width: 30px; height: 30px; flex: none; }
.logo-page  { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.logo-line  { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.logo-lens  { fill: var(--bg); stroke: var(--acc); stroke-width: 2; }
.logo-handle{ stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--fg-soft); font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: var(--fg); }
.site-nav a.is-active { color: var(--acc); }
.nav-cta {
  border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem 1rem;
  color: var(--fg) !important; transition: border-color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--acc); background: var(--acc-glow); }

.nav-burger { display: none; border: 0; background: none; padding: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--acc-btn); color: #ffffff; box-shadow: 0 10px 26px -12px rgba(31,111,235,.55); }
.btn-primary:hover { background: var(--acc-soft); color: #ffffff; box-shadow: 0 16px 38px -14px rgba(31,111,235,.6); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--acc); color: var(--fg); background: var(--acc-glow); }

/* ---- Eyebrow / kicker / section heads ----------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 0 4px var(--grn-glow); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--grn-glow); } 50% { box-shadow: 0 0 0 7px transparent; } }

.kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin: 0 0 .8rem; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.band-head { margin-bottom: 2.8rem; max-width: 760px; }

.ink-accent { color: var(--acc); font-style: italic; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 340px at 72% 18%, rgba(31,111,235,.16), transparent 70%),
    radial-gradient(520px 360px at 90% 70%, rgba(14,154,166,.14), transparent 72%),
    radial-gradient(480px 300px at 20% 92%, rgba(21,163,74,.12), transparent 70%),
    radial-gradient(420px 280px at 8% 6%, rgba(109,74,224,.10), transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.85rem); letter-spacing: -0.02em; margin-bottom: 1.3rem; }
.hero-compact { padding-bottom: 1rem; }
.hero-compact h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--fg-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-queries { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.hq-label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chip {
  font-family: var(--mono); font-size: .82rem; color: var(--acc-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
}

/* Staggered hero entrance */
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .02s; }
.hero-copy > *:nth-child(2) { animation-delay: .10s; }
.hero-copy > *:nth-child(3) { animation-delay: .18s; }
.hero-copy > *:nth-child(4) { animation-delay: .26s; }
.hero-copy > *:nth-child(5) { animation-delay: .34s; }
.hero-visual { position: relative; z-index: 1; animation: rise .8s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Bespoke hero graphic (SVG search-results mock) --------------------- */
.searchmock {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 80px -40px rgba(17,32,56,.28), 0 2px 8px -4px rgba(17,32,56,.12);
}
.searchmock svg { display: block; width: 100%; height: auto; }
.sm-scan { animation: scan 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes scan { 0%,100% { opacity: .25; } 50% { opacity: .9; } }
.sm-bar-fill { animation: grow 3.2s ease-in-out infinite alternate; transform-origin: left center; }
@keyframes grow { from { transform: scaleX(.55); } to { transform: scaleX(1); } }

/* ---- Data-flow diagram -------------------------------------------------- */
.diagram {
  margin: 2.8rem auto 0; max-width: 840px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.4rem 1.1rem; box-shadow: 0 30px 70px -48px rgba(17,32,56,.28);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---- Browser-framed screenshot ------------------------------------------ */
.shot {
  margin: 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 30px 70px -38px rgba(17,32,56,.26), 0 2px 8px -4px rgba(17,32,56,.10);
}
.shot-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-bar .dot:nth-child(1) { background: #e0664f; opacity: .8; }
.shot-bar .dot:nth-child(2) { background: #e7b24d; opacity: .8; }
.shot-bar .dot:nth-child(3) { background: var(--grn); opacity: .8; }
.shot-url { margin-left: .6rem; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.shot img { width: 100%; }
.shot figcaption, .shot-cap { padding: .7rem .9rem; font-size: .85rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }

/* ---- Screenshot gallery ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

/* ---- Trust strip -------------------------------------------------------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(31,111,235,.07), rgba(14,154,166,.06) 50%, rgba(21,163,74,.07)),
    var(--bg-2);
}
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.trust-inner p { margin: 0; color: var(--fg-soft); }
.trust-inner ul { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.trust-inner li { position: relative; padding-left: 1.2rem; font-size: .92rem; color: var(--muted); }
.trust-inner li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--grn); }

/* ---- Bands -------------------------------------------------------------- */
.band { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.band-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }

/* ---- Steps -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { position: relative; padding: 1.8rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.step-num { font-family: var(--mono); font-size: .8rem; color: var(--acc); letter-spacing: .1em; }
.step h3 { font-size: 1.3rem; margin: .5rem 0 .5rem; }
.step p { margin: 0; font-size: .98rem; }

/* ---- Feature grid (home) ------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature {
  padding: 1.7rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: transform .2s, border-color .2s, background .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--acc-deep); background: var(--surface-2); }
.feature-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 1rem;
  color: var(--acc); background: var(--acc-glow); border: 1px solid var(--acc-deep);
}
.ic { width: 22px; height: 22px; }
.feature h3 { font-size: 1.28rem; margin-bottom: .35rem; }
.feature-tag { color: var(--acc-soft); font-size: .92rem; margin-bottom: .6rem; }
.feature p { font-size: .97rem; }
.textlink { font-family: var(--sans); font-weight: 600; font-size: .92rem; }

/* ---- Showcase ----------------------------------------------------------- */
.showcase-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase-copy .section-title { margin-bottom: 1.1rem; }
.ticks { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--fg-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--grn-glow); border: 1px solid var(--grn-deep);
}
.ticks li::after {
  content: ""; position: absolute; left: .38rem; top: .42em; width: .4rem; height: .22rem;
  border-left: 2px solid var(--grn-soft); border-bottom: 2px solid var(--grn-soft);
  transform: rotate(-45deg);
}

/* ---- Use cases (home preview) ------------------------------------------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.usecase { padding: 1.7rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.usecase h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500; letter-spacing: .02em; color: var(--acc); text-transform: none; margin-bottom: .7rem; }
.usecase-head { font-family: var(--serif); font-size: 1.32rem; color: var(--fg); line-height: 1.2; margin-bottom: .6rem; }

/* ---- Why this matters: cloud-risk cards --------------------------------- */
.band-sub { color: var(--fg-soft); font-size: 1.02rem; margin: .9rem 0 0; max-width: 64ch; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.risk {
  padding: 1.7rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: transform .2s, border-color .2s, background .2s;
}
.risk:hover { transform: translateY(-4px); border-color: var(--acc-deep); background: var(--surface-2); }
.risk h3 { font-size: 1.22rem; margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.risk-dl { margin: 0; }
.risk-dl dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  margin-top: 1rem; margin-bottom: .25rem;
}
.risk-dl dt:first-child { margin-top: 0; }
.risk-dl dd { margin: 0; font-size: .94rem; color: var(--fg-soft); }
.risk-dl dd em { font-style: normal; color: var(--fg); font-weight: 600; }
.risk-problem  { color: var(--amber); }
.risk-solution { color: var(--grn-soft); }
.risk-cost     { color: var(--muted); }
.risk-effort   { color: var(--acc-soft); }

/* ---- Multi-hue accents (color energy across cards/steps/icons) ---------- */
/* Cycle a --hue custom property across grid children; components below read
   var(--hue) so one rule colorizes icon chips, top bars, and numbers. */
.feature-grid .feature:nth-child(6n+1), .usecase-grid .usecase:nth-child(6n+1),
.steps .step:nth-child(6n+1), .pillar-grid .pillar:nth-child(6n+1),
.risk-grid .risk:nth-child(6n+1) { --hue: var(--c-blue); --hue-ink: var(--c-blue-ink); }
.feature-grid .feature:nth-child(6n+2), .usecase-grid .usecase:nth-child(6n+2),
.steps .step:nth-child(6n+2), .pillar-grid .pillar:nth-child(6n+2),
.risk-grid .risk:nth-child(6n+2) { --hue: var(--c-teal); --hue-ink: var(--c-teal-ink); }
.feature-grid .feature:nth-child(6n+3), .usecase-grid .usecase:nth-child(6n+3),
.steps .step:nth-child(6n+3), .pillar-grid .pillar:nth-child(6n+3),
.risk-grid .risk:nth-child(6n+3) { --hue: var(--c-green); --hue-ink: var(--c-green-ink); }
.feature-grid .feature:nth-child(6n+4), .usecase-grid .usecase:nth-child(6n+4),
.steps .step:nth-child(6n+4), .pillar-grid .pillar:nth-child(6n+4),
.risk-grid .risk:nth-child(6n+4) { --hue: var(--c-violet); --hue-ink: var(--c-violet-ink); }
.feature-grid .feature:nth-child(6n+5), .usecase-grid .usecase:nth-child(6n+5),
.steps .step:nth-child(6n+5), .pillar-grid .pillar:nth-child(6n+5),
.risk-grid .risk:nth-child(6n+5) { --hue: var(--c-amber); --hue-ink: var(--c-amber-ink); }
.feature-grid .feature:nth-child(6n+6), .usecase-grid .usecase:nth-child(6n+6),
.steps .step:nth-child(6n+6), .pillar-grid .pillar:nth-child(6n+6),
.risk-grid .risk:nth-child(6n+6) { --hue: var(--c-rose); --hue-ink: var(--c-rose-ink); }

/* Feature cards: colored top bar + colored icon chip */
.feature { border-top: 3px solid var(--hue, var(--acc)); }
.feature:hover { border-color: color-mix(in srgb, var(--hue, var(--acc)) 55%, var(--line-2)); border-top-color: var(--hue, var(--acc)); }
.feature-grid .feature-ic, .features-detail .feature-ic {
  color: var(--hue, var(--acc));
  background: color-mix(in srgb, var(--hue, var(--acc)) 12%, #fff);
  border-color: color-mix(in srgb, var(--hue, var(--acc)) 34%, #fff);
}
.feature-tag { color: var(--hue-ink, var(--acc-soft)); }

/* Steps: colored number + accent */
.step { border-top: 3px solid var(--hue, var(--acc)); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 8px;
  color: var(--hue-ink, var(--acc-soft)); background: color-mix(in srgb, var(--hue, var(--acc)) 12%, #fff);
}

/* Use-case cards: colored top bar + tinted illustration banner */
.usecase { border-top: 3px solid var(--hue, var(--acc)); overflow: hidden; }
.usecase h3 { color: var(--hue-ink, var(--acc-soft)); }
.usecase-art {
  display: flex; align-items: center; justify-content: center; height: 116px; margin: -1.7rem -1.6rem 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hue, var(--acc)) 16%, #fff), color-mix(in srgb, var(--hue, var(--acc)) 4%, #fff));
  border-bottom: 1px solid color-mix(in srgb, var(--hue, var(--acc)) 22%, var(--line));
  color: var(--hue, var(--acc));
}
.usecase-art svg { width: 72px; height: 72px; }

/* Security pillars: colored icon chips */
.pillar-ic { color: var(--hue, var(--acc)); background: color-mix(in srgb, var(--hue, var(--acc)) 12%, #fff); border-color: color-mix(in srgb, var(--hue, var(--acc)) 34%, #fff); }

/* Risk cards: colored left accent rail */
.risk { border-left: 4px solid var(--hue, var(--acc)); }
.risk h3 { color: color-mix(in srgb, var(--hue, var(--fg)) 30%, var(--fg)); }

/* Use-cases detail rows: colored illustration badge + hue cycling */
.usecases-detail .ucrow:nth-child(3n+1) { --hue: var(--c-blue); --hue-ink: var(--c-blue-ink); }
.usecases-detail .ucrow:nth-child(3n+2) { --hue: var(--c-teal); --hue-ink: var(--c-teal-ink); }
.usecases-detail .ucrow:nth-child(3n+3) { --hue: var(--c-violet); --hue-ink: var(--c-violet-ink); }
.ucrow-head { align-items: center; }
.ucrow-art {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px; color: var(--hue, var(--acc));
  background: color-mix(in srgb, var(--hue, var(--acc)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--hue, var(--acc)) 30%, #fff);
}
.ucrow-art svg { width: 38px; height: 38px; }
.ucrow-head h2 { color: var(--hue-ink, var(--acc-soft)); }

/* Per-vertical hero: large illustration + themed glow */
.hero-vertical.hue-legal { --hue: var(--c-blue); }
.hero-vertical.hue-cpa   { --hue: var(--c-teal); }
.hero-vertical.hue-tax   { --hue: var(--c-violet); }
.hero-vertical .ink-accent { color: var(--hue, var(--acc)); }
.hero-vertical-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-vertical-art {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-width: 320px; margin-inline: auto;
  border-radius: 24px; color: var(--hue, var(--acc));
  background: linear-gradient(145deg, color-mix(in srgb, var(--hue, var(--acc)) 18%, #fff), color-mix(in srgb, var(--hue, var(--acc)) 5%, #fff));
  border: 1px solid color-mix(in srgb, var(--hue, var(--acc)) 24%, var(--line));
}
.hero-vertical-art svg { width: 48%; height: 48%; }

/* ---- Support postures (two-tier access stance) -------------------------- */
.posture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 2.4rem; }
.posture {
  padding: 1.8rem 1.7rem; border: 1px solid var(--line); border-top: 3px solid var(--hue, var(--acc));
  border-radius: var(--r); background: var(--surface);
}
.posture-connected { --hue: var(--c-blue); --hue-ink: var(--c-blue-ink); }
.posture-airgap    { --hue: var(--c-green); --hue-ink: var(--c-green-ink); }
.posture-tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--hue-ink, var(--acc-soft)); margin-bottom: .7rem;
  background: color-mix(in srgb, var(--hue, var(--acc)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--hue, var(--acc)) 30%, #fff);
  padding: .28rem .7rem; border-radius: 999px;
}
.posture h3 { font-size: 1.3rem; margin-bottom: .5rem; color: color-mix(in srgb, var(--hue, var(--fg)) 32%, var(--fg)); }
.posture .ticks { margin: 1.1rem 0 0; }
.compliance-card + .compliance-card { margin-top: 1.1rem; }

/* ---- Comparison matrix (capability + cost) ------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.compare th, .compare td {
  padding: .95rem 1.05rem; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--line); font-size: .95rem;
}
.compare thead th { border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.cmp-rowhead { text-align: left; color: var(--fg); font-weight: 600; font-family: var(--sans); width: 34%; }
.compare thead .cmp-rowhead { color: var(--muted); font-weight: 600; }
.cmp-name { display: block; font-family: var(--sans); font-weight: 700; color: var(--fg); font-size: 1rem; }
.cmp-note { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: .25rem; letter-spacing: .02em; }

/* Highlighted "us" column */
.compare .cmp-us { background: var(--acc-glow); }
.compare thead .cmp-us .cmp-name { color: var(--acc-soft); }
.compare thead .cmp-us { border-bottom-color: var(--acc); }

.cmp-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-weight: 700; line-height: 1; }
.cmp-y { background: var(--grn-glow); color: var(--grn-deep); }
.cmp-n { background: rgba(20,45,85,.06); color: var(--muted); }
.cmp-p { background: rgba(180,83,9,.10); color: var(--amber-deep); }

.cmp-cost th, .cmp-cost td { font-size: .9rem; }
.cmp-cost td { color: var(--fg-soft); }
.cmp-cost .cmp-us { font-weight: 700; color: var(--fg); }
.compare-foot { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); max-width: 80ch; }

/* ---- Features detail rows ----------------------------------------------- */
.features-detail { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.frow { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: none; }
.frow-rev .frow-copy { order: 2; }
.frow h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .6rem 0 .4rem; }
.frow-tag { color: var(--acc-soft); margin-bottom: .8rem; }
.frow-summary { color: var(--fg-soft); }
.aside-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  aspect-ratio: 1 / 1; border-radius: var(--r); border: 1px solid var(--line-2);
  background: radial-gradient(120% 120% at 30% 20%, var(--surface-2), var(--surface));
  color: var(--acc); text-align: center;
}
.aside-card .ic { width: 54px; height: 54px; }
.aside-card span { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); }

/* ---- Security pillars ---------------------------------------------------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.pillar { padding: 1.9rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pillar-ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; color: var(--acc); background: var(--acc-glow); border: 1px solid var(--acc-deep); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.3rem; margin-bottom: .5rem; }

/* ---- Ethos page --------------------------------------------------------- */
.ethos-num { display: block; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--acc); margin-bottom: .6rem; }
.ethos-foot { margin-top: 2rem; color: var(--fg-soft); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.qa { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--serif);
  font-size: 1.12rem; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); color: var(--acc); font-size: 1.3rem; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 1.3rem 1.2rem; font-size: .98rem; }

/* ---- Use cases detail --------------------------------------------------- */
.usecases-detail { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ucrow { padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-bottom: 1px solid var(--line); }
.ucrow:last-child { border-bottom: none; }
.ucrow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: .8rem; }
.ucrow-head h2 { font-family: var(--mono); font-weight: 500; font-size: .95rem; letter-spacing: .04em; color: var(--acc); }
.ucrow-headline { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--fg); margin: 0; }
.ucrow-body { max-width: 70ch; }
.ucrow .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Vertical landing pages --------------------------------------------- */
.painlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.painlist li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 2.6rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--fg-soft);
}
.painlist li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.35em; width: 12px; height: 2px;
  background: #e0664f; border-radius: 2px; box-shadow: 0 5px 0 #e0664f, 0 -5px 0 #e0664f; opacity: .8;
}
.compliance-card {
  display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.8rem;
  border: 1px solid var(--grn-deep); border-radius: var(--r);
  background: linear-gradient(120% 120% at 0% 0%, var(--grn-glow), var(--surface));
}
.compliance-card .pillar-ic { flex: none; margin-bottom: 0; }
.compliance-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.compliance-card p { margin: 0; color: var(--fg-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0; border: 0;
  text-align: center; color: #fff;
  background: linear-gradient(120deg, #103a8e 0%, #1f6feb 38%, #0e9aa6 72%, #15a34a 100%);
}
.cta-band .hero-glow {
  background:
    radial-gradient(500px 320px at 18% 20%, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(460px 300px at 88% 90%, rgba(255,255,255,.10), transparent 72%);
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); }
.cta-inner .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: #103a8e; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { background: #eaf1ff; color: #0c2e72; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tag { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.footer-col h2 { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; line-height: 1.4; }
.footer-col a { display: block; color: var(--fg-soft); font-size: .96rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--acc); }
/* Contact info shown as images (anti-harvest); clicking routes to the form. */
a.contact-redirect { display: block; margin-bottom: .55rem; line-height: 0; }
a.contact-redirect:hover .contact-img { opacity: .75; }
.contact-img { height: 15px; width: auto; display: block; transition: opacity .15s; }
.contact-call .contact-img { height: 22px; }
.footer-base { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---- Build stamp (mandate: lower-left, muted) --------------------------- */
.build-stamp {
  position: fixed; left: .6rem; bottom: .45rem; z-index: 40;
  font-family: var(--mono); font-size: .68rem; color: var(--muted);
  pointer-events: none; user-select: none;
}

/* ---- Contact page (forms) ----------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.contact-aside .lede { margin-bottom: 1.6rem; }
.contact-points { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .9rem; }
.contact-points li { position: relative; padding-left: 1.7rem; color: var(--fg-soft); }
.contact-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-glow); }
.contact-call { font-family: var(--serif); font-size: 1.5rem; color: var(--fg); }
.contact-call a { color: var(--fg); }
.contact-call a:hover { color: var(--acc); }

.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--fg); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-glow); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.field-hint { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; line-height: 1.4; }
.form-card .btn { width: 100%; margin-top: .4rem; }

.alert { border-radius: var(--r-sm); padding: .9rem 1.1rem; margin-bottom: 1.4rem; font-size: .95rem; border: 1px solid; }
.alert-ok { background: var(--grn-glow); border-color: var(--grn-deep); color: var(--grn-soft); }
.alert-err { background: rgba(220,38,38,.08); border-color: #f0b4ab; color: #b91c1c; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---- Product brand (header on product pages) ---------------------------- */
.brand-product { align-items: center; }
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-stack .brand-text { font-size: 1.18rem; }
.brand-sub { font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.brand-sub a { color: var(--muted); }
.brand-sub a:hover { color: var(--acc); }

/* ---- About: principal intro --------------------------------------------- */
.principal { display: grid; grid-template-columns: 168px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.principal-avatar {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 168px; height: 168px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(140deg, var(--acc-deep), var(--acc) 55%, var(--grn));
  box-shadow: 0 24px 50px -24px rgba(31,111,235,.5);
}
.principal-emblem { width: 70%; height: 70%; }
.principal-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.principal-initials {
  position: absolute; right: .5rem; bottom: .35rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: rgba(255,255,255,.85);
}
.principal-body .section-title { margin: .2rem 0 .3rem; }
.principal-role { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grn-soft); margin-bottom: 1.1rem; }
.principal-sign { margin-top: 1.4rem; }
.band-head-sub { margin-top: 3.2rem; }

/* ---- About: experience / client wall ------------------------------------ */
.client-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.client {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: transform .2s, border-color .2s, color .2s;
}
.client:hover { transform: translateY(-3px); border-color: var(--acc-deep); }
.client-glyph {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: var(--fg-soft);
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.client-glyph svg { width: 22px; height: 22px; }
.client-logo { width: 26px; height: 26px; object-fit: contain; display: block; }
.client-name { font-weight: 600; color: var(--fg); font-size: .96rem; line-height: 1.25; }
.client-foot { margin: 1.4rem 0 0; font-size: .8rem; color: var(--muted); max-width: 80ch; }

/* ---- Confirmed-demo reveal --------------------------------------------- */
.demo-usecases { margin-top: 1.6rem; }

/* ---- Inline regulation references with CSS tooltips --------------------- */
.reg-ref {
  position: relative; color: var(--acc-soft); font-weight: 600;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px;
}
.reg-ref:hover { color: var(--acc); }
.reg-ref::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  width: max-content; max-width: min(280px, 78vw);
  background: var(--fg); color: #fff;
  font-family: var(--sans); font-weight: 400; font-size: .8rem; line-height: 1.45; text-align: left;
  padding: .6rem .75rem; border-radius: 9px; box-shadow: 0 16px 38px -16px rgba(17,32,56,.55);
  opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; z-index: 60;
}
.reg-ref::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--fg);
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 60;
}
.reg-ref:hover::after, .reg-ref:focus-visible::after, .reg-ref.is-open::after,
.reg-ref:hover::before, .reg-ref:focus-visible::before, .reg-ref.is-open::before { opacity: 1; visibility: visible; }

/* ---- Regulation tags (FileFerret: what self-hosting solves) ------------- */
.reg-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.reg-tag {
  font-family: var(--mono); font-size: .68rem; line-height: 1.3; color: var(--acc-soft);
  background: var(--acc-glow); border: 1px solid color-mix(in srgb, var(--acc) 28%, #fff);
  border-radius: 999px; padding: .26rem .65rem; transition: background .15s, border-color .15s, color .15s;
}
a.reg-tag:hover { background: var(--acc); color: #fff; border-color: var(--acc); }

/* ---- Compliance library ------------------------------------------------- */
.compliance-grid { margin-bottom: 2.4rem; }
.compliance-grid + .band-head { margin-top: 1rem; }
.cmp-link { color: inherit; }
.cmp-link:hover { color: var(--acc); }
.crumbs { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--acc); }
.crumbs span[aria-current] { color: var(--fg-soft); }
.cmp-source { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }
.source-note { margin-top: .8rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.reg-quote {
  margin: 1.6rem 0 0; padding: 1.1rem 1.3rem; background: var(--surface-2);
  border-left: 4px solid var(--acc); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.reg-quote blockquote { margin: 0; color: var(--fg); font-size: 1.02rem; line-height: 1.55; }
.reg-quote figcaption { margin-top: .7rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.reg-quote figcaption a { color: var(--muted); }
.reg-quote figcaption a:hover { color: var(--acc); }

/* Per-regulation obligations list on /compliance/<slug>. A <dl>: dt is the short
   obligation name, dd the explanation. --fg / --fg-soft are the AA-on-white pair. */
.reg-obligations { margin: 1.5rem 0 0; }
.reg-obligations dt {
  margin-top: 1.3rem; color: var(--fg); font-weight: 650; font-size: 1.02rem; line-height: 1.4;
}
.reg-obligations dt:first-child { margin-top: 0; }
.reg-obligations dd {
  margin: .45rem 0 0; padding-left: .95rem; border-left: 2px solid var(--line);
  color: var(--fg-soft); line-height: 1.6;
}

/* Q&A blocks. Same surface treatment as .reg-quote so the page reads as one system. */
.reg-faq {
  margin-top: 1.1rem; padding: 1.05rem 1.25rem; background: var(--surface-2);
  border-radius: var(--r-sm);
}
.reg-faq h3 { margin: 0 0 .45rem; font-size: 1.02rem; line-height: 1.4; color: var(--fg); }
.reg-faq p { margin: 0; color: var(--fg-soft); line-height: 1.6; }

/* ---- Solution / product cards ------------------------------------------- */
.solution { display: flex; flex-direction: column; }
.solution .sol-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.solution .feature-ic { margin-bottom: 1rem; }
.sol-tagline { color: var(--fg); font-weight: 600; margin-bottom: .5rem; }
.solution .textlink { margin-top: auto; padding-top: .6rem; }
.sol-status {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; padding: .26rem .6rem; border-radius: 999px; white-space: nowrap;
}
.sol-status-live { color: var(--grn-deep); background: var(--grn-glow); border: 1px solid var(--grn-deep); }
.sol-status-soon { color: var(--muted); background: rgba(20,45,85,.06); border: 1px solid var(--line-2); }

/* On the single-product launch state, keep a lone card from stretching full-width. */
.solution-grid { align-items: start; }
.solution-grid:has(.solution:only-child) { grid-template-columns: minmax(0, 460px); }

/* ---- Toast (contact redirect notice) ----------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1.2rem);
  z-index: 100; max-width: min(420px, 92vw);
  background: var(--fg); color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: .8rem 1.15rem; border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(17,32,56,.55);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-vertical-inner { grid-template-columns: 1fr; }
  .hero-vertical-art { order: -1; max-width: 220px; }
  .showcase-inner { grid-template-columns: 1fr; }
  .steps, .feature-grid, .usecase-grid, .pillar-grid, .gallery, .risk-grid { grid-template-columns: 1fr 1fr; }
  .frow, .frow-rev .frow-copy { grid-template-columns: 1fr; }
  .frow-rev .frow-copy { order: 0; }
  .frow-aside { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principal { grid-template-columns: 1fr; }
  .principal-avatar { width: 110px; height: 110px; border-radius: 20px; }
  .client-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps, .feature-grid, .usecase-grid, .pillar-grid, .ucrow .ticks, .gallery, .painlist, .risk-grid, .posture-grid { grid-template-columns: 1fr; }
  .client-wall { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; align-items: flex-start; }

  /* Mobile nav: burger button toggles .is-nav-open on the header (app.js);
     .site-nav:focus-within is a no-JS/keyboard fallback that reveals the menu
     when a nav link receives focus. */
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s;
  }
  .nav-burger span { position: relative; }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after  { position: absolute; top: 7px; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem; transform: translateY(-120%); transition: transform .28s ease; box-shadow: 0 30px 60px -30px rgba(17,32,56,.35);
  }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: .8rem; text-align: center; border-radius: 999px; }
  .site-header.is-nav-open .site-nav,
  .site-nav:focus-within { transform: translateY(0); }
  .site-header.is-nav-open .nav-burger span { background: transparent; }
  .site-header.is-nav-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.is-nav-open .nav-burger span::after  { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- NIST 800-171 shared-responsibility matrix -------------------------- */
/* Responsibility badges. All are dark text on a pale tint → AA on white. */
.rb { display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1;
  padding: .36rem .58rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.rb-p { background: var(--grn-glow); color: var(--grn-deep);
  border-color: color-mix(in srgb, var(--grn) 32%, transparent); }
.rb-s { background: var(--acc-glow); color: var(--acc-deep);
  border-color: color-mix(in srgb, var(--acc) 32%, transparent); }
.rb-c { background: rgba(180, 83, 9, .10); color: var(--amber-deep);
  border-color: color-mix(in srgb, var(--amber) 32%, transparent); }

.rb-legend { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.rb-legend li { color: var(--fg-soft); font-size: .95rem; display: flex; align-items: baseline; gap: .55rem; }
.rb-legend .rb { align-self: center; }

/* Wide table scrolls inside its own container; the page body never does. */
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .96rem; }
.matrix th, .matrix td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.matrix tbody th { font-weight: 600; color: var(--fg); white-space: nowrap; }
.matrix tbody th small { display: block; font-weight: 500; color: var(--muted); white-space: nowrap; }
.matrix td.what { color: var(--fg-soft); min-width: 260px; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix-note { color: var(--muted); font-size: .9rem; margin-top: .9rem; }

/* ---- Regulator news + compliance dashboard ----------------------------- */
/* Subject filter chips (extends .chip) */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.filter-chips .chip { text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.filter-chips .chip:hover { border-color: var(--acc); background: var(--acc-glow); }
.filter-chips .chip.is-active { color: #fff; background: var(--acc-soft); border-color: var(--acc-soft); }

/* News list */
.regnews-list { display: grid; gap: 1.1rem; }
.regnews-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.25rem 1.35rem; }
.regnews-item-compact { padding: .9rem 1.1rem; }
.regnews-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.regnews-meta time { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.regnews-title { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .35rem; }
.regnews-title a { color: var(--fg); text-decoration: none; }
.regnews-title a:hover { color: var(--acc-soft); text-decoration: underline; }
.regnews-summary { color: var(--fg-soft); margin: .35rem 0 .7rem; }
.regnews-src { font-family: var(--mono); font-size: .82rem; }

/* "AI generated summary" label */
.ai-label { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-violet);
  margin: 0 0 .3rem; }
.ai-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(109,74,224,.15); }

/* Subject badges (colored per topic, AA text) */
.regnews-badge { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px;
  color: var(--acc-deep); background: var(--acc-glow); border: 1px solid var(--line-2); white-space: nowrap; }
.regnews-badge.topic-nist-800-171 { color: var(--acc-deep); background: rgba(31,111,235,.12); }
.regnews-badge.topic-cmmc { color: var(--grn-deep); background: rgba(21,163,74,.12); }
.regnews-badge.topic-fci { color: #6b3f00; background: rgba(217,119,6,.14); }
.regnews-badge.topic-c3pao { color: #4a2fb0; background: rgba(109,74,224,.13); }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.75rem 0 0; }
.pager-pos { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* Dashboard metric tiles */
.metric-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.metric-tile { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .3rem; }
.metric-ic { width: 1.5rem; height: 1.5rem; color: var(--acc); }
.metric-ic svg { width: 100%; height: 100%; }
.metric-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--fg); line-height: 1.1; }
.metric-num-sm { font-size: 1.35rem; }
.metric-label { font-size: .82rem; color: var(--muted); }

/* Dashboard per-topic bars */
.topic-bars { display: grid; gap: .9rem; }
.topic-bar { text-decoration: none; display: block; }
.topic-bar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.topic-bar-count { font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--fg); }
.bar-track { display: block; height: 10px; border-radius: 999px; background: rgba(20,45,85,.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--acc); transition: width .3s; }
.topic-bar:hover .bar-fill { background: var(--acc-deep); }
