/* ===== Selvum — visual system =====
   Cinematic dark UI. Emerald accent. Premium minimalism.
   ===================================================== */

:root {
  /* Surface */
  --bg: #0A0B0F;
  --bg-deep: #06070A;
  --s1: #111318;
  --s2: #1C1E27;
  --s3: #252830;

  /* Accent */
  --emerald: #10B981;
  --emerald-dim: #0D9268;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-glow: rgba(16, 185, 129, 0.32);

  /* Text */
  --t1: #F0F2F8;
  --t2: #8B90A4;
  --t3: #5A5F72;

  /* Borders */
  --b1: rgba(255, 255, 255, 0.06);
  --b2: rgba(255, 255, 255, 0.10);
  --b3: rgba(255, 255, 255, 0.16);

  /* State */
  --red: #F87171;
  --amber: #FBBF24;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: 32px;
  --section-y: 160px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
  --shadow-deep: 0 40px 120px -40px rgba(0,0,0,0.85);
}

/* ============ Base reset ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

::selection {
  background: var(--emerald-soft);
  color: var(--t1);
}

/* ============ Atmospheric backdrop ============ */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,185,129,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(16,185,129,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(16,185,129,0.04), transparent 60%);
  mix-blend-mode: screen;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* ============ Layout primitives ============ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-tight { padding: 100px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emerald-glow);
}

.eyebrow.muted { color: var(--t2); }
.eyebrow.muted::before { background: var(--t3); box-shadow: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--t1);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  font-weight: 450;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.dim { color: var(--t2); }
.dim-strong { color: var(--t3); }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 640px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.subtle-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b2), transparent);
  border: 0;
  margin: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  height: 48px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald);
  color: #04130D;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.4),
    0 12px 40px -10px rgba(16,185,129,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: #16C893;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.5),
    0 16px 50px -10px rgba(16,185,129,0.65),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--b2);
  color: var(--t1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--b3);
}

.btn-lg { height: 56px; padding: 0 28px; font-size: 15.5px; }
.btn-xl { height: 64px; padding: 0 36px; font-size: 17px; }

.btn-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============ Top nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: backdrop-filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav.scrolled {
  background: rgba(10,11,15,0.72);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--b1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.nav-links a {
  font-size: 13px;
  color: var(--t2);
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--t1); }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1200px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12.5px; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
}

/* ============ Language selector ============ */
.lang {
  position: relative;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--b2);
  background: rgba(255,255,255,0.025);
  color: var(--t1);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle:hover { border-color: var(--b3); background: rgba(255,255,255,0.05); }
.lang-toggle .caret {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang[open] .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(17,19,24,0.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--b2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  display: none;
  z-index: 80;
}
.lang[open] .lang-menu { display: block; }

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--t1);
  font-size: 13.5px;
  transition: background 0.15s ease;
}
.lang-item:hover { background: rgba(255,255,255,0.05); }
.lang-item .lc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t2);
  letter-spacing: 0.08em;
}
.lang-item.active .lc { color: var(--emerald); }
.lang-item .check {
  width: 14px;
  height: 14px;
  opacity: 0;
  color: var(--emerald);
}
.lang-item.active .check { opacity: 1; }

/* ============ Hero ============ */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
}

.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--b2);
  background: rgba(255,255,255,0.02);
  margin-bottom: 36px;
}
.hero-eyebrow-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-eyebrow-row .pill .dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title .line { display: block; }
.hero-title .line.b { color: var(--t2); }

.hero h1 + .lead { margin-top: 28px; }

.hero-bullets {
  margin: 36px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 540px;
}
.hero-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--t1);
  letter-spacing: -0.005em;
}
.hero-bullet .x {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-badges {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--b1);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t2);
  letter-spacing: 0.06em;
}
.hero-badge svg { color: var(--emerald); }

/* ============ Hero — app mockup ============ */
.mock {
  position: relative;
  perspective: 1800px;
  width: 100%;
}

.mock-shell {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(28,30,39,0.92), rgba(17,19,24,0.92));
  border: 1px solid var(--b2);
  box-shadow:
    0 60px 140px -40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 80px -20px rgba(16,185,129,0.18);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.mock-shell:hover { transform: rotateY(-4deg) rotateX(2deg); }

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--b1);
  background: rgba(255,255,255,0.015);
}
.mock-traffic { display: inline-flex; gap: 6px; }
.mock-traffic span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--s3);
  border: 1px solid var(--b2);
}
.mock-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--t3);
  text-transform: uppercase;
}
.mock-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--emerald);
  letter-spacing: 0.08em;
}
.mock-status .dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
}

.mock-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}

.mock-sidebar {
  border-right: 1px solid var(--b1);
  padding: 16px 12px;
  background: rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  padding: 10px 10px 6px;
}
.mock-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--t2);
  transition: background 0.15s ease, color 0.15s ease;
}
.mock-sidebar-item .count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t3);
}
.mock-sidebar-item:hover { background: rgba(255,255,255,0.03); color: var(--t1); }
.mock-sidebar-item.active {
  background: rgba(16,185,129,0.08);
  color: var(--t1);
}
.mock-sidebar-item.active .count { color: var(--emerald); }

.mock-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--b1);
  background: rgba(0,0,0,0.25);
  color: var(--t2);
  font-size: 13px;
}
.mock-search .kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t3);
  padding: 2px 6px;
  border: 1px solid var(--b2);
  border-radius: 4px;
}

