@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-brand:     #16a34a;
  --clr-brand-dk:  #15803d;
  --clr-brand-dark: #15803d;
  --clr-accent:    #d97706;
  --clr-text:      #1a2e1e;
  --clr-muted:     #4b6358;
  --clr-border:    #d1e8d8;
  --clr-bg:        #ffffff;
  --clr-bg-alt:    #f2faf5;
  --clr-footer-bg: #0c1f12;
  --clr-footer-tx: #94b8a0;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(22,163,74,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 6px 24px rgba(22,163,74,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(22,163,74,.18), 0 4px 16px rgba(0,0,0,.08);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
}

a {
  color: var(--clr-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ================================================
   DISCLAIMER BANNER
   ================================================ */
.disclaimer-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, #071a0d 0%, #0d2b16 50%, #071a0d 100%);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(22,163,74,.2);
}
.disclaimer-banner p {
  margin: 0;
}
.disclaimer-banner strong {
  color: #fff;
  font-weight: 600;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: var(--disclaimer-h, 0);
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(209, 232, 216, 0.6);
  box-shadow: 0 1px 0 rgba(22,163,74,.06);
}

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

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.75px;
  text-decoration: none;
  font-feature-settings: 'kern';
}

.logo span {
  color: var(--clr-brand);
}

.logo-light {
  color: #fff;
}

.logo-light span {
  color: var(--clr-accent);
}

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.875rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(22,163,74,.09);
  color: var(--clr-brand);
  text-decoration: none;
}

.site-nav a.btn-nav {
  background: linear-gradient(135deg, var(--clr-brand) 0%, var(--clr-brand-dk) 100%);
  color: #fff;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(22,163,74,.30);
}

.site-nav a.btn-nav:hover {
  background: linear-gradient(135deg, var(--clr-brand-dk) 0%, #14532d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,.40);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-brand) 0%, var(--clr-brand-dk) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr-brand-dk) 0%, #14532d 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,163,74,.45);
}

.btn-secondary {
  background: rgba(22,163,74,.08);
  color: var(--clr-brand);
  border: 1.5px solid rgba(22,163,74,.30);
}

.btn-secondary:hover {
  background: rgba(22,163,74,.15);
  color: var(--clr-brand-dk);
  border-color: var(--clr-brand);
  box-shadow: 0 4px 14px rgba(22,163,74,.15);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: linear-gradient(145deg, #071a0d 0%, #0d2b16 45%, #0a2212 100%);
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22,163,74,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Ambient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 30%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(22,163,74,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero h1 span {
  color: var(--clr-brand);
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.25rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================
   FEATURES
   ================================================ */
.features {
  padding: 4rem 0;
  background: var(--clr-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--clr-bg);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-accent));
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(22,163,74,.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(22,163,74,.08);
  border-radius: var(--radius);
  border: 1px solid rgba(22,163,74,.15);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
  padding: 5rem 0;
  background: var(--clr-bg);
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
}

.testimonials .section-sub {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--clr-brand);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(22,163,74,.25);
}

.testimonial-stars {
  color: var(--clr-accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text);
  flex: 1;
  border: none;
  padding: 0;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  padding: 4rem 0 5rem;
  background: var(--clr-bg-alt);
}

.faq h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(22,163,74,.25);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 1rem;
}

/* Hide default disclosure arrow */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker             { display: none; }

/* Custom +/- indicator */
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1.5rem;
  text-align: center;
  color: var(--clr-brand);
  font-weight: 700;
  transition: background 0.15s, transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus */
  background: var(--clr-brand);
  color: #fff;
}

.faq-item summary:hover {
  background: var(--clr-bg-alt);
}

.faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--clr-muted);
  font-size: 0.925rem;
}

.faq-body p + p { margin-top: 0.75rem; }

