/* ReviewFold — review-tool comparison. Scoped to .tools-comparison-page. */

.tools-comparison-page {
  --tc-own-wash: #f8fbe9;
  --tc-own-line: #e5efc7;
}

.tc-main { position: relative; }
.tc-article { min-width: 0; }

/* ---------- hero ---------- */
.tc-hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px; align-items: center;
  padding: 78px 0 56px;
}
.tc-hero-copy { min-width: 0; }
.tc-hero h1 {
  margin: 0; max-width: 16ch;
  font-size: clamp(38px, 4.4vw, 58px); line-height: 1.01; letter-spacing: -0.047em;
  font-weight: 700; text-wrap: balance;
}
.tc-mark {
  display: inline;
  background: linear-gradient(180deg, transparent 60%, var(--gd-lime) 60%, var(--gd-lime) 94%, transparent 94%);
  padding: 0 0.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tc-lede {
  margin: 24px 0 0; max-width: 640px;
  font-size: 18px; line-height: 1.6; color: #3f464b; text-wrap: pretty;
}
.tc-hero .gd-byline { margin-top: 22px; }
.tc-readtime { white-space: nowrap; }
.tc-disclosure {
  margin: 20px 0 0; max-width: 580px;
  font-size: 11.5px; line-height: 1.6; color: var(--gd-soft);
}

/* job picker */
.tc-picker {
  overflow: hidden;
  border: 1px solid var(--gd-line); border-radius: 16px; background: var(--gd-card);
  box-shadow: 0 42px 90px -58px rgba(17, 21, 25, 0.52);
}
.tc-picker-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: var(--gd-lime); color: var(--gd-ink);
}
.tc-picker-head h2 { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tc-picker-head span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tc-picker-list { display: grid; }
.tc-picker-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 17px 20px; border-top: 1px solid var(--gd-line);
  color: var(--gd-ink); text-decoration: none;
  transition: background-color 0.15s ease;
}
.tc-picker-row:hover { background: #f7f5ee; }
.tc-picker-num { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--gd-lime-ink); }
.tc-picker-job { display: grid; gap: 3px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tc-picker-job small { font-size: 11.5px; font-weight: 400; line-height: 1.45; color: var(--gd-soft); }
.tc-picker-tool {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gd-soft);
  white-space: nowrap;
}
.tc-picker-tool span { color: var(--gd-lime-ink); font-size: 13px; }
.tc-picker-note {
  margin: 0; padding: 13px 20px 16px; border-top: 1px solid var(--gd-line);
  background: #fbfaf5; font-size: 11px; line-height: 1.55; color: var(--gd-soft);
}