.mock-entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}
.mock-entry:hover { background: rgba(255,255,255,0.03); }
.mock-entry.active {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.18);
}
.mock-favicon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s3), var(--s2));
  border: 1px solid var(--b2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--t1);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.mock-entry-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mock-entry-title {
  font-size: 13.5px;
  color: var(--t1);
  font-weight: 500;
}
.mock-entry-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-entry .strength {
  margin-left: auto;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--s3);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.mock-entry .strength::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 90%;
  background: linear-gradient(90deg, var(--emerald-dim), var(--emerald));
  border-radius: 2px;
}

.mock-footerbar {
  margin-top: auto;
  border-top: 1px solid var(--b1);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t3);
  letter-spacing: 0.06em;
}

.mock-orbit {
  position: absolute;
  inset: -10% -8% -8% -10%;
  border-radius: 32px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 20% 20%, rgba(16,185,129,0.08), transparent 70%),
    radial-gradient(50% 40% at 80% 80%, rgba(16,185,129,0.10), transparent 70%);
  filter: blur(20px);
}

.mock-floater {
  position: absolute;
  z-index: 3;
  background: rgba(17,19,24,0.92);
  border: 1px solid var(--b2);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--t1);
}
.mock-floater-1 {
  top: -22px;
  right: -22px;
  transform: rotate(2deg);
}
.mock-floater-2 {
  bottom: -22px;
  left: -22px;
  transform: rotate(-2deg);
}
.mock-floater .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-floater .t1 { font-weight: 500; }
.mock-floater .t2 { font-family: var(--mono); font-size: 10.5px; color: var(--t3); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .mock-shell { transform: none; }
  .mock-floater-1 { top: -16px; right: 16px; }
  .mock-floater-2 { bottom: -16px; left: 16px; }
}

@media (max-width: 720px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}

/* ============ Section header ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 + .lead { margin-top: 0; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Problem grid ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28,30,39,0.5), rgba(17,19,24,0.7));
  border: 1px solid var(--b1);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-card .index {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--t3);
}
.problem-card h3 { color: var(--t1); }
.problem-card p { font-size: 14px; color: var(--t2); margin: 0; line-height: 1.55; }
.problem-card .leak {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--b1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--red);
}
.problem-card .leak::before {
  content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 8px rgba(248,113,113,0.4);
}

.pull-quote {
  margin: 80px auto 0;
  max-width: 920px;
  padding: 48px 48px;
  border-left: 2px solid var(--emerald);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--t1);
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
@media (max-width: 720px) { .pull-quote { padding: 28px 24px; } }

/* ============ Solution ============ */
.solution-stage {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1080px) { .solution-stage { grid-template-columns: 1fr; } }

.compartments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(28,30,39,0.5), rgba(17,19,24,0.7));
  border: 1px solid var(--b1);
  position: relative;
  overflow: hidden;
}
.compartments::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(16,185,129,0.10), transparent 60%);
  pointer-events: none;
}
.cell {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--b1);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.08em;
  overflow: hidden;
}
.cell .lockico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(16,185,129,0.06);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16,185,129,0.16);
}
.cell.breached {
  background: rgba(248,113,113,0.06);
  border-color: rgba(248,113,113,0.3);
}
.cell.breached .lockico {
  background: rgba(248,113,113,0.08);
  color: var(--red);
  border-color: rgba(248,113,113,0.3);
}
.cell .label {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--t3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cell.breached .label { color: var(--red); }

.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.solution-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--b1);
}
.solution-step:last-child { border-bottom: 0; }
.solution-step .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
  letter-spacing: 0.14em;
  padding-top: 4px;
}
.solution-step h3 { margin-bottom: 6px; }
.solution-step p { font-size: 14.5px; color: var(--t2); margin: 0; line-height: 1.55; }

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--b1);
}
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  padding: 36px 30px 32px;
  background: linear-gradient(180deg, rgba(17,19,24,0.95), rgba(10,11,15,0.95));
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: background 0.25s ease;
}
.feature-card:hover { background: linear-gradient(180deg, rgba(28,30,39,0.7), rgba(17,19,24,0.95)); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16,185,129,0.2);
  position: relative;
}
.feature-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(16,185,129,0.2), transparent 70%);
  z-index: -1;
  opacity: 0.4;
}

.feature-card h3 { letter-spacing: -0.015em; }
.feature-card p { color: var(--t2); font-size: 14.5px; margin: 0; line-height: 1.55; }

.feature-card .corner {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3);
  letter-spacing: 0.14em;
}

/* ============ Rescue Kit ============ */
.rescue-stage {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1080px) { .rescue-stage { grid-template-columns: 1fr; } }

.zip-vis {
  position: relative;
  padding: 36px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 20%, rgba(16,185,129,0.10), transparent 60%),
    linear-gradient(180deg, rgba(28,30,39,0.6), rgba(17,19,24,0.8));
  border: 1px solid var(--b2);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.zip-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b1);
}
.zip-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t1);
  letter-spacing: 0.04em;
}
.zip-name .ic {
  color: var(--emerald);
  width: 18px; height: 18px;
}
.zip-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t3);
  letter-spacing: 0.08em;
}

