/* The Agentic Desk: one stylesheet for every funnel page on theagentichood.com.
   Agentic Hood only. sellatarsi.com and the shared legal pages do not load this file.
   No web fonts, no scripts, no gradients. Green means two things: the button and the word ACCEPT. */

:root {
  --bg: #05070a;
  --panel: #0b1210;
  --line: #16281f;
  --line-strong: #4a6b5a;   /* form fields and outlined buttons: 3:1 against the background */
  --text: #e9eef6;
  --quiet: #8d9aad;
  --go: #2bff9e;
  --go-ink: #04120b;
  --no: #ff6b5e;
  --paper: #d9dcd8;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* four sizes, and one fixed-width size for real output */
  --small: 14px;
  --body: 17px;
  --head: 22px;
  --display: 32px;
  --code: 13px;

  --gut: 20px;
  --r: 8px;
}
@media (min-width: 940px) {
  :root { --head: 26px; --display: 48px; --gut: 32px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--quiet); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 16px; }
strong, b { font-weight: 700; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
code, kbd {
  font: var(--code)/1.5 var(--mono);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.shell { max-width: 1120px; margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 8px; background: var(--bg); padding: 8px 12px; z-index: 20; }

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.top nav { display: flex; gap: 2px; margin-right: -10px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: var(--small); color: var(--quiet); text-decoration: none; white-space: nowrap;
}
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--display); line-height: 1.08; font-weight: 700; }
h2 { font-size: var(--head); line-height: 1.2; font-weight: 700; }
h3 { font-size: var(--body); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.eyebrow { font: var(--code)/1.4 var(--mono); color: var(--quiet); margin: 0 0 14px; }
.lede { max-width: 60ch; }
.quiet { color: var(--quiet); }
.small { font-size: var(--small); line-height: 1.55; }
.note { font-size: var(--small); line-height: 1.55; color: var(--quiet); margin: 0; }

/* ---------- buttons ---------- */

.btn, .btn-line {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 12px 22px; border-radius: var(--r);
  font: 700 var(--body)/1.25 var(--sans); text-decoration: none; cursor: pointer;
}
.btn { background: var(--go); color: var(--go-ink); border: 1px solid var(--go); }
.btn:hover { background: #5cffb4; border-color: #5cffb4; }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line-strong); font-weight: 600; }
.btn-line:hover { border-color: var(--text); }
.btn small, .btn-line small { display: block; font-weight: 400; font-size: var(--small); }
.actions { display: grid; gap: 10px; margin: 26px 0 14px; }
@media (min-width: 620px) {
  .actions { grid-template-columns: max-content; justify-content: start; }
  .actions .btn, .actions .btn-line { padding-inline: 28px; }
  .actions.row { grid-auto-flow: column; grid-template-columns: none; }
}

/* ---------- hero ---------- */

.hero { padding-block: 36px 44px; display: grid; gap: 32px; }
.hero > * { min-width: 0; }   /* a wide terminal block scrolls inside itself, never the page */
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 0; }
@media (min-width: 940px) {
  .hero { padding-block: 72px 80px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
  .hero.top-align { align-items: start; }
}

/* the required line, on every page an ad can reach */
.risk { font-size: var(--small); line-height: 1.55; color: var(--quiet); margin: 18px 0 0; }
.risk b { color: var(--text); font-weight: 600; }

/* ---------- real output ---------- */

.term {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; min-width: 0;
}
.term figcaption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font: var(--code)/1.5 var(--mono); color: var(--quiet);
}
.term figcaption span:first-child { color: var(--text); }
.term pre {
  margin: 0; padding: 14px; font: var(--code)/1.65 var(--mono); color: var(--text);
  white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; tab-size: 2;
}
/* prose inside a file (a rulebook section, a card) wraps; machine output keeps its columns and scrolls sideways */
.term pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.term pre + figcaption { border-top: 1px solid var(--line); border-bottom: 0; }
.tree { margin: 0; padding: 6px 14px; font: var(--code)/1.6 var(--mono); }
.tree > div { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .tree > div { grid-template-columns: 176px minmax(0, 1fr); gap: 12px; } }
.tree > div:last-child { border-bottom: 0; }
.tree dt { color: var(--text); overflow-wrap: anywhere; }
.tree dd { margin: 0; color: var(--quiet); white-space: pre-wrap; }
.ok { color: var(--go); font-weight: 700; }
.no { color: var(--no); font-weight: 700; }
.term + .term { margin-top: 12px; }
.caption { font-size: var(--small); line-height: 1.55; color: var(--quiet); margin: 10px 0 0; }

/* ---------- sections ---------- */

.sec { border-top: 1px solid var(--line); padding-block: 48px; }
.sec > .shell { display: grid; gap: 22px; }
.sec-head p { margin: 10px 0 0; color: var(--quiet); }
.sec-body { min-width: 0; max-width: 720px; }
.sec-body > :last-child { margin-bottom: 0; }
@media (min-width: 940px) {
  .sec { padding-block: 80px; }
  .sec > .shell { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
}

/* numbered steps, each with its own real output */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 36px; }
.steps > li { margin: 0; counter-increment: step; min-width: 0; }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  font: var(--code)/1 var(--mono); color: var(--quiet); margin-right: 12px; letter-spacing: 0;
}
.steps p { margin: 8px 0 14px; }

