/* ═══════════════════════════════════════════════════════
   ScamShield UK — Shared Design System v2.0
   Modern Tech · Dark-first · Glassmorphism
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --grad-start: #667EEA;
  --grad-end:   #764BA2;
  --grad:       linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  --accent:     #00F5FF;
  --warn:       #FF4757;
  --success:    #2ED573;
  --bg:         #0D0D1A;
  --bg-2:       #13132B;
  --bg-3:       #1A1A35;
  --glass:      rgba(255,255,255,0.06);
  --glass-md:   rgba(255,255,255,0.10);
  --glass-bd:   rgba(255,255,255,0.12);
  --text-1:     #FFFFFF;
  --text-2:     #C0C0E0;
  --text-3:     #8888AA;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --header-h:   64px;
  --max-w:      1200px;
  --py:         clamp(56px, 8vw, 96px);
}

/* Light mode overrides */
[data-theme="light"] {
  --bg:       #F0F0FF;
  --bg-2:     #E8E8FF;
  --bg-3:     #FFFFFF;
  --glass:    rgba(0,0,0,0.04);
  --glass-md: rgba(0,0,0,0.07);
  --glass-bd: rgba(0,0,0,0.10);
  --text-1:   #1A1A2E;
  --text-2:   #444466;
  --text-3:   #777799;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  transition: top .2s;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ════════════════════════════════════════
   SHARED HEADER
════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 36px);
  z-index: 100;
  background: #003078;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header--scrolled {
  background: #003078;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
[data-theme="light"] .site-header--scrolled {
  background: #003078;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #FFD600;
  letter-spacing: -.3px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.site-logo-text em {
  font-style: normal;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #FFD600;
  background-clip: unset;
}
.site-logo-tld {
  font-size: 10px;
  font-weight: 700;
  color: #FFD600;
  opacity: .85;
  margin-left: 1px;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text-1); background: var(--glass); }
.site-nav .nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4);
  margin-left: 8px;
}
.site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(102,126,234,0.55) !important;
}

/* Dark mode toggle in header (replaces hamburger) */
.nav-dm-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background .2s;
}
.nav-dm-btn:hover { background: rgba(255,255,255,.2); }

/* Hamburger (kept for JS compat but hidden) */
.hamburger {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 201;
  flex-shrink: 0;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   NAV OVERLAY — full-screen mobile menu
════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  top: var(--header-h);
  right: 10px;
  width: fit-content;
  min-width: 140px;
  background: rgba(0, 20, 60, 0.35);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.1);
  border: 1px solid rgba(255,255,255,.2);
  border-top: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 5px;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.96);
  transition: opacity .18s, transform .18s;
  box-shadow: 0 4px 24px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.08) inset;
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.nav-overlay-links {
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-overlay-links li { border: none; }
.nav-row-btn {
  width: 100%;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 7px 10px !important;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  letter-spacing: .01em;
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.nav-row-btn:hover, .nav-row-btn.active {
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.35) !important;
  color: #fff !important;
}
.nav-row-btn .nav-icon { font-size: 13px; width: 16px; flex-shrink: 0; }
.nav-overlay-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .2s, padding-left .2s;
}
.nav-overlay-links a:hover { color: var(--text-1); padding-left: 8px; }
.nav-icon { font-size: 22px; width: 32px; flex-shrink: 0; }

.nav-overlay-dm {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 500;
  transition: background .2s;
  width: 100%;
}
.nav-overlay-dm:hover { background: var(--glass-md); color: var(--text-1); }

/* ════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════ */

/* Glass card */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(102,126,234,0.35);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(102,126,234,0.5); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(0,245,255,0.08); transform: translateY(-2px); }

