/* ==========================================================================
   ATLAS FACILITY — Corporate stylesheet
   Software Development & Digital Solutions
   No external fonts, no third-party assets, no tracking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-darker: #1e3a8a;
  --accent-soft: #eff4ff;
  --accent-border: #c7d7fe;

  /* Ink / dark surfaces */
  --ink-900: #0a1226;
  --ink-800: #101a33;
  --ink-700: #1b2745;

  /* Text */
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-invert: #ffffff;
  --text-invert-muted: #b6c2d9;

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --surface-tint: #f1f5f9;

  /* Lines */
  --line: #e2e8f0;
  --line-soft: #edf1f7;
  --line-invert: rgba(255, 255, 255, 0.14);

  /* Feedback */
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 8px 24px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.06), 0 24px 48px -24px rgba(15, 23, 42, 0.22);

  /* Layout */
  --container: 1160px;
  --container-narrow: 820px;
  --header-h: 72px;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.15rem;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-darker);
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 650;
  color: var(--text);
}

hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 2.5rem 0;
}

address {
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

/* Wide tables scroll inside their own container instead of pushing the page
   sideways on narrow screens. */
.table-wrap {
  margin-bottom: 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  min-width: 34rem;
  margin-bottom: 0;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  padding-left: 1rem;
}

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

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

th {
  font-weight: 650;
  background: var(--surface-alt);
  color: var(--text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-tint);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Utilities & layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line-soft);
}

.section--dark {
  background: var(--ink-900);
  color: var(--text-invert-muted);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-invert);
}

.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: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

.text-center {
  text-align: center;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.section--dark .eyebrow {
  color: #8ab0ff;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* Grid */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.stack > * + * {
  margin-top: 1.15rem;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: #cbd5e1;
  background: var(--surface-alt);
  color: var(--text);
}

.btn--ghost-invert {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost-invert:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink-900);
}

.btn--light:hover {
  background: #e8eefb;
  border-color: #e8eefb;
  color: var(--ink-900);
}

.btn--lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.03rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent-dark);
}

.arrow-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow-link .arrow-link__icon {
  transition: transform 0.16s ease;
}

.arrow-link:hover .arrow-link__icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__name span {
  font-weight: 400;
  color: var(--text-muted);
}

.brand__tag {
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}

.brand--invert {
  color: #fff;
}

.brand--invert:hover {
  color: #fff;
}

.brand--invert .brand__mark {
  color: #3b82f6;
}

.brand--invert .brand__name span {
  color: var(--text-invert-muted);
}

