/* Long-form tool pages (ESSAY-4899): ai-essay-checker, paraphrasing-tool, plagiarism-checker,
   ai-summarizer, fact-checker. Markup helpers: /sections/tool-landing.php */

.tl-page {
  background: #fff;
  color: #1f2937;
  font-family: var(--font-body);
}

.tl-container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.tl-hero {
  padding: 48px 0 72px;
  text-align: center;
}

.tl-hero__title {
  max-width: 940px;
  margin: 0 auto;
  color: #1f2937;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
}

.tl-hero__title span {
  color: #10b981;
}

.tl-hero__lead {
  max-width: 840px;
  margin: 18px auto 0;
  color: #6c757d;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.tl-hero__after {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: left;
}

.tl-hero__center {
  margin-top: 24px;
  text-align: center;
}

.tl-byline {
  margin-top: 14px;
  color: #6c757d;
  font-size: 14px;
  line-height: 22px;
}

.tl-byline a {
  color: #009765;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Chips ---------- */
.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tl-chips--center {
  justify-content: center;
}

.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e7f8f2;
  color: #000;
  font-size: 15px;
  line-height: 20px;
}

.tl-chip svg {
  flex: none;
  color: #10b981;
}

.tl-chips--plain .tl-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.tl-chips--inline {
  gap: 6px 18px;
  margin-top: 16px;
}

