:root {
  --violet: #8B6DC0;
  --violet-light: #B4A0E8;
  --violet-muted: #a08ad0;
  --teal: #82BFB0;
  --teal-light: #9DCFBF;
  --gradient: linear-gradient(135deg, #B4A0E8, #9BA2E0, #82BFB0);
  --gradient-subtle: linear-gradient(135deg, rgba(180,160,232,0.06), rgba(130,191,176,0.06));
  --text-primary: #1a1a2e;
  --text-body: #3d3d50;
  --text-secondary: #5a5a6e;
  --text-muted: #6b6b78;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --bg-card: #ffffff;
  --border: #e6e6ee;
  --border-hover: #cfc4e8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.10);
  --shadow-xl: 0 32px 64px rgba(0,0,0,0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text-body); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

.wrapper { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.stagger-children > .reveal:nth-child(1),
.stagger-children > .reveal-left:nth-child(1),
.stagger-children > .reveal-right:nth-child(1),
.stagger-children > .reveal-scale:nth-child(1) { transition-delay: 0s; }
.stagger-children > .reveal:nth-child(2),
.stagger-children > .reveal-left:nth-child(2),
.stagger-children > .reveal-right:nth-child(2),
.stagger-children > .reveal-scale:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > .reveal:nth-child(3),
.stagger-children > .reveal-left:nth-child(3),
.stagger-children > .reveal-right:nth-child(3),
.stagger-children > .reveal-scale:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > .reveal:nth-child(4),
.stagger-children > .reveal-left:nth-child(4),
.stagger-children > .reveal-right:nth-child(4),
.stagger-children > .reveal-scale:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > .reveal:nth-child(5),
.stagger-children > .reveal-left:nth-child(5),
.stagger-children > .reveal-right:nth-child(5),
.stagger-children > .reveal-scale:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > .reveal:nth-child(6),
.stagger-children > .reveal-left:nth-child(6),
.stagger-children > .reveal-right:nth-child(6),
.stagger-children > .reveal-scale:nth-child(6) { transition-delay: 0.40s; }
.stagger-children > .reveal:nth-child(7),
.stagger-children > .reveal-left:nth-child(7),
.stagger-children > .reveal-right:nth-child(7),
.stagger-children > .reveal-scale:nth-child(7) { transition-delay: 0.48s; }
.stagger-children > .reveal:nth-child(8),
.stagger-children > .reveal-left:nth-child(8),
.stagger-children > .reveal-right:nth-child(8),
.stagger-children > .reveal-scale:nth-child(8) { transition-delay: 0.56s; }

.section-divider {
  height: 2px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(180,160,232,0.3), rgba(155,162,224,0.3), rgba(130,191,176,0.3), transparent);
}

.feature-card.feature-highlight {
  background: var(--gradient); border-color: transparent;
  box-shadow: 0 8px 32px rgba(139,109,192,0.18);
}
.feature-card.feature-highlight h3,
.feature-card.feature-highlight p { color: #fff; }
.feature-card.feature-highlight .feature-icon {
  background: rgba(255,255,255,0.18); color: #fff;
}
.feature-card.feature-highlight:hover {
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(139,109,192,0.28); transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { transition: opacity 0.3s ease; transform: none; }
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { transition-delay: 0s; }
  .stagger-children > .reveal:nth-child(n),
  .stagger-children > .reveal-left:nth-child(n),
  .stagger-children > .reveal-right:nth-child(n),
  .stagger-children > .reveal-scale:nth-child(n) { transition-delay: 0s; }
  .hero-glow, .ai-glow, .hero-badge-dot, .hero-logo-glow { animation: none !important; }
  .btn:hover, .feature-card:hover, .testimonial-card:hover,
  .pricing-card:hover, .download-card:hover, .ai-card:hover { transform: none !important; }
}

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; max-width: 1140px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 800; letter-spacing: 0.15em;
}
.nav-brand span {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo-wrap {
  position: relative; width: 55px; height: 55px; flex-shrink: 0; border-radius: 13px; overflow: hidden;
}
.nav-logo { width: 100%; height: 100%; display: block; }
.nav-logo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient); mix-blend-mode: color; pointer-events: none;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary); font-size: 15px;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-signin {
  background: var(--gradient); color: #fff !important;
  -webkit-text-fill-color: #fff; padding: 9px 22px; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: all 0.2s !important;
  box-shadow: 0 2px 8px rgba(139,109,192,0.2);
}
.nav-signin:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,109,192,0.3); }
.nav-mobile-actions {
  display: none; align-items: center; gap: 10px;
}
.nav-mobile-cta {
  display: none; padding: 7px 16px; border-radius: var(--radius-sm);
  background: var(--gradient); color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139,109,192,0.2); transition: all 0.2s;
}
.nav-mobile-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,109,192,0.3); }
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-direction: column; justify-content: space-between;
}
.nav-mobile-toggle span {
  display: block; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: 0.2s;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md); font-size: 15px;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(139,109,192,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139,109,192,0.35); }
