/* ============================================================
   SafuWifi.com — Main Stylesheet
   Safu by Dryfter Bloom, LLC
   ============================================================
   Contents
   1.  Custom properties
   2.  Reset / base
   3.  Layout utilities
   4.  Typography
   5.  Components (badge, button, card, icon-mark, pill)
   6.  Phone mockup
   7.  Navigation
   8.  Hero
   9.  Section: How It Works / Find
   10. Section: Compare
   11. Section: Safu Score
   12. Section: Connection / Wi-Fi
   13. Section: Community
   14. Section: About
   15. Section: Trust / Privacy
   16. Section: Alpha CTA
   17. Footer
   18. Interior pages (prose, support)
   19. Responsive adjustments
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --c-bg:          #0A1018;
  --c-bg-alt:      #0D1525;
  --c-surface:     #101C2E;
  --c-surface-2:   #142338;
  --c-deep:        #060C14;

  /* Brand */
  --c-accent:      #C65AD9;
  --c-accent-dim:  #9B3BB8;
  --c-purple:      #7B3FC4;
  --c-deep-purple: #350D60;
  --c-pink-soft:   #FAD0E4;
  --c-canvas:      #FFF7FC;

  /* Text */
  --c-text:        #EDE5F5;
  --c-text-muted:  #9B8FAB;
  --c-text-subtle: #5E5270;

  /* Borders */
  --c-border:        rgba(198, 90, 217, 0.22);
  --c-border-subtle: rgba(255, 255, 255, 0.07);

  /* Gradients */
  --grad-accent:  linear-gradient(135deg, #C65AD9 0%, #7B3FC4 100%);
  --grad-accent-h: linear-gradient(90deg, #C65AD9 0%, #7B3FC4 100%);
  --grad-glow:    radial-gradient(ellipse at 50% 0%, rgba(198, 90, 217, 0.14) 0%, transparent 68%);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
          "Helvetica Neue", Arial, sans-serif;

  /* Spacing (8-pt scale) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 48px rgba(198, 90, 217, 0.22);
  --shadow-glow-sm: 0 0 24px rgba(198, 90, 217, 0.15);

  /* Layout */
  --max-w:  1200px;
  --nav-h:  68px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}


/* ── 2. RESET / BASE ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover  { color: var(--c-pink-soft); }

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

button { cursor: pointer; font-family: var(--font); }


/* ── 3. LAYOUT UTILITIES ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section-pad {
  padding-block: var(--sp-20);
}

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── 4. TYPOGRAPHY ───────────────────────────────────────── */
.heading-xl {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.heading-md {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.heading-sm {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg   { font-size: 1.0625rem; line-height: 1.75; }
.body-sm   { font-size: 0.875rem;  line-height: 1.65; }
.text-muted  { color: var(--c-text-muted); }
.text-subtle { color: var(--c-text-subtle); }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}


/* ── 5. COMPONENTS ───────────────────────────────────────── */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-alpha {
  background: rgba(198, 90, 217, 0.12);
  border: 1px solid rgba(198, 90, 217, 0.32);
  color: var(--c-accent);
}

.badge-alpha::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 7px var(--c-accent);
  flex-shrink: 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  transition: all var(--t-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--c-border-subtle);
  color: var(--c-text-muted);
}

.btn-ghost:hover {
  border-color: var(--c-border);
  color: var(--c-text);
}

/* Card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-3px);
}

/* Icon mark */
.icon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  font-size: 1.375rem;
  line-height: 1;
  background: rgba(198, 90, 217, 0.1);
  border: 1px solid rgba(198, 90, 217, 0.18);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

/* Feature pill */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.375rem var(--sp-4);
  background: rgba(198, 90, 217, 0.07);
  border: 1px solid rgba(198, 90, 217, 0.18);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* Divider */
hr.divider {
  height: 1px;
  background: var(--c-border-subtle);
  border: none;
  margin-block: var(--sp-8);
}


/* ── 6. PHONE MOCKUP ─────────────────────────────────────── */
.phone-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
}

/* Only recede first phone when a second phone is present */
.phone-wrap .phone-mockup:first-child:not(:last-child) {
  transform: translateY(24px) scale(0.93);
  opacity: 0.7;
}

.phone-mockup {
  position: relative;
  width: 165px;
  aspect-ratio: 9 / 19.5;
  background: #0A1525;
  border-radius: 38px;
  border: 1.5px solid rgba(198, 90, 217, 0.28);
  box-shadow: var(--shadow-md),
              0 0 64px rgba(198, 90, 217, 0.14);
  overflow: hidden;
  flex-shrink: 0;
}

/* Dynamic island */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 24px;
  background: #050A12;
  border-radius: 12px;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 50px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Map placeholder */
.ph-map {
  flex: 1;
  background: linear-gradient(150deg, #0D2040 0%, #091830 100%);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.ph-map-label {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  white-space: nowrap;
  background: rgba(10, 16, 24, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Map pin dots */
.ph-map-pin {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.ph-map-pin.p1 { background: var(--c-accent);  color: var(--c-accent);  top: 35%; left: 28%; }
.ph-map-pin.p2 { background: var(--c-purple);  color: var(--c-purple);  top: 55%; left: 60%; }
.ph-map-pin.p3 { background: #FA3887;           color: #FA3887;           top: 25%; left: 58%; }
.ph-map-pin.p4 { background: var(--c-accent);  color: var(--c-accent);  top: 68%; left: 35%; opacity: 0.5; }

/* Card row */
.ph-card {
  background: var(--c-surface-2, #142338);
  border-radius: var(--r-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--c-border-subtle);
}

.ph-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.ph-line.accent { background: rgba(198, 90, 217, 0.28); width: 50%; }
.ph-line.w-full { width: 100%; }
.ph-line.w-75   { width: 75%; }
.ph-line.w-55   { width: 55%; }
.ph-line.w-40   { width: 40%; }

/* Place detail screen */
.ph-detail .ph-img {
  height: 60px;
  background: linear-gradient(135deg, #1A1040, #0D2040);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border-subtle);
  margin-bottom: 2px;
}

.ph-detail .ph-score-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.ph-score-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(198, 90, 217, 0.18);
  border: 1.5px solid var(--c-accent);
  flex-shrink: 0;
}

.ph-placeholder-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  background: rgba(10,16,24,0.85);
  padding: 2px 5px;
  border-radius: 3px;
  z-index: 4;
}


/* ── 7. NAVIGATION ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 16, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-slow);
}

.nav.scrolled { border-bottom-color: var(--c-border-subtle); }

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.nav-logo img,
.nav__logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}

.nav-links a:hover { color: var(--c-text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-badge { display: none; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: var(--sp-1);
  background: none;
  border: none;
  color: var(--c-text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}

.nav-hamburger:hover { color: var(--c-text); }

.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu
   Hidden everywhere by default.
   Shown on mobile only via :not([hidden]) inside the max-767px media query.
   Force-hidden on desktop via !important in the min-768px media query.
   The `hidden` HTML attribute and JS toggle mobileMenu.hidden to open/close. */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8, 13, 22, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border-subtle);
  padding: var(--sp-5);
  flex-direction: column;
  gap: var(--sp-1);
  z-index: 199;
}

.nav-mobile a {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border-subtle);
  transition: color var(--t-fast);
}

.nav-mobile a:hover { color: var(--c-text); }

.nav-mobile a:last-of-type { border-bottom: none; }

.nav-mobile .nav-mobile-badge {
  margin-top: var(--sp-4);
}


/* ── 8. HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: var(--sp-16) var(--sp-12);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center top, rgba(198, 90, 217, 0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  max-width: 580px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.125rem, 5.5vw, 3.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-title .gradient-text {
  display: block;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
  max-width: 440px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.hero-coming {
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
  letter-spacing: 0.03em;
}

.hero-visual {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp-3);
}

.hero-phones-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-mascot-img {
  flex-shrink: 0;
  width: 165px;
  z-index: 0;
  pointer-events: none;
  margin-left: -16px;
  filter: drop-shadow(0 0 32px rgba(198, 90, 217, 0.32));
}


/* ── 9. HOW IT WORKS / FIND ──────────────────────────────── */
.section-find {
  background: var(--c-bg-alt);
}

.find-header {
  max-width: 560px;
}

.find-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

.find-card .heading-sm {
  margin-bottom: var(--sp-2);
}

.find-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}


/* ── 10. COMPARE ─────────────────────────────────────────── */
.section-compare {
  background: var(--c-bg);
}

.compare-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  align-items: center;
}

.compare-text {
  max-width: 500px;
}

.compare-text .heading-lg {
  margin-bottom: var(--sp-4);
}

.compare-text p {
  color: var(--c-text-muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: var(--sp-6);
}

.compare-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.compare-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.compare-feature::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  flex-shrink: 0;
}

/* Compare preview panel */
.compare-panel {
  width: 100%;
  max-width: 380px;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border-subtle);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-md);
}

