/* ============================================
   Spending Landing Page — styles.css
   Dark theme, green accent (#85bb65)
   Mobile-first, no framework
   ============================================ */

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

:root {
  --primary: #85bb65;
  --primary-dark: #5e8347;
  --primary-light: #edffe2;
  --primary-lighter: #dbffc4;
  --primary-glow: rgba(133, 187, 101, 0.15);

  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-muted: #1c1c1c;
  --border: #2a2a2a;
  --border-light: #333;

  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);

  --transition: 0.2s ease;
  --container: 1400px;
  --container-narrow: 860px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(133, 187, 101, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-full {
  width: 100%;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(133, 187, 101, 0.2);
  border-radius: 100px;
}

/* --- Text Utilities --- */
.text-primary {
  color: var(--primary);
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.nav-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.nav-logo-full {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-name {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

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

.nav-mobile-link {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.nav-mobile .btn {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-badge {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: -8px;
}

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

.hero-proof-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-proof-text strong {
  color: var(--text);
}

/* ── Phone Mockup ─────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Carousel shell */
.phone-carousel {
  position: relative;
  width: 100%;
}

.phone-slide {
  display: none;
}

.phone-slide--active {
  display: block;
  animation: slideIn 0.35s ease;
}

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

/* Dot indicators */
.phone-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.phone-dot--active {
  background: var(--primary);
  width: 18px;
  border-radius: 3px;
}


.phone-mockup {
  width: 288px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(133, 187, 101, 0.08);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 580px;
}

/* Status bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

/* App top bar — mirrors DashboardHeader */
.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.phone-app-bar-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-app-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.phone-app-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.phone-app-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-icon-svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  display: block;
}

.phone-bell-dot::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

.phone-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(133, 187, 101, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

/* Scrollable body */
.phone-body {
  flex: 1;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Welcome row */
.phone-welcome {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.phone-welcome-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.phone-welcome-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Quick actions — 2-col grid, mirrors QuickActions.tsx */
.phone-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-action-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.phone-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-action-icon--green { background: rgba(133, 187, 101, 0.12); }
.phone-action-icon--red   { background: rgba(239, 68, 68, 0.10); }

.phone-action-svg {
  width: 13px;
  height: 13px;
  display: block;
}

.phone-action-icon--green .phone-action-svg { stroke: var(--primary); }
.phone-action-icon--red   .phone-action-svg { stroke: #ef4444; }

.phone-action-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.phone-action-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Section label */
.phone-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

/* 2×2 stat cards — mirrors DataInsights.tsx */
.phone-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-stat-card--warn {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.04);
}

.phone-stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stat-icon--green  { background: rgba(133, 187, 101, 0.12); }
.phone-stat-icon--red    { background: rgba(239, 68, 68, 0.10); }
.phone-stat-icon--yellow { background: rgba(250, 204, 21, 0.12); }

.phone-stat-svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary);
  display: block;
}

.phone-stat-icon--red .phone-stat-svg   { stroke: #ef4444; }
.phone-stat-svg--yellow                 { stroke: #facc15; }

.phone-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.phone-stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Bottom nav — mirrors NavigationTabs.tsx */
.phone-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
  flex: 1;
}

.phone-nav-item--active {
  color: var(--primary);
}

.phone-nav-svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  display: block;
}

.phone-nav-svg--active {
  stroke: var(--primary);
}

/* Scan button — green rounded-xl square, matches the real app */
.phone-scan-btn {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(133, 187, 101, 0.45);
}

.phone-scan-svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  display: block;
}

/* ── Slide 1: Camera viewfinder ─────────────────────────────────────────── */
.phone-viewfinder {
  flex: 1;
  margin: 10px 14px;
  border-radius: 14px;
  background: #0d1117;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.phone-viewfinder-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Receipt paper silhouette inside viewfinder */
.phone-receipt-paper {
  width: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-receipt-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
}

.phone-receipt-line--wide  { width: 100%; }
.phone-receipt-line--med   { width: 72%; }
.phone-receipt-line--short { width: 48%; }
.phone-receipt-line--bold  { background: rgba(133,187,101,0.55); height: 6px; }

.phone-receipt-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2px 0;
}

/* Corner bracket detection frame */
.phone-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
}

.phone-corner--tl { top: 14px;    left: 14px;    border-top-width: 2.5px; border-left-width: 2.5px;  border-radius: 3px 0 0 0; }
.phone-corner--tr { top: 14px;    right: 14px;   border-top-width: 2.5px; border-right-width: 2.5px; border-radius: 0 3px 0 0; }
.phone-corner--bl { bottom: 34px; left: 14px;    border-bottom-width: 2.5px; border-left-width: 2.5px;  border-radius: 0 0 0 3px; }
.phone-corner--br { bottom: 34px; right: 14px;   border-bottom-width: 2.5px; border-right-width: 2.5px; border-radius: 0 0 3px 0; }

/* Animated scan line */
.phone-scan-line {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanMove 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(133,187,101,0.6);
}

@keyframes scanMove {
  0%   { top: 14px;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 34px); opacity: 0; }
}

/* Label at bottom of viewfinder */
.phone-viewfinder-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--primary);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ── Slide 2: Review screen ──────────────────────────────────────────────── */
.phone-review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.phone-back-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.phone-review-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.phone-review-project {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.phone-body--review {
  gap: 8px;
  padding: 10px 14px 8px;
}

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

.phone-field-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

.phone-field-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(133,187,101,0.1);
  border: 1px solid rgba(133,187,101,0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
}

.phone-field-chip--muted {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-secondary);
}

.phone-items-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.phone-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.phone-items-count {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.phone-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}

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

.phone-item-row--tax {
  background: rgba(250,204,21,0.04);
}

.phone-item-name {
  font-size: 0.62rem;
  color: var(--text-secondary);
  flex: 1;
}

.phone-item-amt {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.phone-tax-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  color: #facc15;
  font-weight: 600;
}

.phone-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.phone-total-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.phone-total-amt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

/* Save button — mirrors the real green Button */
.phone-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Slide 3: Success toast ──────────────────────────────────────────────── */
.phone-toast {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(133,187,101,0.12);
  border: 1px solid rgba(133,187,101,0.25);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--primary);
  animation: toastIn 0.4s ease;
}

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

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .hero-title {
    font-size: 3.5rem;
  }
}


