/*
 * Mobile Hacking Lab — Google Ads Landing Pages
 * Shared CSS — ads-shared.css
 *
 * Design principles:
 *   - Dark theme (security brand)
 *   - System font stack (no external font load = faster LCP)
 *   - Mobile-first breakpoints
 *   - Minimal specificity — easy to override per-page
 *   - No framework dependencies
 */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0e10;
  --bg-card:      #16181c;
  --bg-card-2:    #1c1f25;
  --border:       #2a2d36;
  --text:         #e8eaf0;
  --text-muted:   #8b8fa8;
  --text-dim:     #5c6070;
  --accent:       #ff4f2d;          /* MHL orange-red */
  --accent-hover: #ff6b4a;
  --accent-dim:   rgba(255,79,45,.15);
  --green:        #2ecc71;
  --code-bg:      #0a0b0d;

  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "SF Mono", "Fira Code", "Cascadia Code", "Consolas",
                  "Courier New", monospace;

  --radius:       8px;
  --radius-sm:    4px;
  --shadow-card:  0 1px 4px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 96px 0; }

/* ── Typography ─────────────────────────────────────────────── */
.headline-xl {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.headline-lg {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}

.headline-md {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted); /* --text-dim (#5c6070) fails WCAG AA at this size */
}

.accent-text { color: var(--accent); }

/* ── Badge / pill ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,79,45,.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 32px;
  box-shadow: 0 0 0 0 rgba(255,79,45,0);
  transition: background 0.15s, box-shadow 0.2s, transform 0.1s;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 4px rgba(255,79,45,.25);
}

.btn--primary.btn--lg {
  font-size: 1.15rem;
  padding: 20px 40px;
  border-radius: 10px;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-card);
  color: var(--text);
}

/* ── Focus visible ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255,79,45,.25);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,14,16,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__logo span { color: var(--accent); }

.navbar__trust {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: none;
}

@media (min-width: 640px) {
  .navbar__trust { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,79,45,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,79,45,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Bottom fade */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow { margin-bottom: 24px; }

.hero__headline { margin-bottom: 20px; }

.hero__sub {
  margin-bottom: 36px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__trust-item svg {
  flex-shrink: 0;
  color: var(--green);
}

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-bar__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Value props banner ──────────────────────────────────────── */
.value-props{padding:48px 0;background:linear-gradient(180deg,var(--bg-card) 0%,var(--bg) 100%);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.value-props__grid{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:640px){.value-props__grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.value-props__grid{grid-template-columns:repeat(4,1fr)}}
.value-prop{text-align:center;padding:24px 16px}
.value-prop__icon{width:52px;height:52px;margin:0 auto 16px;border-radius:12px;background:var(--accent-dim);border:1px solid rgba(255,79,45,.25);display:flex;align-items:center;justify-content:center;color:var(--accent)}
.value-prop__icon svg{width:24px;height:24px;flex-shrink:0}
.value-prop__title{font-size:.9rem;font-weight:800;color:#fff;margin-bottom:6px;line-height:1.3}
.value-prop__desc{font-size:.78rem;color:var(--text-muted);line-height:1.55}

/* ── Logo bar (animated sliding) ─────────────────────────────── */
.logo-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.logo-bar__label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.logo-bar__track {
  display: flex;
  gap: 56px;
  animation: logo-slide 35s linear infinite;
  width: max-content;
  padding: 0 28px;
}

.logo-bar__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
}

.logo-bar__item img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@keyframes logo-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-bar__track { animation: none; }
}

/* ── Video grid ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.video-card:hover {
  border-color: rgba(255,79,45,.35);
  background: var(--bg-card-2);
}

.video-card--featured { grid-column: 1 / -1; }

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__info {
  padding: 16px 20px 20px;
}

.video-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.video-card__desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legacy bare-embed fallback */
.video-item {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.video-item--featured {
  grid-column: 1 / -1;
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Feature cards ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,79,45,.35);
  background: var(--bg-card-2);
}

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Comparison table ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table thead th {
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.compare-table tbody tr:hover { background: var(--bg-card); }

.compare-table td:first-child { color: var(--text-muted); font-weight: 500; }

.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: var(--text-dim); }
.compare-table .mhl { color: #fff; font-weight: 600; }

/* ── Testimonial / quote card ────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.quote-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.quote-card__text::before { content: "\201C"; color: var(--accent); }
.quote-card__text::after  { content: "\201D"; color: var(--accent); }

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.quote-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.quote-card__role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Code snippet decorative ─────────────────────────────────── */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #b8bfe8;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block .kw  { color: #c792ea; }  /* keyword */
.code-block .fn  { color: #82aaff; }  /* function */
.code-block .str { color: #c3e88d; }  /* string */
.code-block .cm  { color: #4a5066; }  /* comment */
.code-block .num { color: #f78c6c; }  /* number */

/* ── Checklist ───────────────────────────────────────────────── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.cta-section .headline-lg { margin-bottom: 16px; }
.cta-section .subheadline {
  margin: 0 auto 36px;
  max-width: 560px;
}

.cta-section .btn-row { justify-content: center; }

/* Urgency ribbon */
.urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,79,45,.1);
  border: 1px solid rgba(255,79,45,.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted); /* --text-dim fails WCAG AA at 0.8rem */
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted); /* --text-dim fails WCAG AA at 0.8rem */
  text-decoration: none;
}

.footer__links a:hover { color: var(--text-muted); }

/* ── Section divider ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Section headings ────────────────────────────────────────── */
.section-header {
  margin-bottom: 48px;
}

.section-header .label { margin-bottom: 12px; }

.section-header .headline-lg { margin-bottom: 12px; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive helpers ──────────────────────────────────────── */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
  .btn--primary.btn--lg {
    width: 100%;
    font-size: 1.05rem;
    padding: 18px 24px;
  }
}

@media (min-width: 640px) {
  .hide-desktop { display: none !important; }
}

/* ── A/B variant overrides (applied by tracking.js) ─────────── */
/* Variant B classes are applied to <body> via JS when ?v=b is detected */
body.variant-b .variant-a { display: none !important; }
body:not(.variant-b) .variant-b { display: none !important; }

/* ── FAQ accordion toggle indicator ─────────────────────────── */
/* Hide the hardcoded + span; replace with CSS-controlled ::after */
details > summary > span[aria-hidden="true"] { display: none; }

details > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

details[open] > summary::after { content: "−"; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
}
