/* ========================================
   KwikInvoice Website Styles
   Based on Fiona's Wireframe Design
   ======================================== */

/* ─────────────────────────────────────────────────────── */
/* KwikInvoice Colour System v2 — Electric Mzansi ⚡       */
/* Source: docs/BRAND-COLOUR-SYSTEM-v2.md                  */
/* ─────────────────────────────────────────────────────── */

:root {
  /* Brand — The Kwik Six */
  --color-brand-blue:       #2563EB;
  --color-brand-green:      #10B981;
  --color-brand-amber:      #F59E0B;
  --color-brand-night:      #0F172A;
  --color-brand-white:      #FFFFFF;
  --color-brand-charcoal:   #1F2937;

  /* Semantic — Light Mode */
  --color-primary:          #2563EB;
  --color-primary-hover:    #1D4ED8;
  --color-primary-dark:     #60A5FA;
  --color-energy:           #F59E0B;
  --color-energy-hover:     #D97706;
  --color-success:          #10B981;
  --color-success-text:     #047857;
  --color-error:            #EF4444;
  --color-warning:          #F59E0B;
  --color-glow:             #3B82F6;

  /* Surfaces — Light Mode */
  --color-bg:               #FFFFFF;
  --color-surface:          #F9FAFB;
  --color-surface-elevated: #F3F4F6;
  --color-border:           #E5E7EB;
  --color-border-strong:    #6B7280;

  /* Text — Light Mode */
  --color-text-primary:     #1F2937;
  --color-text-secondary:   #6B7280;
  --color-text-disabled:    #9CA3AF;
  --color-text-inverse:     #FFFFFF;

  /* Extended semantic tokens — not in original set */
  --color-info-bg:          #EFF6FF;   /* blue-50 — info surface tint */
  --color-info-border:      #BFDBFE;   /* blue-200 — info border */
  --color-info-text:        #1E40AF;   /* blue-800 — info text on light bg */
  --color-sent-bg:          #DBEAFE;   /* blue-100 — sent status bg */
  --color-warning-bg:       #FEF3C7;   /* amber-100 — warning surface */
  --color-success-bg:       #D1FAE5;   /* emerald-100 — success surface */
  --color-error-bg:         #FEE2E2;   /* red-100 — error surface */
  --color-error-border:     #FCA5A5;   /* red-300 — error border */
  --color-neutral-300:      #D1D5DB;   /* gray-300 */
  --color-neutral-600:      #4B5563;   /* gray-600 — draft/secondary badge */
  --color-neutral-700:      #374151;   /* gray-700 — footer border/bg gradient */

  /* Non-colour design tokens */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.2s ease;
}

[data-theme="dark"] {
  /* Semantic — Dark Mode Overrides */
  --color-primary:          #60A5FA;
  --color-primary-hover:    #93C5FD;
  --color-primary-dark:     #2563EB;
  --color-energy:           #F59E0B;
  --color-energy-hover:     #FBBF24;
  --color-success:          #34D399;
  --color-success-text:     #34D399;
  --color-error:            #EF4444;
  --color-warning:          #F59E0B;
  --color-glow:             #3B82F6;

  /* Surfaces — Dark Mode */
  --color-bg:               #0F172A;
  --color-surface:          #1E293B;
  --color-surface-elevated: #334155;
  --color-border:           #334155;
  --color-border-strong:    #94A3B8;

  /* Text — Dark Mode */
  --color-text-primary:     #FFFFFF;
  --color-text-secondary:   #94A3B8;
  --color-text-disabled:    #475569;
  --color-text-inverse:     #1F2937;

  /* Extended semantic tokens — dark overrides */
  --color-info-bg:          #1E3A5F;   /* dark info surface */
  --color-info-border:      #334155;   /* use slate-700 */
  --color-info-text:        #93C5FD;   /* blue-300 for dark */
  --color-sent-bg:          #1E3A5F;
  --color-warning-bg:       #2D2006;
  --color-success-bg:       #052E16;
  --color-error-bg:         #3B0A0A;
  --color-error-border:     #7F1D1D;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* Header */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo:hover {
  color: var(--color-primary);
}

.logo-image {
  width: 32px;
  height: 32px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  left: 0;
  transition: var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-open .hamburger {
  background: transparent;
}

.nav-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

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

  .main-nav .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .nav-open .nav-list {
    right: 0;
  }

  .main-nav a {
    font-size: 1.125rem;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--color-sent-bg) 100%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Redesign - Story 084 */
.hero-redesign {
  padding: 3rem 0 4rem;
  text-align: left;
  overflow: hidden;
}

.hero-redesign .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hero-redesign .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero-redesign .hero-text {
  flex: 1;
  width: 100%;
  max-width: 560px;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero-redesign .hero-text {
    text-align: left;
  }
}

.hero-redesign h1 {
  font-size: 1.875rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero-redesign h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-redesign h1 {
    font-size: 3.25rem;
  }
}

.hero-redesign .hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.75rem;
}

