@import './components/select.css';
@import './components/buttons.css';
@import './components/card.css';
@import './components/input.css';
@import './components/table.css';
@import './components/alert.css';
@import './components/modal.css';
@import './components/tooltip.css';

@import './pages/catalogue.css';
@import './pages/login.css';
@import './pages/home.css';
@import './pages/api-product.css';
@import './pages/cart.css';
@import './pages/flip-flop.css';
@import './pages/blog.css';
@import './pages/app.css';
@import './pages/users.css';
@import './pages/analytics.css';

@import './common/form.css';
@import './common/navigation.css';
@import './common/typography.css';
@import './common/tyk-icons.css';
@import './common/texts.css';
@import './common/layout.css';

/*
  Global Variables
*/

:root {
  /* Base colors */
  --tdp-primary: #335FFD;
  --tdp-primary-dark: #1A3088;
  --tdp-primary-light: #DEDEE4;
  --tdp-primary-success-light: #EEF8F1;
  --tdp-secondary: #7A79A1;
  --tdp-secondary-dark: #505071;
  --tdp-light-blue: #82BBC6;
  --tdp-light-gray: #EDEDF9;
  --tdp-light-purple: #0C95CF;
  --tdp-primary-danger-light: #F9DDD8;
  --tdp-danger-light: #FF6C7D;
  --tdp-danger-dark: #AE2410;
  --tdp-danger-darker: #8B1D12;
  --tdp-primary-warning-light: #FFE885;
  --tdp-warning-light: #D6B218;
  --tdp-warning-dark: #C58C11;
  --tdp-warning-pressed: #FFECC8;
  --tdp-light-border: 1px solid #C3C3E5;
  --tdp-extra-dark: #36364C;
  --tdp-dark: #041837;
  --tdp-text-on-red-background: #EA4766;
  --tdp-border-green: #2CA597;
  --tdp-neutral: #D8D8DF;
  --tdp-neutral-light: #E6E6EA;
  --tdp-neutral-lighter: #EDEDF0;
  --tdp-neutral-dark: #9D9DAF;
  --tdp-brand-darker: #223EAC;
  --tdp-brand-dark: #2A4DD0;

  /* Font sizes */
  --tdp-size-xs: 12px;
  --tdp-size-sm: 14px;
  --tdp-size-md: 16px;
  --tdp-size-lg: 18px;
  --tdp-size-xl: 24px;

  /* Background colors */
  --tdp-nav-bg-color: linear-gradient(91.35deg, #03031C 12.29%, #371DD7 98.13%, #335FFD 106.47%);
  --tdp-body-bg-color: white;
  --tdp-tab-active: #EFF3FF;
  --tdp-light-green: #D7F8F3;
  --tdp-light-red: #FFD1CE;
  --tdp-login-form: #F0F0F3D9;

  /* Text colors */
  --tdp-text-color: #414160;
  --tdp-link-color: var(--tdp-primary);
  --tdp-link-dark:  #025281;
  --tdp-nav-link-color: white;
  --tdb-text-color-dark: #31394D;
  --tdp-text-color-extra-dark: #03031C;
  --tdb-text-color-gray: #808080;
  --tdb-text-color-gray-mid: #4D4D4D;
  --tdb-text-color-gray-lighter: #868686;
  --tdb-text-default-subdue: var(--tdp-text-color);
  --tdb-text-alert-default: #473717;

  /* Border radii */
  --tdp-card-border-radius: 10px;
  --tdp-border-radius: 20px;
  --tdp-dropdown-menu-radius: 15px;
  --tdp-login-form-border-radius: 8px;
  --default-border-radius: 18px;

  /* Border colors */
  --tdp-border-color-on-error: var(--tdp-danger-light);
  --tdp-table-border-color: #F0F0F3;
  --tdp-primary-border: 1px solid var(--tdp-text-color-extra-dark);
  --tdp-form-element-border: 2px solid var(--tdp-neutral);
  --tpd-gray-200-border: 1px solid #DDDDDD;
  --tdp-border-graph: 2px solid #EFEEEB;
  --tdp-analytics-select-border: 2px solid var(--tdp-secondary-dark);
  --tdp-border-neutral-pressed: 1px solid #656582;

  /* Button colors */
  --tdp-primary-btn-color: var(--tdp-primary);
  --tdp-primary-btn-border: var(--tdp-brand-dark);
  --tdp-primary-btn-hover-color: var(--tdp-brand-dark);
  --tdp-primary-btn-hover-border: var(--tdp-brand-darker);
  --tdp-secondary-btn-color: var(--tdp-neutral-lighter);
  --tdp-secondary-btn-border: var(--tdp-neutral);
  --tdp-secondary-btn-hover-color: var(--tdp-neutral-light);
  --tdp-secondary-btn-hover-border: var(--tdp-neutral-dark);
  --tdp-danger-btn-color: #D82C0D;
  --tdp-danger-btn-border: 1.2px solid var(--tdp-danger-dark);
  --tdp-danger-btn-hover-border: 1.2px solid var(--tdp-danger-darker);
  --tdp-danger-outline-btn-border: 1.2px solid var(--tdp-danger-btn-color);
  --tdp-warning-btn-color: var(--tdp-warning-light);
  --tdp-warning-btn-border: 2px solid var(--tdp-warning-dark);
  --tdp-warning-outline-btn-border: 2px solid var(--tdp-warning-light);
  --action-brand-default: var(--tdp-primary);
  --border-brand-default: var(--tdp-brand-dark);
  --border-brand-hover: var(--tdp-brand-darker);
  --border-neutral-default: var(--tdp-neutral);
  --link-default: #00A6ED;
  --surface-brand-hover: #DEE5FE;
  --surface-neutral-hover: #F8F8F9;
  --surface-default-subdued: var(--tdp-table-border-color);

  /* Alert boxes */
  --tdp-alert-success-bg-color: var(--tdp-primary-success-light);
  --tdp-alert-success-border-color: #238741;
  --tdp-alert-sucess-icon-color: #2BA84A;
  --tdp-alert-success-text-color: var(--tdb-text-alert-default);
  --tdp-alert-info-bg-color: #EBF8FE;
  --tdp-alert-info-border-color: #0186C4;
  --tdp-alert-info-text-color: #023056;
  --tdp-alert-warning-bg-color: #FFF5CC;
  --tdp-alert-warning-border-color: var(--tdp-warning-light);
  --tdp-alert-warning-text-color: #996900;
  --tdp-alert-danger-bg-color: #FCEFEC;
  --tdp-alert-danger-border-color: #AE2410;
  --tdp-alert-danger-text-color: var(--tdb-text-alert-default);
  --tdp-alert-danger-icon-color: #D82C0D;

  /* Icons */
  --tdp-icon-success-dark: #00B798;
}

/* ── MOS Internal Theme — Palette Override ────────────────────────────────── */
:root {
  /* Drafting palette tokens */
  --mos-paper:        #f5f6f2;
  --mos-ink:          #383845;
  --mos-muted:        #7e8490;
  --mos-faint:        #d9ddd7;
  --mos-line:         #c7ccc5;
  --mos-dash:         #bbc1ba;
  --mos-accent:       #45e89a;
  --mos-accent-dark:  #28b873;
  --mos-accent-darker:#1d9960;

  /* Remap Tyk brand tokens → drafting palette */
  --tdp-primary:              #45e89a;
  --tdp-primary-dark:         #28b873;
  --tdp-brand-dark:           #28b873;
  --tdp-brand-darker:         #1d9960;
  --tdp-extra-dark:           #383845;
  --tdp-dark:                 #383845;
  --tdp-text-color:           #383845;
  --tdp-text-color-extra-dark:#383845;
  --tdb-text-color-dark:      #383845;
  --tdb-text-default-subdue:  #7e8490;
  --tdb-text-color-gray:      #7e8490;
  --tdp-neutral:              #c7ccc5;
  --tdp-neutral-light:        #d9ddd7;
  --tdp-neutral-lighter:      #e8eae6;
  --tdp-neutral-dark:         #a0a8a0;

  /* Background tokens */
  --tdp-body-bg-color:        #f5f6f2;
  --tdp-nav-bg-color:         rgba(245,246,242,.92);
  --tdp-nav-link-color:       #383845;
  --tdp-tab-active:           rgba(69,232,154,.12);
  --tdp-table-border-color:   #e8eae6;
  --tdp-login-form:           rgba(248,249,246,.92);

  /* Kill all border radius */
  --tdp-card-border-radius:        0;
  --tdp-border-radius:             0;
  --tdp-dropdown-menu-radius:      0;
  --tdp-login-form-border-radius:  0;
  --default-border-radius:         0;

  /* Button tokens */
  --tdp-primary-btn-color:       #45e89a;
  --tdp-primary-btn-border:      #28b873;
  --tdp-primary-btn-hover-color: #28b873;
  --action-brand-default:        #45e89a;
  --border-brand-default:        #28b873;
  --border-brand-hover:          #1d9960;
}

html {
  scroll-padding-top: 70px;
}

body {
  padding-top: 55px;
  height: 100vh;
  color: var(--mos-ink);
  background-color: var(--mos-paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(56,56,69,.14) 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(56,56,69,.065) 1px, transparent 1px),
    linear-gradient(rgba(56,56,69,.065) 1px, transparent 1px);
  background-size: 18px 18px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, 0 0;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Gradient backgrounds — overridden to paper/light by MOS theme */
.dark-to-light-bg {
  background: rgba(245,246,242,.85);
  color: var(--mos-ink);
}

.light-to-dark-bg {
  background: rgba(245,246,242,.85);
  color: var(--mos-ink);
}

.container {
  max-width: 1230px;
}

/* ── MOS Blueprint Overlay Layers ────────────────────────────────────────── */

/* Construction SVG wrapper */
.mos-construction {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.mos-construction svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated flow-lines SVG */
.mos-flow-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

@keyframes mosFlowRight { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -56; } }
@keyframes mosFlowDown  { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -56; } }
@keyframes mosFlowLeft  { from { stroke-dashoffset: 0; } to { stroke-dashoffset:  56; } }

.mfh  { animation: mosFlowRight linear infinite; }
.mfv  { animation: mosFlowDown  linear infinite; }
.mfhr { animation: mosFlowLeft  linear infinite; }
.mf1  { animation-duration:  8s; }
.mf2  { animation-duration: 14s; animation-delay:  -3s; }
.mf3  { animation-duration: 10s; animation-delay:  -6s; }
.mf4  { animation-duration: 18s; animation-delay:  -2s; }
.mf5  { animation-duration: 12s; animation-delay:  -8s; }
.mf6  { animation-duration: 22s; animation-delay:  -4s; }

@media (prefers-reduced-motion: reduce) {
  .mos-flow-lines,
  .mos-construction { display: none; }
}

/* Nav — override Bootstrap's navbar-dark bg-dark */
.navbar.navbar-expand-lg.navbar-dark.bg-dark {
  background: rgba(245,246,242,.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mos-line) !important;
  box-shadow: none !important;
}

/* Keep page content above overlay layers */
.page-wrapper,
main { position: relative; z-index: 2; }

/* Wave canvas */
canvas.mos-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* ── MOS Hero Section ─────────────────────────────────────────────────────── */
.mos-hero {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 76px 84px 58px;
}

.mos-hero-copy {
  position: relative;
  padding: 28px 0 42px;
}

.mos-hero-copy::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(56,56,69,.28);
}