.faq-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.faq-body li { margin-bottom: 0.35rem; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-tx);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 4rem 1.25rem 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 240px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: var(--clr-footer-tx);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.social-links a:hover {
  background: var(--clr-brand);
  color: #fff;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--clr-footer-tx);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

/* Contact column */
.footer-contact ul {
  gap: 0.9rem;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-contact a,
.footer-contact address {
  font-size: 0.875rem;
  color: var(--clr-footer-tx);
}

.footer-contact a:hover {
  color: #fff;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-footer-tx);
}

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  background: linear-gradient(145deg, #071a0d 0%, #0d2b16 60%, #0a2212 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(22,163,74,.15);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22,163,74,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
}

/* ================================================
   GENERIC SECTION HELPERS
   ================================================ */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--clr-bg-alt);
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section p.lead {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.text-center { text-align: center; }
.mx-auto     { margin-inline: auto; }

/* ================================================
   PROSE (legal / text pages)
   ================================================ */
.prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 4rem 1.25rem;
}

.prose .last-updated {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.6rem;
  color: var(--clr-text);
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border);
}

.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.prose p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--clr-muted);
  font-size: 0.925rem;
}

.prose li { margin-bottom: 0.4rem; }

/* ================================================
   TEAM
   ================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-brand), var(--clr-accent));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--clr-brand);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--clr-muted);
}

/* ================================================
   VALUES
   ================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
}

.value-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
}

/* ================================================
   PRICING
   ================================================ */
.pricing-section {
  padding: 4rem 0 5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin-inline: auto;
}

.pricing-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--clr-bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 2px var(--clr-brand);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-brand);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--clr-text);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.875rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-text);
}

.pricing-features li::before {
  content: '✓';
  color: var(--clr-brand);
  font-weight: 700;
  flex-shrink: 0;
}

/* ================================================
   BLOG
   ================================================ */
.blog-section {
  padding: 4rem 0 5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-bg);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-img.color-a { background: linear-gradient(135deg, #eef2ff, #c7d2fe); }
.blog-card-img.color-b { background: linear-gradient(135deg, #f0f9ff, #bae6fd); }
.blog-card-img.color-c { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); }
.blog-card-img.color-d { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.blog-card-img.color-e { background: linear-gradient(135deg, #fdf4ff, #e9d5ff); }
.blog-card-img.color-f { background: linear-gradient(135deg, #fff1f2, #fecdd3); }

.blog-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.blog-tag {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-brand);
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-brand);
  text-decoration: none;
  align-self: flex-start;
}

.read-more:hover { text-decoration: underline; }

/* ================================================
   STATUS PAGE
   ================================================ */
.status-section {
  padding: 3rem 0 5rem;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 600;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.status-group {
  margin-bottom: 2rem;
}

.status-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 0.6rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--clr-bg);
  font-size: 0.9rem;
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
}

.status-ok::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: block;
}

/* ================================================
   INTEGRATIONS
   ================================================ */
.integrations-section {
  padding: 4rem 0 5rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.integration-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.integration-icon { font-size: 2rem; }

.integration-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
}

/* ================================================
   API DOCS
   ================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.docs-sidebar-group { margin-bottom: 1.25rem; }

.docs-sidebar h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 0.4rem;
}

.docs-sidebar a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--clr-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.docs-sidebar a:hover { color: var(--clr-brand); }

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border);
}

.docs-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.docs-content p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  line-height: 1.75;
}

.docs-content code {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
}

.code-block {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
}

.code-block pre {
  color: #e2e8f0;
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre;
  margin: 0;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: var(--clr-bg);
}

.method {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
}

.method-get  { background: #dcfce7; color: #166534; }
.method-post { background: #dbeafe; color: #1e40af; }
.method-put  { background: #fef9c3; color: #854d0e; }
.method-del  { background: #fee2e2; color: #991b1b; }

.endpoint code {
  font-size: 0.875rem;
  background: none;
  border: none;
  padding: 0;
}

.endpoint-desc {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-left: auto;
}

/* ================================================
   SIGN-IN PROMPT (app pages)
   ================================================ */
.signin-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--clr-bg-alt);
}

.signin-box {
  max-width: 460px;
  margin-inline: auto;
  padding: 2.5rem;
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 2);
  background: var(--clr-bg);
  box-shadow: var(--shadow-md);
}

.signin-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.signin-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.signin-box p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.signin-box .btn + .btn { margin-left: 0.75rem; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ================================================
   CALCULATORS
   ================================================ */
.calc-section {
  padding: 4rem 0 5rem;
  background: var(--clr-bg-alt);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}

.calc-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.calc-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.input-with-prefix {
  position: relative;
}

.input-prefix-symbol {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-muted);
  font-size: 0.925rem;
  pointer-events: none;
}

.input-with-prefix input {
  padding-left: 1.75rem;
}

/* Segmented toggle (Add/Remove VAT) */
.toggle-group {
  display: flex;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-group label {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--clr-bg);
  color: var(--clr-muted);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  text-transform: none;
  letter-spacing: 0;
}

.toggle-group input[type="radio"]:checked + label {
  background: var(--clr-brand);
  color: #fff;
}

/* Results panel */
.result-empty {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--clr-muted);
  font-size: 0.875rem;
}

