/* The Test Troop — Public Landing Page Styles
   Brand tokens synchronized with lib/core/theme/app_colors.dart & app_typography.dart
   Inter typography, authentic app brand purple, glassmorphism, and responsive layouts. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6732f8;
  --primary-hover: #5824e6;
  --primary-dark: #4b1ecc;
  --primary-light: #f3effe;
  --primary-glow: rgba(103, 50, 248, 0.32);
  --primary-gradient: linear-gradient(135deg, #6732f8 0%, #8b5cf6 100%);
  --hero-bg: linear-gradient(135deg, #5b2ef8 0%, #6732f8 50%, #854cf7 100%);
  --poll-accent: #9d65fd;
  --accent: #ff6584;
  --success: #22c55e;
  --success-light: #ecfdf5;
  --warning: #fb8c00;
  --warning-text: #92400e;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --subtle: #64748b;
  --faint: #94a3b8;
  --divider: #e2e8f0;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.1), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 30px rgba(103, 50, 248, 0.35);
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}


body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(103, 50, 248, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5924e6 0%, #7c48f2 100%);
  box-shadow: 0 6px 24px rgba(103, 50, 248, 0.48);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--divider);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--subtle);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(103, 50, 248, 0.05);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15.5px;
  border-radius: var(--radius-full);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.2);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Top Bar ──────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand picture,
.brand img {
  flex-shrink: 0;
}

.brand-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(103, 50, 248, 0.25);
}

.brand-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(103, 50, 248, 0.06);
}

.mobile-only {
  display: none;
}

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

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s ease;
}

.menu-toggle:hover {
  background: var(--surface);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}

/* ── Hero Section ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: #ffffff;
  overflow: hidden;
  padding: 88px 0 100px;
}

/* Atmospheric lights inside electric purple */
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(157, 101, 253, 0.45) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

.hero-pill-badge {
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  padding: 2.5px 8.5px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-pill-sep {
  opacity: 0.6;
  margin: 0 1px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-gradient-text {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 32px;
  max-width: 48ch;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}

/* Crisp White Button in Hero for optimal contrast against electric purple */
.hero .btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

.hero .btn-primary:hover {
  background: #f8fafc;
  color: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.hero .btn-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.hero .btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-avatars {
  display: flex;
  align-items: center;
}

.proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.proof-avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.proof-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Hero Art Device Mockup Frame */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 25px 60px rgba(35, 10, 100, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-mockup-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(35, 10, 100, 0.5);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #eab308; }
.mockup-dot-green { background: #22c55e; }

.mockup-content {
  position: relative;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: #ffffff;
}

.mockup-content img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  z-index: 5;
  animation: float-badge 6s ease-in-out infinite;
}

.floating-badge-1 {
  top: 18%;
  left: -24px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 12%;
  right: -24px;
  animation-delay: 3s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icon-purple {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-green {
  background: var(--success-light);
  color: var(--success);
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
}

.floating-badge-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Section General ──────────────────────────────────────────────── */
section {
  padding: 96px 0;
  position: relative;
}

section.tight {
  padding: 72px 0;
}

.alt-bg {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-head p {
  color: var(--subtle);
  font-size: 16.5px;
  margin: 0;
  line-height: 1.6;
}

/* ── Audience Cards ("What it is") ────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 50, 248, 0.3);
  box-shadow: var(--shadow-md);
}

.audience-card:hover::before {
  opacity: 1;
}

.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.audience-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.audience-card p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--subtle);
  line-height: 1.6;
  flex-grow: 1;
}

.audience-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.audience-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ── Features Grid ("Available today") ────────────────────────────── */
#features {
  padding: 32px 0 44px;
}

#features .section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 20px;
}

#features .section-head .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  padding: 3px 11px;
}

#features .section-head h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  margin: 0 0 6px;
  line-height: 1.2;
}

#features .section-head p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 50, 248, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Card highlight pulse when clicked from nav */
.card-highlight {
  animation: pulse-card 2s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(103, 50, 248, 0.3), var(--shadow-lg) !important;
}

@keyframes pulse-card {
  0% { transform: scale(1); }
  25% { transform: scale(1.025); }
  50% { transform: scale(1); }
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feature-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(103, 50, 248, 0.15);
}

.feature-icon-badge svg {
  width: 20px;
  height: 20px;
}

.feature-badge-chip {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2.5px 8.5px;
  border-radius: var(--radius-full);
}

.chip-purple {
  background: var(--primary-light);
  color: var(--primary);
}

.chip-green {
  background: var(--success-light);
  color: var(--success);
}

.chip-coral {
  background: #fff1f2;
  color: #e11d48;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feature-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--subtle);
  line-height: 1.5;
  flex-grow: 1;
}

.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sub-list li span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(103, 50, 248, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ── How it Works (Steps Roadmap) ─────────────────────────────────── */
.steps-container {
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 50, 248, 0.3);
  box-shadow: var(--shadow-md);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(103, 50, 248, 0.35);
}

.step-sub-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--subtle);
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--subtle);
  line-height: 1.6;
}

