/* ============================================================
   BuxIQ — Production Stylesheet
   https://www.buxiq.app
   ============================================================ */


/* ─── SECTION 1: CSS Custom Properties (Design Tokens) ─── */

:root {
  /* Colors */
  --color-primary: #0F4C75;
  --color-secondary: #1B98E0;
  --color-accent: #00D68F;
  --color-bg: #0A0F1E;
  --color-surface: #111827;
  --color-border: #1F2937;
  --color-text-primary: #F9FAFB;
  --color-text-secondary: #9CA3AF;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0A0F1E 0%, #0F1F3D 50%, #0A2240 100%);
  --gradient-cta: linear-gradient(90deg, #0F4C75, #1B98E0);
  --gradient-accent: linear-gradient(135deg, #00D68F, #1B98E0);
  --gradient-text: linear-gradient(135deg, #00D68F, #1B98E0);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;
  --space-section: 72px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(27, 152, 224, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(0, 214, 143, 0.15);

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

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}

/* ─── SECTION 2: CSS Reset & Base ─── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

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

.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--space-md);
}

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

/* ─── SECTION 3: Typography System ─── */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
  overflow: visible;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 4px;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  overflow: visible;
  padding-top: 0.05em;
  padding-bottom: 0.25em;
}

h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow: visible;
  padding-top: 0.05em;
  padding-bottom: 0.2em;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
}

small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  padding-bottom: 0.15em;
  line-height: 1.4;
  overflow: visible;
}

.mono {
  font-family: var(--font-mono);
}

/* ─── SECTION 4: Layout Utilities ─── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-section) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  overflow: visible;
}

.section-sub {
  color: var(--color-text-secondary);
  font-size: 18px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* ─── SECTION 5: Component Styles ─── */

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
  padding-top: 12px;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  gap: var(--space-xl);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  font-weight: 500;
}

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

.nav-links a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-cta {
  background: var(--gradient-cta);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.nav-contact {
  color: var(--color-text-secondary);
  font-size: 15px;
  transition: color var(--transition-fast);
}

.nav-contact:hover {
  color: var(--color-text-primary);
}

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay.open {
  transform: translateX(0);
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-xl);
  list-style: none;
  font-size: 24px;
}

.nav-overlay-links a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.nav-overlay-links a:hover {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Logo Fallback ── */

.logo-text-fallback {
  display: none;
}

/* ── Scroll Progress Bar ── */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-cta);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Buttons ── */

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  border: none;
  line-height: 1;
}

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

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Accept/Decline cookie buttons */
.btn-accept {
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-decline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-decline:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

/* ── Hero Section ── */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-xxl);
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.hero-content {
  max-width: 560px;
  padding-right: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0 var(--space-xl);
  line-height: 1.7;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero-social-proof {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -10%;
  left: -5%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  top: 20%;
  right: -5%;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: 10%;
  left: 30%;
  animation-delay: 6s;
}

/* Hero Phone Mockup */
.hero-phone {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #080C16;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(27, 152, 224, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: phoneFloat 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  margin: auto;
}

.phone-screen {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  font-size: 12px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.phone-greeting {
  font-weight: 500;
  color: var(--color-text-primary);
}

.phone-balance {
  text-align: center;
  padding: 8px 0;
}

.balance-label {
  display: block;
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.balance-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
}

.phone-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 9px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 12px;
  font-weight: 600;
}

.stat-value.accent {
  color: var(--color-accent);
}

.phone-ai-card {
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
}

.phone-transactions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-txn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-secondary);
  animation: bounce 2s infinite;
  font-size: 20px;
}

/* ── Stats Bar ── */

.stats-bar {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 0 !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-xl) 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 4px;
}

/* Reuse .stat-label (defined in phone stats, covers bars too) */
.stats-grid .stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.trust-badge {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ── Problem Section ── */

.problem-section {
  background: var(--color-surface);
}

.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-danger);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-left-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.problem-card:hover {
  border-left-color: var(--color-warning);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.problem-icon {
  font-size: 32px;
  display: block;
  margin-bottom: var(--space-md);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.problem-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.problem-solution {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-top: var(--space-xxxl);
  padding-bottom: 4px;
  display: inline-block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-solution-wrap {
  text-align: center;
}

/* ── Feature Rows ── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row:nth-child(even) .feature-mock {
  order: -1;
}

.feature-copy {
  max-width: 480px;
}

.feature-mock {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-row:hover .feature-mock {
  box-shadow: var(--shadow-glow);
  border-color: rgba(27, 152, 224, 0.4);
}

.feature-badge {
  display: inline-flex;
  background: var(--gradient-cta);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 12px;
  color: white;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.feature-tag {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ── How It Works Steps ── */

.steps-row {
  display: flex;
  align-items: flex-start;
  margin-top: var(--space-xxxl);
}

.step-card {
  flex: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin-top: 24px;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto var(--space-md);
  color: white;
}

.step-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
  display: block;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.trust-note {
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--color-text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ─── COVERFLOW CAROUSEL ─── */

.carousel-section {
  padding: 60px 0 80px;
  overflow: hidden;
}

.coverflow-heading {
  text-align: center;
  margin-bottom: 48px;
}

.coverflow-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.coverflow-stage {
  position: relative;
  height: 540px;
  flex: 1;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.coverflow-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 500px;
  margin-top: -250px;
  margin-left: -130px;
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #080C16;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease,
              box-shadow 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.coverflow-slide.cf-active {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08), 0 0 60px rgba(27,152,224,0.15);
  z-index: 10;
  cursor: default;
}

.coverflow-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  z-index: 20;
  user-select: none;
}

.coverflow-nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0,214,143,0.05);
}

.coverflow-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.coverflow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast);
}

.coverflow-dot.cf-dot-active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-slide { transition: none; }
}