.tl-chips--inline .tl-chip {
  padding: 0;
  background: none;
  color: #4b5563;
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.tl-btn:hover {
  opacity: 0.9;
}

.tl-btn--green {
  background: #10b981;
}

.tl-btn--outline {
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

.tl-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Tool stub (layout mirrors the checker cards in the app) ---------- */
.tl-tool {
  max-width: 1100px;
  margin: 36px auto 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.tl-tool__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tl-tool__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.tl-tool__name svg {
  color: #10b981;
}

.tl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.tl-tab.is-active {
  border-color: #10b981;
  background: #e7f8f2;
  color: #047857;
}

.tl-tool__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tl-tool__body--single {
  grid-template-columns: 1fr;
}

.tl-tool__pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
}

.tl-tool__pane + .tl-tool__pane {
  border-left: 1px solid #e5e7eb;
  background: #fcfcfd;
}

.tl-tool__label {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl-tool__panel[hidden] {
  display: none;
}

.tl-input {
  width: 100%;
  min-height: 260px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  resize: vertical;
}

.tl-input--url {
  min-height: 0;
  height: 50px;
  resize: none;
}

.tl-input:focus {
  border-color: #10b981;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.tl-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.tl-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 28px 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.tl-drop.is-over {
  border-color: #10b981;
  background: #f0fdf7;
}

.tl-drop strong {
  color: #111827;
  font-size: 16px;
}

.tl-drop__file {
  color: #047857;
  font-weight: 500;
}

.tl-icon-box {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.tl-file-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.tl-count strong {
  color: #111827;
}

.tl-count.is-over,
.tl-count.is-over strong {
  color: #dc2626;
}

.tl-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e7eb;
}

.tl-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
  transition: width 0.2s ease;
}

.tl-progress.is-over span {
  background: #ef4444;
}

.tl-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tl-opt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f3f4f6;
}

.tl-seg button {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tl-seg button.is-active {
  background: #10b981;
  color: #fff;
}

.tl-tool__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

.tl-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f8f2;
  color: #047857;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.tl-hint {
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

.tl-hint.is-error {
  color: #dc2626;
}

.tl-result {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.tl-result--short {
  min-height: 120px;
}

.tl-result strong {
  color: #111827;
  font-size: 16px;
}

/* ---------- Key facts strip ---------- */
.tl-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tl-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.tl-fact .tl-icon-box,
.tl-fact__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f8f2;
  color: #10b981;
}

.tl-fact > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-fact__label {
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl-fact__value {
  color: #111827;
  font-size: 16px;
  line-height: 22px;
}

.tl-fact__hint {
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

/* ---------- Notices ---------- */
.tl-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid #cdefe2;
  border-radius: 14px;
  background: #f0fdf7;
  color: #1f2937;
  font-size: 16px;
  line-height: 26px;
  text-align: left;
}

.tl-note svg {
  flex: none;
  margin-top: 3px;
  color: #10b981;
}

.tl-note p {
  margin: 0;
}

.tl-note--warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.tl-note--warn svg {
  color: #d97706;
}

/* ---------- Sections ---------- */
.tl-section {
  padding: 72px 0;
}

.tl-section--alt {
  background: #f9fafb;
}

.tl-h2 {
  max-width: 900px;
  margin: 0 0 20px;
  color: #000;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.tl-h2--sm {
  margin-top: 40px;
  font-size: 28px;
}

.tl-h3 {
  margin: 36px 0 12px;
  color: #111827;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.tl-sub {
  margin: 32px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-prose {
  max-width: 900px;
  color: #374151;
  font-size: 17px;
  line-height: 28px;
}

.tl-prose > * + *,
.tl-card > p + p {
  margin-top: 14px;
}

.tl-section a:not(.tl-btn):not(.tool-cta-btn),
.tl-hero a:not(.tl-btn) {
  color: #009765;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tl-section a:not(.tl-btn):not(.tool-cta-btn):hover {
  color: #10b981;
}

/* Lists */
.tl-list,
.tl-olist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.tl-list li,
.tl-olist li {
  position: relative;
  padding-left: 26px;
  line-height: 26px;
}

.tl-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.tl-olist {
  counter-reset: tl-ol;
}

.tl-olist li {
  padding-left: 36px;
}

.tl-olist li::before {
  content: counter(tl-ol);
  counter-increment: tl-ol;
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.tl-list--compact {
  gap: 6px;
  margin: 4px 0 0;
}

.tl-list--compact li {
  color: #4b5563;
  font-size: 15px;
  line-height: 24px;
}

.tl-list--compact li::before {
  top: 8px;
}

.tl-list--check li::before,
.tl-list--cross li::before {
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.tl-list--cross li::before {
  background: #ef4444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tl-list--check li,
.tl-list--cross li {
  padding-left: 30px;
}

/* Checklist rows (one boxed row per item) */
.tl-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tl-row;
}

.tl-rows li {
  position: relative;
  padding: 14px 18px 14px 56px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  line-height: 24px;
}

.tl-rows li::before {
  content: counter(tl-row);
  counter-increment: tl-row;
  position: absolute;
  top: 50%;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e7f8f2;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-50%);
}

/* ---------- Cards ---------- */
.tl-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.tl-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tl-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tl-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tl-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.tl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.tl-section:not(.tl-section--alt) .tl-card {
  background: #f9fafb;
}

.tl-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #e7f8f2;
  color: #10b981;
}

.tl-card__title {
  margin: 0;
  color: #111827;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.tl-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 24px;
}

.tl-card--dark,
.tl-section:not(.tl-section--alt) .tl-card--dark {
  border-color: #111827;
  background: #111827;
}

.tl-card--dark .tl-card__title,
.tl-card--dark .tl-h3 {
  color: #fff;
}

.tl-card--dark p,
.tl-card--dark li {
  color: #d1d5db;
}

.tl-card--dark .tl-card__icon {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.tl-card--dark a:not(.tl-btn) {
  color: #6ee7b7;
}

.tl-card--wide {
  grid-column: 1 / -1;
}

.tl-card .tl-chips {
  margin-top: 6px;
}

.tl-card .tl-chip {
  font-size: 14px;
}

.tl-grid--dark-icons .tl-card__icon {
  background: #111827;
  color: #fff;
}

/* Small uppercase tag ("This tool", "TRUE") */
.tl-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f8f2;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-tag--alt {
  background: #eef2ff;
  color: #4338ca;
}

/* Verdict cards */
.tl-verdict--true,
.tl-section:not(.tl-section--alt) .tl-verdict--true {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.tl-verdict--false,
.tl-section:not(.tl-section--alt) .tl-verdict--false {
  border-color: #fecaca;
  background: #fef2f2;
}

.tl-verdict--false .tl-tag {
  background: #fee2e2;
  color: #b91c1c;
}

.tl-verdict--unv,
.tl-section:not(.tl-section--alt) .tl-verdict--unv {
  border-color: #fde68a;
  background: #fffbeb;
}

.tl-verdict--unv .tl-tag {
  background: #fef3c7;
  color: #b45309;
}

.tl-verdict p {
  color: #374151;
}

/* ---------- Steps ---------- */
.tl-steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tl-steps--2 { grid-template-columns: repeat(2, 1fr); }
.tl-steps--3 { grid-template-columns: repeat(3, 1fr); }
.tl-steps--4 { grid-template-columns: repeat(4, 1fr); }
.tl-steps--5 { grid-template-columns: repeat(5, 1fr); }

.tl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.tl-section:not(.tl-section--alt) .tl-step {
  background: #f9fafb;
}

.tl-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.tl-step__title {
  margin: 0;
  color: #111827;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.tl-step p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 24px;
}

.tl-steps--flow .tl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 2px solid #10b981;
  border-right: 2px solid #10b981;
  transform: rotate(45deg);
}

/* ---------- Tables ---------- */
.tl-table-wrap {
  margin: 24px 0 0;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.tl-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #1f2937;
  font-size: 16px;
  line-height: 24px;
}

.tl-table th,
.tl-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.tl-table thead th {
  background: #f3f4f6;
  font-weight: 700;
}

.tl-table tbody tr + tr td,
.tl-table tbody tr + tr th,
.tl-table thead + tbody tr:first-child td {
  border-top: 1px solid #e5e7eb;
}

.tl-table--kv {
  min-width: 0;
}

.tl-table--kv th {
  width: 34%;
  background: #f9fafb;
  font-weight: 700;
}

.tl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}

.tl-dot--green { background: #10b981; }
.tl-dot--amber { background: #f59e0b; }
.tl-dot--red { background: #ef4444; }

/* ---------- Comparison links ---------- */
.tl-linkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 0;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-size: 16px;
  line-height: 24px;
}

.tl-section .tl-linkbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #009765;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Info panel ("Tool information") ---------- */
.tl-info {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.tl-info__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #e7f8f2;
  color: #047857;
}

.tl-info__title {
  margin: 0;
  color: #111827;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.tl-info__intro {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 16px;
  line-height: 26px;
}

.tl-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -1px -1px 0;
}

.tl-info__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tl-info__cell {
  padding: 16px 20px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.tl-info__cell dt {
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl-info__cell dd {
  margin: 4px 0 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

/* ---------- Dark banner (mid-page CTA) ---------- */
.tl-banner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: 20px;
  background: #111827;
  color: #e5e7eb;
}

.tl-banner .tl-h2 {
  color: #fff;
}

.tl-banner p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
  line-height: 28px;
}

.tl-banner .tl-olist li,
.tl-banner .tl-list li {
  color: #e5e7eb;
}

.tl-banner__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.tl-banner__side p {
  color: #fff;
  font-weight: 500;
}

/* ---------- Plagiarism: price card + sample report ---------- */
.tl-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  max-width: 900px;
  margin: 28px auto 0;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.tl-price__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #6b7280;
  font-size: 14px;
}

.tl-price__item b {
  color: #111827;
  font-size: 24px;
}

.tl-price__item small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-price__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tl-price__included {
  flex-basis: 100%;
  margin: 0;
  color: #374151;
  font-size: 15px;
  line-height: 24px;
}

.tl-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 28px;
}

.tl-report {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.tl-report__doc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.tl-report__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 13px;
}

.tl-skel {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: #e5e7eb;
}

.tl-skel--exact {
  background: #fed7aa;
}

.tl-skel--similar {
  background: #fde68a;
}

.tl-report__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid #e5e7eb;
  background: #fcfcfd;
}

.tl-report__score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tl-ring {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#f97316 0 27%, #e5e7eb 27% 100%);
}

.tl-ring span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.tl-report__score small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-report__src {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.tl-report__src .tl-skel {
  flex: 1;
}

.tl-report__src b {
  color: #ea580c;
}

.tl-report__src em {
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  font-style: normal;
}

.tl-report__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #6b7280;
  font-size: 12px;
}

.tl-report__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}

.tl-caption {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

/* Reviewer card */
.tl-reviewer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.tl-reviewer p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 26px;
}

/* Related tools heading (copy uses an h3 here) */
.tl-related .tl-related__title {
  margin: 0 0 40px;
  color: #000;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
}

.tl-related .etg-tools a svg {
  color: #10b981;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tl-grid--5,
  .tl-steps--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tl-steps--flow .tl-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .tl-grid--4,
  .tl-steps--4,
  .tl-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .tl-grid--3,
  .tl-steps--3,
  .tl-grid--5,
  .tl-steps--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tl-tool__body {
    grid-template-columns: 1fr;
  }

  .tl-tool__pane + .tl-tool__pane {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .tl-banner {
    grid-template-columns: 1fr;
  }

  .tl-info__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tl-report {
    grid-template-columns: 1fr;
  }

  .tl-report__side {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .tl-hero {
    padding: 28px 0 40px;
  }

  .tl-hero__title {
    font-size: 34px;
  }

  .tl-hero__lead {
    font-size: 16px;
    line-height: 26px;
  }

  .tl-section {
    padding: 44px 0;
  }

  .tl-h2 {
    font-size: 28px;
  }

  .tl-h2--sm {
    font-size: 24px;
  }

  .tl-prose {
    font-size: 16px;
    line-height: 26px;
  }

  .tl-grid--2,
  .tl-grid--3,
  .tl-grid--4,
  .tl-grid--5,
  .tl-steps--2,
  .tl-steps--3,
  .tl-steps--4,
  .tl-steps--5,
  .tl-facts,
  .tl-opts,
  .tl-info__grid {
    grid-template-columns: 1fr;
  }

  .tl-card,
  .tl-step {
    padding: 20px;
  }

  .tl-tool {
    margin-top: 24px;
    border-radius: 16px;
  }

  .tl-tool__pane,
  .tl-tool__foot {
    padding: 16px;
  }

  .tl-input,
  .tl-drop,
  .tl-result {
    min-height: 200px;
  }

  .tl-tool__foot .tl-btn {
    width: 100%;
  }

  .tl-banner {
    padding: 28px 20px;
  }

  .tl-price {
    padding: 18px;
  }

  .tl-price__cta {
    align-items: stretch;
    width: 100%;
  }

  .tl-related .tl-related__title {
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
  }

  .etg-cta .tl-container,
  .etg-more-tools .tl-container {
    width: 100%;
    max-width: none;
  }
}

/* ---------- Spacing / list helpers ---------- */
.tl-prose--after {
  margin-top: 24px;
}

.tl-card--list,
.tl-card--section {
  margin-top: 24px;
}

.tl-card--section > p {
  color: #4b5563;
  font-size: 16px;
  line-height: 26px;
}

.tl-list--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin: 0;
}

.tl-types {
  padding: 0;
  list-style: none;
}

.tl-card__icon--muted {
  background: #fef2f2;
  color: #ef4444;
}

@media (max-width: 767px) {
  .tl-list--cols {
    grid-template-columns: 1fr;
  }
}

/* Verdict labels in the fact checker "Result" card */
.tl-chips--verdicts {
  gap: 8px;
}

.tl-chips--verdicts .tl-chip {
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tl-chip--true {
  background: #ecfdf5;
  color: #047857;
}

.tl-chip--false {
  background: #fef2f2;
  color: #b91c1c;
}

.tl-chip--unv {
  background: #fffbeb;
  color: #b45309;
}

/* Titles rendered as <p> (bold copy, not a heading) keep the title look */
.tl-card .tl-card__title,
.tl-step .tl-step__title {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.tl-card.tl-card--dark .tl-card__title {
  color: #fff;
}

/* Closing CTA: keep the copy's casing and separate it from a tinted section above */
.tl-page .etg-cta__box .tool-cta-btn {
  text-transform: none;
}

.tl-section + .etg-cta {
  padding-top: 72px;
}

@media (max-width: 767px) {
  .tl-section + .etg-cta {
    padding-top: 40px;
  }
}
