/* WPlex site styles */

:root {
  --navy: #011A3C;
  --accent: #0160FF;
  --accent-hover: #0047C2;
  --ground: #F6F6F2;
  --surface: #FFFFFF;
  --text: #011A3C;
  --text-body: #3A403C;
  --text-muted: #4F5652;
  --line: #D5D8D2;
  --line-strong: #A9AEA7;
  --on-dark: #F6F6F2;
  --on-dark-body: #D3D6D0;
  --on-dark-muted: #B9BEB8;
  --placeholder: #E6E8E3;
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1200px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--white { background: var(--surface); }
.section--rule { border-top: 1px solid var(--line); }
.section--band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Type */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--text-muted); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

h1, h2, h3 { margin: 0; font-weight: 600; }

.h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; max-width: 980px; }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-size: 21px; line-height: 1.3; }

.eyebrow + .h1, .eyebrow + .h2 { margin-top: 12px; }
.lede { margin: 24px 0 0; max-width: 680px; font-size: 20px; line-height: 1.55; color: var(--text-body); }
.body-lg { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-body); }
.body-lg + .body-lg { margin-top: 20px; }
.section--dark .body-lg, .section--dark .lede { color: var(--on-dark-body); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 17px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #0B2C5C; color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--ground); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { padding-top: 24px; padding-bottom: 24px; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__tag {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--text-muted);
  padding-left: 14px; border-left: 1px solid #C9CCC6;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 600; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 64px; }
.hero--split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero--split > .hero__main { flex: 999 1 560px; min-width: 0; }
.hero--split > .hero__aside { flex: 1 1 300px; min-width: 0; }

/* Stat bar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { padding: 32px 24px 32px 0; }
.stat__value { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-body); }

/* Two-column intro */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split > :last-child { flex: 1 1 480px; min-width: 0; }

/* Steps */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--on-dark); padding-top: 20px; }
.step__num { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }
.step .h3 { margin-top: 10px; }
.step p:not(.step__num) { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-body); }
.step p.addon-price { margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }

/* Timeline */
.timeline { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.role {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 12px 40px;
}
.role--current { border: 1.5px solid var(--navy); }
.role__head { flex: 1 1 260px; min-width: 0; }
.role__dates { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.role--current .role__dates { color: var(--accent); font-weight: 500; }
.role__head .h3 { margin-top: 6px; }
.role__body { margin: 0; flex: 2 1 480px; font-size: 16px; line-height: 1.6; color: var(--text-body); }

/* Cards */
.grid { margin-top: 48px; display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 32px; display: flex; flex-direction: column; gap: 20px; flex: 1 1 auto; }
.card__sub { margin: 6px 0 0; font-size: 15px; color: var(--text-muted); }
.card__media {
  height: 220px; background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--text-muted);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media.ba { display: flex; align-items: stretch; justify-content: flex-start; gap: 2px; background: var(--line); height: 240px; }
.ba figure { margin: 0; flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: #fff; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ba figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--navy); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Integrations flow */
.flow { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.flow__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--ground); }
.flow__col--hub { background: var(--navy); border-color: var(--navy); color: #fff; }
.flow__title { margin: 0 0 16px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.flow__col--hub .flow__title { color: var(--on-dark-muted); }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--navy); }
.flow__col--hub .chips li { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.flow__retail { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.flow__retail .flow__title { margin: 0; flex: 0 0 auto; }
.flow__retail p { margin: 0; flex: 1 1 360px; font-size: 16px; line-height: 1.6; color: var(--text-body); }
/* Services list (index.html #services) */
.services { margin: 48px 0 0; border-top: 1.5px solid var(--navy); }
.service { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service__name { flex: 1 1 280px; min-width: 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.service__desc { flex: 2 1 480px; min-width: 0; margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-body); }

/* AI service cards (index.html #ai) */
.ai-card { border-top: 3px solid var(--accent); }
.ai-card__body { gap: 12px; }
.ai-card__title { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.ai-card__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-body); }

/* "Who this is for" checklist (index.html) */
.fit-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--text); }
.fit-list li { display: flex; gap: 12px; align-items: flex-start; }
.fit-list svg { flex: 0 0 20px; margin-top: 3px; color: var(--accent); }

/* Legal pages (terms/index.html) */
.legal { max-width: 760px; }
.legal .legal__meta { margin: 8px 0 0; font-family: var(--mono); font-size: 14px; color: var(--text-muted); }
.legal h2 { margin: 48px 0 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.legal h3 { margin: 32px 0 0; font-size: 19px; line-height: 1.3; }
.legal p { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-body); }
.legal .legal__meta + p { margin-top: 32px; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__arrow svg { transform: rotate(90deg); }
}

/* Case study details */
.csr { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.csr dt { font-family: var(--mono); font-size: 13px; color: var(--text-muted); text-transform: uppercase; }
.csr dd { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.csr dd.csr__result { color: var(--navy); font-weight: 500; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 500; }
.quote figcaption { margin-top: 16px; font-size: 15px; color: var(--text-muted); }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.field input { min-height: 44px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { width: 100%; }
.form__note { margin: 0; font-size: 14px; color: var(--text-muted); }

.scheduler { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.scheduler p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-body); }
.scheduler__embed { flex: 1 1 auto; min-height: 600px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.scheduler__embed iframe { display: block; width: 100%; height: 600px; border: 0; }

/* Checklist */
.checklist { margin: 0; padding: 24px; list-style: none; border: 1.5px solid var(--navy); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: 0 0 20px; margin-top: 2px; color: var(--accent); }

/* Plans */
.plan { border: 1px solid var(--line); }
.plan--featured { border: 2px solid var(--navy); }
.plan__badge { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); font-weight: 500; }
.plan__price { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.plan__price span { font-size: 16px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan__alt { margin: 4px 0 0; font-size: 15px; color: var(--text-muted); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--text-body); flex: 1 1 auto; }
.plan .btn { min-height: 48px; }

.addon-price { margin: 14px 0 0; font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }

/* Callouts */
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.callout > div { flex: 999 1 480px; min-width: 0; }
.callout p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-body); }

.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band__inner > div { flex: 999 1 480px; min-width: 0; }
.cta-band p { margin: 14px 0 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: #E3ECFF; }

.row-end { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.row-end > div { flex: 999 1 560px; min-width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--text-muted); }

.mt-48 { margin-top: 48px; }
.mt-16 { margin-top: 16px; }
.measure { max-width: 760px; }

@media (max-width: 600px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 48px; }
  .role, .card__body, .form, .scheduler { padding: 24px; }
  .grid--2, .grid--3, .quotes { grid-template-columns: 1fr; }
  .stat { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
