:root {
  /* Grovia Theme Palette */
  --bg-color: #F8F5F2;
  /* Soft beige/off-white background */
  --text-primary: #0F172A;
  /* Slate 900 */
  --text-secondary: #475569;
  /* Slate 600 */
  --text-light: #94A3B8;
  /* Slate 400 */

  --accent-dark: #1E293B;
  /* Slate 800 - Cards/Buttons */
  --accent-purple: #8B5CF6;
  /* Violet 500 */
  --accent-yellow: #FACC15;
  /* Yellow 400 */
  --accent-green: #10B981;
  /* Emerald 500 */

  --white: #FFFFFF;
  --black: #000000;

  /* UI Tokens */
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Utilities */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

/* H2 */
.text-5xl {
  font-size: 3rem;
  line-height: 1.1;
}

/* H1 */

.mt-4 {
  margin-top: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  /* Pill shape */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-primary);
  border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
  background-color: #F8FAFC;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo img {
  height: 60px;
  /* Increased from 40px */
  transition: transform 0.2s;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 1.1rem;
  /* Increased font size */
  font-weight: 600;
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid #E2E8F0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Calculator Card */
.calculator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Decorative blur behind calc?? Optional */
.calc-wrapper {
  position: relative;
}

.calc-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.result-box {
  background: var(--accent-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #FFFFFF, #E2E8F0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Disclaimer text below result */
.disclaimer-text {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}


/* Footer */
footer {
  background: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid #E2E8F0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  border-top: 1px solid #F1F5F9;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Content Section (SEO Copy) */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.content-section h2 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1.5rem;
}

/* Rate Tabs */
.rate-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.rate-tab-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.rate-tab-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.rate-tab-btn.active {
  background: var(--accent-dark);
  color: var(--white);
  border-color: var(--accent-dark);
}

.rate-tab-content {
  display: none;
}

.rate-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.rate-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #F8FAFC;
  border-left: 3px solid var(--accent-purple);
  border-radius: 4px;
}

/* Print Styles */
@media print {
  body {
    visibility: hidden;
    background-color: white;
  }

  /* Reset layout for the calculator card to be the only thing visible */
  .calculator-card {
    visibility: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80% !important;
    max-width: 600px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Ensure all children of the card are visible */
  .calculator-card * {
    visibility: visible;
  }

  /* Hide the print button in the printed version */
  .result-box button {
    display: none !important;
  }
}