/* ICOS DESIGN SYSTEM — generated from tokens.json */
:root {
  --color-icos-navy: #13132d;
  --color-icos-blue: #3e1bfe;
  --color-icos-blue-dark: #6045ff;
  --color-icos-light-blue: #dad4ed;
  --color-off-white: #f5f5f5;
  --color-white: #ffffff;
  --color-app-surface: #303030;
  --color-app-overlay: #0c0c0c;
  --color-app-overlay-80: rgba(12,12,12,0.8);
  --color-app-elevated: #1e1e1e;
  --color-app-border-strong: #5a5a5a;
  --color-app-border: #b3b3b3;
  --heat-1: #13132d;
  --heat-2: #3e1bfe;
  --heat-3: #dad4ed;
  --heat-4: #ff605c;
  --heat-5: #ffbd44;
  --heat-6: #ffdd00;
  --heat-7: #30ab55;
  --heat-8: #00b9ff;
  --color-success: #30ab55;
  --color-warning: #ffbd44;
  --color-danger: #ff605c;
  --color-info: #3e1bfe;
  --bg: var(--color-white);
  --bg-muted: var(--color-off-white);
  --bg-subtle: #f4f7fe;
  --bg-accent: var(--color-icos-light-blue);
  --surface: var(--color-white);
  --surface-raised: var(--color-white);
  --fg: var(--color-icos-navy);
  --fg-strong: #000000;
  --fg-muted: #5a5a5a;
  --fg-subtle: #6474a0;
  --fg-disabled: #b3b3b3;
  --fg-onColor: var(--color-white);
  --border: #e4e4f1;
  --border-strong: #d9d9d9;
  --border-accent: var(--color-icos-blue);
  --divider: var(--color-icos-light-blue);
  --accent: var(--color-icos-blue);
  --accent-hover: #3414dc;
  --accent-pressed: #2a0fb8;
  --accent-fg: var(--color-white);
  --selected: #edeafe;
  --accent-soft: rgba(62,27,254,0.06);
  --accent-tint: rgba(62,27,254,0.10);
  --bg-app: var(--color-off-white);
  --status-success-fg: #1e7d3c;
  --status-success-bg: rgba(48,171,85,0.14);
  --status-warning-fg: #8a5a00;
  --status-warning-bg: rgba(255,189,68,0.18);
  --status-danger-fg: #c0322e;
  --status-danger-bg: rgba(255,96,92,0.14);
  --status-complete-dot: var(--accent);
  --status-complete-fg: var(--accent-pressed);
  --status-complete-bg: rgba(62,27,254,0.10);
  --status-neutral-dot: #9a9ab0;
  --status-neutral-fg: #5a5a5a;
  --status-neutral-bg: rgba(90,90,90,0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-menu: 0 12px 32px rgba(15,16,45,0.14);
  --shadow-overlay: 0 20px 50px rgba(0,0,0,0.25);
  --shadow-focus: 0 0 0 3px rgba(62,27,254,0.20);
}
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --track-tight: -0.02em;
  --track-normal: 0em;
  --track-wide: 0.02em;
  --track-caps: 0.08em;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --text-3xs: 10px;
  --text-2xs: 12px;
  --text-xs: 14px;
  --text-sm: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 60px;
  --text-6xl: 80px;
  --text-7xl: 120px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.4;
  --lh-relaxed: 1.55;
  --lh-loose: 1.7;
  --control-h-md: 38px;
  --control-h-sm: 32px;
  --control-h-search: 34px;
  --control-h-lg: 44px;
  --control-h-toggle: 28px;
  --font-brand: "PP Pangram Sans", "Poppins", system-ui, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-display-alt: "Gilmer", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-ui: "Inter", "Poppins", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-body: 400 16px/1.4 var(--font-body); /* From `body` in colors_and_type.css. */
  --text-h1: 700 36px/1.25 var(--font-display); /* From `h1, .t-h1` in colors_and_type.css. */
  --text-h2: 600 30px/1.25 var(--font-display); /* From `h2, .t-h2` in colors_and_type.css. */
  --text-h3: 600 24px/1.25 var(--font-display); /* From `h3, .t-h3` in colors_and_type.css. */
  --text-h4: 600 20px/1.4 var(--font-display); /* From `h4, .t-h4` in colors_and_type.css. */
  --text-p: 400 16px/1.4 var(--font-body); /* From `p, .t-body` in colors_and_type.css. */
  --text-code: 400 0.95em/1.4 var(--font-mono); /* From `.t-mono, code, pre` in colors_and_type.css. */
  --text-pre: 400 0.95em/1.4 var(--font-mono); /* From `.t-mono, code, pre` in colors_and_type.css. */
}
.body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
.h4 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
.p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}

/* Layout: Clay's rhythm on the ICOS system. A landscape stage with the Worker machine, a definition card
   overlapping it, a scroll-lit statement, sticky stacked cards, the cast walking across the price band,
   a finale scene and a Navy footer. One light world by choice: every color below is set explicitly. */
