/* ==========================================================================
   ERPFin360 — Design System
   Finance at the core. Your entire business in view.
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #071628;
  --navy: #0B1F3A;
  --slate: #263548;
  --ink-700: #3B4B60;
  --ink-600: #4E6076;
  --ink-500: #5F6E82;
  --blue: #1769E0;
  --blue-700: #1257C4;
  --blue-050: #EAF1FD;
  --teal: #00A88F;
  --teal-700: #00806D;
  --teal-050: #E4F6F2;
  --gray-200: #E8EDF3;
  --gray-100: #EFF3F8;
  --bg-soft: #F6F8FB;
  --white: #FFFFFF;
  --amber-700: #96631A;
  --amber-050: #FDF4E3;
  --red-700: #B02A2A;
  --red-050: #FCEDED;

  /* Type */
  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Space + shape */
  --container: 1180px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .04);
  --shadow: 0 2px 6px rgba(11, 31, 58, .06), 0 10px 24px rgba(11, 31, 58, .07);
  --shadow-lg: 0 8px 20px rgba(11, 31, 58, .08), 0 28px 60px rgba(11, 31, 58, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 40px 0; }

/* ---- 3. Typography ------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.14;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy); font-weight: 600; }
small { font-size: .8125rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex: none;
}
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-600); }
.muted { color: var(--ink-500); }
.fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.ref { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-500); }

/* ---- 4. Layout ---------------------------------------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--gray-200); }
.section--navy { background: var(--navy); color: #C6D3E3; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .eyebrow { color: #4FD3BB; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack > * + * { margin-top: 14px; }

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.005em;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); }
.btn--secondary { background: var(--white); color: var(--navy); border-color: #C8D4E3; }
.btn--secondary:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn--ghost { background: transparent; color: var(--navy); border-color: transparent; padding-inline: 8px; }
.btn--ghost:hover { color: var(--blue-700); }
.btn--onnavy { background: var(--white); color: var(--navy); }
.btn--onnavy:hover { background: var(--gray-100); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .38); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { font-weight: 600; font-size: .9375rem; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- 6. Header / navigation -------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 12px 18px;
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.announce {
  background: var(--navy);
  color: #BDCDE0;
  font-size: .875rem;
  text-align: center;
  padding: 10px 20px;
}
.announce a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 6px;
  font-size: .9375rem; font-weight: 500; color: var(--slate);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-link:hover { color: var(--navy); background: var(--gray-100); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 6px 6px 0 0; }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-3px, -3px); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 32px 0 36px;
  display: none;
}
.mega[data-open="true"] { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.mega-col h4 { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; margin-bottom: 12px; }
.mega-item { display: block; padding: 8px 10px; margin-left: -10px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .9375rem; }
.mega-item span { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-500); margin-top: 2px; }
.mega-item:hover { background: var(--bg-soft); text-decoration: none; }
.mega-promo { background: var(--bg-soft); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ---- 7. Hero ------------------------------------------------------------ */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23, 105, 224, .16) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 78% 12%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 80% at 78% 12%, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.1875rem; color: var(--ink-600); max-width: 46ch; margin-bottom: 28px; }
.hero-note { margin-top: 22px; font-size: .875rem; color: var(--ink-500); }