.zip-files {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zip-file {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--b1);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.zip-file:hover { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.04); }
.zip-file .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zip-file .name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t1);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.zip-file .desc {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--t2);
}
.zip-file .size {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rescue-side {
  position: sticky;
  top: 100px;
  padding-top: 24px;
}
@media (max-width: 1080px) { .rescue-side { position: static; padding-top: 0; } }

.rescue-callout {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(16,185,129,0.2);
  background: linear-gradient(180deg, rgba(16,185,129,0.05), rgba(16,185,129,0.01));
}
.rescue-callout h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.rescue-callout p { font-size: 14.5px; color: var(--t2); margin: 0; line-height: 1.55; }

.rescue-flow {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--t2);
}
.rescue-flow .node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--b2);
  background: rgba(255,255,255,0.02);
  text-transform: uppercase;
}
.rescue-flow .node.accent {
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald);
  background: rgba(16,185,129,0.06);
}
.rescue-flow .arr {
  color: var(--t3);
}

/* ============ Comparison ============ */
.compare-table {
  margin-top: 56px;
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,19,24,0.7), rgba(10,11,15,0.95));
}
.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--b1);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--t1);
}
.compare-row.head > div {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 18px 24px;
}
.compare-row .cell-feature { color: var(--t1); font-weight: 500; }
.compare-row .cell-us {
  background: rgba(16,185,129,0.04);
  border-left: 1px solid var(--b1);
  border-right: 1px solid var(--b1);
  position: relative;
  gap: 10px;
  color: var(--t1);
}
.compare-row.head .cell-us {
  background: rgba(16,185,129,0.06);
  color: var(--emerald);
}
.compare-row .cell-them { color: var(--t2); gap: 10px; }
.compare-row .check { color: var(--emerald); flex-shrink: 0; }
.compare-row .cross { color: var(--red); flex-shrink: 0; }
.compare-row.head .cell-us::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
}

@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row .cell-feature { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid var(--b1); }
  .compare-row.head .cell-feature { display: none; }
}

/* ============ Philosophy ============ */
.philo {
  text-align: left;
  max-width: 980px;
  margin: 0 auto;
}
.philo .eyebrow { margin-bottom: 32px; }
.philo h2 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.philo .line.b { color: var(--t2); }
.philo .body {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 720px;
}
.philo-quote {
  margin-top: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--emerald);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
}
.philo-quote .sig {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--t3);
  letter-spacing: -0.005em;
}

/* ============ Screens / mockup gallery ============ */
.screens-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 24px;
  justify-items: center;
}
@media (max-width: 1080px) { .screens-grid { grid-template-columns: repeat(2, 1fr); gap: 80px 48px; } }
@media (max-width: 560px) { .screens-grid { grid-template-columns: 1fr; gap: 60px; } }

.screen-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 280px;
  align-items: stretch;
}

.phone {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  border: 1px solid var(--b2);
  background: linear-gradient(180deg, #1a1c25, #0d0f15);
  padding: 7px;
  position: relative;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 60px -20px rgba(16,185,129,0.15);
  overflow: hidden;
}
.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px;
  background: #000; border-radius: 14px;
  z-index: 6;
}
.phone::after {
  /* Home indicator */
  content: "";
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
  z-index: 6;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0A0B0F;
  border-radius: 32px;
  border: 1px solid var(--b1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
  padding: 14px 22px 0;
  flex-shrink: 0;
  height: 48px;
}
.phone-status .signal {
  display: inline-flex; align-items: end; gap: 2px;
}
.phone-status .signal i {
  display: block;
  width: 3px;
  background: var(--t1);
  border-radius: 0.5px;
}
.phone-status .signal i:nth-child(1) { height: 4px; }
.phone-status .signal i:nth-child(2) { height: 6px; }
.phone-status .signal i:nth-child(3) { height: 8px; }
.phone-status .signal i:nth-child(4) { height: 10px; }
.phone-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  flex: 1;
  padding: 8px 20px 22px;
  min-height: 0;
}

/* ===== Unlock screen ===== */
.scr-unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex: 1;
  padding-top: 38px;
}
.scr-unlock .lock-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}
.scr-unlock .brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t1);
}
.scr-unlock .sub {
  font-size: 13px;
  color: var(--t2);
  margin-top: -10px;
  letter-spacing: -0.005em;
}
.scr-unlock .prompt {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--t2);
  letter-spacing: -0.005em;
}
.scr-unlock .dots {
  display: inline-flex; gap: 10px;
  margin-top: -4px;
}
.scr-unlock .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2A2D38;
}
.scr-unlock .dots span.on {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow);
}
.scr-unlock .keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.scr-unlock .key {
  aspect-ratio: 1.35;
  border-radius: 13px;
  background: #1A1C24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.01em;
}
.scr-unlock .key.empty {
  background: transparent;
}
.scr-unlock .key.icon {
  background: #1A1C24;
}
.scr-unlock .bio {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--t2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(139,144,164,0.4);
}

/* ===== Vault screen ===== */
.scr-vault {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
  min-height: 0;
}
.scr-vault .greet {
  font-size: 12.5px;
  color: var(--t2);
  letter-spacing: -0.005em;
}
.scr-vault .title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #F0F2F8 0%, #B8BFD0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -6px;
  line-height: 1.1;
}
.scr-vault .actions {
  display: flex; gap: 8px;
  margin-top: 2px;
}
.scr-vault .actions .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: #1A1C24;
  color: var(--t1);
  letter-spacing: -0.005em;
}
.scr-vault .actions .chip.accent {
  background: rgba(16,185,129,0.14);
  color: var(--emerald);
}
.scr-vault .search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  background: #14161D;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--t3);
  font-size: 12.5px;
  letter-spacing: -0.005em;
}
.scr-vault .cats {
  display: flex; gap: 6px;
  overflow: hidden;
  margin: 0 -4px;
  padding: 0 4px;
}
.scr-vault .cats .cat {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1A1C24;
  font-size: 11.5px;
  color: var(--t1);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}
