/* agentlens site — "LEGO brick" aesthetic. Chunky plastic bricks, studs, glossy 3D buttons. */

:root {
  /* baseplate + plastic */
  --plate:    #2a73c4;          /* the baseplate you build on */
  --plate-2:  #245fa3;
  --ink:      #1b2230;          /* dark text on bright bricks */
  --ink-soft: #55617a;
  --white:    #ffffff;
  --cream:    #f4f1e6;

  /* LEGO primaries (face + darker side/bevel) */
  --red:      #d8262c;  --red-d:    #9f1418;
  --yellow:   #f6c700;  --yellow-d: #c79900;
  --blue:     #1577d6;  --blue-d:   #0c4f94;
  --green:    #36a93b;  --green-d:  #237a27;
  --orange:   #fb7a12;  --orange-d: #c4570a;

  /* dark "black brick" used for code + terminals */
  --brick-dark:   #1c2230;
  --brick-dark-2: #141925;
  --code-line:    #2b3346;
  --code-text:    #d8def0;
  --code-muted:   #8b95ad;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --round: "Fredoka", "Baloo 2", system-ui, "Segoe UI", sans-serif;
  --body:  "Nunito", system-ui, "Segoe UI", sans-serif;

  --radius: 12px;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  background-color: var(--plate);
  /* studded baseplate: a grid of soft knobs */
  background-image:
    radial-gradient(circle at 14px 13px, rgba(255,255,255,.16) 0 9px, rgba(0,0,0,.08) 10px 11px, transparent 12px),
    radial-gradient(circle at 14px 13px, rgba(0,0,0,.05) 0 12px, transparent 13px);
  background-size: 46px 46px, 46px 46px;
  background-position: 0 0, 0 0;
}