/* ---------- comparison ---------- */
.tc-table-section { padding: 58px 0 64px; border-top: 1px solid var(--gd-line); scroll-margin-top: 24px; }
.tc-section-head { max-width: 780px; margin-bottom: 28px; }
.tc-section-head h2 { margin: 0; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.07; letter-spacing: -0.04em; text-wrap: balance; }
.tc-section-head p { margin: 14px 0 0; max-width: 700px; font-size: 16.5px; line-height: 1.65; color: #3f464b; }

.tc-table-wrap {
  overflow: hidden; border: 1px solid var(--gd-line); border-radius: 16px;
  background: var(--gd-card); box-shadow: 0 34px 80px -66px rgba(17, 21, 25, 0.5);
}
.tc-table-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--gd-line); background: #f4f1e7;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gd-soft);
}
.tc-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.tc-table th, .tc-table td { padding: 16px 18px; border-bottom: 1px solid var(--gd-line); vertical-align: top; text-align: left; }
.tc-table thead th { padding: 18px; background: #fbfaf5; border-bottom: 1px solid var(--gd-line); }
.tc-table th:first-child { width: 21%; }
.tc-table th:not(:first-child) { width: 26.33%; }
.tc-table tbody th {
  border-right: 1px solid var(--gd-line); background: #fbfaf5;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gd-soft);
}
.tc-table tbody tr:last-child th, .tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table td { line-height: 1.5; color: #2b3034; }
.tc-table td strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-compare { color: var(--gd-soft); }
.tc-col-own { background: var(--tc-own-wash); }
.tc-table thead .tc-col-own { border-left: 1px solid var(--tc-own-line); border-right: 1px solid var(--tc-own-line); }
.tc-table tbody td.tc-col-own { border-left: 1px solid var(--tc-own-line); border-right: 1px solid var(--tc-own-line); }
.tc-product { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.tc-product-role { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gd-soft); }
.tc-own {
  display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 999px;
  background: var(--gd-lime); color: var(--gd-ink);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tc-plan-link {
  display: block; margin-top: 9px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gd-ink); text-decoration: underline; text-underline-offset: 3px;
}
.tc-plan-link:hover { color: var(--gd-lime-ink); }
.tc-table-note { margin: 16px 0 0; max-width: 950px; font-size: 11.5px; line-height: 1.65; color: var(--gd-soft); }
.tc-sources { margin: 9px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--gd-soft); }
.tc-sources a { color: var(--gd-ink); text-underline-offset: 3px; }

/* mobile product cards */
.tc-cards { display: none; }
.tc-card {
  padding: 22px; border: 1px solid var(--gd-line); border-radius: 14px; background: var(--gd-card);
  box-shadow: 0 26px 60px -56px rgba(17, 21, 25, 0.4);
}
.tc-card--own { border-top: 3px solid var(--gd-lime); }
.tc-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.tc-card header .tc-own { margin-top: 0; }
.tc-card-role { margin: 4px 0 0; font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gd-soft); }
.tc-card dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 16px 0 0; border-top: 1px solid var(--gd-line); }
.tc-card dl > div { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gd-line); }
.tc-card dt { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gd-soft); }
.tc-card dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: #2b3034; }
.tc-card dd strong { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tc-card-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--gd-soft); }
.tc-card .tc-plan-link { margin-top: 13px; }

/* ---------- tool sections ---------- */
.tc-tool { padding: 64px 0; border-top: 1px solid var(--gd-line); scroll-margin-top: 24px; }
.tc-tool-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  margin-bottom: 24px;
}
.tc-tool-index { padding-top: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--gd-lime-ink); }
.tc-kicker { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gd-soft); }
.tc-tool h2 { margin: 0; font-size: clamp(28px, 3.1vw, 38px); line-height: 1.08; letter-spacing: -0.035em; }
.tc-tag {
  padding: 5px 10px; border: 1px solid var(--gd-line); border-radius: 999px; background: var(--gd-card);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gd-soft);
  white-space: nowrap;
}
.tc-tool-body { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 52px; align-items: start; }
.tc-copy { min-width: 0; }
.tc-copy p { margin: 0 0 16px; max-width: 720px; font-size: 16px; line-height: 1.7; color: #2b3034; }
.tc-copy p:last-child { margin-bottom: 0; }
.tc-copy strong { font-weight: 600; }
.tc-copy a { color: var(--gd-ink); text-underline-offset: 3px; }
.tc-copy-note { font-size: 12.5px !important; line-height: 1.6 !important; color: var(--gd-soft) !important; }
.tc-fit { padding: 24px; border: 1px solid var(--gd-line); border-radius: 14px; background: var(--gd-card); }
.tc-fit h3 { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gd-soft); }
.tc-fit ul { display: grid; gap: 9px; margin: 11px 0 0; padding: 0; list-style: none; }
.tc-fit li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.55; color: #3f464b; }
.tc-fit li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 1px; background: var(--gd-lime); }
.tc-fit-second { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--gd-line); }
.tc-tool-sources { margin: 20px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--gd-soft); }
.tc-tool-sources a { color: var(--gd-ink); text-underline-offset: 3px; }