.mos-hero-copy::after {
  content: "A-001";
  position: absolute;
  left: -23px;
  bottom: -26px;
  color: #a4aab0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.mos-kicker {
  margin: 0 0 20px;
  color: #858b95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mos-hero-h1 {
  margin: 0;
  color: #363643;
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mos-hero-desc {
  max-width: 540px;
  margin: 28px 0 0;
  color: #767d88;
  font-size: 17px;
  line-height: 1.55;
}

.mos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #333540;
  background: rgba(245,246,242,.74);
  color: #31333d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.mos-btn:hover { background: rgba(56,56,69,.06); color: #383845; text-decoration: none; }

.mos-btn-primary {
  background: #333540;
  color: #f5f6f2;
}

.mos-btn-primary:hover { background: #45e89a; border-color: #28b873; color: #383845; }

/* Draft board (right side of hero) */
.mos-draft-board {
  position: relative;
  border: 1px solid var(--mos-line);
  background:
    radial-gradient(circle at 1px 1px, rgba(56,56,69,.13) 1px, transparent 1.5px) 0 0 / 18px 18px,
    rgba(248,249,246,.82);
  box-shadow: 0 28px 80px rgba(40,45,38,.09);
  margin: 0;
}

.mos-draft-board::before {
  content: "";
  position: absolute;
  inset: -34px;
  border: 1px dashed rgba(56,56,69,.22);
  pointer-events: none;
}

.mos-draft-board::after {
  content: "";
  position: absolute;
  left: -26px;
  right: -26px;
  bottom: -28px;
  height: 72px;
  border-top: 1px solid rgba(56,56,69,.18);
  border-bottom: 1px dashed rgba(56,56,69,.2);
  background: repeating-linear-gradient(115deg, rgba(56,56,69,.08) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.mos-draft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--mos-line);
}

.mos-draft-cell {
  min-height: 130px;
  padding: 24px 26px;
  border-right: 1px solid var(--mos-line);
  position: relative;
}

.mos-draft-cell:last-child { border-right: 0; }

.mos-draft-cell::before,
.mos-draft-cell::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mos-line);
}

