/* Nullsend homepage redesign (Phase: homepage only).
 *
 * Linked ONLY by index.html, and every rule is scoped under `body.hp`, so this
 * file cannot affect enterprise.html / security.html (which do not load it and
 * are not .hp) nor the shared nav/footer (never targeted here). It REUSES
 * site.css for tokens (incl. the light-theme overrides, so the toggle works
 * automatically), buttons (.btn*), .eyebrow base, and the nav/footer chrome.
 * It adds only the new section layouts + the two animations.
 *
 * Section rules are var(--token) only, so the theme drives everything. Dark is
 * the signed-off default; the deliberate light palette lives in one block at
 * the bottom (:root[data-theme="light"] .hp { ... }) with its own chosen values
 * rather than reusing the dark tokens. The only literal hex sits in that light
 * block (text colour for the teal button fill, and the dark frame for the fixed
 * dark SVG). The proof panel and reveals are gated behind prefers-reduced-motion.
 */

.hp .mono { font-family: var(--font-mono); }
.hp .wrap { max-width: var(--max-w); margin: 0 auto; }

/* The breathing encryption tick on the eyebrows (signature motion). */
.hp .eyebrow .tick {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 10px var(--signal);
  display: inline-block; flex-shrink: 0;
}

/* ---- HERO: asymmetric, claim left + interactive demo right ---- */
.hp .hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.hp .hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(130% 90% at 82% -10%, color-mix(in srgb, var(--signal) 12%, transparent) 0%, transparent 52%); }
.hp .hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(100% 75% at 84% 6%, black 0%, transparent 62%);
  mask-image: radial-gradient(100% 75% at 84% 6%, black 0%, transparent 62%); }
.hp .hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px 104px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hp .hero-copy { max-width: 560px; }
.hp .hero .eyebrow { margin-bottom: 30px; }
.hp .hero h1 { font-size: clamp(46px, 5.6vw, 80px); font-weight: 600; line-height: 0.99; letter-spacing: -0.04em; color: var(--paper); margin: 0 0 28px; }
.hp .hero h1 .accent { color: var(--signal); }
.hp .hero .lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--paper-dim); margin: 0 0 34px; max-width: 480px; }
.hp .hero .lede strong { color: var(--paper); font-weight: 500; }
.hp .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hp .trust { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hp .trust-item { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--paper-mute); }
.hp .trust-item i { color: var(--success); font-size: 15px; }

/* ---- interactive encrypt-and-send demo (.esh) ----
 * Replaces the old static proof scramble. Real AES-256-GCM via WebCrypto,
 * driven by home.js. All colours are tokens (site.css carries the light-theme
 * overrides), so the panel reads in both modes; mono is used for cipher, URL
 * and IDs. Scoped under .hp .esh so it cannot touch other pages. */
.hp .esh { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.hp .esh-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hp .esh-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hp .esh-title { margin-left: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--paper-mute); }
.hp .esh-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--paper-mute); letter-spacing: 0.02em; }
.hp .esh-badge i { color: var(--signal); font-size: 13px; }

/* step rail */
.hp .esh-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); }
.hp .esh-step { appearance: none; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 8px 4px; cursor: pointer; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--paper-mute); transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.hp .esh-step .sn { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.hp .esh-step .sl { font-size: 10.5px; letter-spacing: 0.02em; }
.hp .esh-step:hover { color: var(--paper-dim); background: color-mix(in srgb, var(--paper) 4%, transparent); }
.hp .esh-step.done { color: var(--paper-dim); }
.hp .esh-step.done .sn { color: var(--success); }
.hp .esh-step.on { color: var(--paper); border-color: color-mix(in srgb, var(--signal) 30%, transparent); background: color-mix(in srgb, var(--signal) 8%, transparent); }
.hp .esh-step.on .sn { color: var(--signal); }
.hp .esh-step:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* stage + panels */
.hp .esh-stage { padding: 18px; min-height: 224px; }
.hp .esh-panel { display: flex; flex-direction: column; }
.hp .esh-panel[hidden] { display: none; }
.hp .esh-panel:not(.on) { display: none; }
.hp .esh-panel.on { animation: eshFade 260ms ease; }
@keyframes eshFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hp .esh-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 10px; }
.hp .esh-input { width: 100%; box-sizing: border-box; resize: none; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--paper);
  background: color-mix(in srgb, var(--ink) 55%, var(--surface)); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; }