/* ---------- choose ---------- */
.tc-choose {
  margin: 0 calc(50% - 50vw); padding: 76px 0;
  background: var(--gd-ink); color: #f4f6f6;
}
.tc-choose-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.tc-choose-head { max-width: 800px; }
.tc-choose h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.07; letter-spacing: -0.038em; color: #ffffff; }
.tc-choose-head > p:not(.gd-eyebrow) { margin: 16px 0 0; max-width: 760px; font-size: 15.5px; line-height: 1.7; color: #c9cfcc; }
.tc-checks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 34px 0 0; border: 1px solid #2b3034; border-radius: 12px; overflow: hidden; background: #2b3034;
}
.tc-checks > div { padding: 24px; background: var(--gd-ink); }
.tc-checks span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--gd-lime); }
.tc-checks h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -0.01em; color: #ffffff; }
.tc-checks p { margin: 0; font-size: 14px; line-height: 1.6; color: #c9cfcc; }

/* ---------- CTA + motion ---------- */
.tc-cta .gd-cta-inner { max-width: 1080px; }
.tc-cta .gd-actions { max-width: 940px; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  .tc-hero-copy > *, .tc-picker {
    opacity: 0; transform: translateY(12px); animation: gd-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .tc-hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
  .tc-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .tc-hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
  .tc-hero-copy > *:nth-child(4) { animation-delay: 0.2s; }
  .tc-hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .tc-hero-copy > *:nth-child(6) { animation-delay: 0.28s; }
  .tc-picker { animation-delay: 0.16s; }
}

@media (max-width: 1100px) {
  .tc-hero { gap: 44px; padding: 64px 0 50px; }
  .tc-tool-body { gap: 36px; }
}

@media (max-width: 980px) {
  .tc-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tc-hero h1 { max-width: 18ch; }
  .tc-picker { max-width: 620px; }
  .tc-tool-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tc-fit { max-width: 680px; }
  .tc-table-section { padding: 48px 0 54px; }
  .tc-choose { padding: 62px 0; }
}

@media (max-width: 900px) {
  .tc-table-wrap { display: none; }
  .tc-cards { display: grid; gap: 14px; }
  .tc-table-note { margin-top: 18px; }
}

@media (max-width: 640px) {
  .tc-main { padding: 0 20px; }
  .tc-hero { padding: 44px 0 38px; }
  .tc-hero h1 { font-size: 36px; line-height: 1.04; letter-spacing: -0.04em; }
  .tc-lede { margin-top: 20px; font-size: 16.5px; }
  .tc-hero .gd-byline { display: block; margin-top: 18px; font-size: 11.5px; }
  .tc-hero .gd-byline .gd-dot { display: inline-block; width: 3px; height: 3px; margin: 0 7px; vertical-align: middle; }
  .tc-disclosure { margin-top: 18px; }
  .tc-picker-head { padding: 13px 18px; }
  .tc-picker-row { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 15px 18px; }
  .tc-picker-tool { grid-column: 2; margin-top: 2px; font-size: 9px; }
  .tc-picker-note { padding: 12px 18px 14px; }
  .tc-section-head h2 { font-size: 30px; }
  .tc-section-head p { font-size: 15.5px; }
  .tc-card { padding: 20px; }
  .tc-card dl > div { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .tc-tool { padding: 46px 0; }
  .tc-tool-head { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 12px; }
  .tc-tool-index { padding-top: 3px; }
  .tc-tool-head .tc-tag { grid-column: 2; justify-self: start; }
  .tc-tool h2 { font-size: 30px; }
  .tc-copy p { font-size: 15.5px; }
  .tc-fit { padding: 20px; }
  .tc-choose { padding: 52px 0; }
  .tc-choose-inner { padding: 0 20px; }
  .tc-choose h2 { font-size: 30px; }
  .tc-checks { grid-template-columns: minmax(0, 1fr); }
  .tc-checks > div { padding: 20px; }
  .tc-cta .gd-actions { flex-direction: column; align-items: stretch; }
  .tc-cta .gd-button { width: 100%; }
  .tc-cta .gd-textlink { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-picker-row { transition: none; }
}
