:root {
  --bg: #ffffff;
  --ink: #071936;
  --muted: #5b6678;
  --line: #dfe6ef;
  --soft: #f4f8fb;
  --soft-2: #ecf6f1;
  --green: #087d43;
  --green-dark: #055c32;
  --navy: #03152f;
  --shadow: 0 18px 55px rgba(7, 25, 54, 0.12);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.advice-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #075a33, #098346);
  color: white;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 230, 239, 0.85);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 750;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-menu a {
  padding: 8px 0;
  color: #1b2941;
  border-bottom: 2px solid transparent;
}

.site-menu a:hover,
.site-menu a:focus { border-color: var(--green); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav-cta,
.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(8, 125, 67, 0.22);
}

.button.secondary {
  color: var(--green-dark);
  background: white;
  border-color: var(--green);
}

.button.secondary.dark {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.menu-toggle { display: none; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.78fr);
  gap: 56px;
  align-items: center;
  min-height: auto;
  padding-top: 14px;
  padding-bottom: 10px;
}

.trust-line,
.section-heading span,
.section-kicker,
.why-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(39px, 3.9vw, 48px);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.28;
}

.hero-lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  padding-left: 22px;
  color: #2b394f;
  font-size: 13px;
  font-weight: 650;
}

.check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--green) 0 3px, transparent 4px);
}

.credentials {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: #516073;
  font-size: 12px;
}

.credentials span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.dashboard-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcff, #ffffff);
  box-shadow: var(--shadow);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-top h2 {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
}

.mini-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.tax-calendar,
.health-grid,
.pipeline {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.calendar-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.calendar-row:last-child { border-bottom: 0; }

.calendar-row time {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--green-dark);
  line-height: 1;
}

.calendar-row time strong { font-size: 18px; }
.calendar-row time span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-row b { display: block; font-size: 14px; }
.calendar-row small { color: var(--muted); font-size: 12px; }
.calendar-row em { color: var(--green); font-size: 12px; font-style: normal; font-weight: 800; }

.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
}

.score {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score svg {
  width: 90px;
  height: 90px;
}

.score circle {
  fill: none;
  stroke: #e7edf4;
  stroke-width: 12;
}

.score .progress {
  stroke: #1fb772;
  stroke-dasharray: 286 290;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.score text {
  fill: var(--navy);
  font: 800 22px var(--sans);
}

.mini-bars strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.mini-bars span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-bars div {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 48px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.mini-bars i {
  width: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #72d59e, #0f8f54);
}

.pipeline {
  margin-top: 12px;
  padding: 12px 14px;
}

.pipeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pipeline p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  color: #2b394f;
  font-weight: 700;
}

.pipeline p::after {
  content: "Scheduled";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-strip {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-strip span {
  color: var(--muted);
  margin-left: 10px;
}

.service-strip a {
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p,
.why-copy p,
.split-section p {
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.tool-card,
.proof-grid article,
.article-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-card {
  min-height: 230px;
  padding: 22px;
}

.service-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--green-dark);
  font-weight: 900;
}

.service-card p,
.tool-card span,
.proof-grid p,
.article-grid span {
  color: var(--muted);
  font-size: 14px;
}

.service-card a,
.tool-card::after {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.tools-section {
  max-width: none;
  background: var(--soft);
}

.tools-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  position: relative;
  min-height: 154px;
  padding: 22px;
}

.tool-card strong,
.tool-card span {
  display: block;
}

.tool-card span { margin-top: 10px; }
.tool-card::after { content: "Try now"; position: absolute; left: 22px; bottom: 18px; }

.why {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 50px;
  align-items: center;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proof-grid article { padding: 20px; }
.proof-grid p { margin-bottom: 0; }

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.location-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2b394f;
  font-weight: 700;
}

.map-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eef7f2);
}

.map-card svg {
  width: 100%;
  height: auto;
}

.map-card path {
  fill: #dce8f1;
  stroke: #9fb3c7;
  stroke-width: 2;
}

.map-card circle { fill: var(--green); }
.map-card text { fill: var(--navy); font: 700 13px var(--sans); }

.blog-section {
  padding-top: 44px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid article {
  overflow: hidden;
}

.article-grid span,
.article-grid h3 {
  display: block;
  margin: 18px 18px 0;
}

.article-grid h3 {
  margin-bottom: 22px;
  font-size: 20px;
}

.article-image {
  height: 150px;
  background:
    linear-gradient(135deg, rgba(3, 21, 47, 0.12), rgba(8, 125, 67, 0.18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.45) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #dfe8f0, #f7fbfd);
}

.article-image.business {
  background:
    linear-gradient(135deg, rgba(3, 21, 47, 0.08), rgba(8, 125, 67, 0.18)),
    radial-gradient(circle at 30% 32%, #ffffff 0 9%, transparent 10%),
    linear-gradient(135deg, #e7edf4, #f5faf7);
}

.article-image.property {
  background:
    linear-gradient(135deg, rgba(3, 21, 47, 0.1), rgba(8, 125, 67, 0.12)),
    linear-gradient(90deg, transparent 0 30%, rgba(255,255,255,.68) 30% 32%, transparent 32% 65%, rgba(255,255,255,.68) 65% 67%, transparent 67%),
    linear-gradient(135deg, #dae4ee, #f7fbff);
}

.cta-section {
  padding-top: 34px;
}

.affiliate-section {
  padding-top: 28px;
}

.affiliate-panel {
  display: grid;
  grid-template-columns: 0.95fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff, #eef8f2);
}

.affiliate-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 38px);
}

.affiliate-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.affiliate-steps {
  display: grid;
  gap: 10px;
}

.affiliate-steps article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.affiliate-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}

.affiliate-steps span {
  color: #2b394f;
  font-size: 14px;
  font-weight: 700;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  color: white;
}

.cta-panel > div,
.cta-panel address {
  padding: 42px;
}

.cta-panel p {
  max-width: 550px;
  color: rgba(255,255,255,.78);
}

.cta-panel address {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    linear-gradient(135deg, #dce8f0, #f7fafb);
  color: var(--ink);
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: var(--navy);
  color: white;
}

.footer-brand .brand-mark {
  background: white;
  color: var(--navy);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 750;
}

.legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
  }

  .site-menu,
  .nav-cta {
    display: none;
  }

  .site-menu.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .site-menu.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .why,
  .split-section,
  .cta-panel,
  .affiliate-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .dashboard-card {
    max-width: 620px;
  }

  .service-grid,
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip span {
    display: block;
    margin: 4px 0 0;
  }
}

@media (max-width: 640px) {
  .advice-bar {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }

  .section {
    padding: 54px 18px;
  }

  .nav-shell {
    padding: 14px 18px;
  }

  .brand strong { font-size: 22px; }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button,
  .nav-cta {
    width: 100%;
  }

  .check-grid,
  .health-grid,
  .service-grid,
  .tools-grid,
  .proof-grid,
  .article-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .calendar-row {
    grid-template-columns: 48px 1fr;
  }

  .calendar-row em {
    grid-column: 2;
  }

  .cta-panel > div,
  .cta-panel address {
    padding: 28px;
  }
}
