/* =========================================================================
   Agent Review Program — landing site

   Visual language follows Fluent 2: communication blue as the single
   accent, Fluent neutral ramp, Segoe UI Variable, small radii (2/4/8) and
   Fluent's deliberately subtle elevation. No gradients on text or
   surfaces, no glows, no decorative texture — structure comes from
   hairline rules and spacing.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* Forced dark. The page ships one palette so a shared link looks the same
     for everyone — see docs/README.md. Light values are no longer defined. */

  /* Fluent communication blue, lifted for contrast on dark */
  --brand:        #2899f5;
  --brand-hover:  #4aa9f7;
  --brand-press:  #1a86dd;
  --brand-soft:   #112a3f;
  --brand-border: #1f4e78;

  /* Fluent neutrals */
  --ink:          #ffffff;
  --text:         #f3f2f1;
  --text-muted:   #c8c6c4;
  --text-faint:   #979593;   /* decorative use only, never body text */

  --border:       #3b3a39;
  --border-strong:#5d5b59;

  --bg:           #1b1a19;
  --bg-alt:       #201f1e;
  --bg-deep:      #121111;
  --surface:      #252423;
  --surface-2:    #292827;
  --surface-3:    #3b3a39;

  --ok:           #6bb700;
  --ok-soft:      #0d2b0d;
  --bad:          #f1707b;
  --bad-soft:     #3b1319;
  --warn:         #fce100;

  /* Fluent uses small radii; this is a large part of not looking generic */
  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 8px;

  /* Fluent elevation — deepened for a dark surface */
  --shadow-2:  0 0.5px 1.5px rgba(0,0,0,.4);
  --shadow-4:  0 1.2px 3.6px rgba(0,0,0,.4);
  --shadow-8:  0 3.2px 7.2px rgba(0,0,0,.45);
  --shadow-16: 0 6.4px 14.4px rgba(0,0,0,.5);

  --maxw: 1140px;
  --maxw-narrow: 760px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --agentpill-bg: #0f3a5f;
  --agentpill-fg: #f3f2f1;
}

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

html {
  /* forced dark: also makes scrollbars, form controls and the video
     player chrome render dark regardless of the OS preference */
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

code {
  font-family: var(--font-mono);
  font-size: .87em;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .12em .36em;
}

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: .5rem;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--brand); color: #0b1a26;
  padding: .6rem 1.1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip:focus { transform: translate(-50%, 0); color: #0b1a26; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.wrap--narrow { max-width: var(--maxw-narrow); }

/* ---------- scroll reveal: a short fade, nothing more ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(8px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .35s ease-out, transform .35s ease-out;
  transition-delay: var(--d, 0ms);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .15s linear;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  white-space: nowrap; flex-shrink: 0;
}
.brand__mark {
  display: block; flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-lg);
}

.site-header__cta { flex-shrink: 0; margin-left: auto; }

/* ---------- site navigation (header) ----------
   Overview / Install / FAQ on every page. The current page carries
   aria-current="page". On narrow screens "Overview" is dropped because
   the brand link beside it goes to the same place. */
.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: block;
  padding: .4rem .55rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--ink); background: var(--surface); text-decoration: underline; }
.site-nav__link[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
  border-radius: var(--radius) var(--radius) 0 0;
}
.site-nav + .site-header__cta { margin-left: 0; }

/* ---------- quick navigation ---------- */
.quick-nav {
  position: sticky;
  top: 60px;
  z-index: 45;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.quick-nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .45rem 28px;
}
.quick-nav__menu {
  position: relative;
  width: 100%;
}
.quick-nav__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.quick-nav__summary::-webkit-details-marker { display: none; }
.quick-nav__summary::marker { content: ""; }
.quick-nav__summary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.quick-nav__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.quick-nav__summary-copy {
  display: grid;
  gap: .05rem;
  min-width: 0;
}
.quick-nav__label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.quick-nav__current {
  overflow: hidden;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-nav__summary-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}
.quick-nav__chevron {
  transition: transform .15s ease-out;
}
.quick-nav__menu[open] .quick-nav__chevron {
  transform: rotate(180deg);
}
.quick-nav__list {
  position: absolute;
  z-index: 2;
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  max-height: calc(100vh - 164px);
  margin: 0;
  padding: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-16);
  list-style: none;
}
.quick-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .65rem .75rem;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}
.quick-nav__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.quick-nav__link[aria-current="location"] {
  border-left-color: var(--brand);
  background: var(--surface-2);
  color: var(--ink);
}
.quick-nav__link:focus-visible { outline-offset: -2px; }