/* Carousel Phone Inner Screens */
.cp-screen {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  font-size: 12px;
  color: var(--color-text-primary);
}

.cp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-txn-list,
.cp-budget-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: hidden;
}

.cp-txn {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-txn.accent span:last-child {
  color: var(--color-accent);
}

.cp-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: hidden;
}

.cp-msg {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.4;
}

.cp-msg.user {
  background: rgba(27, 152, 224, 0.3);
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
}

.cp-msg.ai {
  background: rgba(255, 255, 255, 0.07);
  align-self: flex-start;
  border-radius: 12px 12px 12px 2px;
}

.cp-budget {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-bname {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.cp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.cp-fill {
  height: 100%;
  background: var(--gradient-cta);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.cp-budget.warning .cp-fill {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.cp-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
}

.cp-score-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  padding-bottom: 4px;
}

.cp-score-label {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.cp-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
}

.cp-score-breakdown div {
  display: flex;
  justify-content: space-between;
}

.cp-score-breakdown .accent {
  color: var(--color-accent);
}

/* ── Carousel CTA Slide ── */
.cp-cta-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; text-align: center; height: 100%; }
.cp-cta-logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-accent); }
.cp-cta-headline { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-text-primary); line-height: 1.3; }
.cp-cta-sub { font-size: 11px; color: var(--color-text-secondary); }
.cp-cta-btn { background: var(--gradient-cta); color: #fff; border-radius: var(--radius-pill); padding: 10px 20px; font-size: 13px; font-family: var(--font-display); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
.cp-cta-note { font-size: 10px; color: var(--color-text-secondary); }

.cp-share-btn {
  margin-top: 8px;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 11px;
  color: white;
  cursor: pointer;
  font-family: var(--font-body);
  align-self: center;
}

.cp-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
}

.cp-subtitle {
  font-size: 11px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 2px;
}

.cp-chart {
  margin-top: 8px;
}

.cp-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-legend span {
  font-size: 10px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: var(--space-xxl) auto 0;
}

.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  background: var(--color-surface);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.pro {
  border-color: transparent;
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  z-index: -1;
  animation: gradient-border 4s ease infinite;
  background-size: 300% 300%;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: white;
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.plan-price {
  margin-bottom: var(--space-xl);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  line-height: 1.1;
}

.price-period {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 4px;
}

.annual-note {
  display: none;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.annual-note.visible {
  display: block;
}

.currency-selector {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.currency-btn {
  border: 1px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-body);
}

.currency-btn.active,
.currency-btn[aria-pressed="true"] {
  background: var(--gradient-cta);
  border-color: transparent;
  color: white;
}

.currency-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.pricing-toggle {
  display: flex;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 4px;
  max-width: 280px;
  margin: 0 auto var(--space-lg);
  border: 1px solid var(--color-border);
}

.toggle-btn {
  flex: 1;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.toggle-btn.active,
.toggle-btn[aria-pressed="true"] {
  background: var(--gradient-cta);
  color: white;
}

.badge-save {
  background: var(--gradient-accent);
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-xl) 0;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.feature-item.available {
  color: var(--color-text-primary);
}

.feature-item.unavailable {
  color: var(--color-text-secondary);
  opacity: 0.5;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-top: auto;
  align-self: stretch;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  cursor: pointer;
}

.pricing-contact {
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.pricing-contact a {
  color: var(--color-secondary);
  transition: text-decoration var(--transition-fast);
}

.pricing-contact a:hover {
  text-decoration: underline;
}

/* ── Testimonials ── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xxxl);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
  box-shadow: var(--shadow-glow);
}

.testimonial-card blockquote {
  margin-bottom: var(--space-lg);
}

.testimonial-card blockquote p {
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.7;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card figcaption strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 15px;
}
.testimonial-card figcaption span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.stars {
  color: #F59E0B;
  font-size: 12px;
  margin-top: 4px;
}

/* ── FAQ Accordion ── */

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  margin-top: var(--space-xxxl);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  border: none;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--color-accent);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  visibility: hidden;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  visibility: visible;
}

.faq-answer p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 20px;
  padding-top: 4px;
}

/* ── Waitlist Section ── */

.waitlist-section {
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.3), rgba(27, 152, 224, 0.1));
}

.waitlist-container {
  text-align: center;
  max-width: 640px;
  margin: auto;
}

.waitlist-form-wrap {
  max-width: 480px;
  margin: var(--space-xl) auto;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  position: relative;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-row input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.1);
}

.form-row input::placeholder {
  color: var(--color-text-secondary);
}

.form-error {
  display: block;
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 4px;
  text-align: left;
  min-height: 18px;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.consent-row label {
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.consent-row label a {
  color: var(--color-accent);
}

.consent-row label a:hover {
  text-decoration: underline;
}

.waitlist-success {
  padding: var(--space-xl);
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 18px;
}

.waitlist-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: var(--space-lg);
}

.app-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--transition-base), border-color var(--transition-base);
  min-width: 160px;
  color: var(--color-text-primary);
  text-align: left;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.app-btn-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.app-btn-small {
  display: block;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.app-btn-store {
  display: block;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Footer ── */

footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xxxl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xxl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand img {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-email {
  color: var(--color-accent);
  font-size: 14px;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  padding: 6px 0;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

/* ── 404 Error Page ── */

.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-container {
  text-align: center;
  padding: var(--space-section) 0;
  max-width: 480px;
}

.error-number {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  line-height: 1.1;
  padding-bottom: 8px;
  display: block;
  margin-bottom: var(--space-xl);
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ── Cookie Banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  min-width: 200px;
}

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

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

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Breadcrumb ── */

.breadcrumb { padding: calc(var(--nav-height) + var(--space-lg)) 0 0; }
.breadcrumb-link { font-size: 14px; color: var(--color-text-secondary); display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition-fast); }
.breadcrumb-link:hover { color: var(--color-accent); }

/* ── Legal Page Layout ── */

.legal-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xxxl);
  align-items: start;
  padding-top: calc(var(--nav-height) + var(--space-xxl));
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  max-height: calc(100vh - var(--nav-height) - var(--space-xxxl));
  overflow-y: auto;
  padding-bottom: var(--space-xl);
}

.legal-toc h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.toc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-links a {
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast), border-left-color var(--transition-fast);
  line-height: 1.4;
}