.scr-vault .cats .cat .cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #2A2D38;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--t1);
  padding: 0 4px;
}
.scr-vault .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  overflow: hidden;
  flex: 1;
  align-content: start;
}
.scr-vault .card {
  position: relative;
  padding: 11px 11px 12px;
  border-radius: 13px;
  background: #14161D;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex; flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.scr-vault .card .badge {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.scr-vault .card .n {
  font-size: 12px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}
.scr-vault .card .s {
  font-size: 10px;
  color: var(--t2);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scr-vault .card .bar {
  height: 3px; border-radius: 2px;
  background: #2A2D38;
  margin-top: 2px;
  overflow: hidden;
}
.scr-vault .card .bar i {
  display: block; height: 100%;
  border-radius: 2px;
}
.scr-vault .card .bar.green i { width: 92%; background: var(--emerald); }
.scr-vault .card .bar.amber i { width: 68%; background: var(--amber); }
.scr-vault .card .bar.red   i { width: 38%; background: var(--red); }

/* Bottom nav for vault */
.scr-vault-foot {
  position: absolute;
  left: 8px; right: 8px; bottom: 18px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px 6px;
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.scr-vault-foot .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--t3);
  position: relative;
}
.scr-vault-foot .tab.active {
  color: var(--emerald);
}
.scr-vault-foot .tab.active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}
.scr-vault .fab {
  position: absolute;
  right: 22px; bottom: 96px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: #04130D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  box-shadow: 0 12px 32px -8px rgba(16,185,129,0.55), 0 0 0 6px rgba(16,185,129,0.08);
  z-index: 5;
}

/* ===== Generator screen ===== */
.scr-gen {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
  min-height: 0;
}
.scr-gen .head {
  display: flex; align-items: flex-start; gap: 10px;
  padding-bottom: 4px;
}
.scr-gen .head .back {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #14161D;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--t1);
  flex-shrink: 0;
}
.scr-gen .head .t { font-size: 17px; font-weight: 700; letter-spacing: -0.018em; color: var(--t1); line-height: 1.2; }
.scr-gen .head .s { font-size: 11px; color: var(--t2); margin-top: 1px; letter-spacing: -0.005em; }

.scr-gen .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #14161D;
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}
.scr-gen .tab {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: -0.005em;
}
.scr-gen .tab.active {
  background: #2A2D38;
  color: var(--t1);
}

.scr-gen .pwd-card {
  padding: 16px 14px;
  border-radius: 13px;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.22);
}
.scr-gen .pwd-out {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t1);
  letter-spacing: 0.01em;
  text-align: center;
  padding: 6px 0 12px;
  word-break: break-all;
}
.scr-gen .pwd-strength-row {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  margin-bottom: 6px;
}
.scr-gen .pwd-strength-row .l { color: var(--t2); }
.scr-gen .pwd-strength-row .r { color: var(--emerald); font-weight: 600; }
.scr-gen .pwd-bar {
  height: 3px;
  background: #2A2D38;
  border-radius: 2px;
  overflow: hidden;
}
.scr-gen .pwd-bar i {
  display: block; width: 98%; height: 100%;
  background: linear-gradient(90deg, var(--emerald-dim), var(--emerald));
  border-radius: 2px;
}
.scr-gen .pwd-cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 14px;
}
.scr-gen .pwd-cta-row .btn-row {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.scr-gen .pwd-cta-row .ghost {
  background: #1F2129;
  color: var(--t1);
}
.scr-gen .pwd-cta-row .primary {
  background: var(--emerald);
  color: #04130D;
}

.scr-gen .opts-card {
  padding: 14px 12px;
  border-radius: 13px;
  background: #14161D;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: 11px;
}
.scr-gen .opts-card .opts-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.scr-gen .len-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
}
.scr-gen .len-row .l { color: var(--t2); }
.scr-gen .len-row .r { color: var(--emerald); font-weight: 600; }
.scr-gen .len-slider {
  position: relative;
  height: 4px;
  background: #2A2D38;
  border-radius: 2px;
}
.scr-gen .len-slider::after {
  content: "";
  position: absolute;
  inset: 0 60% 0 0;
  background: var(--emerald);
  border-radius: 2px;
}
.scr-gen .len-slider::before {
  content: "";
  position: absolute;
  left: 40%;
  top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
}
.scr-gen .checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}
.scr-gen .check {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.22);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 600;
}
.scr-gen .check .tick {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--emerald);
  color: #04130D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scr-gen .info {
  display: flex; gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.18);
  font-size: 10.5px;
  color: var(--t2);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.scr-gen .info .ic {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--emerald);
  margin-top: 1px;
}

/* ===== Export screen ===== */
.scr-export {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1; min-height: 0;
}
.scr-export .head {
  display: flex; align-items: flex-start; gap: 10px;
}
.scr-export .head .back {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #14161D;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--t1);
  flex-shrink: 0;
}
.scr-export .head .t { font-size: 17px; font-weight: 700; letter-spacing: -0.018em; color: var(--t1); line-height: 1.2; }
.scr-export .head .s { font-size: 11px; color: var(--t2); margin-top: 1px; letter-spacing: -0.005em; }

