/* ProveKeep marketing site - shared styles
   Built on branding/tokens.css. Navy leads; emerald = verified/pass ONLY.
   Dependency-free, offline-safe. System-font fallbacks (self-hosted fonts wire in later). */

:root {
  /* brand core (from branding/tokens.css) */
  --pk-navy:        #0F2447;
  --pk-navy-800:    #16305C;
  --pk-navy-900:    #0A1830;
  --pk-emerald:     #10B981;
  --pk-emerald-600: #0B8A61;
  --pk-emerald-300: #34D399;

  /* neutrals */
  --pk-ink:         #0F172A;
  --pk-ink-2:       #33415C;
  --pk-muted:       #5B6B82;
  --pk-hairline:    #E4E9F0;
  --pk-surface:     #F8FAFC;
  --pk-card:        #FFFFFF;

  /* semantic */
  --pk-pass:        #10B981;
  --pk-fail:        #DC2626;
  --pk-warn:        #D97706;
  --pk-info:        #2563EB;

  /* on-dark neutrals */
  --pk-on-dark:      #E8EDF6;
  --pk-on-dark-2:    #9FB0C9;
  --pk-on-dark-mut:  #7E90AC; /* 4.74:1 on navy - keep AA for 12.5px mono text */
  --pk-emerald-700:  #047857; /* small emerald text on light (brand v1.2): 5.5:1 on white, 5.2:1 on #F8FAFC */
  --pk-line-dark:    #23324E;

  /* type - self-hosted fonts land later; graceful system fallbacks per brand tokens */
  --pk-font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pk-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pk-font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* shape & elevation */
  --pk-radius:      14px;
  --pk-radius-sm:   9px;
  --pk-shadow:      0 1px 2px rgba(15,36,71,.05), 0 10px 30px rgba(15,36,71,.08);
  --pk-grad:        linear-gradient(135deg, #0F2447 0%, #10B981 130%);

  --pk-maxw: 1120px;
  --pk-gutter: clamp(20px, 5vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchors and keyboard focus clear of the sticky header (WCAG 2.4.11) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--pk-font-body);
  color: var(--pk-ink);
  background: var(--pk-surface);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--pk-font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--pk-font-mono); }

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

/* ---------- layout ---------- */
.wrap { max-width: var(--pk-maxw); margin-inline: auto; padding-inline: var(--pk-gutter); }
section { padding-block: clamp(64px, 9vw, 116px); }
.eyebrow {
  font-family: var(--pk-font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pk-emerald-700); margin: 0 0 14px;
}
.section--dark .eyebrow { color: var(--pk-emerald-300); }

/* ---------- surfaces ---------- */
.section--navy  { background: var(--pk-navy);     color: var(--pk-on-dark); }
.section--dark  { background: var(--pk-navy-900); color: var(--pk-on-dark); }
.section--light { background: var(--pk-surface);  color: var(--pk-ink); }
.section--light :focus-visible, .section--card :focus-visible { outline-color: var(--pk-emerald-700); }
.section--card  { background: var(--pk-card);     color: var(--pk-ink); }
.section--dark p, .section--navy p { color: var(--pk-on-dark-2); }

