:root {
  --navy: #0b1f3a;
  --navy-2: #102a4c;
  --blue: #175cd3;
  --blue-2: #0f4fb7;
  --emerald: #0e9f6e;
  --emerald-2: #087a55;
  --ink: #172033;
  --muted: #5b667a;
  --line: #dce4ed;
  --soft: #f3f7fb;
  --soft-blue: #eaf2ff;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --shadow-sm: 0 8px 30px rgba(22, 52, 88, 0.08);
  --shadow-lg: 0 28px 80px rgba(12, 36, 68, 0.16);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 78px;
}

[data-theme="dark"] {
  --navy: #e7efff;
  --navy-2: #c8d9f6;
  --blue: #75a7ff;
  --blue-2: #9abfff;
  --emerald: #46d7a5;
  --emerald-2: #7ae5bd;
  --ink: #edf3fb;
  --muted: #abb9cc;
  --line: #263952;
  --soft: #0c1828;
  --soft-blue: #10233f;
  --white: #091422;
  --surface: #0b1726;
  --surface-raised: #122238;
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.45rem, 5.6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.22rem;
}

::selection {
  background: rgba(23, 92, 211, 0.18);
}

:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.55);
  outline-offset: 3px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.topbar {
  background: #07182f;
  color: #dce9fa;
  font-size: 0.82rem;
  text-align: center;
}

.topbar .shell {
  padding-block: 8px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(19, 42, 72, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #175cd3, #0e9f6e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 92, 211, 0.22);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1rem;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.67rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--soft-blue);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.menu-toggle {
  display: none;
}

.menu-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav .shell {
  display: grid;
  padding-block: 10px 18px;
}

.mobile-nav .nav-link {
  padding: 12px 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 92, 211, 0.24);
}

.button-primary:hover {
  background: var(--blue-2);
  box-shadow: 0 16px 34px rgba(23, 92, 211, 0.3);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button-light {
  background: #fff;
  color: #0b1f3a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 750;
}

.text-link .icon {
  width: 17px;
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #7be0bd;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(23, 92, 211, 0.13), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(14, 159, 110, 0.1), transparent 28%),
    var(--surface);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 92, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 92, 211, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 70px;
  padding-block: 84px 92px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 25px;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust .icon {
  width: 17px;
  color: var(--emerald);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  isolation: isolate;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23, 92, 211, 0.18);
  border-radius: 50%;
}

.orbit-one {
  inset: 5% 6% 8% 4%;
}

.orbit-two {
  inset: 14% 0 0 15%;
}

.dashboard-card {
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.main-dashboard {
  position: absolute;
  inset: 44px 18px 46px 34px;
  padding: 26px;
  transform: rotate(-1.5deg);
  border-radius: 26px;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dash-head > div {
  display: grid;
}

.dash-head strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.mini-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 159, 110, 0.12);
  color: var(--emerald);
  font-size: 0.69rem;
  font-weight: 800;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.dash-metrics > div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.dash-metrics small {
  color: var(--muted);
  font-weight: 700;
}

.metric-lines {
  display: grid;
  gap: 7px;
}

.metric-lines i {
  height: 9px;
  border-radius: 5px;
  background: var(--blue);
}

.metric-lines i:last-child {
  width: 65%;
  background: var(--emerald);
}

.donut {
  width: 49px;
  height: 49px;
  margin-inline: auto;
  border: 9px solid var(--blue);
  border-right-color: var(--emerald);
  border-radius: 50%;
}

.bars {
  height: 51px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.bars i {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
}

.bars i:nth-child(1) { height: 40%; }
.bars i:nth-child(2) { height: 76%; }
.bars i:nth-child(3) { height: 57%; background: var(--emerald); }
.bars i:nth-child(4) { height: 88%; }

.activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.activity > span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--soft-blue);
}

.activity > div {
  display: grid;
  gap: 6px;
}

.activity i {
  width: 68%;
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}

.activity i:first-child {
  width: 40%;
  background: color-mix(in srgb, var(--muted) 50%, var(--line));
}

.activity b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 159, 110, 0.12);
  color: var(--emerald);
  font-size: 0.75rem;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.floating-card .icon {
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 9px;
  background: var(--soft-blue);
  color: var(--blue);
}

