:root {
  color-scheme: light;
  --ink: #18231f;
  --ink-soft: #27352f;
  --muted: #5f6d67;
  --paper: #f6f7f4;
  --paper-alt: #eef3ef;
  --panel: #ffffff;
  --panel-soft: #fbfcfa;
  --line: #d8e0da;
  --line-strong: #b8c5bd;
  --teal: #0b766d;
  --teal-dark: #084f49;
  --mint: #e0f1ec;
  --blue: #315f86;
  --amber: #d99825;
  --coral: #c75f46;
  --shadow: 0 18px 44px rgba(24, 35, 31, 0.1);
  --shadow-soft: 0 10px 28px rgba(24, 35, 31, 0.07);
  --radius: 8px;
  --max: 1180px;
  --measure: 72ch;
  --focus: 0 0 0 3px rgba(11, 118, 109, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--mint);
}

.visually-hidden {
  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: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--panel);
  color: var(--ink);
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid rgba(216, 224, 218, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.22rem;
  min-width: 0;
}

.primary-nav a,
.nav-group summary {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a {
  padding: 0.58rem 0.72rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.nav-group summary:hover,
.nav-group[data-active="true"] summary,
.nav-group[open] summary {
  background: var(--mint);
  color: var(--teal-dark);
}

.primary-nav a[data-nav-cta="true"] {
  margin-left: 0.18rem;
  background: var(--ink);
  color: #ffffff;
}

.primary-nav a[data-nav-cta="true"]:hover,
.primary-nav a[data-nav-cta="true"][aria-current="page"] {
  background: var(--teal-dark);
  color: #ffffff;
}

.nav-group {
  position: relative;
}

.nav-group summary {
  gap: 0.35rem;
  padding: 0.58rem 0.72rem;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 25;
  display: grid;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nav-dropdown a {
  justify-content: space-between;
  white-space: normal;
}

.breadcrumbs {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.75rem 0;
  list-style: none;
}

.breadcrumbs li {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.hero {
  min-height: clamp(560px, 76vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem);
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(12, 24, 21, 0.94), rgba(12, 24, 21, 0.74) 46%, rgba(12, 24, 21, 0.24) 76%, rgba(12, 24, 21, 0.06)),
    url("nexus-workflow-hero.jpg");
  background-position: center right;
  background-size: cover;
}

.hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-width: 0;
}

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

.kicker,
.card-kicker {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero .kicker,
.cta-band .kicker {
  color: var(--amber);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  color: #ffffff;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.85rem, 6vw, 5.4rem);
  overflow-wrap: break-word;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.7vw, 3.3rem);
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
}

.hero p:not(.kicker) {
  max-width: 720px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--teal);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(11, 118, 109, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 79, 73, 0.24);
}

.button:disabled,
.button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--mint);
  color: var(--ink);
  border-color: rgba(11, 118, 109, 0.34);
  box-shadow: none;
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
}

.button-small {
  min-height: 2.45rem;
  padding: 0.58rem 0.78rem;
  font-size: 0.92rem;
}

.proof-list,
.tag-list,
.feature-list,
.check-list,
.page-meta {
  list-style: none;
  padding: 0;
}

.proof-list,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin: 1.55rem 0 0;
}

.proof-list li,
.page-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
}

.proof-list li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.page-meta li {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--ink-soft);
}

.section,
.cta-band,
.site-footer {
  padding: clamp(3.2rem, 7vw, 6.25rem) clamp(1rem, 5vw, 5rem);
}

