/* Underway — partner site.
 *
 * Uses the same Modernist tokens as the app, so a partner who sees the
 * screenshots and then the product is looking at one thing rather than
 * a marketing site and a separate piece of software.
 *
 * Audience is three affiliate managers, not consumers. The job is to
 * establish that the thing exists and works, so restraint reads better
 * than polish: no gradients, no motion, no stock imagery, and every
 * number on the page traceable to a screenshot beside it.
 *
 * No JS, no build step, no framework. Deployable as static files.
 */

:root {
  /* Modernist tokens, matching src/styles.css in the app */
  --color-bg: #e9e9ec;
  --color-surface: #faf9f8;
  --color-ink: #16181d;
  --color-muted: #83868f;
  --color-faint: #9a9da5;
  --color-primary: #14329b;
  --color-primary-hover: #0d2270;
  --color-primary-soft: #f4f6fd;
  --color-primary-chip: #e9edfa;
  --color-border: #e4e3e8;
  --color-border-soft: #ecebef;

  --font-heading: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

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

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

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

a {
  color: var(--color-primary);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--color-primary-hover);
}

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

h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 33px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
}

p {
  margin: 0 0 14px;
}

/* ── Masthead ───────────────────────────────────────────────────── */

.masthead {
  background: var(--color-primary);
  color: #fff;
  padding: clamp(40px, 7vw, 72px) 0 clamp(36px, 6vw, 60px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(24px, 4vw, 38px);
}
.brand__mark {
  width: 28px;
  height: 28px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}
.brand__mark::before {
  content: '';
  position: absolute;
  top: 12.5px;
  left: 6px;
  width: 16px;
  height: 3px;
  background: var(--color-primary);
}
.brand__word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.masthead__lede {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 0 22px;
  text-wrap: balance;
}

.masthead__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
}

.pill {
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 3px 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Sections ───────────────────────────────────────────────────── */

.section {
  padding: clamp(44px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.section--muted {
  background: var(--color-bg);
}
.section:last-of-type {
  border-bottom: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 820px) {
  .split {
    grid-template-columns: 1fr minmax(280px, 340px);
  }
  .split--reverse .split__copy {
    order: 2;
  }
  .split--reverse .split__shot {
    order: 1;
  }
}

.split__copy p {
  max-width: 56ch;
  color: #3a3d45;
}

/* ── Phone frame ────────────────────────────────────────────────── */

.split__shot {
  margin: 0;
}

.phone {
  border: 9px solid #16181d;
  border-radius: 34px;
  overflow: hidden;
  background: #16181d;
  box-shadow: 0 18px 44px rgba(20, 24, 40, 0.16);
  max-width: 300px;
  margin: 0 auto;
}
.phone img {
  border-radius: 25px;
}

.split__shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--color-faint);
}

/* ── The finding ────────────────────────────────────────────────── */

.section--finding {
  background: var(--color-primary-soft);
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 18px;
}

.finding {
  margin: 0 0 20px;
  padding: 0 0 0 clamp(16px, 2.5vw, 26px);
  border-left: 4px solid var(--color-primary);
  max-width: 30ch;
}
.finding p {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(21px, 3.2vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.finding p:last-child {
  margin-bottom: 0;
  font-weight: 400;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.5;
  letter-spacing: 0;
  color: #3a3d45;
}
.finding strong {
  color: var(--color-primary);
}

.finding__source {
  max-width: 62ch;
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0;
}

/* ── Facts ──────────────────────────────────────────────────────── */

.facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}
.facts li {
  background: #fff;
  border: 1.5px solid var(--color-border-soft);
  border-radius: 18px;
  padding: 20px 19px;
}
.facts p {
  margin: 0;
  font-size: 14px;
  color: #4a4d55;
}

/* ── Notes ──────────────────────────────────────────────────────── */

.note {
  font-size: 13.5px;
  color: var(--color-muted);
  max-width: 58ch;
}
.note--status {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  max-width: 72ch;
}

.chip-est {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fdf0d5;
  color: #8a5a00;
  border: 1px solid #f0d9a8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

/* ── Contact ────────────────────────────────────────────────────── */

.contact p {
  max-width: 56ch;
  color: #3a3d45;
}
.contact__email {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  word-break: break-word;
}
.contact__alt {
  font-size: 14px;
  color: var(--color-muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 30px 0;
  font-size: 13px;
}
.footer p {
  margin: 0 0 6px;
}
.footer__note {
  max-width: 74ch;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}
