/* webmcphelp.com — direction 5: tool manifest
   Light ground, indigo accent, soft cards, Inter throughout, JetBrains Mono for
   anything an agent or a developer reads literally. */

:root {
  --bg:     #fcfcfd;
  --card:   #ffffff;
  --sunk:   #f4f5f8;
  --ink:    #0b0d12;
  --ink-2:  #2b3140;
  --mut:    #5a6273;   /* 6.4:1 on --bg */
  --line:   #e3e6ec;
  --line-2: #cdd2dc;

  --acc:    #3d2fd6;
  --acc-s:  #eeecff;
  --acc-hi: #d7d2ff;
  --ok:     #0a7d4f;
  --ok-s:   #e7f6ee;
  --no:     #c02b1d;
  --amb:    #8a4a00;
  --amb-s:  #fdf0e6;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --r: 12px;
  --r-s: 8px;
  --shadow: 0 1px 2px rgba(11,13,18,.04), 0 12px 32px -12px rgba(11,13,18,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 16.5px/1.62 var(--sans); -webkit-font-smoothing: antialiased;
}
.w { max-width: 76rem; margin: 0 auto; padding-inline: var(--gutter); }

/* ── Width system ─────────────────────────────────────────────────────────
   Three rules, and they hold everywhere on the site.

   1. The container (.w) sets the outer bound. Nothing else needs to.
   2. Running text gets a reading measure, because long lines are hard to read.
      The measure lives on the elements that carry body-sized prose, never on a
      container that also holds a heading: `ch` resolves against the INHERITED font
      size, so a cap meant for prose strangles any heading inside it. That single
      mistake produced four rounds of "why is it hugging the left".
   3. Headings never carry a character cap. They are bounded by the container and
      balanced by the browser, so they break only when they genuinely must.
   ─────────────────────────────────────────────────────────────────────── */

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }          /* no single-word last lines */

/* Prose carries the measure. Structure (cards, tables, grids, code) does not. */
.lede, .prose, .three p, .step p, .faq .a, footer .meta, .hero .sub { max-width: var(--measure); }
.tscroll, .steps, .faq, .tiers, .toolcard, .codecard, .receipt, .pull, .results { max-width: none; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.03em; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; }
h1 u { text-decoration: none; background: linear-gradient(transparent 62%, var(--acc-hi) 0); padding: 0 2px; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 1.95rem); line-height: 1.18; letter-spacing: -.025em; }
h3 { font-weight: 600; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 1.05em; }
a { color: var(--acc); text-underline-offset: 3px; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--ink); font-weight: 500; }
code { font-family: var(--mono); font-size: .87em; background: var(--sunk);
       border: 1px solid var(--line); border-radius: 5px; padding: .06em .3em; color: var(--ink); }