.compare-panel-header {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border-subtle);
}

.cpc {
  background: var(--c-surface-2, #142338);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  border: 1px solid var(--c-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--t-base);
}

.cpc.selected { border-color: rgba(198, 90, 217, 0.35); }

.cpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.cpc-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.cpc-type {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
  margin-top: 1px;
}

.cpc-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.cpc-score-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(198, 90, 217, 0.12);
  border: 2px solid var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpc-score-ring.dim {
  border-color: rgba(198, 90, 217, 0.3);
}

.cpc-score-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.cpc-score-label.dim {
  color: var(--c-text-subtle);
}

.cpc-chips {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.cpc-chip {
  font-size: 0.6875rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-pill);
  color: var(--c-text-subtle);
}


/* ── 11. SAFU SCORE ──────────────────────────────────────── */
.section-score {
  background: var(--c-bg-alt);
  text-align: center;
}

.score-intro {
  max-width: 560px;
  margin-inline: auto;
}

.score-intro .heading-lg { margin-bottom: var(--sp-4); }

.score-intro p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
}

.score-display-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-12);
}

/* Score ring */
.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.score-ring {
  width: 148px; height: 148px;
  position: relative;
}

.score-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.score-ring-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}

.score-ring-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
}

.score-ring-caption {
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
  max-width: 220px;
  line-height: 1.5;
}

