/**
 * Finance Peak Tools - Production Compiled CSS
 * Brand Colors:
 * - Background: #F5F7FA
 * - Cards: #FFFFFF
 * - Primary Blue: #2563EB
 * - Secondary Blue: #60A5FA
 * - Light Blue: #EAF2FF
 * - Main Text: #20232B
 * - Secondary Text: #707784
 * - Borders: #E7EAF0
 */

:root {
  --color-bg: #F5F7FA;
  --color-card: #FFFFFF;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-secondary-purple: #60A5FA;
  --color-light-purple: #EAF2FF;
  --color-text-main: #20232B;
  --color-text-secondary: #707784;
  --color-border: #E7EAF0;
  --color-border-focus: #2563EB;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(32, 35, 43, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(32, 35, 43, 0.06), 0 2px 6px -1px rgba(32, 35, 43, 0.04);
  --shadow-card-hover: 0 12px 28px -4px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(32, 35, 43, 0.05);
  --shadow-lg: 0 10px 30px -3px rgba(32, 35, 43, 0.08), 0 4px 12px -2px rgba(32, 35, 43, 0.04);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text-main);
}

main {
  flex: 1 0 auto;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Flex & Grid Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Spacing */
.m-0 { margin: 0; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Colors */
.text-main { color: var(--color-text-main); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-white { color: #ffffff; }
.text-emerald { color: #10B981; }
.text-amber { color: #F59E0B; }
.text-rose { color: #EF4444; }

.bg-body { background-color: var(--color-bg); }
.bg-card { background-color: var(--color-card); }
.bg-primary { background-color: var(--color-primary); }
.bg-light-purple { background-color: var(--color-light-purple); }
.bg-white { background-color: #ffffff; }

/* Borders & Rounded */
.border { border-width: 1px; border-style: solid; border-color: var(--color-border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--color-border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--color-border); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-primary { border-color: var(--color-primary); }
.border-light-purple { border-color: #C7DBFB; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 200ms; }

/* Component: Header & Navigation */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(32, 35, 43, 0.03);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-light-purple);
}

/* Component: Tool Card */
.tool-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #BFD6FB;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background-color: var(--color-light-purple);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.08);
}

.tool-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.tool-card:hover .tool-card-title {
  color: var(--color-primary);
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tool-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.tool-card-cta svg {
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-cta svg {
  transform: translateX(4px);
}

/* Component: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.25;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
  border-color: #D1D5DB;
}

.btn-light {
  background-color: var(--color-light-purple);
  color: var(--color-primary);
}

.btn-light:hover {
  background-color: #DBE8FD;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.875rem;
  border-radius: 0.5rem;
}

/* Component: Form Elements & Calculator Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.375rem;
}

.form-tooltip-trigger {
  color: var(--color-text-secondary);
  cursor: help;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix, .input-suffix {
  position: absolute;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  pointer-events: none;
  z-index: 2;
}

.input-prefix {
  left: 0.875rem;
}

.input-suffix {
  right: 0.875rem;
}

.form-input {
  width: 100%;
  height: 2.75rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input.has-prefix {
  padding-left: 2rem;
}

.form-input.has-suffix {
  padding-right: 2.25rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
  width: 100%;
  height: 2.75rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23707784'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Slider Controls */
.range-slider {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--color-primary);
  height: 5px;
  cursor: pointer;
}

/* Component: Calculator Result Card */
.calculator-results-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.result-hero-box {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
}

.result-hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.result-hero-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.result-hero-sub {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.375rem;
}

/* Breakdown List */
.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #F0F2F6;
  font-size: 0.9375rem;
}

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

.breakdown-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.breakdown-value {
  font-weight: 700;
  color: var(--color-text-main);
}

/* Progress / Ratio Bars */
.progress-bar-container {
  background-color: #E7EAF0;
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
  margin: 0.75rem 0 1.25rem 0;
  display: flex;
}

.progress-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F5F7FA 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem 0;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-light-purple);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  max-width: 680px;
  margin: 1.75rem auto 0 auto;
}

.search-input {
  width: 100%;
  height: 3.5rem;
  padding: 0.5rem 1rem 0.5rem 3.25rem;
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  background-color: #FFFFFF;
  font-size: 1.0625rem;
  color: var(--color-text-main);
  box-shadow: 0 4px 16px rgba(32, 35, 43, 0.04);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.search-icon-btn {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}

.search-result-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--color-light-purple);
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  background-color: var(--color-light-purple);
  color: var(--color-primary);
}

/* FAQ Accordion */
.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: #BFD6FB;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Currency Selector */
.currency-picker {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #20232B;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 0.625rem;
  transition: color 0.15s ease;
}

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

/* AdSense Slot Spacing */
.ad-slot-wrapper {
  margin: 2rem auto;
  text-align: center;
}

.ad-slot {
  min-height: 100px;
  background: #F9FAFB;
  border: 1px dashed var(--color-border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 0.75rem;
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .no-print, .ad-slot-wrapper, .btn {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .calculator-results-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
  }
  .result-hero-box {
    background: #EEEEEE !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}


/* ==========================================================================
   v2 REDESIGN ADDITIONS
   - Missing utility classes used by the templates (icon sizing, responsive
     show/hide, spacing). Without these, inline SVG icons render at their
     default (very large) size.
   - New calculator card + "Use Calculator →" bottom button
   - Homepage sections (hero stats, category chips, intro content)
   ========================================================================== */

/* Display / responsive visibility */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-24 { top: 6rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-x-auto { overflow-x: auto; }
.select-none { user-select: none; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }
.list-none { list-style: none; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.opacity-60 { opacity: 0.6; }

/* Icon / box sizing (SVG icons rely on these) */
.w-3\.5 { width: 0.875rem; } .h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }     .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }  .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }   .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }  .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }     .h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }  .h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }  .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }    .h-12 { height: 3rem; }
svg { max-width: 100%; }

/* Max widths */
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-12 { margin-top: 3rem; }
.-mt-1 { margin-top: -0.25rem; }
.p-0 { padding: 0; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pt-8 { padding-top: 2rem; } .pt-10 { padding-top: 2.5rem; }
.pb-3 { padding-bottom: 0.75rem; } .pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2\.5 { gap: 0.625rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.border-y { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.border-border { border-color: var(--color-border); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.text-neutral-800 { color: var(--color-text-main); }
.text-secondary-400, .text-secondary-500 { color: var(--color-text-secondary); }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.hover\:text-primary:hover, .group:hover .group-hover\:text-primary { color: var(--color-primary); }
.hover\:border-primary:hover { border-color: var(--color-primary); }
.hover\:bg-light-purple:hover { background-color: var(--color-light-purple); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.line-clamp-1, .line-clamp-2 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:inline { display: inline; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:flex-initial { flex: 0 1 auto; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:max-w-none { max-width: none; }
}
@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
}

/* Global safety: never scroll sideways */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.brand-logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-logo-mark { width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: block; }
.brand-logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-main); line-height: 1.1; }
.brand-logo-text span { color: var(--color-primary); }
.brand-logo-sub { display: none; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); margin-top: 2px; }
@media (min-width: 640px) { .brand-logo-sub { display: block; } }
@media (max-width: 380px) { .brand-logo-text { font-size: 1.05rem; } .brand-logo-mark { width: 2.25rem; height: 2.25rem; } }

/* --------------------------------------------------------------------------
   Calculator card grid + card (NO arrow icons, bottom button)
   2 columns on phones, 3 on tablets, 4 on desktop. Equal heights per row.
   -------------------------------------------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 768px)  { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.tool-grid--cats { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px)  { .tool-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tool-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tool-grid > .tool-card { height: 100%; min-width: 0; }
.tool-card { padding: 1rem; }
@media (min-width: 768px) { .tool-card { padding: 1.375rem; } }

/* Small icon at the top of the card */
.tool-card-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; }
.tool-card-icon svg { width: 20px; height: 20px; }

.tool-card-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; overflow-wrap: anywhere; }
@media (min-width: 768px) { .tool-card-title { font-size: 1.0625rem; } }
.tool-card-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
@media (min-width: 768px) { .tool-card-desc { font-size: 0.875rem; } }

/* The bottom button. margin-top:auto pins it to the bottom of every card. */
.tool-card-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border-radius: 0.75rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 768px) { .tool-card-btn { font-size: 0.9375rem; } }
.tool-card:hover .tool-card-btn, .tool-card:focus-visible .tool-card-btn {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.tool-card:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
.tool-card-btn--light { background-color: var(--color-light-purple); color: var(--color-primary); }
.tool-card:hover .tool-card-btn--light { background-color: var(--color-primary); color: #FFFFFF; }
/* Inline text arrow inside the button: normal text size, never a big icon */
.tool-card-btn .btn-arrow { font-size: 1em; font-weight: 700; }

/* Legacy CTA chevrons are removed from markup; hard-stop any leftover */
.tool-card-cta svg { display: none !important; }

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 44rem; margin: 1.75rem auto 0;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stat { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 0.875rem; padding: 0.75rem 0.5rem; box-shadow: var(--shadow-sm); }
.hero-stat strong { display: block; font-size: 1.375rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.hero-stat span { font-size: 0.75rem; color: var(--color-text-secondary); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.hero-actions .btn { min-height: 44px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.9rem;
  border-radius: 9999px; background: #FFFFFF; border: 1px solid var(--color-border);
  font-size: 0.8125rem; font-weight: 600; color: var(--color-text-main);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-light-purple); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); }
.section-head-title { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.section-head-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; background: var(--color-light-purple); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-link { font-size: 0.875rem; font-weight: 700; color: var(--color-primary); }
.section-link:hover { text-decoration: underline; }
.cat-block { scroll-margin-top: 5rem; margin-bottom: 3rem; }

.content-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow-sm); }
.content-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; color: var(--color-text-main); }
.content-card p { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px)  { .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audience-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.prose-block p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 1rem; font-size: 0.9375rem; }
.prose-block h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-text-main); margin-bottom: 0.75rem; }