html:not(.js) .quick-nav { position: static; }

@media (min-width: 1760px) {
  .quick-nav {
    position: fixed;
    top: 50%;
    right: max(12px, calc((100vw - var(--maxw)) / 2 - 286px));
    width: 270px;
    transform: translateY(-50%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-8);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
  .quick-nav__inner {
    max-width: none;
    min-height: 0;
    padding: 0;
  }
  .quick-nav__summary {
    min-height: 54px;
    padding: .85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
  .quick-nav__summary:hover { background: var(--surface-2); }
  .quick-nav__label {
    color: var(--ink);
    font-size: .95rem;
    letter-spacing: .01em;
    text-transform: none;
  }
  .quick-nav__current,
  .quick-nav__summary-action-text { display: none; }
  .quick-nav__list {
    position: static;
    display: block;
    max-height: none;
    padding: .35rem 0 .65rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .quick-nav__link {
    min-height: 48px;
    padding: .7rem 1rem;
    border-radius: 0;
    white-space: normal;
  }
}

/* ---------- buttons: solid fills, no gradients, no lift ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.25;
  padding: .66rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .1s linear, border-color .1s linear, color .1s linear;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* Dark brand blue is light enough that the label must be dark to pass AA. */
.btn--primary { background: var(--brand); color: #0b1a26; }
.btn--primary:hover { background: var(--brand-hover); color: #0b1a26; }
.btn--primary:active { background: var(--brand-press); color: #0b1a26; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--text-faint); }

.btn--sm { font-size: .9rem; padding: .44rem .9rem; }
.btn--lg { font-size: 1.05rem; padding: .8rem 1.7rem; }

/* ---------- hero ---------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--border); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* a plain typographic label, not a badge */
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .76rem; font-weight: 600; color: var(--text-muted);
  margin: 0 0 1.1rem;
}

.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  letter-spacing: -.02em; line-height: 1.08;
  margin-bottom: 1.1rem;
  max-width: 15ch;
}

.hero__lede {
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.5; color: var(--text); margin-bottom: 1.4rem;
  max-width: 46ch;
}
.hero__body { color: var(--text-muted); max-width: 52ch; font-size: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  list-style: none; margin: 1.9rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--text-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { color: var(--text-faint); flex-shrink: 0; }

/* ---------- hero product shot ---------- */
.hero__visual { position: relative; }
.hero__shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-8);
}
/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 6.5vw, 5rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--cta { background: var(--bg); border-top: 1px solid var(--border); }

.section__head { max-width: 58ch; margin-bottom: 2.2rem; }
.section__title { font-size: clamp(1.6rem, 2.9vw, 2.1rem); letter-spacing: -.016em; margin-bottom: .45rem; }
.section__lede { color: var(--text-muted); font-size: 1.02rem; margin: 0; }

/* ---------- screenshot gallery ---------- */
/* One up. These carry fine UI detail — scores, rule IDs, stat tiles — so they
   are shown full width at roughly half their native 2524px so the text in
   them stays legible on both standard and high-DPI screens. */
.gallery { display: grid; grid-template-columns: 1fr; gap: 3.25rem; }
.shot { margin: 0; }
.shot__img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-4);
}
.shot figcaption {
  margin-top: 1rem; color: var(--text-muted);
  font-size: 1rem; line-height: 1.55; max-width: 68ch;
}
.shot figcaption strong {
  display: block; color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; letter-spacing: -.012em;
  margin-bottom: .25rem;
}
/* ---------- video ---------- */
.video { margin: 0; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  box-shadow: var(--shadow-8);
}
.video__embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
/* the frame clips overflow, so draw the focus ring inside the video and on the frame */
.video__embed:focus-visible { outline-offset: -3px; }
.video__frame:has(.video__embed:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.video figcaption { margin-top: .85rem; color: var(--text-muted); font-size: .94rem; text-align: center; }

/* ---------- how the program runs ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 72ch; }
.timeline__item { position: relative; padding-left: 2.1rem; padding-bottom: 1.6rem; }
.timeline__item:last-child { padding-bottom: 0; }

/* connector is drawn per item so the rail stops at the last marker
   rather than trailing past it */
.timeline__item:not(:last-child)::after {
  content: ""; position: absolute; left: 6px;
  top: 1.4rem; bottom: -.85rem;
  width: 1px; background: var(--border-strong);
}

/* filled marker for a session, hollow for the gaps between and after */
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--bg-alt);
  box-sizing: content-box;
}
.timeline__item[data-interval]::before {
  background: var(--bg-alt); border: 2px solid var(--border-strong);
  width: 9px; height: 9px; left: 2px; top: .6rem;
}
.timeline__label {
  font-family: var(--font-display); font-weight: 600;
  color: var(--ink); font-size: 1.02rem; margin: 0 0 .15rem;
}
.timeline__text { color: var(--text-muted); font-size: .98rem; margin: 0; }

