body {
  background: #f8f8fb;
}

.text-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 18px;
}

.text-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 36px;
  align-items: center;
  border: 1px solid #e4e8f0;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.11), rgba(255, 255, 255, 0) 34%),
    linear-gradient(115deg, rgba(92, 141, 220, 0.13), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  box-shadow: 0 18px 42px rgba(41, 44, 61, 0.07);
  overflow: hidden;
  padding: 46px 54px;
}

.text-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #2c2f3d;
  font-size: 58px;
  line-height: 1.04;
}

.text-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: #555b6d;
  font-size: 17px;
  line-height: 1.6;
}

.hero-subtitle {
  margin-top: 22px;
}

.hero-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
  margin-top: 26px;
}

.hero-keyword-row span,
.citation-query-strip span,
.tag-list span,
.status-pill {
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #343746;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.text-hero-visual,
.seo-visual-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 270px;
  border: 1px solid #e3e7ef;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.11), rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, rgba(80, 132, 220, 0.12), rgba(255, 255, 255, 0) 64%),
    #fbfcff;
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.08);
}

.scan-stack,
.output-stack,
.seo-text-sheet,
.seo-data-card {
  min-height: 188px;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.1);
}

.scan-stack,
.seo-text-sheet {
  border: 1px solid #e3e7ef;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(-2deg);
}

.output-stack,
.seo-data-card {
  background: #2c2f3d;
  color: #ffffff;
  transform: rotate(2deg);
}

.scan-stack span,
.output-stack span,
.seo-text-sheet span,
.seo-data-card span {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 90, 79, 0.12);
  color: #ef3f38;
  font-size: 12px;
  font-weight: 950;
  padding: 5px 10px;
}

.output-stack span,
.seo-data-card span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.scan-stack strong,
.output-stack strong,
.seo-text-sheet strong,
.seo-data-card strong {
  display: block;
  margin-top: 18px;
  color: inherit;
  font-size: 22px;
  line-height: 1.12;
}

.scan-stack i,
.output-stack i,
.seo-text-sheet i,
.seo-data-card i {
  display: block;
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e4e8f0;
}

.output-stack i,
.seo-data-card i {
  background: rgba(255, 255, 255, 0.24);
}

.scan-stack i:nth-of-type(2),
.output-stack i:nth-of-type(2),
.seo-text-sheet i:nth-of-type(2),
.seo-data-card i:nth-of-type(2) {
  width: 76%;
}

.scan-stack i:nth-of-type(3),
.seo-text-sheet i:nth-of-type(3) {
  width: 58%;
}

.scan-core {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ff5a4f;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(255, 90, 79, 0.24);
}

.text-tool-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 34px;
}

.paste-panel,
.results-panel,
.text-seo-card,
.text-faq-section {
  border: 1px solid #dfe3ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(41, 44, 61, 0.06);
}

.paste-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.upload-zone {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 2px dashed #d5dce8;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.09), rgba(255, 255, 255, 0) 35%),
    linear-gradient(145deg, rgba(92, 141, 220, 0.1), rgba(255, 255, 255, 0) 68%),
    #fbfcff;
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upload-zone.is-dragging {
  border-color: #ff5a4f;
  box-shadow: 0 16px 32px rgba(255, 90, 79, 0.12);
  transform: translateY(-1px);
}

.upload-zone input {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(255, 90, 79, 0.22);
}

.upload-zone h2 {
  margin: 0;
  color: #2c2f3d;
  font-size: 24px;
  line-height: 1.12;
}

.upload-zone p {
  margin: 7px 0 0;
  color: #62687a;
  font-size: 14px;
  line-height: 1.55;
}

.upload-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.upload-format-row span {
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  background: #ffffff;
  color: #343746;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.upload-status {
  margin: -6px 0 0;
  color: #656b7d;
  font-size: 13px;
  font-weight: 800;
}

.upload-status[data-status="error"] {
  color: #c92d25;
}

.paste-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 16px;
}

.paste-input-label,
.option-row label,
.reference-detail label,
.output-grid label {
  display: grid;
  gap: 8px;
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 900;
}

.paste-input-label textarea,
.reference-detail textarea,
.reference-detail input,
.reference-detail select,
.output-grid textarea,
.option-row select {
  width: 100%;
  border: 1px solid #d9deea;
  border-radius: 12px;
  background: #f8f9fc;
  color: #2c2f3d;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
}

