/* ============ All GEO Tools Compared ============ */

.gt-stack { padding-top: 32px; padding-bottom: 40px; gap: 44px; }
.gt-panel { overflow: visible; }
.gt-panel .panel-body { padding: 32px 34px 36px; }

/* ---------- Section heads ---------- */
.gt-sec-head { max-width: 70ch; }
.gt-h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.02; margin-top: 6px; }
.gt-sub { font-family: var(--fs-mono); font-size: 13.5px; line-height: 1.65; color: var(--dim); margin-top: 12px; }

/* ---------- Hero ---------- */
.gt-hero { padding: 52px 0 12px; }
.gt-crumbs { font-family: var(--fs-mono); font-size: 12px; color: var(--dim); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.gt-crumbs a { color: var(--dim); text-decoration: none; }
.gt-crumbs a:hover { color: var(--orange); }
.gt-crumbs span { color: var(--ink); }
.gt-title { font-size: clamp(44px, 7.5vw, 92px); line-height: .94; margin-top: 6px; letter-spacing: -0.01em; }
.gt-lede { font-family: var(--fs-mono); font-size: 15.5px; line-height: 1.65; color: var(--ink); max-width: 74ch; margin-top: 20px; }
.gt-hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border: 1px solid var(--ink); }
.gt-hero-stats > div { flex: 1; min-width: 120px; padding: 18px 22px; border-right: 1px dashed var(--ink); display: flex; flex-direction: column; gap: 4px; }
.gt-hero-stats > div:last-child { border-right: 0; }
.gt-hero-stats .n { font-family: var(--fs-display); font-size: 40px; line-height: 1; color: var(--ink); }
.gt-hero-stats .l { font-family: var(--fs-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Matrix controls ---------- */
.gt-matrix-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.gt-axis-controls { display: flex; gap: 12px; flex-shrink: 0; }
.gt-axis-pick { display: flex; flex-direction: column; gap: 6px; font-family: var(--fs-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.gt-axis-pick select {
  font-family: var(--fs-mono); font-size: 13px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--ink); padding: 9px 12px;
  cursor: pointer; min-width: 176px; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.gt-axis-pick select:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.gt-axis-pick select:focus { outline: none; border-color: var(--orange); }

/* ---------- Matrix (de-condensed: full width, tall) ---------- */
.gt-matrix-wrap { position: relative; margin-top: 40px; padding-left: 72px; padding-bottom: 8px; }
.gt-matrix {
  aspect-ratio: auto; width: 100%; min-height: 600px;
  margin: 0; background: var(--cream-2);
}
.gt-matrix .q-label { font-size: 16px; opacity: .42; padding: 12px 16px; pointer-events: none; letter-spacing: .04em; }
.gt-matrix .q-label.tr { color: var(--orange); opacity: .8; }
.gt-matrix .axis-lbl { font-size: 12px; }
/* Fixed width so the rotated Y title centers in the left gutter, fully outside the box */
.gt-matrix .axis-lbl.y { left: -160px; width: 240px; text-align: center; }

/* dots: bigger, smooth repositioning, tooltip */
.gt-dot { transition: left .5s cubic-bezier(.22,1,.36,1), top .5s cubic-bezier(.22,1,.36,1), opacity .2s ease; z-index: 2; gap: 6px; }
.gt-dot .dot-sq { width: 44px; height: 44px; border-radius: 5px; }
.gt-dot.me .dot-sq { width: 48px; height: 48px; }
.gt-dot .lbl { font-size: 11px; padding: 2px 6px; }
.gt-dot.dim { opacity: .1; pointer-events: none; }
.gt-dot.active { z-index: 6; }
.gt-dot.active .dot-sq { outline: 2px solid var(--orange); outline-offset: 3px; }
.gt-dot.active .lbl { background: var(--ink); color: var(--cream); }
.gt-dot:hover { z-index: 7; }
.gt-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  padding: 7px 10px; font-family: var(--fs-mono); font-size: 11px; line-height: 1.45;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease;
  box-shadow: 3px 3px 0 rgba(30,26,20,.35); z-index: 10;
}
.gt-tip b { display: block; color: var(--orange); }
.gt-dot:hover .gt-tip, .gt-dot.active .gt-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.gt-note { font-family: var(--fs-mono); font-size: 11px; color: var(--dim); line-height: 1.55; margin-top: 18px; border-top: 1px dashed var(--ink); padding-top: 16px; }

/* ---------- Filters ---------- */
.gt-filters { border: 1px solid var(--ink); background: var(--cream-2); padding: 18px 20px; box-shadow: 5px 5px 0 var(--ink); }
.gt-filters-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gt-count { font-family: var(--fs-mono); font-size: 13px; color: var(--ink); }
.gt-count small { color: var(--dim); }
.gt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gt-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--fs-mono); font-size: 12px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--ink); padding: 8px 13px;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease, color .1s ease;
}
.gt-chip:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.gt-chip-box { font-weight: 700; width: 12px; display: inline-block; text-align: center; color: var(--dim); }
.gt-chip.on { background: var(--orange); color: var(--ink); }
.gt-chip.on .gt-chip-box { color: var(--ink); }
.gt-chip-clear { background: transparent; border-style: dashed; color: var(--dim); }
.gt-chip-clear:hover { color: var(--orange); }

