:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #536176;
  --line: #dfe7f1;
  --surface: #ffffff;
  --soft: #f6f8fc;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --shadow: 0 20px 60px rgba(35, 52, 91, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfcff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 231, 241, .82);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.025em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .2);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #415169;
  font-size: 14px;
  font-weight: 750;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--blue); }
.primary-nav .header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 13px;
  background: var(--ink);
  color: white;
}
.primary-nav .header-cta:hover { color: white; background: #23334d; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.learn-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 13% 22%, rgba(37, 99, 235, .18), transparent 29rem),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, .15), transparent 27rem),
    linear-gradient(180deg, #fff, #f6f8ff);
}
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 70px;
  padding-top: 70px;
  padding-bottom: 80px;
}
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 6.3vw, 76px);
  line-height: .99;
  letter-spacing: -.058em;
}
.hero-lead, .article-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-actions.centered { justify-content: center; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .25);
}
.button.secondary { border-color: #cfd9e8; background: white; }
.button.light { background: white; color: #172554; box-shadow: 0 14px 35px rgba(7, 17, 47, .16); }
.button.outline-light { border-color: rgba(255,255,255,.5); color: white; }
.hero-visual {
  position: relative;
  min-height: 430px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 5% 3% 8%;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(231,237,255,.78));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 35px 90px rgba(49, 65, 120, .18);
  transform: rotate(-4deg);
}
.visual-card {
  position: absolute;
  width: min(330px, 78%);
  padding: 24px;
  border: 1px solid rgba(221, 228, 241, .85);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.visual-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-card strong { font-size: 22px; letter-spacing: -.025em; }
.card-one { top: 8%; left: 1%; transform: rotate(-2deg); }
.card-two { top: 38%; right: 0; transform: rotate(2deg); }
.card-three { bottom: 1%; left: 9%; transform: rotate(-1deg); }
.category-nav {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  scrollbar-width: thin;
}
.category-nav a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #536176;
  font-size: 13px;
  font-weight: 800;
}
.category-nav a:hover, .category-nav a[aria-current="page"] {
  border-color: #a9c2f7;
  color: #1d4ed8;
  background: #eff5ff;
}
.topic-section, .category-articles, .related-section { padding-top: 92px; padding-bottom: 92px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading h2, .more-topics h2, .learn-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading > a { color: var(--blue); font-size: 14px; font-weight: 850; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.category-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 14px 38px rgba(31, 47, 83, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card > span, .article-count {
  color: #65738a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-card h2 { margin: 42px 0 12px; font-size: 24px; letter-spacing: -.035em; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.category-card strong { margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 13px; }
[data-category="estimates"] { --topic: #2563eb; --topic-soft: #eaf2ff; }
[data-category="expenses"] { --topic: #0f8a67; --topic-soft: #e6f8f2; }
[data-category="invoices"] { --topic: #6d40d8; --topic-soft: #f0ebff; }
[data-category="taxes"] { --topic: #c15a12; --topic-soft: #fff1e6; }
[data-category="time-tracking"] { --topic: #be185d; --topic-soft: #fdeaf3; }
.category-card[data-category] { border-top: 4px solid var(--topic); }
.category-card[data-category] > span { color: var(--topic); }
.article-groups { padding-bottom: 30px; }
.article-group { padding: 88px 0; border-top: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(31, 47, 83, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: #b6c7e0; box-shadow: var(--shadow); }
.article-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #768399;
  font-size: 12px;
  font-weight: 800;
}
.category-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--topic-soft);
  color: var(--topic);
  font-size: 12px;
  font-weight: 900;
}
.article-card-top .category-label { padding: 0; background: transparent; }
.article-card h3 { margin: 30px 0 13px; font-size: 23px; line-height: 1.18; letter-spacing: -.035em; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card { position: relative; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.66; }
.card-link { margin-top: auto; padding-top: 22px; color: var(--topic, var(--blue)); font-size: 13px; font-weight: 900; }
.learn-cta {
  margin-top: 70px;
  margin-bottom: 90px;
  padding: 68px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 15%, rgba(96,165,250,.28), transparent 28rem),
    linear-gradient(135deg, #172554, #1d4ed8 58%, #5b21b6);
  color: white;
  text-align: center;
  box-shadow: 0 30px 80px rgba(37, 99, 235, .25);
}
.learn-cta .eyebrow { color: #bfdbfe; }
.learn-cta h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.learn-cta p:not(.eyebrow) { max-width: 680px; margin: 18px auto 0; color: #dbeafe; font-size: 18px; line-height: 1.65; }
.learn-cta.compact { padding-top: 54px; padding-bottom: 54px; }
.category-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--topic) 17%, transparent), transparent 29rem),
    linear-gradient(180deg, #fff, var(--topic-soft));
}
.category-hero .wrap { padding-top: 38px; padding-bottom: 80px; }
.category-hero h1 { color: var(--topic); }
.category-hero .article-count {
  display: inline-flex;
  margin-top: 26px;
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  color: var(--topic);
}
.breadcrumbs { margin-bottom: 58px; color: #708097; font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; gap: 9px; }
.breadcrumbs a:hover { color: var(--blue); }
.more-topics { padding-top: 20px; padding-bottom: 90px; }
.more-topics > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.more-topics > div a {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}
.article-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--topic) 14%, transparent), transparent 30rem),
    linear-gradient(180deg, white, var(--topic-soft));
}
.article-hero-inner { padding-top: 38px; padding-bottom: 84px; }
.article-hero .breadcrumbs { margin-bottom: 54px; }
.article-hero h1 { max-width: 940px; margin-top: 22px; font-size: clamp(43px, 6vw, 72px); }
.article-summary { max-width: 840px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: #68778d;
  font-size: 13px;
  font-weight: 700;
}
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 74px;
}
.article-toc {
  position: sticky;
  top: 105px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: #536176;
  font-size: 13px;
}
.article-toc strong { display: block; margin-bottom: 13px; color: var(--ink); font-size: 14px; }
.article-toc ol { display: grid; gap: 10px; margin: 0; padding-left: 19px; }
.article-toc a:hover { color: var(--blue); }
.article-body { min-width: 0; }
.article-intro {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.76;
  letter-spacing: -.012em;
}
.article-intro p:first-child { margin-top: 0; }
.article-section { padding-top: 58px; scroll-margin-top: 100px; }
.article-section h2 {
  margin: 0 0 22px;
  font-size: clamp(29px, 4vw, 39px);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.article-section p {
  margin: 0 0 19px;
  color: #344258;
  font-size: 17px;
  line-height: 1.79;
}
.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 21px 24px 21px 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: #344258;
  line-height: 1.58;
}
.check-list li::marker { color: var(--blue); }
.editorial-note {
  margin: 34px 0 0;
  padding: 20px 22px;
  border: 1px solid #f2c894;
  border-radius: 16px;
  background: #fff8eb;
  color: #75410e;
  line-height: 1.65;
}
.sources ul { display: grid; gap: 10px; padding-left: 20px; }
.sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-list details { border: 1px solid var(--line); border-radius: 17px; background: white; }
.faq-list summary { padding: 20px 22px; cursor: pointer; font-weight: 850; }
.faq-list details p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.7; }
.related-section { border-top: 1px solid var(--line); }
.site-footer {
  border-top: 1px solid var(--line);
  background: #f6f8fc;
  color: #5d6b80;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 55px;
  padding-top: 58px;
  padding-bottom: 45px;
}
.footer-brand { color: var(--ink); }
.footer-grid p { max-width: 310px; line-height: 1.65; }
.footer-grid h2 { margin: 6px 0 18px; color: var(--ink); font-size: 14px; }
.footer-links { display: grid; gap: 11px; font-size: 13px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { padding: 20px 0 38px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 66px; }
  .primary-nav > a:not(.header-cta):not([aria-current="page"]) { display: none; }
  .primary-nav { gap: 12px; }
  .primary-nav .header-cta { min-height: 39px; padding: 0 13px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-top: 58px; padding-bottom: 62px; }
  h1 { font-size: 47px; }
  .hero-lead, .article-summary { font-size: 18px; }
  .hero-visual { min-height: 345px; }
  .visual-card { width: 82%; padding: 20px; }
  .topic-section, .category-articles, .related-section { padding-top: 66px; padding-bottom: 66px; }
  .category-grid, .article-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 230px; }
  .article-card { min-height: 280px; }
  .article-group { padding: 66px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .learn-cta { margin-top: 45px; margin-bottom: 66px; padding: 45px 20px; border-radius: 27px; }
  .button { width: 100%; }
  .category-hero .wrap, .article-hero-inner { padding-bottom: 60px; }
  .breadcrumbs { margin-bottom: 40px; }
  .article-hero h1 { font-size: 43px; }
  .article-layout { display: block; padding-top: 45px; }
  .article-toc { position: static; margin-bottom: 36px; }
  .article-intro { font-size: 18px; }
  .article-section { padding-top: 47px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .primary-nav a[aria-current="page"] { display: none; }
  h1, .article-hero h1 { font-size: 39px; }
  .hero-visual { min-height: 310px; }
  .visual-card strong { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