.hero-redesign .hero-cta {
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.btn-playstore {
  display: inline-block;
  background: transparent;
  padding: 0;
  border: none;
}

.btn-playstore:hover {
  transform: translateY(-2px);
}

.playstore-badge {
  height: 60px;
  width: auto;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-icon {
  font-size: 1.25rem;
}

/* Hero Phone Mockup */
.hero-image {
  flex-shrink: 0;
}

.phone-mockup {
  position: relative;
  width: 280px;
  background: linear-gradient(145deg, var(--color-brand-charcoal) 0%, var(--color-neutral-700) 100%);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-mockup .app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .phone-mockup {
    width: 320px;
  }
}

/* Features Section */
.features {
  background: var(--color-bg);
  padding: 5rem 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--color-surface);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--color-info-bg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* App Preview Section */
.app-preview {
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--color-sent-bg) 100%);
  padding: 5rem 0;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

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

.screenshot-item img {
  width: 160px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .screenshot-item img {
    width: 200px;
  }

  .screenshots-row {
    gap: 2.5rem;
  }
}

.screenshot-caption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  padding: 4rem 2rem;
  border-radius: 16px;
  color: white;
}

.cta-box h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.cta-box .btn-primary {
  background: white;
  color: var(--color-primary);
}

.cta-box .btn-primary:hover {
  background: var(--color-surface-elevated);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Sections */
section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--color-primary);
  font-weight: 600;
}

.card-link:hover {
  text-decoration: underline;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-card time {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.post-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.category-updates {
  background-color: var(--color-info-text);
  color: var(--color-text-inverse);
}

.category-legal {
  background-color: var(--color-neutral-600);
  color: var(--color-text-inverse);
}

.category-tips {
  background-color: var(--color-warning-bg);
  color: var(--color-energy-hover);
}

.category-features {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: var(--color-text-primary);
}

.post-card h3 a:hover {
  color: var(--color-primary);
}

.post-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Page Content */
.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  margin-bottom: 2rem;
}

/* Feature detail cards — features.md */
.feature-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.feature-detail h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.feature-detail p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feature-detail p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .content .feature-detail + .feature-detail {
    margin-top: 0;
  }
}

.content {
  max-width: 75ch;
  line-height: 1.8;
}

.content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content ul, .content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.5rem;
}

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

.content code {
  background-color: var(--color-surface-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

/* Blog Post */
.blog-post {
  padding: 3rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--color-primary);
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.post-content {
  max-width: 75ch;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content ul, .post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* Blog List */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-item time {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.blog-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.blog-item h2 a {
  color: var(--color-text-primary);
}

.blog-item h2 a:hover {
  color: var(--color-primary);
}

.excerpt {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--color-surface);
  text-align: center;
}

.contact a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--color-text-primary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-neutral-300);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-neutral-700);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-text-disabled);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .hero-cta,
  .back-link {
    display: none;
  }
  
  body {
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.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;
}

/* Loading State */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   PRICING SECTION - Story 085
   ======================================== */

.pricing {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--color-surface) 0%, var(--color-bg) 100%);
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h2 {
  font-size: 36px;
  line-height: 42px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.pricing-header .section-subtitle {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.save-badge {
  display: inline-block;
  background: var(--color-energy);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.pricing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-neutral-300);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.pricing-toggle input:checked + .toggle-slider {
  background-color: var(--color-primary);
}

.pricing-toggle input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.pricing-toggle input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Pricing Cards */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .pricing-cards {
    flex-direction: row;
    align-items: stretch;
  }
}

.pricing-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card-free {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-card-pro {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(1);
}

.pricing-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card-pro .tier-name,
.pricing-card-pro .price,
.pricing-card-pro .price-period,
.pricing-card-pro .tier-description,
.pricing-card-pro .annual-equivalent {
  color: white;
}

.pricing-card-pro .checkmark {
  color: var(--color-success);
}

.best-value-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-energy);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-header {
  text-align: center;
  margin-bottom: 32px;
}

.tier-name {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.price-container {
  margin-bottom: 8px;
}

.price {
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
}

.price-period {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  opacity: 0.8;
}

.tier-description {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.pricing-card-pro .tier-description {
  color: rgba(255, 255, 255, 0.9);
}

.annual-equivalent {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.95);
}

/* Features List */
.features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 16px;
  line-height: 24px;
}

.checkmark {
  color: var(--color-success);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.pricing-card-pro .features-list li {
  color: white;
}

/* CTA Buttons */
.btn-full {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.card-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 16px;
}

.pricing-card-pro .card-note {
  color: rgba(255, 255, 255, 0.8);
}

/* Trust Elements */
.pricing-trust {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.pricing-trust p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 24px;
  margin: 4px 0;
}

/* ========================================
   PRICING FAQ SECTION
   ======================================== */

.pricing-faq {
  padding: 80px 0;
  background: white;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 36px;
  line-height: 42px;
  margin-bottom: 48px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .pricing {
    padding: 48px 0;
  }

  .pricing-header h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .pricing-cards {
    margin-bottom: 32px;
  }

  .pricing-card {
    padding: 24px;
  }

  .price {
    font-size: 42px;
    line-height: 48px;
  }

  .pricing-faq {
    padding: 48px 0;
  }

  .pricing-faq h2 {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 32px;
  }
}

/* ── Mobile hero overflow fix ─────────────────────────── */
@media (max-width: 767px) {
  .hero-redesign .hero-content {
    align-items: flex-start;
  }

  .hero-redesign .hero-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-redesign h1,
  .hero h1 {
    font-size: 1.625rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .hero-redesign .hero-subtitle {
    font-size: 0.9375rem;
    max-width: 100%;
  }
}