.toc-links a:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.toc-links a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: rgba(0, 214, 143, 0.05);
}

.legal-content {
  min-width: 0;
}

.legal-content .effective-dates {
  padding: var(--space-md) var(--space-lg);
  background: rgba(27, 152, 224, 0.07);
  border: 1px solid rgba(27, 152, 224, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xxl);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.legal-content section {
  margin-bottom: var(--space-xxxl);
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md);
}

.legal-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.legal-content ul {
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal-content a {
  color: var(--color-accent);
}

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

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ─── SECTION 6: Animation Keyframes ─── */

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

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes gradient-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── SECTION 7: Scroll Reveal States ─── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-reveal].delay-1 { transition-delay: 100ms; }
[data-reveal].delay-2 { transition-delay: 200ms; }
[data-reveal].delay-3 { transition-delay: 300ms; }

/* ─── SECTION 8: Responsive Breakpoints ─── */

/* Small — 640px */
@media (max-width: 640px) {
  :root {
    --space-section: 64px;
    --space-xxxl: 48px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }

  .container {
    padding: 0 24px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    min-height: auto;
    gap: var(--space-xl);
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

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

  .hero-social-proof {
    text-align: center;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-phone {
    width: 200px;
    height: 400px;
    border-radius: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 32px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-row:nth-child(even) .feature-mock {
    order: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .legal-page {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }

  .error-number {
    font-size: 80px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-contact {
    display: none;
  }

  .pricing-toggle {
    max-width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn-accept,
  .btn-decline {
    flex: 1;
    text-align: center;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Tight mobile — 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

/* Medium — 768px */
@media (min-width: 641px) and (max-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height) + var(--space-xxl));
    min-height: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-row:nth-child(even) .feature-mock {
    order: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Large — 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 { font-size: 48px; }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .legal-page {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }
}

/* XLarge — 1280px+ */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xxl);
  }
}

/* 2XLarge — 1440px+ */
@media (min-width: 1440px) {
  h1 { font-size: 64px; }

  .stat-number {
    font-size: 48px;
  }
}

/* ─── SECTION 9: Reduced Motion ─── */

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────────
   FLOATING ACTION BUTTON — Back to Top / Home
   ───────────────────────────────────────────── */


/* ─── BLOG ARTICLE PAGE ─── */
.article-page { padding-top: calc(var(--nav-height) + var(--space-xxl)); padding-bottom: var(--space-section); }
.article-container { max-width: 720px; margin: 0 auto; padding: 0 var(--space-xl); }
.article-header { margin-bottom: var(--space-xxxl); }
.article-category { display: inline-block; background: var(--gradient-cta); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-md); }
.article-title { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--color-text-primary); margin-bottom: var(--space-lg); padding-bottom: 4px; overflow: visible; }
.article-meta { display: flex; align-items: center; gap: var(--space-lg); color: var(--color-text-secondary); font-size: 14px; flex-wrap: wrap; margin-top: var(--space-md); }
.article-divider { height: 1px; background: var(--color-border); margin: var(--space-xl) 0; }
.article-body { color: var(--color-text-secondary); font-size: 17px; line-height: 1.85; }
.article-body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--color-text-primary); margin: var(--space-xxxl) 0 var(--space-lg); padding-bottom: 4px; overflow: visible; line-height: 1.2; }
.article-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--color-text-primary); margin: var(--space-xxl) 0 var(--space-md); line-height: 1.3; overflow: visible; }
.article-body p { margin-bottom: var(--space-lg); }
.article-body ul, .article-body ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.article-body li { line-height: 1.7; }
.article-body strong { color: var(--color-text-primary); font-weight: 600; }
.article-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-callout { background: rgba(27,152,224,0.08); border: 1px solid rgba(27,152,224,0.2); border-left: 4px solid var(--color-secondary); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-xl); margin: var(--space-xl) 0; }
.article-callout p { margin-bottom: 0; color: var(--color-text-primary); font-size: 16px; }
.article-callout-accent { border-left-color: var(--color-accent); background: rgba(0,214,143,0.06); border-color: rgba(0,214,143,0.2); }
.article-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xxxl); padding-top: var(--space-xl); border-top: 1px solid var(--color-border); }
.article-tag { border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 4px 14px; font-size: 13px; color: var(--color-text-secondary); }
.article-cta-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xxl); text-align: center; margin-top: var(--space-xxxl); }
.article-cta-box h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-md); line-height: 1.2; overflow: visible; }
.article-cta-box p { color: var(--color-text-secondary); margin-bottom: var(--space-xl); }
.article-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-xxxl); padding-top: var(--space-xl); border-top: 1px solid var(--color-border); flex-wrap: wrap; gap: var(--space-md); }
.article-nav a { color: var(--color-text-secondary); font-size: 14px; display: flex; align-items: center; gap: 6px; transition: color var(--transition-fast); }
.article-nav a:hover { color: var(--color-accent); }
.blog-card-title a { color: var(--color-text-primary); text-decoration: none; transition: color var(--transition-fast); }
.blog-card-title a:hover { color: var(--color-accent); }
@media (max-width: 640px) {
  .article-title { font-size: 28px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
}

/* Fix font clipping on section headings */
.how-section h2,
.how-section .section-header h2,
.pricing-section h2,
.pricing-section .section-header h2,
.testimonials-section h2,
.faq-section h2,
.faq-container h2 {
  overflow: visible !important;
  line-height: 1.2;
  padding-bottom: 4px;
}

.how-section,
.pricing-section,
.testimonials-section,
.faq-section {
  overflow: visible;
}

.pricing-section {
  padding-top: 60px !important;
  padding-bottom: 72px !important;
  overflow: visible;
}

html body .section-header,
html body .features-section,
html body .how-section,
html body .pricing-section,
html body .testimonials-section,
html body .faq-section,
html body .problem-section,
html body .carousel-section,
html body .waitlist-section {
  overflow: visible !important;
}

/* ─── W21: HEADING METRICS (Space Grotesk — correct OS/2 descent, no override needed) ─── */
h2 { line-height: 1.5; padding-bottom: 0.25em; }
h3 { line-height: 1.45; padding-bottom: 0.2em; }

/* ─── W22: APP STORE COMING SOON MODAL ─── */
.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cs-overlay.cs-open {
  display: flex;
}
.cs-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-overlay.cs-open .cs-card {
  transform: translateY(0) scale(1);
}
.cs-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cs-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-primary);
}
.cs-rocket {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
  animation: cs-rocket-float 3s ease-in-out infinite;
}
@keyframes cs-rocket-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}
.cs-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.cs-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}
.cs-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cs-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  min-width: 150px;
}
.cs-badge-icon { font-size: 24px; flex-shrink: 0; }
.cs-badge-text { text-align: left; }
.cs-badge-small { display: block; font-size: 10px; color: var(--color-text-secondary); line-height: 1.2; }
.cs-badge-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-text-primary); }
.cs-divider { height: 1px; background: var(--color-border); margin: 0 0 24px; }
.cs-waitlist-label { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 14px; }
.cs-waitlist-label strong { color: var(--color-accent); }
.cs-progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-bottom: 8px; overflow: hidden; }
.cs-progress-fill { height: 100%; width: 0%; background: var(--gradient-cta); border-radius: 99px; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.cs-progress-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 20px; display: flex; justify-content: space-between; }
.cs-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.cs-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,152,224,0.4); }
.cs-note { font-size: 12px; color: var(--color-text-secondary); margin-top: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .cs-rocket { animation: none; }
  .cs-card { transition: opacity 0.15s ease; }
  .cs-progress-fill { transition: width 0.3s ease; }
}
@media (max-width: 520px) {
  .cs-card { padding: 40px 24px 32px; }
  .cs-title { font-size: 22px; }
  .cs-badges { flex-direction: column; align-items: center; }
  .cs-badge { min-width: 200px; justify-content: center; }
}