/* ---------- type scale ---------- */
.display {
  font-weight: 800;
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  letter-spacing: -0.035em;
}
.title {
  font-weight: 800;
  font-size: clamp(2.15rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.measure { max-width: 62ch; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,24,48,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid var(--pk-line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; display: block; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { color: var(--pk-on-dark-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--pk-on-dark);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pk-font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--pk-radius-sm);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--pk-emerald); color: #04231a; }
.btn--primary:hover { background: var(--pk-emerald-300); }
.btn--ghost { background: transparent; color: var(--pk-on-dark); border-color: rgba(255,255,255,.24); }
.btn--ghost:hover { border-color: rgba(255,255,255,.55); }
.btn--ghost-dark { background: transparent; color: var(--pk-navy); border-color: var(--pk-hairline); }
.btn--ghost-dark:hover { border-color: var(--pk-navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* focus states - visible for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pk-emerald-300);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero .display { max-width: 16ch; }
.hero .lead { margin-top: 22px; color: var(--pk-on-dark-2); max-width: 54ch; }
.hero .lead strong { color: var(--pk-on-dark); font-weight: 600; }

/* animated cloud-to-platform diagram - aligned to the top so the clouds sit high */
.hero-viz { width: 100%; align-self: start; }
.cloudviz { width: 100%; height: auto; display: block; overflow: visible; }
.cv-badge rect { fill: #FFFFFF; stroke: #E4E9F0; stroke-width: 1; }
.cv-caption { fill: #7E90AC; font-size: 11px; text-anchor: middle; font-family: var(--pk-font-mono); letter-spacing: .3px; }
.cv-caption-sub { font-size: 9.5px; }
.cv-wire path { stroke-dasharray: 3 5; }
@media (prefers-reduced-motion: reduce) { .cv-pulses { display: none; } }

.hero-meta {
  margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--pk-font-mono); font-size: 12.5px; color: var(--pk-on-dark-mut);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-emerald-300); }

/* ---------- contrast (wedge) ---------- */
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.contrast-card {
  border-radius: var(--pk-radius); padding: 28px; border: 1px solid var(--pk-line-dark);
  background: rgba(255,255,255,.02);
}
.contrast-card h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; }
.contrast-card p { font-size: 15px; }
.contrast-card .tag {
  font-family: var(--pk-font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 999px;
}
.contrast-card.is-old { background: rgba(220,38,38,.06); border-color: rgba(220,38,38,.28); }
.contrast-card.is-old .tag { color: #FCA5A5; background: rgba(220,38,38,.12); }
.contrast-card.is-new { background: rgba(16,185,129,.06); border-color: rgba(16,185,129,.30); }
.contrast-card.is-new .tag { color: var(--pk-emerald-300); background: rgba(16,185,129,.12); }
.contrast-card ul { margin: 14px 0 0; padding-inline-start: 0; list-style: none; }
.contrast-card li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; font-size: 14.5px; color: var(--pk-on-dark-2); }
.contrast-card li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 8px;
  width: 8px; height: 8px; border-radius: 2px;
}
.contrast-card.is-old li::before { background: var(--pk-fail); }
.contrast-card.is-new li::before { background: var(--pk-emerald-300); }

/* ---------- pipeline (how it works) ---------- */
.pipeline { margin-top: 48px; }
.pipeline-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative;
}
.stage {
  border: 1px solid var(--pk-line-dark); border-radius: var(--pk-radius);
  padding: 24px 22px; background: rgba(255,255,255,.02);
  transition: opacity .6s ease, transform .6s ease, border-color .6s ease;
}
/* reveal-hidden states only when JS is running (main.js stamps .js on <html>);
   without JS the page renders fully visible */
.js .stage { opacity: 0; transform: translateY(20px); }
.stage.reveal { opacity: 1; transform: none; }
.stage .num {
  font-family: var(--pk-font-mono); font-size: 12px; color: var(--pk-on-dark-mut);
  letter-spacing: .1em;
}
.stage h3 { font-size: 1.05rem; margin: 14px 0 8px; font-weight: 700; }
.stage p { font-size: 14px; }
.stage-icon { width: 46px; height: 46px; }
.stage-icon .seg { stroke: var(--pk-emerald-300); stroke-width: 7; stroke-linecap: round; fill: none;
  stroke-dasharray: 20; stroke-dashoffset: 20; }
.stage.reveal .stage-icon .seg { animation: draw .5s ease forwards; }
.stage.reveal .stage-icon .seg:nth-child(2) { animation-delay: .18s; }
.stage.reveal .stage-icon .seg:nth-child(3) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pipeline-caption { margin-top: 26px; font-family: var(--pk-font-mono); font-size: 12.5px; color: var(--pk-on-dark-mut); }

/* ---------- terminal / code (evidence API) ---------- */
.terminal {
  border-radius: var(--pk-radius); overflow: hidden; border: 1px solid var(--pk-line-dark);
  background: var(--pk-navy-900); box-shadow: 0 20px 50px rgba(15,36,71,.18);
  margin-top: 8px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-block-end: 1px solid var(--pk-line-dark); background: rgba(255,255,255,.02);
}
.terminal-bar .lamp { width: 11px; height: 11px; border-radius: 50%; background: #33415C; }
.terminal-bar .label {
  margin-inline-start: 10px; font-family: var(--pk-font-mono); font-size: 12px; color: var(--pk-on-dark-mut);
}
.terminal pre {
  margin: 0; padding: 22px 20px; overflow-x: auto;
  font-family: var(--pk-font-mono); font-size: 13.5px; line-height: 1.7;
  color: var(--pk-on-dark);
}
.terminal .c-prompt { color: var(--pk-emerald-300); }
.terminal .c-comment { color: var(--pk-on-dark-mut); }
.terminal .c-str { color: #9FD0FF; }
.terminal .c-pass { color: var(--pk-emerald-300); font-weight: 600; }
.code-caption {
  margin-top: 18px; font-size: 14px; color: var(--pk-muted); display: flex; align-items: center; gap: 10px;
}
.code-caption .lock { width: 16px; height: 16px; flex: none; }

/* two-col generic */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- trust grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 42px; }
.trust-card {
  border: 1px solid var(--pk-hairline); border-radius: var(--pk-radius); padding: 26px;
  background: var(--pk-card); box-shadow: var(--pk-shadow);
}
.trust-card .ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(16,185,129,.10); margin-bottom: 16px;
}
.trust-card .ic svg { width: 22px; height: 22px; stroke: var(--pk-emerald-600); }
.trust-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.trust-card p { font-size: 14.5px; color: var(--pk-ink-2); }
.trust-card code { font-family: var(--pk-font-mono); font-size: 12.5px; color: var(--pk-emerald-600); }

/* least-privilege inline block */
.inspect {
  margin-top: 16px; border-radius: var(--pk-radius-sm); background: var(--pk-navy-900);
  padding: 16px 18px; font-family: var(--pk-font-mono); font-size: 12.5px; color: var(--pk-on-dark);
  border: 1px solid var(--pk-line-dark); overflow-x: auto;
}
.inspect .c-allow { color: var(--pk-emerald-300); }
.inspect .c-deny { color: #FCA5A5; }
.inspect .c-comment { color: var(--pk-on-dark-mut); }

/* ---------- form ---------- */
.form-card {
  background: var(--pk-card); color: var(--pk-ink);
  border-radius: var(--pk-radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--pk-shadow); border: 1px solid var(--pk-hairline);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--pk-ink-2); }
.field label .req { color: var(--pk-emerald-600); }
.field input, .field select {
  width: 100%; font-family: var(--pk-font-body); font-size: 15px; color: var(--pk-ink);
  padding: 12px 14px; border: 1px solid var(--pk-hairline); border-radius: var(--pk-radius-sm);
  background: var(--pk-surface);
}
.field input:focus, .field select:focus { border-color: var(--pk-emerald); background: #fff; outline: none; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--pk-emerald-300); outline-offset: 2px; }
.form-note { font-size: 12.5px; color: var(--pk-muted); margin-top: 4px; }
.form-confirm {
  display: none; align-items: flex-start; gap: 14px; padding: 20px 22px;
  border-radius: var(--pk-radius); background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.4);
  color: var(--pk-ink);
}
.form-confirm.show { display: flex; }
.form-confirm svg { width: 26px; height: 26px; flex: none; stroke: var(--pk-emerald-600); }
.form-confirm strong { display: block; font-family: var(--pk-font-display); font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--pk-navy-900); color: var(--pk-on-dark-2); padding-block: 56px; border-block-start: 1px solid var(--pk-line-dark); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 34ch; color: var(--pk-on-dark-mut); }
.footer-links { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--pk-font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--pk-on-dark-mut); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--pk-on-dark-2); text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--pk-line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--pk-on-dark-mut);
}
.footer-bottom .ar { font-family: var(--pk-font-mono); }

