:root {
  --ink: #16211D;
  --ink-soft: #5B6B65;
  --ink-faint: #8B9A94;
  --paper: #FAFBF9;
  --panel: #FFFFFF;
  --line: #E3E8E4;
  --teal-900: #04342C;
  --teal-800: #085041;
  --teal-600: #0F6E56;
  --teal-400: #1D9E75;
  --teal-200: #5DCAA5;
  --teal-100: #9FE1CB;
  --teal-50: #E1F5EE;
}
:root[data-theme="dark"] {
  --ink: #E7EFEB;
  --ink-soft: #A9B9B2;
  --ink-faint: #74857D;
  --paper: #0B1512;
  --panel: #12201C;
  --line: #23342C;
  --teal-50: #16332B;
  --teal-800: #5FD1A8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-800); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-600); }

/* Nav */
nav { display: flex; align-items: center; padding: 22px 0; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--teal-800); font-family: 'Sora', sans-serif; flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; margin-left: 40px; }
.nav-links a { white-space: nowrap; }
.nav-links a.current { color: var(--teal-800); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; padding-left: 24px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 18px; line-height: 1; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-signin-mobile { display: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--teal-600); color: var(--teal-600); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .fi-coral,
[data-theme="dark"] .fi-purple,
[data-theme="dark"] .fi-blue,
[data-theme="dark"] .fi-amber,
[data-theme="dark"] .fi-slate,
[data-theme="dark"] .int-mark,
[data-theme="dark"] .badge-progress,
[data-theme="dark"] .badge-done,
[data-theme="dark"] .rn-edition.onprem,
[data-theme="dark"] .rn-tag.improved,
[data-theme="dark"] .rn-tag.fixed {
  filter: brightness(0.82) saturate(0.85);
}

/* Page header (used on inner pages) */
.page-header { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: 40px; margin-bottom: 14px; }
.page-header p { font-size: 17px; color: var(--ink-soft); max-width: 560px; }

/* Path signature divider */
.path-track { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.path-track .node { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
.path-track .node.end { width: 11px; height: 11px; background: var(--teal-600); }
.path-track .rule { flex: 1; height: 1px; background: var(--line); }
.path-track .tag { font-size: 13px; font-weight: 600; color: var(--teal-800); letter-spacing: 0.02em; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: 30px; margin-bottom: 12px; }
section > .wrap > p.lead { color: var(--ink-soft); font-size: 16px; max-width: 560px; margin-bottom: 44px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--ink-faint); }

/* Parent-company badge — intentionally kept in IntendSys's own palette
   (indigo/violet/emerald), not Trakolo's teal, so it reads as a
   distinct, linked brand rather than a re-theme of this site. */
.intendsys-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 20px; background: #14102B; color: #EEEAFF; font-weight: 600; font-size: 12.5px; border: 1px solid rgba(109,93,252,0.45); white-space: nowrap; }
.intendsys-badge:hover { border-color: #10B981; color: #fff; }
.intendsys-badge svg { width: 14px; height: 14px; color: #6D5DFC; flex-shrink: 0; }

/* Nav collapses to the hamburger menu well before the full link set would
   run out of room and wrap mid-link — this breakpoint is intentionally
   wider than the general mobile layout breakpoint below. */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-links {
    display: none; flex-direction: column; gap: 0; margin-left: 0;
    position: absolute; top: 100%; left: 32px; right: 32px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 6px 18px; box-shadow: 0 16px 32px -16px rgba(15,33,25,0.22); z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-signin-mobile { display: block; font-weight: 600; color: var(--teal-800); }
}

@media (max-width: 860px) {
  .page-header h1 { font-size: 30px; }
}