.hp .esh-input:focus { outline: none; border-color: color-mix(in srgb, var(--signal) 40%, transparent); }
.hp .esh-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--paper-mute); }
.hp .esh-note i { color: var(--signal); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.hp .esh-row { margin-bottom: 8px; }
.hp .esh-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); }
.hp .esh-tag.ok { color: var(--success); }
.hp .esh-plain { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--paper); word-break: break-word;
  padding: 11px 13px; background: color-mix(in srgb, var(--signal) 6%, transparent); border: 1px solid color-mix(in srgb, var(--signal) 22%, transparent); border-radius: 8px; }
.hp .esh-plain.decrypted { border-color: color-mix(in srgb, var(--success) 34%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.hp .esh-arrow { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--paper-mute); }
.hp .esh-arrow i { color: var(--signal); font-size: 15px; }
.hp .esh-cipher { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--paper-mute); word-break: break-all;
  padding: 11px 13px; background: color-mix(in srgb, var(--ink) 70%, var(--surface)); border: 1px solid var(--line); border-radius: 8px; min-height: 70px; }
.hp .esh-cipher.small { min-height: 52px; max-height: 70px; overflow: hidden; }
.hp .esh-cipher .ch { transition: color 120ms ease; }
.hp .esh-cipher .ch.lit { color: var(--signal); }

/* share link, key fragment emphasised in signal */
.hp .esh-link { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; word-break: break-all;
  padding: 12px 13px; background: color-mix(in srgb, var(--ink) 55%, var(--surface)); border: 1px solid var(--line); border-radius: 8px; }
.hp .esh-link .lk-base, .hp .esh-link .lk-id { color: var(--paper-dim); }
.hp .esh-link .lk-frag { color: var(--signal); font-weight: 600; }
.hp .esh-link.expired { opacity: 0.5; text-decoration: line-through; }
.hp .esh-expire { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hp .esh-gone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--paper-mute);
  padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.hp .esh-gone i { color: var(--paper-mute); font-size: 15px; }

/* footer: restart + status */
.hp .esh-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.hp .esh-restart { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--paper-dim);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 12px; transition: color 180ms ease, border-color 180ms ease; }
.hp .esh-restart:hover { color: var(--paper); border-color: color-mix(in srgb, var(--signal) 40%, transparent); }
.hp .esh-restart:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.hp .esh-restart i { font-size: 14px; }
.hp .esh-status { font-family: var(--font-mono); font-size: 11px; color: var(--paper-mute); }

/* ---- INTRO VIDEO (kept from live; explainer iframe) ---- */
.hp .introvid { border-bottom: 1px solid var(--line); }
.hp .introvid-inner { max-width: 960px; margin: 0 auto; padding: 72px 40px; }
.hp .video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.hp .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- STATEMENT BAND ---- */
.hp .band { border-bottom: 1px solid var(--line); background: var(--surface); }
.hp .band-inner { max-width: var(--max-w); margin: 0 auto; padding: 84px 40px; }
.hp .band h2 { font-size: clamp(30px, 3.7vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -0.028em; color: var(--paper); margin: 0; max-width: 940px; }
.hp .band h2 .mute { color: var(--paper-mute); }
.hp .band h2 .accent { color: var(--signal); }

/* ---- CANNOT: editorial numbered rows ---- */
.hp .cannot { border-bottom: 1px solid var(--line); }
.hp .cannot-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px; }
.hp .cannot-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.hp .cannot-head h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 0; }
.hp .cannot-head p { font-size: 17px; color: var(--paper-dim); margin: 0; }
.hp .crow { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: 32px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); transition: padding-left 200ms ease; }
.hp .crow:last-child { border-bottom: 1px solid var(--line); }
.hp .crow:hover { padding-left: 8px; }
.hp .cnum { font-family: var(--font-mono); font-size: 13px; color: var(--signal); }
.hp .crow h3 { font-size: 23px; font-weight: 500; letter-spacing: -0.02em; color: var(--paper); margin: 0; line-height: 1.2; }
.hp .crow p { font-size: 15.5px; color: var(--paper-mute); margin: 0; line-height: 1.6; }
.hp .crow .mech { font-family: var(--font-mono); font-size: 12px; color: var(--success); margin-top: 10px; display: flex; align-items: center; gap: 7px; }