#mobile-menu-drawer .nav-link { display: flex; min-height: 44px; }


/* ==========================================================================
   v2.1 - Modern homepage design (blue + green)
   ========================================================================== */
.text-gradient { background: linear-gradient(90deg, #2563EB 0%, #10B981 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.hero2 { position: relative; overflow: hidden; padding: 2.25rem 0 2.5rem; background: linear-gradient(135deg, #EAF2FF 0%, #FFFFFF 55%, #F5F7FA 100%); border-bottom: 1px solid var(--color-border); }
.hero2::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250,.28) 0%, rgba(96, 165, 250,0) 70%); pointer-events: none; }
.hero2::after { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235,.14) 0%, rgba(37, 99, 235,0) 70%); pointer-events: none; }
.hero2-grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hero2 { padding: 4rem 0 4.5rem; } .hero2-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.hero2 h1 { font-size: 2rem; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--color-text-main); margin-bottom: 1rem; }
@media (min-width: 640px)  { .hero2 h1 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .hero2 h1 { font-size: 3.4rem; } }
.hero2-lead { font-size: 1rem; line-height: 1.65; color: var(--color-text-secondary); max-width: 38rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero2-lead { font-size: 1.125rem; } }
.hero2-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: #FFFFFF; border: 1px solid #C7DBFB; color: var(--color-primary); font-size: 0.8125rem; font-weight: 700; padding: 0.375rem 0.875rem; border-radius: 9999px; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.hero2-pill i { width: 8px; height: 8px; border-radius: 50%; background: #10B981; display: inline-block; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero2-cta .btn { min-height: 48px; padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-hero { background: var(--color-primary); color: #FFFFFF; box-shadow: 0 8px 20px -6px rgba(37, 99, 235,.55); }
.btn-hero:hover { background: var(--color-primary-hover); }
.btn-ghost { background: #FFFFFF; color: var(--color-primary); border-color: #C7DBFB; }
.btn-ghost:hover { background: var(--color-light-purple); }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-secondary); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust-row svg { width: 16px; height: 16px; color: var(--color-success); }

