/* NordFi marketing layer. Loaded after the compiled Tailwind bundle.
   Tokens are available site-wide. Component classes are opt-in so the
   existing page sections keep their current Tailwind colours. */

:root {
  --nf-bg: #F7F8F5;
  --nf-surface: #FFFFFF;
  --nf-text: #14221F;
  --nf-muted: #64716C;
  --nf-green: #2D635B;
  --nf-green-hover: #245049;
  --nf-blue: #416C8A;
  --nf-border: #E1E7E2;
  --nf-header-height: 4rem;
  --nf-container: 80rem;
  --nf-space-section: 4rem;
  --nf-radius: 0.75rem;
  --nf-focus: #2D635B;
}

@media (min-width: 1024px) {
  :root {
    --nf-space-section: 5rem;
  }
}

.nf-site {
  background-color: var(--nf-bg);
  color: var(--nf-text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.nf-container {
  width: min(100% - 2rem, var(--nf-container));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .nf-container {
    width: min(100% - 3rem, var(--nf-container));
  }
}

@media (min-width: 1024px) {
  .nf-container {
    width: min(100% - 4rem, var(--nf-container));
  }
}

.nf-section {
  padding-block: var(--nf-space-section);
}

.nf-link {
  color: var(--nf-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.nf-link:hover {
  color: var(--nf-green-hover);
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nf-btn-primary {
  background: var(--nf-green);
  color: #fff;
}

.nf-btn-primary:hover {
  background: var(--nf-green-hover);
  color: #fff;
}

.nf-card {
  background: var(--nf-surface);
  color: var(--nf-text);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
}

.nf-site a:focus-visible,
.nf-site button:focus-visible,
.nf-site input:focus-visible,
.nf-site textarea:focus-visible,
.nf-site select:focus-visible {
  outline: 2px solid var(--nf-focus);
  outline-offset: 2px;
}

/* Header. Height stays 4rem so existing pt-16 page offsets still clear it. */

.nf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--nf-header-height);
  background: var(--nf-bg);
  border-bottom: 1px solid var(--nf-border);
}

.nf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--nf-header-height);
  width: min(100% - 2rem, var(--nf-container));
  margin-inline: auto;
  min-width: 0;
}

.nf-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--nf-text);
  text-decoration: none;
}

.nf-brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
  flex: 0 0 auto;
}

.nf-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.nf-brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nf-brand-position {
  display: none;
  margin-top: 0.15rem;
  color: var(--nf-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nf-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.nf-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--nf-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nf-nav-link:hover {
  color: var(--nf-text);
  background: rgba(45, 99, 91, 0.06);
}

.nf-nav-link[aria-current="page"] {
  color: var(--nf-green);
  background: rgba(45, 99, 91, 0.1);
}

.nf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.nf-header-cta {
  display: none;
}

.nf-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--nf-text);
  cursor: pointer;
}

.nf-menu-toggle:hover {
  background: rgba(45, 99, 91, 0.08);
}

.nf-menu-icon {
  display: block;
}

.nf-mobile-menu {
  display: none;
  padding: 0.25rem 1rem 1rem;
  background: var(--nf-bg);
  border-top: 1px solid var(--nf-border);
}

.nf-mobile-menu:not(.hidden) {
  display: block;
}

.nf-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nf-mobile-list .nf-nav-link {
  padding: 0.7rem 0.75rem;
}

.nf-mobile-cta {
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .nf-brand-position {
    display: block;
  }
}

@media (min-width: 1180px) {
  .nf-desktop-nav,
  .nf-header-cta {
    display: flex;
  }

  .nf-menu-toggle,
  .nf-mobile-menu,
  .nf-mobile-menu:not(.hidden) {
    display: none;
  }
}

/* Footer */

.nf-footer {
  background: var(--nf-surface);
  color: var(--nf-text);
  border-top: 1px solid var(--nf-border);
}

.nf-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}