.btn-secondary { background: var(--bg-alt); color: var(--violet); border: 1px solid var(--border); }
.btn-secondary:hover { background: #eeecf7; border-color: var(--border-hover); }
.btn-outline { background: transparent; color: var(--violet); border: 2px solid var(--violet-light); }
.btn-outline:hover { background: rgba(180,160,232,0.06); }
.btn-white { background: #fff; color: var(--violet); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.hero {
  padding: 88px 0 72px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.10;
  pointer-events: none;
}
.hero-glow-1 {
  width: 560px; height: 560px; background: var(--violet-light); top: -120px; right: -80px;
  animation: heroGlow1 16s ease-in-out infinite;
}
.hero-glow-2 {
  width: 440px; height: 440px; background: var(--teal); bottom: -100px; left: -100px;
  animation: heroGlow2 18s ease-in-out infinite;
}
@keyframes heroGlow1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(60px, 30px) scale(1.08); }
  50%  { transform: translate(-40px, 50px) scale(0.95); }
  75%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroGlow2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-50px, -30px) scale(1.06); }
  50%  { transform: translate(40px, -40px) scale(0.96); }
  75%  { transform: translate(-30px, 25px) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-content {
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  position: relative; z-index: 1; text-align: center;
}
.hero-text { flex: 1; }
.hero-text-centered { display: flex; flex-direction: column; align-items: center; }
.hero-visual-centered { width: 100%; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 16px; }
.hero-brand-text {
  font-size: 32px; font-weight: 800; letter-spacing: 0.45em;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-brand-tagline {
  font-size: 16px; color: var(--text-muted); font-weight: 400;
}
.hero-rotating {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-rotating.out {
  opacity: 0;
  transform: translateY(-14px);
}
.hero-rotating.pre-in {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}
.market-switcher {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 24px; padding: 4px; margin-bottom: 22px;
}
.market-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 20px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); background: transparent;
  transition: all 0.18s ease; font-family: inherit;
}
.market-pill:hover { color: var(--text-primary); background: rgba(180,160,232,0.06); }
.market-pill.active {
  background: #fff; color: var(--violet);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 20px;
  background: rgba(180,160,232,0.08); color: var(--violet);
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
  border: 1px solid rgba(180,160,232,0.12);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 22px; letter-spacing: -0.8px;
  text-align: center;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-secondary); max-width: 560px;
  margin-bottom: 36px; line-height: 1.7; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.hero-trust-item svg { color: var(--teal); flex-shrink: 0; }

.hero-visual { flex-shrink: 0; }

.hero-logo-anim {
  position: relative; width: 210px; height: 237px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-container {
  position: relative; width: 100%; height: 100%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-anim-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: contain; display: block;
  z-index: 1;
}
.hero-logo-svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2; mix-blend-mode: color;
}
.hero-logo-anim-img.hidden { display: none; }

.social-proof {
  padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.social-proof-inner {
  display: flex; justify-content: center; align-items: center; gap: 48px;
}
.social-divider { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--border), transparent); }
.social-stat { text-align: center; }
.social-stat-number {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.social-stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; max-width: 170px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  background: rgba(180,160,232,0.08); color: var(--violet);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 18px; border: 1px solid rgba(180,160,232,0.10);
}
.section-title {
  font-size: 38px; font-weight: 800; color: var(--text-primary);
  margin-bottom: 14px; letter-spacing: -0.4px; line-height: 1.18;
}
.section-subtitle {
  font-size: 17px; color: var(--text-secondary); max-width: 520px;
  margin: 0 auto; line-height: 1.65;
}

.pain-points {
  padding: 96px 0;
  background: linear-gradient(180deg, rgba(220,100,100,0.02) 0%, rgba(180,160,232,0.03) 50%, rgba(130,191,176,0.02) 100%);
}
.comparison-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comparison-header {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  margin-bottom: 8px;
  text-align: center;
}
.comparison-header-spacer { display: block; }
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}
.comparison-row > .comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary, #999);
  opacity: 0.4;
}
.comparison-card {
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.comparison-card.card-before {
  background: rgba(220, 100, 100, 0.03);
  border: 1px solid rgba(220, 100, 100, 0.1);
}
.comparison-card.card-after {
  background: rgba(94, 148, 120, 0.04);
  border: 1px solid rgba(94, 148, 120, 0.12);
}
.phase-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.phase-before {
  background: rgba(220, 100, 100, 0.08);
  color: #DC6464;
  border: 1px solid rgba(220, 100, 100, 0.15);
}
.phase-after {
  background: rgba(94, 148, 120, 0.1);
  color: #5E9478;
  border: 1px solid rgba(94, 148, 120, 0.2);
}

.timeline-node {
  position: relative;
}
.timeline-content {
  padding-bottom: 4px;
}
.timeline-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-node .timeline-icon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.timeline-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.timeline-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.solution-node .timeline-content h3 {
  color: var(--accent);
}
.solution-node .timeline-content p {
  color: var(--text-primary);
  opacity: 0.85;
}

.timeline-scene {
  margin-top: 10px;
  border-radius: 10px;
  padding: 4px 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  pointer-events: none;
}
.timeline-scene svg { width: 100%; height: auto; }
.scene-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  max-height: 200px;
}
.timeline-node.visible .timeline-scene {
  opacity: 1;
  transform: translateY(0);
}
.scene-before { background: rgba(220, 100, 100, 0.04); border: 1px solid rgba(220, 100, 100, 0.1); }
.scene-after { background: rgba(94, 148, 120, 0.04); border: 1px solid rgba(94, 148, 120, 0.1); }

.app-tour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-preview {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(130,191,176,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.tour-slides { position: relative; width: 100%; height: 100%; }
.tour-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
}
.tour-slide.active { opacity: 1; }
.tour-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tour-dots { display: flex; gap: 5px; }
.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.tour-dot.active {
  background: var(--violet);
  width: 16px;
  border-radius: 3px;
}
.tour-dot:hover { background: var(--violet-muted); }
.tour-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
  min-height: 1em;
}

