/* The Executive AI Toolkit — "the brief": a premium, minimal executive briefing.
   Palette: pine/ink on warm paper. Type: Newsreader (display) + IBM Plex Sans/Mono. */

:root {
  --paper:    #FAFAF7;
  --ink:      #1a231e;
  --muted:    #5e665f;
  --pine:     #1f3d33;
  --pine-deep:#16291f;
  --rule:     #e4e5df;
  --signal:   #9c3b27;   /* scarcity only */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 720px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared atoms ---- */
.kicker, .docmeta, .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker { display: block; margin: 0 0 18px; color: var(--pine); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }

.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--pine-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

/* ---- masthead ---- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark { font-family: var(--serif); font-size: 18px; font-weight: 500; }
a.wordmark { color: var(--ink); text-decoration: none; }
.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 104px;
  height: auto;
  mix-blend-mode: multiply;
}
.brand-logo.small { width: 76px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
  padding: 4px;
  background: #eef1ee;
  border: 1px solid #e0e3dd;
  border-radius: 6px;
}
.site-nav a {
  color: var(--pine);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  padding: 7px 10px;
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover {
  background: #fff;
  color: var(--pine-deep);
  text-decoration: none;
}
.site-nav a:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

/* ---- section rhythm ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main > section { padding: 72px 0; border-top: 1px solid var(--rule); }
main > section:first-child { border-top: 0; }

/* ---- hero ---- */
.hero { padding-top: 64px; }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  margin: 0 0 26px;
}
.lead { font-size: 20px; color: #2c352f; max-width: 38em; margin: 0 0 38px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-status { display: grid; gap: 12px; }

/* ---- seat marks (the signature) ---- */
.seats { display: flex; align-items: center; gap: 12px; }
.seat-marks { display: inline-flex; gap: 6px; }
.seat-marks i {
  width: 11px; height: 11px; border-radius: 2px;
  border: 1.5px solid var(--pine);
  background: transparent;
  display: block;
}
.seat-marks i.taken { background: var(--pine); }
.seats-label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.first-session {
  margin-top: 2px;
  color: var(--pine);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}
.seats.low .seat-marks i { border-color: var(--signal); }
.seats.low .seat-marks i.taken { background: var(--signal); }
.seats.low .seats-label { color: var(--signal); }

/* ---- film ---- */
.frame { aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- what you leave with ---- */
.leave-h { font-size: clamp(28px, 4vw, 38px); margin: 0 0 28px; }
.leave { list-style: none; margin: 0; padding: 0; }
.leave li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: #2c352f;
}
.leave li:first-child { border-top: 1px solid var(--rule); }
.leave li::before {
  content: "—"; position: absolute; left: 0; color: var(--pine);
}

/* ---- how it works ---- */
.diff-line { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.4; margin: 0; max-width: 24em; }
.section-copy { max-width: 42em; margin: 0 0 28px; color: #2c352f; }

/* ---- syllabus (a real sequence → numbered) ---- */
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--rule); }
.sessions li:last-child { border-bottom: 1px solid var(--rule); }
.s-no { font-family: var(--serif); font-size: 30px; color: var(--pine); line-height: 1; min-width: 34px; }
.sessions h3 { font-size: 21px; margin: 2px 0 6px; }
.sessions h3 em { font-style: italic; color: var(--muted); font-size: 16px; }
.sessions p { margin: 0 0 8px; color: var(--muted); }
.s-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); }