/* ---------- Engine coverage grid ---------- */
.gt-grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 26px; }
.gt-grid { border-collapse: collapse; width: 100%; min-width: 760px; font-family: var(--fs-mono); }
.gt-grid th, .gt-grid td { border-bottom: 1px dashed rgba(30,26,20,.2); padding: 12px 10px; text-align: center; }
.gt-grid thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border-bottom: 1px solid var(--ink); }
.gt-grid-tool-h, .gt-grid-tool { text-align: left !important; min-width: 150px; }
.gt-grid tbody tr { cursor: pointer; transition: background .12s ease; }
.gt-grid tbody tr:hover { background: rgba(30,26,20,.03); }
.gt-grid tbody tr.me { background: rgba(240,138,43,.1); }
.gt-grid tbody tr.active { background: rgba(240,138,43,.2); }
.gt-grid tbody tr.dim { opacity: .3; }
.gt-grid-tool { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.gt-grid-mark { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gt-grid-total { font-weight: 700; color: var(--ink); }
.gt-eng { font-size: 14px; font-weight: 700; }
.gt-eng-yes { color: #1f7a4d; }
.gt-eng-no { color: var(--dim); opacity: .6; }
.gt-eng-tier { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9a5a12; background: rgba(240,138,43,.16); border: 1px solid rgba(240,138,43,.5); padding: 2px 5px; }

/* ---------- Comparison table ---------- */
.gt-table-body { padding: 0; }
.gt-table-controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px 16px; border-bottom: 1px dashed var(--ink); }
.gt-sorts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gt-sort-lbl { font-family: var(--fs-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.gt-sort { font-family: var(--fs-mono); font-size: 11px; color: var(--ink); background: var(--cream); border: 1px solid var(--ink); padding: 5px 9px; cursor: pointer; transition: background .1s ease, color .1s ease; }
.gt-sort:hover { background: var(--ink); color: var(--cream); }
.gt-sort.on { background: var(--orange); }
.gt-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* table-layout:fixed locks column widths so re-sorting can't change row heights and shift the page below */
.gt-table { border-collapse: collapse; width: 100%; min-width: 1370px; table-layout: fixed; font-family: var(--fs-mono); }
.gt-table th, .gt-table td { border-bottom: 1px dashed rgba(30,26,20,.2); border-right: 1px dashed rgba(30,26,20,.14); padding: 12px 14px; text-align: left; vertical-align: top; word-wrap: break-word; overflow-wrap: break-word; }
.gt-table thead th { position: sticky; top: 0; background: var(--cream-2); z-index: 3; border-bottom: 1px solid var(--ink); }
.gt-th-crit { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); width: 200px; position: sticky; left: 0; z-index: 4 !important; }
.gt-th-tool { cursor: pointer; width: 130px; transition: background .12s ease; }
.gt-th-tool:hover { background: var(--cream); }
.gt-th-tool.me { background: rgba(240,138,43,.16); }
.gt-th-tool.active { background: var(--orange); }
.gt-th-tool.dim { opacity: .3; }
.gt-th-mark { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gt-th-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.gt-th-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.gt-td-crit { font-size: 12px; color: var(--ink); position: sticky; left: 0; background: var(--cream); z-index: 2; width: 200px; }
.gt-idx { color: var(--dim); margin-right: 8px; font-size: 11px; }
.gt-td { font-size: 12px; color: var(--ink); transition: background .12s ease; }
.gt-td.me { background: rgba(240,138,43,.08); }
.gt-td.active { background: rgba(240,138,43,.2); }
.gt-td.dim { opacity: .28; }
.gt-cell-pos { color: #1f7a4d; font-weight: 600; }
.gt-cell-neg { color: var(--dim); }
.gt-cell-txt { color: var(--ink); }
.gt-table tbody tr:hover td:not(.gt-td-crit) { background: rgba(30,26,20,.03); }
.gt-table tbody tr:hover .gt-td.me { background: rgba(240,138,43,.14); }

/* ---------- Recommender ---------- */
.gt-rec-panel .panel-body { background: var(--cream-2); }
.gt-rec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gt-rec-empty { font-family: var(--fs-mono); font-size: 13px; color: var(--dim); margin-top: 24px; padding: 24px; border: 1px dashed var(--ink); text-align: center; background: var(--cream); }
.gt-rec-results { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.gt-rec-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ink); background: var(--cream); }
.gt-rec-row.top { box-shadow: 4px 4px 0 var(--ink); border-width: 2px; }
.gt-rec-row.me.top { box-shadow: 4px 4px 0 var(--orange); border-color: var(--orange); }
.gt-rec-rank { font-family: var(--fs-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); width: 78px; flex-shrink: 0; }
.gt-rec-row.top .gt-rec-rank { color: var(--orange); }
.gt-rec-mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gt-rec-name { font-family: var(--fs-mono); font-size: 14px; font-weight: 700; color: var(--ink); width: 110px; flex-shrink: 0; }
.gt-rec-bar { flex: 1; height: 12px; background: rgba(30,26,20,.08); border: 1px solid var(--ink); overflow: hidden; }
.gt-rec-fill { display: block; height: 100%; transition: width .4s cubic-bezier(.22,1,.36,1); }
.gt-rec-score { font-family: var(--fs-mono); font-size: 13px; font-weight: 700; color: var(--ink); width: 30px; text-align: right; flex-shrink: 0; }

/* ---------- Best for cards ---------- */
.gt-bestfor-sec { }
.gt-bestfor { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; margin-top: 28px; }
.gt-bf-card { border: 1px solid var(--ink); background: var(--cream); padding: 18px; display: flex; flex-direction: column; gap: 11px; transition: transform .12s ease, box-shadow .12s ease; text-decoration: none; color: inherit; cursor: pointer; }
.gt-bf-card:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.gt-bf-card:hover .gt-bf-link { color: var(--orange); }
.gt-bf-card.me { background: var(--cream-2); border-width: 2px; box-shadow: 3px 3px 0 var(--orange); }
.gt-bf-link { font-family: var(--fs-mono); font-size: 12px; font-weight: 700; color: var(--dim); margin-top: auto; padding-top: 4px; }
.gt-bf-tag { font-family: var(--fs-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.gt-bf-winner { display: flex; align-items: center; gap: 10px; }
.gt-bf-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gt-bf-name { font-family: var(--fs-display); font-size: 26px; line-height: 1; color: var(--ink); }
.gt-bf-why { font-family: var(--fs-mono); font-size: 12px; line-height: 1.55; color: var(--ink); }

/* ---------- Tool cards ---------- */
.gt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.gt-card { border: 1px solid var(--ink); background: var(--cream); padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 13px; transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease; }
.gt-card:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.gt-card.me { background: var(--cream-2); border-width: 2px; }
.gt-card.active { box-shadow: 4px 4px 0 var(--orange); border-color: var(--orange); }
.gt-card.dim { opacity: .35; }
.gt-card-head { display: flex; align-items: center; gap: 12px; }
.gt-card-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gt-card-name { font-family: var(--fs-mono); font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.gt-card-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); border: 1px solid var(--orange); padding: 1px 5px; }
.gt-card-price { font-family: var(--fs-mono); font-size: 12px; color: var(--dim); margin-top: 2px; }
.gt-card-blurb { font-family: var(--fs-mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); flex: 1; }
.gt-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--ink); padding-top: 12px; gap: 10px; }
.gt-card-engines { font-family: var(--fs-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.gt-card-link { font-family: var(--fs-mono); font-size: 12px; font-weight: 700; color: var(--orange); text-decoration: none; white-space: nowrap; }
.gt-card-link:hover { text-decoration: underline; }
.gt-card-link.muted { color: var(--dim); font-weight: 400; }

/* ---------- CTA ---------- */
.gt-cta { border: 1px solid var(--ink); background: var(--panel-dark, #1E1A14); color: var(--cream); padding: 48px 40px; text-align: center; box-shadow: 6px 6px 0 var(--ink); }
.gt-cta h3 { font-family: var(--fs-display); font-size: clamp(28px, 4vw, 46px); line-height: 1.02; margin: 8px 0 14px; color: var(--cream); }
.gt-cta p { font-family: var(--fs-mono); font-size: 14px; line-height: 1.65; color: #C9BCA3; max-width: 64ch; margin: 0 auto; }
.gt-cta-btns { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gt-panel .panel-body { padding: 24px 18px 28px; }
  .gt-matrix-wrap { padding-left: 50px; }
  .gt-matrix { min-height: 460px; }
  .gt-matrix .axis-lbl.y { left: -130px; width: 200px; }
  .gt-dot .dot-sq { width: 34px; height: 34px; }
  .gt-dot.me .dot-sq { width: 38px; height: 38px; }
  .gt-dot .lbl { font-size: 9px; }
  .gt-matrix .q-label { font-size: 12px; }
  .gt-matrix-top { flex-direction: column; align-items: stretch; }
  .gt-axis-controls { width: 100%; }
  .gt-axis-pick { flex: 1; }
  .gt-axis-pick select { min-width: 0; width: 100%; }
  .gt-hero-stats > div { min-width: 50%; flex: none; width: 50%; border-bottom: 1px dashed var(--ink); }
  .gt-rec-name { width: 84px; font-size: 12px; }
  .gt-rec-rank { width: 64px; }
  .gt-cta { padding: 30px 20px; }
}
