/* ==========================================================================
   OLOID brand system — shared by every page under solutions.oloid.com
   Palette and type sampled from oloid.com. See BRAND.md before changing.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand blue — primary action and accent */
  --brand-50:  #EDF4FF;
  --brand-100: #D9EAFF;
  --brand-200: #B6D4F7;
  --brand-600: #0B6FD0;
  --brand-700: #0958A6;

  /* Ink — headings through body copy */
  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #5B667B;
  --ink-400: #7C8AA3;

  --navy-900: #12174E;

  --surface:   #FFFFFF;
  --surface-2: #FAFAFC;
  --surface-3: #F4F7FC;
  --border:    #E4E9F2;
  --border-2:  #D3DCEA;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 28px -12px rgba(16, 24, 40, .18);

  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-50:  #101B2B;
    --brand-100: #16273D;
    --brand-200: #1E3A5C;
    --brand-600: #4E9CEC;
    --brand-700: #7BB8F5;

    --ink-900: #F2F5FA;
    --ink-700: #C8D2E0;
    --ink-500: #9AA8BE;
    --ink-400: #7A8AA0;

    --surface:   #0B1017;
    --surface-2: #0F1620;
    --surface-3: #131C28;
    --border:    #1E2937;
    --border-2:  #2A3745;
    --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, .6);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-500);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink-900); line-height: 1.15; letter-spacing: -.021em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.008em; }
p  { margin: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); }
.brand svg { height: 22px; width: auto; display: block; }
.brand-divider {
  width: 1px; height: 20px; background: var(--border-2);
}
.brand-label {
  font-size: .9375rem; font-weight: 500; color: var(--ink-500); letter-spacing: -.006em;
}
.header-nav { display: flex; gap: 22px; font-size: .9375rem; font-weight: 500; }
.header-nav a { color: var(--ink-500); }
.header-nav a:hover { color: var(--ink-900); }
@media (max-width: 640px) { .header-nav { display: none; } }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(760px 320px at 12% -10%, var(--brand-50), transparent 70%),
    radial-gradient(620px 280px at 88% 0%, var(--brand-100), transparent 72%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .085em; text-transform: uppercase;
  color: var(--brand-600);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
.hero h1 { max-width: 19ch; }
.lede {
  margin-top: 18px; max-width: 62ch;
  font-size: clamp(1.02rem, 1.6vw, 1.1875rem); color: var(--ink-500);
}

/* ---------- sections ---------- */

.group { padding: 60px 0; border-bottom: 1px solid var(--border); }
.group:last-of-type { border-bottom: 0; }
.group-head { margin-bottom: 28px; max-width: 60ch; }
.group-head p { margin-top: 8px; color: var(--ink-500); }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.card:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; }

.card-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.card-icon svg { width: 20px; height: 20px; display: block; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card p { font-size: .9375rem; color: var(--ink-500); }
.card .arrow {
  color: var(--ink-400);
  transition: transform .16s ease, color .16s ease;
}
.card:hover .arrow { transform: translateX(3px); color: var(--brand-600); }

/* ---------- stub page ---------- */

.stub { padding: 84px 0 96px; }
.stub .eyebrow { margin-bottom: 16px; }
.stub h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.stub .lede { margin-bottom: 30px; }
.backlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9375rem; font-weight: 500;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 30px 0;
  font-size: .875rem; color: var(--ink-400);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}

/* ---------- hero with media ---------- */

.hero { padding: 64px 0 52px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 48px; align-items: center;
}
.hero-media { align-self: center; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
}
.hero-media img {
  display: block; width: 100%;
  height: clamp(240px, 27vw, 340px);      /* explicit: aspect-ratio was being stretched by the grid row */
  object-fit: cover; object-position: center 40%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- section media ----------
   Heading and artwork share one band so the image adds width, not height. */

.group-top {
  display: grid; grid-template-columns: 1fr minmax(260px, 360px);
  gap: 36px; align-items: center;
  margin-bottom: 26px;
}
@media (max-width: 820px) {
  .group-top { grid-template-columns: 1fr; gap: 20px; }
}
.group-head { margin-bottom: 0; }

.group-media {
  margin: 0; padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-50);
  display: grid; place-items: center;
}
.group-media img {
  display: block; width: 100%; height: auto;
  max-height: 148px; object-fit: contain;
}

/* ---------- compliance strip ---------- */

.trust { border-top: 1px solid var(--border); background: var(--surface-2); padding: 28px 0 24px; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.trust figure {
  margin: 0; padding: 9px 16px;
  background: #FFFFFF;           /* badges are dark artwork — always on white */
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
}
.trust img { height: 40px; width: auto; display: block; }
.trust .trust-note {
  width: 100%; text-align: center; margin-top: 6px;
  font-size: .8125rem; color: var(--ink-400);
}