.paste-input-label textarea {
  min-height: 300px;
  resize: vertical;
}

.input-brief {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #e2e6ef;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.08), rgba(255, 255, 255, 0) 36%),
    #fbfcff;
  padding: 18px;
}

.input-brief h2 {
  margin: 0;
  color: #2c2f3d;
  font-size: 25px;
}

.input-brief p {
  margin: 0;
  color: #62687a;
  line-height: 1.55;
}

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

.input-meter span {
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  background: #ffffff;
  color: #62687a;
  font-size: 12px;
  font-weight: 850;
  padding: 10px;
}

.input-meter strong {
  display: block;
  color: #2c2f3d;
  font-size: 20px;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.action-row,
.panel-actions,
.export-toolbar,
.bulk-review-toolbar,
.list-filters,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.primary-action,
.secondary-action,
.export-toolbar button,
.bulk-review-toolbar button,
.list-filters button,
.reference-row button,
.match-card button {
  border: 1px solid #dce1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #2c2f3d;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
}

.primary-action {
  border-color: #1f222f;
  background: #ff5a4f;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 90, 79, 0.18);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.pipeline-step {
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #f8f9fc;
  color: #646a7a;
  font-size: 12px;
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.pipeline-step.is-active {
  border-color: #ffb3ad;
  background: #fff0ed;
  color: #df3028;
}

.pipeline-step.is-done {
  border-color: #b9e8d2;
  background: #effcf5;
  color: #067a46;
}

.status-line {
  margin: 0;
  color: #656b7d;
  font-weight: 750;
}

.status-line[data-status="error"] {
  color: #c92d25;
}

.results-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
}

.panel-heading,
.reference-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.reference-list-header h3,
.quality-block h3,
.report-grid h3,
.reference-detail h3 {
  margin: 0;
  color: #2c2f3d;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.score-card {
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  background: #fbfcff;
  padding: 14px;
}

.score-card strong {
  display: block;
  color: #2c2f3d;
  font-size: 23px;
}

.score-card span {
  color: #656b7d;
  font-size: 12px;
  font-weight: 850;
}

.quality-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #dcefe5;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 252, 245, 0.95), rgba(255, 255, 255, 0.9));
  padding: 18px;
}

.quality-block p {
  margin: 8px 0 0;
  color: #536070;
}

.quality-gauge {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 10px solid #c5edd8;
  border-radius: 50%;
  color: #067a46;
  font-weight: 950;
}

.quality-gauge span {
  font-size: 28px;
}

.quality-gauge small {
  color: #637083;
}

.report-details,
.export-preview {
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  padding: 12px 14px;
}