.scr-export .warn {
  display: flex; gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.22);
  font-size: 10.5px;
  color: var(--amber);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.scr-export .warn .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.scr-export .kit-title {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.018em;
  margin-top: 2px;
}
.scr-export .kit-desc {
  font-size: 11px;
  color: var(--t2);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin-top: -4px;
}

.scr-export .files {
  display: flex; flex-direction: column; gap: 7px;
}
.scr-export .file {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #14161D;
  border: 1px solid rgba(255,255,255,0.03);
}
.scr-export .file .ic-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.scr-export .file.green .ic-wrap { background: rgba(16,185,129,0.10); color: var(--emerald); border: 1px solid rgba(16,185,129,0.22); }
.scr-export .file.purple .ic-wrap { background: rgba(139,102,255,0.10); color: #B894FF; border: 1px solid rgba(139,102,255,0.22); }
.scr-export .file.blue .ic-wrap { background: rgba(96,165,250,0.10); color: #82B5FB; border: 1px solid rgba(96,165,250,0.22); }
.scr-export .file.amber .ic-wrap { background: rgba(251,191,36,0.08); color: var(--amber); border: 1px solid rgba(251,191,36,0.22); }
.scr-export .file .name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: 0;
}
.scr-export .file .desc {
  font-size: 10px;
  color: var(--t2);
  margin-top: 1px;
  letter-spacing: -0.005em;
}
.scr-export .file .size {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t2);
  letter-spacing: 0;
}

.scr-export .enc {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.18);
  font-size: 10.5px;
  color: var(--t2);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.scr-export .enc .ic { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; }
.scr-export .enc .arr { margin-left: auto; color: var(--t3); flex-shrink: 0; }

.scr-export .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px;
  border-radius: 13px;
  background: var(--emerald);
  color: #04130D;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
  margin-top: 4px;
  box-shadow: 0 12px 32px -8px rgba(16,185,129,0.45);
}

.screen-meta { padding: 0 4px; }
.screen-meta .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--emerald);
  text-transform: uppercase;
}
.screen-meta h3 { margin-top: 6px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.screen-meta p { margin: 6px 0 0; font-size: 13.5px; color: var(--t2); line-height: 1.5; }

/* ============ Testimonials ============ */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }

.test-card {
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(17,19,24,0.85), rgba(10,11,15,0.95));
  border: 1px solid var(--b1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.test-card .q {
  font-size: 15.5px;
  color: var(--t1);
  line-height: 1.55;
  letter-spacing: -0.005em;
  flex: 1;
  text-wrap: pretty;
}
.test-card .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--b1);
}
.test-card .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s3), var(--s2));
  border: 1px solid var(--b2);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--emerald);
}
.test-card .n { font-size: 14px; font-weight: 500; color: var(--t1); }
.test-card .r { font-family: var(--mono); font-size: 11px; color: var(--t3); letter-spacing: 0.04em; }

/* ============ Pricing ============ */
.pricing-stage {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .pricing-stage { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  padding: 48px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(16,185,129,0.18), transparent 60%),
    linear-gradient(180deg, rgba(28,30,39,0.6), rgba(17,19,24,0.95));
  border: 1px solid rgba(16,185,129,0.18);
  box-shadow: var(--shadow-deep), 0 0 80px -20px rgba(16,185,129,0.25);
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.price-name {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 500;
}
.price-figure {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  letter-spacing: -0.04em;
}
.price-figure .currency {
  font-size: 36px;
  color: var(--t1);
  font-weight: 400;
  margin-top: 14px;
}
.price-figure .amount {
  font-size: clamp(76px, 11vw, 124px);
  line-height: 0.9;
  color: var(--t1);
  font-weight: 350;
}
.price-figure .currency.after { margin-top: 24px; font-size: 56px; font-weight: 350; }
.price-note { font-size: 14.5px; color: var(--t2); margin-top: 10px; }

.price-incl {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--b1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
@media (max-width: 540px) { .price-incl { grid-template-columns: 1fr; } }

.price-incl-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px;
  color: var(--t1);
}
.price-incl-item .ic {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ca-lang-note {
  display: none;
  font-size: 12px;
  color: var(--t3);
  margin-top: 10px;
  line-height: 1.5;
}
html[lang="ca"] .ca-lang-note { display: block; }

.faq-ca-only { display: none; }
html[lang="ca"] .faq-ca-only { display: block; }

.store-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(6,7,10,0.85);
  border: 1px solid var(--b2);
  border-radius: var(--r-md);
  padding: 12px 20px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  min-width: 168px;
}
.store-btn:hover {
  border-color: rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.04);
  transform: translateY(-1px);
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-label-sm {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  line-height: 1;
  white-space: nowrap;
}
.store-label-lg {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.store-foot {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.08em;
}

.price-vs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-vs-row {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--b1);
  background: rgba(17,19,24,0.7);
}
.price-vs-row.us {
  border-color: rgba(16,185,129,0.25);
  background: linear-gradient(180deg, rgba(16,185,129,0.05), rgba(16,185,129,0.01));
}
.price-vs-row .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-vs-row.us .t { color: var(--emerald); }
.price-vs-row .b { margin-top: 8px; font-size: 22px; color: var(--t1); letter-spacing: -0.015em; }
.price-vs-row.them .b { color: var(--t2); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--t3); }
.price-vs-note { font-size: 13.5px; color: var(--t2); line-height: 1.55; margin: 0; max-width: 380px; }