/* ---- 8. Dashboard mock -------------------------------------------------- */
.dash {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--navy); }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.dash-title { color: #A9BDD4; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; margin-left: 8px; text-transform: uppercase; }
.dash-body { padding: 18px; display: grid; gap: 14px; background: var(--bg-soft); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px; }
.kpi-label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); font-family: var(--font-mono); }
.kpi-value { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.02em; }
.kpi-delta { font-size: .75rem; font-weight: 600; margin-top: 3px; }
.kpi-delta.up { color: var(--teal-700); }
.kpi-delta.down { color: var(--red-700); }
.panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel-head h4 { margin: 0; font-size: .9375rem; }
.dash-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars div { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue); opacity: .82; }
.bars div:nth-child(even) { background: var(--teal); }
.axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .625rem; color: var(--ink-500); margin-top: 8px; }
.legend { display: flex; gap: 14px; font-size: .75rem; color: var(--ink-500); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.mini-rows { display: grid; gap: 9px; }
.mini-row { display: flex; justify-content: space-between; font-size: .8125rem; }
.mini-row span:last-child { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.meter { height: 6px; border-radius: 99px; background: var(--gray-200); overflow: hidden; margin-top: 5px; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.meter i.teal { background: var(--teal); }
.meter i.amber { background: #E0A22B; }

/* ---- 9. Capability chips / trust --------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gray-200); background: var(--white);
  border-radius: 99px; padding: 9px 16px;
  font-size: .875rem; font-weight: 500; color: var(--slate);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---- 10. Cards ---------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.card h3, .card h4 { margin-bottom: 8px; }
.card p { font-size: .9375rem; color: var(--ink-600); }
.card--link:hover { box-shadow: var(--shadow); border-color: #CFDAE8; transform: translateY(-2px); }
.card--flat { box-shadow: none; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-050); color: var(--blue-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }
.card-icon--teal { background: var(--teal-050); color: var(--teal-700); }
.tick-list li { position: relative; padding-left: 26px; font-size: .9375rem; margin-bottom: 9px; color: var(--ink-600); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.section--navy .tick-list li { color: #C6D3E3; }

/* ---- 11. Orbit (connected platform) ------------------------------------ */
.orbit-wrap { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.orbit-ring { position: absolute; inset: 8%; border: 1px dashed #CBD8E7; border-radius: 50%; }
.orbit-ring.inner { inset: 26%; border-style: solid; border-color: var(--gray-200); }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center; text-align: center; padding: 10px;
  box-shadow: 0 18px 40px rgba(11, 31, 58, .22);
}
.orbit-core img { width: 44%; }
.orbit-core b { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .02em; margin-top: 8px; display: block; }
.orbit-core span { font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .12em; color: #8FA6C0; text-transform: uppercase; }
.orbit-node {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 99px; padding: 7px 14px;
  font-size: .8125rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); cursor: pointer; white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.orbit-node:hover, .orbit-node[aria-pressed="true"] { border-color: var(--teal); color: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-050); }
.orbit-detail { background: var(--white); border: 1px solid var(--gray-200); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.orbit-detail h3 { margin-bottom: 6px; }
.orbit-detail .ref { display: block; margin-bottom: 14px; }

/* ---- 12. Feature rows / steps ------------------------------------------ */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; }
.feature h4 { display: flex; gap: 10px; align-items: baseline; }
.feature p { font-size: .9375rem; color: var(--ink-600); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--white); padding: 22px; }
.step .ref { display: block; margin-bottom: 8px; color: var(--blue-700); font-weight: 500; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .875rem; margin: 0; color: var(--ink-600); }

/* ---- 13. Tables --------------------------------------------------------- */
.table-wrap { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: auto; background: var(--white); }
.table { font-size: .9375rem; }
.table caption { text-align: left; padding: 16px 18px; font-weight: 600; color: var(--navy); font-family: var(--font-display); border-bottom: 1px solid var(--gray-200); }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.table thead th {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 500; background: var(--bg-soft); border-bottom: 1px solid var(--gray-200);
}
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFCFE; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.badge--ok { background: var(--teal-050); color: var(--teal-700); }
.badge--pending { background: var(--amber-050); color: var(--amber-700); }
.badge--due { background: var(--red-050); color: var(--red-700); }
.badge--info { background: var(--blue-050); color: var(--blue-700); }

/* ---- 14. Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.label .req { color: var(--red-700); margin-left: 2px; }
.hint { font-size: .8125rem; color: var(--ink-500); }
.input, .select, .textarea {
  font: inherit; font-size: .9375rem; color: var(--navy);
  background: var(--white); border: 1px solid #C8D4E3; border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9AA9BC; }
.input:hover, .select:hover, .textarea:hover { border-color: #A9B9CC; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 224, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red-700); box-shadow: 0 0 0 3px rgba(176, 42, 42, .12); }
.error-text { font-size: .8125rem; color: var(--red-700); font-weight: 500; display: none; }
.error-text[data-show="true"] { display: block; }
.checkgroup { display: flex; flex-wrap: wrap; gap: 10px; }
.checkgroup label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #C8D4E3; border-radius: 99px; padding: 8px 15px;
  font-size: .875rem; cursor: pointer; background: var(--white);
}
.checkgroup input { accent-color: var(--blue); }
.checkgroup label:has(input:checked) { border-color: var(--blue); background: var(--blue-050); color: var(--navy); font-weight: 500; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .875rem; color: var(--ink-600); }
.consent input { margin-top: 4px; accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.alert { border-radius: var(--radius); padding: 15px 18px; font-size: .9375rem; border: 1px solid; display: flex; gap: 12px; }
.alert b { display: block; margin-bottom: 2px; }
.alert--success { background: var(--teal-050); border-color: #A8DED2; color: #0A5C4E; }
.alert--info { background: var(--blue-050); border-color: #B9D3F7; color: #144E9E; }
.alert--warn { background: var(--amber-050); border-color: #EBD4A4; color: var(--amber-700); }
.alert--error { background: var(--red-050); border-color: #EFC0C0; color: var(--red-700); }

/* ---- 15. Pricing -------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; height: 100%; }
.plan--featured { border-color: var(--navy); box-shadow: var(--shadow-lg); position: relative; }
.plan-flag { position: absolute; top: -13px; left: 30px; background: var(--navy); color: var(--white); font-size: .6875rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.plan h3 { margin-bottom: 4px; }
.plan-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 700; margin: 18px 0 4px; }
.plan-for { font-size: .9375rem; color: var(--ink-600); min-height: 48px; }
.plan .btn { margin: 22px 0; }
.plan ul { margin-top: auto; }

/* ---- 16. Auth / tenant sign-in ------------------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: min(100%, 400px); }
.auth-card .brand { margin-bottom: 32px; }
.auth-tenant { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 26px; }
.auth-tenant-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .875rem; flex: none; }
.auth-tenant b { display: block; color: var(--navy); font-size: .9375rem; }
.auth-tenant span { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-500); }
.auth-aside { background: var(--navy); color: #B9C9DC; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after {
  content: ""; position: absolute; right: -140px; bottom: -160px; width: 480px; height: 480px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .04);
}
.auth-aside blockquote { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--white); margin: 0 0 24px; letter-spacing: -.02em; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---- 17. Footer --------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #90A4BC; padding: 64px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.site-footer a { color: #A9BDD4; display: block; padding: 5px 0; font-size: .875rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-slogan { color: #7E93AD; font-size: .875rem; max-width: 30ch; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: .8125rem; color: #7E93AD; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { display: inline; font-size: .8125rem; }

/* ---- 18. Utilities ------------------------------------------------------ */
.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; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-24 { margin-bottom: 24px; }
.maxw-60 { max-width: 60ch; } .maxw-70 { max-width: 70ch; }

/* ---- 19. Focus + motion ------------------------------------------------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.section--navy :focus-visible, .auth-aside :focus-visible, .site-footer :focus-visible { outline-color: #6FD8C4; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ---- 20. Responsive ----------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .orbit-wrap { grid-template-columns: 1fr; }
  .orbit-wrap .orbit { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-list, .nav-actions .btn--ghost { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: var(--white); border: 1px solid #C8D4E3; border-radius: var(--radius-sm);
    padding: 9px 14px; font-weight: 600; font-size: .875rem; color: var(--navy); cursor: pointer;
  }
  .nav-actions { margin-left: 12px; }
  .nav-actions .btn { padding: 10px 16px; }
  .mobile-nav {
    border-top: 1px solid var(--gray-200); background: var(--white);
    max-height: calc(100vh - 74px); overflow: auto; padding: 12px 0 28px;
  }
  .mobile-nav[data-open="true"] { display: block; }
  .mobile-nav details { border-bottom: 1px solid var(--gray-100); }
  .mobile-nav summary { padding: 14px 4px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
  .mobile-nav summary::after { content: "+"; color: var(--blue); font-size: 1.25rem; line-height: 1; }
  .mobile-nav details[open] summary::after { content: "–"; }
  .mobile-nav a { display: block; padding: 10px 4px 10px 14px; color: var(--slate); font-size: .9375rem; }
  .mobile-nav .btn { margin-top: 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .steps, .feature-row, .plans, .grid-3 { grid-template-columns: 1fr 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .feature-row, .plans, .form-grid, .footer-grid, .mega-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .section { padding: 52px 0; }
  .orbit-node { font-size: .6875rem; padding: 5px 9px; }
  .btn-row .btn { width: 100%; }
  .plan { padding: 24px; }
}

/* ---- 21. Print ---------------------------------------------------------- */
@media print {
  .site-header, .announce, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 12pt 0; }
}

/* ---- 22. Dashboard table density ---------------------------------------- */
.dash .table th, .dash .table td { padding: 10px 12px; font-size: .8125rem; white-space: nowrap; }
.badge, .ref { white-space: nowrap; }

/* ---- 23. Overflow safety ------------------------------------------------ */
.grid > *, .split > *, .hero-grid > *, .orbit-wrap > *,
.dash-body > *, .dash-cols > *, .plans > *, .steps > *, .feature-row > * { min-width: 0; }
body { overflow-x: hidden; }

@media (max-width: 520px) {
  .nav-actions .btn--primary { display: none; }
  .brand img { height: 30px; }
  .announce { font-size: .8125rem; }
}
[hidden] { display: none !important; }
