/* ============================================================
   RubySDK Capability page — additions on top of styles.css
   styles.css is the investor page's stylesheet, copied
   byte-for-byte. Every token used here (--ruby, --wash,
   --line, --ink, --muted, --ruby-grad, --radius, --shadow)
   comes from its :root. Nothing below redefines a token;
   this file only adds the components the capability page
   needs that the investor page does not have.
   ============================================================ */

/* Wider measure for the multi-column sections. The investor page
   runs a 760px text column; the service and platform grids need
   more room, so those sections use .wrap--wide. */
.wrap--wide { max-width: 1080px; }

/* ---------- Section rhythm ---------- */
.sec { padding: 56px 0; border-top: 1px solid var(--line); }
.sec--first { border-top: 0; }
.sec--wash { background: var(--wash); }
.sec h2 { font-size: 32px; margin: 0 0 14px; letter-spacing: -0.022em; }
.sec .intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 66ch;
  margin: 0 0 30px;
}
.sec-note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- Numbered cards ---------- */
.num-grid { display: grid; gap: 16px; }
.num-grid--5 { grid-template-columns: repeat(5, 1fr); }
.num-grid--4 { grid-template-columns: repeat(2, 1fr); }
.num-grid--3 { grid-template-columns: repeat(3, 1fr); }

.num-card {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ruby);
  border-radius: 12px;
  padding: 20px 20px 22px;
  box-shadow: 0 1px 2px rgba(66, 15, 20, 0.03);
}
.sec--wash .num-card { background: #ffffff; }
.num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ruby-hover);
  margin: 0 0 6px;
}
.num-card h3 {
  font-size: 18px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.num-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }

/* Sub-items inside a numbered card */
.sub { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sub li { margin: 0; }
.sub-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.sub-text {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Platform columns ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.plat { display: flex; flex-direction: column; }
/* Where subgrid is available, the heading, the description and the list
   line up across all four columns, so the rules sit on one baseline. */
@supports (grid-template-rows: subgrid) {
  .plat-grid { grid-template-rows: auto auto auto; }
  .plat { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}
/* Without subgrid the columns still read correctly; the rule simply sits
   directly under each description instead of on a shared baseline. */
@supports not (grid-template-rows: subgrid) {
  .plat-list { margin-top: auto; }
}
.plat h3 { font-size: 17px; margin: 0 0 8px; }
.plat p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.plat-list {
  list-style: none;
  margin: 0;
  padding-top: 12px;
  border-top: 2px solid var(--ruby);
}
.plat-list li {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 5px 0;
}

/* ---------- Client cards ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ruby);
  border-radius: 12px;
  padding: 20px 22px;
}
.who-card h3 { font-size: 17px; margin: 0 0 8px; }
.who-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Chip rows ---------- */
.chip-row { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.chip-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ruby-hover);
  background: rgba(197, 84, 94, 0.09);
  border: 1px solid rgba(197, 84, 94, 0.26);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Principals ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ruby);
  border-radius: 12px;
  padding: 22px 24px;
}
.person h3 { font-size: 20px; margin: 0 0 4px; }
.person-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruby-hover);
  margin: 0 0 14px;
}
.person ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.person li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.person li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ruby-grad);
}

.prior {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ruby);
  border-radius: 12px;
  padding: 19px 22px;
}
.prior h3 { font-size: 17px; margin: 0 0 6px; }
.prior p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--ruby-grad);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 34px 36px;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: var(--on-dark); font-size: 24px; margin: 0 0 16px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ruby-deep);
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 20px;
  transition: background .15s ease;
}
.contact-links a:hover { background: var(--wash); }
.contact-meta { margin: 20px 0 0; font-size: 13px; color: var(--on-dark-dim); }

.legal {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(216, 185, 189, 0.85);
  max-width: 76ch;
  margin: 0 0 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .num-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sec { padding: 40px 0; }
  .sec h2 { font-size: 26px; }
  .num-grid--5,
  .num-grid--4,
  .num-grid--3,
  .plat-grid,
  .people { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 22px; }
  .contact-links a { flex: 1 1 100%; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  :root { --wash: #ffffff; }
  body { font-size: 11pt; background: #ffffff; }
  .site-header, .sec, .contact-card { break-inside: auto; }
  .site-header .ask-link { display: none; }
  .sec { padding: 18pt 0; break-before: auto; }
  .sec + .sec { break-before: page; }
  .wrap, .wrap--wide { max-width: 100%; padding: 0; }
  .num-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .num-card, .who-card, .person, .prior, .plat { break-inside: avoid; }
  .contact-card {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .contact-card h2 { color: var(--ink); }
  .contact-links a { background: #ffffff; border: 1px solid var(--line); color: var(--ruby-deep); }
  .contact-meta { color: var(--muted); }
  .site-footer { background: #ffffff; color: var(--muted); border-top: 1px solid var(--line); }
  .foot-mark { color: var(--ink); }
  .legal { color: var(--muted); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--muted); }
}

/* ---- Typeface match to the source deck (Lato, self-hosted) ---- */
@font-face{font-family:'Lato';src:url('fonts/lato-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Lato';src:url('fonts/lato-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Lato';src:url('fonts/lato-900.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap}

:root{ --sans: 'Lato', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

body{ font-family: var(--sans); }
h1,h2,h3{ font-family: var(--sans); font-weight: 700; letter-spacing: -0.015em; }
h1{ font-weight: 900; letter-spacing: -0.02em; }
.eyebrow{ font-family: var(--sans); font-weight: 700; letter-spacing: .13em; }
strong,b{ font-weight: 700; }

/* logo: give the mark the presence it has in the source deck */
.site-header img { height: 46px; }
@media (max-width: 600px){ .site-header img { height: 38px; } }