/* Score factors */
.score-factors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  max-width: 520px;
}


/* ── 12. CONNECTION / WI-FI ──────────────────────────────── */
.section-connection {
  background: var(--c-bg);
}

.connection-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  align-items: center;
}

.connection-text {
  max-width: 500px;
}

.connection-text .heading-lg { margin-bottom: var(--sp-4); }

.connection-text p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
  margin-bottom: var(--sp-5);
}

.connection-disclaimer {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  background: rgba(198, 90, 217, 0.05);
  border: 1px solid rgba(198, 90, 217, 0.15);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4);
  line-height: 1.65;
}

.connection-disclaimer strong {
  display: block;
  color: var(--c-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

/* Speed panel */
.speed-panel {
  width: 100%;
  max-width: 380px;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border-subtle);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  box-shadow: var(--shadow-md);
}

.speed-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.speed-panel-meta {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
}

.speed-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.speed-row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speed-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.speed-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

.speed-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-accent-h);
}

.speed-community-note {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
  border-top: 1px solid var(--c-border-subtle);
  padding-top: var(--sp-3);
  line-height: 1.55;
}

/* Trust signal concept preview */
.trust-signal-preview {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  margin: var(--sp-6) 0;
}

.trust-signal-preview__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-4);
}

.trust-signal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.trust-signal-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-subtle);
}

.trust-signal-item--confirmed {
  background: rgba(198, 90, 217, 0.07);
  border-color: rgba(198, 90, 217, 0.25);
}

.trust-signal-item--verified {
  background: rgba(123, 63, 196, 0.07);
  border-color: rgba(123, 63, 196, 0.2);
}

.trust-signal-item--tested {
  background: rgba(255, 255, 255, 0.03);
}

.trust-signal-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.trust-signal-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-signal-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.trust-signal-item span {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
}

