/* larainspect - neo-brutalist site. No frameworks, no icon fonts. */

:root {
  --ink: #111111;
  --paper: #FFF7E6;
  --white: #FFFFFF;
  --yellow: #FFD23F;
  --pink: #FF7AA8;
  --mint: #4DE0A0;
  --blue: #7BA7FF;
  --lilac: #C3A6FF;
  --orange: #FF8A3D;
  --muted: #4A4A4A;

  --sev-critical: #D6006B;
  --sev-high: #E3242B;
  --sev-medium: #FFD23F;
  --sev-low: #2F6BFF;
  --sev-info: #FFFFFF;

  --border: 3px solid var(--ink);
  --border-thick: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 0;

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--yellow); }
code, pre { font-family: var(--font-mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* Grid items default to min-width: auto, so an unbreakable code line would widen the
   column past the viewport. Let them shrink; code blocks scroll on their own. */
.hero-grid > *, .anatomy-grid > *, .ai-grid > *, .ci-grid > *, .honest-grid > *,
.cards > *, .guarantees > *, .formats > *, .stats-grid > *, .questions > *, .pipeline > * { min-width: 0; }
p code, li code, td code, dd code, .small code, .section-lede code {
  font-size: .86em;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 0 5px;
  white-space: nowrap;
}

:focus-visible { outline: 4px solid var(--sev-low); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); border: var(--border); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .01em;
  text-decoration: none; color: var(--ink);
  border: var(--border); box-shadow: var(--shadow-sm);
  padding: 12px 20px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-yellow:hover { background: var(--yellow); }
.btn-white { background: var(--white); }
.btn-white:hover { background: var(--white); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink); }
.btn-sm { font-size: 14px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-ink.btn-sm { box-shadow: 3px 3px 0 var(--pink); }
.btn-lg { font-size: 20px; padding: 16px 26px; box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border-thick);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
  text-decoration: none; display: inline-flex; align-items: center; letter-spacing: -.02em;
}
.logo:hover { background: none; }
.logo-bracket { color: var(--sev-critical); }
.logo-cursor {
  display: inline-block; width: 11px; height: 22px; margin-left: 2px;
  background: var(--ink); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-cursor { animation: none; } }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 6px 10px; border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); background: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 88px; border-bottom: var(--border-thick); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.2px);
  background-size: 22px 22px; opacity: .14;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.sticker {
  display: inline-block; margin: 0 0 22px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  border: var(--border); padding: 6px 12px; box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.sticker-pink { background: var(--pink); }
h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 6.2vw, 78px); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 22px;
}
.hl { background: var(--yellow); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border: var(--border); box-shadow: var(--shadow-sm); display: inline; line-height: 1.12; }
.lede { font-size: 20px; max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.copy-box {
  display: flex; align-items: stretch; max-width: 600px;
  border: var(--border); background: var(--white); box-shadow: var(--shadow-sm);
}
.copy-box code {
  flex: 1; padding: 12px 14px; font-size: 14px; overflow-x: auto; white-space: nowrap;
}
.copy-btn {
  font-family: var(--font-display); font-size: 14px; cursor: pointer;
  border: 0; border-left: var(--border); background: var(--mint); padding: 0 16px; color: var(--ink);
}
.copy-btn:hover { background: var(--yellow); }
.copy-btn.copied { background: var(--ink); color: var(--paper); }

.seal {
  position: absolute; right: 4%; bottom: 18px; margin: 0;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--mint); border: var(--border-thick); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); text-align: center; line-height: 1.05; transform: rotate(12deg);
}
.seal span:first-child { font-size: 17px; }
.seal span:last-child { font-family: var(--font-mono); font-weight: 700; font-size: 11px; margin-top: 6px; border-top: 2px solid var(--ink); padding-top: 5px; }