/* Section helpers */
.section {
  padding: var(--py) clamp(16px, 4vw, 36px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.section-centered { text-align: center; }
.section-centered .section-subtitle { margin: 0 auto 40px; }

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 12px;
}
.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Tag pill */
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  color: var(--accent);
}
.tag-pill--warn { color: var(--warn); border-color: rgba(255,71,87,0.3); background: rgba(255,71,87,0.08); }

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(102,126,234,0.3) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(118,75,162,0.2) 0%, transparent 55%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-content {
  padding: calc(var(--header-h) + var(--py)) clamp(16px, 4vw, 36px) var(--py);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) { .hero-content { grid-template-columns: 1fr 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .4px;
  margin-bottom: 20px;
  width: fit-content;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: eyebrow-pulse 2s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.3; transform:scale(.7); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-1);
  margin-bottom: 20px;
}
.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
}
.hero-trust-icon { color: var(--success); }

/* Shield graphic */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-shield-wrap {
  position: relative;
  width: clamp(160px, 35vw, 260px);
  animation: shield-float 4s ease-in-out infinite;
}
@keyframes shield-float {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-16px); }
}
.hero-shield-wrap svg { width: 100%; height: auto; filter: drop-shadow(0 0 48px rgba(102,126,234,0.45)); }
.hero-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse, rgba(102,126,234,0.3) 0%, transparent 65%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{ opacity:.5; } 50%{ opacity:1; } }

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-wrap {
  background: var(--bg-2);
  border-top: 1px solid var(--glass-bd);
  border-bottom: 1px solid var(--glass-bd);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
}
.stats-item {
  padding: 36px 16px;
  text-align: center;
  position: relative;
}
.stats-item + .stats-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; height: 50%;
  width: 1px;
  background: var(--glass-bd);
}
.stats-num {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stats-label { font-size: 13px; color: var(--text-3); font-weight: 500; }

/* ════════════════════════════════════════
   SCAM ALERT TICKER
════════════════════════════════════════ */
.ticker-wrap {
  background: #120E00;
  border-top: 1px solid rgba(245,197,24,0.3);
  border-bottom: 1px solid rgba(245,197,24,0.3);
  padding: 11px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-badge {
  flex-shrink: 0;
  background: rgba(245,197,24,0.15);
  border-right: 1px solid rgba(245,197,24,0.2);
  padding: 0 18px;
  font-size: 10px;
  font-weight: 800;
  color: #F5C518;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ticker-badge-dot {
  width: 5px; height: 5px;
  background: #F5C518;
  border-radius: 50%;
  animation: eyebrow-pulse 1.5s ease-in-out infinite;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.ticker-item::after { content: '|'; margin-left: 8px; color: rgba(245,197,24,0.25); }

/* ════════════════════════════════════════
   CHECKER SECTION (wraps existing .app)
════════════════════════════════════════ */
.checker-section {
  background: var(--bg);
  padding-top: var(--py);
  padding-bottom: var(--py);
  border-top: 1px solid var(--glass-bd);
}
.checker-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
  margin-bottom: 24px;
  text-align: center;
}
.checker-app-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 36px);
}

/* ════════════════════════════════════════
   POSTCODE / LOCAL SECTION
════════════════════════════════════════ */
.postcode-section {
  background: var(--bg-2);
  padding: var(--py) 0;
  border-top: 1px solid var(--glass-bd);
}
.postcode-card {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
}
.postcode-input-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.postcode-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s;
}
.postcode-input::placeholder { color: var(--text-3); font-weight: 400; letter-spacing: 0; font-size: 14px; }
.postcode-input:focus { border-color: var(--accent); }
[data-theme="light"] .postcode-input { background: rgba(0,0,0,0.04); color: var(--text-1); }
.postcode-results {
  margin-top: 24px;
  display: none;
}
.postcode-results.visible { display: block; }
.pc-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.pc-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.pc-tab.active { background: var(--grad); color: #fff; }
.pc-tab-content { display: none; }
.pc-tab-content.active { display: block; }
.pc-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid var(--glass-bd);
  text-decoration: none;
  margin-bottom: 10px;
  transition: background .2s;
}
.pc-contact-link:hover { background: rgba(255,255,255,0.08); }
.pc-contact-icon { font-size: 22px; flex-shrink: 0; }
.pc-contact-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.pc-contact-desc { font-size: 12px; color: var(--text-3); }

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.testimonials-section {
  background: var(--bg);
  padding: var(--py) 0;
  border-top: 1px solid var(--glass-bd);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: #F5C518;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 20px;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.testimonial-loc  { font-size: 12px; color: var(--text-3); }
.testimonials-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 24px;
  font-style: italic;
}