/* ---- HOW ---- */
.hp .how { border-bottom: 1px solid var(--line); background: var(--surface); }
.hp .how-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px; }
.hp .how-top { max-width: 680px; margin-bottom: 52px; }
.hp .how-top h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 16px; }
.hp .how-top p { font-size: 17px; color: var(--paper-dim); margin: 0; }
.hp .how-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hp .how-step { padding: 32px 28px; position: relative; }
.hp .how-step + .how-step { border-left: 1px solid var(--line); }
.hp .how-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--signal); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hp .how-step .n::before { content: ''; width: 24px; height: 1px; background: var(--signal); }
.hp .how-step h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--paper); margin: 0 0 10px; }
.hp .how-step p { font-size: 14.5px; color: var(--paper-mute); margin: 0; line-height: 1.6; }
.hp .how-step .frag { font-family: var(--font-mono); color: var(--signal); }
.hp .how-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--paper-mute); margin-top: 24px; display: flex; align-items: center; gap: 8px; }
.hp .how-note i { color: var(--signal); }
.hp .how-diagram { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface-2); overflow-x: auto; }
.hp .how-diagram svg { display: block; width: 100%; height: auto; min-width: 640px; }

/* ---- FEATURES: even 4x2 grid (8 feats), white-label accented ---- */
.hp .features { border-bottom: 1px solid var(--line); }
.hp .features-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px; }
.hp .features-top { max-width: 640px; margin-bottom: 52px; }
.hp .features-top h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 16px; }
.hp .features-top p { font-size: 17px; color: var(--paper-dim); margin: 0; }
.hp .fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hp .feat { background: var(--ink); padding: 30px 26px; transition: background 200ms ease, transform 200ms ease; }
.hp .feat:hover { background: var(--surface); transform: translateY(-2px); }
.hp .feat.accent-feat { background: var(--surface); position: relative; }
.hp .feat.accent-feat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); }
.hp .feat.accent-feat:hover { background: var(--surface-2); }
.hp .feat i { color: var(--signal); font-size: 22px; }
.hp .feat h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--paper); margin: 16px 0 8px; }
.hp .feat p { font-size: 14.5px; color: var(--paper-mute); margin: 0; line-height: 1.6; }
.hp .feat .code { font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim); }

/* ---- PRICING ---- */
.hp .pricing { border-bottom: 1px solid var(--line); background: var(--surface); }
.hp .pricing-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px; }
.hp .pricing-top { max-width: 640px; margin-bottom: 52px; }
.hp .pricing-top h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 16px; }
.hp .pricing-top p { font-size: 17px; color: var(--paper-dim); margin: 0; }
.hp .pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.hp .pcard { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; transition: transform 200ms ease, border-color 200ms ease; }
.hp .pcard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.hp .pcard.feat-card { border-color: color-mix(in srgb, var(--signal) 40%, transparent); position: relative; }
.hp .pcard.feat-card:hover { border-color: var(--signal); }
.hp .pcard.feat-card::before { content: 'Most popular'; position: absolute; top: -10px; left: 26px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink); background: var(--signal); padding: 3px 10px; border-radius: 6px; }
.hp .ptier { font-size: 15px; color: var(--paper); font-weight: 500; margin-bottom: 4px; }
.hp .pdesc { font-size: 13px; color: var(--paper-mute); margin: 0 0 20px; min-height: 20px; }
.hp .pnum { display: flex; align-items: baseline; gap: 3px; margin-bottom: 24px; }
.hp .pnum .amt { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--paper); }
.hp .pnum .per { font-size: 14px; color: var(--paper-mute); }
.hp .plist { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.hp .plist li { font-size: 14px; color: var(--paper-dim); display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; line-height: 1.45; }
.hp .plist i { color: var(--signal); font-size: 15px; margin-top: 1px; }
.hp .pcard .btn { justify-content: center; width: 100%; }
.hp .pnote { font-size: 13px; color: var(--paper-mute); margin: 28px 0 0; }
.hp .pnote a { color: var(--paper-dim); border-bottom: 1px solid var(--line-strong); }

/* ---- ENTERPRISE strip ---- */
.hp .ent { border-bottom: 1px solid var(--line); }
.hp .ent-inner { max-width: var(--max-w); margin: 0 auto; padding: 80px 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hp .ent h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 12px; line-height: 1.12; }
.hp .ent p { font-size: 16px; color: var(--paper-dim); margin: 0; max-width: 620px; }
.hp .ent .mono { color: var(--paper-dim); }

/* ---- MOBILE ---- */
.hp .mobile { border-bottom: 1px solid var(--line); background: var(--surface); }
.hp .mobile-inner { max-width: var(--max-w); margin: 0 auto; padding: 96px 40px; display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
.hp .mobile h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.025em; color: var(--paper); margin: 14px 0 16px; line-height: 1.1; }
.hp .mobile p { font-size: 17px; color: var(--paper-dim); margin: 0 0 28px; max-width: 440px; }
.hp .mob-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 420px; }
.hp .mob-form input { flex: 1; min-width: 180px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; color: var(--paper); font-family: var(--font-sans); font-size: 14px; outline: none; }
.hp .mob-form input:focus { box-shadow: 0 0 0 2px var(--signal); border-color: transparent; }
.hp .mob-consent { font-size: 12px; color: var(--paper-mute); margin: 12px 0 0; }
/* site.js sets className to "waitlist-msg [ok|err]" on this node; style that. */
.hp .waitlist-msg { font-size: 13px; margin: 8px 0 0; min-height: 18px; }
.hp .waitlist-msg.ok { color: var(--success); }
.hp .waitlist-msg.err { color: var(--danger, #FF4D6D); }
.hp .phone { justify-self: center; width: 240px; height: 480px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 32px; padding: 14px; position: relative; }
.hp .phone-screen { height: 100%; background: var(--surface-2); border-radius: 20px; border: 1px solid var(--line); padding: 18px 16px; overflow: hidden; }
.hp .ph-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hp .ph-top .lk { display: flex; align-items: center; gap: 7px; color: var(--paper); font-weight: 500; font-size: 14px; }
.hp .ph-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 8px; }
.hp .ph-file { display: flex; align-items: center; gap: 9px; background: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; margin-bottom: 8px; }
.hp .ph-file i { color: var(--signal); font-size: 16px; }
.hp .ph-file .nm { font-size: 12px; color: var(--paper); }
.hp .ph-file .mt { font-family: var(--font-mono); font-size: 10px; color: var(--success); }
.hp .ph-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--paper-dim); padding: 9px 0; border-top: 1px solid var(--line); }
.hp .ph-send { margin-top: 14px; background: var(--signal); color: var(--ink); text-align: center; border-radius: 8px; padding: 11px; font-size: 13px; font-weight: 500; }
.hp .ph-foot { font-family: var(--font-mono); font-size: 9px; color: var(--paper-mute); text-align: center; margin-top: 12px; }