.mos-draft-cell::before { left: -5px; top: -5px; }
.mos-draft-cell::after  { right: -5px; bottom: -5px; }

.mos-cell-num {
  color: #b0b5bc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}

.mos-draft-cell h2 {
  margin: 0 0 10px;
  color: #3d3d49;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.mos-draft-cell p {
  margin: 0;
  color: #7b818c;
  font-size: 13px;
  line-height: 1.45;
}

.mos-drawing { position: relative; min-height: 340px; overflow: hidden; }
.mos-drawing img { width: 100%; display: block; }

.mos-drawing-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--mos-line);
  color: #858b95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

/* ── MOS Footer ───────────────────────────────────────────────────────────── */
.mos-footer {
  display: grid;
  grid-template-columns: 300px repeat(3, 1fr);
  gap: 36px;
  min-height: 260px;
  padding: 42px 84px 54px;
  border-top: 1px solid var(--mos-line);
  background:
    radial-gradient(circle at 1px 1px, rgba(56,56,69,.12) 1px, transparent 1.5px) 0 0 / 18px 18px,
    rgba(245,246,242,.84);
  position: relative;
  z-index: 2;
}

/* Logo column */
.mos-footer-logo {
  position: relative;
  min-height: 180px;
  border-right: 1px solid var(--mos-line);
  overflow: hidden;
}