@media (min-width: 760px) {
  .timeline__item {
    display: grid; grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem; align-items: baseline;
  }
  .timeline__label { margin-bottom: 0; }
}

/* ---------- prerequisites ---------- */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.requirement {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.requirement__title {
  margin-bottom: .45rem;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}
.requirement p {
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.55;
}
.requirement strong { color: var(--text); }

.step-num {
  display: inline-grid;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .95rem;
  font-weight: 700;
}

.procedure { margin: .8rem 0 1rem; padding-left: 1.5rem; }
.procedure > li { padding-left: .3rem; margin-bottom: .55rem; }
.procedure > li::marker { color: var(--ink); font-weight: 600; }
.procedure ul { margin: .5rem 0 .2rem; padding-left: 1.2rem; }
.procedure ul li { margin-bottom: .3rem; }

.learn-more { margin-top: 1rem; font-size: .92rem; }
.after-callout { margin-top: 1.2rem; }

/* ---------- FAQ page ----------
   Each question is a native <details>, collapsed by default. */
.faq-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.faq-tools[hidden] { display: none; }
.faq-group { padding-block: clamp(2rem, 4vw, 3rem); }
.faq-group .section__title { margin-bottom: 1.2rem; }

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq + .faq { margin-top: .6rem; }
.faq[open] { border-color: var(--border-strong); }

.faq__question {
  position: relative;
  display: block;
  padding: 1rem 3rem 1rem 1.2rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: 1.3rem;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .15s ease-out;
}
.faq[open] > .faq__question::after { transform: translateY(3px) rotate(-135deg); }
.faq__question:hover { background: var(--surface-2); }
.faq[open] > .faq__question { border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.faq__question code { font-size: .86em; overflow-wrap: anywhere; }
.faq__question q { quotes: "\201C" "\201D" "\2018" "\2019"; }
/* marks entries that quote an on-screen error message */
.faq__tag {
  display: inline-block;
  margin-right: .35rem;
  padding: 0 .4rem;
  border: 1px solid var(--bad);
  border-radius: var(--radius-sm);
  color: var(--bad);
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: .15em;
}

.faq__answer { padding: 1.1rem 1.2rem 1.3rem; }
.faq__answer > :first-child { margin-top: 0; }
.faq .faq__label {
  margin: 1.6rem 0 .6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faq p { color: var(--text-muted); }
.faq strong { color: var(--text); }
.faq .steps--numbered { margin-top: 1rem; }
.faq .learn-more { margin-top: 1.6rem; }
.error-message {
  margin: .8rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bad);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error-message code { padding: 0; background: none; font-size: inherit; }
.faq__more { margin-top: 2.5rem; }
.faq-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .94rem;
  font-weight: 600;
}
html:has(body.page--reference) { scroll-padding-top: 80px; }

/* ---------- reference content primitives ---------- */
.pagehead {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pagehead__title {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.pagehead__lede {
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.55;
}
.pagehead__body { color: var(--text-muted); }

.crumbs { margin-bottom: 1.4rem; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: .86rem;
}
.crumbs li + li::before {
  content: "/";
  margin-right: .35rem;
  color: var(--text-faint);
}

.quote,
.note,
.callout {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.quote { font-style: normal; }
.quote strong, .callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--warn); }

.subhead {
  margin: 2.4rem 0 .85rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.5;
}
.table th,
.table td {
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: top;
}
.table thead { background: var(--surface-2); }
.table thead th {
  color: var(--ink);
  font-size: .84rem;
  letter-spacing: .01em;
}
.table tbody tr + tr { border-top: 1px solid var(--border); }
.table tbody th {
  width: 31%;
  color: var(--ink);
  font-weight: 600;
}
.table tbody td { color: var(--text-muted); }

.bullets { margin: 1rem 0; padding-left: 1.25rem; }
.bullets li { padding-left: .25rem; margin-bottom: .75rem; }
.bullets li:last-child { margin-bottom: 0; }

.steps--numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: setup-step;
}
.steps--numbered .steps__item {
  position: relative;
  counter-increment: setup-step;
  padding: 0 0 1.7rem 3.25rem;
}
.steps--numbered .steps__item:last-child { padding-bottom: 0; }
.steps--numbered .steps__item::before {
  content: counter(setup-step);
  position: absolute;
  top: -.1rem;
  left: 0;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.steps__title { margin-bottom: .3rem; font-size: 1.08rem; }
.steps__item p { color: var(--text-muted); }
.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

/* ---------- closing / nominate ---------- */
.closing {
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3rem) 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.closing__title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.018em; margin-bottom: .6rem; }
.closing__text { font-size: 1.04rem; color: var(--text-muted); max-width: 50ch; margin-inline: auto; margin-bottom: 1.5rem; }

/* two nomination paths: one for the agent owner, one for Microsoft teams */
.paths {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.4rem 2.25rem;
}
.path { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.path__who {
  margin: 0; font-size: .82rem; font-weight: 600;
  color: var(--text-muted);
}

/* ---------- contact the program team ---------- */
.contact { padding-top: 0; background: var(--bg); }
.contact__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact__card > div { flex: 1 1 100%; }
.contact__title { font-size: 1.3rem; letter-spacing: -.012em; margin-bottom: .4rem; }
.contact__text { color: var(--text-muted); font-size: .98rem; max-width: 62ch; }
.contact__btn { flex-shrink: 0; }

/* ---------- solution download ----------
   The button points at the GitHub release asset; see .github/RELEASING.md. */
.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  margin-top: 1.8rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--brand-border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
}
.download-card--featured {
  flex-direction: column;
  max-width: 760px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-left-width: 1px;
  border-top: 3px solid var(--brand);
  text-align: center;
  box-shadow: var(--shadow-8);
}
.download-card__eyebrow {
  margin: 0 0 .35rem;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.download-card__text { flex: 1 1 28ch; min-width: 0; }
.download-card__title {
  margin-bottom: .2rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}
.download-card__meta,
.download-card__note { margin-bottom: .15rem; color: var(--text-muted); font-size: .9rem; }
.download-card__hash { font-size: .78rem; overflow-wrap: anywhere; word-break: break-all; }
.download-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.download-card--featured .download-card__text { flex-basis: auto; }
.download-card--featured .download-card__title { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
.download-card--featured .download-card__actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-block: 2.5rem 2.75rem; }
.site-footer__brand { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: .85rem; }
.site-footer__links { font-size: .92rem; margin-bottom: .85rem; }
.site-footer__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__legal { color: var(--text-muted); font-size: .82rem; max-width: 78ch; }

/* =========================================================================
   Landing: program and tool explainers
   ========================================================================= */

/* ---------- program vs tool comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.compare__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
}
.compare__tag {
  margin: 0 0 .35rem;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.compare__title { margin-bottom: .55rem; font-size: 1.35rem; letter-spacing: -.012em; }
.compare__card > p { color: var(--text-muted); }
.compare__card > .compare__tag { color: var(--brand); }
.compare__facts { display: grid; gap: .7rem; margin: 1.2rem 0 0; }
.compare__facts div { padding-top: .7rem; border-top: 1px solid var(--border); }
.compare__facts dt { color: var(--ink); font-size: .88rem; font-weight: 600; }
.compare__facts dd { margin: .1rem 0 0; color: var(--text-muted); font-size: .96rem; }
.compare__more { margin-top: auto; padding-top: 1.2rem; font-weight: 600; }

/* ---------- grids and lists ---------- */
.requirement code,
.phase code,
.faq__answer code { overflow-wrap: anywhere; }

.commitments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subhead--first { margin-top: 0; }
.bullets--compact li { margin-bottom: .4rem; }
.callout .bullets { margin-bottom: 0; }

.review-steps, .install-overview { max-width: 72ch; }
.review-steps .steps__item, .install-overview .steps__item { padding-bottom: 1.3rem; }
.review-result { max-width: 72ch; margin-top: .4rem; color: var(--text); }
.steps__range { color: var(--text-muted); font-weight: 600; }

/* who does a step: a small label on its own line under the description */
.steps__who { margin: .5rem 0 0; }
.install-overview .steps__item p { margin-bottom: 0; }
.install-overview .steps__item .steps__title { margin-bottom: .2rem; }
.who {
  display: inline-block;
  padding: 0 .45rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
}

/* a screenshot shown at its own pixel size so it is never upscaled */
.shot--native { max-width: 824px; }

.install-overview + .callout__actions { margin-top: 1.6rem; }

/* ---------- timeline detail: duration, week and output per session ---------- */
.timeline__when .timeline__label { margin-bottom: 0; }
.timeline__meta { margin: .1rem 0 0; color: var(--text-muted); font-size: .9rem; }
.timeline__title {
  margin: 0 0 .25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.timeline__text + .timeline__text { margin-top: .5rem; }
.timeline__out strong { color: var(--text); }
.timeline--detailed .timeline__item { padding-bottom: 2rem; }
.timeline--detailed .timeline__item:last-child { padding-bottom: 0; }

/* =========================================================================
   Installation guide page
   ========================================================================= */
.install-steps__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.install-steps__head .section__lede { margin-bottom: 0; }
.install-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.install-tools[hidden] { display: none; }

.phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.phase + .phase { margin-top: .7rem; }
.phase[open] { border-color: var(--border-strong); }
.phase__summary {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.phase__summary::-webkit-details-marker { display: none; }
.phase__summary:hover { background: var(--surface-2); }
.phase__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}
.phase[open] > .phase__summary {
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.phase__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  width: 100%;
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.phase__summary-copy {
  display: grid;
  gap: .25rem;
  min-width: 0;
}
.phase__summary-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.phase__summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: 0;
}
.phase__summary-meta strong {
  color: var(--text);
  font-weight: 600;
}
.phase__summary-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
}
.phase__hide { display: none; }
.phase__chevron { transition: transform .15s ease-out; }
.phase[open] .phase__show { display: none; }
.phase[open] .phase__hide { display: inline; }
.phase[open] .phase__chevron { transform: rotate(180deg); }
.phase__body {
  padding: 1.25rem 1.3rem 1.5rem;
}
.phase__body > :first-child { margin-top: 0; }
.phase__body > :last-child { margin-bottom: 0; }
.phase__reference-icon {
  border-style: dashed;
}
.phase__body h4 { margin: 1.9rem 0 .6rem; font-size: 1.1rem; }
.phase p, .phase li { color: var(--text-muted); }
.phase strong { color: var(--text); }
.phase .table tbody th { color: var(--ink); }
.phase .callout p { margin-bottom: .4rem; }
.phase .callout p:last-child { margin-bottom: 0; }
.phase .table-wrap { margin-top: .6rem; }

.phase__meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .35rem 1rem;
  margin: 0 0 1.3rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .94rem;
}
.phase__meta dt { color: var(--ink); font-weight: 600; }
.phase__meta dd { margin: 0; color: var(--text-muted); }

/* role glossary at the start of the installation guide */
.glossary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .45rem 1.2rem;
  margin: .4rem 0 1rem;
}
.glossary dt { color: var(--ink); font-weight: 600; }
.glossary dd { margin: 0; color: var(--text-muted); }
@media (max-width: 620px) {
  .glossary { grid-template-columns: 1fr; gap: .1rem; }
  .glossary dd + dt { margin-top: .6rem; }
}

/* who to tell next, at the end of a step */
.handoff { margin-top: 1.4rem; }

.callout--verify { border-left-color: var(--ok); }

/* =========================================================================
   responsive
   ========================================================================= */
@media (max-width: 1759px) {
  /* header (60px) + compact quick navigation (~70px) + breathing room */
  html { scroll-padding-top: 152px; }
}

@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .quick-nav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .commitments { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .quick-nav__inner { padding-inline: 20px; }
  .requirements-grid,
  .compare { grid-template-columns: 1fr; }
  .download-card__actions,
  .download-card__actions .btn,
  .contact__btn { width: 100%; text-align: center; }
}

@media (max-width: 620px) {
  .quick-nav__list { grid-template-columns: 1fr; }
  .table-wrap { overflow: visible; }
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td { display: block; width: 100%; }
  .table thead { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table tbody tr + tr { border-top: 1px solid var(--border-strong); }
  .table tbody th { width: 100%; padding-bottom: .25rem; background: var(--surface-2); }
  .table tbody td { padding-top: .55rem; }
  .table--labelled td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
  }
  .phase__meta { grid-template-columns: 1fr; gap: .1rem; }
  .phase__meta dd + dt { margin-top: .5rem; }
  .install-tools { width: 100%; }
  .install-tools .btn { flex: 1 1 8rem; min-height: 44px; }
  .phase__summary { padding: .9rem; }
  .phase__title { align-items: start; gap: .7rem; }
  .phase__summary-meta { display: grid; gap: .1rem; }
  .phase__summary-action { padding-top: .45rem; }
  .phase__summary-action > span { display: none; }
  .phase__body { padding: 1.1rem 1rem 1.3rem; }
}

/* the header carries only the brand and the primary action; below this the
   wordmark is hidden visually but kept for assistive tech, so the link
   retains an accessible name once only the logo is showing */
@media (max-width: 560px) {
  .brand__text {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-header__inner { gap: .8rem; }
  .site-nav__item--home { display: none; }
  .site-nav__link { padding: .4rem .4rem; font-size: .9rem; }
}

@media (max-width: 420px) {
  .quick-nav__summary { gap: .6rem; }
  .quick-nav__current { font-size: .9rem; }
  .quick-nav__summary-action-text { display: none; }
}

@media (max-width: 380px) {
  .site-header__inner { gap: .5rem; }
  .site-nav__link { padding: .4rem .3rem; }
  .site-header__cta { padding-inline: .7rem; }
}

/* very narrow (e.g. 320px at 400% zoom): let the call to action wrap */
@media (max-width: 340px) {
  .site-header__cta { white-space: normal; text-align: center; font-size: .85rem; line-height: 1.2; }
}

/* short viewports (landscape phones, high zoom): the quick navigation stops
   sticking so the stuck header and menu don't cover most of the screen.
   main.js reads the computed position, so its highlight still works. */
@media (max-height: 560px) and (max-width: 1759px) {
  .quick-nav { position: static; }
  html { scroll-padding-top: 72px; }
}

/* =========================================================================
   forced colours (Windows High Contrast)
   ========================================================================= */
@media (forced-colors: active) {
  .quick-nav__summary { border-color: ButtonBorder; }
  .quick-nav__link { border-left-color: Canvas; }
  .quick-nav__link[aria-current="location"] { border-left-color: Highlight; }
  .site-nav__link[aria-current="page"] { text-decoration: underline 2px; text-underline-offset: 4px; }
  .who, .step-num { border-color: CanvasText; }
  .phase[open] { border-color: CanvasText; }
  .phase__summary:focus-visible { outline-color: Highlight; }
}
/* =========================================================================
   motion preferences
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   print
   ========================================================================= */
@media print {
  html { background: #fff; color-scheme: light; }
  .site-header, .quick-nav, .skip, .hero__actions, .closing .btn, .video, .callout__actions, .faq-tools, .faq-toc, .install-tools, .download-card__actions, .contact__btn { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .phase__body { display: block !important; }
  .phase__summary-action { display: none; }
  .shot__img, .hero__shot { break-inside: avoid; }
  .phase, .requirement, .compare__card, .faq { break-inside: avoid; }
  h1, h2, h3, h4, p, li, dt, dd, th, td, figcaption, strong, code, summary, pre { color: #000 !important; }
  a { color: #0b4f8a !important; }
  .who, .faq__tag { color: #000 !important; border-color: #000 !important; }
  .step-num, .compare__tag { color: #0b4f8a !important; border-color: #0b4f8a !important; }
  .timeline__item::before { border-color: #000 !important; }
  .hero, .section, .pagehead { padding-block: 1rem; }
}