/* ---- FINAL CTA ---- */
.hp .final { position: relative; overflow: hidden; isolation: isolate; }
.hp .final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(100% 120% at 18% 100%, color-mix(in srgb, var(--signal) 9%, transparent) 0%, transparent 52%); }
.hp .final-inner { max-width: var(--max-w); margin: 0 auto; padding: 112px 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hp .final h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.03; letter-spacing: -0.032em; color: var(--paper); margin: 0; }
.hp .final h2 .accent { color: var(--signal); }
.hp .final-side p { font-size: 17px; color: var(--paper-dim); margin: 0 0 24px; }
.hp .final-side .btn { margin-bottom: 14px; }
.hp .final-note { font-size: 13px; color: var(--paper-mute); margin: 0; }
.hp .final-note a { color: var(--paper-dim); border-bottom: 1px solid var(--line-strong); }

/* ---- hero entrance (pure CSS; ends visible even with JS off / reduced motion) ---- */
@keyframes nshFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hp .fu { animation: nshFadeUp 700ms ease both; }
.hp .fu2 { animation: nshFadeUp 800ms ease both; animation-delay: 120ms; }
.hp .fu3 { animation: nshFadeUp 900ms ease both; animation-delay: 220ms; }

/* breathing encryption tick */
@keyframes nshBreathe { 0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--signal); } 50% { opacity: 0.55; box-shadow: 0 0 14px var(--signal); } }
.hp .eyebrow .tick { animation: nshBreathe 2.8s ease-in-out infinite; }

/* ---- scroll reveal: ONLY hidden when JS is on (html.js), so JS-off shows all ---- */
html.js .hp .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
html.js .hp .reveal.in { opacity: 1; transform: translateY(0); }
html.js .hp .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(.16,1,.3,1), transform 600ms cubic-bezier(.16,1,.3,1); }
html.js .hp .stagger.in > * { opacity: 1; transform: translateY(0); }
html.js .hp .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
html.js .hp .stagger.in > *:nth-child(2) { transition-delay: 70ms; }
html.js .hp .stagger.in > *:nth-child(3) { transition-delay: 140ms; }
html.js .hp .stagger.in > *:nth-child(4) { transition-delay: 210ms; }
html.js .hp .stagger.in > *:nth-child(5) { transition-delay: 280ms; }
html.js .hp .stagger.in > *:nth-child(6) { transition-delay: 350ms; }
html.js .hp .stagger.in > *:nth-child(7) { transition-delay: 420ms; }
html.js .hp .stagger.in > *:nth-child(8) { transition-delay: 490ms; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hp .final-inner { grid-template-columns: 1fr; gap: 28px; padding: 80px 24px; }
  .hp .pgrid { grid-template-columns: 1fr; }
  .hp .fgrid { grid-template-columns: repeat(2, 1fr); } /* 8 feats -> even 2-col rows */
}
@media (max-width: 760px) {
  .hp .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 72px; }
  .hp .crow { grid-template-columns: 1fr; gap: 10px; }
  .hp .cannot-head { grid-template-columns: 1fr; gap: 14px; }
  .hp .how-steps { grid-template-columns: 1fr; }
  .hp .how-step + .how-step { border-left: none; border-top: 1px solid var(--line); }
  .hp .fgrid { grid-template-columns: 1fr; }
  .hp .ent-inner { grid-template-columns: 1fr; gap: 24px; }
  .hp .mobile-inner { grid-template-columns: 1fr; gap: 40px; }
  .hp .phone { display: none; }
  .hp .introvid-inner, .hp .band-inner, .hp .cannot-inner, .hp .how-inner,
  .hp .features-inner, .hp .pricing-inner, .hp .mobile-inner { padding: 64px 24px; }
}