/* ---------- security page specifics ---------- */
.page-hero { background: var(--pk-navy); color: var(--pk-on-dark); padding-block: clamp(70px, 10vw, 110px); }
.page-hero .display { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 20ch; }
.principle {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0;
  border-block-end: 1px solid var(--pk-hairline);
}
.principle:last-child { border-block-end: 0; }
.principle-badge { align-self: start; width: 44px; height: 44px; border-radius: 11px; background: rgba(16,185,129,.10); display: grid; place-items: center; }
.principle-badge svg { width: 22px; height: 22px; stroke: var(--pk-emerald-600); }
.principle h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--pk-ink-2); }
.principle p + p { margin-top: 8px; }
.callout {
  border-inline-start: 3px solid var(--pk-emerald); background: rgba(16,185,129,.06);
  padding: 18px 22px; border-radius: 0 var(--pk-radius-sm) var(--pk-radius-sm) 0; margin: 8px 0;
}
.callout p { font-size: 14.5px; color: var(--pk-ink-2); }
.note-honest {
  margin-top: 30px; padding: 20px 22px; border: 1px dashed var(--pk-hairline);
  border-radius: var(--pk-radius); background: var(--pk-surface);
}
.note-honest h4 { font-family: var(--pk-font-display); font-size: 1rem; margin-bottom: 8px; }
.note-honest p { font-size: 13.5px; color: var(--pk-muted); }
.note-honest code { font-family: var(--pk-font-mono); color: var(--pk-emerald-600); font-size: 12.5px; }