/* ── Privacy & Trust ("Identity Protection") ─────────────────────── */
.privacy-panel-modern {
  background: var(--hero-bg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(103, 50, 248, 0.28), 0 0 40px rgba(103, 50, 248, 0.2);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.privacy-shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.privacy-shield svg {
  width: 32px;
  height: 32px;
}

.privacy-content h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.privacy-content p {
  margin: 0 0 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.privacy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.privacy-feature-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.privacy-feature-pill svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

/* ── Advertise with Us ────────────────────────────────────────────── */
#advertise {
  padding: 32px 0 44px;
}

#advertise .section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 20px;
}

#advertise .section-head .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  padding: 3px 11px;
}

#advertise .section-head h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  margin: 0 0 6px;
  line-height: 1.2;
}

#advertise .section-head p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.advertise-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.advertise-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.advertise-info p {
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.5;
  margin: 0 0 16px;
}

.advertise-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advertise-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.advertise-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.advertise-check-icon svg {
  width: 12px;
  height: 12px;
}

.advertise-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.advertise-step-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.advertise-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 50, 248, 0.25);
  box-shadow: var(--shadow-md);
}

.advertise-step-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.advertise-step-card h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.advertise-step-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--subtle);
  line-height: 1.4;
}

/* ── Final CTA Band ───────────────────────────────────────────────── */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, #4b1ecc 0%, #6732f8 50%, #7e43f5 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding: 96px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-band .wrap {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(32px, 3.8vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-white {
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--divider);
  background: #ffffff;
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--subtle);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand p {
  margin: 0;
  font-size: 13.5px;
  color: var(--subtle);
  max-width: 32ch;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--subtle);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ── Legal pages (privacy / terms / ad-policy) ───────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.legal .draft-badge {
  display: inline-block;
  background: #fff4e5;
  color: var(--warning-text);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  border: 1px solid rgba(251, 140, 0, 0.2);
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--ink);
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.75;
}

.legal a {
  color: var(--primary);
  font-weight: 600;
}

.legal a:hover {
  text-decoration: underline;
}

.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.legal .back-link:hover {
  transform: translateX(-2px);
}

/* ── Responsive Queries ───────────────────────────────────────────── */
@media (max-width: 1040px) {
  .audience-grid,
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .advertise-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .privacy-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }

  .nav-actions .btn {
    display: none !important;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 14.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #ffffff;
    border-bottom: 2px solid var(--divider);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    gap: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    animation: slideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open li {
    list-style: none;
  }

  .nav-links.open .mobile-only {
    display: block;
  }

  .nav-links.open a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 600;
    border: 1px solid var(--divider);
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .nav-links.open a:hover,
  .nav-links.open a:active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
  }

  .nav-links.open #nav-signup-mobile {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(103, 50, 248, 0.35);
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(34px, 6.5vw, 44px);
  }

  .hero p {
    margin: 0 auto 28px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding-top: 18px;
    margin: 0 auto;
  }

  .proof-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .proof-text {
    text-align: center;
    margin: 0;
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .hero-art {
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-badge-1 {
    left: -10px;
  }

  .floating-badge-2 {
    right: -10px;
  }

  .privacy-panel-modern {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 20px;
  }

  .privacy-shield {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .privacy-shield svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 640px) {
  .audience-grid,
  .feature-grid,
  .steps,
  .advertise-steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  section.tight {
    padding: 48px 0;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .floating-badge {
    display: none; /* Hide floating badges on small mobile screens to keep view uncluttered */
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }
}

/* ── Toast Notification ────────────────────────────────────────────── */
.ttt-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ttt-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── "Get the app" / "Coming soon" box ─────────────────────────────── */
body.dialog-open {
  overflow: hidden;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 26, 46, 0.55);
}
.dialog-backdrop[hidden] {
  display: none;
}
.dialog {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.dialog-logo {
  display: block;
  margin: 0 auto 12px;
  border-radius: 14px;
}
.dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}
.dialog p {
  margin: 0 0 20px;
  color: var(--subtle);
  line-height: 1.5;
}
.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dialog-actions .btn {
  width: 100%;
  justify-content: center;
}
/* `.btn` sets a display of its own, which would override [hidden]. */
.dialog-actions [hidden] {
  display: none !important;
}