/* narrow phones: drop the step words and the head badge, keep the numbers */
@media (max-width: 440px) {
  .hp .esh-step .sl { display: none; }
  .hp .esh-badge { display: none; }
  .hp .esh-stage { padding: 16px 14px; }
}

/* ---- reduced motion: static, fully readable ---- */
@media (prefers-reduced-motion: reduce) {
  .hp * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .hp .reveal, html.js .hp .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   LIGHT THEME: a deliberate, first-class homepage palette (scoped to .hp).
   Dark mode is signed off and UNCHANGED; site.css is untouched. This redefines
   only the homepage's tokens (inherited from body.hp) plus the few light-only
   fills where flipping a token is not enough. The design is dark-first, so
   these values are chosen for light, not mechanically inverted from dark.
   Measured WCAG AA on light: headings ~19:1, body (--paper-dim) ~12.9:1,
   muted (--paper-mute) >=5.8:1, accent/links (--signal) 4.7-6.1:1.
   ============================================================================ */
:root[data-theme="light"] .hp {
  --ink: #E9EDF3;        /* page background: a soft cool grey so white panels read AS panels */
  --surface: #FFFFFF;     /* primary panels: statement band, how, pricing, mobile, proof, video, card hover */
  --surface-2: #DDE3EC;   /* nested insets: proof head/chips, form inputs, phone screen */
  --paper: #0B0F16;       /* headings: near-black (19:1 on white) */
  --paper-dim: #2A323F;   /* body copy: dark slate (12.9:1 on white, 10:1 on the grey insets) */
  --paper-mute: #4B5563;  /* secondary/muted: a genuinely dark grey, >=5.8:1 on every surface (was far too pale) */
  --signal: #006C82;      /* accent text, icons, links AND fills: a deep on-brand teal, AA on light (the bright cyan glows weakly here) */
  --signal-dim: #005A6E;  /* primary-button hover: a touch deeper so the light fill-text stays readable */
  --success: #08714C;     /* trust ticks, mechanism tags, "encrypted" labels: the dark-theme mint is ~1.8:1 on white, so deepen to >=4.6:1 */
  --danger: #CC2E4B;      /* form error text: deepened from the dark-theme coral for AA on the light form */
  --line: rgba(15, 23, 33, 0.14);        /* borders/dividers: dark-at-low-opacity so structure is visible on light (the dark theme's white-low-opacity lines vanish here) */
  --line-strong: rgba(15, 23, 33, 0.24);
  --nav-bg: rgba(233, 237, 243, 0.82);   /* keep the translucent nav matched to the lighter --ink */
  --overlay-bg: rgba(233, 237, 243, 0.97);
}
/* The primary button is a deep-teal FILL in light mode; site.css hard-codes its
   text to #06222A (dark-on-teal, only 2.7:1), so carry light text here instead.
   The "Most popular" badge and the phone Send button already use --ink, which
   is light in light mode, so they need no change. */
:root[data-theme="light"] .hp .btn-primary { color: var(--ink); }
/* The encryption-flow diagram is a fixed dark SVG (decision d): its internal
   palette (dark boxes, cyan arrows, grey connector labels) is drawn for a dark
   canvas, so frame it as a deliberate dark diagram tile rather than floating it
   on light grey, where the connectors would wash out. */
:root[data-theme="light"] .hp .how-diagram { background: #0A0E14; border-color: rgba(15, 23, 33, 0.18); box-shadow: 0 2px 12px rgba(15, 23, 33, 0.10); }