/* ============ FAQ ============ */
.faq-list {
  margin-top: 56px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-bottom: 1px solid var(--b1);
}
.faq-item:first-child { border-top: 1px solid var(--b1); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--t1);
  transition: color 0.15s ease;
}
.faq-q:hover { color: var(--emerald); }
.faq-q .toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--b2);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  color: var(--t2);
}
.faq-item.open .faq-q .toggle {
  background: var(--emerald-soft);
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald);
}
.faq-q .toggle svg {
  transition: transform 0.25s ease;
}
.faq-item.open .toggle svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 4px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 4px 28px;
}
.faq-a p {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
  text-wrap: pretty;
}

/* ============ Final CTA ============ */
.final {
  text-align: center;
  padding: 200px 0 160px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.final > * { position: relative; z-index: 1; }
.final .eyebrow { justify-content: center; }
.final h2 {
  margin-top: 28px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.final h2 .line.b { color: var(--t2); }
.final .lead {
  margin: 32px auto 48px;
  font-size: 21px;
}
.final .note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.14em;
}

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--b1);
  padding: 64px 0 48px;
  background: var(--bg-deep);
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

.foot-brand .tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--t2);
  max-width: 320px;
}
.foot-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.foot-links a {
  font-size: 14px;
  color: var(--t2);
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.foot-links a:not(.foot-ig) + a:not(.foot-ig)::before,
.foot-links a:not(.foot-ig) + .foot-support-btn::before {
  content: "|";
  color: var(--b3);
  margin-right: 16px;
  font-weight: 300;
  opacity: 0.6;
}
.foot-links a:hover { color: var(--t1); }

/* Support button — same visual as footer links */
.foot-support-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--t2);
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.foot-support-btn:hover { color: var(--t1); }
.foot-support-btn::before {
  content: "|";
  color: var(--b3);
  margin-right: 16px;
  font-weight: 300;
  opacity: 0.6;
}

/* Support popup */
#support-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#support-popup[hidden] { display: none; }
.support-popup-box {
  position: relative;
  width: 300px;
  min-height: 120px;
  background: var(--s2, #1C1E27);
  border: 1px solid var(--b2, rgba(255,255,255,0.10));
  border-radius: 16px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.support-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--t3, #52576B);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.support-popup-close:hover { color: var(--t1, #F0F2F8); }
.support-popup-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3, #52576B);
  margin: 0;
}
.support-popup-email {
  font-size: 15px;
  font-weight: 500;
  color: var(--t1, #F0F2F8);
  margin: 0;
  user-select: text;
}

.foot-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--b2);
  background: rgba(255,255,255,0.02);
  color: var(--t2);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.foot-ig:hover {
  color: var(--t1);
  border-color: var(--b3);
  background: rgba(255,255,255,0.05);
}
.foot-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--b1);
  display: flex;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.06em;
}

/* ============ Hex logo ============ */
.hex {
  position: relative;
  width: 100%;
  height: 100%;
}
.hex svg { width: 100%; height: 100%; display: block; }

/* Big hero-version glow */
.hero-mark {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 24px rgba(16,185,129,0.6));
  opacity: 0.95;
  pointer-events: none;
  display: none;
}

/* ============ Misc utility ============ */
.center-x { display: flex; justify-content: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }


/* ============================================================
   Recovery Kit — section (Part 5 of landing)
   ============================================================ */
.rk-section {
  padding: 100px 0;
}

/* PART 1 + 2 — head */
.rk-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.rk-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.20);
  color: var(--emerald);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rk-h2 {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--t1);
  text-wrap: balance;
}
.rk-h2 .rk-line.b { color: var(--emerald); }
.rk-sub {
  margin: 20px auto 0;
  max-width: 560px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.6;
  text-wrap: pretty;
}

/* PART 3 — comparison table */
.rk-table {
  margin: 64px auto 0;
  max-width: 1200px;
  background: linear-gradient(135deg, #0D1F1A 0%, #0A0B0F 50%, #0D0B1F 100%);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 24px;
  overflow: hidden;
}

.rk-row {
  display: grid;
  grid-template-columns: 35% 13% 13% 39%;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rk-row:last-child { border-bottom: 0; }

.rk-row .c-feat {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--t2);
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.rk-row .c-comp,
.rk-row .c-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.rk-row .c-us {
  background: rgba(16,185,129,0.04);
  border-left: 1px solid rgba(16,185,129,0.15);
  border-right: 1px solid rgba(16,185,129,0.15);
  padding: 4px 16px;
  margin: -18px 0;
  min-height: 100%;
}

/* Header row */
.rk-row.rk-head-row {
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rk-head-row .c-feat {
  font-size: 13px;
  font-weight: 500;
  color: var(--t-dim, #52576B);
}
.rk-head-row .c-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: -0.005em;
}
.rk-head-row .c-name.us {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald);
}
.rk-head-row .c-tag {
  font-size: 11px;
  color: var(--t-dim, #52576B);
  letter-spacing: -0.005em;
}
.rk-head-row .c-only {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--emerald);
  color: #0A0B0F;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.rk-head-row .c-us {
  background: rgba(16,185,129,0.06);
  border-left: 1px solid rgba(16,185,129,0.20);
  border-right: 1px solid rgba(16,185,129,0.20);
  margin: -20px 0;
  padding: 8px 16px;
}

/* Body row marks */
.rk-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
  color: #EF4444;
  flex-shrink: 0;
}
.rk-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.30);
  color: var(--emerald);
  flex-shrink: 0;
}
.rk-us-text {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--emerald);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.rk-us-text.rk-mono,
.rk-mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
}

