/* ==========================================================================
   Leave-behind briefs — screen + print (PDF via browser Print → Save as PDF)
   Target: 2 pages · US Letter
   ========================================================================== */

:root {
  --ink-900: #0A1B2A;
  --ink-700: #18293B;
  --ink-500: #4A5A6E;
  --ink-400: #7A8694;
  --ink-200: #DCE0E5;
  --ink-100: #ECEEF1;
  --paper: #FAFBFC;
  --paper-2: #F1F3F5;
  --brand-900: #003B62;
  --brand-700: #005391;
  --brand-500: #006AB0;
  --brand-300: #4D9BD0;
  --brand-100: #DCEAF4;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 10px;
}

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

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

body.brief-body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-700);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; color: var(--brand-700); font-weight: 600; }
strong { color: var(--ink-900); font-weight: 650; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

/* Screen chrome */
.brief-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-200);
}

.brief-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--ink-500);
}

.brief-toolbar__left a {
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
}

.brief-toolbar__left a:hover { color: var(--brand-700); }
.brief-toolbar__left a[aria-current="page"] { color: var(--brand-700); }

.brief-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.brief-btn--primary {
  background: var(--brand-500);
  color: #fff !important;
}

.brief-btn--primary:hover { background: var(--brand-700); }

.brief-btn--secondary {
  background: #fff;
  color: var(--ink-900) !important;
  border-color: var(--ink-200);
}

.brief-btn--secondary:hover { border-color: var(--brand-300); }

.brief-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Document pages */
.brief-page {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10, 27, 42, 0.06);
  padding: 36px 40px 32px;
  margin-bottom: 20px;
  min-height: 0;
}

.brief-page + .brief-page {
  page-break-before: always;
}

/* Header */
.brief-mast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink-900);
  margin-bottom: 20px;
}

.brief-mast__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brief-mast__logo {
  height: 28px;
  width: auto;
  display: block;
}

.brief-mast__meta {
  text-align: right;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-400);
}

.brief-mast__meta strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 2px;
}

.brief-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 8px;
}

.brief-h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-900);
  max-width: 22ch;
}

.brief-lede {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 58ch;
}

/* Hero intro: copy + overlapping product shots (space-efficient) */
.brief-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 16px;
}

.brief-hero__copy .brief-lede {
  margin-bottom: 0;
}

/* Overlapping screenshot collage */
.brief-visual {
  position: relative;
  min-height: 148px;
  margin: 0;
}

.brief-visual__stack {
  position: relative;
  height: 150px;
}

.brief-visual__shot {
  position: absolute;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(10, 27, 42, 0.1);
  box-shadow:
    0 2px 6px rgba(10, 27, 42, 0.06),
    0 14px 28px rgba(10, 27, 42, 0.12);
  background: #fff;
  object-fit: cover;
  object-position: top center;
}

.brief-visual__shot--a {
  width: 78%;
  max-width: 280px;
  height: 118px;
  left: 0;
  top: 18px;
  z-index: 1;
  transform: rotate(-2.5deg);
}

.brief-visual__shot--b {
  width: 72%;
  max-width: 250px;
  height: 108px;
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(2.8deg);
}

/* Soft brand wash behind shots */
.brief-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 8%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(0, 106, 176, 0.14) 0%, transparent 68%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

/* Compact band of one wide screenshot (optional page-2 accent) */
.brief-visual-band {
  position: relative;
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  height: 92px;
  background: var(--paper-2);
}

.brief-visual-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
}

.brief-visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 251, 252, 0.55) 0%, transparent 35%, transparent 70%, rgba(250, 251, 252, 0.4) 100%);
  pointer-events: none;
}

.brief-h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.brief-section {
  margin-bottom: 16px;
}

.brief-section p {
  margin: 0 0 8px;
}

.brief-section p:last-child { margin-bottom: 0; }

/* Grid layouts */
.brief-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.brief-cols--3 {
  grid-template-columns: repeat(3, 1fr);
}

.brief-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r);
  padding: 12px 14px;
}

.brief-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brief-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.4;
}