.nf-footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--nf-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.nf-footer-brand .nf-footer-tagline {
  margin: 0.85rem 0 0;
  color: var(--nf-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.nf-footer-heading {
  margin: 0 0 0.85rem;
  color: var(--nf-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nf-footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-footer-list a {
  color: var(--nf-text);
  font-size: 0.875rem;
  text-decoration: none;
}

.nf-footer-list a:hover {
  color: var(--nf-green);
}

.nf-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  color: var(--nf-text);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.5;
}

.nf-footer-contact a {
  color: var(--nf-green);
  text-decoration: none;
}

.nf-footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nf-place {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nf-flag {
  display: block;
  width: 1rem;
  height: 0.75rem;
  flex: 0 0 auto;
}

.nf-legal-pending {
  margin: 0;
  color: var(--nf-muted);
  font-size: 0.875rem;
}

.nf-footer-base {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-muted);
  font-size: 0.75rem;
}

.nf-footer-base p {
  margin: 0;
}

@media (min-width: 640px) {
  .nf-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nf-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .nf-footer-inner {
    grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(8rem, 1fr));
    gap: 2.5rem;
    padding-block: 4rem 3rem;
  }

  .nf-footer-brand {
    grid-column: auto;
  }

  .nf-footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Shared consultation band. Not mounted on pages that already have a CTA. */

.nf-cta {
  background: var(--nf-text);
  color: var(--nf-bg);
  padding-block: var(--nf-space-section);
}

.nf-cta-inner {
  max-width: 40rem;
}

.nf-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.nf-cta p {
  margin: 0 0 1.5rem;
  color: #C9D4CF;
  font-size: 1rem;
  line-height: 1.6;
}

.nf-cta .nf-btn-primary:hover {
  background: #38756C;
}

.nf-btn-secondary {
  background: transparent;
  color: var(--nf-text);
  border-color: var(--nf-border);
}

.nf-btn-secondary:hover {
  border-color: var(--nf-green);
  color: var(--nf-green);
  background: rgba(45, 99, 91, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .nf-btn,
  .nf-nav-link {
    transition: none;
  }
}

/* Homepage */

.nf-home {
  padding-top: var(--nf-header-height);
  background: var(--nf-bg);
  color: var(--nf-text);
}

.nf-home :where(p, h1, h2, h3, ul, ol, figure) {
  margin: 0;
}

.nf-home :where(ul, ol) {
  padding: 0;
}

.nf-home h1,
.nf-home h2,
.nf-home h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--nf-text);
}

.nf-home .nf-cta h2 {
  color: var(--nf-bg);
  letter-spacing: -0.025em;
}

.nf-home .nf-cta p {
  margin: 0 0 1.5rem;
  color: #C9D4CF;
}

.nf-kicker {
  margin: 0 0 0.9rem;
  color: var(--nf-green);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nf-display {
  max-width: 14ch;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.nf-lede,
.nf-prose p {
  color: var(--nf-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.nf-lede {
  max-width: 40rem;
}

.nf-prose {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.nf-section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.nf-section-head-wide {
  max-width: 48rem;
}

.nf-band {
  background: var(--nf-surface);
}

.nf-hero {
  padding: 2.75rem 0 3.25rem;
}

.nf-hero-grid,
.nf-split,
.nf-challenges,
.nf-offers,
.nf-solutions,
.nf-reasons {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.nf-hero-copy {
  min-width: 0;
  max-width: 40rem;
}

.nf-home h1 {
  margin: 0 0 1.15rem;
  max-width: 11em;
  font-size: clamp(2.45rem, 6.4vw, 4.6rem);
}

.nf-hero .nf-lede {
  font-size: 1.125rem;
  max-width: 36rem;
}

.nf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.nf-identity {
  margin-top: 1.75rem;
  color: var(--nf-text);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.nf-arch {
  min-width: 0;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 1.25rem;
  padding: 1.35rem 1.15rem 1rem;
  background-image:
    linear-gradient(to right, rgba(20, 34, 31, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 34, 31, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

.nf-arch-board {
  display: grid;
  gap: 0;
}

.nf-arch-label {
  margin-bottom: 0.7rem;
  color: var(--nf-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.nf-arch-nodes {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.nf-arch-nodes li,
.nf-arch-core {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--nf-border);
  border-radius: 0.75rem;
  background: rgba(247, 248, 245, 0.94);
  color: var(--nf-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.nf-arch svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nf-arch-nodes svg {
  color: var(--nf-blue);
}

.nf-arch-core {
  justify-content: center;
  color: var(--nf-green);
  border-color: rgba(45, 99, 91, 0.35);
  background: rgba(45, 99, 91, 0.06);
}

.nf-arch-core span,
.nf-arch-nodes span {
  color: var(--nf-text);
}

.nf-arch-core-out {
  color: var(--nf-blue);
  border-color: rgba(65, 108, 138, 0.35);
  background: rgba(65, 108, 138, 0.06);
}

.nf-arch-link {
  display: flex;
  justify-content: center;
  height: 1.65rem;
}

.nf-arch-link span {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(65, 108, 138, 0.55);
}

.nf-arch-link span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(65, 108, 138, 0.8);
  border-bottom: 1px solid rgba(65, 108, 138, 0.8);
  transform: translate(-50%, 1px) rotate(45deg);
}

.nf-arch svg.nf-arch-merge {
  display: none;
  width: 100%;
  height: 2.25rem;
  flex: none;
}

.nf-arch-merge path {
  fill: none;
  stroke: rgba(65, 108, 138, 0.7);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.nf-arch figcaption {
  margin-top: 1rem;
  color: var(--nf-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.nf-challenge,
.nf-offer,
.nf-solution {
  padding: 1.35rem 1.25rem 1.4rem;
}

.nf-challenge h3,
.nf-offer h3,
.nf-solution h3,
.nf-reasons h3,
.nf-steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.nf-challenge p,
.nf-offer > p:not(.nf-offer-num),
.nf-solution > p,
.nf-reasons p,
.nf-steps p {
  color: var(--nf-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-offer {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.5rem;
}

.nf-offer-consult {
  box-shadow: inset 3px 0 0 var(--nf-green);
}

.nf-offer-integrate {
  background: #f4f7f8;
  box-shadow: inset 3px 0 0 var(--nf-blue);
}

.nf-offer-num {
  margin-bottom: 1.25rem;
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.nf-offer-integrate .nf-offer-num,
.nf-offer-integrate .nf-offer-link {
  color: var(--nf-blue);
}

.nf-offer > p {
  max-width: 38rem;
}

.nf-cap {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 1.35rem 0 1.6rem;
}

.nf-cap li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--nf-text);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.nf-cap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.nf-offer-link {
  margin-top: auto;
  color: var(--nf-green);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

.nf-offer-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nf-solution-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.nf-solution-num {
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-solution svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--nf-blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nf-solution {
  transition: border-color 0.15s ease;
}

.nf-solution:hover {
  border-color: rgba(45, 99, 91, 0.45);
}

.nf-roots {
  background: var(--nf-text);
  color: var(--nf-bg);
  padding-block: calc(var(--nf-space-section) + 0.5rem);
  background-image:
    linear-gradient(to right, rgba(247, 248, 245, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 248, 245, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nf-roots .nf-kicker {
  color: #b7d0c8;
}

.nf-roots h2,
.nf-roots h3 {
  color: var(--nf-bg);
}

.nf-roots .nf-prose p,
.nf-principles article > p:not(.nf-principle-num) {
  color: #c9d4cf;
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-roots-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.nf-roots .nf-display {
  max-width: 12ch;
}

.nf-principles {
  display: grid;
  gap: 0;
}

.nf-principles article {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(247, 248, 245, 0.14);
}

.nf-principles .nf-principle-num {
  margin-bottom: 0.85rem;
  color: var(--nf-bg);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.nf-principle-num::after {
  content: "";
  display: block;
  width: 1.4rem;
  height: 1px;
  margin-top: 0.65rem;
  background: var(--nf-green);
}

.nf-principles h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.nf-steps {
  list-style: none;
  display: grid;
  gap: 1.35rem;
}

.nf-steps li {
  position: relative;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.nf-step-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--nf-green);
  border-radius: 999px;
  background: var(--nf-surface);
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
}

.nf-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 2.6rem;
  bottom: -1.35rem;
  width: 1px;
  background: var(--nf-border);
}

.nf-reasons {
  gap: 1.75rem;
}

.nf-reasons article {
  padding-top: 1rem;
  border-top: 1px solid var(--nf-border);
}

.nf-faq-wrap {
  display: grid;
  gap: 1.5rem;
}

.nf-faq-wrap > h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  max-width: 12ch;
}

.nf-faq details {
  border-top: 1px solid var(--nf-border);
}

.nf-faq details:not([open]) > :not(summary) {
  display: none;
}

.nf-faq details:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--nf-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.nf-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--nf-green);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.nf-faq details[open] summary::after {
  content: "–";
}

.nf-faq details p {
  max-width: 44rem;
  padding: 0 2rem 1.15rem 0;
  color: var(--nf-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.nf-home summary:focus-visible {
  outline: 2px solid var(--nf-focus);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .nf-arch-link-simple {
    display: none;
  }

  .nf-arch svg.nf-arch-merge {
    display: block;
  }

  .nf-arch-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .nf-hero {
    padding: 4rem 0 4.25rem;
  }

  .nf-challenges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nf-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .nf-principles article {
    padding-right: 0.5rem;
  }
}

@media (min-width: 960px) {
  .nf-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 3.5rem;
    align-items: center;
  }

  .nf-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
  }

  .nf-offers,
  .nf-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

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

@media (min-width: 1024px) {
  .nf-principles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .nf-principles article {
    padding: 0 1.35rem;
    border-top: 0;
    border-left: 1px solid rgba(247, 248, 245, 0.14);
  }

  .nf-principles article:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 1100px) {
  .nf-hero {
    padding: 5.25rem 0 5rem;
  }

  .nf-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    position: relative;
  }

  .nf-steps::before {
    content: "";
    position: absolute;
    top: 1.3rem;
    left: 6%;
    right: 6%;
    height: 1px;
    background: var(--nf-border);
  }

  .nf-steps li:not(:last-child)::before {
    display: none;
  }

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

@media (min-width: 1280px) {
  .nf-solutions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-solution,
  .nf-btn-secondary {
    transition: none;
  }
}

/* Services page. Scoped so homepage rules stay unchanged. */

.nf-services {
  padding-top: var(--nf-header-height);
  background: var(--nf-bg);
  color: var(--nf-text);
}

.nf-services :where(p, h1, h2, h3, h4, ul, ol, figure, dl, dd, dt) {
  margin: 0;
}

.nf-services :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.nf-services .nf-kicker {
  margin: 0 0 0.9rem;
}

.nf-services .nf-identity {
  margin-top: 1.75rem;
}

.nf-services h1,
.nf-services h2,
.nf-services h3,
.nf-services h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--nf-text);
}

.nf-services h1 {
  margin: 0 0 1.15rem;
  max-width: 12em;
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
}

.nf-services .nf-display {
  max-width: 16ch;
}

.nf-services .nf-cta h2 {
  max-width: none;
  color: var(--nf-bg);
  letter-spacing: -0.025em;
}

.nf-services .nf-cta p {
  max-width: none;
  color: #C9D4CF;
}

.nf-services summary:focus-visible {
  outline: 2px solid var(--nf-focus);
  outline-offset: 3px;
}

.nf-services .nf-anchor,
.nf-services [id] {
  scroll-margin-top: calc(var(--nf-header-height) + 1.25rem);
}

.nf-anchor {
  position: relative;
}

.nf-legacy-anchor {
  position: absolute;
  top: calc(var(--nf-space-section) * -1);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nf-flow {
  min-width: 0;
  margin: 0;
  padding: 1.35rem 1.35rem 0.6rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 1.25rem;
}

.nf-flow figcaption {
  margin-bottom: 0.85rem;
  color: var(--nf-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.nf-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
}

.nf-flow li span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  background: var(--nf-bg);
  color: var(--nf-green);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.nf-flow li strong {
  color: var(--nf-text);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nf-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 3.15rem;
  bottom: -0.8rem;
  width: 1px;
  background: var(--nf-border);
}

.nf-service-jumps {
  display: grid;
  margin-top: 0.5rem;
}

.nf-service-jumps a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-text);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nf-service-jumps a:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-service-jumps a span:first-child {
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-service-jumps a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-right: 1.5px solid var(--nf-green);
  border-bottom: 1.5px solid var(--nf-green);
  transform: translateY(-0.15rem) rotate(45deg);
}

.nf-service-jumps a:hover {
  color: var(--nf-green);
}

.nf-service-layout,
.nf-service-detail {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.nf-service-copy {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-width: 0;
}

.nf-service-copy .nf-lede {
  margin-top: 1rem;
}

.nf-service-copy .nf-btn {
  margin-top: 1.5rem;
  justify-self: start;
}

.nf-service-num {
  margin-bottom: 0.85rem;
  color: var(--nf-green);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.nf-cap-list {
  display: grid;
}

.nf-cap-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--nf-border);
}

.nf-cap-list li:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-cap-list li > span {
  padding-top: 0.2rem;
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.nf-cap-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.nf-cap-list p,
.nf-asides p,
.nf-asides li,
.nf-practice-card dd {
  color: var(--nf-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-asides {
  display: grid;
  gap: 1.5rem;
}

.nf-asides h3 {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nf-asides p {
  margin-bottom: 0.75rem;
}

.nf-asides li {
  position: relative;
  padding: 0.28rem 0 0.28rem 0.95rem;
}

.nf-asides li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.45rem;
  height: 1px;
  background: var(--nf-green);
}

.nf-stack {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.1rem 1rem;
  background: var(--nf-bg);
  border: 1px solid var(--nf-border);
  border-radius: 1.25rem;
  background-image:
    linear-gradient(to right, rgba(20, 34, 31, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 34, 31, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

.nf-stack-label,
.nf-stack figcaption {
  color: var(--nf-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.nf-stack figcaption {
  margin-top: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nf-stack-systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.nf-stack-systems li,
.nf-stack-bar {
  border: 1px solid var(--nf-border);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nf-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.nf-stack-systems li {
  padding: 0.7rem 0.5rem;
  color: var(--nf-blue);
}

.nf-stack-bar {
  padding: 0.8rem 0.75rem;
  color: var(--nf-green);
  border-color: rgba(45, 99, 91, 0.35);
  background: rgba(45, 99, 91, 0.06);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nf-stack-bar-ai {
  color: var(--nf-blue);
  border-color: rgba(65, 108, 138, 0.35);
  background: rgba(65, 108, 138, 0.06);
}

.nf-stack-bar-work {
  color: var(--nf-text);
  letter-spacing: 0.06em;
}

.nf-stack-link {
  display: flex;
  justify-content: center;
  height: 1.35rem;
}

.nf-stack-link span {
  position: relative;
  width: 1px;
  background: rgba(65, 108, 138, 0.55);
}

.nf-stack-link span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(65, 108, 138, 0.8);
  border-bottom: 1px solid rgba(65, 108, 138, 0.8);
  transform: translate(-50%, 1px) rotate(45deg);
}

.nf-service-detail-follow {
  margin-top: 2.75rem;
}

.nf-practice {
  display: grid;
  gap: 1rem;
}

.nf-practice-card {
  padding: 1.35rem 1.25rem 1.4rem;
}

.nf-practice-num {
  margin-bottom: 0.85rem;
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-practice-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.nf-practice-card dl {
  display: grid;
  gap: 0.9rem;
}

.nf-practice-card dt {
  margin-bottom: 0.2rem;
  color: var(--nf-text);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nf-approach {
  display: grid;
  overflow: hidden;
  background: var(--nf-text);
  border-radius: 1.25rem;
}

.nf-approach-copy,
.nf-approach-list {
  padding: 2rem 1.35rem;
}

.nf-approach .nf-kicker {
  color: #b7d0c8;
}

.nf-services .nf-approach h2,
.nf-services .nf-approach h3 {
  color: var(--nf-bg);
}

.nf-services .nf-approach p {
  color: #c9d4cf;
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-approach-copy .nf-display {
  margin-bottom: 1rem;
}

.nf-approach-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(247, 248, 245, 0.14);
}

.nf-approach-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(247, 248, 245, 0.1);
}

.nf-approach-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.nf-approach-list li > span {
  color: #b7d0c8;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.nf-approach-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .nf-asides,
  .nf-practice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .nf-approach-copy,
  .nf-approach-list {
    padding: 2.5rem 2.25rem;
  }
}

@media (min-width: 960px) {
  .nf-services .nf-service-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 4rem;
    align-items: start;
  }

  .nf-services .nf-service-copy {
    position: sticky;
    top: calc(var(--nf-header-height) + 1.5rem);
  }

  .nf-approach {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .nf-approach-list {
    border-top: 0;
    border-left: 1px solid rgba(247, 248, 245, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-service-jumps a {
    transition: none;
  }
}

/* About and workflow pages. Scoped to those page shells. */

.nf-about,
.nf-workflows {
  padding-top: var(--nf-header-height);
  background: var(--nf-bg);
  color: var(--nf-text);
}

.nf-about :where(p, h1, h2, h3, ul, ol, figure, dl, dd, dt),
.nf-workflows :where(p, h1, h2, h3, ul, ol, figure, dl, dd, dt) {
  margin: 0;
}

.nf-about :where(ul, ol),
.nf-workflows :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.nf-about .nf-kicker,
.nf-workflows .nf-kicker {
  margin: 0 0 0.9rem;
}

.nf-about .nf-identity,
.nf-workflows .nf-identity {
  margin-top: 1.75rem;
}

.nf-about h1,
.nf-about h2,
.nf-about h3,
.nf-workflows h1,
.nf-workflows h2,
.nf-workflows h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--nf-text);
}

.nf-about h1,
.nf-workflows h1 {
  margin: 0 0 1.15rem;
  max-width: 12em;
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
}

.nf-about .nf-display,
.nf-workflows .nf-display {
  max-width: 16ch;
}

.nf-about .nf-split,
.nf-workflows .nf-split {
  align-items: start;
}

.nf-about .nf-cta h2,
.nf-workflows .nf-cta h2 {
  max-width: none;
  color: var(--nf-bg);
  letter-spacing: -0.025em;
}

.nf-about .nf-cta p,
.nf-workflows .nf-cta p {
  max-width: none;
  color: #C9D4CF;
}

.nf-about [id],
.nf-workflows [id] {
  scroll-margin-top: calc(var(--nf-header-height) + 1.25rem);
}

.nf-about .nf-mark {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 1.25rem;
}

.nf-about .nf-mark svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--nf-border);
  stroke-width: 1;
}

.nf-about .nf-mark rect:nth-of-type(2),
.nf-about .nf-mark circle {
  stroke: var(--nf-green);
}

.nf-about .nf-mark path:last-of-type {
  stroke: var(--nf-blue);
}

.nf-about .nf-mark figcaption {
  margin-top: 0.85rem;
  color: var(--nf-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.nf-about-north {
  background: var(--nf-text);
  color: var(--nf-bg);
  padding-block: calc(var(--nf-space-section) + 0.5rem);
  background-image:
    linear-gradient(to right, rgba(247, 248, 245, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 248, 245, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nf-about-north-intro {
  display: grid;
  gap: 0.25rem;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.nf-about .nf-about-north .nf-kicker {
  color: #b7d0c8;
}

.nf-about .nf-about-north h2,
.nf-about .nf-about-north h3 {
  color: var(--nf-bg);
}

.nf-about .nf-about-north p {
  color: #c9d4cf;
}

.nf-about .nf-about-north .nf-prose {
  margin-top: 1rem;
  gap: 0.9rem;
}

.nf-about-principles li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(247, 248, 245, 0.16);
}

.nf-about-principles li > span {
  color: #b7d0c8;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-about-principles h3 {
  font-size: 1.2rem;
}

.nf-about-principles p {
  font-size: 0.975rem;
  line-height: 1.6;
}

.nf-pair {
  display: grid;
  gap: 1rem;
}

.nf-about .nf-pair article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem 1.4rem;
}

.nf-about .nf-pair h3 {
  font-size: 1.45rem;
}

.nf-about .nf-pair p:not(.nf-service-num) {
  color: var(--nf-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.nf-about .nf-pair .nf-offer-link {
  margin-top: auto;
}

.nf-relation {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.nf-relation strong {
  font-weight: 650;
}

.nf-think {
  display: grid;
  gap: 0;
}

.nf-think li {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--nf-border);
}

.nf-think li:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-think li > span {
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-think h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.nf-think p {
  max-width: 42rem;
  color: var(--nf-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.nf-workflow-jumps {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 0.35rem 1.25rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 1.25rem;
}

.nf-workflow-jumps a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nf-workflow-jumps a:first-child {
  border-top: 0;
}

.nf-workflow-jumps a span:first-child {
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.nf-workflow-jumps a:hover {
  color: var(--nf-green);
}

.nf-legacy-note {
  color: var(--nf-text);
  font-size: 0.9375rem;
}

.nf-cases {
  display: grid;
}

.nf-case {
  display: grid;
  gap: 1.15rem;
  padding: 2rem 0;
  border-top: 1px solid var(--nf-border);
}

.nf-case:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-workflows .nf-case h2 {
  max-width: 16em;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.nf-case dl {
  display: grid;
  gap: 1rem;
}

.nf-case dt {
  margin-bottom: 0.3rem;
  color: var(--nf-text);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nf-case dd {
  color: var(--nf-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-questions {
  display: grid;
  counter-reset: nf-q;
}

.nf-questions li {
  counter-increment: nf-q;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.nf-questions li:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-questions li::before {
  content: counter(nf-q, decimal-leading-zero);
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .nf-about-principles li {
    grid-template-columns: 3.25rem minmax(8.5rem, 13rem) minmax(0, 1fr);
    gap: 1rem 1.5rem;
    align-items: baseline;
  }

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

  .nf-think li {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nf-pair {
    gap: 1.25rem;
  }

  .nf-case dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-workflow-jumps a,
  .nf-about .nf-offer-link,
  .nf-workflows .nf-offer-link {
    transition: none;
  }
}

/* Contact and privacy pages. Scoped to those page shells. */

.nf-contact,
.nf-privacy {
  padding-top: var(--nf-header-height);
  background: var(--nf-bg);
  color: var(--nf-text);
  overflow-wrap: break-word;
}

.nf-contact :where(p, h1, h2, h3, ul, ol, dl, dd, dt, label),
.nf-privacy :where(p, h1, h2, ul, li) {
  margin: 0;
}

.nf-contact :where(ul, ol),
.nf-privacy :where(ul) {
  padding: 0;
  list-style: none;
}

.nf-contact .nf-kicker,
.nf-privacy .nf-kicker {
  margin: 0 0 0.9rem;
}

.nf-contact .nf-identity {
  margin-top: 1.75rem;
}

.nf-contact h1,
.nf-contact h2,
.nf-contact h3,
.nf-privacy h1,
.nf-privacy h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--nf-text);
}

.nf-contact h1,
.nf-privacy h1 {
  margin: 0 0 1.15rem;
  max-width: 12em;
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
}

.nf-contact h2,
.nf-privacy h2 {
  max-width: 16em;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.nf-contact [id],
.nf-privacy [id] {
  scroll-margin-top: calc(var(--nf-header-height) + 1.25rem);
}

.nf-contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  min-width: 0;
}

.nf-contact-copy,
.nf-contact-panel,
.nf-form,
.nf-field {
  min-width: 0;
}

.nf-contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.nf-contact-details div {
  display: grid;
  gap: 0.25rem;
}

.nf-contact-details dt {
  color: var(--nf-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nf-contact-details dd {
  color: var(--nf-text);
  font-size: 1.05rem;
}

.nf-next {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nf-border);
}

.nf-next h3 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nf-next li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--nf-border);
}

.nf-next li:last-child {
  border-bottom: 1px solid var(--nf-border);
}

.nf-next li span {
  color: var(--nf-green);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.nf-next strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.nf-next p {
  color: var(--nf-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.nf-form,
.nf-form-result {
  padding: 1.25rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
}

.nf-form {
  display: grid;
  gap: 1rem;
}

.nf-form-result {
  display: grid;
  gap: 0.75rem;
}

.nf-form-result p,
.nf-form-note,
.nf-field-error,
.nf-form-alert {
  font-size: 0.975rem;
  line-height: 1.6;
}

.nf-form-result p,
.nf-form-note {
  color: var(--nf-muted);
}

.nf-form-alert,
.nf-field-error {
  color: #8A3E36;
}

.nf-field {
  display: grid;
  gap: 0.4rem;
}

.nf-field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.nf-contact input,
.nf-contact select,
.nf-contact textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--nf-border);
  border-radius: 0.5rem;
  background: var(--nf-surface);
  color: var(--nf-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}

.nf-contact textarea {
  min-height: 9rem;
  resize: vertical;
}

.nf-contact input[aria-invalid="true"],
.nf-contact select[aria-invalid="true"],
.nf-contact textarea[aria-invalid="true"] {
  border-color: #8A3E36;
}

.nf-contact .nf-form .nf-btn {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.25rem;
}

.nf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nf-privacy-copy {
  display: grid;
  gap: 1.15rem;
  max-width: 44rem;
}

.nf-privacy-copy section {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.nf-privacy .nf-lede,
.nf-privacy-copy p,
.nf-privacy-copy li {
  color: var(--nf-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.nf-privacy .nf-lede {
  color: var(--nf-text);
  font-size: 1.125rem;
}

.nf-privacy-copy ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.nf-draft,
.nf-updated {
  font-size: 0.95rem;
  line-height: 1.6;
}

.nf-draft {
  padding: 0.9rem 1rem;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
  background: var(--nf-surface);
  color: var(--nf-text);
}

.nf-updated {
  color: var(--nf-muted);
}

@media (min-width: 768px) {
  .nf-contact .nf-form .nf-btn {
    width: auto;
    justify-self: start;
  }

  .nf-form,
  .nf-form-result {
    padding: 1.75rem;
  }
}

@media (min-width: 960px) {
  .nf-contact-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-contact .nf-btn,
  .nf-privacy .nf-link {
    transition: none;
  }
}