.mos-footer-logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 220px;
  height: 120px;
  border: 1px dashed rgba(56,56,69,.24);
  background:
    linear-gradient(90deg, rgba(56,56,69,.12) 1px, transparent 1px) 0 0 / 37px 100%,
    linear-gradient(rgba(56,56,69,.12) 1px, transparent 1px) 0 0 / 100% 31px;
  transform: skewY(-7deg);
  pointer-events: none;
}

.mos-footer-logo::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 220px;
  height: 120px;
  border: 1px solid rgba(56,56,69,.14);
  transform: translate(20px, 18px) skewY(-7deg);
  pointer-events: none;
}

.mos-logo-draft {
  position: relative;
  width: 240px;
  min-height: 160px;
  margin-top: 20px;
}

.mos-footer-logo img {
  width: 168px;
  position: absolute;
  left: 0;
  top: 54px;
  z-index: 3;
}

.mos-footer-logo img.mos-logo-shadow {
  left: 30px;
  top: 26px;
  z-index: 1;
  opacity: .1;
  transform: skewY(-7deg);
}

.mos-logo-line {
  position: absolute;
  z-index: 2;
  height: 1px;
  background: rgba(56,56,69,.22);
  transform-origin: left center;
}

.mos-ll-one   { left: 2px;   top: 66px;  width: 88px;  transform: rotate(-28deg); }
.mos-ll-two   { left: 110px; top: 54px;  width: 108px; transform: rotate(-18deg); }
.mos-ll-three { left: 2px;   top: 120px; width: 100px; transform: rotate(18deg);  }