/* Hero visual: sample calculator card */
.hero-visual { display: none; position: relative; }
@media (min-width: 1024px) { .hero-visual { display: block; } }
.mock-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 24px 50px -12px rgba(37, 99, 235,.28), 0 8px 20px -8px rgba(32,35,43,.12); max-width: 26rem; margin-left: auto; }
.mock-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.mock-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--color-light-purple); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.mock-dot svg { width: 20px; height: 20px; }
.mock-title { font-weight: 700; color: var(--color-text-main); font-size: 0.9375rem; }
.mock-sub { font-size: 0.75rem; color: var(--color-text-secondary); }
.mock-result { background: linear-gradient(135deg, #2563EB, #10B981); color: #FFFFFF; border-radius: 1rem; padding: 1rem 1.125rem; margin-bottom: 1rem; }
.mock-result small { display: block; font-size: 0.75rem; opacity: .85; font-weight: 600; }
.mock-result strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-bottom: 0.75rem; }
.mock-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: #DBE8FD; }
.mock-bars span:nth-child(n+5) { background: var(--color-secondary-purple); }
.mock-bars span:last-child { background: #10B981; }
.mock-rows { font-size: 0.8125rem; }
.mock-rows div { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid #F0F2F6; color: var(--color-text-secondary); }
.mock-rows div:last-child { border-bottom: 0; }
.mock-rows b { color: var(--color-text-main); }
.float-chip { position: absolute; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 0.875rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; font-weight: 700; color: var(--color-text-main); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.5rem; }
.float-chip svg { width: 18px; height: 18px; color: var(--color-primary); }
.float-chip.c1 { left: -0.5rem; top: 2.5rem; }
.float-chip.c2 { right: 0; bottom: -1rem; }

/* Stats strip */
.stats-strip { position: relative; z-index: 2; margin-top: -1.75rem; }
.stats-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 1.25rem; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 768px) { .stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-item { padding: 1rem 0.75rem; text-align: center; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat-item:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) { .stat-item { border-bottom: 0; } .stat-item:nth-child(2n) { border-right: 1px solid var(--color-border); } .stat-item:last-child { border-right: 0; } }
.stat-item:nth-last-child(-n+2) { border-bottom: 0; }
.stat-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.stat-item span { font-size: 0.75rem; font-weight: 600; color: var(--color-text-secondary); }

/* Section heading */
.sec-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); background: var(--color-light-purple); padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem; }
.sec-title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-main); margin-bottom: 0.5rem; line-height: 1.2; }
@media (min-width: 640px) { .sec-title { font-size: 2.125rem; } }
.sec-lead { font-size: 0.9375rem; color: var(--color-text-secondary); max-width: 40rem; margin: 0 auto; line-height: 1.6; }

