/* ==========================================================================
   KILLPIN — dark theme (exploration, 2026-09-01)
   Applied via [data-theme="dark"] on <html>. Overrides only; styles.css stays
   the single source for layout and for the light theme.

   Two things drove the specifics:

   1. Brand crimson #9a0621 is too dark to read as TEXT on a dark ground, but
      it's the right weight as a BUTTON fill under white text. Those pull in
      opposite directions, so --brand is lifted to #ef6a84 for text/accents and
      buttons get an explicit darker fill instead of inheriting it.

   2. Three images are cutouts on white with soft feathered edges
      (interior-keypad, interior-buttons, keypad-red) — they'd halo on a dark
      background and can't be knocked out cleanly because the fade is gradual.
      All three live in .figure, so .figure stays a LIGHT specimen panel even
      in dark mode. That reads as deliberate rather than as a bug.
   ========================================================================== */

[data-theme="dark"]{
  --brand:#ef6a84;          /* text/accents — 6.6:1 on the page ground */
  --brand-deep:#ff8fa3;
  --brand-bright:#ff8fa3;
  --brand-300:#ffb3c2;
  --brand-tint:rgba(239,106,132,.10);
  --brand-tint-2:rgba(239,106,132,.20);

  --ink:#f7f2f4;
  --ink-2:#d8ccd0;
  --muted:#a5969c;
  --dim:#7e6f75;
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.20);

  --bg:#150b10;
  --bg-alt:#1d1017;
  --dark:#0a0509;           /* feature bands go DEEPER than the page, so they
                               still read as distinct wells rather than merging */
  --dark-2:#150b10;
}