.mos-logo-node {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c2c8c0;
}

.mos-ln-a { left: -3px; top: 51px;  }
.mos-ln-b { left: 216px; top: 16px; }
.mos-ln-c { left: 234px; top: 138px;}

.mos-logo-label {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #858b95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Footer link columns */
.mos-footer-col h5 {
  margin: 0 0 18px;
  color: #333540;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mos-footer-col a,
.mos-footer-col span {
  display: block;
  margin-top: 14px;
  color: #626974;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
}

.mos-footer-col a:hover { color: #383845; }

.mos-footer-version {
  grid-column: 1 / -1;
  border-top: 1px dashed rgba(56,56,69,.15);
  margin-top: 32px;
  padding-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(56,56,69,.25);
}

.mos-footer-byline {
  grid-column: 1 / -1;
  padding-top: 2px;
  margin-top: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(56,56,69,.38);
  font-style: italic;
}

/* Responsive */
@media (max-width: 1100px) {
  .mos-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    min-height: auto;
  }
  .mos-draft-board::before,
  .mos-draft-board::after { display: none; }
  .mos-draft-grid { grid-template-columns: 1fr; }
  .mos-draft-cell { border-right: 0; border-bottom: 1px solid var(--mos-line); }
  .mos-footer {
    grid-template-columns: 1fr;
    padding: 32px 24px 40px;
  }
  .mos-footer-logo { border-right: 0; border-bottom: 1px solid var(--mos-line); padding-bottom: 24px; }
}

/* ── MOS Internal API Products Section ───────────────────────────────────── */
.mos-section {
  padding: 76px 84px 96px;
  border-top: 1px dashed rgba(56,56,69,.25);
  position: relative;
  z-index: 2;
}

.mos-section--alt {
  background:
    radial-gradient(circle at 1px 1px, rgba(56,56,69,.10) 1px, transparent 1.5px) 0 0 / 18px 18px,
    rgba(248,249,246,.6);
}

.mos-section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 50px;
  margin-bottom: 40px;
  align-items: start;
}

.mos-label {
  color: #858b95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-top: 6px;
}

.mos-section-title {
  margin: 0;
  color: #363643;
  font-size: clamp(28px, 4vw, 48px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* API product table */
.mos-api-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mos-line);
  background: rgba(245,246,242,.7);
  position: relative;
}

.mos-api-table::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px dashed rgba(56,56,69,.2);
  pointer-events: none;
}

.mos-api-card {
  min-height: 220px;
  padding: 28px 28px 24px;
  border-right: 1px solid var(--mos-line);
  position: relative;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(56,56,69,.07) 48.5% 49%, transparent 49.5% 100%) 0 0 / 54px 54px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: background-color .15s;
}

.mos-api-card:last-child { border-right: 0; }
.mos-api-card:hover { background-color: rgba(69,232,154,.06); text-decoration: none; color: inherit; }

.mos-api-card .mos-label { margin-bottom: 12px; }

.mos-api-card h3 {
  margin: 0 0 14px;
  color: #3c3c48;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.mos-api-card p {
  margin: 0;
  color: #777e89;
  font-size: 14px;
  line-height: 1.5;
}