/* ════════════════════════════════════════
   BLOG PREVIEW
════════════════════════════════════════ */
.blog-preview-section {
  background: var(--bg-2);
  padding: var(--py) 0;
  border-top: 1px solid var(--glass-bd);
}
.blog-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 600px) { .blog-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-preview-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-preview-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.blog-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.blog-card-top { height: 5px; background: var(--grad); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-card-time { font-size: 11px; color: var(--text-3); }
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.blog-card-link::after { content: ' →'; }
.blog-all-link { text-align: center; }

/* ════════════════════════════════════════
   ABOUT / MISSION
════════════════════════════════════════ */
.about-section {
  background: var(--bg);
  padding: var(--py) 0;
  border-top: 1px solid var(--glass-bd);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-trust-list {
  list-style: none;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.about-trust-icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.about-disclaimer {
  background: rgba(255,71,87,0.07);
  border: 1px solid rgba(255,71,87,0.18);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 20px;
}
.about-shield-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.about-shield-side svg {
  width: clamp(120px, 28vw, 180px);
  filter: drop-shadow(0 0 40px rgba(102,126,234,0.4));
}
.about-stats-row {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.about-stat { text-align: center; }
.about-stat-num {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label { font-size: 12px; color: var(--text-3); }

/* ════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  padding: var(--py) 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
  text-align: center;
  position: relative;
  z-index: 1;
}
.newsletter-inner .section-title { color: #fff; }
.newsletter-inner .section-title span {
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,.75);
}
.newsletter-inner .section-subtitle { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.8); }
.newsletter-btn {
  background: #fff;
  color: var(--grad-start);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.newsletter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 12px; }
.newsletter-success {
  display: none;
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  margin-top: 0;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--glass-bd);
  padding: 48px clamp(16px, 4vw, 36px) 28px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text-1); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-bd);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-disclaimer { font-size: 11px; color: var(--text-3); line-height: 1.6; max-width: 600px; }

/* ════════════════════════════════════════
   BLOG POST PAGE STYLES
════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) clamp(16px, 4vw, 36px) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) { .article-wrap { grid-template-columns: 1fr 280px; } }

.article-header { margin-bottom: 28px; }
.article-author-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-bd);
  font-size: 13px;
  color: var(--text-3);
}
.article-author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.article-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-bd);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, opacity .15s;
  font-family: inherit;
}
.share-btn:hover { transform: translateY(-1px); opacity: .88; }
.share-btn--x    { background: #000; color: #fff; }
.share-btn--wa   { background: #25D366; color: #fff; }
.share-btn--copy { background: var(--glass); border: 1px solid var(--glass-bd); color: var(--text-1); }

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
}
@media (max-width: 959px) { .article-toc { display: none; } }
.article-toc h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: color .2s;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--accent); }
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Related posts on blog pages */
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 600px) { .related-posts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════════ */
.about-page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(102,126,234,0.2), transparent 65%);
  padding-top: var(--header-h);
  padding-bottom: var(--py);
}
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 28px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-start);
  border: 2px solid var(--bg);
}
.timeline-date { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.timeline-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.timeline-desc  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ════════════════════════════════════════
   BLOG INDEX PAGE
════════════════════════════════════════ */
.blog-index-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--py)) clamp(16px, 4vw, 36px) var(--py);
}
.blog-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 640px) { .blog-index-grid { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════
   UTILITY
════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--grad-start);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ════════════════════════════════════════
   TOOL LAYOUT — fixed viewport, no scroll
════════════════════════════════════════ */
html, body {
  height: 100dvh;
  overflow: hidden;
}

/* Main tool area fills below header + pill nav */
.tool-main {
  position: fixed;
  top: calc(var(--header-h) + 46px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* Each view fills the tool area */
.tool-view {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}
.tool-view.active { display: flex; flex-direction: column; }

/* Scrollable content panels (local, blog, about) */
.view-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 36px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.view-scroll::-webkit-scrollbar { width: 4px; }
.view-scroll::-webkit-scrollbar-thumb { background: var(--glass-bd); border-radius: 2px; }

/* Tool nav tabs in header — hidden, replaced by float-pill-nav */
.tool-tabs { display: none; }
.tool-tab { display: none; }

/* ── FLOATING PILL NAV ── */
.float-pill-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 20, 60, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.pill-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.pill-btn.active {
  background: #003078;
  border-color: #FFD600;
  color: #FFD600;
  box-shadow: 0 0 12px rgba(255,214,0,.35), 0 0 4px rgba(255,214,0,.2);
}
.tool-tab-icon { font-size: 14px; }

/* Check view: .app fills the full view */
#view-check .app {
  flex: 1;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: unset !important;
  max-width: unset !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Local view */
.local-card {
  max-width: 680px;
  margin: 0 auto;
}
.local-header {
  margin-bottom: 28px;
}

/* Blog view grid */
.blog-view-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 600px) { .blog-view-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-view-grid { grid-template-columns: repeat(3, 1fr); } }

/* About view */
.about-view-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
}
@media (min-width: 768px) { .about-view-grid { grid-template-columns: 3fr 2fr; } }

/* ── AREA SAFETY FAB (fixed bottom-left) ── */
.as-fab {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  width: auto;
  height: 44px;
  border-radius: 0 8px 0 0;
  background: #003078;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,48,120,.35);
  font-size: 14px;
  font-weight: 600;
  color: #FFD600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  font-family: inherit;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.as-fab-label {
  font-size: 13px;
  font-weight: 600;
  color: #FFD600;
  letter-spacing: 0.01em;
}
.as-fab:hover {
  background: #002060;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,48,120,.45);
}
.as-fab:active {
  transform: translateY(0);
}
/* Pulse animation on first visit */
@keyframes as-pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(0,48,120,.35); }
  50% { box-shadow: 0 4px 16px rgba(0,48,120,.35), 0 0 0 8px rgba(0,48,120,.15); }
}
.as-fab:not([data-unlocked]) {
  animation: as-pulse 2s ease-in-out 3;
}

