/* KeepAlive marketing site — shared styles
   Inline-able critical CSS; complements Tailwind CDN. */

:root {
  --bg: #0F1117;
  --bg-elev: #1A1D27;
  --bg-elev-2: #111420;
  --border: #1F2937;
  --fg: #F3F4F6;
  --fg-muted: #9CA3AF;
  --fg-dim: #6B7280;
  --accent: #7C8CF7;
  --accent-2: #A5B4FC;
  --danger: #FB7185;
  --success: #34D399;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background mesh gradient (subtle) */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 30%, rgba(129,140,248,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(99,102,241,0.10), transparent 60%);
  filter: blur(2px);
}

/* Container */
.container-x { max-width: 1180px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(15,17,23,0.72);
  border-bottom: 1px solid rgba(31,41,55,0.7);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, #6366F1 100%);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(99,102,241,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(99,102,241,0.85), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-secondary {
  background: rgba(26,29,39,0.7); color: var(--fg); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: #fff; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,0.5); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6); }

/* Section spacing */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

/* Headings */
h1, h2, h3, h4 { color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2);
  background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.25);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, #C7D2FE 50%, #A5B4FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Animations on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .phone-screen-anim { animation: none !important; }
}

/* Phone mockup */
.phone {
  position: relative;
  width: 280px; height: 580px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1f2230 0%, #0e1018 100%);
  padding: 12px;
  box-shadow:
    0 0 0 1.5px #2a2e3d,
    0 30px 60px -25px rgba(99,102,241,0.45),
    0 50px 80px -30px rgba(0,0,0,0.7);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #0a0c12; border-radius: 16px; z-index: 2;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: #0F1117;
}
.phone-frame { position: absolute; inset: 0; opacity: 0; }
.phone-screen-anim .phone-frame:nth-child(1) { animation: cycle 16s infinite; animation-delay: 0s; }
.phone-screen-anim .phone-frame:nth-child(2) { animation: cycle 16s infinite; animation-delay: 4s; }
.phone-screen-anim .phone-frame:nth-child(3) { animation: cycle 16s infinite; animation-delay: 8s; }
.phone-screen-anim .phone-frame:nth-child(4) { animation: cycle 16s infinite; animation-delay: 12s; }

@keyframes cycle {
  0%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(8px); }
}