/* plain rows: label on the left, value on the right */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-size: var(--small); color: var(--quiet); }
.rows dd { margin: 0; }
@media (min-width: 620px) {
  .rows > div { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .rows dt { padding-top: 3px; }
}

/* two plain columns */
.two { display: grid; gap: 36px; }
.two > * { min-width: 0; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; gap: 40px; } }
.plain { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.plain li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* chapters: titles first, one tap opens the description */
.chapters { border-top: 1px solid var(--line); }
.chapters details { border-bottom: 1px solid var(--line); }
/* the grid sits on an inner span: older Safari ignores grid and flex on <summary> itself */
.chapters summary { display: block; cursor: pointer; list-style: none; font-weight: 600; }
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary .r {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 8px;
  min-height: 54px; padding: 8px 0;
}
.chapters summary .n { font: var(--code)/1 var(--mono); color: var(--quiet); font-weight: 400; }
.chapters summary .r::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--quiet); text-align: right; }
.chapters details[open] summary .r::after { content: "\2212"; }
.chapters details p { margin: 0; padding: 0 28px 18px 42px; color: var(--quiet); }

/* buy box */
.buy { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 22px; margin-top: 28px; }
.buy .price { font-size: var(--display); line-height: 1; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; }
.buy .price span { font-size: var(--small); font-weight: 400; color: var(--quiet); letter-spacing: 0; margin-left: 8px; }
.buy p { margin: 0 0 16px; }
.buy .note { margin-top: 12px; }
.buy .btn { width: 100%; }

/* a note that must be read */
.readfirst { border-left: 2px solid var(--line-strong); padding: 2px 0 2px 16px; margin: 0; max-width: 68ch; }

/* pages of the PDF, a photo */
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 0; }
.sheets a { display: block; }
.sheets img { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; filter: brightness(0.86); }
.sheets figcaption, .photo figcaption { grid-column: 1 / -1; font-size: var(--small); line-height: 1.55; color: var(--quiet); margin-top: 2px; }
.photo { margin: 0; }
.photo img { width: 100%; border: 1px solid var(--line); border-radius: var(--r); }
.photo figcaption { margin-top: 10px; }

/* ---------- forms (reviews) ---------- */

.form label { display: block; margin: 18px 0 6px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form textarea, .form select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .choice { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.form .choice label { margin: 0; font-weight: 400; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.form input[type=radio], .form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--go); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form button.btn { width: 100%; margin-top: 22px; }

/* ---------- the rulebook, readable on a phone ---------- */

.rb {
  margin: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  font: var(--code)/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text);
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--quiet); font-size: var(--small); line-height: 1.6; }
.foot p { margin: 0 0 12px; max-width: 76ch; }
.foot a { color: var(--quiet); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 4px 0 10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- sticky buy bar (phones, sales page) ---------- */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
}
.sticky.show { transform: none; visibility: visible; }
.sticky .btn { min-height: 50px; }
@media (min-width: 769px) { .sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
.has-sticky { padding-bottom: 84px; }
@media (min-width: 769px) { .has-sticky { padding-bottom: 0; } }
