/* ==========================================================================
   SageLogic AI Solutions
   Editorial direction. Palette and logo per brand. Instrument Serif display
   against Nunito Sans body.
   ========================================================================== */

:root {
  --teal:        #1C4A3C;
  --teal-deep:   #14332A;
  --teal-black:  #10281F;
  --slate:       #285258;
  --green:       #2C5840;

  --cream:       #F5F2EC;
  --paper:       #FFFFFF;

  --ink:         #1E2A24;
  --ink-soft:    #4C5A53;
  --ink-mute:    #6B7A70;

  --rule:        #DCD6CA;
  --rule-soft:   #E7E2D8;
  --numeral:     #C9D2CB;
  --numeral-warm:#C6BFAF;
  --sand:        #9A8F7C;

  --on-dark:       rgba(255, 255, 255, 0.92);
  --on-dark-soft:  rgba(255, 255, 255, 0.74);
  --on-dark-mute:  rgba(255, 255, 255, 0.45);
  --on-dark-rule:  rgba(255, 255, 255, 0.16);
  --on-dark-rule-2:rgba(255, 255, 255, 0.28);

  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);

  /* Sentinel. Pages check for this to detect a missing stylesheet. */
  --sl-stylesheet: loaded;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--teal-black);
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.012em;
}

/* ---------- layout ---------- */

.grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.sec { padding: 112px 0; }
.sec--tight { padding: 84px 0; }

.guides {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  pointer-events: none;
}
.guides span { border-left: 1px solid rgba(255, 255, 255, 0.045); }
.guides span:last-child { border-right: 1px solid rgba(255, 255, 255, 0.045); }

.glow {
  position: absolute;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.30;
  filter: blur(90px);
  pointer-events: none;
}

/* ---------- type ---------- */

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: 88px; line-height: 1.0; letter-spacing: -0.022em; }
h2 { font-size: 52px; line-height: 1.08; }
h3 { font-size: 29px; line-height: 1.16; letter-spacing: -0.014em; }
h4 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
p  { margin: 0; text-wrap: pretty; }