:root {
  --page-max: 1280px;
  --ink: var(--color-icos-navy);
  --blue: var(--color-icos-blue);
  --blue-dark: var(--color-icos-blue-dark);
  --wash: var(--color-icos-light-blue);
  --paper: var(--color-off-white);
  --white: var(--color-white);
  --muted: var(--fg-muted);
  --quiet: var(--fg-subtle);
  --hair: var(--border);
  --ease-in: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.6, 1);
  --hair-dark: rgba(255, 255, 255, 0.10); /* the system's dark-surface border */
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--lh-normal); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
svg text { font-family: var(--font-body); }
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.bw { display: inline-block; white-space: nowrap; }
.blue { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease-in); }
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-in { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.brand { display: inline-flex; align-items: center; height: 30px; position: relative; flex: 0 0 auto; border-radius: var(--radius-sm); }
.brand:hover { text-decoration: none; }
.brand svg { height: 30px; width: auto; display: block; }
.brand .lk-icos { position: absolute; left: 0; top: 0; }
.links { display: none; gap: var(--space-8); margin-left: var(--space-8); }
.links a { color: var(--ink); font-size: var(--text-xs); font-weight: 500; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.signin { color: var(--ink); font-size: var(--text-xs); font-weight: 500; display: none; }
@media (min-width: 900px) { .links { display: flex; } }
@media (min-width: 560px) { .signin { display: inline; } }

/* fallback controls shown until the design-system components mount */
.fb-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: var(--radius-sm); font: 500 14px/1 var(--font-body); border: 1px solid var(--blue); background: var(--blue); color: var(--white); white-space: nowrap; }
.fb-btn.sec { background: var(--white); color: var(--blue); }
.fb-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.fb-btn:hover { text-decoration: none; }


/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--white); padding-block: var(--space-16) calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.foot-brand svg { height: 30px; width: auto; display: block; }
.foot-brand p { color: var(--color-icos-light-blue); font-size: var(--text-xs); margin: var(--space-4) 0 0; max-width: 22em; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-8); }
.foot-cols h4 { font: 600 var(--text-2xs)/1.4 var(--font-body); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--color-icos-light-blue); margin: 0 0 var(--space-3); }
.foot-cols a { display: block; color: var(--white); font-size: var(--text-xs); padding: 4px 0; }
.fine { color: var(--color-icos-light-blue); font-size: var(--text-2xs); line-height: var(--lh-relaxed); margin: var(--space-3) 0 0; max-width: 60em; }
.fine a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.foot-rule { border: 0; border-top: 1px solid var(--hair-dark); margin: var(--space-12) 0 var(--space-6); }


/* ---------- legal pages: one reading column on the landing page's frame ---------- */
.brand img, .foot-brand img { height: 30px; width: auto; display: block; }
.legal { padding-block: var(--space-12) var(--space-16); }
.legal-in { max-width: 840px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-8); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.legal-nav a { color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal h1 { font: var(--text-h1); letter-spacing: var(--track-tight); margin: 0; text-wrap: balance; }
.legal-lead { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--muted); margin: var(--space-3) 0 0; }
.legal-note { font-size: var(--text-2xs); line-height: var(--lh-relaxed); color: var(--muted); margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); background: var(--paper); border-radius: var(--radius-md); }
.doc { margin-top: var(--space-8); font-size: var(--text-sm); line-height: var(--lh-relaxed); overflow-wrap: anywhere; }
.doc p, .doc ul, .doc ol { margin: 0 0 var(--space-4); }
.doc ul, .doc ol { padding-left: var(--space-6); }
.doc li { margin: 0 0 var(--space-2); }
.doc h2 { font: var(--text-h4); margin: var(--space-10) 0 var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--hair); }
.doc h3 { font: 600 var(--text-md)/1.4 var(--font-display); margin: var(--space-6) 0 var(--space-2); }
.doc strong { font-weight: var(--weight-semibold); }
.doc code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.9em; background: var(--paper); padding: 1px 6px; border-radius: var(--radius-sm); }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: var(--text-xs); line-height: var(--lh-normal); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--hair); }
.doc th { font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
/* phones: each row becomes a block, each cell carries its column name */
@media (max-width: 767px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { border-bottom: 1px solid var(--hair); padding: var(--space-3) 0; }
  .doc td { border: 0; padding: var(--space-1) 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
}
.doc h2, .doc h3 { scroll-margin-top: 96px; }

/* footer social icons (version 33): LinkedIn and Facebook, Bootstrap Icons, MIT */
.foot-brand .foot-social { display: flex; gap: var(--space-4); margin: var(--space-5) 0 0; }
.foot-brand .foot-social a { display: inline-flex; color: var(--white); opacity: 0.85; border-radius: var(--radius-sm); }
.foot-brand .foot-social a:hover { opacity: 1; text-decoration: none; }
.foot-brand .foot-social svg { width: 22px; height: 22px; display: block; }

/* blog post meta line (version 36) */
.doc .post-meta { color: var(--muted); font-size: var(--text-xs); margin-top: calc(-1 * var(--space-2)); }
.doc h2 a { text-decoration: none; }
.doc table.t3 { table-layout: fixed; }
.doc table.t3 th, .doc table.t3 td { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.doc table.t3 th:nth-child(1) { width: 26%; }
.doc table.t3 th:nth-child(2) { width: 42%; }
.doc table.t3 th:nth-child(3) { width: 32%; }
@media (max-width: 720px) { .doc table.t3 { table-layout: auto; } .doc table.t3 th { width: auto; } }
.doc h2 a:hover { text-decoration: underline; }

/* company pages (version 41) */
.careers-form { display: grid; gap: var(--space-2); max-width: 32rem; margin-top: var(--space-4); }
.careers-form label { font-size: var(--text-xs); font-weight: var(--weight-semibold); margin-top: var(--space-3); }
.careers-form input, .careers-form textarea { font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; box-sizing: border-box; }
.careers-form input:focus, .careers-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.careers-form .fb-btn { justify-self: start; margin-top: var(--space-4); cursor: pointer; }
.careers-form .form-help { color: var(--muted); font-size: var(--text-xs); margin-top: var(--space-2); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-8) var(--space-6); margin: var(--space-6) 0 var(--space-4); }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; background: var(--paper); }
.doc .person h3 { margin: var(--space-4) 0 var(--space-2); }
.doc .person p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-4); margin: var(--space-4) 0; }
.kit a { display: block; border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: var(--space-4); text-decoration: none; color: var(--ink); }
.kit a:hover { border-color: var(--blue); }
.kit span { display: block; color: var(--muted); font-size: var(--text-xs); margin-top: var(--space-1); }