.trust-signal-preview__caveat {
  font-size: 0.6875rem;
  color: var(--c-text-subtle);
  text-align: center;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-subtle);
  font-style: italic;
}

/* Safety note */
.connection-safety-note {
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
  line-height: 1.6;
  margin-top: var(--sp-2);
}


/* ── 13. COMMUNITY ───────────────────────────────────────── */
.section-community {
  background: var(--c-bg-alt);
}

.community-header {
  max-width: 520px;
}

.community-header .heading-lg { margin-bottom: var(--sp-4); }

.community-header p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

.community-card .heading-sm { margin-bottom: var(--sp-2); }

.community-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}


/* ── 14. ABOUT ───────────────────────────────────────────── */
.section-about {
  background: var(--c-bg);
  text-align: center;
}

.about-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.about-inner .heading-lg { margin-bottom: var(--sp-1); }

.about-inner p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
}

.about-operator {
  font-size: 0.875rem;
  color: var(--c-text-subtle);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border-subtle);
}


/* ── 15. TRUST / PRIVACY ─────────────────────────────────── */
.section-trust {
  background: var(--c-bg-alt);
}

.trust-header {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-10);
}

.trust-header .heading-lg { margin-bottom: var(--sp-4); }

.trust-header p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.trust-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.trust-card .heading-sm { color: var(--c-text); }

.trust-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

.trust-link {
  font-size: 0.875rem;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── 16. ALPHA CTA ───────────────────────────────────────── */
.section-alpha-cta {
  background: var(--c-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-alpha-cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(198, 90, 217, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.alpha-cta-inner {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.alpha-cta-inner .heading-lg {
  max-width: 460px;
}

.alpha-cta-inner p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.72;
  max-width: 480px;
}

.alpha-note {
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
  max-width: 400px;
  line-height: 1.65;
}


/* ── 17. FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--c-deep);
  border-top: 1px solid var(--c-border-subtle);
  padding-block: var(--sp-12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}

.footer-logo img,
.footer__logo img {
  height: 38px;
  width: auto;
  margin-inline: auto;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--c-text-subtle);
  max-width: 280px;
  line-height: 1.6;
}

.footer-operator {
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--c-text-subtle);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--c-text-muted); }

.footer-sep {
  color: var(--c-text-subtle);
  opacity: 0.35;
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
  opacity: 0.55;
}


/* ── 18. INTERIOR PAGES ──────────────────────────────────── */
.page-header {
  padding-block: var(--sp-16) var(--sp-8);
  border-bottom: 1px solid var(--c-border-subtle);
}

.page-header .badge { margin-bottom: var(--sp-4); }
.page-header .heading-xl { margin-bottom: var(--sp-4); }
.page-header p { color: var(--c-text-muted); max-width: 540px; font-size: 1.0625rem; }

.page-body {
  padding-block: var(--sp-12) var(--sp-20);
}

/* Prose — privacy / support content */
.prose {
  max-width: 700px;
  color: var(--c-text-muted);
}

.prose .meta-box {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  border: 1px solid var(--c-border-subtle);
}

.prose .meta-row {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.875rem;
  align-items: baseline;
}

.prose .meta-key {
  color: var(--c-text-subtle);
  min-width: 110px;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.prose .meta-val {
  color: var(--c-text-muted);
  font-weight: 500;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border-subtle);
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-4);
  line-height: 1.78;
  font-size: 0.9375rem;
}

.prose ul, .prose ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-5);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--sp-2);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--c-pink-soft); }

.prose strong {
  color: var(--c-text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: var(--c-text-muted);
}

/* Support page */
.support-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.support-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text);
}

.support-card p {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-links {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-subtle);
}

.back-links a {
  font-size: 0.875rem;
  color: var(--c-text-subtle);
  transition: color var(--t-fast);
}

.back-links a:hover { color: var(--c-text-muted); }


/* ── 19. RESPONSIVE ──────────────────────────────────────── */
@media (min-width: 480px) {
  .container { padding-inline: var(--sp-6); }
}