/* Mocked iPhone-like UI inside phone-frame */
.mock-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px 6px; font-size: 13px; color: #fff; font-weight: 600;
}
.mock-h1 { font-size: 22px; font-weight: 700; color: #fff; padding: 12px 22px 6px; }
.mock-sub { font-size: 13px; color: var(--fg-muted); padding: 0 22px 16px; }
.mock-input {
  margin: 0 22px 12px; height: 44px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.mock-btn {
  margin: 8px 22px; height: 44px; border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), #6366F1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 14px;
}
.mock-pin {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 22px;
}
.mock-pin > div {
  height: 52px; border-radius: 10px; background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.mock-dots { display:flex; gap: 12px; justify-content: center; padding: 12px 0; }
.mock-dots > span { width: 14px; height: 14px; border-radius: 50%; background: #2a2e3d; }
.mock-dots > span.f { background: var(--accent); }

.mock-tile {
  margin: 0 22px 12px; padding: 14px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.mock-tile-title { color: #fff; font-weight: 600; font-size: 14px; }
.mock-tile-sub { color: var(--fg-muted); font-size: 12px; margin-top: 4px; }

.mock-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; padding: 0 22px;
}
.mock-success .check {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(52,211,153,0.13); border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

.pulse {
  position: relative;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  border: 2px solid rgba(99,102,241,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Lists */
ul.bullet { list-style: none; padding: 0; margin: 0; }
ul.bullet li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--fg-muted);
}
ul.bullet li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 3rem;
  color: var(--fg-muted); font-size: 0.9rem;
}
footer.site-footer a { color: var(--fg-muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--accent-2); }

/* Long-form prose */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--fg); }
.prose a { color: var(--accent-2); }
.prose code { background: var(--bg-elev); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-elev); color: #fff; font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* FAQ accordion */
details.faq {
  border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(180deg, rgba(26,29,39,0.6), rgba(17,20,32,0.6));
  margin-bottom: 0.75rem; padding: 0;
  transition: border-color .2s ease;
}
details.faq[open] { border-color: rgba(99,102,241,0.45); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 1.25rem;
  font-weight: 600; color: #fff; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-2); transition: transform .2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 1.25rem 1.1rem; color: var(--fg-muted); }

/* Light mode override */
body.light {
  --bg: #FAFAFB; --bg-elev: #FFFFFF; --bg-elev-2: #F4F4F7; --border: #E5E7EB;
  --fg: #111827; --fg-muted: #4B5563; --fg-dim: #6B7280;
}
body.light h1, body.light h2, body.light h3, body.light h4 { color: #0F1117; }
body.light .nav { background: rgba(255,255,255,0.85); border-bottom-color: var(--border); }
body.light .bg-mesh { opacity: 0.5; }
body.light .card { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); }
body.light .btn-secondary { background: #fff; color: var(--fg); }
body.light footer.site-footer a:hover { color: var(--accent); }

/* Responsive helpers */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .phone { width: 240px; height: 500px; }
}

/* =====================================================
   v2 redesign — additional tokens, hero, components
   ===================================================== */

:root {
  --warn: #FBBF24;
  --soft-success: rgba(52,211,153,0.13);
  --soft-warn: rgba(251,191,36,0.13);
  --soft-danger: rgba(251,113,133,0.13);
}

/* Animated mesh gradient — slowly drifts behind the hero */
.bg-mesh-animated {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(99,102,241,0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 30%, rgba(129,140,248,0.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 30% 80%, rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 90%, rgba(244,114,182,0.08), transparent 60%);
  animation: meshDrift 24s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 6% 10%, -8% 4%, 4% -8%, -6% 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-mesh-animated { animation: none; }
}

/* Hero typography */
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-title .accent {
  background: linear-gradient(120deg, #fff 0%, #C7D2FE 40%, #A5B4FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 36rem;
  line-height: 1.55;
}

/* Live counter */
.live-counter {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  color: #6EE7B7;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .8rem; font-weight: 600;
}
.live-counter .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,0.55);
  animation: liveDot 1.6s infinite;
}
@keyframes liveDot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* CTA polish */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.1rem; border-radius: 10px;
  color: var(--fg); border: 1px solid rgba(255,255,255,0.08);
  background: transparent; font-weight: 600; font-size: .95rem;
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(99,102,241,0.4); }

/* Big stat numbers */
.stat-huge {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #C7D2FE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card {
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 1.75rem;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}

/* Hero phone — keep but improved frame */
.phone-v2 {
  position: relative;
  width: 300px; height: 612px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2a2e3d 0%, #0e1018 60%);
  padding: 8px;
  box-shadow:
    0 0 0 1.5px #2a2e3d,
    0 40px 80px -25px rgba(99,102,241,0.55),
    0 60px 100px -30px rgba(0,0,0,0.75),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-v2::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px; background: #0a0c12;
  border-radius: 18px; z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-v2 .phone-screen {
  border-radius: 40px;
  background: linear-gradient(180deg, #14171f 0%, #0a0c12 100%);
}
.phone-v2 .phone-frame { padding-top: 8px; }
.phone-glow {
  position: absolute; inset: -40px; z-index: -1; border-radius: 60px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.4), transparent 70%);
  filter: blur(40px);
  animation: phoneGlow 4s ease-in-out infinite alternate;
}
@keyframes phoneGlow {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: .9; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-glow { animation: none; }
}

/* Floating "trust badges" near hero */
.float-badge {
  position: absolute;
  background: rgba(15,17,23,0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: .65rem .9rem;
  font-size: .8rem; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; gap: .55rem;
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.6);
  animation: floatY 5s ease-in-out infinite;
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .float-badge { animation: none; } }

/* Comparison matrix */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .92rem;
  background: linear-gradient(180deg, rgba(26,29,39,0.6), rgba(17,20,32,0.6));
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.compare th, .compare td {
  padding: 1rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare thead th {
  background: rgba(99,102,241,0.06);
  color: #fff; font-weight: 700;
  border-bottom: 1px solid rgba(99,102,241,0.25);
  font-size: .85rem;
}
.compare thead th.us {
  background: rgba(99,102,241,0.15);
  color: #fff;
  position: relative;
}
.compare thead th.us::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare td.us { background: rgba(99,102,241,0.04); color: #fff; font-weight: 600; }
.compare td.crit { color: var(--fg); font-weight: 600; }
.compare .yes { color: #34D399; font-weight: 700; }
.compare .no  { color: #FB7185; font-weight: 700; }
.compare .meh { color: #FBBF24; font-weight: 700; }
.compare .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: .35rem;
  font-size: .8rem; font-weight: 700;
}
.compare .mark.yes { background: rgba(52,211,153,0.13); color: #34D399; }
.compare .mark.no  { background: rgba(251,113,133,0.13); color: #FB7185; }
.compare .mark.meh { background: rgba(251,191,36,0.13); color: #FBBF24; }
@media (max-width: 768px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare { min-width: 720px; }
}

/* Scenario cards */
.scenario {
  position: relative;
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.scenario:hover {
  transform: translateY(-4px); border-color: rgba(99,102,241,0.5);
  box-shadow: 0 24px 48px -24px rgba(99,102,241,0.4);
}
.scenario .illus {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 12px;
  background: linear-gradient(160deg, #1f2230 0%, #0e1018 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.scenario .illus svg { width: 70%; height: 70%; }
.scenario h3 { font-size: 1.1rem; }
.scenario .threat { color: #fca5a5; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.scenario .response {
  margin-top: .85rem; padding-top: .85rem;
  border-top: 1px dashed var(--border);
  font-size: .9rem; color: var(--fg-muted);
}
.scenario .response strong { color: #6EE7B7; }

/* Pricing */
.pricing-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 1.75rem;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: rgba(99,102,241,0.55);
  background: linear-gradient(180deg, rgba(45,40,90,0.55) 0%, rgba(20,22,40,0.95) 100%);
  box-shadow: 0 30px 60px -30px rgba(99,102,241,0.5);
}
.plan .badge-feat {
  position: absolute; top: -12px; right: 1.5rem;
  background: linear-gradient(120deg, var(--accent), #6366F1);
  color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .35rem .7rem; border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(99,102,241,0.7);
}
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--fg-muted); }
.plan .strike { color: var(--fg-dim); text-decoration: line-through; font-size: 1rem; margin-right: .35rem; }
.plan .features { list-style: none; padding: 0; margin: 1.25rem 0; flex-grow: 1; }
.plan .features li {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .4rem 0; color: var(--fg-muted); font-size: .92rem;
}
.plan .features li::before {
  content: "✓"; color: #34D399; font-weight: 800; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16,185,129,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.plan .features li.muted { color: var(--fg-dim); }
.plan .features li.muted::before { content: "—"; background: rgba(255,255,255,0.04); color: var(--fg-dim); }

/* Trust chain (security) */
.chain {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .chain { grid-template-columns: repeat(5, 1fr); } }
.chain-step {
  position: relative;
  background: linear-gradient(180deg, rgba(26,29,39,0.9), rgba(17,20,32,0.9));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}
.chain-step .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  margin: 0 auto .85rem; display: flex; align-items: center; justify-content: center;
}
.chain-step .step-n {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px;
}
.chain-step h4 { font-size: .95rem; margin-bottom: .25rem; }
.chain-step p { font-size: .8rem; color: var(--fg-muted); margin: 0; line-height: 1.4; }
@media (min-width: 900px) {
  .chain-step:not(:last-child)::after {
    content: "→"; position: absolute; top: 50%; right: -16px; transform: translateY(-50%);
    color: var(--accent-2); font-size: 1.3rem; font-weight: 700; z-index: 2;
  }
}
.trust-badges {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-top: 1.5rem;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--fg);
}
.trust-badge.fr { color: #fff; background: linear-gradient(90deg, #002395 0%, #fff 50%, #ED2939 100%); }
.trust-badge.fr span { background: rgba(15,17,23,0.85); padding: .15rem .55rem; border-radius: 999px; }

/* Logo strip — placeholder partner logos */
.logo-strip {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .logo-strip { grid-template-columns: repeat(4, 1fr); } }
.logo-slot {
  height: 64px; border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  filter: grayscale(1) opacity(0.6);
  transition: filter .3s ease, opacity .3s ease;
}
.logo-slot:hover { filter: grayscale(0.5) opacity(0.9); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, #6366F1 0%, #7C8CF7 50%, #A5B4FC 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10), transparent 40%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-banner p  { color: rgba(255,255,255,0.85); }

/* Stagger reveal */
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Newsletter */
.newsletter {
  display: flex; gap: .5rem; max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .35rem;
}
.newsletter input {
  flex: 1; background: transparent; border: 0; color: var(--fg);
  padding: .55rem .75rem; font-size: .9rem; outline: none;
  font-family: inherit;
}
.newsletter input::placeholder { color: var(--fg-dim); }
.newsletter button {
  background: linear-gradient(180deg, var(--accent) 0%, #6366F1 100%);
  color: #fff; border: 0; border-radius: 8px;
  padding: 0 1rem; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: transform .15s ease;
}
.newsletter button:hover { transform: translateY(-1px); }

/* Section header consistency */
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.section-head .eyebrow { margin-bottom: 1rem; }

/* SVG illustration container — make sure they resize cleanly */
.svg-illus { width: 100%; height: 100%; display: block; }

/* Light-mode adjustments for new components */
body.light .stat-card,
body.light .scenario,
body.light .plan,
body.light .chain-step { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); }
body.light .compare { background: #fff; }
body.light .compare thead th { background: rgba(99,102,241,0.08); color: #1F2937; }
body.light .compare td.us { background: rgba(99,102,241,0.05); color: #1F2937; }
body.light .float-badge { background: rgba(255,255,255,0.92); color: #1F2937; }
body.light .logo-slot { background: rgba(0,0,0,0.02); }
body.light .plan.featured { background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%); }

/* =====================================================
   v2.1 colour accents — emerald/lime trust, rose/amber threat
   Indigo stays the primary; these are subtle highlights.
   ===================================================== */

/* Section tint helpers — apply to <section> via class */
.section-tint-trust {
  background:
    radial-gradient(ellipse 70% 40% at 80% 10%, rgba(16,185,129,0.08), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(16,185,129,0.04) 100%);
}
.section-tint-threat {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(244,63,94,0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(245,158,11,0.06), transparent 60%);
}
.section-tint-cool {
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 95% 80%, rgba(132,204,22,0.05), transparent 60%);
}

/* Threat label — was monochrome rose, now stands out a bit more */
.scenario .threat {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(244,63,94,0.10);
  border: 1px solid rgba(244,63,94,0.25);
  color: #fda4af;
}
.scenario .threat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 0 rgba(244,63,94,0.6);
  animation: threatPulse 2.4s infinite;
}
@keyframes threatPulse {
  0% { box-shadow: 0 0 0 0 rgba(244,63,94,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(244,63,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}
@media (prefers-reduced-motion: reduce) { .scenario .threat::before { animation: none; } }

/* Response block — slight emerald wash to convey "solution" */
.scenario .response {
  background: linear-gradient(180deg, rgba(16,185,129,0.04), rgba(16,185,129,0.01));
  border-radius: 10px;
  padding: .75rem .85rem;
  margin-top: .85rem;
  border-top: 0;
  border-left: 2px solid rgba(16,185,129,0.4);
}

/* Trust chain — alternate icon tints to convey progression */
.chain-step:nth-child(1) .icon-wrap { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.30); }
.chain-step:nth-child(2) .icon-wrap { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.30); }
.chain-step:nth-child(3) .icon-wrap { background: rgba(132,204,22,0.10); border-color: rgba(132,204,22,0.30); }
.chain-step:nth-child(4) .icon-wrap { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.30); }
.chain-step:nth-child(5) .icon-wrap { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.30); }
.chain-step:nth-child(2) .icon-wrap svg { stroke: #34d399 !important; }
.chain-step:nth-child(3) .icon-wrap svg { stroke: #a3e635 !important; }
.chain-step:nth-child(5) .icon-wrap svg { stroke: #34d399 !important; }
.chain-step:nth-child(2) .step-n { background: #10b981; }
.chain-step:nth-child(3) .step-n { background: #84cc16; }
.chain-step:nth-child(5) .step-n { background: #10b981; }

/* Trust badges — colourise per-meaning */
.trust-badge:nth-of-type(2) { color: #6ee7b7; border-color: rgba(16,185,129,0.30); background: rgba(16,185,129,0.06); }
.trust-badge:nth-of-type(3) { color: #c7d2fe; border-color: rgba(99,102,241,0.30); background: rgba(99,102,241,0.06); }
.trust-badge:nth-of-type(4) { color: #bef264; border-color: rgba(132,204,22,0.30); background: rgba(132,204,22,0.06); }
.trust-badge:nth-of-type(5) { color: #fde68a; border-color: rgba(245,158,11,0.30); background: rgba(245,158,11,0.06); }

/* Stat cards — top accent line cycles through palette */
.stat-card:nth-of-type(1)::after { background: linear-gradient(90deg, transparent, #f43f5e, transparent); }
.stat-card:nth-of-type(2)::after { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stat-card:nth-of-type(3)::after { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }

/* Use-case icons — give each one a distinct soft tint */
#use-cases .card:nth-child(1) > .flex > div:first-child { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.30); }
#use-cases .card:nth-child(2) > .flex > div:first-child { background: rgba(132,204,22,0.10); border-color: rgba(132,204,22,0.30); }
#use-cases .card:nth-child(3) > .flex > div:first-child { background: rgba(244,63,94,0.10); border-color: rgba(244,63,94,0.25); }
#use-cases .card:nth-child(4) > .flex > div:first-child { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.30); }

/* Auth pages — minimal extra styles */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.auth-card h1 { font-size: 1.6rem; margin: 0 0 .35rem; }
.auth-card .lead { color: var(--fg-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-form .field { margin-bottom: 1rem; }
.auth-form label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--fg); margin-bottom: .35rem; letter-spacing: .01em;
}
.auth-form .hint { font-size: .75rem; color: var(--fg-dim); margin-top: .3rem; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  background: rgba(15,17,23,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .85rem;
  color: var(--fg);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
}
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(15,17,23,0.85);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.auth-form input.invalid { border-color: var(--danger); }
.auth-form .submit-row { margin-top: 1.5rem; }
.auth-form .submit-row .btn-primary { width: 100%; justify-content: center; }
.auth-error {
  margin-top: 1rem; padding: .7rem .85rem;
  border-radius: 10px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.30);
  color: #fca5a5; font-size: .85rem;
}
.auth-error:empty { display: none; }
.auth-success {
  margin-top: 1rem; padding: .7rem .85rem;
  border-radius: 10px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  color: #6ee7b7; font-size: .85rem;
}
.auth-success:empty { display: none; }
.auth-meta { margin-top: 1.25rem; font-size: .85rem; color: var(--fg-muted); text-align: center; }
.auth-meta a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.auth-meta a:hover { text-decoration: underline; }

/* Password strength meter */
.pwd-meter {
  display: flex; gap: 4px; margin-top: .45rem;
}
.pwd-meter span {
  flex: 1; height: 4px; border-radius: 2px; background: var(--border);
  transition: background .2s ease;
}
.pwd-meter[data-strength="1"] span:nth-child(-n+1) { background: #ef4444; }
.pwd-meter[data-strength="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pwd-meter[data-strength="3"] span:nth-child(-n+3) { background: #84cc16; }
.pwd-meter[data-strength="4"] span:nth-child(-n+4) { background: #10b981; }

/* PIN input — 4 digits visually */
.pin-input {
  letter-spacing: .65em;
  text-align: center; font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

/* User menu in nav */
.user-menu {
  position: relative;
}
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--fg);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.user-menu-trigger:hover { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.45); }
.user-menu-trigger .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #10b981);
  color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: rgba(15,17,23,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .35rem;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.7);
  display: none;
  z-index: 60;
}
.user-menu.open .user-menu-panel { display: block; }
.user-menu-panel .label { padding: .55rem .75rem; font-size: .72rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .08em; }
.user-menu-panel a, .user-menu-panel button {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: 8px;
  color: var(--fg); font-size: .88rem; font-weight: 500;
  background: transparent; border: 0; cursor: pointer;
  text-decoration: none;
}
.user-menu-panel a:hover, .user-menu-panel button:hover {
  background: rgba(99,102,241,0.10); color: #fff;
}
.user-menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: .25rem 0; }
.user-menu-panel .danger { color: #fca5a5; }
.user-menu-panel .danger:hover { background: rgba(239,68,68,0.10); color: #fecaca; }

/* Auth-only / guest-only visibility.
   auth.js removes the data-auth-hidden attribute when state matches; we
   only hide via this attribute so existing Tailwind/layout classes
   (flex / inline-flex / hidden md:flex) keep working when visible. */
[data-auth-hidden] { display: none !important; }

/* Account page */
.account-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.account-card {
  background: linear-gradient(180deg, rgba(26,29,39,0.95) 0%, rgba(17,20,32,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}
.account-card h3 { font-size: 1.05rem; margin: 0 0 .55rem; }
.account-card p { color: var(--fg-muted); font-size: .9rem; margin: 0 0 .85rem; }
.account-card .placeholder-link {
  display: block; padding: .65rem .85rem;
  background: rgba(15,17,23,0.6);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--fg-dim); font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.account-actions {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}
.account-actions .btn-secondary,
.account-actions .btn-ghost { font-size: .85rem; padding: .55rem .9rem; }

/* Account audit log */
.audit-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; background: rgba(0,0,0,0.15); }
.audit-row { display: grid; grid-template-columns: 11rem 1fr 1fr; gap: 1rem; padding: .35rem .5rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
.audit-row:last-child { border-bottom: none; }
.audit-ts { color: var(--fg-muted); font-family: ui-monospace, monospace; font-size: .75rem; }
.audit-action { color: var(--fg); }
.audit-action-login_failed { color: #fca5a5; }
.audit-action-account_locked { color: #fde68a; font-weight: 600; }
.audit-detail { color: var(--fg-dim); font-size: .8rem; text-align: right; font-family: ui-monospace, monospace; }
.auth-success { color: #34d399; padding: .5rem 0; font-size: .9rem; }
