:root {
  --bg: #eee8dc;
  --paper: #fbf8f1;
  --paper-grid: rgba(23, 25, 21, 0.035);
  --panel: #fffdf8;
  --ink: #171915;
  --soft-ink: #31362f;
  --muted: #687067;
  --line: #d3c8b8;
  --line-dark: #bdb19d;
  --green: #315f49;
  --green-soft: #e3eee6;
  --rust: #9b4f35;
  --rust-soft: #f4e5df;
  --gold: #b7842c;
  --gold-soft: #f5ead3;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(238, 232, 220, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper-grid) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.checker-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 98px) clamp(18px, 4vw, 36px);
}

.checker-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lead {
  max-width: 610px;
  color: #4e574e;
  font-size: 17px;
  line-height: 1.62;
}

.promise {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.68);
  color: var(--soft-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
}

.light-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.light-flow span {
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.66);
  padding: 7px 8px;
}

.console-panel,
.new-panel,
.report-summary,
.report-list,
.checklist-item,
.prompt-index-shell,
.pricing article {
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.82);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-dark);
  padding: 11px 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.console-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.checker-form {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-right: 1px solid var(--line-dark);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

label small {
  color: #8c9087;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 95, 73, 0.12);
}

.primary-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-button:hover {
  background: var(--green);
}

.signal-preview {
  display: grid;
  align-content: stretch;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr 62px;
  border-bottom: 1px solid #ded5c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span,
.signal-row strong {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 10px;
}

.signal-row span {
  border-right: 1px solid #ded5c7;
  color: #575d54;
}

.tone-good,
.tone-ok,
.ok {
  color: var(--green);
}

.tone-warn,
.warn {
  color: var(--gold);
}

.tone-bad,
.miss {
  color: var(--rust);
}

.report-section,
.prompt-library,
.pricing,
.next-pages,
.article-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 36px);
}

.standalone-page {
  min-height: calc(100vh - 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.58;
}

.summary-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 0.75fr));
}

.score-cell {
  min-height: 80px;
  padding: 13px;
  border-right: 1px solid var(--line-dark);
}

.score-cell:last-child {
  border-right: 0;
}

.score-cell span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.score-cell strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.report-list {
  margin-top: 12px;
  border-bottom: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(82px, 0.58fr) minmax(98px, 0.72fr) minmax(150px, 1fr) minmax(150px, 1fr);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.ledger-row.head,
.prompt-row.head {
  color: var(--muted);
  background: rgba(23, 25, 21, 0.04);
  text-transform: uppercase;
}

.ledger-row span,
.prompt-row span {
  min-height: 40px;
  padding: 10px;
  border-right: 1px solid #ded5c7;
}

.ledger-row span:last-child,
.prompt-row span:last-child {
  border-right: 0;
}

.status-ranked_cited,
.status-mentioned,
.status-not_mentioned {
  font-weight: 850;
}

.status-ranked_cited {
  color: var(--green);
}

.status-mentioned {
  color: var(--gold);
}

.status-not_mentioned {
  color: var(--rust);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.checklist-item {
  padding: 14px;
}

.checklist-item h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.checklist-item p,
.pricing li,
.footer {
  color: var(--muted);
  line-height: 1.48;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.prompt-library {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 232, 220, 0.54);
}

.prompt-library > .section-heading,
.prompt-index-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.prompt-index-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.filters {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 12px;
  border-right: 1px solid var(--line-dark);
}

.filters span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.chip-row {
  display: grid;
  gap: 2px;
}

.chip {
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-align: left;
}

.chip.is-active {
  color: var(--green);
  font-weight: 900;
}

.prompt-grid {
  display: grid;
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) minmax(92px, 0.68fr) minmax(84px, 0.62fr) minmax(145px, 1fr) minmax(170px, 0.9fr);
  border-bottom: 1px solid #ded5c7;
  background: rgba(255, 253, 248, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.prompt-row:last-child {
  border-bottom: 0;
}

.prompt-action {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.pricing {
  max-width: 1180px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.next-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.72);
  padding: 18px;
}

.next-card:hover {
  border-color: var(--ink);
}

.next-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.next-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pricing article {
  padding: 18px;
}

.highlight-plan {
  background: rgba(227, 238, 230, 0.62);
}

.price {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 750;
}

.pricing ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.footer {
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}

.footer p {
  margin: 0;
}

.article-page {
  max-width: 1120px;
}

.article-hero {
  max-width: 860px;
  padding-bottom: clamp(28px, 5vw, 54px);
}

.article-hero h1 {
  max-width: 900px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.article-meta span {
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.66);
  padding: 7px 8px;
}

.article-section {
  padding: clamp(34px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.article-section > .section-heading {
  max-width: 820px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.article-checklist {
  align-items: stretch;
}

.guide-item,
.faq-item,
.article-cta {
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.78);
}

.guide-item {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
}

.guide-item-highlight {
  background: rgba(227, 238, 230, 0.7);
}

.item-number {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.guide-item h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.guide-item p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.guide-item a,
.faq-item a {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-cta {
  display: grid;
  gap: 12px;
  margin: clamp(28px, 6vw, 62px) 0;
  padding: clamp(22px, 5vw, 36px);
  text-align: center;
}

.article-cta h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta-link {
  justify-self: center;
  min-width: min(100%, 320px);
  padding: 0 18px;
}

.faq-section {
  padding-top: clamp(34px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.faq-item {
  padding: 18px;
}

.faq-item h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
}

@media (max-width: 980px) {
  .checker-shell,
  .console-body,
  .summary-strip,
  .checklist,
  .pricing-grid,
  .next-grid,
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checker-shell {
    min-height: auto;
  }

  .checker-form {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .ledger-row,
  .prompt-row {
    min-width: 820px;
  }

  .report-list,
  .prompt-grid {
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .checker-shell,
  .console-body,
  .summary-strip,
    .checklist,
    .pricing-grid,
    .next-grid,
    .prompt-index-shell,
    .checklist-grid,
    .faq-list {
    grid-template-columns: 1fr;
  }

  .filters {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}