/* reveal-on-scroll (generic) - hidden initial state is JS-gated, see .js .stage note */
.reveal-up { transition: opacity .6s ease, transform .6s ease; }
.js .reveal-up { opacity: 0; transform: translateY(22px); }
.reveal-up.reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column;
    align-items: stretch; background: var(--pk-navy-900); border-block-end: 1px solid var(--pk-line-dark);
    padding: 12px var(--pk-gutter) 20px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 16px; border-block-end: 1px solid var(--pk-line-dark); }
  .nav a.btn { border: 1px solid var(--pk-emerald); text-align: center; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
  .contrast-grid { grid-template-columns: 1fr; }
  .pipeline-track { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
/* the 4-up pipeline gets cramped before the main 860px breakpoint */
@media (max-width: 1000px) {
  .pipeline-track { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pipeline-track { grid-template-columns: 1fr; }
}

/* nav Request-access button: .nav a color was out-specifying .btn--primary, fading the label */
.nav a.btn--primary { color: #04231a; }
.nav a.btn--ghost { color: var(--pk-on-dark); }

/* frameworks band (P3+P7: pills upgraded to tiles) */
.fw-band .wrap { padding-block: clamp(28px, 5vw, 44px); }
.fw-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fw-tile { background: #10203C; border: 1px solid var(--pk-line-dark); border-radius: var(--pk-radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fw-tile .fw-id { font-family: var(--pk-font-mono); font-size: 13px; font-weight: 600; color: var(--pk-on-dark); letter-spacing: .02em; }
.fw-tile .fw-body { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--pk-on-dark-mut); }
.fw-tile .fw-status { margin-top: 6px; font-family: var(--pk-font-mono); font-size: 11px; color: var(--pk-on-dark-mut); display: inline-flex; align-items: center; gap: 6px; }
.fw-tile.is-automated { border-color: rgba(16,185,129,.35); }
.fw-tile.is-automated .fw-status { color: var(--pk-emerald-300); }
.fw-tile.is-automated .fw-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-emerald-300); }
@media (max-width: 860px) { .fw-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .fw-tiles { grid-template-columns: 1fr; } }
.fw-note { margin-top: 16px; color: var(--pk-on-dark-mut); max-width: 70ch; }

/* hero diagram stacks under the copy on narrow screens */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-viz { max-width: 460px; margin-top: 8px; }
}

/* product preview ("a look inside") */
.look-shot { margin-top: 34px; border-radius: 18px; overflow: hidden; }
.look-shot img, .look-shot svg { display: block; width: 100%; height: auto; }

/* P4: the inlined mockup animates once on scroll. Default (no JS, reduced motion)
   is the finished dashboard; .is-armed rewinds it, .is-play plays it forward. */
.look-shot .g-wipe { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .look-shot.is-armed .g-arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .look-shot.is-armed .g-score,
  .look-shot.is-armed .seal-row,
  .look-shot.is-armed .g-chain { opacity: 0; }
  .look-shot.is-armed .g-wipe { display: block; transform-box: fill-box; transform-origin: 100% 50%; }
  .look-shot.is-play .g-arc { animation: pk-arc 1s cubic-bezier(.22,.61,.36,1) .15s forwards; }
  .look-shot.is-play .g-score { animation: pk-rise .5s ease .6s forwards; }
  .look-shot.is-play .g-wipe { animation: pk-wipe 1.2s cubic-bezier(.4,0,.2,1) .35s forwards; }
  .look-shot.is-play .seal-row { animation: pk-rise .45s ease forwards; }
  .look-shot.is-play .seal-row:nth-of-type(1) { animation-delay: 1.05s; }
  .look-shot.is-play .seal-row:nth-of-type(2) { animation-delay: 1.3s; }
  .look-shot.is-play .seal-row:nth-of-type(3) { animation-delay: 1.55s; }
  .look-shot.is-play .g-chain { transform-box: fill-box; transform-origin: 50% 50%;
    animation: pk-pop .5s cubic-bezier(.34,1.56,.64,1) 1.95s forwards; }
}
@keyframes pk-arc { to { stroke-dashoffset: 0; } }
@keyframes pk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pk-wipe { to { transform: scaleX(0); } }
@keyframes pk-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---- maturity pass (P1 rhythm, P8 hover, P9 footer flourish) ---- */
/* P1: tighter, consistent section rhythm */
section { padding-block: clamp(56px, 7vw, 96px); }
.hero { padding-block: 0; }

/* P8: premium micro-interactions */
.btn--primary { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,185,129,.28); }
.btn--ghost:hover, .btn--ghost-dark:hover { transform: translateY(-2px); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--pk-emerald-300); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; border-radius: 2px; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.look-shot { box-shadow: var(--pk-shadow); transition: transform .3s ease; }
.look-shot:hover { transform: translateY(-3px); }