.brief-card--dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: rgba(250, 251, 252, 0.78);
}

.brief-card--dark h3 { color: #fff; }
.brief-card--dark p { color: rgba(250, 251, 252, 0.7); }
.brief-card--dark strong { color: #fff; }

/* Outcomes strip */
.brief-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 0;
}

.brief-stat {
  background: linear-gradient(165deg, var(--brand-100) 0%, #fff 70%);
  border: 1px solid var(--brand-100);
  border-radius: var(--r);
  padding: 12px 12px 10px;
  text-align: left;
}

.brief-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-700);
  line-height: 1.1;
  margin-bottom: 4px;
}

.brief-stat__label {
  font-size: 11.5px;
  color: var(--ink-500);
  line-height: 1.35;
}

/* Steps */
.brief-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  counter-reset: step;
}

.brief-step {
  position: relative;
  padding: 12px 12px 12px 14px;
  border-left: 3px solid var(--brand-500);
  background: var(--paper);
  border-radius: 0 var(--r) var(--r) 0;
}

.brief-step__n {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 4px;
}

.brief-step h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.brief-step p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.4;
}

/* Quote */
.brief-quote {
  margin: 0;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: var(--r);
  border-left: 3px solid var(--brand-500);
}

.brief-quote p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.45;
}

.brief-quote footer {
  font-size: 11.5px;
  color: var(--ink-400);
}

/* Lists */
.brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-list li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 12.5px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}

.brief-list li:last-child { border-bottom: 0; }

.brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* Integration chips */
.brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.brief-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-700);
}

/* Footer of page */
.brief-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-200);
}

.brief-foot__cta h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.brief-foot__cta p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-500);
}

.brief-foot__contact {
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-700);
  white-space: nowrap;
}

.brief-foot__contact strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.brief-page-num {
  font-size: 10px;
  color: var(--ink-400);
  text-align: right;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.brief-note {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 8px;
}

/* Two-col body layout */
.brief-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.brief-callout {
  background: var(--ink-900);
  color: rgba(250, 251, 252, 0.82);
  border-radius: var(--r);
  padding: 14px 16px;
}

.brief-callout h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.brief-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.brief-callout ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.45;
}

/* Screen-only helper under document */
.brief-web-note {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
}

/* ========== PRINT / PDF ========== */
@media print {
  @page {
    size: letter;
    margin: 0.45in 0.5in 0.45in 0.5in;
  }

  body.brief-body {
    background: #fff;
    font-size: 10.5pt;
    color: #000;
  }

  .brief-toolbar,
  .brief-web-note,
  .no-print {
    display: none !important;
  }

  .brief-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .brief-page {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-height: auto;
    page-break-after: always;
    break-after: page;
  }

  .brief-page:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  .brief-h1 { font-size: 20pt; }
  .brief-lede { font-size: 10.5pt; }
  a { color: inherit; text-decoration: none; }

  .brief-card,
  .brief-stat,
  .brief-step,
  .brief-quote,
  .brief-callout {
    break-inside: avoid;
  }
}

@media print {
  .brief-visual__shot,
  .brief-visual-band {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .brief-visual__stack {
    height: 132px;
  }

  .brief-visual__shot--a {
    height: 104px;
  }

  .brief-visual__shot--b {
    height: 96px;
  }

  .brief-visual-band {
    height: 80px;
  }

  .brief-hero {
    gap: 10px 16px;
    margin-bottom: 12px;
  }
}

@media (max-width: 720px) {
  .brief-page { padding: 24px 20px; }
  .brief-cols,
  .brief-cols--3,
  .brief-stats,
  .brief-steps,
  .brief-split,
  .brief-hero {
    grid-template-columns: 1fr;
  }
  .brief-visual__stack {
    height: 160px;
    max-width: 320px;
    margin: 0 auto;
  }
  .brief-mast { flex-direction: column; }
  .brief-mast__meta { text-align: left; }
  .brief-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .brief-foot__contact {
    text-align: left;
    white-space: normal;
  }
  .brief-h1 { max-width: none; font-size: 22px; }
}