/* inside a block, code is the block: no second frame around it */
pre code { background: none; border: 0; border-radius: 0; padding: 0; font-size: 13px; line-height: 1.7; }
/* a wrapped highlight must carry its own padding on every line fragment */
h1 u { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* let the line break where it wants, but never inside the highlighted phrase
   once there is room for it to sit on a line of its own */
@media (min-width: 48rem) { h1 u { white-space: nowrap; } }
.kicker { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
          color: var(--acc); margin: 0 0 1rem; }
.mono-note { font: 400 12.5px/1.7 var(--mono); color: var(--mut); }
.mono-note b { color: var(--ok); font-weight: 500; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.masthead .w { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { font: 700 15px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.dateline { display: none; }
.tool-pill { margin-left: auto; font: 500 11.5px var(--mono); background: var(--sunk);
             color: var(--mut); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.tool-pill[data-state="on"] { background: var(--acc-s); color: var(--acc); }
/* the status dot is decoration: drawn, not spoken */
.tool-pill[data-state="on"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: .5em; vertical-align: .1em;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-block; font: 600 14px var(--sans); text-decoration: none;
       padding: 13px 20px; border-radius: var(--r-s); border: 1px solid transparent;
       transition: background-color 140ms ease, border-color 140ms ease; }
.btn-1 { background: var(--acc); color: #fff; }
.btn-1:hover { background: #3225b4; }
.btn-2 { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-2:hover { border-color: var(--acc); color: var(--acc); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding-block: clamp(2.75rem, 6vw, 4.5rem); scroll-margin-top: 76px; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(2.5rem, 5vw, 4rem); }
/* Two-column section body. The reading measure lives on the text column, not on the
   whole section, so the section actually fills its width. */
.split { display: grid; gap: 1.75rem 3rem; align-items: start; }
/* grid items default to min-width:auto and refuse to shrink below their content,
   so a wide <pre> or <table> pushes the whole column past the viewport */
.split > * { min-width: 0; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; } }
.split > div > p:last-child, .split > p:last-child { margin-bottom: 0; }

.section-head { margin-bottom: 1.5rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero .sub { font-size: 17.5px; color: var(--mut); margin-bottom: 1.5rem; }
.hero .meta { margin-top: 1.4rem; display: flex; gap: 1.35rem; flex-wrap: wrap; }

/* ── Tool card ────────────────────────────────────────────────────────── */
.toolcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
            overflow: hidden; box-shadow: var(--shadow); }
.toolcard-h { display: flex; align-items: center; gap: .55rem; padding: 13px 16px;
              border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--mut); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.tool { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tool .nm { font: 700 13px var(--mono); color: var(--acc); margin-bottom: 5px; }
.tool .ds { font-size: 13.5px; line-height: 1.5; color: var(--mut); margin-bottom: 8px; }
.args { display: flex; gap: 6px; flex-wrap: wrap; }
.arg { font: 500 11px var(--mono); background: var(--sunk); border: 1px solid var(--line);
       border-radius: 5px; padding: 3px 7px; color: var(--ink-2); }
.toolcard-f { padding: 11px 16px; background: #fafbfc; font: 400 11.5px/1.5 var(--mono); color: var(--mut); }

/* ── Honesty ──────────────────────────────────────────────────────────── */
.three { display: grid; gap: 1.25rem; }
@media (min-width: 54rem) { .three { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.three > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
               padding: 1.15rem 1.25rem 1.3rem; }
.three h3 { margin-bottom: .5rem; }
.three p { font-size: 14.5px; line-height: 1.55; color: var(--mut); margin: 0; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font: 500 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase;
     color: var(--mut); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--mono); font-size: 13px; color: var(--ink); }
td .was { color: var(--mut); text-decoration: line-through; }
td .is { color: var(--acc); font-weight: 500; }

/* ── Pull quote ───────────────────────────────────────────────────────── */
.pull { background: var(--acc-s); border-radius: var(--r); padding: 1.15rem 1.35rem;
        font-size: 1.08rem; line-height: 1.45; color: var(--ink); font-weight: 500;
        margin: 1.6rem 0; }
.pull code { background: #fff; border-color: var(--acc-hi); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.step { display: grid; gap: .9rem 1.5rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
@media (min-width: 50rem) { .step { grid-template-columns: 8.5rem 1fr; } }
.step-tag { font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase;
            padding: 5px 10px; border-radius: 6px; align-self: start; justify-self: start; white-space: nowrap; }
.t-free { background: var(--ok-s); color: var(--ok); }
.t-req  { background: var(--amb-s); color: var(--amb); }
.t-nxt  { background: var(--sunk); color: var(--mut); }
.t-start { background: var(--acc-s); color: var(--acc); }
.step h3 { margin-bottom: .45rem; }
.step .price { font: 700 14px var(--mono); color: var(--ink); }
.step p { font-size: 15px; color: var(--mut); margin-bottom: .75em; }
.step p strong { color: var(--ink); }
.step p:last-child { margin-bottom: 0; }
.note { background: var(--sunk); border-radius: var(--r-s); padding: .85rem 1rem; margin-top: .9rem; font-size: 14.5px; }
.note p { margin: 0; color: var(--ink-2); }
/* A failed sign-in must read as a problem, not as a hint. */
.note-bad { background: #fdeceb; border: 1px solid #f3c6c2; margin-bottom: 1.1rem; margin-top: 0; }
.note-bad p { color: var(--ink); }
.note-bad strong { color: var(--no); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; color: var(--ink);
               font: 600 15.5px var(--sans); display: flex; gap: .8rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--acc); font-family: var(--mono); font-size: 14px; flex: none; }
.faq details[open] summary::before { content: "−"; }
.faq .a { padding: 0 1.25rem 1.15rem 2.9rem; font-size: 15.2px; color: var(--mut); }
.faq .a p:last-child { margin-bottom: 0; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.total { background: var(--acc-s); border-radius: var(--r); padding: .95rem 1.15rem;
         margin-top: 1.1rem; font: 500 14px var(--mono); color: var(--ink-2); }
.total b { color: var(--acc); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 2.25rem 3.25rem; background: var(--card); }
.verified { display: inline-block; background: var(--ok-s); border-radius: var(--r-s);
            padding: .75rem 1rem; margin-bottom: 1.25rem; font: 400 12.5px var(--mono); color: var(--ink-2); }
.verified b { color: var(--ok); font-weight: 500; }
footer .meta { font-size: 14.5px; color: var(--mut); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Code card (right column of the What section) ─────────────────────── */
.codecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
            overflow: hidden; box-shadow: var(--shadow); align-self: start; }
.codecard-h { padding: 12px 16px; border-bottom: 1px solid var(--line);
              font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.codecard pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; }
.codecard-f { padding: 11px 16px; background: #fafbfc; border-top: 1px solid var(--line);
              font-size: 13px; line-height: 1.5; color: var(--mut); }

/* ── Recorded agent log (right column of the Demo section) ────────────── */
.logline { display: flex; gap: .75rem; padding: 9px 16px; border-bottom: 1px solid var(--line);
           font: 400 12px var(--mono); color: var(--ink-2); }
.logline span:first-child { flex: 0 0 4.4rem; font-weight: 500; }
.s-w { color: var(--acc); }
.s-a { color: var(--amb); }
.logline b { font-weight: 500; }
.logline .ok { color: var(--ok); }
.logline .no { color: var(--no); }

/* ── Fact box (right column of the Who section) ───────────────────────── */
.factbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
           overflow: hidden; box-shadow: var(--shadow); }
.fact { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
        padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.fact:last-child { border-bottom: 0; }
.fact b { font: 500 13px var(--mono); color: var(--ink); }

/* ── Pull quote spans the full section now ────────────────────────────── */
.pull { margin: 2rem 0; }

/* ── Wide tables use the room they have ───────────────────────────────── */

/* ── Pricing tiers ────────────────────────────────────────────────────── */
.tiers { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 58rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; min-width: 0;
}
.tier-key { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-s), var(--shadow); }
.tier-quiet { background: transparent; box-shadow: none; }
.tier-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.tier-step {
  font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
}
.tier-badge { font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase;
              padding: 4px 9px; border-radius: 6px; }
.tier h3 { margin-bottom: .35rem; }
.tier-amount {
  font: 700 clamp(1.9rem, 3.4vw, 2.5rem)/1.05 var(--sans); letter-spacing: -.035em;
  color: var(--ink); margin: 0 0 1rem;
}
.tier-amount.quiet { font-size: 1.35rem; color: var(--mut); font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.tier-list { list-style: none; margin: 0 0 .25rem; padding: 0; display: grid; gap: .5rem; }
.tier-list li {
  position: relative; padding-left: 1.35rem; font-size: 14.5px; line-height: 1.5; color: var(--mut);
}
/* a tick, not an empty box: these are things you get, not things still to do */
.tier-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font: 700 12px var(--sans); color: var(--acc); line-height: 1.85;
}
.tier-foot {
  margin: auto 0 0; padding-top: .9rem; font-size: 13.5px; line-height: 1.5; color: var(--mut);
}
.tier-key .tier-foot { border-top: 1px solid var(--line); margin-top: .9rem; color: var(--ink-2); }
.tier-key .tier-foot strong { color: var(--acc); }

/* ── Receipt: the credit made visible ─────────────────────────────────── */
.receipt {
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--r);
  overflow: hidden; align-self: start; min-width: 0;
}
.receipt-h {
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc;
  font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
}
.rrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 12px 16px; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2);
}
.rrow b { font: 500 14px var(--mono); color: var(--ink); }
.rrow.credit { color: var(--ok); }
.rrow.credit b { color: var(--ok); }
.rrow.total {
  border-bottom: 0; border-top: 2px solid var(--ink); background: var(--acc-s);
  padding-block: 14px; font-weight: 600; color: var(--ink);
}
.rrow.total b { font-size: 17px; font-weight: 700; color: var(--acc); }
.receipt-f { padding: 11px 16px; background: #fafbfc; border-top: 1px solid var(--line);
             font-size: 13px; color: var(--mut); }

/* ── Readiness check page ─────────────────────────────────────────────── */
.checkform { margin: 0 0 1rem; }
.field-label { display: block; font: 500 12px var(--sans); letter-spacing: .06em;
               text-transform: uppercase; color: var(--mut); margin-bottom: .5rem; }
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 18rem; min-width: 0; font: 400 16px var(--mono);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--card); color: var(--ink);
}
.field-row input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-color: var(--acc); }
.field-row button { flex: 0 0 auto; }
.field-row button:disabled { opacity: .6; cursor: progress; }
.field-hint { font: 400 13px var(--sans); color: var(--mut); margin: .6rem 0 0; }

.verdict { border-radius: var(--r); padding: 1.15rem 1.3rem; margin: 1.75rem 0 1.25rem; }
.verdict h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.verdict p { margin: 0 0 .35rem; }
.verdict p:last-child { margin-bottom: 0; }
.verdict-ok   { background: var(--ok-s);  border: 1px solid #b6e2cc; }
.verdict-ok h2   { color: var(--ok); }
.verdict-warn { background: var(--amb-s); border: 1px solid #f0d5b8; }
.verdict-warn h2 { color: var(--amb); }
.verdict-bad  { background: #fdeceb;      border: 1px solid #f3c6c2; }
.verdict-bad h2  { color: var(--no); }

.results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line);
           border-radius: var(--r); overflow: hidden; background: var(--card); }
.result { display: grid; grid-template-columns: 5.5rem 1fr; gap: .35rem 1rem;
          padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result-tag { grid-row: 1 / span 2; align-self: start; font: 500 10.5px var(--mono);
              letter-spacing: .09em; text-transform: uppercase; padding: 4px 8px;
              border-radius: 6px; text-align: center; }
.result-pass    .result-tag { background: var(--ok-s);  color: var(--ok); }
.result-blocked .result-tag { background: #fdeceb;      color: var(--no); }
.result-unknown .result-tag { background: var(--amb-s); color: var(--amb); }
.result-label { font: 600 15px var(--sans); color: var(--ink); }
.result-detail { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mut); }
@media (max-width: 34rem) {
  .result { grid-template-columns: 1fr; }
  .result-tag { grid-row: auto; justify-self: start; }
}
/* the result region is a focus target, not a control: no ring when moved there by script */
#out:focus { outline: none; }
#out:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }

/* ── Closing call to action ───────────────────────────────────────────── */
#start .w { max-width: 52rem; }
#start .section-head { margin-inline: auto; text-align: center; }
#start .lede { margin-inline: auto; text-align: center; }
#start .actions { justify-content: center; }

/* ── Main navigation ──────────────────────────────────────────────────── */
.masthead .w { gap: .9rem 1.5rem; }
.brand { text-decoration: none; }
.mainnav { display: none; gap: 1.4rem; }
.mainnav a {
  font: 500 14.5px var(--sans); color: var(--mut); text-decoration: none;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--acc); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.nav-cta { margin-left: auto; }
.tool-pill { margin-left: auto; }
@media (min-width: 52rem) {
  .mainnav { display: flex; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 64rem) { .tool-pill { display: none; } }
@media (min-width: 64rem) { .tool-pill { margin-left: auto; } }

/* ── Sign-in state ────────────────────────────────────────────────────── */
.signed-in { display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 1rem; }
.signed-in b { color: var(--ink); font-weight: 500; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--acc); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { text-decoration-thickness: 2px; }
#sent { margin-top: 1rem; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal-h { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legal-h:first-of-type { margin-top: 1rem; }
.lede h2.legal-h + p { margin-bottom: 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1rem 0 1.25rem;
               border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.legal-table th { text-align: left; font: 500 10.5px var(--sans); letter-spacing: .12em;
                  text-transform: uppercase; color: var(--mut); padding: 11px 14px;
                  background: #fafbfc; border-bottom: 1px solid var(--line); }
.legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: 0; }
.lede .legal-table { max-width: none; }