/* Footer row */
.rk-row.rk-foot-row {
  padding: 16px 24px;
  background: rgba(16,185,129,0.05);
  border-top: 1px solid rgba(16,185,129,0.15);
  border-bottom: 0;
}
.rk-foot-row .c-feat {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.005em;
}
.rk-foot-row .c-us {
  background: rgba(16,185,129,0.10);
  border-left: 1px solid rgba(16,185,129,0.20);
  border-right: 1px solid rgba(16,185,129,0.20);
  margin: -16px 0;
  padding: 4px 16px;
}
.rk-pill-red {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.20);
  color: #EF4444;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.rk-pill-green {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--emerald);
  color: #0A0B0F;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* Mobile collapse */
@media (max-width: 880px) {
  .rk-row {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "feat feat feat"
      "c1   c2   us";
    gap: 12px;
    padding: 16px;
  }
  .rk-row .c-feat { grid-area: feat; }
  .rk-row .c-comp:nth-of-type(2) { grid-area: c1; }
  .rk-row .c-comp:nth-of-type(3) { grid-area: c2; }
  .rk-row .c-us { grid-area: us; margin: 0; padding: 8px; border-radius: 8px; }
  .rk-row.rk-foot-row .c-us { margin: 0; padding: 8px; border-radius: 8px; }
  .rk-row.rk-head-row .c-us { margin: 0; padding: 10px; border-radius: 8px; }
  .rk-head-row { display: none; }
}

/* PART 4 — files */
.rk-inside {
  margin-top: 80px;
  text-align: center;
}
.rk-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-dim, #52576B);
  margin-bottom: 24px;
}

.rk-files {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .rk-files { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rk-files { grid-template-columns: 1fr; } }

.rk-file {
  background: #1C1E27;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rk-file:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}
.rk-file.e:hover { box-shadow: 0 12px 32px -8px rgba(16,185,129,0.30); }
.rk-file.a:hover { box-shadow: 0 12px 32px -8px rgba(245,158,11,0.28); }
.rk-file.w:hover { box-shadow: 0 12px 32px -8px rgba(255,255,255,0.10); }
.rk-file.b:hover { box-shadow: 0 12px 32px -8px rgba(59,130,246,0.28); }

.rk-file-ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rk-file.e .rk-file-ic { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: var(--emerald); }
.rk-file.a .rk-file-ic { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); color: #F59E0B; }
.rk-file.w .rk-file-ic { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: var(--t1); }
.rk-file.b .rk-file-ic { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #3B82F6; }

.rk-file-name {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  word-break: break-word;
}
.rk-file.a .rk-file-name { font-size: 13px; }
.rk-file.b .rk-file-name { font-size: 14px; }

.rk-file-desc {
  margin: 4px 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.5;
  text-wrap: pretty;
}

.rk-file-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  margin-top: auto;
}
.rk-file-badge.e { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.20); color: var(--emerald); }
.rk-file-badge.a { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.20); color: #F59E0B; }
.rk-file-badge.w { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--t2); }
.rk-file-badge.b { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.20); color: #3B82F6; }

/* PART 5 — killer statement */
.rk-killer {
  margin: 80px -32px 0;
  padding: 60px 40px;
  background: linear-gradient(135deg, #071A12 0%, #0A0B0F 40%, #0D0B1F 100%);
  border-top: 1px solid rgba(16,185,129,0.10);
  border-bottom: 1px solid rgba(16,185,129,0.10);
  text-align: center;
}
@media (max-width: 720px) { .rk-killer { margin-left: -16px; margin-right: -16px; padding: 48px 20px; } }

.rk-infinity {
  display: inline-flex;
  color: var(--emerald);
  margin-bottom: 24px;
}
.rk-killer-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.rk-killer-line {
  font-family: var(--sans);
  font-size: clamp(40px, 6.5vw, 56px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.rk-killer-line.a { text-align: left; }
.rk-killer-line.b { text-align: center; }
.rk-killer-line.c { text-align: right; }

.rk-killer-sub {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--t-dim, #52576B);
}
.rk-killer-rule {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--emerald);
  margin: 24px auto 0;
}

/* PART 6 — quote */
.rk-quote {
  margin: 80px auto 0;
  max-width: 700px;
  padding: 28px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--emerald);
  border-radius: 16px;
}
.rk-quote-mark {
  display: block;
  font-family: var(--sans);
  font-size: 64px;
  color: var(--emerald);
  opacity: 0.4;
  line-height: 0;
  margin: 24px 0 8px;
}
.rk-quote-body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.7;
  text-wrap: pretty;
}
.rk-quote-cite {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--t-dim, #52576B);
}
.rk-quote-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

/* PART 7 — final CTA */
.rk-cta {
  margin-top: 48px;
  text-align: center;
}
.rk-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border-radius: 14px;
  background: var(--emerald);
  color: #0A0B0F;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow:
    0 0 40px rgba(16,185,129,0.25),
    0 0 80px rgba(16,185,129,0.10);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.rk-cta-btn:hover {
  background: #16C893;
  transform: translateY(-1px);
  box-shadow:
    0 0 50px rgba(16,185,129,0.40),
    0 0 100px rgba(16,185,129,0.15);
}
.rk-cta-note {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--t-dim, #52576B);
}