/* top nav: Resources menu (all subpages) */
.res { position: relative; display: none; margin-left: var(--space-2); }
@media (min-width: 900px) { .res { display: block; } }
.res-t { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: var(--text-xs); font-weight: 500; padding: 12px 0; }
.res-t:hover { text-decoration: none; color: var(--blue); }
.res-t svg { width: 10px; height: 10px; transition: transform 160ms ease; }
.res:hover .res-t svg, .res:focus-within .res-t svg { transform: rotate(180deg); }
.res-p { position: absolute; left: -16px; top: 100%; min-width: 280px; padding: 8px; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; display: none; z-index: 60; }
.res:hover .res-p, .res:focus-within .res-p { display: block; }
.res-p a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; }
.res-p a span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.res-p a:hover, .res-p a:focus { background: #EDEAFE; text-decoration: none; }
.links a[aria-current="page"], .res-t[aria-current="page"] { color: var(--blue); }

/* top nav, version 44: Product menu next to Resources, and a Menu button under 900 px */
.pm { margin-left: var(--space-8); }
.pm + .links { margin-left: var(--space-2); }
.res-p.wide { min-width: 330px; }
.mnav-b { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--hair); border-radius: 10px; background: var(--white); cursor: pointer; padding: 0; }
.mnav-b span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 160ms ease; }
.mnav-b[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.mnav-b[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 900px) { .mnav-b { display: none; } }
@media (max-width: 420px) { .nav-cta .fb-btn.sm { padding: 0 12px; } }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; top: calc(72px + env(safe-area-inset-top, 0px)); background: var(--white); z-index: 70; overflow-y: auto; border-top: 1px solid var(--hair); padding: 4px 0 40px; }
.mnav[hidden] { display: none; }
@media (min-width: 900px) { .mnav { display: none !important; } }
.mnav-h { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 22px 0 2px; }
.mnav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--hair); color: var(--ink); font-weight: 500; font-size: 16px; }
.mnav a:hover { text-decoration: none; color: var(--blue); }
.mnav a.fb-btn { display: flex; margin-top: 24px; justify-content: center; align-items: center; border-bottom: 0; color: var(--white); height: 48px; }
html.mnav-open { overflow: hidden; }

/* version 50: the four values on the careers page (full page: /values) */
.doc .vl-mini { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 10px; }
@media (min-width: 640px) { .doc .vl-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc .vl-mini li { margin: 0; }
.doc .vl-mini a { display: block; box-sizing: border-box; height: 100%; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.45; transition: border-color 200ms ease; }
.doc .vl-mini a:hover { border-color: var(--blue); }
.doc .vl-mini span { display: block; font: 700 12px/1 var(--font-display); letter-spacing: 0.06em; color: var(--blue); margin-bottom: 8px; }
.doc .vl-mini b { display: block; color: var(--ink); font: 700 17px/1.25 var(--font-display); margin-bottom: 4px; }