.floating-card div {
  display: grid;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.floating-card strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.invoice-float {
  top: 16px;
  right: -8px;
}

.task-float {
  bottom: 17px;
  left: -8px;
}

.task-float .icon {
  background: rgba(14, 159, 110, 0.12);
  color: var(--emerald);
}

.logo-strip {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.logo-strip .shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 34px;
  padding-block: 25px;
}

.logo-strip p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.logo-strip .shell > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section {
  padding-block: 100px;
}

.section.no-top {
  padding-top: 30px;
}

.section-tint {
  background: var(--soft);
}

.section-dark {
  background:
    radial-gradient(circle at 90% 15%, rgba(42, 120, 225, 0.25), transparent 32%),
    #081a31;
  color: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 2px;
}

.section-heading.inverse h2,
.section-heading.inverse p {
  color: #fff;
}

.section-heading.inverse p {
  color: #b7c8db;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}

.category-icon {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
}

.category-icon .icon {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  margin-bottom: 10px;
}

.category-card p {
  max-width: 310px;
  margin-bottom: 0;
  font-size: 0.91rem;
}

.card-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--blue);
}

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

.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(12, 36, 68, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.tool-card[hidden],
.article-card[hidden] {
  display: none !important;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.tool-logo {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.tool-logo.large {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  font-size: 1rem;
}

.tool-logo.sky { background: #e7f6ff; color: #0577b9; }
.tool-logo.ink { background: #edf0f3; color: #1d2939; }
.tool-logo.violet { background: #f2eaff; color: #7a36ca; }
.tool-logo.emerald { background: #e8faf3; color: #07815a; }
.tool-logo.amber { background: #fff5dc; color: #9b6500; }

[data-theme="dark"] .tool-logo.sky,
[data-theme="dark"] .tool-logo.ink,
[data-theme="dark"] .tool-logo.violet,
[data-theme="dark"] .tool-logo.emerald,
[data-theme="dark"] .tool-logo.amber {
  background: var(--soft-blue);
  color: var(--blue);
}

.category-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.tool-card h3 {
  margin-bottom: 11px;
  font-size: 1.35rem;
}

.tool-card > p {
  flex: 1;
  margin-bottom: 22px;
  font-size: 0.91rem;
}

.ideal {
  display: grid;
  gap: 3px;
  margin-bottom: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.ideal strong {
  color: var(--ink);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ideal span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.75fr);
  align-items: center;
  gap: 90px;
}

.feature-copy h2 {
  margin-bottom: 22px;
}

.feature-copy > p {
  max-width: 660px;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 650;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list .icon {
  width: 19px;
  color: var(--emerald);
}

.feature-panel {
  position: relative;
  padding: 38px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(84, 169, 255, 0.26), transparent 30%),
    #0b2545;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.feature-panel::after {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.panel-kicker {
  color: #78dfbd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-panel h3 {
  max-width: 390px;
  margin: 14px 0 30px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.panel-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-step span {
  color: #78dfbd;
  font-size: 0.78rem;
  font-weight: 800;
}

.panel-step p {
  margin: 0;
  color: #d5e2f0;
  font-size: 0.9rem;
}

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

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.article-visual {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 92, 211, 0.93), rgba(11, 31, 58, 0.96)),
    var(--navy);
}

.article-visual::before,
.article-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.article-visual::before {
  width: 180px;
  height: 180px;
  top: -85px;
  right: -42px;
}

.article-visual::after {
  width: 110px;
  height: 110px;
  top: -30px;
  right: -5px;
}

.article-visual > span {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.article-visual small {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 750;
}

.article-body {
  padding: 23px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.article-card h3 {
  min-height: 2.7em;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.article-card h3 a:hover {
  color: var(--blue);
}

.article-card p {
  min-height: 5.3em;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7e3f0;
  font-size: 0.82rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin: 13px 0 0;
  color: #aebfd1;
  font-size: 0.75rem;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.methodology .shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  gap: 90px;
}

.method-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.method-intro h2 {
  margin-bottom: 20px;
}

.method-intro p {
  margin-bottom: 24px;
}

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

.criterion {
  min-height: 135px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--soft);
}

.criterion span {
  color: var(--emerald);
  font-size: 0.73rem;
  font-weight: 850;
}

.criterion p {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.affiliate-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-block: 50px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.affiliate-note > .icon {
  width: 25px;
  height: 25px;
  color: var(--emerald);
}

.affiliate-note strong {
  color: var(--ink);
}

.affiliate-note p {
  margin: 3px 0 0;
  font-size: 0.84rem;
}

.newsletter-section {
  padding: 70px 0;
  background: var(--soft);
}

.newsletter-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding: 46px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(27, 127, 216, 0.35), transparent 34%),
    #081a31;
  box-shadow: var(--shadow-lg);
}

.newsletter-card h2,
.newsletter-card p {
  color: #fff;
}

.newsletter-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.newsletter-card p {
  color: #b9c9da;
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.newsletter-form label {
  color: #fff;
}

label > span[aria-hidden="true"] {
  display: inline;
  color: #ef4444;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
}

.newsletter-form input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: #aebfd1;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.check-field {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.check-field input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.check-field a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.8rem;
}

.form-status.success {
  color: #6fe6bd;
}

.form-status.error {
  color: #ff9c9c;
}

.site-footer {
  padding-top: 70px;
  background: #061426;
  color: #c8d5e5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 50px;
  padding-bottom: 55px;
}

.footer-brand strong,
.footer-brand small {
  color: #fff;
}

.footer-about > p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #91a5bc;
  font-size: 0.85rem;
}

.footer-about .contact-placeholder {
  color: #c8d5e5;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-links a,
.social-links span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: #91a5bc;
  font-size: 0.72rem;
}

.social-links a:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.social-links span {
  cursor: help;
}

.site-footer h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  color: #91a5bc;
  font-size: 0.84rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: #8095ad;
  font-size: 0.74rem;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  width: min(560px, calc(100% - 40px));
  display: none;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.cookie-banner.visible {
  display: grid;
}

.cookie-banner strong {
  color: var(--ink);
}

.cookie-banner p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.cookie-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.8rem;
}

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.page-hero {
  padding-block: 72px 78px;
}

.page-hero.compact {
  padding-bottom: 52px;
}

.page-hero .shell {
  max-width: 900px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
  margin-right: auto;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.2vw, 4.65rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.directory-controls {
  position: sticky;
  z-index: 20;
  top: 88px;
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(15px);
}

.search-box {
  position: relative;
  display: block;
}

.search-box .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  padding-left: 48px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip,
.page-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.active,
.page-button:hover,
.page-button.active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.results-message {
  min-height: 1.2em;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.official-links-panel {
  margin-top: 45px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.official-links-panel h2 {
  margin-bottom: 9px;
  font-size: 1.4rem;
}

.official-links-panel > p {
  font-size: 0.87rem;
}

.official-links-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.official-links-panel a,
.source-box a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.official-links-panel .icon,
.source-box .icon,
.article-sources .icon {
  width: 15px;
}

.freshbooks-hero {
  padding-block: 68px 76px;
  background:
    radial-gradient(circle at 90% 20%, rgba(23, 92, 211, 0.14), transparent 28%),
    var(--soft);
}

.freshbooks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 80px;
}

.freshbooks-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 5.3vw, 4.7rem);
}

.freshbooks-hero p {
  max-width: 680px;
  font-size: 1.05rem;
}

.freshbooks-hero .microcopy {
  margin: 13px 0 0;
  font-size: 0.72rem;
}

.product-summary {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-summary > div:not(:first-child) {
  display: grid;
  gap: 3px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.product-summary small {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-summary strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.evaluation-box {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: -25px;
  padding: 23px 25px;
  border: 1px solid rgba(14, 159, 110, 0.25);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 96%, #e9fff7);
  box-shadow: var(--shadow-sm);
}

.evaluation-box > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(14, 159, 110, 0.1);
  color: var(--emerald);
}

.evaluation-box p {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.89rem;
}

.prose-intro {
  max-width: 830px;
  margin-inline: auto;
}

.prose-intro h2 {
  margin-bottom: 22px;
}

.prose-intro p {
  font-size: 1.01rem;
}

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

.function-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.function-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
}

.function-card p {
  margin: 0;
  font-size: 0.88rem;
}

.two-column-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.rich-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.rich-list li {
  padding: 16px 18px;
  border-left: 3px solid var(--emerald);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.rich-list strong {
  color: var(--ink);
}

.rich-list.warning li {
  border-left-color: #e0a124;
}

.use-cases h2 {
  max-width: 700px;
  margin-bottom: 40px;
  color: #fff;
}

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

.use-case-grid article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.use-case-grid span {
  color: #6ee0b8;
  font-size: 0.76rem;
  font-weight: 850;
}

.use-case-grid h3 {
  margin: 20px 0 12px;
  color: #fff;
}

.use-case-grid p {
  margin: 0;
  color: #b5c7d9;
  font-size: 0.87rem;
}

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

.alternative-grid article,
.route-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.alternative-grid p,
.route-grid p {
  margin: 0;
  font-size: 0.88rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(480px, 1.3fr);
  gap: 80px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  color: var(--blue);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item > div {
  padding: 0 20px 17px;
}

.faq-item p {
  margin: 0;
  font-size: 0.87rem;
}

.conclusion-section .narrow > p {
  font-size: 1.03rem;
}

.source-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.source-box strong {
  width: 100%;
  color: var(--ink);
}

.comparison-intro {
  max-width: 770px;
  margin-bottom: 34px;
}

.comparison-intro h2 {
  font-size: 2rem;
}

.comparison-table {
  border-color: var(--line);
  background: var(--surface);
}

.comparison-table th {
  background: var(--navy-2);
  color: #fff;
}

[data-theme="dark"] .comparison-table th {
  background: #172d49;
}

.comparison-table td {
  border-bottom-color: var(--line);
  color: var(--muted);
}

.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

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

.decision-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.decision-card span {
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 850;
}

.decision-card h3 {
  margin: 24px 0 10px;
}

.decision-card p {
  margin: 0;
  font-size: 0.86rem;
}

.callout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 25px;
  border-left: 4px solid var(--emerald);
  border-radius: 0 15px 15px 0;
  background: var(--surface);
}

.callout strong {
  color: var(--ink);
}

.callout p {
  margin: 0;
}

.route-grid article > span {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route-grid h3 {
  margin: 20px 0 11px;
}

.guide-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  margin-bottom: 90px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(44, 136, 240, 0.35), transparent 36%),
    #071a32;
  box-shadow: var(--shadow-lg);
}

.guide-feature h2,
.guide-feature p {
  color: #fff;
}

.guide-feature p {
  color: #b8cadc;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-steps > span {
  display: grid;
  align-content: center;
  min-height: 115px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: #72e0bb;
  font-size: 0.75rem;
  font-weight: 850;
}

.guide-steps small {
  margin-top: 10px;
  color: #fff;
  font-size: 0.84rem;
}

.guide-heading {
  margin-top: 0;
}

.blog-controls {
  position: static;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
}

.page-button {
  min-width: 42px;
  border-radius: 11px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 80px;
}

.about-statement p {
  font-size: 1rem;
}

.about-card {
  align-self: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.about-card > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 15px;
  background: rgba(14, 159, 110, 0.12);
  color: var(--emerald);
}

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

.principle-card {
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle-card > span {
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 850;
}

.principle-card h3 {
  margin: 34px 0 12px;
}

.principle-card p {
  margin: 0;
  font-size: 0.86rem;
}

.selection-process {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 80px;
}

.selection-process ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selection-process li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.selection-process li > span {
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 850;
}

.selection-process h3 {
  margin-bottom: 8px;
}

.selection-process p {
  margin: 0;
  font-size: 0.89rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(480px, 1.25fr);
  gap: 80px;
}

.contact-info > p {
  margin-bottom: 35px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.contact-method > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--soft-blue);
  color: var(--blue);
}

.contact-method > div {
  min-width: 0;
  display: grid;
}

.contact-method small {
  color: var(--muted);
  font-size: 0.7rem;
}

.contact-method strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
}

.contact-tip {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid #d09a29;
  border-radius: 0 13px 13px 0;
  background: #fff8e9;
}

[data-theme="dark"] .contact-tip {
  background: #302611;
}

.contact-tip strong {
  color: var(--ink);
}

.contact-tip p {
  margin: 5px 0 0;
  font-size: 0.82rem;
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.field-error {
  min-height: 1em;
  color: #c73238;
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-status {
  padding: 0;
  border-radius: 10px;
}

.contact-status.success,
.contact-status.error {
  padding: 11px 13px;
}

.contact-status.success {
  background: rgba(14, 159, 110, 0.1);
  color: var(--emerald-2);
}

.contact-status.error {
  background: rgba(229, 72, 77, 0.1);
  color: #b52d32;
}

.legal-hero {
  padding-block: 65px 80px;
}

.legal-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.updated {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 70px;
}

.legal-note {
  position: sticky;
  top: 120px;
  padding: 22px;
  border: 1px solid #e9cf92;
  border-radius: 15px;
  background: #fff8e9;
}

[data-theme="dark"] .legal-note {
  border-color: #5e4a1e;
  background: #302611;
}

.legal-note strong {
  color: var(--ink);
}

.legal-note p {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.legal-prose {
  max-width: 760px;
}

.legal-prose section {
  margin-bottom: 40px;
}

.legal-prose h2 {
  margin-bottom: 13px;
  font-size: 1.45rem;
}

.legal-prose p {
  font-size: 0.96rem;
}

.article-header {
  padding-block: 75px 48px;
  text-align: center;
}

.article-header .category-label {
  margin-bottom: 23px;
}

.article-header h1 {
  margin-bottom: 25px;
  font-size: clamp(2.45rem, 5vw, 4.45rem);
}

.article-lead {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 1.08rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.article-byline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-byline .icon {
  width: 16px;
}

.author-line {
  margin: 15px 0 0;
  font-size: 0.78rem;
}

.article-cover {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 144, 230, 0.42), transparent 30%),
    radial-gradient(circle at 85% 75%, rgba(14, 159, 110, 0.28), transparent 26%),
    #071a32;
}

.article-cover > div {
  display: grid;
  justify-items: center;
  gap: 22px;
  color: #fff;
}

.article-cover span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.article-cover .icon {
  width: 38px;
  height: 38px;
}

.article-cover p {
  color: #d4e1ef;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: center;
  gap: 65px;
  padding-block: 70px 110px;
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 120px;
}

.toc-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.toc-card strong {
  color: var(--ink);
  font-size: 0.83rem;
}

.toc-card ol {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.toc-card a {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.toc-card a:hover {
  color: var(--blue);
}

.share-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.share-status {
  margin: 7px 0 0;
  font-size: 0.7rem;
}

.article-prose {
  min-width: 0;
}

.article-prose > section {
  margin-bottom: 48px;
  scroll-margin-top: 115px;
}

.article-prose h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.article-prose p,
.article-prose li {
  font-size: 1.01rem;
  line-height: 1.8;
}

.article-prose ul {
  display: grid;
  gap: 9px;
  padding-left: 24px;
  color: var(--muted);
}

.educational-notice {
  margin-bottom: 45px;
  padding: 21px 23px;
  border-left: 4px solid var(--blue);
  border-radius: 0 15px 15px 0;
  background: var(--soft-blue);
}

.educational-notice strong {
  color: var(--ink);
}

.educational-notice p {
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.article-sources {
  display: grid;
  gap: 10px;
  margin: 50px 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.article-sources h2 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.article-sources a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 700;
}

.article-end {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft);
}

.article-end > strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.article-end p {
  margin: 6px 0 20px;
  font-size: 0.9rem;
}

.related-section .article-card p {
  min-height: 0;
}

.not-found {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(23, 92, 211, 0.15), transparent 36%),
    var(--surface);
  text-align: center;
}

.not-found > div {
  max-width: 620px;
}

.not-found .brand-mark {
  margin-inline: auto;
}

.error-code {
  margin: 25px 0 0;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.not-found h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.not-found > div > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 34px, 960px);
  }

  .desktop-nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.81rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
    gap: 35px;
  }

  .feature-grid,
  .freshbooks-grid {
    gap: 45px;
  }

  .tool-grid,
  .article-grid,
  .category-grid,
  .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

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

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 430px;
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .logo-strip .shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .logo-strip .shell > div {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-grid,
  .freshbooks-grid,
  .methodology .shell,
  .newsletter-card,
  .faq-layout,
  .about-grid,
  .selection-process,
  .contact-grid,
  .guide-feature {
    grid-template-columns: 1fr;
  }

  .method-intro,
  .article-sidebar,
  .legal-note {
    position: static;
  }

  .feature-panel,
  .product-summary {
    max-width: 620px;
  }

  .methodology .shell,
  .faq-layout,
  .about-grid,
  .selection-process,
  .contact-grid {
    gap: 50px;
  }

  .newsletter-card {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

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

  .freshbooks-hero {
    padding-block: 55px 75px;
  }

  .two-column-content,
  .guide-feature {
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
  }

  .toc-card {
    max-height: 260px;
    overflow: auto;
  }

  .share-button {
    width: auto;
    margin-top: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-note {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .topbar {
    font-size: 0.72rem;
  }

  .brand strong {
    font-size: 0.83rem;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-grid {
    padding-block: 55px 62px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .freshbooks-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-trust {
    display: grid;
    gap: 10px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .main-dashboard {
    inset: 35px 0 35px 10px;
    padding: 18px;
  }

  .dash-metrics {
    gap: 8px;
  }

  .dash-metrics > div {
    min-height: 92px;
    padding: 10px;
  }

  .invoice-float {
    top: 6px;
    right: -5px;
  }

  .task-float {
    bottom: 3px;
    left: -4px;
  }

  .floating-card {
    padding: 11px 12px;
  }

  .section {
    padding-block: 62px;
  }

  .section.no-top {
    padding-top: 10px;
  }

  .category-grid,
  .tool-grid,
  .article-grid,
  .function-grid,
  .use-case-grid,
  .alternative-grid,
  .route-grid,
  .two-column-content,
  .criteria-grid,
  .guide-steps,
  .form-row,
  .principles-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 210px;
  }

  .article-card h3,
  .article-card p {
    min-height: 0;
  }

  .methodology .shell,
  .feature-grid,
  .two-column-content,
  .faq-layout,
  .about-grid,
  .selection-process,
  .contact-grid {
    gap: 38px;
  }

  .feature-panel,
  .newsletter-card,
  .guide-feature,
  .form-card {
    padding: 27px 22px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 22px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .directory-controls {
    position: static;
    padding: 14px;
  }

  .filter-row {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .page-hero,
  .article-header {
    padding-block: 50px;
  }

  .page-hero .shell {
    margin-inline: auto;
  }

  .freshbooks-hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .freshbooks-grid {
    gap: 38px;
  }

  .evaluation-box {
    margin-top: -18px;
  }

  .callout {
    grid-template-columns: 1fr;
  }

  .guide-feature {
    margin-bottom: 60px;
  }

  .article-cover {
    min-height: 260px;
    border-radius: 20px;
  }

  .article-layout {
    padding-block: 45px 70px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .toc-card {
    max-height: none;
  }

  .share-button {
    width: 100%;
  }

  .article-prose p,
  .article-prose li {
    font-size: 0.98rem;
  }

  .legal-hero {
    padding-block: 48px 55px;
  }

  .not-found > div > div {
    flex-direction: column;
  }
}

@media (max-width: 410px) {
  .brand > span:last-child {
    max-width: 135px;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero-visual {
    min-height: 335px;
  }

  .dash-head {
    padding-bottom: 14px;
  }

  .dash-head strong {
    font-size: 0.92rem;
  }

  .dash-metrics {
    margin: 15px 0;
  }

  .dash-metrics small {
    font-size: 0.61rem;
  }

  .activity {
    padding-block: 8px;
  }

  .floating-card strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .newsletter-card,
  .feature-panel,
  .form-card {
    padding-inline: 19px;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}

.language-control select {
  min-width: 62px;
  height: 40px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-control select:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.25);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .language-control select {
    min-width: 54px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .newsletter-section,
  .site-footer,
  .cookie-banner,
  .back-to-top,
  .article-sidebar,
  .affiliate-note {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .article-layout {
    display: block;
    padding-top: 20px;
  }
}