a { color: var(--blue-d); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.muted { color: var(--ink-soft); }
.cmt { color: var(--code-muted); }

/* token colors inside hand-written hero code (dark brick) */
.t-c { color: #7f8aa3; font-style: italic; }
.t-s { color: #ffd76a; }
.t-k { color: #ff8a9b; }
.t-f { color: #c6a0ff; }
.t-b { color: #79c0ff; }
.t-n { color: #79c0ff; }
.t-g { color: #8be88f; }

/* ============ reusable brick stud-row ============ */
/* A row of knobs sitting on the top edge of a brick. Color follows --stud. */
.studs { position: relative; }
.studs::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: -10px; height: 14px;
  background:
    radial-gradient(circle at 15px 7px,
      var(--stud-hi, rgba(255,255,255,.6)) 0 2.5px,
      var(--stud, var(--white)) 2.5px 6px,
      var(--stud-d, rgba(0,0,0,.18)) 6px 7.5px,
      transparent 8px) 0 0 / 30px 14px repeat-x;
  pointer-events: none;
  z-index: 2;
}

.matrix { position: absolute; inset: 0 auto auto 0; z-index: 0; width: 100%; height: 640px;
          opacity: .55; pointer-events: none;
          -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 50%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 50%, transparent 92%); }
.nav, .hero, section, footer, body > .wrap { position: relative; z-index: 1; }

/* ============ nav: a long brick bar ============ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--yellow);
       border-bottom: 5px solid var(--yellow-d); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink);
         font-family: var(--round); font-weight: 700; font-size: 22px; letter-spacing: .3px; }
.brand .prmpt { color: var(--red); }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-family: var(--round); font-weight: 600; font-size: 15px;
               padding: 6px 12px; border-radius: 9px; }
.nav-links a:hover { background: rgba(0,0,0,.12); text-decoration: none; }
.nav-star { display: inline-flex; align-items: center; gap: 7px; color: var(--white) !important;
            background: var(--red); border: 0; border-bottom: 4px solid var(--red-d);
            padding: 7px 13px; border-radius: 10px; font-family: var(--round); font-weight: 600; font-size: 14px; }
.nav-star:hover { text-decoration: none; transform: translateY(1px); border-bottom-width: 3px; }
.nav-star:active { transform: translateY(4px); border-bottom-width: 1px; }
.nav-star svg { width: 15px; height: 15px; fill: currentColor; }
.nav-star .count { color: rgba(255,255,255,.85); }
.nav-toggle { display: none; }

/* ============ chunky 3D plastic buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--round); font-size: 16px; font-weight: 600;
  padding: 12px 22px; border: 0; border-radius: 12px; cursor: pointer;
  color: var(--white); background: var(--blue);
  box-shadow: 0 6px 0 var(--blue-d), 0 9px 14px rgba(0,0,0,.28);
  transition: transform .06s ease, box-shadow .06s ease;
  position: relative; text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.btn::after { /* glossy top sheen */
  content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 34%;
  background: linear-gradient(rgba(255,255,255,.45), transparent); border-radius: 9px; pointer-events: none;
}
.btn:hover { text-decoration: none; transform: translateY(2px); box-shadow: 0 4px 0 var(--blue-d), 0 6px 10px rgba(0,0,0,.26); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--blue-d), 0 2px 5px rgba(0,0,0,.25); }
.btn-primary { background: var(--green); box-shadow: 0 6px 0 var(--green-d), 0 9px 14px rgba(0,0,0,.28); }
.btn-primary:hover { box-shadow: 0 4px 0 var(--green-d), 0 6px 10px rgba(0,0,0,.26); }
.btn-primary:active { box-shadow: 0 0 0 var(--green-d), 0 2px 5px rgba(0,0,0,.25); }
.btn-ghost { background: var(--white); color: var(--blue-d); box-shadow: 0 6px 0 #b9c4d6, 0 9px 14px rgba(0,0,0,.2); }
.btn-ghost::after { background: linear-gradient(rgba(255,255,255,.7), transparent); }
.btn-ghost:hover { box-shadow: 0 4px 0 #b9c4d6, 0 6px 10px rgba(0,0,0,.18); }
.btn-ghost:active { box-shadow: 0 0 0 #b9c4d6, 0 2px 5px rgba(0,0,0,.2); }

/* ============ dark "black brick" windows (code/terminal) ============ */
.editor, .term, .window {
  background: var(--brick-dark); border: 0; border-radius: var(--radius);
  border-bottom: 6px solid #0e1320; overflow: hidden;
  box-shadow: 0 16px 0 -4px rgba(0,0,0,.18), 0 26px 50px -22px rgba(0,0,0,.6);
}
.editor, .term, .window { --stud: #39435c; --stud-hi: rgba(255,255,255,.28); --stud-d: rgba(0,0,0,.45); }
.editor { margin-top: 40px; }

.editor-bar, .term-bar, .window-bar {
  display: flex; align-items: center; gap: 0; background: var(--brick-dark-2);
  border-bottom: 1px solid var(--code-line); min-height: 42px;
}
.etab { font-family: var(--mono); font-size: 12.5px; color: var(--code-muted); padding: 0 16px;
        height: 42px; line-height: 42px; border-right: 1px solid var(--code-line); }
.etab.active { color: var(--white); background: var(--brick-dark); box-shadow: inset 0 3px 0 var(--yellow); }
.term-bar { padding: 11px 14px; }
.term-bar .ttl, .window-bar .fname { font-family: var(--mono); font-size: 12px; color: var(--code-muted); }

.code { counter-reset: ln; padding: 16px 0; overflow-x: auto; font-family: var(--mono); }
.code .ln { display: block; padding: 0 20px 0 64px; position: relative; white-space: pre;
            font-size: 13.5px; line-height: 1.85; color: var(--code-text); }
.code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0;
                    width: 44px; text-align: right; color: var(--code-muted); opacity: .6; }
.code .ln.blank { min-height: 1.85em; }

.term-body { padding: 14px 16px; font-family: var(--mono); font-size: 13.5px; color: var(--code-text); }
.term-body .pr { color: #8be88f; } .term-body .out { color: var(--code-muted); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: #8be88f;
          vertical-align: text-bottom; margin-left: 3px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.window pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.window pre code { font-family: var(--mono); font-size: 13px; background: none; color: var(--code-text); }

/* copy button — tiny brick */
.copy-btn { background: var(--yellow); border: 0; border-bottom: 3px solid var(--yellow-d); color: var(--ink);
            border-radius: 7px; padding: 5px 10px; font: 700 12px/1 var(--round); cursor: pointer; }
.copy-btn:hover { transform: translateY(1px); border-bottom-width: 2px; }
.copy-btn:active { transform: translateY(3px); border-bottom-width: 0; }
.copy-btn.copied { background: var(--green); color: #fff; border-bottom-color: var(--green-d); }

/* install line — a brick */
.install { display: inline-flex; align-items: center; gap: 12px; background: var(--brick-dark);
           border: 0; border-bottom: 5px solid #0e1320; border-radius: 11px; padding: 11px 12px 11px 16px;
           font-family: var(--mono); font-size: 13.5px; max-width: 100%; overflow-x: auto;
           box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.install .prompt { color: #8be88f; } .install code { white-space: nowrap; color: var(--code-text); }

/* ============ hero ============ */
.hero { padding: 64px 0 40px; }
.hero-copy { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
           background: var(--red); color: #fff; font-family: var(--round); font-weight: 600; font-size: 14px;
           padding: 7px 14px; border-radius: 999px; border-bottom: 3px solid var(--red-d); }
.eyebrow .prompt { color: var(--yellow); }
.hero h1 { margin: 0; font-family: var(--round); font-size: 76px; line-height: .98; font-weight: 700;
           color: var(--white); letter-spacing: .5px;
           text-shadow: 0 3px 0 var(--blue-d), 0 6px 0 rgba(0,0,0,.25), 0 10px 22px rgba(0,0,0,.35); }
.hero-lede { max-width: 720px; margin: 18px 0 0; color: #eaf2fb; font-size: 18px; line-height: 1.7;
             font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-meta span { font-family: var(--round); font-weight: 600; color: var(--ink); background: var(--white);
                  border-radius: 10px; padding: 7px 13px; font-size: 13.5px; border-bottom: 3px solid #c3cddc; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 28px; }

/* ============ section dividers ============ */
section { padding: 48px 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sec-head .hash { display: none; }
.sec-head .label { font-family: var(--round); font-weight: 700; font-size: 22px; color: var(--white);
                   background: var(--red); padding: 6px 16px; border-radius: 11px;
                   border-bottom: 4px solid var(--red-d); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.sec-head .rule { flex: 1; height: 8px; border-radius: 999px;
                  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 18px, transparent 18px 26px); }
.sec-sub { color: #eaf2fb; margin: 6px 0 26px; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* ============ works-with strip ============ */
.providers .row { background: var(--brick-dark); border: 0; border-bottom: 5px solid #0e1320; border-radius: 11px;
                  padding: 15px 20px; font-family: var(--mono); font-size: 13.5px; color: var(--code-text);
                  overflow-x: auto; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.providers .k { color: #ff8a9b; } .providers .b { color: #79c0ff; }
.providers .s { color: #ffd76a; } .providers .p { color: var(--code-muted); }

/* ============ output preview ============ */
.output { padding-top: 40px; }
.output-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: stretch; }

/* run-card = a black brick terminal */
.run-card { background: var(--brick-dark); border: 0; border-bottom: 6px solid #0e1320; border-radius: var(--radius);
            overflow: hidden; box-shadow: 0 16px 40px -20px rgba(0,0,0,.55); }
.run-card .term-bar { border-bottom: 1px solid var(--code-line); }
.run-card .term-body { border-bottom: 1px solid var(--code-line); }
.artifact-list { padding: 14px 16px 16px; }
.artifact-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 9px 0;
                border-bottom: 1px solid rgba(255,255,255,.07); }
.artifact-row:last-of-type { border-bottom: 0; }
.artifact-row b { font-family: var(--round); color: var(--yellow); font-size: 12.5px; font-weight: 700;
                  text-transform: uppercase; }
.artifact-row span { color: var(--code-muted); font-size: 13px; line-height: 1.45; }
.artifact-note { margin: 13px 0 0; color: var(--code-muted); font-size: 12.5px; line-height: 1.55; }

/* report preview = bright white brick (it's the friendly HTML output) */
.report-preview { background: var(--white); border: 0; border-bottom: 7px solid #c3cddc; border-radius: var(--radius);
                  padding: 22px; font-family: var(--body); color: var(--ink);
                  box-shadow: 0 18px 44px -20px rgba(0,0,0,.5); }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.report-top h3 { margin: 0 0 2px; font-family: var(--round); color: var(--ink); font-size: 24px; line-height: 1.15; }
.report-top p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.report-file { flex: 0 0 auto; color: var(--ink-soft); background: var(--cream); border: 0; border-bottom: 2px solid #cfc9b4;
               border-radius: 7px; padding: 5px 9px; font: 700 12px/1 var(--mono); }
.report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.report-stat { border-radius: 11px; padding: 12px; min-width: 0; color: #fff; text-align: center;
               border-bottom: 4px solid rgba(0,0,0,.25); }
.report-stat:nth-child(1){ background: var(--blue); } .report-stat:nth-child(2){ background: var(--green); }
.report-stat:nth-child(3){ background: var(--orange); } .report-stat:nth-child(4){ background: var(--red); }
.report-stat b { display: block; font-family: var(--round); font-size: 26px; line-height: 1.1; }
.report-stat span { display: block; font-size: 11.5px; margin-top: 2px; opacity: .92; text-transform: uppercase; letter-spacing: .04em; }
.report-section { font-family: var(--round); color: var(--ink); font-size: 13px; letter-spacing: .04em;
                  text-transform: uppercase; margin: 22px 0 10px; }
.report-warn { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; background: #fff4f4;
               border: 0; border-left: 7px solid var(--red); border-radius: 10px; padding: 12px 14px; }
.report-warn span { color: #fff; background: var(--red); border-radius: 6px; padding: 3px 8px;
                    font: 800 10.5px/1.2 var(--round); align-self: start; }
.report-warn p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.report-warn code { color: var(--red-d); background: transparent; padding: 0; font-weight: 800; }
.report-step { background: var(--cream); border: 0; border-bottom: 3px solid #d8d2bd; border-radius: 10px;
               padding: 13px 15px; margin-bottom: 12px; }
.report-step.looped { background: #fff8e6; border-bottom-color: var(--yellow-d); box-shadow: inset 4px 0 0 var(--yellow); }
.report-step .step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-step .step-head b { font-family: var(--round); color: var(--ink); font-size: 14px; }
.report-step .step-head span { color: var(--ink-soft); font-size: 12px; }
.report-step .thought { color: var(--ink-soft); margin-top: 7px; font-size: 13px; }
.tool-line { color: var(--blue-d); font-weight: 800; margin-top: 7px; font-size: 13px; }
.report-step pre { margin: 7px 0 0; padding: 8px 10px; overflow: auto; white-space: pre-wrap;
                   color: var(--code-text); background: var(--brick-dark); border: 0; border-radius: 7px;
                   font: 12px/1.45 var(--mono); }

/* ============ features = colored bricks with studs ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 22px; }
@media (max-width: 820px){ .features { grid-template-columns: 1fr; } }
.feature { background: var(--white); border: 0; border-radius: var(--radius); padding: 22px;
           border-bottom: 7px solid #c3cddc; box-shadow: 0 14px 34px -18px rgba(0,0,0,.45);
           transition: transform .12s ease, box-shadow .12s ease; position: relative;
           --stud-hi: rgba(255,255,255,.85); --stud-d: rgba(0,0,0,.12); }
.feature::before {
  content: ""; position: absolute; left: 22px; top: -10px; width: 92px; height: 14px; z-index: 2;
  background:
    radial-gradient(circle at 15px 7px,
      var(--stud-hi) 0 2.5px, var(--stud) 2.5px 6px, var(--stud-d) 6px 7.5px, transparent 8px) 0 0 / 30px 14px repeat-x;
  pointer-events: none;
}
.feature:nth-child(1) { --stud: #aaccf0; } .feature:nth-child(1) .top { color: var(--blue-d); }
.feature:nth-child(2) { --stud: #ffd76a; } .feature:nth-child(2) .top { color: var(--orange-d); }
.feature:nth-child(3) { --stud: #9fe3a3; } .feature:nth-child(3) .top { color: var(--green-d); }
.feature:hover { transform: translateY(-4px); box-shadow: 0 22px 42px -18px rgba(0,0,0,.5); }
.feature .top { font-family: var(--round); font-weight: 700; font-size: 13px; margin-bottom: 12px;
                text-transform: uppercase; letter-spacing: .04em; }
.feature h3 { margin: 0 0 10px; font-family: var(--round); font-size: 22px; }
.feature h3 .fn { color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.api-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.api-list li { font-size: 12.5px; }
.api-list code { font-family: var(--mono); color: var(--code-text); background: var(--brick-dark);
                 border: 0; border-radius: 6px; padding: 4px 8px; }

/* ============ integrate ("add it to your agent") ============ */
.integrate { display: grid; grid-template-columns: 1.45fr .85fr; gap: 24px; align-items: start; margin-top: 22px; }
@media (max-width: 820px) { .integrate { grid-template-columns: 1fr; } }
.integ-code { overflow-x: auto; }
.diff { margin: 0; padding: 14px 0; white-space: normal; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; }
.dl { display: block; white-space: pre; padding: 1px 16px 1px 36px; position: relative; color: var(--code-muted); }
.dl.ctx { opacity: .85; }
.dl.add { color: var(--code-text); background: rgba(54, 169, 59, .16); box-shadow: inset 3px 0 0 var(--green); }
.dl.add::before { content: "+"; position: absolute; left: 16px; color: var(--green); font-weight: 700; }

.integ-steps { list-style: none; counter-reset: istep; margin: 0; padding: 0; display: grid; gap: 12px; }
.integ-steps li { counter-increment: istep; position: relative; padding: 12px 14px 12px 52px; background: var(--white);
                  border-radius: 12px; border-bottom: 4px solid #c3cddc; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.integ-steps li::before { content: counter(istep); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px;
                          border-radius: 9px; background: var(--green); color: #fff; font-family: var(--round); font-weight: 700;
                          display: grid; place-items: center; border-bottom: 3px solid var(--green-d); }
.integ-steps b { color: var(--ink); }
.integ-steps code { font-family: var(--mono); font-size: 12px; background: var(--brick-dark); color: var(--code-text);
                    padding: 2px 6px; border-radius: 5px; }

/* ============ tabbed showcase ============ */
.tabs { display: flex; gap: 8px; border: 0; background: transparent; flex-wrap: wrap; margin-bottom: 14px; }
.tab { background: var(--white); border: 0; border-bottom: 4px solid #c3cddc; color: var(--ink);
       font: 600 14px/1 var(--round); padding: 10px 16px; cursor: pointer; border-radius: 10px;
       transition: transform .06s; }
.tab:hover { transform: translateY(1px); }
.tab.active { background: var(--blue); color: #fff; border-bottom-color: var(--blue-d); }
.panel { display: none; }
.panel.active { display: block; }
.showcase .window { border-radius: var(--radius); }

/* ============ comparison ============ */
.table-wrap { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--white);
              border-bottom: 7px solid #c3cddc; box-shadow: 0 14px 34px -18px rgba(0,0,0,.4); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 2px solid #eef0f4; }
.cmp thead th { font-family: var(--round); color: #fff; background: var(--blue); font-weight: 600; }
.cmp tbody td:first-child { color: var(--ink); font-weight: 700; }
.cmp .yes, .cmp tr td:nth-child(2) { color: var(--green-d); font-weight: 800; font-family: var(--mono); font-size: 13px; }
.cmp .no { color: var(--ink-soft); font-family: var(--mono); font-size: 13px; }
.cmp tbody tr:nth-child(even) { background: #f7f9fc; }

/* ============ changelog ============ */
.changelog-list { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--white);
                  border-bottom: 7px solid #c3cddc; box-shadow: 0 14px 34px -18px rgba(0,0,0,.4); }
.rel { display: flex; gap: 18px; align-items: flex-start; padding: 16px 20px; border-bottom: 2px solid #eef0f4; }
.rel:last-child { border-bottom: 0; }
.rel .tag { flex: 0 0 auto; font-family: var(--round); font-weight: 700; color: #fff; background: var(--green);
            border-radius: 9px; padding: 4px 11px; font-size: 13px; border-bottom: 3px solid var(--green-d); }
.rel .what { color: var(--ink-soft); font-size: 14px; }
.rel .what b { color: var(--ink); font-weight: 800; }

/* ============ oss / cta ============ */
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.badge2 { font-family: var(--round); font-weight: 600; font-size: 13.5px; color: var(--ink); background: var(--white);
          border-radius: 10px; padding: 8px 14px; border-bottom: 3px solid #c3cddc; }
.badge2 b { color: var(--red); }
.cta-term { max-width: 580px; }

/* ============ footer = base brick ============ */
footer { background: var(--yellow); border-top: 5px solid var(--yellow-d); padding: 30px 0; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
        color: var(--ink); font-size: 13.5px; font-weight: 600; }
.foot .brand { font-family: var(--round); font-size: 18px; }

/* ============ docs ============ */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 44px; padding: 40px 0 80px; align-items: start; }
.sidebar { position: sticky; top: 88px; background: var(--white); border-radius: var(--radius); padding: 16px;
           border-bottom: 6px solid #c3cddc; box-shadow: 0 12px 30px -16px rgba(0,0,0,.4); }
.sidebar h4 { font-family: var(--round); color: var(--blue-d); font-size: 13px; margin: 18px 0 8px; text-transform: uppercase; }
.sidebar h4::before { content: ""; }
.sidebar h4:first-child { margin-top: 0; }
.sidebar a { display: block; color: var(--ink-soft); font-size: 14px; padding: 6px 11px; border-radius: 8px;
             font-weight: 700; }
.sidebar a::before { content: ""; }
.sidebar a:hover { color: var(--ink); background: #eef3fa; text-decoration: none; }
.sidebar a.active { color: #fff; background: var(--blue); }
.content { min-width: 0; max-width: 760px; background: var(--white); border-radius: var(--radius);
           padding: 30px 34px; border-bottom: 7px solid #c3cddc; box-shadow: 0 14px 34px -18px rgba(0,0,0,.4); }
.content h1 { font-family: var(--round); font-size: 34px; margin: 0 0 8px; color: var(--ink); }
.content h1::before { content: ""; }
.content > p.sub { color: var(--ink-soft); margin: 0 0 16px; }
.docs-summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 32px; }
.docs-summary span { font-family: var(--round); font-weight: 600; color: var(--ink); background: var(--cream);
                     border-radius: 9px; padding: 8px 12px; font-size: 13px; border-bottom: 3px solid #d8d2bd; }
.docs-summary b { color: var(--red); font-weight: 700; }
.content h2 { font-family: var(--round); font-size: 23px; margin: 40px 0 14px; scroll-margin-top: 90px; color: var(--ink);
              padding-bottom: 8px; border-bottom: 3px solid #eef0f4; }
.content h2::before { content: ""; }
.content h3 { font-family: var(--round); font-size: 17px; margin: 24px 0 8px; color: var(--ink); }
.content p, .content li { color: var(--ink); }
.content ul { padding-left: 20px; } .content li { margin: 5px 0; }
.content code { font-family: var(--mono); font-size: 12.5px; color: var(--code-text); background: var(--brick-dark);
                padding: 2px 6px; border-radius: 5px; }
.content pre { margin: 14px 0; background: var(--brick-dark); border: 0; border-bottom: 5px solid #0e1320;
               border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.content pre code { color: var(--code-text); background: none; padding: 0; font-size: 13px; }
.note { background: #eef6ff; border: 0; border-left: 6px solid var(--blue); border-radius: 10px;
        padding: 13px 16px; margin: 16px 0; color: var(--ink-soft); font-size: 14px; }
.note b { color: var(--ink); }
.docs-toggle { display: none; }

/* ============ responsive ============ */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 62px; right: 14px; flex-direction: column;
                    background: var(--yellow); border-bottom: 4px solid var(--yellow-d); border-radius: 12px; padding: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: var(--red); border: 0;
                border-bottom: 3px solid var(--red-d); color: #fff; border-radius: 9px; padding: 8px 12px;
                cursor: pointer; font-family: var(--round); font-weight: 600; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 50px; }
  .hero-lede { font-size: 16px; }
  .hero-actions .btn { justify-content: center; flex: 1; }
  .output-grid { grid-template-columns: 1fr; }
  .report-preview { padding: 18px; }
  .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-warn { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; margin-bottom: 18px; }
  .sidebar.open { display: block; }
  .docs-toggle { display: inline-flex; margin: 14px 0; }
  .content { padding: 20px; }
  .code .ln { padding-left: 52px; } .code .ln::before { width: 34px; }
}