/* Category cards get gradient icons */
.tool-grid--cats .tool-card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #2563EB, #10B981); color: #FFFFFF; border-radius: 0.875rem; }
.tool-grid--cats .tool-card-icon svg { width: 24px; height: 24px; }
.tool-grid--cats .tool-card { padding: 1.25rem; }

/* Popular section accent */
.pop-section { background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%); }

/* Category sections in catalog */
.cat-block .section-head { border-bottom: 2px solid var(--color-light-purple); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px)  { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* CTA band */
.cta-band { margin: 3rem 0 0; padding: 3rem 0; background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 55%, #10B981 100%); color: #FFFFFF; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -160px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band h2 { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; position: relative; }
@media (min-width: 640px) { .cta-band h2 { font-size: 2.125rem; } }
.cta-band p { color: rgba(255,255,255,.85); max-width: 36rem; margin: 0 auto 1.5rem; line-height: 1.6; position: relative; }
.btn-white { background: #FFFFFF; color: var(--color-primary); min-height: 48px; padding: 0.75rem 1.75rem; font-size: 1rem; position: relative; }
.btn-white:hover { background: var(--color-light-purple); }
.site-footer { margin-top: 0; }

/* v2.3 - Hero section centered on all screen sizes */
.hero2 { text-align: center; }
.hero2 .container { padding-left: 1rem; padding-right: 1rem; }
.hero2-grid { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; gap: 2.5rem; }
.hero2-grid > div { min-width: 0; width: 100%; max-width: 52rem; margin-left: auto; margin-right: auto; }
.hero2 h1 { font-size: 1.75rem; overflow-wrap: break-word; word-break: normal; }
@media (min-width: 480px)  { .hero2 h1 { font-size: 2.25rem; } }
@media (min-width: 768px)  { .hero2 h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero2 h1 { font-size: 3.5rem; } }
.hero2-lead { margin-left: auto; margin-right: auto; }
.hero2-cta, .trust-row { justify-content: center; }
.hero2-pill { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero-visual { width: 100%; max-width: 26rem; } .mock-card { margin: 0 auto; } }
