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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --soft: #eef7f5;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e2e8;
  --brand: #134e4a;
  --brand-dark: #0f3d39;
  --accent: #f59e0b;
  --shadow: 0 20px 40px rgba(2, 12, 27, 0.08);
  --radius: 22px;
  --radius-sm: 16px;
  --container: min(1120px, calc(100% - 2rem));
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container { width: var(--container); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: #111827;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .5rem;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  gap: .9rem;
  align-items: center;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.brand strong {
  display: block;
  font-size: 1rem;
}
.brand small {
  color: var(--muted);
  display: block;
  font-size: .8rem;
}
.primary-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
  align-items: center;
}
.primary-nav a,
.dropdown-trigger {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.primary-nav a.active,
.primary-nav a:hover,
.dropdown-trigger:hover { color: var(--brand-dark); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 250px;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .8rem;
  box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: flex; }
.dropdown-panel a { padding: .65rem .75rem; border-radius: 12px; }
.dropdown-panel a:hover { background: #f8fafc; }

.nav-toggle {
  display: none;
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 12px 24px rgba(19, 78, 74, 0.22);
}
.btn-secondary {
  background: white;
  color: var(--brand-dark);
  border-color: var(--line);
}
.btn-small { padding: .7rem 1rem; font-size: .92rem; }

.hero,
.sub-hero {
  padding: 5rem 0 3rem;
}
.hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hero-grid,
.split-panel,
.two-col,
.footer-grid,
.calculator-grid {
  display: grid;
  gap: 1.4rem;
}
.hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }

.hero-copy h1,
.sub-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: .35rem 0 1rem;
  letter-spacing: -0.03em;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: .79rem;
}
.hero-actions,
.centered-action { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.centered-action { justify-content: center; }
.trust-row,
.check-list,
.footer-links,
.pill-group {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}
.trust-row li::before,
.check-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: .55rem;
  font-weight: 900;
}
.hero-card,
.info-card,
.form-panel,
.cta-panel,
.tool-card,
.blog-card,
.calculator-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.5rem; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.metric-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfffe;
}
.metric-grid strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-dark);
}
.feature-stack {
  display: grid;
  gap: .8rem;
  margin-top: .9rem;
}
.feature-stack > div {
  padding: 1rem;
  border-radius: 18px;
  background: var(--soft);
}

.section { padding: 4.2rem 0; }
.section-soft { background: var(--soft); }
.section-dark {
  background: linear-gradient(135deg, var(--brand-dark), #082f2d);
  color: white;
}
.section-head {
  margin-bottom: 1.6rem;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: .35rem 0 .65rem;
}
.section-head.light p,
.section-head.light h2 { color: white; }

.pill-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.pill-group span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  padding: .7rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.info-card,
.blog-card,
.form-panel,
.cta-panel,
.tool-card,
.calculator-card {
  padding: 1.35rem;
}
.info-card h3, .blog-card h3, .tool-card h3, .calculator-card h2 { margin-top: 0; }
.info-card.tall { height: 100%; }
.text-link {
  color: var(--brand);
  font-weight: 700;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.step-grid article {
  padding: 1.2rem;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
}
.step-grid span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(19, 78, 74, 0.08);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: .8rem;
}

.split-panel {
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}
.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.cta-panel {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: white;
}
.cta-panel p { color: rgba(255,255,255,.86); }
.form-panel {
  position: sticky;
  top: 110px;
}
.form-grid {
  display: grid;
  gap: .95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full-width { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 700;
  margin-bottom: .38rem;
  font-size: .95rem;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #c9d6dd;
  border-radius: 14px;
  padding: .95rem 1rem;
  font: inherit;
  color: var(--text);
  background: white;
}
input:focus, select:focus, textarea:focus, summary:focus {
  outline: 3px solid rgba(245, 158, 11, 0.2);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-note,
.micro-copy,
.meta-row {
  color: var(--muted);
  font-size: .92rem;
}
.honey-wrapper {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.mini-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tool-card { min-height: 170px; }

.badge {
  display: inline-flex;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(19, 78, 74, 0.08);
  color: var(--brand);
  font-weight: 800;
  font-size: .78rem;
}

.testimonial-shell { position: relative; }
.testimonial-slider {
  display: grid;
  gap: 1rem;
}
.testimonial {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 1.4rem;
}
.testimonial.active { display: block; }
.slider-controls {
  display: flex;
  gap: .6rem;
}
.slider-controls button {
  background: white;
  color: var(--brand-dark);
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 700;
}

.faq-list { display: grid; gap: .75rem; }
details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .95rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details p { color: var(--muted); margin-bottom: .3rem; }

.footer-grid {
  grid-template-columns: 1.15fr .8fr .8fr .9fr;
  padding: 3rem 0 1.5rem;
}
.site-footer {
  background: #0b1723;
  color: #d7e1ea;
}
.site-footer h3,
.site-footer h4 { color: white; margin-top: 0; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #d7e1ea; }
.footer-links a:hover { color: white; }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.footer-badges span {
  background: rgba(255,255,255,.08);
  padding: .55rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0 5rem;
}
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.article-shell {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}
.cta-banner {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff7e6, #fff);
  border: 1px solid #f6d899;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.result-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed #bed3da;
}
.result-box strong {
  display: block;
  margin-bottom: .7rem;
  font-size: 1.4rem;
  color: var(--brand-dark);
}
.contact-card-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  background: rgba(11, 23, 35, 0.96);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .6rem;
  gap: .6rem;
  z-index: 120;
}
.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  background: white;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .85rem .5rem;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .hero-grid, .split-panel, .two-col, .footer-grid, .calculator-grid {
    grid-template-columns: 1fr;
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-tool-grid { grid-template-columns: 1fr; }
  .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-panel { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 82px;
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .nav-actions { flex-direction: column; }
  .has-dropdown { position: static; }
  .dropdown-panel {
    position: static;
    display: flex;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: .6rem;
  }
}

@media (max-width: 640px) {
  .hero, .sub-hero { padding: 4rem 0 2rem; }
  .section { padding: 3rem 0; }
  .card-grid,
  .step-grid,
  .form-grid,
  .form-grid.compact { grid-template-columns: 1fr; }
  .footer-bottom,
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-card, .info-card, .blog-card, .form-panel, .cta-panel, .tool-card, .calculator-card { padding: 1.1rem; }
  .mobile-cta-bar { display: flex; }
  .site-footer { padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