/* ---- terms ---- */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; }
.term p { margin: 0; color: #2c352f; }

/* ---- register ---- */
.register h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 28px; }
.form { display: grid; gap: 20px; max-width: 440px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.field input::placeholder { color: #9aa39b; }
.field input:focus-visible { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
.btn-full { width: 100%; padding: 16px; margin-top: 4px; }
.fineprint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.more { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.more a { color: var(--pine); }
.more a:hover { color: var(--pine-deep); }
.error {
  background: #fbecea; color: var(--signal);
  border: 1px solid #eccac3; border-radius: 2px;
  padding: 12px 14px; margin: 0 0 22px; font-size: 15px;
}

/* ---- footer ---- */
.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap;
  font-family: var(--serif); font-size: 15px;
}
.foot .site-nav { margin-left: 0; }

/* ---- thank-you ---- */
.thanks { max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gutter); }
.thanks h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 20px; }
.thanks p { font-size: 19px; color: #2c352f; max-width: 32em; margin: 0 0 16px; }
.thanks .btn { margin-top: 20px; }

/* ---- hero reveal ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions { animation: rise .6s ease both; }
.hero h1 { animation-delay: .06s; }
.hero .lead { animation-delay: .12s; }
.hero-actions { animation-delay: .18s; }

/* ---- responsive ---- */
@media (max-width: 620px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  main > section { padding: 52px 0; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 33px; line-height: 1.12; }
  .lead { font-size: 18px; margin-bottom: 32px; }
  .leave-h { font-size: 26px; }
  .diff-line { font-size: 21px; }
  .terms { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions { gap: 18px; }
  .sessions li { gap: 16px; }
  .s-no { font-size: 26px; min-width: 26px; }
  .masthead {
    align-items: flex-start;
    gap: 18px;
  }
  .masthead .brand-link { width: 100%; }
  .masthead .site-nav {
    width: 100%;
    margin-left: 0;
  }
  .masthead .docmeta { display: none; }
  .foot { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 44px; }
  .foot .site-nav { margin-top: 4px; }
}

@media (max-width: 400px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: 30px; }
  .register h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- two ways in (self-serve vs cohort) ---- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card { border: 1px solid var(--rule); border-radius: 3px; padding: 28px 26px; background: #fff; display: flex; flex-direction: column; }
.path-card.feature { border-color: var(--pine); }
.path-card .ptag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine); margin-bottom: 14px; }
.path-card h3 { font-size: 23px; margin: 0 0 6px; }
.path-card .price { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 0 0 14px; }
.path-card p { margin: 0 0 22px; color: var(--muted); flex: 1; }
.path-card .btn { align-self: flex-start; }

/* ---- self-serve product page ---- */
.text-link {
  color: var(--pine);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link:hover { color: var(--pine-deep); text-decoration: underline; text-underline-offset: 4px; }
.text-link:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cos-wide { max-width: 1160px; }
.directory-hero {
  padding: 72px 0 76px;
  text-align: center;
  border-top: 0;
}
.directory-hero h1 {
  max-width: 960px;
  margin: 0 auto 24px;
  font-family: var(--sans);
  font-size: clamp(46px, 6.4vw, 82px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}
.directory-hero .lead {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}
.directory-hero .hero-actions { justify-content: center; }
.cos-setup-quick {
  padding: 68px 0 82px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.cos-setup-quick h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.08;
}
.cos-setup-quick > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.command-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.platform-toggle {
  width: max-content;
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  display: flex;
  gap: 4px;
}
.platform-choice {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  text-transform: uppercase;
}
.platform-choice:hover { color: var(--ink); }
.platform-choice.active {
  background: #ecece7;
  color: var(--ink);
}
.platform-choice:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.command-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #d9dbd5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 35, 30, .07);
}
.prompt-mark {
  color: #b7bbb5;
  font-family: var(--mono);
  font-size: 25px;
}
.command-pill code {
  min-width: 0;
  overflow-x: auto;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(16px, 2.1vw, 25px);
  line-height: 1.2;
  white-space: nowrap;
}
.command-copy {
  width: 48px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  text-indent: -999px;
  position: relative;
  border-radius: 7px;
}
.command-copy::before,
.command-copy::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 3px;
  width: 14px;
  height: 18px;
}
.command-copy::before { left: 17px; top: 8px; }
.command-copy::after { left: 22px; top: 12px; background: var(--pine); }
.command-copy.copied {
  text-indent: 0;
  width: auto;
  padding: 0 12px;
}
.command-copy.copied::before,
.command-copy.copied::after { display: none; }
.setup-flow {
  max-width: 820px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
.setup-flow li {
  min-height: 94px;
  padding: 22px 28px 22px 100px;
  border-top: 1px solid var(--rule);
  color: #2c352f;
  font-size: 24px;
  line-height: 1.35;
  position: relative;
  display: flex;
  align-items: center;
}
.setup-flow li:first-child { border-top: 0; }
.setup-flow li::before {
  content: counter(flow);
  counter-increment: flow;
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef1ee;
  color: var(--pine);
  font-family: var(--mono);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.setup-flow { counter-reset: flow; }
.cos-setup-quick .setup-flow {
  max-width: none;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cos-setup-quick .setup-flow li {
  min-height: 166px;
  padding: 72px 24px 24px;
  border-top: 0;
  border-left: 1px solid var(--rule);
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.45;
}
.cos-setup-quick .setup-flow li:first-child { border-left: 0; }
.cos-setup-quick .setup-flow li::before {
  left: 24px;
  top: 24px;
  transform: none;
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.cos-setup-quick p.trust {
  max-width: none;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--pine);
  color: #39443e;
  font-size: 16px;
}
.output-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 82px 0 34px;
  border-top: 0;
  text-align: center;
}
.workflow-loop-section {
  padding: 76px 0 84px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
}
.workflow-loop-copy { max-width: 390px; }
.workflow-loop-copy .kicker { margin-bottom: 14px; }
.workflow-loop-copy h2 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
}
.workflow-loop-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.workflow-loop-media {
  min-width: 0;
  margin: 0;
}
.workflow-loop-media video {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.output-intro .kicker { margin-bottom: 14px; }
.output-intro h2 {
  margin: 0 auto 16px;
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.14;
}
.output-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.folder-chip {
  display: inline-block;
  background: #ecece7;
  border: 1px solid #e1e2dd;
  border-radius: 12px;
  padding: 2px 18px 8px;
  white-space: nowrap;
}
.desktop-screen {
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.screen-head {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}
.screen-root-label,
.screen-head > .screen-title {
  padding: 22px 26px;
}
.screen-root {
  padding: 0 16px 14px;
}
.screen-root-label {
  display: block;
  margin: 0 -16px 2px;
}
.screen-root .root-file-item {
  font-weight: 400;
}
.screen-head .screen-title {
  border-left: 1px solid var(--rule);
}
.screen-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 360px;
}
.file-list {
  border-right: 1px solid var(--rule);
  padding: 22px 16px;
}
.file-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #626b64;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  padding: 14px 16px;
  text-align: left;
}
.file-cue::before {
  content: "+";
  color: var(--pine);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: transform .18s ease;
}
.file-cue { flex: none; }
.file-item.active .file-cue::before { content: "−"; }
.file-item span { overflow-wrap: anywhere; }
.file-label {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.file-name {
  color: inherit;
  font-weight: 500;
}
.file-outcome {
  color: #7b837d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.file-item.active .file-outcome { color: #536158; }
.file-item em {
  color: #b2b6b1;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.file-item:hover {
  background: #f2f2ee;
  color: var(--ink);
}
.file-item.active {
  background: #eeeeea;
  color: var(--ink);
}
.file-item.active em { color: var(--pine); }
.file-item.muted { margin-top: 10px; }
.file-item:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.mobile-pane-slot { display: none; }
.file-view {
  min-width: 0;
}
.file-empty {
  min-height: 360px;
  margin: 0;
  padding: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.file-view:has(.file-pane.active) .file-empty { display: none; }
.file-pane {
  display: none;
  animation: rise .22s ease both;
}
.file-pane.active { display: block; }
.pane-intro {
  margin: 0;
  padding: 26px 30px;
  border-bottom: 1px solid var(--rule);
  color: #4f5751;
  font-size: 18px;
  line-height: 1.55;
}
.pane-intro code {
  background: #f2f2ee;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .86em;
  padding: 2px 6px;
}
.file-pane pre {
  margin: 0;
  padding: 30px;
  min-height: 450px;
  overflow: auto;
  color: #2c352f;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.file-pane code { font-family: inherit; }
.setup-buy-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cos-final-cta {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 0 20px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.cos-final-cta h2 {
  margin: 0 auto 16px;
  font-family: var(--sans);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
}
.cos-final-cta > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.cos-final-cta .hero-actions {
  justify-content: center;
  margin-top: 30px;
}
.directory-hero h1, .directory-hero .lead, .command-wrap, .cos-setup-quick, .output-intro, .setup-flow, .desktop-screen, .workflow-loop-section, .cos-final-cta {
  animation: rise .55s ease both;
}
.directory-hero .lead { animation-delay: .08s; }
.command-wrap { animation-delay: .12s; }
.output-intro { animation-delay: .16s; }
.setup-flow { animation-delay: .15s; }
.desktop-screen { animation-delay: .18s; }
.workflow-loop-section { animation-delay: .21s; }
.cos-final-cta { animation-delay: .24s; }

/* ---- welcome (post-purchase) ---- */
.welcome { max-width: var(--maxw); margin: 0 auto; padding: 64px var(--gutter) 96px; }
.welcome h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 18px; }
.welcome .lead { margin-bottom: 34px; }
.keybar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--pine); border-radius: 3px; padding: 14px 16px; margin: 0 0 40px; }
.keybar .klabel { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.keybar code { font-family: var(--mono); font-size: 18px; color: var(--pine); letter-spacing: 0.04em; }
.steps { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: step; }
.steps > li { padding: 20px 0 20px 46px; border-top: 1px solid var(--rule); position: relative; }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: var(--paper); font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.step-t { display: block; margin-bottom: 12px; color: #2c352f; }
.step-note { margin: -2px 0 0; color: var(--muted); font-size: 15px; }
.install-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.install-card { min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 16px; }
.install-card.primary-install { border-color: var(--pine); }
.install-card h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine); margin: 0 0 8px; }
.install-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.install-card .install-note { margin: 12px 0 0; color: #2c352f; font-size: 14px; }
.install-card .chip + .chip { margin-top: 10px; }
.screenshot-placeholder { margin: 0 0 12px; }
.shot-box {
  aspect-ratio: 16 / 9;
  border: 1px dashed #b8beb8;
  border-radius: 3px;
  background: #f6f6f2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}
.screenshot-placeholder figcaption { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.chip { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f2f2ec; border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; }
.chip code { min-width: 0; max-width: 100%; font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.prompt-chip { align-items: stretch; flex-direction: column; }
.prompt-chip code { font-family: var(--sans); white-space: normal; overflow-x: visible; line-height: 1.5; }
.prompt-chip .copy { width: 100%; }
.copy { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--pine); color: var(--paper); border: 0; border-radius: 2px; padding: 7px 12px; cursor: pointer; }
.copy:hover { background: var(--pine-deep); }
.copy.copied { background: var(--muted); }
.platform { margin: 0 0 32px; }
.platform > summary { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine); cursor: pointer; }
.platform[open] > summary { margin-bottom: 16px; }
.platform .note { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.trust { background: #eef1ee; border-left: 3px solid var(--pine); border-radius: 0 3px 3px 0; padding: 14px 16px; font-size: 15px; color: #2c352f; margin: 0 0 28px; }
.welcome .more { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.welcome .more a { color: var(--pine); }

.agent-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--rule);
  background: #f2f2ec;
  max-width: 760px;
}
.agent-prompt code {
  display: block;
  padding: 16px 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}
.agent-prompt .copy {
  min-width: 82px;
  border: 0;
  border-left: 1px solid var(--rule);
}
.prominent-prompt { margin: 0 0 36px; }
.welcome-screenshots {
  max-width: 900px;
  margin: 0 0 38px;
}
.setup-screenshot { margin: 0; }
.setup-screenshot + .screenshot-placeholder { margin-top: 24px; }
.setup-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f6f6f2;
}
.setup-screenshot figcaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .agent-prompt { grid-template-columns: 1fr; }
  .agent-prompt .copy {
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* ---- setup guide ---- */
.guide { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 80px; }
.guide-hero { padding: 64px 0 46px; border-top: 0; }
.guide-hero h1 {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.06;
  margin: 0 0 20px;
}
.platform-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-width: 420px;
  padding: 4px;
  margin: -18px 0 30px;
  background: #e7e9e4;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.platform-tab {
  min-height: 46px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--pine);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}
.platform-tab:hover { background: rgba(255, 255, 255, .55); }
.platform-tab[aria-selected="true"] {
  background: var(--pine);
  color: var(--paper);
}
.platform-tab:focus-visible {
  outline: 3px solid #b97736;
  outline-offset: 3px;
}
.platform-panel[hidden] { display: none; }
.guide-panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 24px;
  margin: 0 0 26px;
}
.guide-panel h2,
.guide-step h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.guide-panel p,
.guide-step p {
  color: #2c352f;
  margin: 0 0 14px;
}
.guide-panel p:last-child,
.guide-step p:last-child { margin-bottom: 0; }
.guide code {
  background: #f2f2ec;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .88em;
  padding: 1px 5px;
}
.guide .chip code {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule);
  color: #2c352f;
  position: relative;
}
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}
.check-list.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.check-list.compact li {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 10px 12px;
}
.check-list.compact li::before { display: none; }
.guide-steps {
  display: grid;
  gap: 18px;
  border-top: 0;
  padding: 0;
  margin: 0 0 26px;
}
.guide-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.guide-step:first-child { border-top: 0; padding-top: 0; }
.guide-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
}
.guide-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.guide-option {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 16px;
}
.guide-option h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 8px;
}
.guide-option p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.pill-list li {
  background: #eef1ee;
  border: 1px solid #e1e2dd;
  border-radius: 999px;
  color: var(--pine);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  text-transform: uppercase;
}
.guide-panel .trust { margin: 20px 0 0; }
.guide-cta .hero-actions { margin-top: 20px; }
.platform-heading { border-left: 3px solid var(--pine); }
.platform-heading .kicker { display: block; margin-bottom: 10px; }
.windows-command code {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 620px) {
  .paths { grid-template-columns: 1fr; }
  .keybar { align-items: flex-start; flex-direction: column; }
  .keybar code { font-size: 16px; word-break: break-word; }
  .install-options { grid-template-columns: 1fr; }
  .chip code { font-size: 12.5px; }
  .chip { align-items: stretch; flex-direction: column; }
  .chip .copy { width: 100%; }
  .directory-hero { padding: 42px 0 48px; text-align: left; }
  .directory-hero h1 { font-size: 38px; line-height: 1.1; }
  .directory-hero .lead { margin-left: 0; font-size: 17px; }
  .directory-hero .hero-actions { justify-content: flex-start; }
  .cos-setup-quick { padding: 48px 0 54px; }
  .cos-setup-quick h2 { font-size: 30px; }
  .cos-setup-quick > p { font-size: 16px; }
  .cos-setup-quick .setup-flow { grid-template-columns: 1fr; }
  .cos-setup-quick .setup-flow li {
    min-height: 0;
    padding: 18px 18px 18px 62px;
    border-left: 0;
    border-top: 1px solid var(--rule);
    font-size: 17px;
  }
  .cos-setup-quick .setup-flow li:first-child { border-top: 0; }
  .cos-setup-quick .setup-flow li::before {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .cos-setup-quick p.trust { font-size: 15px; }
  .command-pill { grid-template-columns: auto 1fr; border-radius: 18px; }
  .command-copy { grid-column: 1 / -1; width: 100%; text-indent: 0; }
  .command-copy::before,
  .command-copy::after { display: none; }
  .output-intro {
    padding-bottom: 26px;
    text-align: left;
  }
  .workflow-loop-section {
    padding: 54px 0 60px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .workflow-loop-copy { max-width: none; }
  .workflow-loop-copy h2 { font-size: 32px; }
  .workflow-loop-copy p { font-size: 16px; }
  .output-intro h2 { font-size: 28px; }
  .output-intro p { font-size: 16px; }
  .setup-flow { margin-top: 24px; }
  .setup-flow li {
    min-height: 0;
    padding: 18px 18px 18px 62px;
    font-size: 17px;
  }
  .setup-flow li::before {
    left: 18px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .folder-chip { padding: 2px 10px 5px; border-radius: 8px; }
  .screen-head { grid-template-columns: 1fr; }
  .screen-head .screen-title { border-left: 0; border-top: 1px solid var(--rule); }
  .screen-grid { grid-template-columns: 1fr; min-height: 0; }
  .file-list { border-right: 0; border-bottom: 1px solid var(--rule); }
  .file-item { font-size: 16px; }
  .mobile-pane-slot {
    display: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: #fff;
    margin: 0 0 8px;
  }
  .mobile-pane-slot:has(.file-pane.active) {
    display: block;
  }
  .file-view { display: none; }
  .pane-intro { padding: 22px 20px; font-size: 16px; }
  .file-pane pre {
    min-height: 0;
    padding: 22px 20px;
    font-size: 13px;
  }
  .cos-final-cta {
    padding-top: 58px;
    text-align: left;
  }
  .cos-final-cta h2 { font-size: 30px; }
  .cos-final-cta > p { font-size: 16px; }
  .cos-final-cta .hero-actions { justify-content: flex-start; }
  .guide-hero { padding-top: 42px; }
  .guide-hero h1 { font-size: 34px; }
  .guide-panel { padding: 18px; }
  .guide-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-options { grid-template-columns: 1fr; }
  .check-list.compact { grid-template-columns: 1fr; }
}