.section > :where(.section-heading, .card-grid, .table-wrap, .link-panel, .faq-list, .split-section, .template-controls, .disclosure-note, .empty-state, .article-body, .feature-list, .step-list, .check-list, .text-link, .related-link-panel, .workflow-tool-grid, .calculator, .results-panel, .start-grid) {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section > .text-link {
  display: block;
  width: min(var(--max), 100%);
  margin-top: 1.3rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.section-heading p:not(.kicker) {
  max-width: var(--measure);
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.07rem;
}

.section-band {
  background: var(--paper-alt);
  border-block: 1px solid rgba(216, 224, 218, 0.72);
}

.source-strip,
.trust-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.source-strip h2,
.trust-strip h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.source-strip ul,
.trust-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}

.source-strip li,
.trust-list li {
  color: var(--muted);
}

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

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

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.18rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(24, 35, 31, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(11, 118, 109, 0.32);
  box-shadow: var(--shadow-soft);
}

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

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

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.card-topline .card-kicker {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag-list,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.tag-list li,
.feature-list li {
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  padding: 0.38rem 0.62rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.text-link,
.sponsored-link {
  margin-top: auto;
  font-weight: 900;
}

.sponsored-link::after {
  content: " sponsored";
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(24, 35, 31, 0.04);
}

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

caption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th,
td {
  padding: 0.98rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f8faf7;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

td:first-child {
  color: var(--ink);
  font-weight: 850;
}

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

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.split-section > div,
.pricing-note,
.results-panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.split-section p:not(.kicker) {
  margin-top: 0.85rem;
  color: var(--muted);
}

.split-section .button {
  margin-top: 1rem;
}

.page-hero {
  padding: clamp(3.4rem, 7vw, 6.6rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9faf7 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.25rem, 5.8vw, 4.8rem);
}

.page-hero p:not(.kicker) {
  max-width: 790px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.step-list,
.check-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.step-list li,
.check-list li {
  margin-bottom: 0.62rem;
  color: var(--muted);
}

.check-list li::marker {
  color: var(--teal);
}

.link-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.link-panel a {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 900;
  text-decoration: none;
}

.link-panel a:hover,
.link-panel a:focus-visible {
  border-color: rgba(11, 118, 109, 0.34);
  background: #fbfdfb;
}

.template-grid {
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.section .template-grid {
  padding: 0;
}

.template-controls {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  min-height: 2.55rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active,
.filter-button[aria-pressed="true"] {
  border-color: rgba(11, 118, 109, 0.42);
  background: var(--mint);
  color: var(--teal-dark);
}

.template-search {
  max-width: 680px;
}

.template-search span,
label span {
  color: var(--ink);
  font-weight: 850;
}

.template-count {
  margin-top: -0.25rem;
  color: var(--muted);
}

.template-card-rich {
  gap: 1rem;
}

.template-card-header {
  display: grid;
  gap: 0.72rem;
}

.template-outcome {
  display: grid;
  gap: 0.55rem;
  padding: 0.86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.template-outcome p {
  display: grid;
  gap: 0.16rem;
}

.template-outcome strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.template-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.template-facts p {
  display: grid;
  gap: 0.2rem;
}

.template-facts strong,
.template-card h4 {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.template-facts span {
  color: var(--muted);
}

.template-card h4 {
  margin: 0 0 0.55rem;
}

.compact-list {
  margin-top: 0;
}

.compact-list li {
  margin-bottom: 0.42rem;
}

.compact-tags li {
  border-radius: 7px;
}

.plain-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li {
  color: var(--muted);
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.template-actions .text-link {
  margin-top: 0;
}

.workflow-tool-grid {
  margin-top: 1rem;
}

.tool-card {
  gap: 0.75rem;
}

.tool-meta {
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.tool-meta p {
  display: grid;
  gap: 0.1rem;
}

.tool-card .text-link {
  margin-top: auto;
}

.disclosure-note,
.empty-state {
  max-width: 900px;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

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

.empty-state {
  display: grid;
  gap: 0.65rem;
}

.empty-state h3 {
  color: var(--ink);
}

.related-link-panel span {
  color: var(--muted);
  font-weight: 500;
}

.overview-split {
  display: grid;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 900;
}

details[open] {
  border-color: rgba(11, 118, 109, 0.28);
}

details p {
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--ink);
  color: #ffffff;
}

.cta-band > * {
  width: min(var(--max), 100%);
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p:not(.kicker) {
  max-width: 720px;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.calculator {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 850;
}

.form-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.62rem 0.72rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:hover {
  border-color: var(--line-strong);
}

input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus);
}

input[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(199, 95, 70, 0.18);
}

.form-error {
  margin-top: 0.9rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(199, 95, 70, 0.38);
  border-radius: var(--radius);
  background: #fff5f1;
  color: #8a321f;
  font-weight: 800;
}

.calculator .button {
  margin-top: 1rem;
}

.results-panel dl {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.results-panel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.results-panel dt {
  color: var(--muted);
}

.results-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  text-align: right;
}

.microcopy,
.result-guidance {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-guidance {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

pre {
  overflow-x: auto;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: #10211f;
  color: #eaf5ef;
  font-size: 0.9rem;
}

.article-body {
  max-width: 880px;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-body p {
  max-width: var(--measure);
  margin-top: 0.78rem;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(560px, 1.25fr);
  gap: 2rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 620px;
  margin-top: 0.9rem;
  color: var(--muted);
}

.footer-brand {
  width: fit-content;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-links h2 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-top: 0.35rem;
  font-weight: 800;
}

.site-note {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    scrollbar-width: thin;
  }

  .nav-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 920px) {
  .source-strip,
  .trust-strip,
  .split-section,
  .calculator-section,
  .cta-band,
  .site-footer,
  .link-panel,
  .footer-links,
  .start-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  table {
    border-collapse: separate;
  }

  caption {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    margin-bottom: 0.75rem;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    margin-bottom: 0.78rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }

  td {
    display: grid;
    grid-template-columns: minmax(8rem, 0.38fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
  }

  td::before {
    content: attr(data-label);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .site-header {
    position: static;
    padding-inline: 1rem;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    overflow: visible;
  }

  .primary-nav a,
  .nav-group,
  .nav-group summary {
    width: 100%;
  }

  .primary-nav a,
  .nav-group summary {
    min-height: 2.55rem;
    justify-content: center;
    padding: 0.5rem 0.35rem;
    font-size: 0.86rem;
    text-align: center;
    white-space: normal;
  }

  .primary-nav a[data-nav-cta="true"] {
    margin-left: 0;
  }

  .nav-dropdown {
    left: 0;
    right: auto;
    width: min(22rem, calc(100vw - 2rem));
  }

  .hero {
    min-height: 0;
    align-items: flex-end;
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
    background-position: 62% center;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 11vw, 3rem);
  }

  .hero p:not(.kicker),
  .page-hero p:not(.kicker) {
    font-size: 1rem;
  }

  .page-hero h1 {
    max-width: 100%;
  }

  .card-grid,
  .industries-grid,
  .template-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .template-actions .text-link,
  .template-actions .button {
    width: 100%;
  }

  .industry-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button,
  .hero-actions a {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .results-panel div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .results-panel dd {
    text-align: left;
  }

  td {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }
}