.mos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mos-tag {
  border: 1px solid #c2c7c0;
  padding: 5px 8px;
  color: #686f79;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mos-api-table-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

/* ── MOS Team Grid ────────────────────────────────────────────────────────── */
.mos-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--mos-line);
  position: relative;
}

.mos-team-grid::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(56,56,69,.18);
  pointer-events: none;
}

.mos-team-card {
  padding: 28px 26px;
  border-right: 1px solid var(--mos-line);
  position: relative;
  background: rgba(248,249,246,.7);
}

.mos-team-card:last-child { border-right: 0; }

.mos-team-card::before,
.mos-team-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mos-line);
}
.mos-team-card::before { left: -4px; top: -4px; }
.mos-team-card::after  { right: -4px; bottom: -4px; }

.mos-team-card .mos-label { margin-bottom: 14px; }

.mos-team-card h3 {
  margin: 0 0 12px;
  color: #3d3d49;
  font-size: 20px;
  line-height: 1;
}

.mos-team-card p {
  margin: 0;
  color: #7b818c;
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive section adjustments */
@media (max-width: 1100px) {
  .mos-section { padding: 48px 24px 60px; }
  .mos-section-head { grid-template-columns: 1fr; gap: 12px; }
  .mos-api-table { grid-template-columns: 1fr; }
  .mos-api-card { border-right: 0; border-bottom: 1px solid var(--mos-line); }
  .mos-team-grid { grid-template-columns: repeat(2, 1fr); }
  .mos-team-card { border-right: 0; border-bottom: 1px solid var(--mos-line); }
  .mos-api-table-footer { justify-content: flex-start; }
}

/* ── CMS Page wrapper (about-us, static pages) ───────────────────────────── */
.mos-page-wrapper {
  padding-top: 80px; /* account for fixed nav */
}

.mos-page-hero {
  padding: 60px 0 52px;
  border-bottom: 1px dashed rgba(56,56,69,.22);
  position: relative;
}
.mos-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(56,56,69,.10) 1px, transparent 1.5px) 0 0 / 18px 18px;
  pointer-events: none;
  z-index: 0;
}
.mos-page-hero .container { position: relative; z-index: 1; }

.mos-page-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9099a4;
  margin: 0 0 14px;
}

.mos-page-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #383845;
  margin: 0;
}

.mos-page-body {
  padding-top: 56px;
  padding-bottom: 96px;
}

/* Content card — contains CMS HTML */
.mos-content-card {
  position: relative;
  background: rgba(248,249,246,.96);
  border: 1px solid #c7ccc5;
  padding: 48px 56px;
  max-width: 860px;
}
.mos-content-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(56,56,69,.14);
  pointer-events: none;
}

/* Typography inside CMS content */
.mos-content-card h1,
.mos-content-card h2,
.mos-content-card h3,
.mos-content-card h4 {
  color: #383845;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 2em;
  margin-bottom: .6em;
}
.mos-content-card h2 { font-size: 24px; }
.mos-content-card h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; }
.mos-content-card p  { color: #555862; line-height: 1.65; margin-bottom: 1em; text-align: left; }
.mos-content-card a  { color: #383845; text-decoration: underline; }
.mos-content-card a:hover { color: #45e89a; }
.mos-content-card img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #c7ccc5;
  margin: 24px 0;
}
.mos-content-card ul,
.mos-content-card ol {
  color: #555862;
  line-height: 1.65;
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.mos-content-card hr {
  border: 0;
  border-top: 1px dashed rgba(56,56,69,.22);
  margin: 2em 0;
}
.mos-content-card code,
.mos-content-card pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: rgba(56,56,69,.06);
  border: 1px solid #d4d9d2;
}
.mos-content-card code { padding: 2px 6px; }
.mos-content-card pre  { padding: 16px 20px; overflow-x: auto; }

@media (max-width: 768px) {
  .mos-page-hero  { padding: 40px 0 36px; }
  .mos-content-card { padding: 28px 24px; }
}
