/* Moneywyn Custom Modern Stylesheet - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Elegant Emerald & Sleek Slate */
  --primary: #10b981;          /* Financial emerald green */
  --primary-hover: #059669;
  --primary-rgb: 16, 185, 129;
  --secondary: #3b82f6;        /* Subtle blue accent */
  --dark: #0f172a;             /* Dark slate navy */
  --dark-light: #1e293b;
  --light: #f8fafc;            /* Soft off-white */
  --white: #ffffff;
  --text-main: #334155;        /* Slate dark gray text */
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', var(--font-sans);
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* Glassmorphic Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Premium Navigation Button (Web App Login) */
.btn-nav {
  background-color: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-nav:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

/* Mobile Menu Trigger */
.mobile-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

/* Page Spacing Main Wrap */
.site-content {
  padding-top: calc(var(--header-height) + 40px);
  min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 100px 0;
  overflow: hidden;
}

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

/* Premium App Showcase Slider/Preview */
.app-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.app-mockup-frame {
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-mockup-frame:hover {
  transform: translateY(-5px) scale(1.01);
}

.app-mockup-image {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
  display: block;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--dark) 50%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Store Badge Buttons */
.store-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.store-badges.center-aligned {
  justify-content: center;
}

.store-badge-link img {
  height: 48px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.store-badge-link:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Blockquote */
.quote-container {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin: 60px 0;
  text-align: center;
  position: relative;
  border-left: 6px solid var(--primary);
}

.quote-text {
  font-size: 20px;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 16px;
}

.quote-author {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Media-Text Grid (Home features) */
.media-text-section {
  padding: 80px 0;
}

.media-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.media-text-grid.reverse {
  direction: rtl;
}

.media-text-grid.reverse .media-text-content {
  direction: ltr;
}

.media-text-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-text-content h2 {
  font-size: 38px;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.media-text-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Premium Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

/* Features Component (Modern grid cards) */
.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.features-header h1 {
  font-size: 46px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.features-header p {
  font-size: 18px;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Pricing Grid & Card styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pricing-card.premium::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-bottom: 30px;
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features-list li {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.pricing-card .btn-primary, .pricing-card .btn-outline {
  width: 100%;
  text-align: center;
}

/* Blog Archive */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--border);
  overflow: hidden;
}

.blog-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-readmore {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Contact Page Form styling */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 80px;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item h4 {
  font-size: 18px;
  color: var(--text-dark);
}

.info-item p {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: var(--light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Legal/Text Page Details */
.text-page-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 60px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 80px;
}

.text-page-wrap h1 {
  font-size: 40px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
}

.text-page-wrap h2 {
  font-size: 24px;
  margin: 40px 0 16px 0;
}

.text-page-wrap p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.text-page-wrap ul, .text-page-wrap ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.text-page-wrap li {
  margin-bottom: 10px;
}

/* Premium Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--dark-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  color: var(--white);
  font-size: 26px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Newsletter form */
.newsletter-form-wrap {
  max-width: 480px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-light);
  background-color: var(--dark-light);
  color: var(--white);
  font-family: var(--font-sans);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form button[type="submit"] {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Scroll To Top widget */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.2s ease;
  z-index: 999;
  opacity: 0.8;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  opacity: 1;
  background-color: var(--primary-hover);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .media-text-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .media-text-grid.reverse {
    direction: ltr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
  }
  .features-grid, .pricing-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .mobile-trigger {
    display: block;
  }
  .nav-menu {
    display: none; /* Mobile menu toggling would typically be wired in Dart code */
  }
  .site-header .btn-nav {
    display: none; /* Embedded inside mobile drawer */
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .text-page-wrap {
    padding: 30px;
  }
  .text-page-wrap h1 {
    font-size: 30px;
  }
}

/* ==========================================================================
   Premium Styles for Calculator, Login, Signup & Checkout
   ========================================================================== */

/* Navigation Header additions */
.btn-nav-secondary {
  background-color: var(--secondary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  border: 1px solid transparent;
  display: inline-block;
}
.btn-nav-secondary:hover {
  background-color: #2563eb;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}
.nav-signin {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  margin-right: -16px;
}
.nav-signin:hover {
  background-color: #2563eb !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
}
.nav-signup {
  margin-left: 0px;
}

/* Auth Pages (Login & Signup) */
.auth-page-container {
  padding: 100px 0 140px 0;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.01) 90.1%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(15, 23, 42, 0.05);
  max-width: 480px;
  width: 100%;
  padding: 50px 40px;
  text-align: center;
}
.auth-card h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.auth-form {
  text-align: left;
}
.auth-input {
  background-color: var(--light);
  border: 1px solid var(--border);
  height: 52px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  padding: 0 18px;
}
.auth-input:focus {
  background-color: var(--white);
}
.btn-auth-submit {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span {
  padding: 0 12px;
}
.federated-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.btn-federated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.btn-federated:hover {
  background-color: var(--light);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.btn-federated img {
  width: 18px;
  height: 18px;
}
.auth-footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-footer-link a {
  font-weight: 600;
  text-decoration: underline;
}

/* Auth Alerts */
.auth-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 24px;
  line-height: 1.4;
}
.auth-alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.auth-alert-error {
  background-color: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.auth-alert-hidden {
  display: none;
}

/* Checkout Page (Simulated Stripe) */
.checkout-page-container {
  padding: 100px 0 140px 0;
  min-height: 90vh;
  background-color: #f8fafc;
}
.checkout-section {
  max-width: 1000px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-lg), 0 30px 60px -15px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.checkout-summary-column {
  background-color: #f1f5f9;
  padding: 60px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.checkout-back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.checkout-back-link:hover {
  color: var(--text-dark);
}
.checkout-brand-summary h3 {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 8px;
}
.checkout-price-display h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.checkout-price-display h1 span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}
.trial-badge {
  display: inline-block;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 10px;
}
.checkout-details-list {
  margin-top: 40px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkout-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-main);
}
.total-due-now {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 16px;
}
.due-later {
  font-size: 13px;
  color: var(--text-muted);
  background-color: rgba(15, 23, 42, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.checkout-benefit-list {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.benefit-icon {
  color: var(--primary);
  font-weight: bold;
}
.benefit-text {
  color: var(--text-main);
}

.checkout-form-column {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stripe-card-form h4 {
  font-size: 20px;
  margin-bottom: 6px;
}
.stripe-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.stripe-input-card-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-num-input {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  height: 50px;
  background-color: var(--white);
}
.card-sub-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-exp-input {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  height: 50px;
  background-color: var(--white);
}
.card-cvc-input {
  border: none;
  border-radius: 0;
  height: 50px;
  background-color: var(--white);
}
.btn-stripe-submit {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  margin-top: 24px;
  cursor: pointer;
}
.stripe-agreement {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}

/* Calculator Page Styles */
.calculator-page-container {
  padding: 40px 0 100px 0;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.04) 0%, rgba(15, 23, 42, 0.01) 90.1%);
}
.calculator-hero-section {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px;
}
.calculator-card-section {
  max-width: 900px;
}
.calculator-glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-lg), 0 20px 50px -15px rgba(15, 23, 42, 0.06);
  padding: 48px;
}
.calculator-input-wrap {
  max-width: 480px;
  margin: 0 auto 40px auto;
  text-align: center;
}
.calculator-input-wrap label {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: block;
}
.income-input-container {
  position: relative;
  display: flex;
  align-items: center;
}
.currency-symbol {
  position: absolute;
  left: 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}
.income-input-field {
  width: 100%;
  height: 68px;
  padding: 0 20px 0 45px;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  text-align: center;
}
.income-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.calculator-results-wrap {
  margin-bottom: 48px;
}
.results-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  padding: 30px 24px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  position: relative;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.result-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.result-percent {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  padding: 3px 8px;
  border-radius: 6px;
}
.result-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.needs-card {
  border-top: 4px solid var(--primary);
}
.needs-card .result-percent {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}
.wants-card {
  border-top: 4px solid var(--secondary);
}
.wants-card .result-percent {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
}
.savings-card {
  border-top: 4px solid #8b5cf6;
}
.savings-card .result-percent {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.result-value {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.result-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.calculator-cta-wrap {
  margin-top: 40px;
}
.cta-flex-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
}
.cta-text-content h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.cta-text-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.calculator-badges {
  justify-content: flex-start;
}
.cta-action-content {
  text-align: right;
}
.btn-save-budget {
  display: inline-block;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary-column {
    padding: 40px 30px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .checkout-form-column {
    padding: 40px 30px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .cta-flex-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .calculator-badges {
    justify-content: center;
  }
  .cta-action-content {
    text-align: center;
  }
  .btn-save-budget {
    width: 100%;
  }
  .calculator-glass-card {
    padding: 24px;
  }
}

