:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-hover: #059669;
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-reading {
  max-width: 800px;
}

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

/* Announcement Bar */
.top-bar {
  background: var(--dark);
  color: var(--slate-200);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar strong {
  color: #fbbf24;
}

/* Site Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-accent {
  color: var(--primary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--slate-50) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--white);
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* Cards & Sections */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title-wrap {
  margin-bottom: 3rem;
}

.section-title-wrap h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title-wrap p {
  color: var(--slate-600);
  font-size: 1.1rem;
}

/* Calculator Section */
.calculator-preview-section {
  padding: 3rem 0;
}

.calculator-card {
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.calc-title-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.calc-title-box p {
  color: var(--slate-500);
  margin-bottom: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

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

.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-color: var(--white);
}

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

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* Results Box */
.calc-results {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  color: var(--white);
  padding: 2rem;
}

.results-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #94a3b8;
  display: block;
}

.result-highlight {
  margin: 0.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.result-status {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.result-amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #34d399;
}

.breakdown-list {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: #cbd5e1;
}

.breakdown-row strong {
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
}

.highlight-row {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-weight: 700;
}

.highlight-green {
  background: rgba(16, 185, 129, 0.15);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.text-success {
  color: #34d399 !important;
}

.recommended-match-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.match-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.match-content strong {
  font-size: 1.1rem;
  color: #60a5fa;
  display: block;
  margin-bottom: 0.25rem;
}

.match-content p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* Software Showcase Cards Grid */
.software-showcase-section {
  padding: 4rem 0;
}

.software-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.software-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.badge-emerald { background: #10b981; color: var(--white); }
.badge-blue { background: #2563eb; color: var(--white); }
.badge-purple { background: #8b5cf6; color: var(--white); }
.badge-amber { background: #f59e0b; color: var(--white); }
.badge-indigo { background: #6366f1; color: var(--white); }
.badge-teal { background: #0d9488; color: var(--white); }
.badge-green { background: #16a34a; color: var(--white); }

.software-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.software-tagline {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
  min-height: 42px;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
}

.rating-val {
  font-weight: 800;
  font-size: 0.95rem;
}

.review-count {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.pricing-matrix {
  display: flex;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.price-col {
  flex: 1;
  text-align: center;
}

.price-col:first-child {
  border-right: 1px solid var(--slate-200);
}

.price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
}

.price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  font-family: 'JetBrains Mono', monospace;
}

.card-highlights {
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-highlights ul {
  list-style: none;
}

.card-highlights li {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  color: var(--accent);
  font-weight: 800;
}

.best-for-box {
  background: var(--slate-100);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--slate-700);
  margin-bottom: 1.25rem;
}

.guarantee-note {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.view-all-btn-wrap {
  margin-top: 1.5rem;
}

/* Comparison Table */
.page-header-section {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--slate-50) 100%);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 650px;
  margin: 0 auto;
}

.comparison-table-section {
  padding: 2rem 0 5rem;
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-100);
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--slate-50);
  position: sticky;
  top: 72px;
  z-index: 10;
  vertical-align: top;
}

.feature-col {
  width: 220px;
  min-width: 200px;
  font-weight: 800;
  color: var(--dark);
}

.brand-col {
  min-width: 160px;
  text-align: center;
}

.brand-col .brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.25rem 0;
}

.brand-col .brand-rating {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.brand-col .brand-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.table-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.highlight-brand {
  background: #f8faff !important;
}

.feature-title {
  font-weight: 700;
  color: var(--slate-700);
  background: var(--slate-50);
}

.table-pros-list, .table-cons-list {
  list-style: none;
  font-size: 0.8rem;
}

.table-pros-list li {
  color: #059669;
  margin-bottom: 0.25rem;
}

.table-cons-list li {
  color: #64748b;
  margin-bottom: 0.25rem;
}

/* Deductions Section */
.deductions-teaser-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.industry-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.industry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.industry-icon {
  font-size: 1.75rem;
}

.industry-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.deduction-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
}

.deduction-bullets li {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.learn-more-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.learn-more-link:hover {
  text-decoration: underline;
}

.deductions-directory-section {
  padding: 2rem 0 5rem;
}

.deduction-full-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header-ind {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-header-ind h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  cursor: pointer;
}

.item-desc {
  font-size: 0.85rem;
  color: var(--slate-600);
}

.card-footer-ind {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* FAQ */
.faq-section {
  padding: 4rem 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.security-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-pill {
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  color: #e2e8f0;
}

.footer-links-group h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.footer-links-group a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links-group a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

.disclaimer-box {
  background: rgba(255,255,255,0.04);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .nav-links {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
