

/* ── Scroll reveal ── */
.reveal       { opacity: 0; transform: translateY(28px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

nav a { position: relative; }

/* ── Mobile Responsive Overrides ── */
@media (max-width: 767px) {

  /* Nav CTA button: smaller on mobile */
  #navbar-pill { padding: 0.5rem 0.75rem !important; }

  /* FAQ: tighter padding */
  .max-w-3xl { padding-left: 1rem !important; padding-right: 1rem !important; }

  /* All sections: ensure no horizontal overflow */
  section { overflow-x: hidden !important; }
   .max-w-3xl { max-width: 100% !important; }

  /* Footer: stack columns */
  footer .grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }

  /* General: prevent horizontal scroll */
  body { overflow-x: hidden !important; }

  /* Reveal animations: reduce transform distance for mobile */
  .reveal { transform: translateY(16px) !important; }
}

/* ═════════════════════════════════════════════════════════════════
   K2 — New hero + bento sections (ported from landing.html v3)
   Fully scoped under #k2 so nothing escapes.
   ═════════════════════════════════════════════════════════════════ */
#k2 {
  --k2-brand: #0073ff;
  --k2-brand-hover: #005fd6;
  --k2-brand-soft: rgba(0, 115, 255, 0.08);
  --k2-surface-2: #f8f9fa;
  /* warm canvas — mirrors the app's off-white paper (#FAFAF8 / #F1F0EE) so the
     site feels like the product, not a clinical white page */
  --k2-cream: #faf8f3;
  --k2-text: #0a0a0a;
  --k2-text-2: #6b7280;
  --k2-border: #e5e7eb;
  --k2-border-strong: #d1d5db;
  --k2-ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--k2-text);
  background: var(--k2-cream);
}
/* Raised white panel — sits on the cream canvas for depth + section rhythm */
#k2 .kx-panel {
  background: #fff;
  border-radius: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(15, 23, 42, .05);
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 24px 48px -32px rgba(15,23,42,.14);
  margin-left: clamp(12px, 3vw, 40px);
  margin-right: clamp(12px, 3vw, 40px);
}
/* Soft full-bleed tint bands (brand-meaningful, very low intensity) */
#k2 .kx-steps.kx-panel { padding: clamp(32px,4.5vw,52px) clamp(20px,4vw,48px); margin-top: clamp(20px,3vw,36px); }
#k2 h1, #k2 h2, #k2 h3, #k2 h4 {
  margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--k2-text);
}
#k2 p { margin: 0; color: var(--k2-text-2); max-width: 680px; }
#k2-bento, #pricing, .k3-sec, .k2-tw-band {
  scroll-margin-top: 110px;
}

/* Hero */
#k2 .k2-hero {
  padding-top: clamp(80px, 7vw, 100px);
  padding-bottom: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 68%, var(--k2-cream) 100%);
  isolation: isolate;
}
#k2 .k2-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10,15,30,.055) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: -2;
}
#k2 .k2-hero::after {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,115,255,.055) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
#k2 .k2-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}
/* The above-the-fold message must never depend on IntersectionObserver.
   Lower sections still use the shared scroll-reveal treatment. */
#k2 .k2-hero-inner > .reveal,
#k2 .k2-hero-inner > .reveal-left,
#k2 .k2-hero-inner > .reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}
#k2 .k2-hero h1 {
  font-size: clamp(40px, 5.8vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 18ch;
  margin: 0 auto;
}

/* Reduced motion: show first word only, no animation */
#k2 .k2-hero .lead {
  margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--k2-text-2);
  max-width: 600px;
  line-height: 1.55;
}
#k2 .k2-hero-trust-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--k2-border);
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 4px 12px rgba(10,10,10,.04);
  font-size: 13px; font-weight: 500;
  color: var(--k2-text-2);
  margin-bottom: 22px;
}
#k2 .k2-hero-trust-pill strong { color: var(--k2-text); font-weight: 600; }

#k2 .k2-hero-ctas {
  display: flex; gap: 12px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
#k2 .k2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 180ms var(--k2-ease), box-shadow 180ms var(--k2-ease), background 180ms var(--k2-ease), border-color 180ms var(--k2-ease);
  white-space: nowrap;
  font-family: inherit;
}
#k2 .k2-btn-brand {
  background: var(--k2-brand); color: #fff;
  box-shadow: 0 1px 2px rgba(0,115,255,.12), 0 4px 14px rgba(0,115,255,.18);
}
#k2 .k2-btn-brand:hover { background: var(--k2-brand-hover); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,115,255,.14), 0 8px 22px rgba(0,115,255,.28); }
#k2 .k2-btn-ghost {
  background: #fff; color: var(--k2-text);
  border: 1px solid var(--k2-border);
}
#k2 .k2-btn-ghost:hover { border-color: var(--k2-border-strong); background: var(--k2-surface-2); transform: translateY(-1px); }
#k2 .k2-btn svg { width: 16px; height: 16px; }