.result-summary {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--clr-border);
}

.result-label-sm {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted);
  margin-bottom: 0.3rem;
}

.result-big {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--clr-brand);
  line-height: 1;
}

.result-meta {
  font-size: 0.825rem;
  color: var(--clr-muted);
  margin-top: 0.35rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.result-table tr {
  border-bottom: 1px solid var(--clr-border);
}

.result-table tr:last-child {
  border-bottom: none;
}

.result-table td {
  padding: 0.5rem 0;
  color: var(--clr-muted);
  vertical-align: middle;
}

.result-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}

.result-table .row-total td {
  font-weight: 700;
  color: var(--clr-text);
  padding-top: 0.85rem;
  border-top: 2px solid var(--clr-border);
  border-bottom: none;
}

.result-table .row-total td:last-child {
  color: var(--clr-brand);
}

.result-table .row-strong td {
  font-weight: 600;
  color: var(--clr-text);
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--clr-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  line-height: 1.65;
}

/* Calculators landing grid */
.calc-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.calc-landing-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--clr-bg);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.calc-landing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.calc-landing-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.calc-landing-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-landing-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ================================================
   RESPONSIVE (continued)
   ================================================ */
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a.btn-nav {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   AUTH PAGES (login / signup)
   ================================================ */
.auth-section {
  min-height: calc(100vh - var(--header-h) - var(--disclaimer-h, 0px) - 220px);
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.auth-card .auth-subtitle {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

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

.auth-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--clr-text);
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 0.6);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--clr-brand) 0%, var(--clr-brand-dk) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
  letter-spacing: -0.1px;
}

.auth-submit:hover {
  box-shadow: 0 8px 24px rgba(22,163,74,.45);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: scale(0.98);
  box-shadow: none;
}

.auth-divider {
  text-align: center;
  color: var(--clr-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

.auth-divider a {
  color: var(--clr-brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-divider a:hover {
  text-decoration: underline;
}

.auth-notice {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 0.6);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
  text-align: center;
  margin-top: 1.5rem;
}

.auth-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.auth-success .success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.auth-success h2 {
  margin-bottom: 0.5rem;
}

.auth-success p {
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.auth-card input.field-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.auth-card input.field-valid {
  border-color: #38a169;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.12);
}

.error-msg {
  display: block;
  color: #e53e3e;
  font-size: 0.775rem;
  margin-top: 0.3rem;
}

/* Nav auth buttons */
.btn-nav-secondary {
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-nav-secondary:hover {
  border-color: var(--clr-brand);
  color: var(--clr-brand);
  background: rgba(22,163,74,.06);
  text-decoration: none;
}
