/* ============================================
   CREDFLOW LANDING PAGE — style.css
   Clean, Premium, Fully Responsive Design System
   Mobile, Tablet, and Desktop Optimized
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-subtle: #F4F4F6;
  --surface: #FFFFFF;
  --surface-hover: #F8F8FA;
  --surface-card: #F4F4EE;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(0, 0, 0, 0.14);

  --text: #171717;
  --text-sec: #52525B;
  --text-muted: #71717A;

  /* Brand Colors matching Extension UI */
  --blue: #4F46E5;
  --blue-hover: #4338CA;
  --blue-subtle: #EEF2FF;
  
  --claude-blue: #3B82F6;
  --weekly-amber: #D97706;
  --success-green: #10B981;
  --caveman-orange: #EA580C;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1140px;
}

/* Dark Theme Overrides */
body.dark-theme {
  --bg: #0B0C0E;
  --bg-subtle: #121419;
  --surface: #171920;
  --surface-hover: #1F222C;
  --surface-card: #1A1C24;
  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.16);

  --text: #F9FAFB;
  --text-sec: #9CA3AF;
  --text-muted: #6B7280;

  --blue-subtle: rgba(79, 70, 229, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.main-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   ULTRA-MODERN PILL BADGES & TAGS REDESIGN
   ============================================ */

.section-label,
.convert-tag-pill,
.handoff-tag-pill,
.caveman-tag-pill,
.pricing-tag-pill,
.waitlist-tag-pill,
.how-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

/* Core Capabilities Badge */
.section-label, .how-tag-pill {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
}

/* Convert to Markdown Badge */
.convert-tag-pill {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

/* Cross-LLM Handoff Badge */
.handoff-tag-pill {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
}

/* Caveman Mode Badge */
.caveman-tag-pill {
  color: #EA580C;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.22);
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.16;
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-sec);
  max-width: 640px;
  margin-bottom: 52px;
  line-height: 1.6;
}

.center-head {
  text-align: center;
}
.center-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---- NAV & LOGO BADGE (NO GREY BORDER) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

body.dark-theme .nav {
  background: rgba(11, 12, 14, 0.92);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

/* Clean White Badge without any grey border outline */
.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.logo:hover .logo-badge {
  transform: scale(1.08);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 48px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.btn-nav {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.btn-nav:hover {
  opacity: 0.9;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  z-index: 110;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-right: 0;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    width: 100%;
    padding: 8px 0;
  }

  .btn-nav {
    text-align: center;
    width: 100%;
  }
}

/* PULL-STRING THEME SWITCHER WIDGET — FAR RIGHT CORNER PLACEMENT */
.theme-string-wrapper {
  position: absolute;
  top: 0;
  right: 18px;
  width: 40px;
  height: 200px;
  pointer-events: none;
  z-index: 105;
}

@media (max-width: 900px) {
  .theme-string-wrapper {
    right: 50px;
  }
}

#theme-string-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}

#theme-string-line {
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

#theme-string-handle {
  position: absolute;
  top: 0;
  left: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  z-index: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  touch-action: none;
}

#theme-string-handle.dragging {
  cursor: grabbing;
}

#theme-string-handle svg {
  width: 15px;
  height: 15px;
  color: var(--text);
  pointer-events: none;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--blue);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.svg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- HERO SECTION WITH INTERACTIVE CANVAS ---- */
.hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 0 32px;
  }
}

#dot-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
}

/* TYPEWRITER HERO PILL BADGE */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero-pill {
    font-size: 11px;
    padding: 5px 12px;
  }
}

.hero-pill:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}

.typewriter-text.typing::after {
  content: '|';
  margin-left: 2px;
  color: var(--blue);
  font-weight: 700;
  animation: blinkCursor 0.7s infinite alternate;
}