/* Bento */
#k2 .k2-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--k2-brand);
  padding: 6px 14px;
  background: var(--k2-brand-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Magic-text — scroll-progress word reveal manifesto */
#k2 .k2-mt-section {
  padding: clamp(64px, 7vw, 104px) 0;
  background: #15181e;
  position: relative;
}
#k2 .k2-mt-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
#k2 .k2-mt-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7f8794;
  margin: 0 0 36px;
  text-align: left;
}
#k2 .k2-mt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
#k2 .k2-mt {
  font-size: clamp(22px, 2.9vw, 36px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.32;
  color: #f4f5f7;
  margin: 0;
  text-align: left;
}
#k2 .k2-mt-side {
  padding-top: 6px;
}
#k2 .k2-mt-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.03), 0 8px 20px -12px rgba(0,115,255,0.10);
  position: relative;
}
#k2 .k2-mt-compare::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
  transform: translateY(-0.5px);
}
#k2 .k2-mt-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 4px;
}
#k2 .k2-mt-col-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}
#k2 .k2-mt-col-label-brand {
  color: #0073ff;
}
#k2 .k2-mt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#k2 .k2-mt-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #37352f;
}
#k2 .k2-mt-col-before .k2-mt-list li {
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-color: #d1d5db;
}
#k2 .k2-mt-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
#k2 .k2-mt-dot-x {
  background: #f3f4f6;
  color: #9ca3af;
}
#k2 .k2-mt-dot-v {
  background: rgba(0,115,255,0.1);
  color: #0073ff;
}
@media (max-width: 900px) {
  #k2 .k2-mt-grid { grid-template-columns: 1fr; gap: 40px; }
  #k2 .k2-mt-side { padding-top: 0; }
}
#k2 .k2-mt-word {
  position: relative;
  display: inline-block;
}
#k2 .k2-mt-word-base {
  display: inline-block;
  opacity: 0.22;
  color: #f4f5f7;
}
#k2 .k2-mt-word-fade {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  opacity: 0;
  color: #f4f5f7;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  #k2 .k2-mt-word-base { opacity: 1; }
  #k2 .k2-mt-word-fade { display: none; }
}

/* Typewriter band — dark beat between bento and features */
#k2 .k2-tw-band, .k2-tw-band.k2-scoped {
  background: var(--k2-cream);
  padding: clamp(56px, 7vw, 88px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#k2 .k2-tw-band::before, .k2-tw-band.k2-scoped::before { content: none; }
#k2 .k2-tw-band::after, .k2-tw-band.k2-scoped::after { content: none; }
#k2 .k2-tw-wrap, .k2-tw-band.k2-scoped .k2-tw-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
#k2 .k2-tw-line, .k2-tw-band.k2-scoped .k2-tw-line {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: #0a0a0a;
  margin: 0;
}
#k2 .k2-tw, .k2-tw-band.k2-scoped .k2-tw {
  color: #0073ff;
  font-weight: 700;
  white-space: nowrap;
}
#k2 .k2-tw-cursor, .k2-tw-band.k2-scoped .k2-tw-cursor {
  display: inline-block;
  color: #0073ff;
  font-weight: 400;
  margin-left: 3px;
  animation: k2TwBlink 1s steps(2, jump-none) infinite;
}
@keyframes k2TwBlink { 50% { opacity: 0; } }
#k2 .k2-tw-sub, .k2-tw-band.k2-scoped .k2-tw-sub {
  color: #6b7280;
  font-size: clamp(15px, 1.5vw, 18px);
  margin: 28px auto 0;
  max-width: 580px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  #k2 .k2-tw-cursor, .k2-tw-band.k2-scoped .k2-tw-cursor { animation: none; }
}

/* Responsive */
@media (max-width: 480px) {
  #k2 .k2-hero-ctas .k2-btn { flex: 1; }
}

/* ═══════ K3 SECURITY SECTION ═══════ */
.k3-sec {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 24px;
  background: linear-gradient(180deg, #ffffff 0px, #ffffff calc(100% - 120px), var(--k2-cream) 100%);
  overflow: hidden;
}
.k3-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.k3-sec-wrap {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}
.k3-sec-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.k3-sec-left { position: sticky; top: 96px; }
.k3-sec-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0073ff;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,115,255,0.08);
  border: 1px solid rgba(0,115,255,0.18);
}
.k3-sec-h {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: #0a0a0a;
  margin: 0 0 20px;
}
.k3-sec-p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 420px;
}
.k3-sec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.k3-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(10,10,10,0.03);
}
.k3-sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.k3-sec-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}
.k3-sec-item:first-child { border-top: none; padding-top: 0; }
.k3-sec-item:last-child { padding-bottom: 0; }
.k3-sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0073ff;
  box-shadow: 0 1px 2px rgba(10,10,10,0.03);
  flex-shrink: 0;
}
.k3-sec-body h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 2px 0 6px;
}
.k3-sec-body p {
  color: #6b7280;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}
@media (max-width: 900px) {
  .k3-sec-grid { grid-template-columns: 1fr; gap: 48px; }
  .k3-sec-left { position: static; }
  .k3-sec-h { max-width: 540px; }
}
@media (max-width: 640px) {
  .k3-sec { padding: 64px 16px; }
  .k3-sec-item { grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; }
  .k3-sec-icon { width: 40px; height: 40px; }
}

/* Subtle grain fixed over entire page, always below real content */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Dotted grid on the K2 hero */
#k2 .k2-hero {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.055) 1px, transparent 0);
  background-size: 28px 28px;
}
#k2 .k2-hero::before {
  background:
    radial-gradient(ellipse 1100px 600px at 50% -10%, rgba(0,115,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 85% 15%, rgba(139,92,246,0.06) 0%, transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
  html::before { opacity: .025; }
}