/* ---------- terminal ---------- */
.terminal {
  margin: 0; background: var(--ink); color: #F4F1E8;
  border: var(--border-thick); box-shadow: var(--shadow-lg);
}
.hero-terminal { transform: rotate(1deg); }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--lilac); color: var(--ink); border-bottom: var(--border-thick); padding: 9px 12px;
}
.dot { width: 13px; height: 13px; border: 2px solid var(--ink); background: var(--white); }
.dot:nth-child(1) { background: var(--pink); }
.dot:nth-child(2) { background: var(--yellow); }
.dot:nth-child(3) { background: var(--mint); }
.terminal-title { font-family: var(--font-mono); font-weight: 700; font-size: 13px; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-body {
  margin: 0; padding: 18px 18px 20px; font-size: 13.5px; line-height: 1.75;
  overflow-x: auto; white-space: pre;
}
.terminal figcaption {
  background: var(--yellow); color: var(--ink); border-top: var(--border-thick);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 6px 12px;
}
.t-muted { color: #A8A296; }
.t-prompt { color: var(--mint); font-weight: 700; }

/* severity chips, as in the CLI */
.chip {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .78em;
  padding: 0 6px; line-height: 1.5; border: 2px solid var(--ink); color: var(--white); min-width: 4.2em; text-align: center;
}
.terminal .chip { border-color: transparent; }
.chip-critical { background: var(--sev-critical); }
.chip-high { background: var(--sev-high); }
.chip-medium { background: var(--sev-medium); color: var(--ink); }
.chip-low { background: var(--sev-low); }
.chip-info { background: var(--sev-info); color: var(--ink); }

.pill {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  border: 2px solid var(--ink); padding: 1px 8px; background: var(--white);
}
.pill-confirmed { background: var(--mint); }
.pill-potential { background: var(--white); border-style: dashed; }
.pill-detected { background: var(--blue); }

/* ---------- stats ---------- */
.stats { border-bottom: var(--border-thick); background: var(--ink); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border: var(--border); padding: 16px 18px; box-shadow: 5px 5px 0 var(--paper); display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 52px; line-height: 1; }
.stat-label { font-weight: 700; font-size: 15px; margin-top: 6px; }
.stat-yellow { background: var(--yellow); }
.stat-mint { background: var(--mint); }
.stat-blue { background: var(--blue); }
.stat-pink { background: var(--pink); }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-bottom: var(--border-thick); }
.section-alt { background: var(--white); }
.section-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -.01em; margin: 0 0 14px; max-width: 900px;
}
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .42em; vertical-align: middle;
  background: var(--ink); color: var(--paper); padding: 4px 8px; margin-right: 10px; transform: translateY(-4px);
}
.section-lede { font-size: 20px; color: var(--muted); max-width: 760px; margin: 0 0 40px; }
.small { font-size: 15px; color: var(--muted); }

/* questions */
.questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.questions li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--white); border: var(--border); box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.questions li:nth-child(4n+1) { background: #FFF2B8; }
.questions .q { font-weight: 500; }
.questions .a {
  flex-shrink: 0; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  background: var(--ink); color: var(--paper); padding: 4px 8px;
}

/* analyzer cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--paper); border: var(--border); box-shadow: var(--shadow);
  padding: 22px 20px 20px; display: flex; flex-direction: column;
  transition: transform .1s ease, box-shadow .1s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card:nth-child(4n+1) { background: #FFF2B8; }
.card:nth-child(4n+2) { background: #DFF8EC; }
.card:nth-child(4n+3) { background: #E4ECFF; }
.card:nth-child(4n+4) { background: #FFE3EE; }
.card-feature { background: var(--yellow) !important; }
.card-num { font-family: var(--font-display); font-size: 44px; line-height: 1; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.card h3 { font-family: var(--font-mono); font-size: 21px; margin: 12px 0 8px; }
.card p { font-size: 15.5px; margin: 0 0 16px; flex: 1; }
.rule { font-size: 12.5px; font-weight: 700; background: var(--white); border: 2px solid var(--ink); padding: 3px 7px; align-self: flex-start; overflow-wrap: anywhere; }

/* pipeline */
.pipeline { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px; counter-reset: stage; }
.stage { position: relative; border: var(--border); box-shadow: var(--shadow); padding: 18px 16px; }
.stage:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -34px; width: 34px; height: 4px; background: var(--ink);
}
.stage:not(:last-child)::before {
  content: ""; position: absolute; top: calc(50% - 7px); right: -36px;
  border-left: 12px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; z-index: 1;
}
.stage-step { font-family: var(--font-mono); font-weight: 700; font-size: 12px; background: var(--ink); color: var(--paper); padding: 2px 7px; }
.stage h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin: 12px 0 8px; line-height: 1.1; }
.stage p { font-size: 15px; margin: 0; }
.stage-white { background: var(--white); }
.stage-yellow { background: var(--yellow); }
.stage-blue { background: var(--blue); }
.stage-pink { background: var(--pink); }
.stage-mint { background: var(--mint); }

.aside-box { border: var(--border-thick); background: var(--white); box-shadow: var(--shadow); padding: 24px; }
.aside-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 14px; }
.aside-box p { margin: 14px 0 0; font-size: 16px; }
.cmd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmd-list code { display: block; background: var(--ink); color: var(--paper); font-size: 13.5px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }

/* anatomy */
.anatomy-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.legend { margin: 0; display: grid; gap: 14px; }
.legend div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; border-bottom: 2px dashed var(--ink); padding-bottom: 12px; }
.legend dt { padding-top: 2px; }
.legend dd { margin: 0; font-size: 16px; }
.finding { background: var(--paper); border: var(--border-thick); box-shadow: var(--shadow-lg); border-left: 14px solid var(--sev-high); padding: 22px 24px; }
.finding-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.finding-id { font-size: 13px; font-weight: 700; margin-left: auto; }
.finding h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 14px 0 10px; }
.finding p { margin: 0 0 12px; font-size: 16px; }
.finding-label { font-family: var(--font-mono); font-weight: 700; font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 6px !important; }
.evidence { margin: 0; background: var(--ink); color: var(--paper); padding: 12px 14px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* safety */
.section-stripes {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
}
.on-stripes { display: inline-block; background: var(--paper); border: var(--border-thick); box-shadow: var(--shadow); padding: 14px 20px; margin-bottom: 34px; }
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guarantee { background: var(--paper); border: var(--border-thick); box-shadow: var(--shadow); padding: 22px; }
.guarantee h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; margin: 0 0 10px; }
.guarantee p { margin: 0; font-size: 16px; }
.review-note { background: var(--ink); color: var(--paper); border: var(--border-thick); padding: 14px 18px; margin: 28px 0 0; font-weight: 500; max-width: 820px; }

/* ai */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
.box { border: var(--border-thick); box-shadow: var(--shadow); padding: 22px 24px; }
.box h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.box-mint { background: var(--mint); }
.box-pink { background: var(--pink); }
.box-white { background: var(--white); }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 8px 0 8px 22px; border-top: 2px solid var(--ink); position: relative; font-size: 16px; }
.plain li:first-child { border-top: 0; }
.plain li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; background: var(--ink); }
.terminal-inline { margin: 0 0 30px; box-shadow: var(--shadow); }

.table-wrap { overflow-x: auto; margin-bottom: 24px; }
.brutal-table { width: 100%; border-collapse: collapse; background: var(--white); border: var(--border-thick); box-shadow: var(--shadow); font-size: 15.5px; }
.brutal-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 10px; }
.brutal-table th, .brutal-table td { border: 2px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; }
.brutal-table thead th { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.brutal-table tbody th { background: var(--yellow); font-family: var(--font-mono); white-space: nowrap; }
.tasks { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.task { font-family: var(--font-mono); font-weight: 700; font-size: 14px; border: var(--border); background: var(--yellow); padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); }
.task-dim { background: var(--white); }

/* reports */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.format { border: var(--border); box-shadow: var(--shadow-sm); padding: 18px; background: var(--paper); }
.format-ext { display: inline-block; font-family: var(--font-display); font-size: 26px; background: var(--ink); color: var(--yellow); padding: 2px 10px; }
.format p { margin: 12px 0 0; font-size: 15.5px; }
.ci-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.exit-codes tbody th { width: 60px; text-align: center; }

/* install tabs (CSS only) */
.tabs { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label {
  font-family: var(--font-display); font-size: 16px; cursor: pointer;
  border: var(--border); border-bottom: 0; background: var(--white); padding: 10px 16px; margin-right: -3px;
}
.tabs input:checked + label { background: var(--yellow); }
.tabs input:focus-visible + label { outline: 4px solid var(--sev-low); outline-offset: 2px; }
.tab-panel { display: none; width: 100%; order: 10; }
#tab-unix:checked ~ #panel-unix, #tab-win:checked ~ #panel-win, #tab-composer:checked ~ #panel-composer { display: block; }
.install {
  margin: 0; background: var(--ink); color: var(--paper); border: var(--border-thick); box-shadow: var(--shadow);
  padding: 20px; font-size: 14px; line-height: 1.9; overflow-x: auto; white-space: pre;
}

/* honest */
.honest-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: end; }

/* final */
.final { background: var(--pink); border-bottom: var(--border-thick); padding: 90px 0; }
.final-inner { text-align: center; }
.final h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5.5vw, 68px); line-height: 1; margin: 0 0 30px; }
.final .cta-row { justify-content: center; margin: 0; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 54px 0 30px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { background: none; color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid h3 { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin: 0 0 8px; }
.logo-footer { font-size: 26px; }
.footer-grid p { color: #CFC9BC; margin: 10px 0 0; font-size: 15px; }
.disclaimer { margin-top: 40px; padding-top: 18px; border-top: 2px solid #3A3A3A; font-size: 13px; color: #A8A296; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; gap: 30px; }
  .stage:not(:last-child)::after { top: auto; bottom: -30px; right: auto; left: 40px; width: 4px; height: 30px; }
  .stage:not(:last-child)::before { top: auto; bottom: -34px; right: auto; left: 33px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--ink); border-bottom: 0; }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 40px 0 80px; }
  .hero-grid, .anatomy-grid, .ai-grid, .ci-grid, .honest-grid, .questions { grid-template-columns: 1fr; }
  .hero-terminal { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cmd-list { grid-template-columns: 1fr; }
  .legend div { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .seal { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .cards, .guarantees, .formats, .stats-grid { grid-template-columns: 1fr; }
  .lede, .section-lede { font-size: 18px; }
  .terminal-body { font-size: 12px; }
  .questions li { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .site-header .btn { width: auto; }
  .tabs label { font-size: 14px; padding: 8px 10px; }
  .finding { padding: 18px; border-left-width: 10px; }
  .card:hover { transform: none; box-shadow: var(--shadow); }
}
