/* ==========================================================================
   Digital Solutions LLC — institutional site
   Design system: corporate light. Navy + institutional blue, hairline rules,
   generous whitespace, no external assets (fonts, images or scripts).
   ========================================================================== */

:root {
  --ink:        #0A1A2F;
  --ink-2:      #1C2E48;
  --muted:      #5C6E88;
  --muted-2:    #8595AC;
  --line:       #E3E9F1;
  --line-2:     #EDF1F7;
  --surface:    #F7F9FC;
  --surface-2:  #FFFFFF;
  --brand:      #14396F;
  --brand-dark: #0E2A54;
  --accent:     #2563EB;
  --accent-soft:#EDF3FE;

  --w-page: 1160px;
  --w-text: 68ch;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 47, .05);
  --shadow-md: 0 12px 32px -18px rgba(10, 26, 47, .28);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;

  --pad-section: 104px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; margin: 0; letter-spacing: -0.022em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--pad-section) 0; }
.section--tight { padding: 72px 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--navy { background: var(--brand-dark); color: #C9D6EA; }
.section--navy h2, .section--navy h3 { color: #fff; }

.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 28px; }
.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)); }

/* Typography ------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow--muted { color: var(--muted-2); }

.display { font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -0.03em; }
.h1 { font-size: clamp(34px, 4.2vw, 46px); letter-spacing: -0.028em; }
.h2 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.025em; }
.h3 { font-size: 20px; letter-spacing: -0.012em; }
.h4 { font-size: 16px; letter-spacing: -0.005em; }

.lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.body-muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.6; }
.measure { max-width: var(--w-text); }

.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head p { margin-top: 18px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #E9EEF7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.arrow-link { font-weight: 600; font-size: 15.5px; display: inline-flex; gap: 7px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.nav a.btn { padding: 10px 18px; font-size: 15px; border-bottom: 1px solid transparent; }
.nav a.btn--primary { color: #fff; border-color: transparent; }
.nav a.btn--primary:hover { color: #fff; }

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: 96px 0 104px;
  background:
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 62%),
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 96px);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}
.hero .lead { margin-top: 26px; }

.hero--page { padding: 84px 0 76px; }
.hero--page .lead { margin-top: 24px; }

/* Diagram card (hero visual, pure CSS/SVG) -------------------------------- */
.diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.diagram__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 22px;
}
.diagram__title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.dot-row i:first-child { background: #C7D5EC; }

.flow { display: grid; gap: 12px; }
.flow__step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.flow__step--active { border-color: #C3D5F5; background: var(--accent-soft); }
.flow__num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.flow__step--active .flow__num { background: var(--accent); }
.flow__step > span { min-width: 0; }
.flow__label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.flow__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.flow__val { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.flow__rule { height: 14px; margin-left: 33px; border-left: 1px dashed #C7D5EC; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 8px 32px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__label { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card--hover:hover { border-color: #C7D5EC; box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 20px; height: 20px; }

.card-list { display: grid; gap: 10px; margin-top: 20px; }
.card-list li { list-style: none; font-size: 15px; color: var(--muted); padding-left: 22px; position: relative; }
.card-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: #C3D5F5;
}

/* Numbered steps --------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.step__num::before { content: "0" counter(step); }
.step p { color: var(--muted); margin-top: 10px; max-width: 64ch; }

/* Tag list --------------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}

/* Definition rows (company facts) ---------------------------------------- */
.facts { border-top: 1px solid var(--line); }
.facts__row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.facts__key { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.facts__val { font-size: 15.5px; color: var(--ink); }

/* Callout ---------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 22px 26px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout p { font-size: 15.5px; color: var(--muted); }

/* CTA band --------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .lead { margin: 20px auto 0; color: #A9BCD8; }
.cta-band .btn-row { justify-content: center; }

/* Form ------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--muted-2); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.consent label { font-weight: 400; font-size: 14.5px; color: var(--muted); }

/* Legal pages ------------------------------------------------------------ */
.legal { padding: 72px 0 104px; }
.legal__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 108px; }
.toc__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; }
.toc li { counter-increment: toc; }
.toc a { font-size: 14.5px; color: var(--muted); display: block; line-height: 1.45; }
.toc a::before { content: counter(toc) ". "; color: var(--muted-2); }
.toc a:hover { color: var(--ink); text-decoration: none; }

.prose { max-width: var(--w-text); }
.prose h2 {
  font-size: 22px;
  letter-spacing: -0.018em;
  margin: 52px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); font-size: 16.5px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; color: var(--ink-2); font-size: 16.5px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--ink); }
.prose address { font-style: normal; color: var(--ink-2); }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
  font-size: 14px;
  color: var(--muted);
}
.doc-meta strong { color: var(--ink); font-weight: 600; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand img { height: 32px; margin-bottom: 20px; }
.footer__brand address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a { font-size: 14.5px; color: var(--muted); }
.footer__col a:hover { color: var(--ink); text-decoration: none; }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted-2);
}
.footer__note { max-width: 78ch; font-size: 13px; color: var(--muted-2); margin-top: 18px; line-height: 1.65; }

/* Skip link -------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip:focus { left: 16px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --pad-section: 80px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 720px) {
  :root { --pad-section: 64px; }
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 68px; gap: 16px; }
  .brand img { height: 30px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14.5px; }
  .nav .btn { display: none; }
  .hero { padding: 64px 0 72px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat { padding: 0 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat__num { font-size: 32px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .field--row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .toc, .btn-row { display: none; }
  body { font-size: 12pt; }
  .legal { padding: 0; }
  .legal__layout { grid-template-columns: 1fr; }
}