.lab {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}
.secnum { font-size: 60px; line-height: 0.9; display: block; }
.small  { font-size: 17px; line-height: 1.62; }
.mid    { font-size: 19px; line-height: 1.64; }
.measure { max-width: 62ch; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--teal); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #FFFFFF;
  color: var(--teal);
  padding: 12px 20px;
  font-weight: 800;
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- buttons and links ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}
.cta:hover { border-color: rgba(255, 255, 255, 0.75); }
.cta--solid { background: #FFFFFF; color: var(--teal); border-color: #FFFFFF; }
.cta--solid:hover { background: #E4EAE5; }
.cta--dark { border-color: rgba(28, 74, 60, 0.35); color: var(--teal); }
.cta--dark:hover { background: var(--teal); color: #FFFFFF; border-color: var(--teal); }

.inline-link {
  font-size: 17px;
  font-weight: 800;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
  transition: opacity 180ms ease;
}
.inline-link:hover { opacity: 0.6; }
.inline-link, .footlink { overflow-wrap: anywhere; }

/* ---------- header ---------- */

.site-header {
  background: var(--teal);
  position: relative;
  z-index: 20;
}
.site-header .grid {
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--on-dark-rule);
}
.brand {
  grid-column: span 4;
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand img { width: 52px; height: auto; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name .wordmark {
  color: #FFFFFF;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.018em;
}
.brand-name .sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-top: 5px;
}

.nav {
  grid-column: 5 / span 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}
.navlink {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--on-dark-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.navlink:hover { color: #FFFFFF; border-bottom-color: rgba(255, 255, 255, 0.6); }
.navlink[aria-current="page"] { color: #FFFFFF; border-bottom-color: rgba(255, 255, 255, 0.5); }

.nav-toggle {
  display: none;
  grid-column: 9 / span 4;
  justify-self: end;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 13px 18px;
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */

.site-footer { background: var(--teal-black); padding: 58px 0 40px; }
.site-footer .grid { row-gap: 34px; align-items: start; }
.footlink {
  color: var(--on-dark-soft);
  font-size: 17px;
  transition: color 160ms ease;
}
.footlink:hover { color: #FFFFFF; }

/* ---------- reusable pieces ---------- */

.rule-list > * { border-top: 1px solid var(--rule); padding: 22px 0 26px; }
.rule-list > *:first-child { border-top-color: var(--teal-deep); }

.ruleitem {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.rulenum { font-size: 19px; color: rgba(255, 255, 255, 0.42); padding-top: 2px; }
.ruletext { font-size: 19px; color: var(--on-dark); font-weight: 700; }
.rulesub { font-size: 17px; color: rgba(255, 255, 255, 0.62); margin-top: 5px; line-height: 1.55; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-right { padding-left: 44px; border-left: 1px solid var(--rule); }
.split-left { padding-right: 44px; }

.step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top-color: var(--teal-deep); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.stepnum { font-size: 40px; color: var(--numeral); line-height: 1; }

.pullquote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 30px;
}

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); outline: none; }
.field .hint { font-size: 15px; color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-weight: 400; }

button.cta { font-family: inherit; }

/* ---------- motion ---------- */

.rev {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.rev.is-in { opacity: 1; transform: none; }

.hero-in > * {
  opacity: 0;
  animation: riseIn 720ms var(--ease) forwards;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-in > * { opacity: 1 !important; animation: none !important; }
}

/* No JS: never hide content. */
.no-js .rev { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid { padding: 0 44px; }
  .guides { padding: 0 44px; }
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  .secnum { font-size: 46px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 22px;
  }
  .nav.is-open .navlink {
    font-size: 17px;
    letter-spacing: 0.06em;
    text-transform: none;
    font-weight: 700;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--on-dark-rule);
  }
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr) !important; padding: 0 24px; row-gap: 0; }
  .grid > * { grid-column: 1 / -1 !important; }
  .guides { display: none !important; }
  .sec, .sec--tight { padding: 68px 0; }

  h1 { font-size: 36px; letter-spacing: -0.02em; }
  h2 { font-size: 31px; }
  h3 { font-size: 23px; }
  h1 br, h2 br { display: none; }
  .secnum { font-size: 38px; margin-bottom: 14px; }

  .cta { width: 100%; }
  .split { grid-template-columns: minmax(0, 1fr) !important; }
  .split-left { padding-right: 0; }
  .split-right {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
    margin-top: 24px;
  }
  .step { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .stepnum { font-size: 30px; }
  .flow-col {
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: 1px solid var(--on-dark-rule);
    padding-top: 20px;
  }
  .brand { grid-column: 1 / span 7 !important; gap: 12px; }
  .brand img { width: 42px; }
  .brand-name .wordmark { font-size: 23px; }
  .brand-name .sub { font-size: 10px; letter-spacing: 0.2em; }
  .nav-toggle { grid-column: 8 / -1 !important; padding: 12px 14px; font-size: 13px; }
  .biopic { max-width: 220px; margin-bottom: 30px; }
  .metastrip { flex-direction: column !important; gap: 8px !important; }
  .pullquote { padding-left: 20px; }
}

/* ---------- legal pages ---------- */

.legal { color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.legal h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--teal-deep);
  font-size: 34px;
  margin: 56px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.legal h3 { color: var(--teal-deep); font-size: 20px; font-weight: 800; letter-spacing: 0; margin: 30px 0 10px; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li p { margin: 0; }
.legal strong { color: var(--ink); }
.legal a:not(.inline-link) { color: var(--teal); border-bottom: 1px solid var(--teal); overflow-wrap: anywhere; }
.legal .legal-date { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.legal .legal-caps {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--cream);
  border-left: 3px solid var(--teal);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.legal .legal-caps p { margin: 0; }
.legal .legal-contact { margin: 18px 0; padding: 0 0 0 22px; border-left: 3px solid var(--teal); }
.legal-pending {
  background: var(--cream);
  border-left: 3px solid var(--teal);
  padding: 20px 24px;
  margin-bottom: 36px;
  color: var(--ink);
}
.legal-pending .lab { color: var(--teal); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
}
.legal-table th {
  text-align: left;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-weight: 800;
  padding: 10px 12px;
  vertical-align: bottom;
}
.legal-table th strong { color: #FFFFFF; }
.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 130px; }
.legal-table td p { margin: 0; }
.legal-table tr:nth-child(even) td { background: #FAF8F4; }
@media (max-width: 700px) {
  .legal h2 { font-size: 27px; margin-top: 44px; }
  .legal-table { font-size: 14px; }
}