.report-details summary,
.export-preview summary {
  cursor: pointer;
  color: #2c2f3d;
  font-weight: 950;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.report-grid article,
.reference-list-wrap,
.reference-detail,
.seo-deep-grid article {
  border: 1px solid #e5e8f0;
  border-radius: 14px;
  background: #fbfcff;
  padding: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-list span,
.status-pill {
  border-color: #d9efe5;
  background: #effcf5;
  color: #08764a;
  font-size: 12px;
}

.status-pill[data-status="review"],
.tag-list span.is-warning {
  border-color: #f7dfae;
  background: #fff8e8;
  color: #9a6517;
}

.status-pill[data-status="unresolved"],
.tag-list span.is-danger {
  border-color: #ffd0ca;
  background: #fff0ed;
  color: #d3322b;
}

.warning-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.warning-list li,
.source-row {
  border-radius: 10px;
  background: #f4f6fa;
  color: #5a6071;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 10px;
}

.source-report {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: 110px 100px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.source-row[data-status="used"] {
  background: #effcf5;
  color: #08764a;
}

.source-row[data-status="failed"] {
  background: #fff8e8;
  color: #8b5e16;
}

.export-toolbar {
  border-top: 1px solid #e5e8f0;
  border-bottom: 1px solid #eef1f6;
  padding: 14px 0;
}

.export-toolbar button:first-child {
  background: #2c2f3d;
  color: #ffffff;
}

.bulk-review-toolbar {
  padding: 10px 0 14px;
  border-bottom: 1px solid #e5e8f0;
}

.bulk-review-toolbar button {
  border-radius: 8px;
  padding: 8px 10px;
}

.reference-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.reference-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reference-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.reference-row.is-selected {
  border-color: #ff9d96;
  box-shadow: 0 10px 20px rgba(255, 90, 79, 0.08);
}

.reference-row strong {
  display: block;
  color: #2c2f3d;
  line-height: 1.35;
}

.paper-order {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf7ff;
  color: #1168a8;
  font-size: 11px;
  font-weight: 950;
  margin-right: 6px;
  padding: 3px 7px;
}

.reference-row p {
  margin: 6px 0 0;
  color: #62687a;
  font-size: 13px;
  line-height: 1.45;
}

.reference-row-meta,
.mini-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reference-row-meta span,
.mini-pill-grid span {
  border-radius: 999px;
  background: #eef1f7;
  color: #596173;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.reference-detail {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.reference-detail textarea {
  min-height: 105px;
}

.detail-grid,
.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.match-list {
  display: grid;
  gap: 8px;
}

.match-card,
.reference-intelligence {
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.match-card strong {
  display: block;
  color: #2c2f3d;
  font-size: 13px;
  line-height: 1.35;
}

.match-card span {
  display: block;
  margin-top: 5px;
  color: #62687a;
  font-size: 12px;
  line-height: 1.45;
}

.reference-intelligence {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, rgba(239, 252, 245, 0.75), rgba(255, 255, 255, 0.88));
}

.reference-intelligence details {
  border-top: 1px solid #e5e8f0;
  padding-top: 8px;
}

.reference-intelligence summary {
  cursor: pointer;
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 950;
}

.reference-intelligence ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.reference-intelligence li {
  color: #5d6476;
  font-size: 12px;
  line-height: 1.45;
}

.output-grid {
  margin-top: 14px;
}

.output-grid textarea {
  min-height: 190px;
  resize: vertical;
}

.recovery-section,
.text-seo-section,
.keyword-qa-section,
.text-faq-section {
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 0 24px;
}

.recovery-card,
.text-seo-card,
.keyword-qa-card {
  overflow: hidden;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.08), rgba(255, 255, 255, 0) 40%),
    linear-gradient(145deg, rgba(92, 141, 220, 0.11), rgba(255, 255, 255, 0) 66%),
    #ffffff;
}

.recovery-card,
.keyword-qa-card {
  border: 1px solid #dfe3ec;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(41, 44, 61, 0.06);
}

.recovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 30px;
  align-items: center;
}

.recovery-hero h2,
.keyword-qa-card h2 {
  max-width: 820px;
  margin: 0;
  color: #2c2f3d;
  font-size: 38px;
  line-height: 1.08;
}

.recovery-hero p,
.keyword-qa-card p {
  color: #62687a;
  font-size: 16px;
  line-height: 1.7;
}

.recovery-graphic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 230px;
  border: 1px solid #e2e6ef;
  border-radius: 22px;
  background: #fbfcff;
  padding: 18px;
}

.dead-library-card,
.live-library-card {
  min-height: 168px;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(41, 44, 61, 0.08);
}

.dead-library-card {
  border: 1px solid #f2d7d2;
  background: #fff7f5;
  transform: rotate(-2deg);
}

.live-library-card {
  background: #2c2f3d;
  color: #ffffff;
  transform: rotate(2deg);
}

.dead-library-card span,
.live-library-card span {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 90, 79, 0.13);
  color: #ef3f38;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 9px;
}

.live-library-card span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.dead-library-card strong,
.live-library-card strong {
  display: block;
  margin-top: 16px;
  color: inherit;
  font-size: 18px;
  line-height: 1.3;
}

.recovery-arrow {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 14px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(255, 90, 79, 0.22);
}

.pain-grid,
.seo-proof-grid,
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pain-grid article,
.seo-proof-grid article,
.qa-grid article {
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: rgba(251, 252, 255, 0.88);
  padding: 18px;
}

.pain-grid strong,
.seo-proof-grid strong {
  display: block;
  color: #2c2f3d;
  font-size: 17px;
}

.pain-grid span,
.seo-proof-grid span {
  display: block;
  margin-top: 8px;
  color: #62687a;
  line-height: 1.55;
}

.comparison-table-wrap {
  margin-top: 26px;
}

.comparison-table-wrap h3,
.matrix-copy h3,
.qa-grid h3 {
  margin: 0;
  color: #2c2f3d;
  font-size: 22px;
  line-height: 1.2;
}

.comparison-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e2e6ef;
  border-radius: 16px;
  background: #ffffff;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e8ecf4;
  border-right: 1px solid #e8ecf4;
  color: #52596b;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #2c2f3d;
  color: #ffffff;
  font-weight: 950;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.seo-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 32px;
  align-items: center;
}