@keyframes blinkCursor {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success-green);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas a {
    width: 100%;
  }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-trust {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.trust-item svg {
  width: 15px;
  height: 15px;
  color: var(--success-green);
}

/* ---- EXACT CHROME EXTENSION POPUP MOCKUP ---- */
.popup-mockup-frame {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

@media (max-width: 440px) {
  .popup-mockup-frame {
    padding: 12px;
    border-radius: 12px;
  }
}

/* Extension Header */
.ext-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.ext-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.ext-live-badge {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 100px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Card Style inside Extension */
.ext-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.ext-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ext-percent-session {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #3B82F6;
}

.ext-percent-weekly {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #D97706;
}

.ext-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ext-bar-fill-blue {
  height: 100%;
  width: 40%;
  background: #3B82F6;
  border-radius: 100px;
}

.ext-bar-fill-amber {
  height: 100%;
  width: 1%;
  background: #D97706;
  border-radius: 100px;
}

.ext-resets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.ext-reset-pill-purple {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #4F46E5;
  background: var(--blue-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.ext-reset-pill-amber {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  background: rgba(217, 119, 6, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Insight Banner */
.ext-insight-banner {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.4;
}

/* Handoff Section inside Popup */
.ext-handoff-card {
  background: var(--blue-subtle);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 12px;
  padding: 14px;
}

.ext-handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.ext-handoff-sub {
  font-size: 11px;
  color: var(--text-sec);
  line-height: 1.4;
  margin-bottom: 12px;
}

.ext-handoff-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ext-handoff-btn {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ChatGPT Auto Row */
.ext-chatgpt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ext-chatgpt-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
}

.ext-chatgpt-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.ext-convert-btn {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---- HOW IT WORKS SECTION ---- */
.how-section {
  padding: 72px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.how-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.how-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.how-num {
  font-size: 42px;
  font-weight: 300;
  color: #818CF8;
  line-height: 1;
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.how-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.how-card p {
  font-size: 13.5px;
  color: var(--text-sec);
  line-height: 1.6;
}

.how-arrow {
  font-size: 22px;
  color: var(--text-muted);
  user-select: none;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .how-arrow {
    display: none;
  }
}

/* ---- PROBLEM & CORE CAPABILITIES SECTION ---- */
.problem-section {
  padding: 88px 0;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .problem-section {
    padding: 52px 0;
  }
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.problem-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.08);
}

/* ICON BOX ENHANCEMENT */
.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.problem-card:hover .card-icon-box {
  transform: scale(1.05);
}

.card-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.problem-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ---- FEATURE 1: CONVERT TO MARKDOWN & "WHY CONVERT TO MARKDOWN?" ---- */
.convert-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .convert-section {
    padding: 48px 0;
  }
}

.why-convert-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.why-convert-title {
  font-size: 15px;
  font-weight: 800;
  color: #0D9488;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-convert-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-convert-item {
  font-size: 13.5px;
  color: var(--text-sec);
  line-height: 1.5;
}

.why-convert-item strong {
  color: var(--text);
  font-weight: 700;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.feature-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 24px;
}

.file-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .file-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.file-type-pill {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
}

/* ---- FEATURE 2: CROSS-LLM HANDOFF ---- */
.handoff-section {
  padding: 80px 0;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .handoff-section {
    padding: 48px 0;
  }
}

.handoff-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.handoff-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.step-badge-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.code-box-preview {
  background: #18181B;
  color: #FAFAFA;
  border-radius: var(--radius);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #27272A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #27272A;
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #A1A1AA;
}

/* ---- FEATURE 3: CAVEMAN MODE (AUTHENTIC CLAUDE INJECTED STATUS BAR DEMO) ---- */
.caveman-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .caveman-section {
    padding: 48px 0;
  }
}

.caveman-box-demo {
  background: #1E1E22;
  color: #F4F4F5;
  border: 1px solid #27272A;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Replica of Claude Composer Input Box */
.claude-composer-replica {
  background: #27272A;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #3F3F46;
  margin-bottom: 12px;
}

.composer-input-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #A1A1AA;
  min-height: 38px;
  transition: color 0.2s ease;
}

.composer-bottom-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: #71717A;
  font-size: 13px;
}

/* CredFlow Injected Status Bar (Replicating Image 4) */
.credflow-injected-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A1A1AA;
  flex-wrap: wrap;
}

.bar-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-track-mini {
  width: 36px;
  height: 4px;
  background: #3F3F46;
  border-radius: 10px;
  overflow: hidden;
  display: inline-block;
}

.bar-fill-mini-blue { width: 40%; height: 100%; background: #3B82F6; }
.bar-fill-mini-amber { width: 1%; height: 100%; background: #D97706; }

/* Interactive Caveman Yellow Pill Toggle Button (Image 4) */
.caveman-pill-btn {
  background: #FACC15;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  border-radius: 100px;
  padding: 4px 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45);
  transition: all 0.2s ease;
  user-select: none;
}

.caveman-pill-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.65);
}

.caveman-pill-btn:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #A1A1AA;
  box-shadow: none;
  font-weight: 600;
}

.instruction-snippet {
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: #FB923C;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  word-break: break-word;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ---- PRICING SECTION ---- */
.pricing-section {
  padding: 80px 0;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 48px 0;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
}

.trial-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.plan-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-sub {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.plan-price-tag span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features-list li {
  font-size: 13.5px;
  color: var(--text-sec);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features-list li.active {
  color: var(--text);
  font-weight: 500;
}

.plan-features-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-active { color: var(--success-green); }
.icon-disabled { color: var(--text-muted); }

.coming-soon-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Feature Matrix Table */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.matrix-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 14px;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table td:first-child {
  font-weight: 600;
  width: 42%;
}

.matrix-table td:not(:first-child) {
  text-align: center;
  width: 19%;
}

.matrix-table svg {
  width: 18px;
  height: 18px;
}

/* ---- SUBTLE / DISCREET TECHNICAL NOTES ACCORDION SECTION ---- */
.subtle-notes-section {
  padding: 40px 0 60px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.subtle-accordion {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.subtle-accordion details {
  padding: 16px 20px;
}

.subtle-accordion summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subtle-accordion summary::-webkit-details-marker {
  display: none;
}

.notes-content-grid {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-sec);
  line-height: 1.5;
}

.note-item-mini strong {
  color: var(--text);
}

/* ---- WAITLIST SECTION ---- */
.waitlist-section {
  padding: 80px 0;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .waitlist-section {
    padding: 48px 0;
  }
}

.waitlist-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

@media (max-width: 520px) {
  .waitlist-box {
    padding: 32px 18px;
  }
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 14px;
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
  }
}

.waitlist-form input[type="email"] {
  flex-grow: 1;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: var(--font-sans);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--blue);
}

.waitlist-note {
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 6px;
  font-weight: 500;
}

.waitlist-note.success { color: var(--success-green); }
.waitlist-note.error { color: var(--caveman-orange); }

.waitlist-fine {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-sec);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
