/*
 * OneAccess public landing page (D1, corrected in D2). Loaded only by _MetronicLandingLayout, after the Metronic bundles,
 * oa/tokens.css and oa-shell.css. Vendor files are never edited. No inline styles (CSP style-src 'self'); images are referenced
 * from here only. Structure follows the Demo 1 landing page (docs/ui-reference/demo1/demo1/landing.html): header, hero, section bands.
 * The Kenyan red accent appears only on the hero word "One" and the call-to-action buttons; it never carries status meaning.
 *
 * D2 notes (see docs/ui/public-landing-page.md):
 *  - Metronic fixes `html, body { font-size: 13px !important }`, which made copy smaller than the mock-up. The landing page (the only !important exceptions)
 *    sets 16px so rem values here are real 16px rems at every width.
 *  - Metronic's `.btn:not(...)` rules remove borders from every button and out-rank class selectors, so the outlined landing buttons draw their outline with a ::after border.
 */
:root { font-size: 16px !important; }

:root {
  --oa-ke-red: #c8101f;
  --oa-ke-red-hover: #a90d1a;
  --oa-ke-green: #06783a;
  --oa-landing-navy: var(--oa-navy-900, #081f3f);
  --oa-landing-sky: #d9e9f8;
  --oa-landing-header-h: 4.5rem;
  --oa-landing-gutter: 1.25rem;
  --oa-landing-ink: #1c2b45;
  --oa-landing-muted: #3a4a68;
}
@media (min-width: 992px) { :root { --oa-landing-gutter: 2rem; --oa-landing-header-h: 4.75rem; } }

html { scroll-padding-top: calc(var(--oa-landing-header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.oa-landing { background: #fff; color: var(--oa-landing-ink); overflow-x: hidden; font-size: 1rem !important; }

.oa-landing-container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--oa-landing-gutter);
}

/* ---- Shared parts ---- */
.btn.oa-btn-cta, .btn.oa-btn-light, .btn.oa-btn-ghost, .btn.oa-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: normal;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn.oa-btn-light::after, .btn.oa-btn-ghost::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--oa-btn-outline); border-radius: inherit; pointer-events: none; }
.btn.oa-btn-light, .btn.oa-btn-ghost { position: relative; }
.btn.oa-btn-cta { background: var(--oa-ke-red); color: #fff; }
.btn.oa-btn-cta:hover, .btn.oa-btn-cta:focus-visible { background: var(--oa-ke-red-hover); color: #fff; }
/* Icons inside the primary call-to-action stay white in every state; Metronic recolours button icons on hover, focus and press. */
.btn.oa-btn-cta i, .btn.oa-btn-cta:hover i, .btn.oa-btn-cta:focus-visible i, .btn.oa-btn-cta:active i { color: #fff !important; }
.btn.oa-btn-light { background: #fff; color: var(--oa-landing-navy); --oa-btn-outline: #c9d3e3; }
.btn.oa-btn-light:hover, .btn.oa-btn-light:focus-visible { background: #eef3fa; color: var(--oa-landing-navy); }
.btn.oa-btn-ghost { background: transparent; color: #fff; --oa-btn-outline: #9fb2d1; }
.btn.oa-btn-ghost:hover, .btn.oa-btn-ghost:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn.oa-btn-link { background: transparent; color: var(--oa-landing-navy); padding-inline: 0.25rem; }
.btn.oa-btn-link:hover, .btn.oa-btn-link:focus-visible { color: var(--oa-ke-red); }

.oa-landing :focus-visible { outline: 3px solid #1d6fd6; outline-offset: 2px; }
.oa-section--navy :focus-visible, .oa-cta :focus-visible, .oa-trust :focus-visible { outline-color: #fff; }

/* ---- Header ---- */
.oa-landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.oa-landing-header.is-scrolled { background: #fff; box-shadow: 0 2px 14px rgba(8, 31, 63, 0.14); }
.oa-landing-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--oa-landing-header-h); gap: 1.5rem; }
.oa-landing-header__brand { flex: none; }
.oa-landing-header__brand img { display: block; height: 2.5rem; width: auto; }
@media (min-width: 992px) { .oa-landing-header__brand img { height: 2.875rem; } }
.oa-landing-header .oa-landing-toggle { display: none; }

/* Navigation: the list is centred between the logo and the sign-in action, as in the mock-up. */
.oa-landing-nav { display: flex; align-items: center; flex: 1; gap: 1.5rem; }
.oa-landing-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0 auto; padding: 0; }
.oa-landing-nav__list a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--oa-landing-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.oa-landing-nav__list a:hover { color: var(--oa-ke-red); }
.oa-landing-nav__list a[aria-current="true"] { color: var(--oa-ke-red); box-shadow: inset 0 -2px 0 var(--oa-ke-red); }
.oa-landing-nav .btn.oa-btn-cta { flex: none; padding-inline: 1.5rem; }

@media (max-width: 991.98px) {
  .oa-js .oa-landing-header .oa-landing-toggle { display: inline-flex; }
  .oa-js .oa-landing-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem var(--oa-landing-gutter) 1.25rem;
    background: #fff;
    border-top: 1px solid #e4e9f2;
    box-shadow: 0 12px 20px rgba(8, 31, 63, 0.14);
  }
  .oa-js .oa-landing-nav.is-open { display: flex; }
  .oa-js .oa-landing-nav__list { flex-direction: column; margin: 0; }
  .oa-js .oa-landing-nav__list a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--oa-ke-red); }
  .oa-js .oa-landing-nav .btn.oa-btn-cta { padding-block: 0.75rem; }
  /* Without JavaScript the navigation wraps under the logo instead of hiding. */
  .oa-landing-header__bar { flex-wrap: wrap; padding-block: 0.5rem; }
  .oa-landing-nav { flex-basis: 100%; flex-wrap: wrap; }
  .oa-landing-nav__list { margin: 0; }
}

/* ---- Hero ---- */
.oa-hero {
  position: relative;
  display: flex;
  padding-top: var(--oa-landing-header-h);
  background-color: var(--oa-landing-sky);
  background-image: url("../../img/brand/landing-skyline.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
}
.oa-hero::before, .oa-hero::after { content: ""; position: absolute; inset-inline: 0; pointer-events: none; }
/* Below lg the skyline is a band at the foot of the hero; a gradient dissolves its sky into the hero colour so the copy sits on a plain surface. */
.oa-hero::after {
  bottom: 0;
  height: 66.667vw;
  background: linear-gradient(180deg, var(--oa-landing-sky) 0%, rgba(217, 233, 248, 0.85) 28%, rgba(217, 233, 248, 0) 55%);
}
.oa-hero__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding-block: 2rem calc(30vw + 1rem); }
.oa-hero__copy { flex: 1 1 46rem; max-width: 46rem; }
.oa-hero__eyebrow, .oa-hero__lead, .oa-hero__text { max-width: 30rem; }
.oa-hero__eyebrow { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 600; color: var(--oa-landing-ink); }
.oa-hero__title { margin: 0 0 0.75rem; font-size: clamp(2.75rem, 9vw, 4.5rem); font-weight: 800; line-height: 1.05; color: var(--oa-landing-navy); }
.oa-hero__lead { margin: 0 0 0.75rem; font-size: clamp(1.25rem, 3.2vw, 1.625rem); font-weight: 700; line-height: 1.3; color: var(--oa-landing-navy); text-wrap: balance; }
.oa-hero__text { margin: 0 0 1.75rem; font-size: 1.0625rem; line-height: 1.6; color: #2a3a58; }
.oa-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.oa-hero__accent { color: var(--oa-ke-red); }

@media (max-width: 575.98px) {
  .oa-hero__actions .btn.oa-btn-cta, .oa-hero__actions .btn.oa-btn-light { flex: 1 1 100%; }
}
@media (min-width: 992px) {
  .oa-hero { min-height: 36rem; background-size: cover; background-position: 65% 100%; }
  .oa-hero::after { display: none; }
  /* Light wash behind the copy only; the skyline on the right stays untouched. */
  .oa-hero::before { inset-block: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.6) 38%, rgba(255, 255, 255, 0) 62%); }
  .oa-hero__inner { padding-block: 3.5rem calc(var(--oa-trust-h) + 1.5rem); }
}

/* ---- Trust strip ---- */
.oa-trust { background: var(--oa-landing-navy); color: #fff; }
/* From lg the strip overlays the bottom edge of the hero: the wrapper is a one-cell grid, the strip sits at the end of the cell
   and the hero reserves its height (--oa-trust-h) as bottom padding. Below lg it stays in flow directly under the hero. */
.oa-hero-wrap { --oa-trust-h: 12.5rem; }
@media (min-width: 992px) {
  .oa-hero-wrap { display: grid; }
  .oa-hero-wrap > .oa-hero, .oa-hero-wrap > .oa-trust { grid-area: 1 / 1; }
  .oa-hero-wrap > .oa-trust { align-self: end; position: relative; z-index: 2; background: rgba(8, 31, 63, 0.9); }
}
@media (min-width: 1200px) { .oa-hero-wrap { --oa-trust-h: 8rem; } }
.oa-trust__list { display: grid; gap: 1.25rem; list-style: none; margin: 0 auto; padding-block: 1.5rem; }
.oa-trust__list li { display: flex; align-items: center; gap: 1rem; }
.oa-trust__list i { color: #fff; flex: none; }
.oa-trust__list span { display: block; font-size: 0.9375rem; color: #d3dcec; line-height: 1.4; }
.oa-trust__list strong { display: block; color: #fff; font-size: 1.0625rem; }
@media (min-width: 768px) { .oa-trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .oa-trust__list { grid-template-columns: repeat(4, 1fr); } }

/* ---- Section scaffolding ---- */
.oa-section { padding-block: 3.5rem; }
@media (min-width: 992px) { .oa-section { padding-block: 4.5rem; } }
.oa-section--tint { background: #f4f7fb; }
.oa-section--navy { background: var(--oa-landing-navy); color: #fff; }
.oa-section:focus, .oa-hero:focus { outline: none; }
.oa-section__head { max-width: 52rem; margin-bottom: 2.25rem; }
.oa-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #4a5a78; }
.oa-eyebrow::before { content: ""; width: 2rem; height: 3px; background: var(--oa-ke-red); }
.oa-eyebrow--light { color: #c4d0e6; }
.oa-section__title { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; color: var(--oa-landing-navy); text-wrap: balance; }
.oa-section__title--light { color: #fff; }
.oa-section__lead { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--oa-landing-muted); }
.oa-subhead { margin: 3rem 0 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--oa-landing-navy); }

/* ---- Audience cards ---- */
.oa-card-grid { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .oa-card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .oa-card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.oa-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(8, 31, 63, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.oa-card:hover, .oa-card:focus-within { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(8, 31, 63, 0.12); }
.oa-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 0.625rem; }
.oa-card__icon--blue { background: #e6f0fd; color: #0b5cad; }
.oa-card__icon--green { background: #e3f4ea; color: var(--oa-ke-green); }
.oa-card__icon--red { background: #fde8ea; color: var(--oa-ke-red); }
.oa-card__icon--violet { background: #eeebfd; color: #5b3fd0; }
.oa-card__title { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 700; color: var(--oa-landing-navy); }
.oa-card__text { margin: 0 0 1.25rem; color: var(--oa-landing-muted); font-size: 0.9375rem; line-height: 1.55; flex: 1; }
.oa-card__link { display: inline-flex; align-items: center; font-weight: 600; color: #0b5cad; text-decoration: none; }
.oa-card__link:hover { text-decoration: underline; }

/* ---- Capability grid ---- */
.oa-feature-grid { display: grid; gap: 1.5rem 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .oa-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .oa-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.oa-feature-grid li { display: flex; gap: 1rem; align-items: flex-start; }
.oa-feature-grid i { flex: none; color: #0b5cad; margin-top: 0.15rem; }
.oa-feature-grid span { color: var(--oa-landing-muted); font-size: 0.9375rem; line-height: 1.5; }
.oa-feature-grid strong { display: block; font-size: 1rem; color: var(--oa-landing-navy); }

/* ---- How it works ---- */
.oa-journeys { display: grid; gap: 2.5rem; }
.oa-journey__title { margin: 0 0 1.25rem; font-size: 1.1875rem; font-weight: 700; color: var(--oa-landing-navy); }
.oa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.oa-steps li { position: relative; padding-inline-start: 3.5rem; color: var(--oa-landing-muted); font-size: 0.9375rem; line-height: 1.5; }
.oa-steps strong { display: block; font-size: 1rem; color: var(--oa-landing-navy); }
.oa-steps__num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #0b5cad;
  color: #fff;
  font-weight: 700;
}
/* Narrow screens: vertical flow with a connector line between the numbers. */
.oa-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 1.1875rem;
  top: 2.65rem;
  bottom: -1.1rem;
  width: 2px;
  background: #c9d6ea;
}
@media (min-width: 992px) { .oa-journeys { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
/* From xl each journey is one horizontal row of four with a connector to the next number. */
@media (min-width: 1200px) {
  .oa-journeys { grid-template-columns: 1fr; }
  .oa-steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .oa-steps li { padding-inline-start: 0; padding-top: 3.5rem; padding-inline-end: 1rem; }
  .oa-steps li:not(:last-child)::after { inset-inline-start: 2.75rem; top: 1.1875rem; bottom: auto; width: calc(100% - 2.75rem); height: 2px; }
}

/* ---- Security ---- */
.oa-security-grid { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .oa-security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .oa-security-grid { grid-template-columns: repeat(3, 1fr); } }
.oa-security-grid li { padding: 1.5rem; background: #f4f7fb; border-radius: 0.75rem; border: 1px solid #e4e9f2; }
.oa-security-grid__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: 50%; background: #e6f0fd; color: #0b5cad; }
.oa-security-grid h3 { margin: 0 0 0.35rem; font-size: 1.125rem; font-weight: 700; color: var(--oa-landing-navy); }
.oa-security-grid p { margin: 0; color: var(--oa-landing-muted); font-size: 0.9375rem; line-height: 1.5; }

/* ---- Developers ---- */
.oa-dev { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .oa-dev { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }
.oa-dev__copy { min-width: 0; }
.oa-dev__lead { margin: 0 0 1.25rem; color: #d3dcec; line-height: 1.6; font-size: 1.0625rem; }
.oa-checklist { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.6rem; }
.oa-checklist li { position: relative; padding-inline-start: 2rem; color: #fff; }
.oa-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #1f9d57; }
.oa-checklist li::after { content: ""; position: absolute; inset-inline-start: 0.42rem; top: 0.42rem; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }

.oa-code { min-width: 0; background: #fff; color: var(--oa-landing-ink); border-radius: 0.75rem; padding: 1rem 1.25rem 1.1rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.oa-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.oa-code__tabs { display: flex; flex: 1; min-width: 0; gap: 0.25rem; overflow-x: auto; scrollbar-width: thin; }
.oa-code__tab { flex: none; white-space: nowrap; border: 0; background: transparent; padding: 0.4rem 0.55rem; font-size: 0.9375rem; border-radius: 999px; font-weight: 600; color: var(--oa-landing-muted); }
.oa-code__tab[aria-selected="true"] { background: #e6f0fd; color: #0b4a8c; }
.oa-code__tab:hover { color: #0b4a8c; }
.oa-code__copy { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid #c9d3e3; background: #fff; color: var(--oa-landing-ink); border-radius: 0.475rem; padding: 0.3rem 0.7rem; font-weight: 600; font-size: 0.875rem; }
.oa-code__copy:hover { background: #f1f5fb; }
.oa-code__panel { background: #f3f6fb; border: 1px solid #e1e8f3; border-radius: 0.5rem; overflow-x: auto; }
.oa-code__panel[hidden] { display: none; }
.oa-code__panel pre { margin: 0; padding: 1rem; font-family: var(--oa-font-mono, ui-monospace, Consolas, monospace); font-size: 0.8125rem; line-height: 1.6; color: #14233f; background: none; border: 0; overflow: visible; }
.oa-code .oa-code__panel pre code { font-variant-ligatures: none; white-space: pre; color: inherit; background: none; box-shadow: none; border: 0; padding: 0; font: inherit; }
.oa-code__note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: #4a5a78; }

/* ---- Final call to action ---- */
.oa-cta {
  position: relative;
  background-color: var(--oa-landing-navy);
  background-image: url("../../img/brand/landing-mountains.jpg");
  background-size: cover;
  background-position: 50% 80%;
}
.oa-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 31, 63, 0.9) 0%, rgba(8, 31, 63, 0.72) 55%, rgba(8, 31, 63, 0.45) 100%); pointer-events: none; }
.oa-cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 1.5rem; padding-block: 2rem; }
@media (min-width: 992px) { .oa-cta__inner { flex-wrap: nowrap; padding-block: 2.25rem; } }
.oa-cta__title { flex: 1 1 16rem; margin: 0; max-width: 36rem; font-size: clamp(1.4rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.25; color: #fff; text-wrap: balance; }
.oa-cta__actions { display: flex; flex: none; flex-wrap: wrap; gap: 0.75rem; }
/* Tablet: the two actions stack on the right of the heading instead of wrapping underneath it. */
@media (min-width: 576px) and (max-width: 991.98px) { .oa-cta__actions { flex-direction: column; } }
@media (max-width: 575.98px) { .oa-cta__actions { width: 100%; } .oa-cta__actions .btn { flex: 1 1 100%; } }

/* ---- Footer ---- */
.oa-landing-footer { background: #fff; border-top: 1px solid #e4e9f2; }
.oa-landing-footer__inner { display: grid; gap: 1.25rem; align-items: center; padding-block: 1.75rem; }
.oa-landing-footer__inner > * { min-width: 0; }
.oa-landing-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
@media (max-width: 419.98px) { .oa-landing-footer__brand img { height: 2rem; } .oa-landing-footer__brand img.oa-landing-footer__product { height: 1.625rem; padding-inline-start: 0; border-inline-start: 0; } .oa-landing-footer__brand { gap: 0.5rem 0.6rem; } }
.oa-landing-footer__brand img { height: 2.5rem; width: auto; }
.oa-landing-footer__brand img.oa-landing-footer__product { height: 2rem; padding-inline-start: 0.9rem; border-inline-start: 1px solid #c9d3e3; box-sizing: content-box; }
.oa-landing-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.oa-landing-footer__links a { display: inline-block; padding-block: 0.25rem; color: var(--oa-landing-muted); text-decoration: none; font-size: 0.9375rem; }
.oa-landing-footer__links a:hover { color: var(--oa-ke-red); text-decoration: underline; }
.oa-landing-footer__legal { margin: 0; font-size: 0.8125rem; color: #4a5a78; }
@media (min-width: 992px) {
  .oa-landing-footer__inner { grid-template-columns: auto 1fr auto; gap: 2rem; }
  .oa-landing-footer__links { justify-content: center; }
  .oa-landing-footer__legal { text-align: right; max-width: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  .oa-landing * { transition: none !important; animation: none !important; }
  .oa-card:hover, .oa-card:focus-within { transform: none; }
}
