/* ==============================
   CSS Variables & Reset
   ============================== */
:root {
  --background: oklch(0.98 0.005 250);
  --foreground: oklch(0.15 0.02 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0.02 250);
  --primary: oklch(0.52 0.18 250);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.01 250);
  --secondary-foreground: oklch(0.25 0.03 250);
  --muted: oklch(0.94 0.01 250);
  --muted-foreground: oklch(0.45 0.02 250);
  --accent: oklch(0.65 0.22 145);
  --accent-foreground: oklch(1 0 0);
  --border: oklch(0.90 0.01 250);
  --input: oklch(0.92 0.01 250);
  --ring: oklch(0.52 0.18 250);
  --radius: 0.75rem;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Elevation system */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ==============================
   Utilities
   ============================== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.container-sm {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary { color: var(--primary); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), oklch(0.60 0.22 280));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==============================
   Section Common Styles
   ============================== */
.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 9999px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title-lg {
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.section-center {
  text-align: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
  .section-title-lg { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
  .section-title-lg { font-size: 3rem; }
}

/* ==============================
   App Redirect Modal
   ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

.modal-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 24rem;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--foreground); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-icon img { width: 2.25rem; height: 2.25rem; object-fit: contain; }

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-modal-secondary, .btn-modal-primary {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-modal-secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-modal-secondary:hover { background: var(--muted); }

.btn-modal-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-modal-primary:hover { opacity: 0.9; }

/* ==============================
   Header
   ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-inner { height: 5rem; }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img { border-radius: 0.75rem; }

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { width: 100%; }

.header-cta-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-cta-desktop { display: flex; }
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}
.btn-primary-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 40%, transparent);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-cta {
  width: 100%;
  margin-top: 0.5rem;
}

/* ==============================
   Hero Section
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--primary) 10%, transparent), var(--background) 50%, var(--background));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  padding-top: 6rem;
  padding-bottom: 4rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text-col { order: 2; }
.hero-phone-col { order: 1; }

@media (min-width: 1024px) {
  .hero-text-col { order: 1; }
  .hero-phone-col { order: 2; }
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) { .hero-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-heading { font-size: 3.75rem; } }

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.btn-hero-primary {
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s;
}
.btn-secondary-pill:hover { background: color-mix(in srgb, var(--secondary) 80%, transparent); }

.arrow-icon {
  transition: transform 0.2s;
}

.group:hover .arrow-icon {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

/* Phone Mockup */
.phone-wrapper {
  position: relative;
  margin: 0 auto;
  width: 280px;
}

@media (min-width: 640px) { .phone-wrapper { width: 320px; } }
@media (min-width: 1024px) { .phone-wrapper { width: 380px; } }

.phone-glow {
  position: absolute;
  inset: -1rem;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 3rem;
  filter: blur(48px);
  opacity: 0.6;
}

.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 3rem;
  padding: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 10px 25px rgba(0,0,0,0.15),
    0 25px 50px -12px rgba(0,0,0,0.25),
    0 40px 80px -20px rgba(0,0,0,0.2);
}

.phone-screen {
  background: #f5f5f5;
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  background: #f5f5f5;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.phone-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--foreground);
}

.phone-notch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a1a1a;
}