/* ============================================================
   HAMBURGER + MOBILE NAV PANEL
   ============================================================ */
.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--b2);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-ham:hover { background: rgba(255,255,255,0.06); border-color: var(--b3); }
.nav-ham span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 58;
  background: rgba(10,11,15,0.97);
  backdrop-filter: saturate(140%) blur(24px);
  -webkit-backdrop-filter: saturate(140%) blur(24px);
  border-bottom: 1px solid var(--b1);
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-mobile.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.nav-mobile nav { display: flex; flex-direction: column; }
.nav-mobile nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--t2);
  border-bottom: 1px solid var(--b1);
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.nav-mobile nav a:last-child { border-bottom: 0; }
.nav-mobile nav a:hover { color: var(--t1); }
.nav-mobile .nav-mobile-cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  height: 48px;
}

/* ============================================================
   TABLET — 768px (iPad portrait, larger phones landscape)
   ============================================================ */
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: 100px; }

  /* Show hamburger, hide desktop CTA */
  .nav-ham { display: flex; }
  .nav-actions .btn-primary { display: none; }

  /* Typography */
  h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1.04; }
  h2 { font-size: clamp(32px, 7vw, 48px); line-height: 1.06; }
  .final h2 { font-size: clamp(36px, 7vw, 52px); }
  .lead { font-size: 17px; }

  /* Hero */
  .hero { padding: 120px 0 80px; }
  .hero-inner { gap: 48px; }
  .hero-ctas { flex-wrap: wrap; gap: 10px; }

  /* Section header */
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }

  /* RK table: at 768px still uses the 880px rule (3 cols) — that's fine.
     At 480px it becomes 2-col via the block below. */

  /* Fix rk-killer edge bleed: matches --gutter: 20px at tablet */
  .rk-killer { margin-left: -20px; margin-right: -20px; }

  /* Pricing */
  .price-card { padding: 36px 28px; }
}

/* ============================================================
   MOBILE — 480px and below (covers 375px iPhone SE / 390px iPhone 14)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-y: 72px;
  }

  /* Nav */
  .nav { padding: 12px 0; }

  /* Hero */
  .hero { padding: 96px 0 64px; }
  h1 { font-size: clamp(28px, 9.5vw, 40px); line-height: 1.1; }
  h2 { font-size: clamp(20px, 7.5vw, 28px); line-height: 1.08; }
  .final h2 { font-size: clamp(20px, 8.5vw, 28px) !important; }
  .rk-h2 .rk-line.b { font-size: inherit !important; letter-spacing: -0.03em !important; line-height: inherit !important; }
  .lead { font-size: 15.5px; }
  .hero-bullets { grid-template-columns: 1fr; gap: 10px; max-width: 100%; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-badges { margin-top: 32px; }

  /* Section headers */
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }

  /* Problem cards */
  .problem-card { padding: 22px 18px; min-height: auto; }
  .pull-quote { font-size: 18px; padding: 24px 18px; }

  /* RK table mobile: 2-col layout — feat + Selvum only, hide competitors */
  .rk-table { overflow-x: visible; border-radius: 16px; }
  .rk-row .c-comp { display: none; }
  .rk-row {
    grid-template-columns: 1fr;
    grid-template-areas: "feat" "us";
    gap: 10px;
    padding: 14px 16px;
  }
  .rk-row .c-feat { grid-area: feat; font-size: 13px; }
  .rk-row .c-us {
    grid-area: us;
    margin: 0;
    padding: 10px 16px;
    border-radius: 10px;
    width: 100%;
    border-left: none;
    border-right: none;
    border: 1px solid rgba(16,185,129,0.20);
  }
  .rk-row.rk-foot-row .c-us,
  .rk-row.rk-head-row .c-us {
    margin: 0;
    padding: 10px 16px;
    border-radius: 10px;
  }
  .rk-head-row { display: grid; }

  /* RK section typography */
  .rk-head { max-width: 100% !important; }
  .rk-h2 { max-width: 100% !important; font-size: clamp(20px, 8.5vw, 32px) !important; letter-spacing: -0.03em !important; }
  .rk-pill { width: auto !important; font-size: 9px; }
  .rk-sub { font-size: 15px !important; }
  /* rk-killer: matches --gutter: 16px at mobile, prevents horizontal scroll */
  .rk-killer { margin-left: -16px; margin-right: -16px; padding: 48px 16px; }
  .rk-killer-line { font-size: clamp(20px, 8.5vw, 32px); }
  /* rk-cta-btn: full-width at mobile to prevent inline-flex overflow */
  .rk-cta-btn { display: block; width: 100%; max-width: 100%; box-sizing: border-box; padding: 18px 24px; text-align: center; }

  /* Pricing */
  .price-card { padding: 24px 18px; }
  .price-figure .amount { font-size: clamp(60px, 17vw, 88px); }
  .store-row { flex-direction: column; }
  .store-btn { width: 100%; min-width: 0; }
  .price-vs { padding: 0; }
  .price-vs-row { padding: 16px 0; }

  /* FAQ */
  .faq-q { font-size: 14px; }

  /* Final CTA */
  .final .btn { width: 100%; max-width: 100%; }

  /* Footer */
  .foot { gap: 28px; }
  .foot-links { flex-wrap: wrap; gap: 12px; }
  .foot-cta-row { margin-top: 20px; }
}