.brand--invert .brand__tag {
  color: var(--text-invert-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__cta {
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.15rem, 4vw, 2.25rem) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__cta {
    margin-top: 1.1rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 32rem at 12% -10%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(46rem 30rem at 92% 8%, rgba(56, 189, 248, 0.16), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 46rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.1rem;
}

.hero__subtitle {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  line-height: 1.6;
  color: #cbd6e8;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfe0ff;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 999px;
}

.hero__badge svg {
  color: #7dd3fc;
  flex-shrink: 0;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-invert);
  font-size: 0.9rem;
  color: var(--text-invert-muted);
  max-width: 46rem;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta-item svg {
  color: #60a5fa;
  flex-shrink: 0;
}

/* Compact page hero for interior pages */
.page-hero {
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48rem 26rem at 8% -20%, rgba(37, 99, 235, 0.3), transparent 62%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  max-width: 22ch;
}

.page-hero p {
  max-width: 46rem;
  color: #cbd6e8;
  font-size: clamp(1rem, 0.97rem + 0.25vw, 1.13rem);
  margin-bottom: 0;
}

.page-hero .eyebrow {
  color: #8ab0ff;
}

/* Breadcrumb */
.breadcrumb {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-alt);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
}

.breadcrumb li + li::before {
  content: "/";
  color: #cbd5e1;
}

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

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

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card--link:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.card__footer {
  margin-top: 1.25rem;
  padding-top: 0;
}

.card--flat {
  background: var(--surface-alt);
  border-color: var(--line-soft);
}

.section--alt .card {
  background: var(--surface);
}

/* Service detail block */
.service-block {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.25rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
}

.service-block h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.service-block__body p {
  color: var(--text-muted);
}

.service-block__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.4rem 1.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.service-block__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.service-block__list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 640px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   8. Process / steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  padding-bottom: 2rem;
  margin: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}

.step h3 {
  margin-bottom: 0.35rem;
  padding-top: 0.6rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.section--dark .step::before {
  background: var(--ink-800);
  border-color: var(--line-invert);
  color: #93b4ff;
}

.section--dark .step:not(:last-child)::after {
  background: var(--line-invert);
}

.section--dark .step p {
  color: var(--text-invert-muted);
}

@media (min-width: 720px) {
  .steps--split {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
  }
}

/* --------------------------------------------------------------------------
   9. Feature list / checkmarks
   -------------------------------------------------------------------------- */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft) no-repeat center;
  border: 1px solid var(--accent-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.section--dark .check-list li {
  color: var(--text-invert-muted);
}

.section--dark .check-list li::before {
  background-color: rgba(59, 130, 246, 0.16);
  border-color: rgba(147, 197, 253, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Two-column split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Grid and flex children default to min-width:auto, which stops overflow
   containers (wide tables, long strings) from shrinking. Reset it so those
   children scroll internally instead of widening the page. */
.split > *,
.grid > *,
.form-grid > * {
  min-width: 0;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.25fr 1fr;
  }

  .split--wide-right {
    grid-template-columns: 1fr 1.25fr;
  }
}

.split__sticky {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

@media (max-width: 879px) {
  .split__sticky {
    position: static;
  }
}

/* Definition/info panel */
.panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.panel--accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.panel--note {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.panel h3 {
  margin-bottom: 0.75rem;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.section--dark .panel {
  background: var(--ink-800);
  border-color: var(--line-invert);
}

/* Key/value list */
.kv {
  margin: 0;
  display: grid;
  gap: 0;
}

.kv > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.kv > div:first-child {
  padding-top: 0;
}

.kv > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv dt {
  font-weight: 600;
  color: var(--text);
  font-size: 0.94rem;
}

.kv dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

@media (max-width: 560px) {
  .kv > div {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.35rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.field .optional {
  font-weight: 400;
  color: var(--text-soft);
}

.field .req {
  color: var(--danger);
  margin-left: 0.15rem;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #94a3b8;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #94a3b8;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
}

.select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}

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

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field.is-invalid .input:focus,
.field.is-invalid .select:focus,
.field.is-invalid .textarea:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.field__error {
  display: none;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--danger);
}

.field.is-invalid .field__error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.22rem 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__note {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Honeypot — hidden from humans, catches bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Form status messages */
.form-status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.94rem;
  line-height: 1.6;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #14532d;
}

.form-status--error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: #7f1d1d;
}

.form-status--info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #1e3a8a;
}

.form-status strong {
  display: block;
  margin-bottom: 0.25rem;
  color: inherit;
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

/* Success panel replacing the form */
.form-success {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
}

.form-success h2,
.form-success h3 {
  color: #14532d;
  margin-bottom: 0.6rem;
}

.form-success p {
  color: #166534;
  max-width: 34rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   11. Contact blocks
   -------------------------------------------------------------------------- */
.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
}

.contact-card__body {
  min-width: 0;
}

.contact-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card address {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.contact-card a {
  font-weight: 500;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(44rem 24rem at 78% 120%, rgba(37, 99, 235, 0.36), transparent 62%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  max-width: 20ch;
}

.cta-band p {
  margin-bottom: 0;
  max-width: 40ch;
  color: #cbd6e8;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3rem, 6vw, 4.25rem) 0;
  font-size: 0.93rem;
}

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer__brand {
  grid-column: span 1;
  min-width: 0;
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  }
}

.site-footer__desc {
  margin-top: 1.1rem;
  max-width: 26rem;
  color: var(--text-invert-muted);
  line-height: 1.65;
}

.site-footer h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: var(--text-invert-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer address a {
  word-break: break-word;
}

.site-footer__contact li {
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.site-footer__label {
  display: block;
  font-size: 0.78rem;
  color: #8494ae;
  margin-bottom: 0.1rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-invert);
  font-size: 0.85rem;
  color: #8494ae;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal-note {
  max-width: 52rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. Legal / long-form documents
   -------------------------------------------------------------------------- */
.doc {
  max-width: 48rem;
  min-width: 0;
}

.doc h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.doc > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc h3 {
  margin-top: 1.85rem;
  font-size: 1.06rem;
}

.doc p,
.doc li {
  color: var(--text-muted);
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.doc__meta strong {
  color: var(--text);
}

.toc {
  padding: 1.35rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
}

.toc h2 {
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  border: 0 !important;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.toc li {
  margin-bottom: 0.45rem;
}

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

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

/* Placeholder marker for information the operator must supply */
.placeholder {
  display: inline-block;
  padding: 0.05em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 600;
  color: #92400e;
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-sm);
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   15. 404
   -------------------------------------------------------------------------- */
.error-page {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding-block: var(--section-y);
  text-align: center;
}

.error-page__code {
  font-size: clamp(3.5rem, 3rem + 5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .breadcrumb,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .page-hero,
  .hero {
    background: #fff !important;
    color: #000 !important;
    padding-block: 0 0 1rem !important;
  }

  .page-hero h1,
  .hero h1,
  .page-hero p {
    color: #000 !important;
  }

  .page-hero::before,
  .hero::before,
  .hero::after {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .doc h2 {
    page-break-after: avoid;
  }
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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