@keyframes sceneReceiptDrop {
  0% { transform: translateY(-15px) rotate(0deg); opacity: 0; }
  70% { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.scene-receipt { opacity: 0; }
.timeline-node.visible .sr1 { animation: sceneReceiptDrop 0.5s ease-out 0.3s both; }
.timeline-node.visible .sr2 { animation: sceneReceiptDrop 0.5s ease-out 0.5s both; }
.timeline-node.visible .sr3 { animation: sceneReceiptDrop 0.5s ease-out 0.7s both; }

@keyframes stressPulse {
  0% { r: 0; fill-opacity: 0; }
  50% { r: 8; fill-opacity: 0.15; }
  100% { r: 12; fill-opacity: 0; }
}
.timeline-node.visible .scene-stress-mark { animation: stressPulse 2s ease-in-out 1s infinite; }
.timeline-node.visible .sm2 { animation-delay: 1.5s; }

@keyframes questionFade {
  0%, 40% { fill-opacity: 0; transform: translateY(4px); }
  50% { fill-opacity: 0.35; transform: translateY(0); }
  80% { fill-opacity: 0.35; }
  100% { fill-opacity: 0; transform: translateY(-2px); }
}
.timeline-node.visible .scene-question { animation: questionFade 3s ease-in-out 0.8s infinite; }
.timeline-node.visible .sq2 { animation-delay: 1.3s; }
.timeline-node.visible .sq3 { animation-delay: 1.8s; }

@keyframes billStack {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.timeline-node.visible .scene-bill { animation: billStack 2.5s ease-in-out infinite; }
.timeline-node.visible .bill-2 { animation-delay: 0.3s; }
.timeline-node.visible .bill-3 { animation-delay: 0.6s; }
@keyframes priceReveal {
  0%, 30% { fill-opacity: 0; }
  50% { fill-opacity: 0.5; }
  70% { fill-opacity: 0.5; }
  100% { fill-opacity: 0; }
}
.timeline-node.visible .scene-price-tag { animation: priceReveal 4s ease-in-out 1s infinite; }

@keyframes sceneDrainBob {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(4px); opacity: 0.5; }
}
.timeline-node.visible .scene-drain { animation: sceneDrainBob 1.8s ease-in-out 0.5s infinite; }

@keyframes sceneClockTick {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.timeline-node.visible .scene-clock-minute {
  transform-origin: 65px 42px;
  animation: sceneClockTick 3s linear 0.5s infinite;
}
.timeline-node.visible .scene-clock-hour {
  transform-origin: 65px 42px;
  animation: sceneClockTick 18s linear 0.5s infinite;
}
@keyframes deadlineFlash {
  0%, 40% { fill-opacity: 0; }
  50% { fill-opacity: 0.6; }
  80% { fill-opacity: 0.6; }
  90% { fill-opacity: 0; }
  100% { fill-opacity: 0; }
}
.timeline-node.visible .scene-deadline-text { animation: deadlineFlash 3s ease-in-out 1.2s infinite; }
.timeline-node.visible .scene-gst-q { animation: questionFade 2.5s ease-in-out 0.8s infinite; }

.scene-flat-line { stroke-dasharray: 300; stroke-dashoffset: 300; }
.timeline-node.visible .scene-flat-line { animation: sceneFlatDraw 2s ease-out 0.4s forwards; }
@keyframes sceneFlatDraw {
  0% { stroke-dashoffset: 300; }
  100% { stroke-dashoffset: 0; }
}
@keyframes profitQReveal {
  0%, 30% { fill-opacity: 0; }
  50% { fill-opacity: 0.4; }
  80% { fill-opacity: 0.4; }
  100% { fill-opacity: 0; }
}
.timeline-node.visible .scene-profit-q { animation: profitQReveal 4s ease-in-out 1.5s infinite; }
@keyframes fogDrift {
  0% { fill-opacity: 0; }
  30% { fill-opacity: 0.06; }
  70% { fill-opacity: 0.06; }
  100% { fill-opacity: 0; }
}
.timeline-node.visible .scene-fog { animation: fogDrift 5s ease-in-out infinite; }
.timeline-node.visible .fog2 { animation-delay: 1.5s; }
.timeline-node.visible .fog3 { animation-delay: 3s; }

@keyframes shutterPulse {
  0%, 70% { stroke-opacity: 0; }
  75% { stroke-opacity: 0.4; }
  85% { stroke-opacity: 0.1; }
  100% { stroke-opacity: 0; }
}
.timeline-node.visible .scene-shutter { animation: shutterPulse 3.5s ease-in-out 0.5s infinite; }

@keyframes cardSlideIn {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.scene-card-appear { opacity: 0; }
.timeline-node.visible .card-a1 { animation: cardSlideIn 0.5s ease-out 0.6s both; }
.timeline-node.visible .card-a2 { animation: cardSlideIn 0.5s ease-out 0.9s both; }
.timeline-node.visible .card-a3 { animation: cardSlideIn 0.5s ease-out 1.2s both; }

@keyframes basValReveal {
  0% { fill-opacity: 0; transform: translateX(10px); }
  100% { fill-opacity: 0.5; transform: translateX(0); }
}
.scene-bas-val { fill-opacity: 0; }
.timeline-node.visible .val1 { animation: basValReveal 0.5s ease-out 0.5s both; }
.timeline-node.visible .val2 { animation: basValReveal 0.5s ease-out 0.8s both; }
.timeline-node.visible .val3 { animation: basValReveal 0.5s ease-out 1.1s both; }
@keyframes readyBadge {
  0% { fill-opacity: 0; stroke-opacity: 0; }
  100% { fill-opacity: 0.9; stroke-opacity: 0.3; }
}
.timeline-node.visible .scene-ready-badge { animation: readyBadge 0.4s ease-out 1.5s both; }
.timeline-node.visible .scene-ready-text { animation: basValReveal 0.3s ease-out 1.6s both; fill-opacity: 0; }

@keyframes sceneBarGrow {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}
.scene-bar { transform-origin: bottom; transform: scaleY(0); }
.timeline-node.visible .sb1 { animation: sceneBarGrow 0.4s ease-out 0.3s forwards; }
.timeline-node.visible .sb2 { animation: sceneBarGrow 0.4s ease-out 0.4s forwards; }
.timeline-node.visible .sb3 { animation: sceneBarGrow 0.4s ease-out 0.5s forwards; }
.timeline-node.visible .sb4 { animation: sceneBarGrow 0.4s ease-out 0.6s forwards; }
.timeline-node.visible .sb5 { animation: sceneBarGrow 0.4s ease-out 0.7s forwards; }
.timeline-node.visible .sb6 { animation: sceneBarGrow 0.4s ease-out 0.8s forwards; }

.scene-trend-line { stroke-dasharray: 250; stroke-dashoffset: 250; }
.timeline-node.visible .scene-trend-line { animation: sceneTrendDraw 1s ease-out 0.9s forwards; }
@keyframes sceneTrendDraw {
  0% { stroke-dashoffset: 250; }
  100% { stroke-dashoffset: 0; }
}

@keyframes liveDotPulse {
  0%, 100% { fill-opacity: 0; }
  50% { fill-opacity: 0.6; }
}
.timeline-node.visible .scene-live-dot { animation: liveDotPulse 2s ease-in-out 0.3s infinite; }

@keyframes trendDotAppear {
  0% { fill-opacity: 0; }
  100% { fill-opacity: 0.7; }
}
.timeline-node.visible .scene-trend-dot { animation: trendDotAppear 0.3s ease-out 1.9s both; }

@keyframes profitCardReveal {
  0% { fill-opacity: 0; stroke-opacity: 0; }
  100% { fill-opacity: 0.85; stroke-opacity: 0.2; }
}
.timeline-node.visible .scene-profit-card { animation: profitCardReveal 0.4s ease-out 2s both; }
.timeline-node.visible .scene-profit-label { animation: basValReveal 0.3s ease-out 2.1s both; fill-opacity: 0; }
.timeline-node.visible .scene-profit-amount { animation: basValReveal 0.3s ease-out 2.2s both; fill-opacity: 0; }


@media (prefers-reduced-motion: reduce) {
  .timeline-node { transition: none; }
  .timeline-node:hover { transform: none; }
  .timeline-icon { transition: none; }
  .timeline-node:hover .timeline-icon { transform: none; }
  .timeline-scene { opacity: 0.8; transition: none; transform: none; }
  .timeline-node.visible .timeline-scene { transform: none; }
  .scene-receipt,
  .scene-bill,
  .scene-stress-mark,
  .scene-question,
  .scene-clock-minute,
  .scene-clock-hour,
  .scene-deadline-text,
  .scene-gst-q,
  .scene-flat-line,
  .scene-profit-q,
  .scene-fog,
  .scene-shutter,
  .scene-card-appear,
  .scene-bas-val,
  .scene-ready-badge,
  .scene-ready-text,
  .scene-bar,
  .scene-trend-line,
  .scene-live-dot,
  .scene-trend-dot,
  .scene-profit-card,
  .scene-profit-label,
  .scene-profit-amount,
  .scene-price-tag,
  .scene-drain { animation: none !important; opacity: 1; fill-opacity: 0.4; transform: none; stroke-dashoffset: 0; }
  .pain-points .reveal,
  .pain-points .reveal-left,
  .pain-points .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pain-timeline > .timeline-node.reveal { transition-delay: 0s !important; }
}

.how-it-works { padding: 96px 0; }
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
}
.step-card {
  flex: 1; max-width: 280px; padding: 36px 28px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-card); text-align: center;
  position: relative; transition: all 0.25s;
}
.step-card:hover { border-color: rgba(180,160,232,0.3); transform: translateY(-2px); }
.step-number {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-size: 18px; font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.step-arrow {
  display: flex; align-items: center; padding-top: 56px; color: var(--text-muted); opacity: 0.4;
}

.features {
  padding: 96px 0;
  background: var(--gradient-subtle);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}
.feature-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-card); transition: all 0.2s; position: relative;
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.feature-card.bento-wide { grid-column: span 2; }
.feature-card.bento-tall { grid-row: span 2; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(180,160,232,0.10), rgba(130,191,176,0.10));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--violet);
}
.feature-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary);
}
.feature-card p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.6;
}