/* ============================================
   Pain Points Section
   ============================================ */
.pain-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.pain-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pain-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(133, 187, 101, 0.3);
  box-shadow: 0 0 24px rgba(133, 187, 101, 0.06);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

/* ============================================
   How It Works Section
   ============================================ */
.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 20px;
}

.step-visual {
  margin-bottom: 20px;
}

.step-illustration {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step 1: Scan illustration */
.scan-frame {
  width: 120px;
  height: 160px;
  position: relative;
}

.scan-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
}

.scan-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

.scan-receipt-preview {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.scan-line {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  animation: scanPulse 2s ease-in-out infinite;
}

.scan-line.short { width: 50%; }
.scan-line.medium { width: 75%; }

@keyframes scanPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Step 2: Extract illustration */
.extract-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extract-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

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

.extract-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.extract-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.extract-value.highlight {
  color: var(--primary);
  font-size: 1.1rem;
}

.extract-value.tag {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
}

/* Step 3: Organize illustration */
.organize-projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.organize-project {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.organize-project.active {
  background: var(--primary-glow);
  border: 1px solid rgba(133, 187, 101, 0.2);
}

.organize-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.organize-amount {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.organize-project.active .organize-amount {
  color: var(--primary);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

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

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(133, 187, 101, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

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

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item[open] {
  border-color: var(--border-light);
}

.faq-question {
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Final CTA Section
   ============================================ */
.cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

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

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ============================================
   Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .pain-card,
  .testimonial-card,
  .step-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .feature-card.visible,
  .pain-card.visible,
  .testimonial-card.visible,
  .step-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
