/* Promptive — retro terminal marketing site */

:root {
  --cream: #F2E9D5;
  --cream-2: #EDE2CA;
  --ink: #1E1A14;
  --ink-2: #2B241B;
  --orange: #F08A2B;
  --orange-2: #E47E1F;
  --panel-dark: #1A1611;
  --panel-dark-2: #15120E;
  --green: #3DA874;
  --blue: #4A8FBD;
  --red: #D14F3C;
  --purple: #8B6BAE;
  --dim: #6B5E4A;
  --border: #1E1A14;

  --fs-display: 'VT323', 'Pixelify Sans', ui-monospace, monospace;
  --fs-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--fs-mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(rgba(30,26,20,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Layout ---------- */
.wrap { max-width: 1800px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 1400px; }
.stack > * + * { margin-top: 36px; }
.section { padding: 56px 0; }

/* ---------- Panels (program windows) ---------- */
.panel {
  border: 1px solid var(--ink);
  background: var(--cream);
  position: relative;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.panel:hover { box-shadow: 6px 6px 0 0 var(--ink); transform: translate(-2px,-2px); }
.panel:hover .panel-header { background: var(--ink); color: var(--cream); }
.panel:hover .panel-header .dots i { background: var(--orange); }
.panel.dark:hover .panel-header { background: var(--orange); color: var(--ink); }
.panel.dashed { border-style: dashed; }
.panel.dark { background: var(--panel-dark); color: var(--cream); }
.panel.dark .panel-header { background: var(--panel-dark-2); color: var(--cream); border-bottom-color: #3a3328; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--cream-2);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  user-select: none;
}
.panel-header .bars { letter-spacing: -2px; font-weight: 700; }
.panel-header .dots { margin-left: auto; display: flex; gap: 6px; }
.panel-header .dots i {
  display: inline-block; width: 8px; height: 8px; background: var(--ink);
}
.panel-body { padding: 48px; }
.panel-body.compact { padding: 28px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--fs-display);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-weight: 400;
}
h1.display { font-size: clamp(72px, 10vw, 168px); }
h2.display { font-size: clamp(40px, 5vw, 72px); }
h3.display { font-size: clamp(28px, 3vw, 40px); }
h4.display { font-size: 22px; }

.eyebrow {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono { font-family: var(--fs-mono); }
.muted { color: var(--dim); }
.hl-orange { color: var(--orange); }
.bg-orange { background: var(--orange); color: var(--ink); padding: 0 .1em; }

/* ---------- Buttons / fields ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--orange); color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--fs-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--orange); }
.btn.ghost { background: var(--cream); }
.btn.ghost:hover { background: var(--orange); }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: var(--orange); color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--orange); color: var(--ink);
  font-family: var(--fs-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
}
.pill.ghost { background: transparent; }
.pill.ink { background: var(--ink); color: var(--cream); }
.pill.sq { border-radius: 0; }

.field {
  display: flex; align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--fs-mono); font-size: 13px;
}
.field input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font: inherit; color: var(--ink);
}
.field input::placeholder { color: var(--dim); }
.field .tag { color: var(--red); letter-spacing: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--ink);
}
.site-header .inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  max-width: 1800px; margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fs-mono); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
}
.logo-wordmark {
  display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none;
}
.logo-wordmark img { display: block; }
.logo .mark {
  width: 24px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav { display: flex; gap: 22px; font-size: 13px; }
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--orange); }
.nav-drop { position: relative; }
.nav-drop > a { cursor: pointer; }
.nav-menu {
  position: absolute; top: 100%; left: -14px; margin-top: 10px;
  background: var(--cream); border: 1px solid var(--ink);
  min-width: 280px; padding: 6px; z-index: 60;
  box-shadow: 6px 6px 0 0 var(--ink);
  display: none;
}
.nav-drop.open .nav-menu { display: block; }
.nav-menu a {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 10px 12px; border: 1px solid transparent;
  font-family: var(--fs-mono); font-size: 12px;
}
.nav-menu a b { font-family: var(--fs-mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.nav-menu a span { color: var(--dim); font-size: 11px; }
.nav-menu a:hover { background: var(--ink); border-color: var(--ink); }
.nav-menu a:hover b, .nav-menu a:hover span { color: var(--cream); }
.nav-menu a:hover span { color: var(--orange); }

/* ---------- Page layout (docs/pricing/glossary/etc) ---------- */
.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px dashed var(--ink);
}
.page-hero .eyebrow { color: var(--dim); font-family: var(--fs-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.page-hero h1 {
  font-family: var(--fs-display); font-size: 110px; line-height: .9; text-transform: uppercase;
  margin-top: 8px; letter-spacing: -0.01em;
}
.page-hero .sub {
  margin-top: 18px; max-width: 60ch; font-size: 16px; color: var(--ink-2);
}
.page-hero .crumbs {
  display: flex; gap: 8px; font-family: var(--fs-mono); font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .1em;
}
.page-hero .crumbs a { color: var(--dim); }
.page-hero .crumbs a:hover { color: var(--orange); }

.page-body { padding: 40px 32px 80px; }

/* Docs layout */
.docs-layout { display: grid; grid-template-columns: 260px 1fr 240px; gap: 40px; }
.docs-sidenav {
  position: sticky; top: 80px; align-self: start;
  border-right: 1px dashed var(--ink); padding-right: 20px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.docs-sidenav h5 {
  font-family: var(--fs-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim); margin: 24px 0 8px;
}
.docs-sidenav h5:first-child { margin-top: 0; }
.docs-sidenav a {
  display: block; padding: 6px 10px; font-family: var(--fs-mono); font-size: 13px;
  border-left: 2px solid transparent;
}
.docs-sidenav a.active { border-left-color: var(--orange); background: var(--cream-2); color: var(--ink); font-weight: 600; }
.docs-sidenav a:hover { color: var(--orange); }
.docs-toc {
  position: sticky; top: 80px; align-self: start;
  padding-left: 20px; border-left: 1px dashed var(--ink);
  max-height: calc(100vh - 100px); overflow-y: auto;
  font-family: var(--fs-mono); font-size: 12px;
}
.docs-toc h5 {
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 10px;
}
.docs-toc a { display: block; padding: 4px 0; color: var(--ink-2); }
.docs-toc a:hover { color: var(--orange); }
.docs-content { min-width: 0; }
.docs-content h2 {
  font-family: var(--fs-display); font-size: 54px; text-transform: uppercase; line-height: .95;
  margin-top: 48px; letter-spacing: -0.01em;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-family: var(--fs-mono); font-weight: 700; font-size: 18px; margin-top: 36px;
  padding-bottom: 8px; border-bottom: 1px dashed var(--ink);
}
.docs-content p { margin-top: 14px; font-size: 15px; line-height: 1.6; max-width: 68ch; color: var(--ink-2); }
.docs-content ul, .docs-content ol { margin: 14px 0 0 20px; }
.docs-content li { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.docs-content code { font-family: var(--fs-mono); background: var(--cream-2); padding: 1px 6px; border: 1px solid var(--ink); font-size: 12px; }
.docs-content pre {
  margin-top: 18px; padding: 18px 20px; background: var(--panel-dark); color: var(--cream);
  border: 1px solid var(--ink); font-family: var(--fs-mono); font-size: 12px; line-height: 1.6;
  overflow-x: auto;
}
.docs-content pre .c { color: #8B7E66; }
.docs-content pre .k { color: #F08A2B; }
.docs-content pre .s { color: #3DA874; }
.docs-content table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.docs-content th, .docs-content td { padding: 10px; text-align: left; border-bottom: 1px dashed var(--ink); }
.docs-content th { background: var(--cream-2); font-family: var(--fs-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.docs-content blockquote { margin-top: 18px; border-left: 3px solid var(--orange); padding: 8px 16px; background: var(--cream-2); font-size: 14px; }
.docs-callout {
  margin-top: 18px; padding: 16px; border: 1px dashed var(--ink); background: var(--cream-2);
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; font-size: 13px; line-height: 1.55;
}
.docs-callout .icon { font-family: var(--fs-mono); font-weight: 700; color: var(--orange); }

/* Content index cards */
.content-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.content-grid.two { grid-template-columns: repeat(2, 1fr); }
.content-card {
  border: 1px solid var(--ink); background: var(--cream); display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.content-card:hover { box-shadow: 6px 6px 0 0 var(--ink); transform: translate(-2px, -2px); }
.content-card .thumb {
  aspect-ratio: 16/10; border-bottom: 1px solid var(--ink); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-display); font-size: 64px; color: var(--cream); text-transform: uppercase;
  letter-spacing: -.01em;
}
.content-card .thumb .glyph { position: relative; z-index: 2; }
.content-card .thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 12px 12px;
}
.content-card .meta {
  padding: 10px 16px; border-bottom: 1px dashed var(--ink);
  font-family: var(--fs-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim);
  display: flex; gap: 10px;
}
.content-card .meta .tag { color: var(--orange); }
.content-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.content-card h3 { font-family: var(--fs-mono); font-size: 17px; font-weight: 700; line-height: 1.25; }
.content-card p { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.content-card .read {
  margin-top: 16px; font-family: var(--fs-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); font-weight: 600;
}
.content-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px;
  padding: 14px; border: 1px dashed var(--ink);
}
.content-filter button {
  font-family: var(--fs-mono); font-size: 11px; padding: 5px 12px;
  border: 1px solid var(--ink); background: var(--cream); cursor: pointer;
  text-transform: uppercase; letter-spacing: .08em;
}
.content-filter button.active { background: var(--ink); color: var(--cream); }
.content-filter button:hover:not(.active) { background: var(--cream-2); }

/* Featured post */
.featured-post {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  border: 1px solid var(--ink); margin-top: 24px;
}
.featured-post .thumb {
  aspect-ratio: auto; min-height: 420px; border-right: 1px solid var(--ink);
  display: flex; align-items: flex-end; padding: 40px; position: relative; overflow: hidden;
  font-family: var(--fs-display); color: var(--cream);
}
.featured-post .thumb .glyph { font-size: 180px; line-height: .8; text-transform: uppercase; }
.featured-post .thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 16px 16px;
}
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .body .eyebrow { color: var(--orange); }
.featured-post .body h2 {
  font-family: var(--fs-display); font-size: 64px; text-transform: uppercase; line-height: .9; margin-top: 12px;
}
.featured-post .body p { margin-top: 18px; font-size: 15px; max-width: 50ch; color: var(--ink-2); line-height: 1.5; }

/* Article layout */
.article-layout { display: grid; grid-template-columns: 1fr 680px 1fr; gap: 40px; }
.article-meta-col {
  position: sticky; top: 80px; align-self: start;
  font-family: var(--fs-mono); font-size: 12px;
}
.article-meta-col .block { margin-top: 20px; }
.article-meta-col .block:first-child { margin-top: 0; }
.article-meta-col h5 { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 6px; }
.article-body h2 { font-family: var(--fs-display); font-size: 40px; text-transform: uppercase; line-height: .95; margin-top: 48px; }
.article-body h3 { font-family: var(--fs-mono); font-weight: 700; font-size: 20px; margin-top: 32px; }
.article-body p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article-body .lede { font-family: var(--fs-mono); font-size: 19px; color: var(--ink); line-height: 1.55; margin-top: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 0 22px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.article-body blockquote {
  margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--orange);
  background: var(--cream-2); font-family: var(--fs-display); font-size: 28px; text-transform: uppercase; line-height: 1;
}
.article-body figure { margin: 30px 0; border: 1px solid var(--ink); }
.article-body figure .img {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-display); font-size: 80px; color: var(--cream); position: relative;
}
.article-body figure figcaption {
  padding: 12px 16px; font-family: var(--fs-mono); font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .1em; border-top: 1px dashed var(--ink);
}
.article-hero {
  border-bottom: 1px solid var(--ink); padding: 48px 0 40px;
}
.article-hero h1 {
  font-family: var(--fs-display); font-size: 96px; text-transform: uppercase; line-height: .9;
  margin-top: 16px; max-width: 20ch; letter-spacing: -0.01em;
}
.article-hero .byline {
  display: flex; gap: 20px; margin-top: 24px; font-family: var(--fs-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
}
.article-hero .byline b { color: var(--ink); }
.article-cover {
  margin-top: 32px; aspect-ratio: 21/9; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-family: var(--fs-display);
  color: var(--cream); font-size: 200px; text-transform: uppercase; letter-spacing: -.02em;
  position: relative; overflow: hidden;
}
.article-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 14px 14px;
}

/* Glossary */
.glossary-search {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px dashed var(--ink); margin-top: 28px;
}
.glossary-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--fs-mono); font-size: 15px;
}
.glossary-abc {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px;
  font-family: var(--fs-mono); font-size: 13px;
}
.glossary-abc a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--ink); font-weight: 700;
}
.glossary-abc a:hover { background: var(--orange); }
.glossary-abc a.off { color: var(--dim); background: var(--cream-2); }
.glossary-section { margin-top: 56px; }
.glossary-section h3 {
  font-family: var(--fs-display); font-size: 100px; line-height: .9;
  color: var(--orange); text-transform: uppercase;
}
.glossary-entry {
  padding: 22px 0; border-top: 1px dashed var(--ink); display: grid;
  grid-template-columns: 260px 1fr; gap: 32px;
}
.glossary-entry:last-child { border-bottom: 1px dashed var(--ink); }
.glossary-entry .term { font-family: var(--fs-mono); font-weight: 700; font-size: 16px; }
.glossary-entry .term .aka {
  display: block; margin-top: 4px; color: var(--dim); font-weight: 400; font-size: 12px;
}
.glossary-entry .def { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.glossary-entry .def .related {
  margin-top: 10px; font-family: var(--fs-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--dim);
}
.glossary-entry .def .related a { color: var(--orange); }

/* Compare */
.compare-hero {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center;
  padding: 72px 0 48px; border-bottom: 1px dashed var(--ink);
}
.compare-hero .side { text-align: center; }
.compare-hero .side .logo-box {
  width: 120px; height: 120px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-display); font-size: 72px; color: var(--cream); border: 1px solid var(--ink);
}
.compare-hero .side h2 { font-family: var(--fs-display); font-size: 44px; text-transform: uppercase; margin-top: 16px; }
.compare-hero .side .tag { font-family: var(--fs-mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.compare-hero .vs {
  font-family: var(--fs-display); font-size: 84px; color: var(--orange); text-transform: uppercase;
}
.compare-tldr {
  padding: 32px; border: 1px solid var(--ink); margin-top: 36px; background: var(--cream-2);
}
.compare-tldr h3 { font-family: var(--fs-display); font-size: 32px; text-transform: uppercase; }
.compare-tldr p { font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 80ch; color: var(--ink-2); }
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 40px;
  border: 1px solid var(--ink);
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px dashed var(--ink); font-size: 13px;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ink); color: var(--cream); font-family: var(--fs-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--ink);
}
.compare-table thead th.us { background: var(--orange); color: var(--ink); }
.compare-table tbody tr th {
  background: var(--cream-2); font-family: var(--fs-mono);
  text-transform: uppercase; font-size: 11px; letter-spacing: .08em; width: 220px;
}
.compare-table td.check { color: var(--green); font-weight: 700; font-size: 16px; }
.compare-table td.x { color: var(--red); font-weight: 700; font-size: 16px; }
.compare-table td.us-col { background: rgba(240,138,43,.08); }

/* Pricing page */
.pricing-toggle {
  display: inline-flex; border: 1px solid var(--ink); margin-top: 18px;
}
.pricing-toggle button {
  padding: 10px 18px; font-family: var(--fs-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--cream); border: 0; cursor: pointer;
}
.pricing-toggle button.active { background: var(--ink); color: var(--cream); }
.pricing-save { margin-left: 10px; font-family: var(--fs-mono); font-size: 11px; color: var(--orange); }

.pricing-faq { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item { border-bottom: 1px dashed var(--ink); padding: 18px 0; }
.faq-item summary {
  font-family: var(--fs-mono); font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-family: var(--fs-display); font-size: 24px; color: var(--orange); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 220px 1fr; }
  .docs-toc { display: none; }
  .content-grid, .article-layout { grid-template-columns: 1fr; }
  .article-layout .article-meta-col { position: static; }
  .compare-hero { grid-template-columns: 1fr; }
}
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange);
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.clock-pill {
  background: var(--orange); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 4px 10px;
  font-family: var(--fs-mono); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; align-items: center;
}
.hero-words h1 { text-wrap: balance; font-weight: 700; }
.hero-words h1 .bg-orange {
  display: inline-block;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 0.08em;
}
.hero-right {
  aspect-ratio: 4/3; background: #0D0B08;
  border: 1px solid var(--ink);
  position: relative; overflow: hidden;
}
.crt-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(240,138,43,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240,138,43,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.crt-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px
  );
  pointer-events: none;
}
.dither-shape {
  position: absolute; inset: 6%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.dither-shape:hover { cursor: grab; }
.dither-shape:active { cursor: grabbing; }
.hero-right::after {
  content: '';
}

.engines-strip {
  border-top: 1px dashed var(--ink);
  border-bottom: 1px dashed var(--ink);
  padding: 14px 0;
  margin-top: 36px;
  font-family: var(--fs-mono); font-size: 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.engines-strip .prompt { color: var(--dim); }
.engines-strip .cursor {
  display: inline-block; width: 10px; height: 1.1em; background: var(--ink);
  vertical-align: -0.15em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { background: transparent; } }
.engine-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  font-family: var(--fs-mono); font-size: 12px;
  background: var(--cream);
}
.engine-chip.active { background: var(--orange); }

/* ---------- Hero form band ---------- */
.hero-form {
  margin-top: 28px;
  border: 1px dashed var(--ink);
  padding: 28px;
}
.hero-form .lede { font-size: 14px; line-height: 1.5; max-width: 60ch; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr 220px;
  gap: 10px; margin-top: 18px;
}
.form-row .stacked { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }

/* ---------- Triad ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tri-headline { font-family: var(--fs-display); font-size: 44px; text-transform: uppercase; line-height: 0.95; }
.tri-body { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.tri-viz { margin-top: 22px; height: 180px; background: var(--cream-2); border: 1px solid var(--ink); position: relative; overflow: hidden; }
.pos-viz { height: auto; min-height: 180px; overflow: visible; }

/* sparkline */
.sparkline { width: 100%; height: 100%; }

/* rank list (Position.exe) */
.pos-viz { display: flex; flex-direction: column; overflow: visible !important; }
.pos-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 14px 8px;
  font-family: var(--fs-mono); font-size: 11px; color: var(--dim);
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px dashed rgba(30,26,20,.2);
  flex-shrink: 0;
}
.pos-caption .pos-active { color: var(--ink); font-size: 11px; }
.pos-caption .pos-active b { color: var(--orange); }
.pos-caption .pos-prompt { font-size: 10px; }
.rank-list { list-style: none; padding: 8px 14px 10px; font-size: 11px; display: grid; gap: 5px; flex: 1; }
.rank-list li { display: grid; grid-template-columns: 20px 100px 1fr 36px; gap: 8px; align-items: center; cursor: default; }
.rank-list .n { color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 700; }
.rank-list .pos-name { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.rank-list .bar { height: 7px; background: var(--ink); position: relative; }
.rank-list .bar::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: var(--rest, 40%); background: var(--cream-2); }
.rank-list .v { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.rank-list li.me .pos-name { color: var(--orange); font-weight: 700; }
.rank-list li.me .bar, .rank-list li.hover .bar { background: var(--bar-color, var(--orange)); }

/* sentiment gauge */
.gauge-wrap { padding: 14px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.gauge {
  height: 18px; border: 1px solid var(--ink); position: relative; background: var(--cream);
  background-image: linear-gradient(to right, rgba(30,26,20,0.08) 50%, transparent 50%);
  background-size: 8px 100%;
}
.gauge .needle { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--orange); box-shadow: 0 0 0 1px var(--ink); }

/* ---------- Citations table ---------- */
.cite-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.cite-left { padding: 32px 36px; }
.cite-right { padding: 28px 32px; border-left: 1px dashed var(--ink); background: var(--cream-2); display: flex; flex-direction: column; }
.cite-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cite-table th, .cite-table td {
  padding: 14px 10px; text-align: left;
  border-bottom: 1px dashed var(--ink);
  font-variant-numeric: tabular-nums;
}
.cite-table th { font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.cite-table td.num { text-align: right; }
.cite-table .brand-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cite-table .brand-cell .dot { width: 10px; height: 10px; background: var(--ink); }
.cite-table .trend-up { color: var(--green); }
.cite-table .trend-dn { color: var(--red); }

.ascii-art {
  font-family: var(--fs-mono); white-space: pre; font-size: 11px; line-height: 1.1;
  color: var(--ink);
}

/* ---------- Brand_Mentions + AI_ASSISTANT ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.the-answer-header {
  font-family: var(--fs-display); font-size: 56px; text-transform: uppercase;
  line-height: 1; color: var(--orange); letter-spacing: 0.01em;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.the-answer-header .k { background: var(--orange); color: var(--panel-dark); padding: 2px 12px; }
.dotline { border-bottom: 1px dashed var(--orange); margin: 18px 0; }

.assistant .panel-body { padding: 24px 28px 28px; }
.assistant .q { color: var(--orange); font-size: 13px; }
.assistant .meta { color: #8a7d68; font-size: 12px; margin: 8px 0 14px; }
.assistant .stream { font-size: 13px; line-height: 1.65; color: #E8DFCB; }
.assistant .stream strong { color: #fff; }
.assistant .stream ol { margin: 8px 0 0 18px; }
.assistant .stream li { margin-top: 4px; }
.assistant .stream .mention { background: var(--orange); color: var(--panel-dark); padding: 0 4px; }

/* ---------- Sources ---------- */
.sources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sources-left { padding: 36px; border-right: 1px dashed var(--ink); }
.sources-right { padding: 36px; background: var(--cream-2); }

.donut-wrap { display: flex; align-items: center; gap: 24px; }
.src-list { list-style: none; flex: 1; display: grid; gap: 8px; font-size: 13px; }
.src-list li { display: grid; grid-template-columns: 1fr 52px 60px 96px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.src-list .dom { display: flex; align-items: center; gap: 8px; }
.src-list .sq { width: 10px; height: 10px; background: var(--ink); }

.tag-pill {
  display: inline-flex; padding: 2px 8px;
  font-family: var(--fs-mono); font-size: 11px;
  border: 1px solid var(--ink); background: var(--cream);
  justify-content: center; text-align: center;
}
.tag-pill.ugc { background: #F3C6A6; }
.tag-pill.competitor { background: #E8B6B0; }
.tag-pill.corporate { background: #B8D4E7; }
.tag-pill.other { background: #D9CDE7; }
.tag-pill.editorial { background: #BFE0CE; }

/* ---------- Competitive matrix ---------- */
.matrix {
  position: relative; aspect-ratio: 16/10;
  border: 1px solid var(--ink);
  background: var(--cream-2);
  margin-top: 12px;
  background-image:
    linear-gradient(to right, rgba(30,26,20,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,26,20,0.08) 1px, transparent 1px);
  background-size: calc(100%/10) calc(100%/10);
}
.matrix .axis-x, .matrix .axis-y {
  position: absolute; background: var(--ink);
}
.matrix .axis-x { left: 0; right: 0; top: 50%; height: 1px; }
.matrix .axis-y { top: 0; bottom: 0; left: 50%; width: 1px; }
.matrix .q-label {
  position: absolute; font-family: var(--fs-display); font-size: 22px;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink);
  padding: 10px 14px;
}
.matrix .q-label.tl { top: 8px; left: 10px; }
.matrix .q-label.tr { top: 8px; right: 10px; }
.matrix .q-label.bl { bottom: 8px; left: 10px; }
.matrix .q-label.br { bottom: 8px; right: 10px; }
.matrix .axis-lbl {
  position: absolute; font-family: var(--fs-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.matrix .axis-lbl.x { bottom: -22px; left: 50%; transform: translateX(-50%); }
.matrix .axis-lbl.y { top: 50%; left: -54px; transform: translateY(-50%) rotate(-90deg); }
.dot-brand {
  position: absolute; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dot-brand .sq {
  width: 16px; height: 16px; background: var(--ink);
}
.dot-brand.me .sq { background: var(--orange); outline: 2px solid var(--ink); outline-offset: 2px; }
.dot-brand .lbl {
  font-family: var(--fs-mono); font-size: 10px; background: var(--cream); padding: 1px 4px;
  border: 1px solid var(--ink); white-space: nowrap;
}
/* Larger matrix dots (logo-based) */
.dot-sq {
  width: 38px; height: 38px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dot-sq img {
  width: 100%; height: 100%; object-fit: contain;
}

/* ---------- Workflow ASCII ---------- */
.workflow {
  padding: 40px;
  background: var(--panel-dark);
  color: var(--cream);
  font-family: var(--fs-mono);
  white-space: pre;
  overflow-x: auto;
  font-size: 12.5px; line-height: 1.4;
}
.workflow .node { color: var(--orange); }
.workflow .line { color: #8a7d68; }
.workflow .ok { color: var(--green); }

/* ---------- Agencies ---------- */
.agencies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.agencies-left { padding: 48px; border-right: 1px dashed var(--ink); }
.agencies-right { padding: 48px; background: var(--cream-2); }
.chk-list { list-style: none; display: grid; gap: 10px; font-size: 13px; }
.chk-list li::before { content: '[✓] '; color: var(--orange); font-weight: 700; }

.client-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.client-slot {
  border: 1px dashed var(--ink);
  aspect-ratio: 2.4/1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-mono); font-size: 10px; color: var(--dim);
  background: var(--cream);
}
.client-slot-logo {
  padding: 8px; gap: 0;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-col {
  border: 1px dashed var(--ink);
  padding: 24px;
  background: var(--cream);
  display: flex; flex-direction: column; gap: 14px;
}
.price-col.highlight { background: var(--panel-dark); color: var(--cream); border-style: solid; }
.price-col.highlight .price-feat li::before { color: var(--orange); }
.price-col.highlight .muted { color: #a89a81; }
.price-col h4 { font-family: var(--fs-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.price-amount { font-family: var(--fs-display); font-size: 56px; line-height: 1; }
.price-amount .per { font-family: var(--fs-mono); font-size: 12px; color: var(--dim); margin-left: 6px; }
.price-col.highlight .price-amount .per { color: #a89a81; }
.price-feat { list-style: none; font-size: 12.5px; display: grid; gap: 8px; }
.price-feat li::before { content: '[✓] '; color: var(--ink); }
.price-feat li.off { color: var(--dim); }
.price-feat li.off::before { content: '[-] '; color: var(--dim); }

/* ---------- Trust ---------- */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-cell { padding: 20px 24px; border-right: 1px dashed var(--ink); font-family: var(--fs-mono); font-size: 13px; }
.trust-cell:last-child { border-right: 0; }
.trust-cell .k { color: var(--green); margin-right: 6px; }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.logo-slot {
  border: 1px dashed var(--ink); aspect-ratio: 2.6/1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-mono); font-size: 11px; color: var(--dim);
  letter-spacing: .04em;
}

/* ---------- Testimonial ---------- */
.testi { padding: 64px 48px; text-align: left; }
.testi blockquote {
  font-family: var(--fs-mono); font-size: 22px; line-height: 1.4;
  max-width: 32ch; text-wrap: balance;
}
.testi .attrib { margin-top: 24px; font-family: var(--fs-mono); font-size: 12px; color: var(--dim); }

/* ---------- Waitlist CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; }
.cta-left { padding: 56px 48px; }
.cta-right { padding: 48px; background: var(--cream-2); border-left: 1px dashed var(--ink); position: relative; overflow: hidden; min-height: 420px; }
.cta-right .dot-field {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,26,20,0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}
.floating-cards { position: relative; height: 100%; }
.f-card {
  position: absolute; width: 230px;
  background: var(--cream); border: 1px solid var(--ink);
  padding: 12px 14px; font-family: var(--fs-mono); font-size: 12px;
  box-shadow: 4px 4px 0 0 var(--ink);
}
.f-card .top { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.f-card .top .sq { width: 10px; height: 10px; background: var(--ink); }
.f-card .body { color: var(--ink-2); }
.f-card .score { display: flex; justify-content: space-between; font-size: 11px; margin-top: 8px; color: var(--dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 24px; }
.foot-col h5 { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.foot-col ul { list-style: none; display: grid; gap: 6px; font-size: 13px; }
.foot-col a:hover { color: var(--orange); }
.foot-bar {
  margin-top: 32px; padding-top: 16px; border-top: 1px dashed var(--ink);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--fs-mono); font-size: 12px; color: var(--dim);
}
.status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.status .led { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 0 2px rgba(61,168,116,0.2); }

/* ---------- Engine marks ---------- */
.engine-mark {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  background: var(--cream);
  font-family: var(--fs-mono); font-size: 12px; font-weight: 600;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: default;
}
.engine-mark:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.engine-mark.active { background: var(--ink); color: var(--cream); }
.em-sigil {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
  border: 1px solid var(--ink);
}
.engine-mark.active .em-sigil { border-color: var(--cream); }
.em-name { letter-spacing: 0.02em; }

.engine-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.engine-grid .engine-mark { width: auto; justify-content: flex-start; }

/* ---------- Hover interactions everywhere ---------- */
.tri-viz { transition: transform .18s ease, background .18s ease; }
.panel:hover .tri-viz { background: #EDE2CA; }

.btn { transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: none; }

.rank-list li { transition: transform .12s ease; }
.rank-list li:hover { transform: translateX(4px); }
.rank-list li:hover .bar { background: var(--orange); }

.cite-table tr { transition: background .1s ease; }
.cite-table tbody tr:hover { background: var(--cream-2); }
.cite-table tbody tr:hover .brand-cell .dot { background: var(--orange); }

.dot-brand { transition: transform .15s ease; cursor: pointer; }
.dot-brand:hover { transform: translate(-50%,-50%) scale(1.15); z-index: 3; }
.dot-brand:hover .sq { background: var(--orange); }
.dot-brand:hover .lbl { background: var(--ink); color: var(--cream); }

.f-card { transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; }
.f-card:hover { transform: rotate(0deg) translate(-2px,-4px) !important; box-shadow: 8px 8px 0 var(--ink); z-index: 4; }

.client-slot, .logo-slot { transition: background .12s ease, color .12s ease; }
.client-slot:hover, .logo-slot:hover { background: var(--ink); color: var(--orange); }

.price-col { transition: transform .18s ease, box-shadow .18s ease; }
.price-col:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active::after { transform: scaleX(1); }

/* ---------- Filler: workflow right panel ---------- */
.workflow-side { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.workflow-stats {
  background: var(--panel-dark-2);
  border: 1px dashed #3a3328;
  padding: 24px;
  color: var(--cream);
  display: grid; gap: 18px;
  font-family: var(--fs-mono); font-size: 12px;
}
.workflow-stats .big { font-family: var(--fs-display); font-size: 44px; line-height: 1; color: var(--orange); }
.workflow-stats .sub { color: #a89a81; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.workflow-stats .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #3a3328; }
.workflow-stats .row:last-child { border-bottom: 0; }

/* ---------- Testimonial fuller layout ---------- */
.testi-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; }
.testi-left { padding: 64px 56px; }
.testi-right { padding: 56px; border-left: 1px dashed var(--ink); background: var(--cream-2); display: grid; gap: 14px; align-content: center; }
.testi-stat {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px dashed var(--ink); padding-bottom: 12px;
}
.testi-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.testi-stat .n { font-family: var(--fs-display); font-size: 48px; line-height: 1; color: var(--orange); }
.testi-stat .l { font-size: 12px; color: var(--ink-2); max-width: 28ch; }

/* ---------- Sources fuller ---------- */
.sources-extra {
  margin-top: 22px;
  border: 1px dashed var(--ink);
  padding: 22px;
  background: var(--cream);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.sources-extra .item { display: grid; gap: 4px; font-family: var(--fs-mono); font-size: 12px; }
.sources-extra .item .n { font-family: var(--fs-display); font-size: 36px; line-height: 1; }
.sources-extra .item .l { color: var(--dim); letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }

/* ---------- Authority grid (fills bottom of Sources) ---------- */
.authority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.auth-card { border: 1px dashed var(--ink); padding: 12px 14px; background: var(--cream); transition: background .15s ease, transform .15s ease; }
.auth-card:hover { background: var(--cream-2); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.auth-lbl { font-family: var(--fs-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.auth-dom { font-family: var(--fs-mono); font-size: 14px; font-weight: 600; margin-top: 4px; }
.auth-delta { font-family: var(--fs-mono); font-size: 12px; margin-top: 6px; }
.auth-delta.up { color: var(--green); }
.auth-delta.dn { color: var(--red); }

/* ---------- Competitive matrix legend ---------- */
.matrix-wrap { position: relative; }
.comp-legend { margin-top: 28px; border-top: 1px dashed var(--ink); padding-top: 18px; }
.comp-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.comp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--ink); font-family: var(--fs-mono); font-size: 11px; background: var(--cream); transition: transform .12s ease, box-shadow .12s ease; }
.comp-chip:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.comp-chip.me { background: var(--ink); color: var(--cream); }
.comp-chip .tag { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.comp-chip.me .tag { color: var(--orange); }

/* ---------- Pricing (5-column like user's screenshot) ---------- */
.price-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.price-col { position: relative; }
.price-sub { font-size: 12px; color: var(--dim); line-height: 1.4; min-height: 34px; }
.price-col.highlight .price-sub { color: #a89a81; }
.price-badge {
  position: absolute; top: -1px; right: 12px;
  background: var(--orange); color: var(--ink);
  border: 1px solid var(--ink); border-top: 0;
  padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.price-col.highlight { border: 2px solid var(--orange) !important; background: var(--panel-dark) !important; color: var(--cream); }

/* ---------- Engine grid — 4 columns ---------- */
.engine-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.engine-grid-4 .engine-mark { padding: 14px 16px; justify-content: flex-start; }
.engine-grid-4 .em-sigil { width: 28px; height: 28px; font-size: 14px; font-weight: 700; }
.engine-grid-4 .em-name { font-size: 14px; }

/* ---------- Client logos (Something Inc. brands) ---------- */
.client-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.client-logo {
  border: 1px dashed var(--ink); aspect-ratio: 2.6/1;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); transition: background .15s ease, color .15s ease, transform .15s ease;
}
.client-logo:hover { background: var(--ink); color: var(--orange); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--orange); }
.cl-name { font-family: var(--fs-display); font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }

/* ---------- Testimonial aligned stats ---------- */
.testi-stat { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; }
.testi-stat .n { font-family: var(--fs-display); font-size: 42px; line-height: 1; color: var(--orange); text-align: left; }
.testi-stat .l { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.testi-bottom { margin-top: 36px; border-top: 1px dashed var(--ink); padding-top: 18px; }

/* ---------- Waitlist floating cards — centered vertically ---------- */
.floating-cards-centered {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center; align-items: center;
  height: 100%;
}
.floating-cards-centered .f-card { position: static; width: 82%; }
.cta-right { display: flex; align-items: center; }

/* ---------- Index teaser ---------- */
.index-teaser {
  border: 1px solid var(--ink);
  background: var(--panel-dark);
  color: var(--cream);
  padding: 36px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center;
}
.index-teaser h3 { font-family: var(--fs-display); font-size: 48px; line-height: 1; text-transform: uppercase; }
.index-teaser .lb { display: grid; gap: 8px; font-family: var(--fs-mono); font-size: 13px; }
.index-teaser .lb .row {
  display: grid; grid-template-columns: 24px 1fr 60px; gap: 12px;
  padding: 8px 10px; border: 1px dashed #3a3328;
  transition: background .15s ease;
}
.index-teaser .lb .row:hover { background: #2a2219; }
.index-teaser .lb .n { color: var(--orange); font-variant-numeric: tabular-nums; }
.index-teaser .lb .v { text-align: right; color: #E8DFCB; }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 280px;
  background: var(--cream); border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  font-family: var(--fs-mono); font-size: 12px;
}
.tweaks header {
  padding: 8px 12px; background: var(--ink); color: var(--cream);
  display: flex; align-items: center; gap: 8px;
}
.tweaks header .bars { letter-spacing: -2px; }
.tweaks header button { margin-left: auto; color: var(--cream); }
.tweaks .tbody { padding: 14px; display: grid; gap: 14px; }
.tweaks label { display: grid; gap: 6px; }
.tweaks .row { display: flex; align-items: center; gap: 8px; }
.tweaks .sw { display: inline-flex; gap: 4px; }
.tweaks .sw button {
  border: 1px solid var(--ink); padding: 4px 8px; font-size: 11px; background: var(--cream);
}
.tweaks .sw button.on { background: var(--orange); }

/* ---------- Small ---------- */
.divider-dashed { border: 0; border-top: 1px dashed var(--ink); margin: 20px 0; }

/* ======================================================
   HAMBURGER + MOBILE NAV
   ====================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger.open { background: var(--ink); }
.hamburger.open span { background: var(--cream); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 57px; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  border-top: 1px solid var(--ink);
  z-index: 200;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel > a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px dashed var(--ink);
  font-family: var(--fs-mono);
  font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.mobile-nav-panel > a:hover,
.mobile-nav-panel > a.active { color: var(--orange); }
.mobile-nav-section {
  padding: 10px 24px 8px;
  font-family: var(--fs-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim); background: var(--cream-2);
  border-bottom: 1px dashed var(--ink);
}
.mobile-nav-ctas {
  margin-top: auto; padding: 20px 24px;
  display: flex; gap: 10px;
  border-top: 1px solid var(--ink);
}
.hdr-mobile { display: none; margin-left: auto; align-items: center; gap: 8px; }

/* ======================================================
   TABLET  ≤ 960px
   ====================================================== */
@media (max-width: 960px) {
  .hero-grid, .two-col, .cite-split, .sources-grid, .agencies-grid, .cta-grid { grid-template-columns: 1fr; }
  .triad, .price-grid, .trust-row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-body { padding: 28px; }
  .price-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .engine-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .workflow-side { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-left { padding: 40px 36px; }
  .testi-right { padding: 36px; border-left: 0; border-top: 1px dashed var(--ink); }
  .agencies-left { border-right: 0; border-bottom: 1px dashed var(--ink); }
  .cite-right { border-left: 0; border-top: 1px dashed var(--ink); }
  .docs-layout { grid-template-columns: 220px 1fr; }
  .docs-toc { display: none; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .article-meta-col { position: static; }
}

/* ======================================================
   MOBILE  ≤ 768px
   ====================================================== */
@media (max-width: 768px) {
  /* Header: hide desktop chrome, show hamburger */
  .pv-nav, .hdr-clock-wrap, .hdr-auth { display: none !important; }
  .hdr-mobile { display: flex !important; }
  .hamburger { display: flex; }
  .site-header .inner { padding: 10px 16px; gap: 12px; }

  /* Layout */
  .wrap { padding: 0 14px; }
  .panel-body { padding: 18px !important; }
  .panel-body.compact { padding: 14px !important; }
  .stack > * + * { margin-top: 20px; }

  /* Typography scale-down */
  .page-hero h1 { font-size: clamp(40px, 11vw, 72px) !important; line-height: .9; }
  .article-hero h1 { font-size: clamp(38px, 10vw, 64px) !important; }
  h2.display { font-size: clamp(32px, 8vw, 52px) !important; }
  h3.display { font-size: clamp(24px, 6vw, 36px) !important; }
  .page-hero { padding: 36px 0 24px; }

  /* Triad: single column */
  .triad { grid-template-columns: 1fr !important; }
  .tri-viz { height: 160px; }

  /* Pricing: single column on mobile */
  .price-grid-5 { grid-template-columns: 1fr !important; }

  /* Trust: 2 cols, remove right borders so rows stack cleanly */
  .trust-row { grid-template-columns: 1fr 1fr !important; }
  .trust-cell { border-bottom: 1px dashed var(--ink) !important; }
  .trust-cell:nth-child(odd) { border-right: 1px dashed var(--ink); }
  .trust-cell:nth-child(even) { border-right: 0 !important; }

  /* Engine grid: 2×2 */
  .engine-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Client logos: 2 cols */
  .client-logos { grid-template-columns: repeat(2, 1fr) !important; }
  .client-board { grid-template-columns: repeat(3, 1fr) !important; }

  /* Sources: drop tag-pill */
  .src-list li { grid-template-columns: 1fr 44px 52px; gap: 8px; }
  .src-list li .tag-pill { display: none; }

  /* Workflow: single col, scrollable pre */
  .workflow-side { grid-template-columns: 1fr !important; }
  .workflow { font-size: 9.5px; padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Citations */
  .cite-left { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px !important; }
  .cite-right { padding: 18px 16px !important; }
  .ascii-art { font-size: 9px; line-height: 1.15; }

  /* Testimonial */
  .testi-left { padding: 24px 20px !important; }
  .testi-right { padding: 20px !important; }
  .testi-stat { grid-template-columns: 90px 1fr; gap: 10px; }
  .testi-stat .n { font-size: 36px; }
  .testi-bottom { margin-top: 24px; }

  /* Agencies */
  .agencies-left { padding: 24px 20px !important; }
  .agencies-right { padding: 24px 20px !important; }

  /* CTA Waitlist */
  .cta-left { padding: 36px 24px !important; }
  .cta-right { min-height: 240px !important; padding: 24px !important; }
  .floating-cards-centered .f-card { width: 96%; }

  /* Footer: 2 cols */
  .foot-grid { grid-template-columns: 1fr 1fr !important; }

  /* Glossary */
  .glossary-entry { grid-template-columns: 1fr; gap: 10px; }
  .glossary-section h3 { font-size: 60px; }
  .glossary-abc a { width: 30px; height: 30px; }

  /* Docs */
  .docs-layout { grid-template-columns: 1fr !important; }
  .docs-sidenav { display: none; }

  /* Content grid */
  .content-grid { grid-template-columns: 1fr !important; }
  .content-grid.two { grid-template-columns: 1fr !important; }

  /* Featured post */
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .featured-post .body { padding: 24px; }
  .featured-post .body h2 { font-size: 44px; }

  /* Article */
  .article-layout { grid-template-columns: 1fr !important; }
  .article-hero { padding: 28px 0 24px; }
  .article-cover { font-size: 80px; }
  .article-body h2 { font-size: 32px; }
  .article-body p { font-size: 15px; }

  /* Matrix: scale labels, constrain */
  .matrix .q-label { font-size: 13px; padding: 5px 7px; }
  .dot-brand .lbl { font-size: 8px; padding: 1px 3px; }
  .dot-sq { width: 28px; height: 28px; }
  .matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Gauge */
  .gauge-wrap { padding: 10px; }

  /* Rank list */
  .rank-list li { grid-template-columns: 18px 86px 1fr 30px; gap: 6px; }

  /* Comp legend */
  .comp-list { gap: 6px; }
  .comp-chip { padding: 4px 8px; font-size: 10px; }

  /* Hero */
  .hero-right { aspect-ratio: 4/3; min-height: 280px; }
  .engines-strip { padding: 10px 0; gap: 8px; font-size: 12px; }
  .engines-strip .muted { display: none; }

  /* Pricing FAQ */
  .pricing-faq { grid-template-columns: 1fr !important; }
}

/* ======================================================
   SMALL PHONES  ≤ 480px
   ====================================================== */
@media (max-width: 480px) {
  .panel-body { padding: 12px !important; }
  .wrap { padding: 0 10px; }
  .site-header .inner { padding: 8px 12px; }
  .logo-wordmark img { height: 22px !important; }

  /* Trust: single column */
  .trust-row { grid-template-columns: 1fr !important; }
  .trust-cell { border-right: 0 !important; border-bottom: 1px dashed var(--ink) !important; }
  .trust-cell:last-child { border-bottom: 0 !important; }

  /* Footer: single column */
  .foot-grid { grid-template-columns: 1fr !important; }

  /* Rank list: tighter columns */
  .rank-list li { grid-template-columns: 18px 72px 1fr 28px; gap: 4px; font-size: 10px; }

  /* Client board: 2 columns */
  .client-board { grid-template-columns: repeat(2, 1fr) !important; }

  /* Sources extra: 2 cols */
  .sources-extra { grid-template-columns: repeat(2, 1fr); }

  /* Authority grid: single col */
  .authority-grid { grid-template-columns: 1fr; }

  /* Workflow stats: smaller numbers */
  .workflow-stats .big { font-size: 36px; }

  /* Agencies */
  .agencies-left, .agencies-right { padding: 18px 14px !important; }

  /* CTA */
  .cta-left { padding: 24px 16px !important; }
  .cta-right { padding: 16px !important; min-height: 200px !important; }

  /* Article */
  .article-body h2 { font-size: 28px; }
  .article-body p, .article-body li { font-size: 14px; }
  .article-hero .byline { flex-direction: column; gap: 6px; }
}