@media (min-width: 768px) {
  .container      { padding-inline: var(--sp-8); }
  .section-pad    { padding-block: var(--sp-24); }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-8);
  }

  .hero-text { align-items: flex-start; max-width: 50%; }
  .hero-visual { max-width: 48%; }
  .hero-mascot-img { width: 200px; margin-left: -20px; }

  .find-grid        { grid-template-columns: repeat(4, 1fr); }
  .community-grid   { grid-template-columns: repeat(4, 1fr); }

  .compare-layout {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-16);
  }

  .compare-text  { flex: 1; }
  .compare-panel { min-width: 340px; flex-shrink: 0; }

  .connection-layout {
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--sp-16);
  }

  .connection-text { flex: 1; }
  .speed-panel     { min-width: 340px; flex-shrink: 0; }

  .score-display-row { flex-direction: row; justify-content: center; gap: var(--sp-16); }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }

  .nav-links  { display: flex; }
  .nav-badge  { display: flex; }
  .nav-hamburger { display: none; }
  .nav-mobile    { display: none !important; }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--sp-12); }
  .hero-mascot-img { width: 240px; margin-left: -24px; }
  .phone-mockup { width: 210px; }
}

@media (min-width: 1280px) {
  .hero-mascot-img { width: 270px; }
  .phone-mockup { width: 230px; }
}

@media (min-width: 1440px) {
  .container { padding-inline: var(--sp-16); }
}

/* ── Mobile (≤ 767px) ────────────────────────────────────── */
@media (max-width: 767px) {
  /* Hero polish */
  .hero {
    min-height: 0;
    padding-block: var(--sp-12) var(--sp-10);
  }
  .hero-inner   { gap: var(--sp-8); }
  .phone-mockup { width: 140px; }
  .hero-mascot-img { width: 130px; margin-left: -12px; }

  /* Mobile nav: show only when JS removes the `hidden` attribute */
  .nav-mobile:not([hidden]) {
    display: flex;
  }
}


/* ══════════════════════════════════════════════════════════════════
   INTERIOR PAGES — Prose layout (privacy.html, support.html)
══════════════════════════════════════════════════════════════════ */

.prose-page {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-20) var(--sp-6) var(--sp-24);
}

.prose-page__header {
  margin-bottom: var(--sp-10);
}

.prose-page__back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--c-accent);
  text-decoration: none;
  margin-bottom: var(--sp-6);
  transition: opacity 0.15s;
}
.prose-page__back:hover { opacity: 0.75; }

.prose-page__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.prose-page__meta {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.prose-page__meta a {
  color: var(--c-accent);
  text-decoration: none;
}
.prose-page__meta a:hover { text-decoration: underline; }

/* Body prose typography */
.prose-page__body {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--c-text-muted);
}

.prose-page__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.prose-page__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.prose-page__body p {
  margin-bottom: var(--sp-4);
}

.prose-page__body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--sp-4);
}

.prose-page__body ul li {
  margin-bottom: var(--sp-1);
}

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

.prose-page__body strong {
  color: var(--c-text);
  font-weight: 600;
}

.prose-page__body hr {
  border: none;
  border-top: 1px solid var(--c-border-subtle);
  margin: var(--sp-8) 0;
}

.prose-page__body address {
  font-style: normal;
  line-height: 1.9;
}

/* ── Support-specific ────────────────────────────────────────── */

.support-alpha-notice {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}

.support-alpha-notice p {
  margin-bottom: var(--sp-2);
}
.support-alpha-notice p:last-child { margin-bottom: 0; }

.support-contact-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-6) 0;
  text-align: center;
}

.support-contact-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  margin-bottom: var(--sp-3);
  word-break: break-all;
}
.support-contact-email:hover { text-decoration: underline; }

.support-contact-block p {
  font-size: 0.875rem;
  color: var(--c-text-subtle);
  margin-bottom: 0;
}

.support-footer-links {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
}

.support-footer-links a {
  font-size: 0.875rem;
  color: var(--c-accent);
  text-decoration: none;
}
.support-footer-links a:hover { text-decoration: underline; }

/* Nav active link */
.nav__link--active {
  color: var(--c-text);
  font-weight: 600;
}