@media (max-width: 600px) {
  .as-fab {
    bottom: 0;
    left: 0;
    height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }
}

/* ── DARK MODE BTN IN PILL NAV ────────────────────── */
.float-pill-nav .nav-dm-btn {
  padding: 6px 10px;
  font-size: 16px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1;
}

/* ── AREA SAFETY HEADER BUTTON ────────────────────── */
.area-safety-header-btn {
  background: #003078;
  color: #FFD600;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.area-safety-header-btn:hover { opacity: 0.9; }

/* ── AREA SAFETY POPUP ───────────────────────────── */
.area-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.area-popup-overlay.is-open { display: flex; }

.area-popup-modal {
  background: linear-gradient(180deg, #0a1a3a 0%, #0D0D1A 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  width: min(90vw, 380px);
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.area-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #8888AA;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.area-popup-title {
  color: #FFD600;
  font-size: 19px;
  margin-bottom: 6px;
  font-weight: 800;
}
.area-popup-desc {
  color: #C0C0E0;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.area-popup-sub {
  color: #8888AA;
  font-size: 12px;
  margin-bottom: 20px;
}
.area-popup-yt-btn {
  width: 100%;
  padding: 14px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.area-popup-yt-btn:hover { opacity: 0.9; }
.area-popup-already {
  color: #8888AA;
  font-size: 11px;
  margin-bottom: 6px;
}
.area-popup-verify-btn {
  padding: 10px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #00F5FF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.area-popup-verify-btn:hover { background: rgba(255,255,255,0.12); }

/* Unlocked state postcode input inside popup */
.area-popup-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.area-popup-input-row input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
  font-family: inherit;
}
.area-popup-input-row input::placeholder { color: #8888AA; }
.area-popup-input-row button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667EEA, #764BA2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.area-popup-input-row button:hover { opacity: 0.9; }