/* ─── W24: HERO PADDING DIRECT OVERRIDE ─── */
/* Root cause: .hero-inner padding shorthand zeroed left/right, overriding .container padding.
   These end-of-file rules cannot be overridden by earlier specificity. */
.hero-section .container.hero-inner,
.hero-section .hero-inner {
  padding-left: clamp(20px, 5vw, 80px) !important;
  padding-right: clamp(20px, 5vw, 80px) !important;
}

.hero-content {
  padding-left: 0 !important;
  padding-right: clamp(16px, 2vw, 48px) !important;
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-section .container.hero-inner,
  .hero-section .hero-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .hero-content {
    padding-right: 0 !important;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-section .container.hero-inner,
  .hero-section .hero-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   W15 MOBILE RESPONSIVE — PART A
   xs: 479px  sm: 639px  md: 767px  lg: 1023px
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* SECTION 1 — GLOBAL & CONTAINER */
@media (max-width: 1023px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
    max-width: 100%;
  }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

@media (max-width: 639px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 20px; }
}

@media (max-width: 479px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

/* SECTION 2 — NAVBAR */
@media (max-width: 1023px) {
  .nav-links { display: none !important; }
  .nav-contact { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-cta { padding: 8px 16px; font-size: 14px; }
  .nav-inner { gap: 12px; }
}

@media (max-width: 639px) {
  .nav-cta { display: none !important; }
}

/* SECTION 3 — HERO SECTION */
@media (max-width: 1023px) {
  section.hero, .hero, .hero-section {
    padding-left: 28px !important;
    padding-right: 28px !important;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
    text-align: center;
  }
  .hero-content {
    max-width: 100% !important;
    padding-right: 0 !important;
  }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .hero-social-proof { text-align: center; }
  .hero-visual { order: 2; justify-content: center; }
  .hero-phone { width: 240px; height: 480px; margin: 0 auto; }
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 250px; height: 250px; }
  .hero-orb-3 { width: 200px; height: 200px; }
  .scroll-indicator { display: none; }
}

@media (max-width: 639px) {
  section.hero, .hero, .hero-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero-phone { width: 200px; height: 400px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas a { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 479px) {
  section.hero, .hero, .hero-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* SECTION 4 — STATS BAR */
@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }
}

@media (max-width: 479px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .stat-number { font-size: 28px; }
  .trust-badges { gap: 8px; }
  .trust-badge { font-size: 11px; padding: 4px 10px; }
}

/* SECTION 5 — PROBLEM CARDS */
@media (max-width: 767px) {
  .problem-section .grid-3 { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 639px) {
  .problem-section .grid-3 { grid-template-columns: 1fr !important; }
  .problem-card { padding: 20px; }
  .problem-solution { font-size: 26px; }
}

/* SECTION 6 — FEATURES SHOWCASE */
@media (max-width: 1023px) {
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 32px 0;
  }
  .feature-row:nth-child(even) .feature-mock { order: 0 !important; }
  .feature-copy { max-width: 100%; }
  .feature-mock { min-height: 200px; }
}

@media (max-width: 639px) {
  .feature-row { padding: 24px 0; gap: 20px; }
  .feature-tags { gap: 6px; }
  .feature-tag { font-size: 11px; padding: 3px 10px; }
}

/* SECTION 7 — HOW IT WORKS */
@media (max-width: 767px) {
  .steps-row {
    flex-direction: column !important;
    align-items: center;
    gap: 0;
  }
  .step-connector {
    width: 2px !important;
    height: 40px !important;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary)) !important;
  }
  .step-card { padding: 24px 16px; max-width: 320px; width: 100%; }
}


/* SECTION 9 — PRICING */
@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card.pro { margin-top: 8px; }
  .currency-selector { gap: 8px; }
  .currency-btn { padding: 5px 12px; font-size: 12px; }
}