/* ---- buttons: explicit fill, because --brand is now a light text colour ---- */
[data-theme="dark"] .btn{background:#a8122c;border-color:#a8122c;color:#fff}
[data-theme="dark"] .btn:hover{background:#c0183a;border-color:#c0183a;
  box-shadow:0 10px 26px rgba(0,0,0,.5)}
[data-theme="dark"] .btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-2)}
[data-theme="dark"] .btn.ghost:hover{color:var(--brand);border-color:var(--brand)}
[data-theme="dark"] .band{background:linear-gradient(135deg,#7d0f13,#c0183a)}
[data-theme="dark"] .band .btn{background:#fff;color:#7d0f13;border-color:#fff}
[data-theme="dark"] .band .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}

/* ---- chrome ---- */
[data-theme="dark"] header.site{background:rgba(21,11,16,.92)}
[data-theme="dark"] .drop-menu{background:#22131a;border-color:var(--line);
  box-shadow:0 20px 50px rgba(0,0,0,.55)}
[data-theme="dark"] .mobnav{background:var(--bg)}
[data-theme="dark"] section.alt{background:var(--bg-alt)}

/* ---- surfaces ---- */
[data-theme="dark"] .card,
[data-theme="dark"] .icard,
[data-theme="dark"] .creds{background:rgba(255,255,255,.035);border-color:var(--line)}
[data-theme="dark"] .card:hover{box-shadow:0 14px 40px rgba(0,0,0,.45)}
[data-theme="dark"] .cred{border-right-color:var(--line)}
[data-theme="dark"] .compare{border-color:var(--line)}
[data-theme="dark"] .compare thead th{background:rgba(255,255,255,.055)}
[data-theme="dark"] .compare th,
[data-theme="dark"] .compare td{border-bottom-color:var(--line)}
[data-theme="dark"] .faq,
[data-theme="dark"] .faq details{border-color:var(--line)}
[data-theme="dark"] .tl-item .dot{border-color:var(--bg)}

/* ---- form fields: inputs default to a light UA background ---- */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select{
  background:rgba(255,255,255,.05) !important;
  color:var(--ink);
  border-color:rgba(255,255,255,.22) !important;
}
[data-theme="dark"] ::placeholder{color:var(--dim)}

/* ---- the light specimen panels (see note 2 at the top) ---- */
[data-theme="dark"] .figure{background:#f2ecee;border-color:rgba(255,255,255,.14)}
[data-theme="dark"] .figure figcaption{color:#5c4d53;border-top-color:rgba(0,0,0,.13)}
[data-theme="dark"] .figure figcaption strong{color:#1a1013 !important}

/* ---- prototype-only theme toggle ---- */
.theme-toggle{
  position:fixed;right:18px;bottom:18px;z-index:200;
  display:flex;align-items:center;gap:9px;
  padding:11px 16px;border-radius:99px;cursor:pointer;
  font-family:var(--body);font-size:13px;font-weight:600;
  background:rgba(255,255,255,.97);color:#160f0f;
  border:1px solid rgba(0,0,0,.14);
  box-shadow:0 14px 40px rgba(0,0,0,.22);
}
[data-theme="dark"] .theme-toggle{
  background:rgba(34,19,26,.97);color:#f7f2f4;border-color:rgba(255,255,255,.22);
}
.theme-toggle span{
  width:9px;height:9px;border-radius:50%;background:#9a0621;
}
[data-theme="dark"] .theme-toggle span{background:#ef6a84}

/* ==========================================================================
   v2 REFINEMENT (2026-09-24) — "looks cheap next to autokey.ca"
   The wine-tinted black put two dark reds on top of each other, so nothing
   popped. Autokey's recipe is a deep NEUTRAL base with ONE bright accent.
   Same move here: charcoal base, crimson reserved for actions and highlights.
   Photos all run through tools/grade.sh so they read as one shoot.
   ========================================================================== */
[data-theme="dark"]{
  --bg:#111113;
  --bg-alt:#161619;
  --dark:#0b0b0d;
  --dark-2:#111113;
  --ink:#f5f4f4;
  --ink-2:#d6d3d4;
  --muted:#9d999b;
  --dim:#75727a;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.16);
  --brand:#f0506f;          /* accent text on charcoal — ~5.6:1 */
  --brand-300:#ff8ea4;
}
[data-theme="dark"] section{padding:120px 0}
[data-theme="dark"] section.tight{padding:84px 0}
[data-theme="dark"] header.site{background:rgba(17,17,19,.88)}
[data-theme="dark"] .topbar{background:#0b0b0d}
[data-theme="dark"] .drop-menu{background:#1b1b1e}
[data-theme="dark"] .btn{background:#c0183a;border-color:#c0183a}
[data-theme="dark"] .btn:hover{background:#d8213f;border-color:#d8213f;box-shadow:0 12px 30px rgba(192,24,58,.35)}
[data-theme="dark"] .card,[data-theme="dark"] .icard,[data-theme="dark"] .creds{
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));border-color:var(--line)}
[data-theme="dark"] .pagehero::before{background:radial-gradient(760px 380px at 82% 12%,rgba(192,24,58,.16),transparent 62%)}

/* ---- hero with a full-bleed graded photograph ---- */
.stage.has-photo{min-height:88vh;display:flex;align-items:center;padding:140px 0}
.stage-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;filter:brightness(1.55) contrast(1.08)}
.stage.has-photo::before{z-index:-2;background:
  linear-gradient(90deg,rgba(11,11,13,.97) 0%,rgba(11,11,13,.9) 46%,rgba(11,11,13,.35) 72%,rgba(11,11,13,0) 100%),
  linear-gradient(0deg,rgba(11,11,13,.85) 0%,transparent 30%)}
.stage.has-photo::after{display:none}
.stage.has-photo .wrap{max-width:var(--max);text-align:left;width:100%}
.stage.has-photo .wrap > div{max-width:780px}
.stage.has-photo .eyebrow{justify-content:flex-start}
.stage.has-photo .lead{margin-inline:0}
.stage.has-photo .cta-row,.stage.has-photo .chips{justify-content:flex-start}
@media(max-width:640px){.stage.has-photo{min-height:auto;padding:90px 0}}

/* ---- threat cards: icons instead of mismatched stock ---- */
.card.threat .ticon{
  display:grid;place-items:center;width:48px;height:48px;border-radius:12px;margin-bottom:22px;
  background:rgba(192,24,58,.12);border:1px solid rgba(240,80,111,.28)}
.card.threat .ticon svg{width:24px;height:24px;fill:none;stroke:var(--brand);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.card.threat .num{display:block}
.card.threat h3{margin:10px 0 10px}

/* ---- typographic stat card (Stealth has nothing to photograph) ---- */
.statcard{border:1px solid var(--line);border-radius:18px;padding:44px 40px;
  background:radial-gradient(420px 220px at 90% 0%,rgba(192,24,58,.18),transparent 70%),rgba(255,255,255,.02)}
.statcard .big{font-family:var(--display);font-weight:800;font-size:clamp(3rem,7vw,5rem);
  letter-spacing:-.045em;line-height:1;margin:18px 0 18px;color:var(--ink)}
.statcard p{font-size:15.5px;max-width:40ch}

/* ---- product cutout on the dark page, no light box ---- */
[data-theme="dark"] .figure.product{background:radial-gradient(closest-side,rgba(192,24,58,.18),transparent 75%);
  border:0;padding:40px 20px;text-align:center}
[data-theme="dark"] .figure.product img{max-width:340px;margin-inline:auto;filter:drop-shadow(0 30px 40px rgba(0,0,0,.6))}
[data-theme="dark"] .figure.product figcaption{color:var(--muted);border-top:0}

/* ==========================================================================
   SCROLL MOTION v2 (2026-10-07) — matched to autokey.ca, which Ray prefers.
   Autokey: 50px rise over .9s with a per-item stagger. Killpin previously did
   16px/.65s with no stagger, which read as barely moving. Split layouts now
   slide in from their own side; grid items cascade.
   ========================================================================== */
html.js .rv{opacity:0;transform:translateY(50px);
  transition:opacity .9s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1)}
html.js .rv.from-left{transform:translateX(-60px)}
html.js .rv.from-right{transform:translateX(60px)}
html.js .rv.in{opacity:1;transform:none}

/* hero entrance, sequenced like Autokey's slider */
html.js .stage .eyebrow,html.js .stage h1,html.js .stage .lead,
html.js .stage .cta-row,html.js .stage .chips{opacity:0;transform:translateY(28px);
  transition:opacity .9s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1)}
html.js .stage .eyebrow{transition-delay:.15s}
html.js .stage h1{transition-delay:.3s}
html.js .stage .lead{transition-delay:.48s}
html.js .stage .cta-row{transition-delay:.62s}
html.js .stage .chips{transition-delay:.76s}
html.js .stage.loaded .eyebrow,html.js .stage.loaded h1,html.js .stage.loaded .lead,
html.js .stage.loaded .cta-row,html.js .stage.loaded .chips{opacity:1;transform:none}
.stage-bg{transform:scale(1.1);transition:transform 12s ease-out}
.stage.loaded .stage-bg{transform:scale(1)}

@media (prefers-reduced-motion:reduce){
  html.js .rv,html.js .stage *{opacity:1 !important;transform:none !important;transition:none !important}
}

/* ==========================================================================
   TYPE HERO + CURTAIN (2026-10-07) — after Ramotion's HackerRank landing page,
   which Ray asked to adapt. Pure black, type-led hero: dim upper lines, one
   bright line, glowing inline icons that act out the pitch (a key being
   cloned; a keypad code being entered). The rest of the page is one rounded
   sheet that slides up over the hero, which stays pinned behind it and recedes.
   ========================================================================== */
.typehero{position:sticky;top:0;z-index:0;min-height:100vh;display:flex;align-items:center;
  padding:120px 0 140px;background:#050506;overflow:hidden;text-align:center}
.typehero::before,.typehero::after{display:none}
.th-glow{position:absolute;inset:-20% -10% auto;height:90%;pointer-events:none;
  background:radial-gradient(600px 340px at 50% 62%,rgba(192,24,58,.20),transparent 70%)}
.th-inner{position:relative;will-change:transform,opacity}
.typehero .eyebrow{justify-content:center;color:var(--brand-300)}
.th-title{margin:26px 0 30px;font-size:clamp(2.9rem,8.2vw,6.6rem);line-height:.98;letter-spacing:-.05em;font-weight:800}
.th-line{display:block}
.th-line.dim{background:linear-gradient(180deg,#5b5960 0%,#8d8a91 100%);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent}
.th-line.bright{color:#fff}
.typehero .lead{margin:0 auto;max-width:58ch;color:#a3a0a5}
.typehero .cta-row{justify-content:center;margin-top:40px}

/* inline icons */
.th-icon{display:inline-block;width:.86em;height:.86em;vertical-align:-.08em;margin:0 .06em}
.th-icon svg{width:100%;height:100%;overflow:visible}
.keyicon .kshape{fill:none;stroke:#8d8a91;stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round}
.keyicon .kghost{stroke:var(--brand);opacity:0;animation:kp-clone 3.6s cubic-bezier(.22,1,.36,1) infinite}
@keyframes kp-clone{0%,18%{opacity:0;transform:translate(0,0)}35%{opacity:.9}
  70%{opacity:0;transform:translate(10px,-9px)}100%{opacity:0;transform:translate(10px,-9px)}}
.padicon{filter:drop-shadow(0 0 .12em rgba(240,80,111,.55))}
.padicon .c{fill:rgba(255,255,255,.14);stroke:rgba(255,255,255,.35);stroke-width:1.2;
  animation:kp-key 4.2s infinite;animation-delay:calc(var(--i) * .18s)}
@keyframes kp-key{0%{fill:rgba(255,255,255,.14)}6%{fill:#f0506f}14%{fill:rgba(240,80,111,.45)}
  62%{fill:rgba(240,80,111,.45)}70%,100%{fill:rgba(255,255,255,.14)}}

/* glowing primary button, like the reference's "Join the community" */
.btn.glowbtn{background:#c0183a;border-color:#e0405f;box-shadow:0 0 0 1px rgba(240,80,111,.25),0 0 28px rgba(192,24,58,.45)}
.btn.glowbtn:hover{box-shadow:0 0 0 1px rgba(240,80,111,.4),0 0 44px rgba(192,24,58,.65)}

/* entrance */
html.js .th-in{opacity:0;transform:translateY(26px);filter:blur(6px);
  transition:opacity 1s cubic-bezier(.22,1,.36,1),transform 1s cubic-bezier(.22,1,.36,1),filter 1s;transition-delay:var(--d,0s)}
html.js .typehero.loaded .th-in{opacity:1;transform:none;filter:none}

/* curtain sheet */
.sheet{position:relative;z-index:2;background:var(--bg);border-radius:34px 34px 0 0;margin-top:-34px;
  box-shadow:0 -1px 0 rgba(255,255,255,.08),0 -30px 80px rgba(0,0,0,.6);overflow:hidden}
.sheet > section:first-child{border-top:0}
footer.site{position:relative;z-index:2}
@media(max-width:640px){.sheet{border-radius:22px 22px 0 0}.typehero{padding:90px 0 110px}}

@media (prefers-reduced-motion:reduce){
  .keyicon .kghost,.padicon .c{animation:none}
  .padicon .c{fill:rgba(240,80,111,.45)}
  html.js .th-in{opacity:1;transform:none;filter:none;transition:none}
}
/* the old .stage hero rules (gradient-clipped h1, staged opacity) must not reach the type hero */
html.js .typehero h1.th-title,.typehero h1.th-title{background:none;-webkit-background-clip:border-box;background-clip:border-box;
  -webkit-text-fill-color:currentColor;color:#fff;padding:0;opacity:1;transform:none;transition:none}
.th-line.bright .accent{background:linear-gradient(96deg,#ff8ea4,#c0183a);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent}

/* ==========================================================================
   HERO v3 — split layout with the live particle mark (assets/hero-lock.js).
   ========================================================================== */
.typehero{text-align:left}
.typehero .th-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;
  max-width:var(--max)}
.typehero .eyebrow{justify-content:flex-start}
.typehero .lead{margin:0;max-width:52ch}
.typehero .cta-row{justify-content:flex-start}
.th-title{font-size:clamp(2.6rem,6.2vw,5.6rem)}
.th-visual{position:relative;aspect-ratio:1/1;width:100%;max-width:600px;justify-self:center}
#lockfx{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:pan-y}
.lockhud{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  padding:9px 16px;border-radius:99px;border:1px solid rgba(255,255,255,.12);
  background:rgba(10,10,12,.7);backdrop-filter:blur(8px);
  font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#d8d4d6}
.lockhud .dot{width:7px;height:7px;border-radius:50%;background:#f0506f;box-shadow:0 0 10px #f0506f;
  animation:kp-blink 1.4s infinite}
.lockhud[data-state="released"] .dot{background:#fff;box-shadow:0 0 12px #fff;animation:none}
.lockhud[data-state="released"]{border-color:rgba(255,255,255,.3);color:#fff}
.lockhud[data-state="entering"] .dot{animation-duration:.35s}
@keyframes kp-blink{50%{opacity:.25}}
@media(max-width:1024px){
  .typehero .th-inner{grid-template-columns:1fr;gap:10px;text-align:center}
  .typehero .eyebrow,.typehero .cta-row{justify-content:center}
  .typehero .lead{margin:0 auto}
  .th-visual{max-width:420px;order:-1;margin-top:-20px}
}
@media(max-width:640px){.th-visual{max-width:300px}.lockhud{font-size:9.5px}}
@media (prefers-reduced-motion:reduce){.lockhud .dot{animation:none}}
.typehero .th-inner{grid-template-columns:1.2fr .8fr;gap:32px}
.typehero .th-copy{text-align:left}
.typehero .th-title{font-size:clamp(2.4rem,4.7vw,4.3rem)}
@media(max-width:1024px){.typehero .th-inner{grid-template-columns:1fr}.typehero .th-copy{text-align:center}}

/* ==========================================================================
   BELOW-THE-HERO VARIETY (2026-10-07) — "too bland after the animation".
   Every section had become charcoal + left heading + row of dark cards.
   Now the grounds rotate (black → paper → crimson → black-glow) and each
   section gets its own layout: animated bento, pinned scroll, struck-through
   statement, outline band, sideways timeline. Hero palette untouched.
   ========================================================================== */
.sheet section h2{font-size:clamp(2.2rem,4.4vw,3.5rem)}

/* shared line-art for the drawn animations */
.tile-art svg,.hv-panel svg{width:100%;height:auto;display:block;overflow:visible}
.ln,.ln *{fill:none;stroke:rgba(255,255,255,.55);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cap{font-family:var(--mono);font-size:10px;letter-spacing:.14em;fill:rgba(255,255,255,.4)}
.beam{stroke:#f0506f;stroke-width:2.5;fill:none;stroke-dasharray:6 8;animation:kp-dash 1s linear infinite}
@keyframes kp-dash{to{stroke-dashoffset:-28}}

/* ---- threat bento ---- */
.threat-sec{background:#070708 !important;
  background-image:radial-gradient(700px 400px at 85% 10%,rgba(192,24,58,.12),transparent 70%) !important}
.bento{display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:auto auto;gap:20px}
.tile{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:22px;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.01));
  display:flex;flex-direction:column}
.tile-lg{grid-row:span 2}
.tile-art{padding:34px 34px 10px;flex:1;display:grid;place-items:center;
  background:radial-gradient(closest-side,rgba(192,24,58,.10),transparent 80%)}
.tile-copy{padding:8px 32px 32px}
.tile-copy h3{margin:8px 0 8px;font-size:1.35rem}
.tile-copy p{font-size:15px}
.tile-lg .tile-copy h3{font-size:1.7rem}
.wave{fill:none;stroke:#f0506f;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:kp-wave 2.4s ease-out infinite}
.w2,.w4{animation-delay:1.2s}.w3{animation-delay:.6s}.w4{animation-delay:1.8s}
@keyframes kp-wave{0%{transform:scale(.4);opacity:.9}100%{transform:scale(5);opacity:0}}
.anim-relay .lamp{fill:#f0506f;opacity:.15;animation:kp-lamp 2.4s infinite}
@keyframes kp-lamp{0%,60%{opacity:.15}70%,90%{opacity:1;filter:drop-shadow(0 0 6px #f0506f)}100%{opacity:.15}}
.key{fill:none;stroke:rgba(255,255,255,.7);stroke-width:2.6;stroke-linecap:round}
.anim-clone .ghost{stroke:#f0506f;opacity:0;animation:kp-ghost 3s cubic-bezier(.22,1,.36,1) infinite}
.anim-clone .g2{animation-delay:1.5s}
@keyframes kp-ghost{0%{opacity:0;transform:translate(0,0)}25%{opacity:1}100%{opacity:0;transform:translate(70px,-30px)}}
.chip rect,.chip path{fill:none;stroke-width:2.4;stroke-linecap:round}
.chip.old rect,.chip.old path{stroke:rgba(255,255,255,.6)}
.chip.new rect{fill:rgba(240,80,111,.18)}.chip.new rect,.chip.new path{stroke:#f0506f}
.chip.old{animation:kp-out 4s cubic-bezier(.22,1,.36,1) infinite}
.chip.new{animation:kp-in 4s cubic-bezier(.22,1,.36,1) infinite}
@keyframes kp-out{0%,15%{transform:translateY(0);opacity:1}45%,100%{transform:translateY(-70px);opacity:0}}
@keyframes kp-in{0%,45%{transform:translateY(-70px);opacity:0}75%,100%{transform:translateY(0);opacity:1}}
@media(max-width:1024px){.bento{grid-template-columns:1fr}.tile-lg{grid-row:auto}}

/* ---- pinned "how it works" ---- */
.howpin{background:var(--bg)}
.howpin-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}
.hstep{min-height:62vh;display:flex;flex-direction:column;justify-content:center;
  border-left:2px solid rgba(255,255,255,.08);padding:10px 0 10px 32px;opacity:.35;transition:opacity .5s,border-color .5s}
.hstep.on{opacity:1;border-left-color:#f0506f}
.hstep h3{font-size:1.8rem;margin:10px 0 12px}
.hstep .num{font-family:var(--mono);font-size:11px;letter-spacing:.16em;color:var(--brand)}
.hv-sticky{position:sticky;top:18vh;aspect-ratio:1/1;border-radius:28px;border:1px solid rgba(255,255,255,.08);
  background:radial-gradient(closest-side,rgba(192,24,58,.18),transparent 85%),#0b0b0d;overflow:hidden}
.hv-panel{position:absolute;inset:0;display:grid;place-items:center;padding:12%;opacity:0;transform:scale(.94);
  transition:opacity .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1)}
.hv-panel.active{opacity:1;transform:none}
.hv-cap{position:absolute;bottom:22px;left:0;right:0;text-align:center;font-family:var(--mono);font-size:11px;
  letter-spacing:.14em;text-transform:uppercase;color:#9d999b}
.hidden-mod{fill:#f0506f}.ping{fill:none;stroke:#f0506f;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:kp-wave 2s ease-out infinite}
.bigpad .c{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.22);stroke-width:2;animation:kp-key 4.2s infinite;animation-delay:calc(var(--i)*.18s)}
.ring{fill:none;stroke:#f0506f;stroke-width:3;stroke-dasharray:578;animation:kp-ringdeny 2.6s ease-in-out infinite}
@keyframes kp-ringdeny{0%{stroke-dashoffset:578;opacity:1}60%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.2}}
.startlbl{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:.12em;fill:#f5f4f4;text-anchor:middle}
.startlbl.sm{font-size:16px;fill:#9d999b}
.denied{font-family:var(--mono);font-size:13px;letter-spacing:.18em;fill:#f0506f;text-anchor:middle;animation:kp-shake 2.6s infinite}
@keyframes kp-shake{0%,62%,100%{transform:translateX(0)}66%{transform:translateX(-6px)}70%{transform:translateX(6px)}74%{transform:translateX(-4px)}78%{transform:translateX(0)}}
@media(max-width:1024px){.howpin-grid{grid-template-columns:1fr}.howpin-visual{display:none}
  .hstep{min-height:auto;opacity:1;padding:18px 0 18px 24px;margin-bottom:10px}}

/* ---- paper section (light, like the reference's white panel) ---- */
.paper{--ink:#16131a;--ink-2:#3a3439;--muted:#625b61;--dim:#8b8489;--line:rgba(0,0,0,.10);--line-2:rgba(0,0,0,.16);
  --brand:#b01432;background:#f3efec !important;color:var(--ink)}
.paper h2,.paper h3{color:var(--ink)}
.paper .icard{background:linear-gradient(#fff,#fff) padding-box,
  linear-gradient(135deg,#f0506f,rgba(0,0,0,.08) 35%,rgba(0,0,0,.08) 65%,#c0183a) border-box !important;
  border:1px solid transparent !important;box-shadow:0 30px 60px -30px rgba(40,10,20,.25)}
.paper .icard p,.paper .ticks li{color:var(--muted)}
.paper .ticks li::before{background-color:rgba(176,20,50,.10)}
.paper .btn.ghost{color:var(--ink);border-color:rgba(0,0,0,.2)}
.paper .compare{border-color:var(--line);background:#fff}
.paper .compare thead th{background:#faf8f6 !important;color:var(--ink)}
.paper .compare th,.paper .compare td{border-bottom-color:var(--line) !important;color:var(--muted)}
.paper .compare tbody th{color:var(--ink)}
.paper .compare .yes{color:#b01432}
.paper .eyebrow{color:#b01432}

/* ---- outline band ---- */
.outline-band{position:relative;z-index:2;background:#070708;overflow:hidden;padding:46px 0;
  border-block:1px solid rgba(255,255,255,.06)}
.ob-track{display:flex;align-items:center;gap:48px;width:max-content;animation:kp-slide 38s linear infinite}
.ob-track span{font-family:var(--display);font-weight:800;font-size:clamp(3rem,8vw,7rem);letter-spacing:-.04em;
  text-transform:uppercase;color:transparent;-webkit-text-stroke:1.5px rgba(240,80,111,.75);white-space:nowrap}
.ob-track span:nth-child(4n+1){color:#f0506f;-webkit-text-stroke:0}
.ob-track i{width:18px;height:18px;border-radius:5px;background:#f0506f;flex-shrink:0;box-shadow:0 0 18px #f0506f}

/* ---- crimson statement ---- */
.crimson{background:radial-gradient(900px 500px at 50% 0%,#e0294d,transparent 70%),
  linear-gradient(160deg,#8d0f26,#4d0614) !important;color:#fff;padding:150px 0 !important}
.crimson .eyebrow{color:#ffd0da}.crimson .eyebrow::before{background:#ffd0da}
.crimson .huge{color:#fff;font-size:clamp(3rem,8vw,6.5rem) !important;letter-spacing:-.05em;margin:20px 0 34px}
.crimson .lead{color:rgba(255,255,255,.86);margin:34px auto 0;max-width:60ch}
.strike-list{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px}
.strike-list li{position:relative;font-family:var(--display);font-weight:700;font-size:clamp(1.3rem,2.6vw,2rem);
  color:#fff;transition:opacity .5s;transition-delay:calc(.5s + var(--i)*.22s)}
.strike-list li::after{content:"";position:absolute;left:-4%;right:-4%;top:52%;height:3px;background:#fff;border-radius:2px;
  transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.22,1,.36,1);transition-delay:calc(.5s + var(--i)*.22s)}
html.js .crimson.rv{opacity:1;transform:none}
.crimson.in .strike-list li{opacity:.55}
.crimson.in .strike-list li::after{transform:scaleX(1)}
html:not(.js) .strike-list li::after{transform:scaleX(1)}

/* ---- sideways timeline ---- */
.yearsec{background:#070708 !important;background-image:radial-gradient(800px 400px at 10% 100%,rgba(192,24,58,.14),transparent 70%) !important;overflow:hidden}
.years-viewport{overflow:hidden;padding:20px 0 50px}
.years-track{display:flex;gap:28px;padding:0 max(28px,calc((100vw - 1200px)/2 + 28px));width:max-content;will-change:transform}
.yr-card{width:min(420px,78vw);flex-shrink:0;border-top:2px solid rgba(255,255,255,.12);padding-top:22px}
.yr-big{font-family:var(--display);font-weight:800;font-size:clamp(5rem,12vw,9.5rem);line-height:.9;letter-spacing:-.05em;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.35);margin-bottom:18px}
.yr-card.hot{border-top-color:#f0506f}.yr-card.hot .yr-big{color:#f0506f;-webkit-text-stroke:0}
.yr-card p{font-size:16px;max-width:34ch}

/* ---- cursor spotlight on cards (autokey.ca does this) ---- */
.tile,.card,.icard{--mx:50%;--my:50%}
.tile::before,.sheet .card::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  transition:opacity .3s;background:radial-gradient(360px circle at var(--mx) var(--my),rgba(240,80,111,.16),transparent 60%)}
.sheet .card{position:relative}
.tile:hover::before,.sheet .card:hover::before{opacity:1}

@media (prefers-reduced-motion:reduce){
  .wave,.anim-clone .ghost,.chip,.beam,.ping,.ring,.denied,.bigpad .c,.ob-track,.anim-relay .lamp{animation:none !important}
  .anim-clone .ghost{opacity:.6}.chip.old{opacity:0}.chip.new{opacity:1}
}
/* overflow:hidden on .sheet makes it a scroll container, which silently breaks
   position:sticky inside it (the pinned how-it-works visual). clip doesn't. */
.sheet{overflow:clip}
/* the sticky visual needs a column as tall as the steps to travel within */
.howpin-visual{align-self:stretch}

/* ==========================================================================
   THREAT THEATRE (2026-10-07) — replaces the line-art bento, which Ray found
   cheap and colourless. A widescreen canvas plays three chapters like a video
   (assets/threat-theatre.js); tabs underneath act as chapter markers.
   ========================================================================== */
.theatre{margin-top:10px}
.tt-stage{position:relative;aspect-ratio:16/9;border-radius:26px;overflow:hidden;
  border:1px solid rgba(240,80,111,.22);
  box-shadow:0 0 0 1px rgba(255,255,255,.04),0 40px 100px -30px rgba(192,24,58,.45),0 30px 60px rgba(0,0,0,.6)}
#threatfx{position:absolute;inset:0;width:100%;height:100%;display:block;background:#050405}
.tt-status{position:absolute;top:22px;right:22px;display:inline-flex;align-items:center;gap:9px;
  padding:8px 15px;border-radius:99px;background:rgba(8,6,8,.75);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.14);font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:#e9e4e6}
.tt-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#9d999b}
.tt-status[data-state="attack"]::before{background:#ffb347;box-shadow:0 0 10px #ffb347;animation:kp-blink .5s infinite}
.tt-status[data-state="breach"]::before{background:#fff;box-shadow:0 0 10px #fff}
.tt-status[data-state="blocked"]{border-color:rgba(240,80,111,.6);color:#fff}
.tt-status[data-state="blocked"]::before{background:#f0506f;box-shadow:0 0 12px #f0506f}
.tt-caption{position:absolute;left:28px;bottom:26px;max-width:min(640px,80%);
  font-family:var(--display);font-weight:700;font-size:clamp(1rem,1.8vw,1.45rem);line-height:1.3;
  letter-spacing:-.015em;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.8);
  opacity:0;transform:translateY(10px)}
.tt-caption.show{opacity:1;transform:none;transition:opacity .5s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)}
.tt-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.tt-tab{all:unset;cursor:pointer;position:relative;display:block;padding:20px 22px 24px;border-radius:18px;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);transition:border-color .3s,background .3s}
.tt-tab:hover{border-color:rgba(255,255,255,.18)}
.tt-tab.on{border-color:rgba(240,80,111,.45);background:linear-gradient(180deg,rgba(192,24,58,.16),rgba(192,24,58,.03))}
.tt-tab:focus-visible{outline:2px solid #f0506f;outline-offset:3px}
.tt-tab .num{font-family:var(--mono);font-size:11px;letter-spacing:.16em;color:#f0506f}
.tt-tab b{display:block;font-family:var(--display);font-size:1.25rem;letter-spacing:-.02em;color:#fff;margin:6px 0 6px}
.tt-tab .desc{display:block;font-size:14px;color:#9d999b;line-height:1.5}
.tt-tab .bar{position:absolute;left:22px;right:22px;bottom:12px;height:3px;border-radius:2px;background:rgba(255,255,255,.08);overflow:hidden}
.tt-tab .bar i{position:absolute;inset:0;background:linear-gradient(90deg,#c0183a,#ff8ea4);transform-origin:left;transform:scaleX(0)}
@media(max-width:820px){.tt-tabs{grid-template-columns:1fr}.tt-tab .desc{display:none}
  .tt-caption{left:16px;bottom:14px;font-size:.92rem;max-width:88%}.tt-status{top:12px;right:12px;font-size:9px}
  .tt-stage{border-radius:16px}}
.strike-intro{font-family:var(--mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#ffd0da;margin:0 0 18px}

/* ---- FR | EN switcher in the top bar ---- */
.tb-right{display:inline-flex;align-items:center;gap:16px}
.langsw{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.14em;
  padding:3px 9px;border:1px solid rgba(255,255,255,.22);border-radius:5px;color:#fff !important;transition:border-color .2s,background .2s}
.langsw:hover{border-color:#f0506f;background:rgba(240,80,111,.14)}
/* French runs ~20% longer than English; keep the hero headline to three lines */
html[lang^="fr"] .typehero .th-title{font-size:clamp(2.2rem,4.1vw,3.75rem)}
html[lang^="fr"] .crimson .huge{font-size:clamp(2.6rem,6.6vw,5.4rem) !important}

/* ==========================================================================
   MOBILE PASS (2026-10-07) — from a Playwright audit of every page, both
   languages, at 375px and 360px.
   ========================================================================== */
html,body{overflow-x:clip}
.typehero{min-height:100vh;min-height:100svh}   /* svh: iOS URL bar doesn't crop the hero */

@media(max-width:820px){
  /* side-slides push content past the right edge mid-animation, which makes iOS wobble sideways */
  html.js .rv.from-left,html.js .rv.from-right{transform:translateY(40px)}
  html.js .rv.from-left.in,html.js .rv.from-right.in{transform:none}

  /* thumb-sized tap targets (>=40px) */
  .topbar .wrap{height:50px}
  .topbar a[href^="tel"]{display:inline-block;padding:12px 2px}
  .langsw{padding:9px 13px;font-size:12px}
  footer.site ul{gap:2px}
  footer.site li a{display:inline-block;padding:9px 0}
  .faq summary{padding-top:20px;padding-bottom:20px}

  /* nothing smaller than ~11px */
  .eyebrow{font-size:11.5px}
  .lockhud{font-size:10.5px}
  .tt-status{font-size:10.5px}
  footer.site h4,.crumbs{font-size:11.5px}

  /* hero: the headline has to land on the first screen, not after the logo */
  .typehero{padding:76px 0 96px}
  .th-visual{max-width:236px;margin:0 auto -6px}
  .typehero .th-title{margin:16px 0 18px}
  .typehero .cta-row{margin-top:26px}
  .typehero .cta-row .btn{flex:1 1 100%}

  /* attack player: caption moves under the picture instead of covering it */
  .tt-stage{aspect-ratio:auto;overflow:visible;border:0;box-shadow:none;border-radius:0}
  #threatfx{position:relative;aspect-ratio:16/9;height:auto;border-radius:16px;
    border:1px solid rgba(240,80,111,.22);box-shadow:0 20px 50px -20px rgba(192,24,58,.45)}
  .tt-caption{position:static;margin:14px 2px 0;max-width:none;min-height:3.9em;
    font-size:1.02rem;text-shadow:none}
  .tt-status{top:10px;right:10px;padding:6px 11px}
  .tt-tabs{gap:10px;margin-top:12px}
  .tt-tab{padding:15px 18px 20px}

  /* comparison table -> stacked cards (JS copies the column names into data-label) */
  .compare,.compare tbody,.compare tr,.compare th,.compare td{display:block;width:100%}
  .compare thead{display:none}
  .compare{border:0;background:transparent !important}
  .compare tr{border:1px solid var(--line);border-radius:14px;margin-bottom:12px;padding:14px 16px;background:#fff}
  .compare tbody th{padding:0 0 8px;border:0 !important;font-size:15px}
  .compare td{padding:6px 0 !important;border:0 !important;display:flex;gap:12px;font-size:14.5px}
  .compare td::before{content:attr(data-label);flex:0 0 42%;font-weight:700;color:var(--ink)}
}
@media(max-width:380px){ .th-visual{max-width:210px} }

/* language switch inside the phone menu */
.mobnav .langsw-m{display:inline-block;margin:6px 0 4px;padding:10px 14px;border:1px solid var(--line-2);
  border-radius:8px;font-family:var(--mono);font-size:12px;letter-spacing:.12em}
@media(max-width:820px){
  .crumbs a{display:inline-block;padding:12px 4px;margin:-12px -4px}
  header.site .brand{padding:6px 0}
}
@media(max-width:820px){
  .mobnav .btn{justify-content:center;text-align:center}
  /* attack chapters: one compact row instead of three tall cards */
  .tt-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .tt-tab{padding:12px 10px 16px;min-height:0}
  .tt-tab b{font-size:.95rem;line-height:1.2;margin:4px 0 2px}
  .tt-tab .bar{left:10px;right:10px;bottom:8px}
}
/* iOS zooms the page into any field whose text is under 16px */
@media(max-width:820px){ input,select,textarea{font-size:16px !important} }

/* --------------------------------------------------------------------------
   MOBILE TYPE SCALE (2026-10-08, Ray: "texts and CTAs a bit small").
   Same layout, same hierarchy — every step just moves up ~1.5–2px so the
   smallest text on a phone is ~12.5px and body copy reads at 17px.
   -------------------------------------------------------------------------- */
@media(max-width:820px){
  /* micro labels (were 10.5–11px) */
  .cred b,.lockhud,.tt-status,.hstep .num,.card .num,.hv-cap,.tt-tab .num{font-size:12.5px !important}
  /* eyebrows, crumbs, footer headings (were 11.5–12px) */
  .eyebrow,.crumbs,.crumbs a,footer.site h4,.langsw,.langsw-m{font-size:13px !important}
  .strike-intro{font-size:14px !important}
  /* small print (were 13–14.5px) */
  .cred span,.tb-right a,.topbar a[href^="tel"],.fbot span,.formnote,figcaption,.quote .who{font-size:14.5px !important}
  .cred p,.field label,label > span,.blurb,footer.site li a{font-size:15.5px !important}
  .compare td,.compare tbody th{font-size:16px !important}
  /* body copy (was 15.2–16px) */
  main p,.card p,.ticks li,details p,.statcard p,.hstep p,.yr-card p{font-size:17px}
  .faq summary{font-size:17.5px}
  /* CTAs: bigger label, taller button (were 15px) */
  .btn{font-size:16.5px !important;min-height:52px;padding-top:15px;padding-bottom:15px}
  .btn.lg{font-size:17px !important;min-height:56px}
  .mobnav a{font-size:19px}
  .tt-tab b{font-size:1.02rem !important}
}
@media(max-width:820px){
  .sheet p{font-size:17px}
  /* a few notes carry inline sizes — lift them with the rest */
  [style*="font-size:13.5px"],[style*="font-size:14px"],[style*="font-size:14.5px"]{font-size:15.5px !important}
}
@media(max-width:820px){ .th-copy .eyebrow{font-size:12px !important;letter-spacing:.14em;white-space:nowrap} }