/* P9: footer closing flourish */
.site-footer { position: relative; overflow: hidden; }
.footer-flourish { position: absolute; inset-inline: 0; bottom: -3%; text-align: center; pointer-events: none;
  font-family: var(--pk-font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 17rem);
  letter-spacing: -0.04em; line-height: 1; color: #fff; opacity: 0.035; white-space: nowrap; user-select: none; }
.footer-signoff { position: relative; z-index: 1; font-family: var(--pk-font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.03em; color: var(--pk-on-dark); margin-bottom: 40px; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover, .btn--ghost:hover, .btn--ghost-dark:hover, .look-shot:hover { transform: none; }
}

/* ---- P2: section opener (eyebrow / title / lead, built-in stagger) ---- */
.section-opener { margin: 0; }
.section-opener > .lead { max-width: 62ch; }
.section-opener > * { transition: opacity .6s ease, transform .6s ease; }
.js .section-opener > * { opacity: 0; transform: translateY(22px); }
.section-opener.reveal > * { opacity: 1; transform: none; }
.section-opener.reveal > .title,
.section-opener.reveal > .display { transition-delay: 90ms; }
.section-opener.reveal > .lead { transition-delay: 180ms; }

/* utilities that absorb the last inline styles */
.after-lead { margin-top: 16px; color: var(--pk-ink-2); }
.access-note { margin-top: 18px; font-family: var(--pk-font-mono); font-size: 12.5px; color: var(--pk-on-dark-mut); }
.section-cta { margin-top: 28px; }
.section-cta .btn + .btn { margin-inline-start: 10px; }
.btn--block { width: 100%; justify-content: center; }
.wrap.wrap--narrow { max-width: 840px; }
.principles { margin-top: 20px; }
.page-hero .lead { margin-top: 20px; color: var(--pk-on-dark-2); }
.callout .mono { font-size: 13px; color: var(--pk-ink); }
.callout .mono strong { color: var(--pk-emerald-600); }
.section--fill { min-height: calc(100vh - 66px); }
.section--fill .hero-meta { margin-top: 32px; }

/* honeypot field - visually removed, still submittable by bots */
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* ---- mobile hero: chip row replaces the SVG badges below 480px ---- */
.cloud-chips { display: none; }
@media (max-width: 480px) {
  .cloudviz { display: none; }
  .cloud-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .cloud-chips li { font-family: var(--pk-font-mono); font-size: 12px; color: var(--pk-on-dark-2); background: #10203C; border: 1px solid var(--pk-line-dark); border-radius: 999px; padding: 5px 12px; }
  .cloud-chips li.is-first { border-color: rgba(16,185,129,.35); color: var(--pk-emerald-300); }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---- FAQ ---- */
.faq-list { margin-top: 26px; }
.faq-item { border-block-end: 1px solid var(--pk-hairline); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-family: var(--pk-font-display); font-weight: 700; font-size: 1.05rem; color: var(--pk-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--pk-font-mono); font-size: 1.25rem; color: var(--pk-emerald-600); flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 2px 20px; font-size: 15px; color: var(--pk-ink-2); max-width: 70ch; }

/* footer trademark disclaimer */
.footer-legal { margin-top: 28px; font-size: 11.5px; color: var(--pk-on-dark-mut); max-width: 78ch; }

/* product mockup ("a look inside") type, formerly an inline <style> in the SVG */
#pk-shot-svg .t { font-family: "Archivo", "Inter", system-ui, sans-serif; }
#pk-shot-svg .b { font-family: "Inter", system-ui, sans-serif; }
#pk-shot-svg .m { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
#pk-shot-svg .redact { fill: #C7D0DE; }
