/* Reportly - the free quick-win finder page: the tool card, the result table and
   the CTA under it. Tokens and layout come from base.css / landing.css. */

.tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -44px rgba(11, 18, 32, 0.4);
  padding: 34px 34px 32px;
}
.tool__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.tool__head h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin: 10px 0 0; }
.tool__hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; max-width: 320px; line-height: 1.55; }

.tool .dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 30px 20px;
  border: 1.6px dashed #cfd6e4;
  border-radius: var(--radius);
  background: #fafbfe;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.tool .dropzone:hover,
.tool .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.tool .dropzone.is-over { transform: scale(1.006); }
.tool .dropzone svg { color: var(--brand); opacity: 0.8; }
.tool .dropzone strong { font-family: var(--font-display); font-size: 16.5px; letter-spacing: -0.01em; }
.tool .dropzone span { font-size: 13px; color: var(--muted); }

.tool__status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.tool__status .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3cad7;
  flex: none;
  transform: translateY(-1px);
}
.tool__status.is-loaded .pip { background: var(--green); }
.tool__status.is-error { color: var(--red); }
.tool__status.is-error .pip { background: var(--red); }
.tool__status b { color: var(--ink); font-weight: 600; }

.tool__sample { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tool__sep { color: #c3cad7; }
.tool__privacy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.wins { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.wins__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.wins__kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.wins__head h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; margin: 6px 0 0; }
.wins__meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.wins__lede { margin: 12px 0 0; font-size: 14px; color: var(--body); line-height: 1.6; }
.wins__lede b { color: var(--ink); font-weight: 600; }
.wins__tablewrap { margin-top: 14px; overflow-x: auto; }
.wins__table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.wins__table th {
  text-align: right;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.wins__table th:nth-child(2) { text-align: left; }
.wins__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.wins__table td.wins__kw { text-align: left; font-weight: 600; color: var(--ink); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wins__table td.wins__rank { text-align: left; color: var(--muted); width: 34px; font-size: 12px; }
.wins__table td.wins__pos { font-weight: 700; color: var(--brand-deep); }
.wins__table tbody tr:hover td { background: #fafbff; }
.wins__empty { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.tool__cta {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0b1220 0%, #16233c 100%);
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tool__cta h3 { color: #fff; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; margin: 0; }
.tool__cta p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; max-width: 620px; }
.tool__cta .btn { flex: none; }

@media (max-width: 760px) {
  .tool { padding: 24px 20px 22px; }
  .tool__hint { max-width: none; }
  .tool__privacy { margin-left: 0; }
  .wins__table { font-size: 13px; }
  .tool__cta { padding: 18px; }
  .tool__cta .btn { width: 100%; justify-content: center; }
}

/* Utilities the tool page needs on its own (the app's workspace.css carries
   these, but this page loads only the landing and page styles). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.link-btn[hidden] { display: none; }
.wins__table { table-layout: fixed; }
.wins__table th.wins__rank,
.wins__table td.wins__rank { text-align: left; width: 42px; }

/* ---------- Bridge: this list is one box on the client report ---------- */
.bridge {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px;
  border: 1px solid #cfdcf5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f5f9ff 0%, #e9f0ff 100%);
}
.bridge[hidden] { display: none; }
.bridge__shot {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 26px -16px rgba(11, 18, 32, 0.55), 0 0 0 1px rgba(11, 18, 32, 0.06);
}
.bridge__shot img { display: block; width: 100%; height: auto; }
.bridge__kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.bridge h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.bridge p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--body); max-width: 700px; }
.bridge__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bridge__fine { font-size: 12px; color: var(--muted); }
.bridge__fine a { color: var(--brand-deep); font-weight: 600; }

@media (max-width: 680px) {
  .bridge { grid-template-columns: 1fr; padding: 18px; gap: 0; }
  .bridge__shot { display: none; }
  .bridge__cta { margin-top: 16px; }
  .bridge__cta .btn { width: 100%; justify-content: center; }
}