.app-showcase { padding: 96px 0; background: var(--bg); position: relative; overflow: hidden; }
.showcase-phones {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 32px; max-width: 960px; margin: 0 auto; padding-top: 8px;
}
.phone-frame {
  width: 260px; background: #1a1a2e; border-radius: 36px;
  padding: 12px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.phone-frame-hero { width: 280px; transform: translateY(-16px); }
.phone-notch {
  width: 100px; height: 28px; background: #1a1a2e; border-radius: 0 0 18px 18px;
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.phone-screen {
  background: #fafafe; border-radius: 26px; padding: 0;
  min-height: 440px; overflow: hidden; display: flex; align-items: stretch;
}
.phone-screenshot {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 26px; display: block;
}
.phone-frame-hero .phone-screen { min-height: 470px; }
.phone-label {
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-top: 14px;
}


.ai-section {
  padding: 100px 0; position: relative; overflow: hidden;
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  background: #09090f;
}
.ai-bg { position: absolute; inset: 0; }
.ai-glow {
  position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none;
}
.ai-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(180,160,232,0.16) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: aiGlow 14s ease-in-out infinite;
}
.ai-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(130,191,176,0.12) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: aiGlow 14s ease-in-out infinite reverse;
}
@keyframes aiGlow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -18px); }
  66% { transform: translate(-18px, 12px); }
}
.ai-grid-lines {
  position: absolute; inset: 0; opacity: 0.025;
  background-image:
    linear-gradient(rgba(180,160,232,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,160,232,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}
.ai-content { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; }
.ai-badge { background: rgba(180,160,232,0.12); border-color: rgba(180,160,232,0.18); }
.ai-title { color: #f0f0f5; }
.ai-subtitle { color: rgba(255,255,255,0.50); }

.ai-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ai-card {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.ai-card:hover { border-color: rgba(180,160,232,0.20); transform: translateY(-2px); }
.ai-card h3 { font-size: 18px; font-weight: 700; color: #f0f0f5; margin-bottom: 10px; }
.ai-card p { font-size: 16px; color: rgba(255,255,255,0.50); line-height: 1.6; }
.ai-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(180,160,232,0.14), rgba(130,191,176,0.14));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--violet-light);
}

.ai-card-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(180,160,232,0.06), rgba(130,191,176,0.04));
  border-color: rgba(180,160,232,0.10);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.ai-card-hero-text {}
.ai-card-icon-large {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
  box-shadow: 0 8px 24px rgba(139,109,192,0.25);
}
.ai-card-hero h3 { font-size: 22px; }
.ai-card-hero > .ai-card-hero-text > p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 460px; }