.text-seo-card h2,
.text-faq-section h2 {
  max-width: 760px;
  margin: 0;
  color: #2c2f3d;
  font-size: 38px;
  line-height: 1.08;
}

.text-seo-card p {
  max-width: 920px;
  color: #62687a;
  font-size: 17px;
  line-height: 1.7;
}

.seo-check-column {
  display: grid;
  gap: 8px;
}

.seo-check-column b {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 10px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.seo-feature-grid article {
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: rgba(251, 252, 255, 0.88);
  padding: 18px;
}

.seo-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.seo-feature-grid strong,
.seo-workflow-band strong {
  display: block;
  color: #2c2f3d;
  font-size: 18px;
}

.seo-feature-grid span,
.seo-workflow-band span,
.matrix-grid span {
  display: block;
  margin-top: 8px;
  color: #62687a;
  line-height: 1.55;
}

.export-matrix {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
  border: 1px solid #e2e6ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.matrix-copy p {
  margin-bottom: 0;
}

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

.matrix-grid span {
  margin: 0;
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  background: #fbfcff;
  color: #343746;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.seo-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-workflow-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e3e7ef;
  border-radius: 18px;
  background: #e3e7ef;
}

.seo-workflow-band div {
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.citation-query-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.seo-deep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.seo-deep-grid h3 {
  margin: 0;
  color: #2c2f3d;
  font-size: 18px;
  line-height: 1.25;
}

.seo-deep-grid p {
  margin: 10px 0 0;
  color: #62687a;
  font-size: 14px;
  line-height: 1.65;
}

.seo-link-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-link-band a {
  border: 1px solid #dfe2eb;
  border-radius: 14px;
  background: #fbfcff;
  color: #2c2f3d;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  padding: 15px;
}

.keyword-qa-section {
  margin-top: 34px;
}

.keyword-qa-card {
  display: grid;
  gap: 24px;
}

.qa-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.qa-grid h3 {
  font-size: 18px;
}

.qa-grid p {
  margin: 10px 0 0;
  font-size: 14px;
}

.qa-grid a {
  color: var(--brand-dark);
  font-weight: 900;
}

.text-faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px;
  margin-bottom: 34px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fbfcff;
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  color: #2c2f3d;
  font-weight: 950;
}

.faq-list p {
  color: #62687a;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .text-hero-card,
  .upload-zone,
  .paste-grid,
  .reference-workbench,
  .report-grid,
  .recovery-hero,
  .recovery-graphic,
  .pain-grid,
  .export-matrix,
  .seo-proof-grid,
  .qa-grid,
  .text-faq-section,
  .seo-intro-grid,
  .seo-workflow-band,
  .seo-deep-grid,
  .seo-link-band {
    grid-template-columns: 1fr;
  }

  .option-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .text-hero-copy h1 {
    font-size: 44px;
  }

  .recovery-hero h2,
  .keyword-qa-card h2 {
    font-size: 32px;
  }

  .comparison-table-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 760px;
  }

  .scorecard-grid,
  .seo-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-detail {
    position: static;
  }
}

@media (max-width: 640px) {
  .text-hero,
  .text-tool-shell,
  .recovery-section,
  .text-seo-section,
  .keyword-qa-section,
  .text-faq-section {
    padding-inline: 14px;
  }

  .text-hero-card,
  .paste-panel,
  .results-panel,
  .recovery-card,
  .text-seo-card,
  .keyword-qa-card,
  .text-faq-section {
    border-radius: 18px;
    padding: 22px;
  }

  .text-hero-copy h1,
  .recovery-hero h2,
  .text-seo-card h2,
  .keyword-qa-card h2,
  .text-faq-section h2 {
    font-size: 34px;
  }

  .text-hero-visual,
  .upload-zone,
  .seo-visual-panel,
  .seo-feature-grid,
  .scorecard-grid,
  .detail-grid,
  .output-grid,
  .matrix-grid,
  .option-row,
  .pipeline,
  .input-meter {
    grid-template-columns: 1fr;
  }

  .scan-stack,
  .output-stack,
  .seo-text-sheet,
  .seo-data-card {
    transform: none;
  }

  .scan-core {
    justify-self: center;
  }

  .quality-block,
  .panel-heading,
  .reference-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .source-row {
    grid-template-columns: 1fr;
  }
}