@media (max-width: 479px) {
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 24px 20px; }
  .price-amount { font-size: 36px; }
  .pricing-toggle { max-width: 240px; }
}

/* SECTION 10 — TESTIMONIALS */
@media (max-width: 1023px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
}

@media (max-width: 639px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .testimonial-card { padding: 20px; }
  .testimonial-card:hover { transform: none; }
}

/* SECTION 11 — FAQ ACCORDION */
@media (max-width: 767px) {
  .faq-container { max-width: 100%; padding: 0; }
  .faq-question { font-size: 15px; padding: 16px 0; }
  .faq-answer p { font-size: 14px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   W16 MOBILE RESPONSIVE — PART B
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* SECTION 12 — WAITLIST / CTA SECTION */
@media (max-width: 639px) {
  .app-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .app-btn { width: 100%; max-width: 260px; justify-content: center; min-width: unset; }
  .waitlist-form-wrap { max-width: 100%; }
  .form-row { flex-direction: column; }
  .form-row input { min-width: unset; width: 100%; }
  .form-row button[type="submit"] { width: 100%; }
  .social-links { gap: 12px; }
}

/* SECTION 13 — FOOTER */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom { font-size: 12px; }
}

/* SECTION 14 — LEGAL PAGES */
@media (max-width: 1023px) {
  .legal-page {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .legal-toc { display: none; }
  .legal-content section { scroll-margin-top: calc(var(--nav-height) + 12px); }
}

/* SECTION 15 — BLOG & ARTICLE PAGES */
@media (max-width: 767px) {
  .article-container { padding: 0 20px; }
  .article-title { font-size: 28px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .article-cta-box { padding: 24px 20px; }
  .article-cta-box h3 { font-size: 20px; }
}

@media (max-width: 479px) {
  .article-title { font-size: 24px; }
  .article-meta { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* SECTION 16 — COMPANY PAGES */
@media (max-width: 767px) {
  .role-card, .contact-card, .value-card { padding: 20px; }
  .careers-grid, .contact-grid, .values-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .blog-card { padding: 20px; }
}

/* SECTION 17 — COMING SOON MODAL */
@media (max-width: 479px) {
  .cs-card { padding: 36px 16px 28px; border-radius: 18px; }
  .cs-title { font-size: 20px; }
  .cs-subtitle { font-size: 14px; }
  .cs-rocket { font-size: 40px; }
  .cs-badges { flex-direction: column; align-items: center; }
  .cs-badge { min-width: 200px; justify-content: center; }
  .cs-cta { font-size: 15px; padding: 12px; }
}

/* SECTION 18 — SCROLL PROGRESS */
@media (max-width: 639px) {
  #scroll-progress { height: 2px; }
}

/* SECTION 19 — 404 PAGE */
@media (max-width: 639px) {
  .error-number { font-size: 80px; }
  .error-container h1 { font-size: 22px; }
  .error-actions { flex-direction: column; align-items: center; gap: 12px; }
  .error-actions a { width: 100%; max-width: 260px; justify-content: center; }
}

/* SECTION 20 — TOUCH & TAP TARGETS */
@media (max-width: 1023px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .nav-cta,
  .plan-cta,
  .cs-cta {
    min-height: 44px;
    min-width: 44px;
  }
  .faq-question { min-height: 44px; }
  .carousel-arrow { min-height: 44px; min-width: 44px; }
  .social-link { min-height: 44px; min-width: 44px; }
  .hamburger { min-height: 44px; min-width: 44px; }
}

/* SECTION 21 — TYPOGRAPHY FLUID SCALE */
@media (max-width: 1023px) {
  .hero h1 { font-size: clamp(28px, 6vw, 52px); }
  .section-sub { font-size: 16px; }
  .stat-number { font-size: clamp(24px, 5vw, 40px); }
  .price-amount { font-size: clamp(32px, 6vw, 48px); }
}


/* ─────────────────────────────────────
   INNER PAGE TOP SPACING — MOBILE FIX
   Affects: legal pages, article pages, company pages, 404
   Root cause: calc(--nav-height + --space-xxl) = 72px + 64px = 136px on mobile.
   Fix: override to 16px of breathing room below nav on mobile.
───────────────────────────────────────── */

@media (max-width: 767px) {

  /* Legal pages: privacy.html, terms.html */
  .legal-page {
    padding-top: calc(var(--nav-height) + 16px) !important;
  }

  /* Blog article pages */
  .article-page {
    padding-top: calc(var(--nav-height) + 16px) !important;
  }

  /* Company inner pages: about, careers, press, contact */
  .inner-page,
  .about-page,
  .careers-page,
  .press-page,
  .contact-page,
  .blog-index-page {
    padding-top: calc(var(--nav-height) + 16px) !important;
  }

  /* Generic fallback — any <main> that directly follows the nav
     and has a padding-top larger than nav+16px */
  main[class*="-page"] {
    padding-top: calc(var(--nav-height) + 16px) !important;
  }

  /* 404 error page */
  .error-page {
    padding-top: calc(var(--nav-height) + 24px) !important;
  }

  /* If inner pages use .section as their first child with
     padding from --space-section, reduce that top padding too */
  .legal-page > .container > .section:first-child,
  .article-page > .container > .section:first-child,
  .inner-page > .container > .section:first-child {
    padding-top: 0 !important;
  }

  /* Page header/hero on company pages — reduce top gap */
  .page-header,
  .page-hero,
  .inner-header {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* Article header inside article-page */
  .article-header {
    margin-bottom: 20px !important;
  }

  /* Legal content first section — remove extra top gap */
  .legal-content > section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 479px) {
  .legal-page,
  .article-page,
  main[class*="-page"] {
    padding-top: calc(var(--nav-height) + 12px) !important;
  }
  .error-page {
    padding-top: calc(var(--nav-height) + 16px) !important;
  }
}

/* ─────────────────────────────────────
   ADDITIONAL: ensure the main homepage
   inner sections don't over-pad either
───────────────────────────────────────── */

@media (max-width: 767px) {
  .section:first-of-type {
    padding-top: 40px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   W23 — ELITE PRICING TOGGLE
   Sliding pill + digit roll + annual savings badge
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* --- Sliding Pill Toggle --- */
.pricing-toggle {
  position: relative;
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  max-width: 280px;
  margin: 0 auto var(--space-lg);
  gap: 0;
}

.pricing-toggle .toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 2px 8px rgba(15, 76, 117, 0.4);
}

.pricing-toggle .toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 8px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.pricing-toggle .toggle-btn.active {
  color: #ffffff;
  background: transparent;
}

.pricing-toggle .toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.badge-save {
  display: inline-block;
  background: rgba(0, 214, 143, 0.18);
  color: #00d68f;
  font-size: 0.7em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

.toggle-btn.active .badge-save {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- Digit Roll Animation --- */
.price-digit-wrap {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15em;
  vertical-align: bottom;
  position: relative;
}

.price-digit-inner {
  display: block;
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
  will-change: transform;
}

.price-static {
  display: inline-block;
  vertical-align: bottom;
}

.price-symbol {
  display: inline-block;
  vertical-align: bottom;
  margin-right: 1px;
}

.price-amount {
  display: inline-block;
}

.plan-price {
  position: relative;
}

/* --- Annual Savings Badge --- */
.annual-savings-badge {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease 0.05s, margin-top 0.25s ease;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00d68f;
  text-align: center;
  margin-top: 0;
}

.annual-savings-badge.visible {
  max-height: 40px;
  opacity: 1;
  margin-top: 8px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .pricing-toggle .toggle-pill {
    transition: none;
  }
  .price-digit-inner {
    transition: none;
  }
  .annual-savings-badge {
    transition: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   W24 — GRIEVANCE OFFICER CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.grievance-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}

.grievance-card p {
  margin: 4px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.grievance-card strong {
  color: var(--color-text-primary);
}

.grievance-contact {
  border-left: 4px solid var(--color-secondary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   W24 — FINANCIAL DISCLAIMER RIBBON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.disclaimer-ribbon {
  background: rgba(27, 152, 224, 0.06);
  border-bottom: 1px solid rgba(27, 152, 224, 0.15);
  padding: 8px var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  position: relative;
  z-index: 40;
  margin-top: var(--nav-height);
}

.disclaimer-ribbon p {
  margin: 0;
  flex: 1;
}

.disclaimer-ribbon strong {
  color: var(--color-text-primary);
}

.disclaimer-ribbon .disclaimer-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.disclaimer-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

.disclaimer-ribbon {
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  max-height: 120px;
  overflow: hidden;
}

.disclaimer-ribbon.dismissed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.disclaimer-close {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(27,152,224,0.25);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin-left: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
  align-self: center;
}

.disclaimer-close:hover {
  background: rgba(27,152,224,0.12);
  color: var(--color-text-primary);
}

.hero {
  margin-top: 0;
  padding-top: var(--space-xxl);
}

@media (max-width: 639px) {
  .disclaimer-ribbon {
    padding: 8px 16px;
    font-size: 11px;
  }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER DISCLAIMER
═══════════════════════════════════════════════════════════ */
.footer-disclaimer {
  font-size: 11px;
  color: var(--color-text-muted, #6B7280);
  margin-top: 6px;
  line-height: 1.5;
}

.footer-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SIMPLE LEGAL PAGE (single-column, no sidebar)
═══════════════════════════════════════════════════════════ */
.simple-legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + var(--space-xxl));
  padding-bottom: var(--space-section);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.simple-legal-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.simple-legal-page .legal-effective {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xxl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.simple-legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.simple-legal-page p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.simple-legal-page ul {
  padding-left: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.simple-legal-page li {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.simple-legal-page strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.simple-legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.simple-legal-page section {
  margin-bottom: var(--space-xxl);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

@media (max-width: 767px) {
  .simple-legal-page {
    padding-top: calc(var(--nav-height) + 16px) !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .simple-legal-page h1 {
    font-size: 26px;
  }

  .simple-legal-page h2 {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════
   COMING SOON / ROADMAP SECTION
═══════════════════════════════════════════════════════════ */
.coming-soon-section {
  background: rgba(15, 76, 117, 0.04);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.cs-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cs-feature-card:hover {
  border-color: rgba(27, 152, 224, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cs-feature-icon {
  font-size: 36px;
  margin-bottom: var(--space-md);
  display: block;
}

.cs-feature-badge {
  display: inline-block;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.25);
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.cs-feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.cs-feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.coming-soon-note {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.coming-soon-note strong {
  color: var(--color-text-primary);
}

.coming-soon-link {
  display: inline-block;
  margin-left: 8px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.coming-soon-link:hover { opacity: 0.8; }

@media (max-width: 1023px) {
  .coming-soon-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .coming-soon-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .coming-soon-note { font-size: 14px; }
  .coming-soon-link { display: block; margin: 8px 0 0; }
}

/* ═══════════════════════════════════════════════════════════
   WAITLIST REFERRAL NOTE
═══════════════════════════════════════════════════════════ */
.waitlist-referral-note {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  background: rgba(0, 214, 143, 0.06);
  border: 1px solid rgba(0, 214, 143, 0.15);
  border-radius: var(--radius-md);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-referral-note strong {
  color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   COVERFLOW CAROUSEL — COMPLETE RESPONSIVE RULES
   Single authoritative block. Do not add coverflow rules elsewhere.
   Breakpoints:
     ≤ 1199px  tablet-large & below  → single-slide crossfade
     ≤  767px  phone                 → smaller slide dimensions
     ≤  479px  small phone           → smallest slide dimensions
   Desktop (≥ 1200px): full 3D perspective coverflow
═══════════════════════════════════════════════════════════════ */

/* ── TABLET-LARGE AND BELOW (≤ 1199px): SINGLE SLIDE CROSSFADE ── */
@media (max-width: 1199px) {

  .coverflow-stage {
    perspective: none !important;
    -webkit-perspective: none !important;
    height: auto !important;
    min-height: 540px;
    overflow: hidden !important;
  }

  .coverflow-slide {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 300px !important;
    height: 520px !important;
    margin-top: -260px !important;
    margin-left: -150px !important;
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease !important;
    border-radius: 24px !important;
    box-shadow: none !important;
  }

  .coverflow-slide.cf-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
  }

  .coverflow-outer {
    padding: 0 20px !important;
    gap: 16px !important;
    justify-content: center !important;
  }

  .coverflow-nav {
    z-index: 20;
    flex-shrink: 0;
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── PHONE (≤ 767px): SMALLER DIMENSIONS ── */
@media (max-width: 767px) {

  .coverflow-stage {
    min-height: 500px;
  }

  .coverflow-slide {
    width: 270px !important;
    height: 490px !important;
    margin-top: -245px !important;
    margin-left: -135px !important;
  }
}

/* ── SMALL PHONE (≤ 479px): SMALLEST DIMENSIONS ── */
@media (max-width: 479px) {

  .coverflow-stage {
    min-height: 460px;
  }

  .coverflow-slide {
    width: 240px !important;
    height: 450px !important;
    margin-top: -225px !important;
    margin-left: -120px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   END COVERFLOW RESPONSIVE RULES
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   FEEDBACK PAGE — MODERN REDESIGN
═══════════════════════════════════════════ */

/* Page wrapper */
.feedback-page {
  padding-top: calc(var(--nav-height) + var(--space-xxl));
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

/* ── HERO HEADER ── */
.feedback-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xxxl);
}

.feedback-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 152, 224, 0.1);
  border: 1px solid rgba(27, 152, 224, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.feedback-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #F9FAFB 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feedback-hero p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ── TYPE SELECTOR CARDS ── */
.feedback-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 640px;
  margin: 0 auto var(--space-xxl);
}

.feedback-type-card {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}

.feedback-type-card:hover {
  border-color: rgba(27, 152, 224, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feedback-type-card.active {
  border-color: var(--color-secondary);
  background: rgba(27, 152, 224, 0.06);
  box-shadow: 0 0 0 1px var(--color-secondary), 0 0 24px rgba(27, 152, 224, 0.15);
}

.feedback-type-card.active-accent {
  border-color: var(--color-accent);
  background: rgba(0, 214, 143, 0.06);
  box-shadow: 0 0 0 1px var(--color-accent), 0 0 24px rgba(0, 214, 143, 0.15);
}

.feedback-type-icon {
  font-size: 28px;
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.feedback-type-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.feedback-type-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.feedback-type-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.feedback-type-card.active .feedback-type-check,
.feedback-type-card.active-accent .feedback-type-check {
  opacity: 1;
  transform: scale(1);
}

.feedback-type-card.active-accent .feedback-type-check {
  background: linear-gradient(135deg, var(--color-accent), #1B98E0);
}

/* ── FORM PANELS ── */
.feedback-panels {
  max-width: 640px;
  margin: 0 auto;
}

.feedback-panel {
  display: none;
}

.feedback-panel.active {
  display: block;
  animation: feedbackSlideUp 0.3s ease forwards;
}

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

.feedback-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl);
  position: relative;
  overflow: hidden;
}

.feedback-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
}

.feedback-panel[data-panel="feature"] .feedback-form-card::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.feedback-form-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.feedback-form-card .form-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* ── FLOATING LABEL FIELDS ── */
.ff-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.ff-group label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: all var(--transition-fast);
  background: transparent;
  padding: 0 4px;
  z-index: 1;
}

.ff-group input,
.ff-group textarea,
.ff-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 16px 10px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.ff-group textarea {
  min-height: 100px;
  padding-top: 28px;
}

.ff-group input:focus,
.ff-group textarea:focus,
.ff-group select:focus {
  border-color: var(--color-secondary);
  background: rgba(27, 152, 224, 0.04);
  box-shadow: 0 0 0 3px rgba(27, 152, 224, 0.12);
}

.ff-group input:focus + label,
.ff-group textarea:focus + label,
.ff-group select:focus + label,
.ff-group input:not(:placeholder-shown) + label,
.ff-group textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-group input::placeholder,
.ff-group textarea::placeholder {
  color: transparent;
}

.ff-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 6px;
  padding-left: 4px;
}

/* ── SEVERITY PILLS ── */
.severity-group {
  margin-bottom: var(--space-lg);
}

.severity-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  display: block;
}

.severity-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.severity-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.severity-pill:hover { border-color: rgba(255,255,255,0.2); color: var(--color-text-primary); }
.severity-pill[data-sev="low"].active    { border-color: var(--color-accent); color: var(--color-accent); background: rgba(0,214,143,0.08); }
.severity-pill[data-sev="medium"].active { border-color: #F59E0B; color: #F59E0B; background: rgba(245,158,11,0.08); }
.severity-pill[data-sev="high"].active   { border-color: #EF4444; color: #EF4444; background: rgba(239,68,68,0.08); }

/* ── SUBMIT BUTTON ── */
.feedback-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-base);
  margin-top: var(--space-lg);
}

.feedback-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(27,152,224,0.35); }
.feedback-submit:active { transform: translateY(0); }

.feedback-panel[data-panel="feature"] .feedback-submit {
  background: linear-gradient(90deg, #0a9e6e, var(--color-accent));
}

/* ── WHAT HAPPENS NEXT TIMELINE ── */
.feedback-timeline {
  max-width: 640px;
  margin: var(--space-xxxl) auto 0;
}

.feedback-timeline h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-bottom: var(--space-xl);
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.timeline-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

.timeline-tag.blue  { background: rgba(27,152,224,0.15); color: var(--color-secondary); }
.timeline-tag.green { background: rgba(0,214,143,0.15);  color: var(--color-accent); }
.timeline-tag.gray  { background: rgba(156,163,175,0.15); color: var(--color-text-secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .feedback-page { padding-top: calc(var(--nav-height) + 16px); }
  .feedback-type-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .feedback-type-card { padding: var(--space-lg); }
  .feedback-type-icon { font-size: 22px; }
  .feedback-type-card h3 { font-size: 14px; }
  .feedback-type-card p { display: none; }
  .feedback-form-card { padding: var(--space-xl); border-radius: var(--radius-lg); }
}

@media (max-width: 479px) {
  .feedback-type-grid { grid-template-columns: 1fr 1fr; }
  .severity-pills { gap: 6px; }
  .severity-pill { padding: 5px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════
   END FEEDBACK PAGE STYLES
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   CONTACT SUCCESS BANNER
═══════════════════════════════════════════ */
.contact-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--color-text-primary);
  font-size: 15px;
  margin-bottom: var(--space-xxl);
}
.contact-success-banner[hidden] { display: none; }

/* ═══════════════════════════════════════════
   FEEDBACK FORM SUCCESS / ERROR BANNERS (W39)
═══════════════════════════════════════════ */
.feedback-success, .feedback-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 15px;
  margin-top: var(--space-lg);
}
.feedback-success { background: rgba(0,214,143,0.08); border: 1px solid rgba(0,214,143,0.25); }
.feedback-error   { background: rgba(255,77,77,0.08);  border: 1px solid rgba(255,77,77,0.25); }
.feedback-success[hidden], .feedback-error[hidden] { display: none; }

/* ══ 404 PAGE REDESIGN (W40) ═════════════════════════════ */

.error-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: orb-float 8s ease-in-out infinite;
}
.error-orb-1 {
  width: 400px; height: 400px;
  background: var(--color-secondary);
  top: 5%; left: -10%;
}
.error-orb-2 {
  width: 300px; height: 300px;
  background: var(--color-accent);
  bottom: 10%; right: -8%;
  animation-delay: 4s;
}

.error-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-xl);
}

.error-digit {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: digit-flicker 6s ease-in-out infinite;
}

.error-digit-zero {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  animation-delay: 1.5s;
}

@keyframes digit-flicker {
  0%, 90%, 100% { opacity: 1; transform: none; }
  92%  { opacity: 0.4; transform: translateX(-2px); }
  94%  { opacity: 1;   transform: translateX(2px); }
  96%  { opacity: 0.6; transform: none; }
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27,152,224,0.1);
  border: 1px solid rgba(27,152,224,0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.error-container h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.error-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 420px;
  margin: 0 auto var(--space-xxl);
  line-height: 1.7;
}

.error-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.error-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
}

.error-nav-card:hover {
  border-color: rgba(27,152,224,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.enc-icon { font-size: 28px; line-height: 1; }

.enc-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.enc-sub {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.error-footer-note {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: var(--space-xl);
}

.error-footer-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .error-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .error-page { padding-top: calc(var(--nav-height) + 24px); }
}

@media (max-width: 479px) {
  .error-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .error-nav-card { padding: var(--space-md); }
  .enc-sub { display: none; }
}

/* ══ END 404 REDESIGN ═══════════════════════════════════ */

/* ══ SCROLL PROGRESS RING ════════════════════════════════
   Circular progress indicator + scroll-to-top button.
   SVG arc fills clockwise as user scrolls down.
   Appears after 15% scroll, fades out at top.
═══════════════════════════════════════════════════════ */

#buxiq-progress-ring {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#buxiq-progress-ring.ring-show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

#buxiq-progress-ring:hover { transform: scale(1.08) translateY(0); }
#buxiq-progress-ring:active { transform: scale(0.96) translateY(0); }
#buxiq-progress-ring:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 50%; }

/* Ring track (background circle) */
#buxiq-progress-ring .ring-track {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: filter 0.2s ease;
}

#buxiq-progress-ring:hover .ring-track {
  filter: drop-shadow(0 6px 20px rgba(27,152,224,0.3));
}

/* Progress arc (fills as user scrolls) */
#buxiq-progress-ring .ring-progress {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.1s linear;
}

/* Centre icon (arrow up) */
#buxiq-progress-ring .ring-icon {
  fill: var(--color-text-primary);
  transition: fill 0.2s ease, transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

#buxiq-progress-ring:hover .ring-icon {
  fill: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  #buxiq-progress-ring {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #buxiq-progress-ring {
    transition: opacity 0.15s ease;
  }
  #buxiq-progress-ring .ring-progress {
    transition: none;
  }
}

/* ══ END SCROLL PROGRESS RING ════════════════════════════ */