.ai-chat-demo {
  display: flex; flex-direction: column; gap: 10px;
}
.ai-chat-bubble {
  padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55;
}
.ai-chat-bubble.user {
  background: linear-gradient(135deg, var(--violet-light), #9BA2E0);
  color: #fff; align-self: flex-end; border-bottom-right-radius: 4px;
  font-weight: 500; max-width: 280px;
}
.ai-chat-bubble.assistant {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65); border-bottom-left-radius: 4px;
}
.ai-chat-bubble.assistant strong { color: var(--teal); font-weight: 700; }
.ai-chat-typing { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.ai-chat-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--violet-light);
  animation: typingDot 1.4s ease-in-out infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.2; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.testimonials {
  padding: 96px 0; background: var(--bg-alt);
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
}
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1140px; margin: 0 auto;
}
.testimonial-card {
  background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { margin-bottom: 16px; }
.testimonial-stars span { color: #f59e0b; font-size: 16px; }
.testimonial-card > p {
  font-size: 16px; color: var(--text-body); line-height: 1.7;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

.web-app-section {
  padding: 96px 0;
  background: var(--gradient-subtle);
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
}
.web-app-content {
  display: flex; align-items: center; gap: 64px;
  max-width: 1140px; margin: 0 auto;
}
.web-app-text { flex: 1; }
.web-app-text h2 {
  font-size: 38px; font-weight: 800; color: var(--text-primary);
  margin-bottom: 18px; margin-top: 12px; line-height: 1.18;
}
.web-app-text p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }
.web-app-features { list-style: none; margin-bottom: 32px; }
.web-app-features li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; font-size: 16px; color: var(--text-body); font-weight: 500;
}
.check-circle {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(130,191,176,0.14);
  display: flex; align-items: center; justify-content: center;
  color: #22c55e; flex-shrink: 0;
}
.web-app-visual { flex-shrink: 0; }

.browser-mock {
  width: 460px; background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}
.browser-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f5f5f8; border-bottom: 1px solid #eaeaee;
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-bar {
  flex: 1; padding: 6px 12px; background: #fff; font-size: 12px; color: #999;
  border-radius: 6px; display: flex; align-items: center; gap: 6px;
}
.browser-content { display: flex; min-height: 280px; }
.browser-sidebar {
  width: 125px; background: #fafafa; padding: 14px 10px; border-right: 1px solid #eee;
}
.browser-sidebar-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800; margin-bottom: 14px;
}
.browser-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; font-size: 11px; color: var(--text-muted);
  border-radius: 7px; margin-bottom: 2px; font-weight: 500;
}
.browser-nav-item.active {
  background: linear-gradient(135deg, rgba(180,160,232,0.10), rgba(130,191,176,0.10));
  color: var(--violet); font-weight: 600;
}
.browser-main { flex: 1; padding: 16px; }
.browser-greeting { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.browser-stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.browser-stat {
  flex: 1; border-radius: var(--radius-sm); padding: 10px; border: 1px solid var(--border);
}
.browser-stat small { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 3px; }
.browser-stat span { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.browser-stat-trend {
  font-size: 9px; font-weight: 600; margin-top: 3px; padding: 2px 5px;
  border-radius: 4px; display: inline-block;
}
.browser-stat-trend.up { background: rgba(34,197,94,0.08); color: #22c55e; }
.browser-stat-trend.down { background: rgba(239,68,68,0.08); color: #ef4444; }
.income-stat span { color: #22c55e; }
.expense-stat span { color: #ef4444; }
.gst-stat span { color: var(--violet); }
.browser-chart { display: flex; gap: 6px; align-items: flex-end; height: 72px; padding: 8px 0; }
.browser-chart-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(180,160,232,0.12), rgba(180,160,232,0.25));
  transition: all 0.2s;
}
.browser-chart-bar.active { background: linear-gradient(to top, var(--violet-light), var(--teal)); }

.pricing {
  padding: 96px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(180,160,232,0.04) 0%, transparent 70%);
}
.pricing-grid {
  display: flex; justify-content: center; gap: 24px;
  max-width: 740px; margin: 0 auto;
}
.pricing-card {
  flex: 1; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-card); position: relative; transition: all 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--violet-light);
  box-shadow: 0 12px 40px rgba(180,160,232,0.14);
  background: linear-gradient(180deg, #fff 0%, rgba(245,243,255,0.4) 100%);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  padding: 5px 18px; border-radius: 14px; font-size: 12px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(139,109,192,0.2);
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.price { font-size: 48px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -1.5px; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card ul { list-style: none; margin-bottom: 32px; }
.pricing-card li {
  padding: 8px 0; font-size: 15px; color: var(--text-body);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card li::before { content: "\2713"; color: var(--teal); font-weight: 700; font-size: 14px; }
.pricing-card .btn { width: 100%; justify-content: center; }

.download {
  padding: 96px 0; position: relative; overflow: hidden;
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
}
.download-bg { position: absolute; inset: 0; background: var(--gradient-subtle); }
.download-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  max-width: 1140px; margin: 0 auto; position: relative;
}
.download-grid:not(:has(.qr-card)) { max-width: 900px; }
.download-card {
  flex: 1 1 220px; max-width: 280px;
  padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-align: center; background: var(--bg-card); transition: all 0.2s;
}
.download-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.download-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(180,160,232,0.10), rgba(130,191,176,0.10));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--violet);
}
.download-card-icon.web-icon {
  background: linear-gradient(135deg, rgba(130,191,176,0.10), rgba(180,160,232,0.10));
}
.download-card-icon.android-icon {
  background: linear-gradient(135deg, rgba(130,191,176,0.14), rgba(130,191,176,0.06));
  color: #3ddc84;
}
.download-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.download-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.6; }
.store-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-body);
  background: #fff; transition: all 0.2s; cursor: pointer; font-family: inherit;
}
.store-button:hover { border-color: var(--violet-light); color: var(--violet); transform: translateY(-1px); }
.store-icon { width: 18px; height: 18px; }
.store-button-disabled {
  background: rgba(15,15,20,0.04);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.store-button-disabled:hover {
  border-color: var(--border);
  color: var(--text-muted);
  transform: none;
}
.webapp-btn { border-color: var(--violet-light); color: var(--violet); }
.webapp-btn:hover { background: rgba(180,160,232,0.04); }

/* Android waitlist signup — inline form that expands beneath the
   "Notify me when Android launches" button on the Android download card. */
.android-waitlist-toggle {
  width: 100%;
  border-color: var(--violet-light);
  color: var(--violet);
}
.android-waitlist-toggle:hover {
  background: rgba(180,160,232,0.06);
  border-color: var(--violet);
  color: var(--violet);
}
.android-waitlist-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.android-waitlist-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.android-waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.android-waitlist-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.android-waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(180,160,232,0.18);
}
.android-waitlist-submit {
  width: 100%;
  border-color: var(--violet);
  color: #fff;
  background: var(--violet);
}
.android-waitlist-submit:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  filter: brightness(1.05);
}
.android-waitlist-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.android-waitlist-status {
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 1.2em;
  color: var(--text-secondary);
}
.android-waitlist-status.is-error { color: #c0392b; }
.android-waitlist-status.is-success { color: #2f855a; }
.android-waitlist-form.is-success input[type="email"],
.android-waitlist-form.is-success .android-waitlist-submit {
  display: none;
}
.qr-card {
  background: var(--gradient); border: none; color: #fff;
  box-shadow: 0 12px 32px rgba(139,109,192,0.18);
}
.qr-card:hover { box-shadow: 0 16px 40px rgba(139,109,192,0.25); }
.qr-card h3 { color: #fff; }
.qr-card p { color: rgba(255,255,255,0.82); }
.qr-code {
  width: 150px; height: 150px; margin: 0 auto 14px;
  background: #fff; border-radius: var(--radius-md); padding: 10px;
}
.qr-code canvas { width: 100%; height: 100%; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.open-button {
  display: none; padding: 10px 20px; font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--violet); background: #fff; transition: all 0.2s;
}
.open-button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
@media (max-width: 768px) {
  .qr-card .qr-code { display: none; }
  .qr-card .open-button { display: inline-block; }
}

.cta-banner {
  padding: 72px 0; position: relative; overflow: hidden; margin: 0 -24px;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background: var(--gradient);
}
.cta-banner-content {
  position: relative; text-align: center; max-width: 600px;
  margin: 0 auto; padding: 0 24px;
}
.cta-banner h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.6; }
.cta-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--border); }
.footer-top { display: flex; gap: 64px; padding: 56px 0 40px; }
.footer-brand-section { flex: 1.5; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: 0.15em; margin-bottom: 8px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-logo-wrap {
  position: relative; width: 55px; height: 55px; flex-shrink: 0; border-radius: 13px; overflow: hidden;
}
.footer-logo { width: 100%; height: 100%; display: block; }
.footer-logo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient); mix-blend-mode: color; pointer-events: none;
}
.footer-tagline { font-size: 15px; color: var(--text-muted); }
.footer-link-group { display: flex; flex-direction: column; gap: 10px; }
.footer-link-group h4 {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-link-group a {
  text-decoration: none; color: var(--text-muted); font-size: 15px; transition: color 0.15s;
}
.footer-link-group a:hover { color: var(--violet); }
.footer-bottom { padding: 22px 0; border-top: 1px solid var(--border); }
.footer-copy { font-size: 14px; color: #8a8a96; text-align: center; }

.loading { display: none; text-align: center; margin: 60px 0; }
.spinner {
  border: 2px solid #eee; border-top-color: var(--violet-light); border-radius: 50%;
  width: 32px; height: 32px; animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; color: var(--text-secondary); }

@media (max-width: 1024px) {
  .hero-content { gap: 48px; }
  .hero h1 { font-size: 42px; }
  .hero-logo-anim { width: 170px; height: 192px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.bento-wide { grid-column: span 2; }
  .ai-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-card-hero { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .web-app-content { gap: 40px; }
  .browser-mock { width: 380px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: rgba(255,255,255,0.97);
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); gap: 14px; z-index: 200;
    backdrop-filter: blur(20px);
  }
  .nav-mobile-actions { display: flex; }
  .nav-mobile-cta { display: inline-block; }
  .nav-mobile-toggle { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero-content { gap: 32px; }
  .hero-text { align-items: center; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-logo-anim { width: 140px; height: 158px; }
  .social-proof-inner { flex-wrap: wrap; gap: 24px; }
  .social-divider { display: none; }
  .social-stat-number { font-size: 24px; }
  .section-title { font-size: 28px; }
  .comparison-card { padding: 14px; }
  .timeline-content h3 { font-size: 15px; }
  .timeline-content p { font-size: 12px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-card { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card.bento-wide { grid-column: span 1; }
  .showcase-phones { flex-direction: column; align-items: center; gap: 24px; }
  .phone-frame, .phone-frame-hero { width: 260px; }
  .phone-frame-hero { transform: none; }
  .ai-features-grid { grid-template-columns: 1fr; }
  .ai-card-hero { grid-template-columns: 1fr; }
  .ai-card-hero h3 { font-size: 19px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .web-app-content { flex-direction: column; gap: 40px; }
  .browser-mock { width: 100%; max-width: 400px; }
  .pricing-grid { flex-direction: column; }
  .download-grid { flex-direction: column; }
  .cta-banner h2 { font-size: 26px; }
  .footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 520px) {
  .comparison-grid { gap: 14px; }
  .comparison-row { grid-template-columns: 1fr; gap: 8px; }
  .comparison-header { grid-template-columns: 1fr; gap: 8px; }
  .comparison-header-spacer { display: none; }
  .comparison-arrow { transform: rotate(90deg); padding: 4px 0; }
  .timeline-icon { width: 36px; height: 36px; }
  .timeline-icon svg { width: 22px; height: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f0f0f5;
    --text-body: #c8c8d0;
    --text-secondary: #9898a5;
    --text-muted: #787888;
    --bg: #0a0a0e;
    --bg-alt: #0f0f14;
    --bg-card: #111116;
    --border: #1e1e28;
    --border-hover: #3a3060;
  }
  .nav { background: rgba(10,10,14,0.90); border-bottom-color: rgba(255,255,255,0.04); }
  .nav-links a { color: #9898a5; }
  .nav-links a:hover { color: #f0f0f5; }
  .nav-links.open { background: rgba(22,22,28,0.97); border-bottom-color: #1e1e28; }
  .hero-badge { background: rgba(180,160,232,0.10); border-color: rgba(180,160,232,0.12); }
  .social-proof { border-color: #1e1e28; }
  .phase-before { background: rgba(220, 100, 100, 0.12); border-color: rgba(220, 100, 100, 0.2); }
  .phase-after { background: rgba(94, 148, 120, 0.12); border-color: rgba(94, 148, 120, 0.2); }
  .comparison-card.card-before { background: rgba(220, 100, 100, 0.05); border-color: rgba(220, 100, 100, 0.15); }
  .comparison-card.card-after { background: rgba(94, 148, 120, 0.06); border-color: rgba(94, 148, 120, 0.15); }
  .phone-frame { background: #0a0a0e; box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset; }
  .phone-notch { background: #0a0a0e; }
  .phone-screen { background: #111116; }
  .step-card { border-color: #1e1e28; background: #111116; }
  .step-card:hover { border-color: #3a3060; }
  .feature-card { border-color: #1e1e28; background: #111116; }
  .feature-card:hover { border-color: #3a3060; box-shadow: 0 12px 32px rgba(139,109,192,0.05); }
  .feature-card.feature-highlight { background: var(--gradient); border-color: transparent; }
  .feature-card.feature-highlight:hover { border-color: transparent; box-shadow: 0 16px 48px rgba(139,109,192,0.2); }
  .feature-icon { background: linear-gradient(135deg, rgba(180,160,232,0.10), rgba(130,191,176,0.10)); }
  .testimonials { background: #0c0c10; }
  .testimonial-card { background: #111116; border-color: #1e1e28; }
  .testimonial-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
  .web-app-section { background: linear-gradient(135deg, rgba(180,160,232,0.02), rgba(130,191,176,0.02)); }
  .browser-mock { background: #111116; box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03); }
  .browser-chrome { background: #161620; border-bottom-color: #1e1e28; }
  .browser-bar { background: #0e0e14; color: #666; }
  .browser-sidebar { background: #0e0e14; border-right-color: #1e1e28; }
  .browser-nav-item { color: #787888; }
  .browser-nav-item.active { background: rgba(139,109,192,0.10); color: var(--violet-light); }
  .browser-stat { background: #161620; border-color: #1e1e28; }
  .browser-stat small { color: #787888; }
  .browser-chart-bar { background: linear-gradient(to top, rgba(180,160,232,0.08), rgba(180,160,232,0.16)); }
  .pricing-card { background: #111116; border-color: #1e1e28; }
  .pricing-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
  .pricing-card.featured { border-color: var(--violet); box-shadow: 0 12px 40px rgba(139,109,192,0.08); background: linear-gradient(180deg, #131318 0%, rgba(26,18,42,0.3) 100%); }
  .btn-secondary { background: #131318; color: var(--violet-light); border-color: rgba(180,160,232,0.12); }
  .btn-secondary:hover { background: #1a1a22; }
  .btn-outline { border-color: var(--violet); color: var(--violet-light); }
  .btn-outline:hover { background: rgba(180,160,232,0.06); }
  .download-bg { background: rgba(10,10,14,0.5); }
  .download-card { background: #111116; border-color: #1e1e28; }
  .download-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
  .store-button { border-color: #2a2a36; color: #c8c8d0; background: #161620; }
  .store-button:hover { border-color: var(--violet); color: var(--violet-light); background: #1e1e28; }
  .webapp-btn { border-color: var(--violet); color: var(--violet-light); }
  .footer { border-top-color: #1e1e28; }
  .footer-bottom { border-top-color: #1e1e28; }
  .footer-link-group a { color: #787888; }
  .footer-link-group a:hover { color: var(--violet-light); }
  .footer-tagline { color: #7a7a88; }
  .footer-copy { color: #6a6a78; }
}

.glow-card {
  position: relative;
}
.glow-card > *:not(.glow-border):not(.glow-border-bg) {
  position: relative;
  z-index: 1;
}
.glow-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  background: conic-gradient(
    from calc(var(--glow-angle, 0) * 1deg),
    transparent 0deg,
    #B4A0E8 30deg,
    #9BA2E0 60deg,
    #82BFB0 90deg,
    transparent 120deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
}
.glow-card:hover > .glow-border {
  opacity: 1;
}
.glow-border-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  background: radial-gradient(
    300px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(180, 160, 232, 0.06),
    transparent 70%
  );
}
.glow-card:hover > .glow-border-bg {
  opacity: 1;
}
@supports not (mask-composite: exclude) {
  .glow-border {
    background: none;
    border: 2px solid transparent;
    border-image: conic-gradient(
      from calc(var(--glow-angle, 0) * 1deg),
      transparent 0deg,
      #B4A0E8 30deg,
      #9BA2E0 60deg,
      #82BFB0 90deg,
      transparent 120deg,
      transparent 360deg
    ) 1;
    -webkit-mask: none;
    mask: none;
    padding: 0;
  }
}

.savings-calculator { padding: 60px 0; }
.calc-widget { max-width: 700px; margin: 0 auto; }
.calc-prompt {
  font-size: 1.15rem; font-weight: 600; text-align: center; margin-bottom: 20px; color: var(--text-primary);
}
.calc-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; max-width: 600px; margin: 0 auto;
}
.calc-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px; border-radius: 14px; border: 2px solid var(--border); cursor: pointer;
  background: var(--bg-card); transition: all 0.25s ease; font-family: inherit;
}
.calc-option:hover { border-color: var(--violet-light); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(180,160,232,0.15); }
.calc-option.selected { border-color: var(--violet-light); background: linear-gradient(135deg, rgba(180,160,232,0.08), rgba(130,191,176,0.08)); }
.calc-option-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.calc-option-price { font-size: 0.85rem; color: var(--text-muted); }
.calc-result { margin-top: 32px; }
.calc-result-card {
  background: var(--bg-card); border-radius: 20px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid var(--border);
  animation: calcReveal 0.5s ease;
}
@keyframes calcReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-result-comparison {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.calc-current, .calc-bookkeeps { text-align: center; }
.calc-label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.calc-amount { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.calc-amount-green { color: #5E9478; }
.calc-tool-name { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }
.calc-arrow-wrap { color: #B4A0E8; }
.calc-arrow { animation: calcArrowPulse 1.5s ease infinite; }
@keyframes calcArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}
.calc-savings-reveal { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); animation: calcSavingsPop 0.6s ease 0.3s both; }
@keyframes calcSavingsPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.calc-savings-amount {
  font-size: 3.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #B4A0E8, #82BFB0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.calc-savings-label { font-size: 1.1rem; color: var(--text-secondary); margin-top: 4px; }
.calc-savings-analogy { font-size: 1rem; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.calc-time-reveal { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); animation: calcReveal 0.5s ease; }
.calc-time-icon { color: var(--violet-light); margin-bottom: 12px; }
.calc-time-message { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.calc-time-price { font-size: 1rem; color: var(--text-secondary); }
.calc-cta { display: inline-block; margin-top: 24px; }
@media (max-width: 600px) {
  .calc-options { grid-template-columns: 1fr 1fr; }
  .calc-savings-amount { font-size: 2.5rem; }
  .calc-result-card { padding: 20px; }
}

.bas-countdown {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9000; max-width: 580px; width: calc(100% - 32px);
  background: var(--bg-card); border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  animation: basSlideUp 0.5s ease;
}
@keyframes basSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bas-countdown-inner { display: flex; align-items: center; gap: 12px; }
.bas-icon { flex-shrink: 0; color: #B4A0E8; }
.bas-text { flex: 1; min-width: 0; }
.bas-headline { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.bas-headline strong { color: var(--violet-light); }
.bas-sub { font-size: 0.8rem; color: var(--text-muted); }
.bas-cta-btn {
  flex-shrink: 0; padding: 8px 16px; background: linear-gradient(135deg, #B4A0E8, #82BFB0);
  color: #fff; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: transform 0.2s ease;
}
.bas-cta-btn:hover { transform: scale(1.04); }
.bas-dismiss {
  position: absolute; top: 6px; right: 10px; background: none; border: none;
  font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 4px 8px; line-height: 1;
}
.bas-dismiss:hover { color: var(--text-secondary); }
.bas-countdown.urgent { border: 2px solid #E07A5F; }
.bas-countdown.urgent .bas-headline strong { color: #E07A5F; }
.bas-countdown.urgent .bas-icon { color: #E07A5F; }
.bas-countdown.overdue { border: 2px solid #DC6464; background: #FFF5F5; }
.bas-countdown.overdue .bas-headline strong { color: #DC6464; }
.bas-countdown.overdue .bas-icon { color: #DC6464; }
@media (max-width: 500px) {
  .bas-countdown { bottom: 12px; padding: 12px 14px; }
  .bas-countdown-inner { flex-wrap: wrap; }
  .bas-cta-btn { width: 100%; text-align: center; margin-top: 8px; }
}

.deduction-quiz { padding: 60px 0; }
.quiz-widget { max-width: 600px; margin: 0 auto; }
.quiz-progress {
  height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 32px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, #B4A0E8, #82BFB0);
  border-radius: 3px; transition: width 0.4s ease;
}
.quiz-question {
  font-size: 1.25rem; font-weight: 700; text-align: center; color: var(--text-primary); margin-bottom: 20px;
}
.quiz-answers { display: flex; flex-direction: column; gap: 10px; }
.quiz-answer {
  padding: 14px 20px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--bg-card); cursor: pointer; font-size: 1rem; font-weight: 500;
  font-family: inherit; text-align: left; transition: all 0.25s ease; color: var(--text-primary);
}
.quiz-answer:hover { border-color: var(--violet-light); transform: translateX(4px); background: rgba(180,160,232,0.04); }
.quiz-answer.selected { border-color: var(--teal); background: rgba(130,191,176,0.08); }
.quiz-step { animation: quizFade 0.35s ease; }
@keyframes quizFade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-result-card {
  text-align: center; background: var(--bg-card); border-radius: 20px;
  padding: 40px 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border); animation: calcReveal 0.5s ease;
}
.quiz-result-icon { color: var(--violet-light); margin-bottom: 12px; }
.quiz-result-amount {
  font-size: 3.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #E07A5F, #B4A0E8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quiz-result-label { font-size: 1.05rem; color: var(--text-secondary); margin-top: 8px; }
.quiz-result-detail { font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; }
.quiz-result-breakdown {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 16px; margin-bottom: 20px;
}
.quiz-breakdown-tag {
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  background: rgba(180,160,232,0.1); color: #7B6BAE;
}
.quiz-cta { display: inline-block; }
.quiz-restart {
  display: block; margin: 16px auto 0; background: none; border: none;
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer; font-family: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.quiz-restart:hover { color: var(--text-secondary); }
@media (max-width: 600px) {
  .quiz-result-amount { font-size: 2.5rem; }
  .quiz-result-card { padding: 28px 20px; }
}

.faq-section {
  padding: 80px 0;
  background: var(--gradient-subtle);
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
}
.faq-list {
  max-width: 720px; margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; background: var(--bg-card); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text-primary);
  text-align: left; gap: 16px; transition: color 0.2s;
}
.faq-question:hover { color: var(--violet); }
.faq-chevron {
  flex-shrink: 0; color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0;
}

.interactive-demo { padding: 60px 0; }
.demo-widget { max-width: 800px; margin: 0 auto; }
.demo-tabs {
  display: flex; gap: 4px; background: var(--bg-alt); border-radius: 14px; padding: 4px;
  margin-bottom: 0;
}
.demo-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 10px; border: none; cursor: pointer;
  background: transparent; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); transition: all 0.25s ease;
}
.demo-tab:hover { color: var(--text-secondary); }
.demo-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.demo-tab svg { flex-shrink: 0; }
.demo-screen-wrap {
  background: var(--bg-card); border-radius: 0 0 20px 20px; border: 1px solid var(--border); border-top: none;
  overflow: hidden; min-height: 420px;
}
.demo-screen { display: none; padding: 28px; animation: quizFade 0.35s ease; }
.demo-screen.active { display: block; }
.demo-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.demo-greeting { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.demo-date { font-size: 0.85rem; color: var(--text-muted); }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.demo-stat {
  padding: 16px; border-radius: 14px; background: var(--bg-alt);
}
.demo-stat small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.demo-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.demo-stat-income strong { color: #5E9478; }
.demo-stat-expense strong { color: #E07A5F; }
.demo-stat-profit strong { color: var(--text-primary); }
.demo-trend { font-size: 0.75rem; font-weight: 600; margin-top: 2px; display: inline-block; padding: 2px 6px; border-radius: 4px; }
.demo-trend.up { color: #5E9478; background: rgba(94,148,120,0.1); }
.demo-trend.down { color: #E07A5F; background: rgba(224,122,95,0.1); }
.demo-chart { margin-bottom: 24px; }
.demo-chart-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.demo-chart-bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.demo-bar-group {
  flex: 1; display: flex; gap: 3px; align-items: flex-end; text-align: center;
  position: relative; padding-bottom: 20px;
}
.demo-bar-group span {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; color: var(--text-muted);
}
.demo-bar {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 8px;
  transition: height 0.5s ease;
}
.demo-bar.income { background: linear-gradient(to top, #82BFB0, #6DB8A6); }
.demo-bar.expense { background: linear-gradient(to top, #E0BF72, #D99468); }
.demo-transactions { border-top: 1px solid var(--border); padding-top: 16px; }
.demo-txn-header { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.demo-txn {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.demo-txn-cat {
  width: 32px; height: 32px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.demo-txn-cat.income { background: rgba(94,148,120,0.1); color: #5E9478; }
.demo-txn-cat.expense { background: rgba(224,122,95,0.1); color: #E07A5F; }
.demo-txn-info { flex: 1; }
.demo-txn-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.demo-txn-info span { font-size: 0.75rem; color: var(--text-muted); }
.demo-txn-amount { font-weight: 700; font-size: 0.95rem; }
.demo-txn-amount.income { color: #5E9478; }
.demo-txn-amount.expense { color: #E07A5F; }
.demo-receipt-flow { }
.demo-receipt-step { display: flex; gap: 24px; flex-wrap: wrap; }
.demo-receipt-preview { flex: 1; min-width: 200px; }
.demo-receipt-img {
  background: var(--bg-alt); border-radius: 14px; padding: 32px;
  display: flex; align-items: center; justify-content: center; min-height: 200px;
}
.demo-receipt-placeholder {
  text-align: center; color: var(--text-muted);
}
.demo-receipt-placeholder svg { margin-bottom: 8px; }
.demo-receipt-placeholder span { display: block; font-size: 0.85rem; }
.demo-receipt-extracted { flex: 1; min-width: 240px; }
.demo-extract-header {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 16px;
}
.demo-extract-fields { display: flex; flex-direction: column; gap: 10px; }
.demo-field {
  display: flex; justify-content: space-between; padding: 8px 12px;
  background: var(--bg-alt); border-radius: 8px;
}
.demo-field-label { font-size: 0.8rem; color: var(--text-muted); }
.demo-field-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.demo-match-badge {
  display: flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 10px 14px; background: rgba(130,191,176,0.1); border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; color: #5E9478;
}
.demo-bas-content { }
.demo-bas-card {
  text-align: center; padding: 24px; background: linear-gradient(135deg, rgba(180,160,232,0.08), rgba(130,191,176,0.08));
  border-radius: 16px; margin-bottom: 20px;
}
.demo-bas-label { font-size: 0.85rem; color: var(--text-muted); }
.demo-bas-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); margin: 4px 0; }
.demo-bas-due { font-size: 0.85rem; color: var(--violet-light); font-weight: 600; }
.demo-bas-breakdown { margin-bottom: 20px; }
.demo-bas-row {
  display: flex; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary);
}
.demo-bas-row.total { border-bottom: none; font-weight: 700; color: var(--text-primary); background: var(--bg-alt); border-radius: 10px; }
.demo-bas-row strong { color: var(--text-primary); }
.demo-bas-status { display: flex; flex-direction: column; gap: 8px; }
.demo-bas-check {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary);
}
.demo-cta-wrap { text-align: center; margin-top: 28px; }
.demo-cta-text { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 12px; }
@media (max-width: 600px) {
  .demo-stats { grid-template-columns: 1fr; }
  .demo-receipt-step { flex-direction: column; }
  .demo-tab { font-size: 0.8rem; padding: 10px 8px; }
  .demo-tab svg { display: none; }
  .demo-bas-amount { font-size: 2rem; }
}

@media (prefers-color-scheme: dark) {
  .calc-option.selected { background: rgba(180,160,232,0.15); }
  .bas-countdown { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
  .bas-countdown.overdue { background: #2a1e1e; }
  .quiz-answer:hover { background: rgba(180,160,232,0.1); }
  .quiz-breakdown-tag { background: rgba(180,160,232,0.12); color: var(--text-secondary); }
  .demo-extract-badge { background: rgba(76,175,80,0.15); color: #81c784; }
  .faq-section { background: linear-gradient(135deg, rgba(180,160,232,0.03), rgba(130,191,176,0.03)); }
  .faq-item { background: var(--bg-card); border-color: var(--border); }
  .faq-item:hover { border-color: var(--border-hover); }
  .faq-item.open { border-color: var(--border-hover); }
}