.phone-indicators {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-icon-sm {
  width: 12px;
  height: 12px;
  color: var(--foreground);
}

.phone-4g {
  font-size: 8px;
  color: var(--foreground);
}

.phone-signal {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 10px;
}

.signal-bar {
  width: 2px;
  background: var(--foreground);
  border-radius: 1px;
}

.phone-battery {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.battery-body {
  width: 16px;
  height: 8px;
  border: 1px solid var(--foreground);
  border-radius: 2px;
  position: relative;
}

.battery-fill {
  position: absolute;
  inset: 1px;
  right: 3px;
  background: var(--foreground);
  border-radius: 1px;
}

.battery-tip {
  width: 2px;
  height: 4px;
  background: var(--foreground);
  border-radius: 0 1px 1px 0;
}

/* App header in phone */
.app-header {
  background: #f5f5f5;
  padding: 0 1rem 0.5rem;
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.app-month {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.app-header-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.filter-chip {
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--muted-foreground) 30%, transparent);
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Bills */
.app-bills {
  background: #f5f5f5;
  padding: 0.5rem 1rem;
  flex: 1;
  overflow: hidden;
}

.bill-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.bill-date-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.bill-card {
  background: var(--card);
  padding: 0.625rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid;
}

.bill-card-green { border-left-color: #22c55e; }
.bill-card-primary { border-left-color: var(--primary); margin-bottom: 0.75rem; }
.bill-card-red { border-left-color: #ef4444; }

.bill-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bill-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bill-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bill-status-paid { background: #22c55e; }

.bill-status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid;
}

.bill-status-circle-primary { border-color: var(--primary); }
.bill-status-circle-red { border-color: #ef4444; }

.bill-type-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.bill-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.bill-sub {
  font-size: 9px;
  color: var(--muted-foreground);
}

.bill-sub-red { color: #ef4444; }

.bill-sub-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bill-tag-primary {
  font-size: 7px;
  padding: 2px 4px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 500;
}

.bill-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bill-amount {
  font-size: 11px;
  font-weight: 700;
  color: var(--foreground);
}

.bill-dots {
  color: var(--muted-foreground);
}

/* Phone bottom nav */
.phone-bottom-nav {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 0 0 2.5rem 2.5rem;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--foreground);
}

.bottom-nav-item:not(:first-child) svg { color: var(--muted-foreground); }

.bottom-nav-fab {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1.25rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  color: var(--primary-foreground);
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: white;
  font-weight: 700;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--card);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  display: none;
}

@media (min-width: 640px) {
  .floating-card { display: block; }
}

.floating-card-right {
  right: -3rem;
  top: 4rem;
}

.floating-card-left {
  left: -3rem;
  top: 50%;
}

.floating-card-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon-green { background: rgba(34,197,94,0.2); }
.floating-icon-primary { background: color-mix(in srgb, var(--primary) 20%, transparent); }

.floating-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.floating-sub {
  font-size: 10px;
  color: var(--muted-foreground);
}

/* Float animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite 1s;
}

/* ==============================
   Features Section
   ============================== */
.features-section {
  padding: 5rem 0 5rem;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .features-section { padding: 8rem 0; }
}

.feature-main-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .feature-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Notification Card */
.feature-main-card-wrapper { position: relative; }

.notification-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.notification-card:hover {
  transform: translateY(-2px);
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.notification-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-title {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.125rem;
}

.notification-subtitle {
  color: var(--muted-foreground);
}

.notification-body {
  background: var(--background);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.notification-body-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.notification-body-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.notification-floating-tag {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--card);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.notification-tag-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.notification-tag-value {
  font-weight: 600;
  color: var(--primary);
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon { margin-bottom: 1rem; }

.feature-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-card-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.feature-card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Mini Calendar */
.mini-calendar {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border-radius: 0.75rem;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}

.mini-calendar-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.mini-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.5rem;
}

.mini-calendar-weekdays span {
  font-size: 10px;
  color: var(--muted-foreground);
  text-align: center;
  font-weight: 500;
}

.mini-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  position: relative;
  z-index: 1;
}

.calendar-day {
  aspect-ratio: 1;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--foreground);
}

.calendar-day.overdue { color: #ef4444; font-weight: 600; }
.calendar-day.today { color: var(--primary); font-weight: 600; }

.calendar-day.overdue::before,
.calendar-day.today::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid;
}

.calendar-day.overdue::before { border-color: #ef4444; }
.calendar-day.today::before { border-color: var(--primary); }

.mini-calendar-mascot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9rem;
  height: auto;
  object-fit: contain;
  z-index: 0;
  opacity: 0.5;
}

/* Recurring List */
.recurring-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recurring-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background);
  padding: 0.5rem 0.75rem;
  border-left: 4px solid color-mix(in srgb, var(--primary) 50%, transparent);
}

.recurring-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  display: block;
}

.recurring-value {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.recurring-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-primary {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.tag-amber {
  background: rgba(245,158,11,0.1);
  color: #d97706;
}

.tag-green {
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}

/* AI Badge */
.ai-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(to right, #fef3c7, #fefce8);
  border: 1px solid rgba(252,211,77,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}

.ai-badge-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(252,211,77,0.5), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-badge-text {
  font-size: 9px;
  font-weight: 700;
  color: #b45309;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

/* Summary Chart */
.summary-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.donut-chart-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-total-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.donut-total-value {
  font-size: 10px;
  color: var(--muted-foreground);
}

.summary-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-name {
  font-size: 10px;
  color: var(--foreground);
  margin-left: 6px;
  flex: 1;
}

.legend-pct {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Backup Info */
.backup-info {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==============================
   How It Works Section
   ============================== */
.how-it-works-section {
  padding: 5rem 0;
  background: var(--card);
}

@media (min-width: 1024px) {
  .how-it-works-section { padding: 7rem 0; }
}

.steps-wrapper {
  position: relative;
}

.steps-line {
  display: none;
}

@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 1.5rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
  }
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.step-circle {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-circle-primary { background: var(--primary); }
.step-circle-green { background: #22c55e; }

.step-number {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.step-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==============================
   Testimonials Section
   ============================== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--card);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .testimonials-section { padding: 8rem 0; }
}

.testimonials-marquee-wrapper {
  position: relative;
  margin-top: 0;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 10;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--card), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--card), transparent);
}

.testimonials-marquee {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
}

.testimonials-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--background);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.star-filled { color: var(--primary); fill: var(--primary); }
.star-empty { color: color-mix(in srgb, var(--muted-foreground) 30%, transparent); }

.testimonial-text {
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 500;
  color: var(--foreground);
}

.testimonial-source {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==============================
   CTA Section
   ============================== */
.cta-section {
  padding: 5rem 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-section { padding: 8rem 0; }
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, color-mix(in srgb, var(--primary) 10%, transparent), var(--background) 50%, var(--background));
}

.cta-card {
  position: relative;
  background: var(--primary);
  border-radius: 1.5rem;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .cta-inner { padding: 4rem 5rem; }
}

.cta-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

@media (min-width: 640px) { .cta-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-heading { font-size: 3rem; } }

.cta-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

.cta-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--primary-foreground);
  color: var(--primary);
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.cta-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-btn-text { text-align: left; }
.cta-btn-small { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }
.cta-btn-big { font-size: 0.875rem; }

.cta-btn-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.1);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: not-allowed;
}

.cta-logo-col {
  display: none;
  justify-content: center;
}

@media (min-width: 1024px) {
  .cta-logo-col { display: flex; }
}

.cta-logo-wrapper {
  position: relative;
  width: 200px;
}

.cta-logo-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 2rem;
  filter: blur(32px);
}

.cta-logo-frame {
  position: relative;
  background: var(--foreground);
  border-radius: 2rem;
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.cta-logo-img {
  border-radius: 1.5rem;
  width: 100%;
  height: auto;
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-brand { display: block; }

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-brand { grid-column: span 2; }
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a, .footer-link-static {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--background);
}

.footer-link-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link-static {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-link-static svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--background);
}

/* ==============================
   FAQ Section
   ============================== */
.faq-section {
  padding: 5rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .faq-section { padding: 7rem 0; }
}

.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--muted-foreground);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ==============================
   Scroll Reveal Animations
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .testimonials-marquee {
    animation: none !important;
  }
  .animate-float, .animate-float-delayed {
    animation: none !important;
  }
}
