/* ============================================================
   Free tool pages, v2 layout (Claude Design "Free Tools" project).
   Used by tool-pages/_template-v2.html only. Load AFTER blog.css
   (which defines the .sona-blog tokens) and tool-page.css (which
   still styles the result renderers inside #toolResults).

   Everything is scoped to .tp2 so it cannot touch the v1 pages.
   ============================================================ */

.tp2 {
  /* Tokens the design uses that blog.css doesn't define */
  --max-content: 1440px;
  --radius-feature: 20px;
  --glass-bg: rgba(253, 253, 253, 0.06);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  --color-error-40: #fdeaea;
  --color-error-400: #9e1300;
  --color-warning: #ff8c22;
  --color-warning-40: #fff6ed;
  --color-warning-60: #ffe6cd;
  --color-warning-400: #b36218;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --tp2-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tp2-btn-muted: color-mix(in srgb, var(--sona-navy) 65%, white);

  font-family: var(--font-sans);
  background: var(--surface-light);
  color: var(--text-body);
}
.tp2 *,
.tp2 *::before,
.tp2 *::after {
  box-sizing: border-box;
}

/* ── Sections ─────────────────────────────────────────────── */
.tp2-sec {
  padding: 80px 104px;
  background: var(--surface-light);
}
.tp2-sec--dark {
  background: var(--sona-gradient-navy);
}
.tp2-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}
.tp2-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.tp2-two--wide {
  gap: 64px;
}
.tp2-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tp2-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  min-width: 0;
}
.tp2-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 48px;
}

/* ── Type ─────────────────────────────────────────────────── */
.tp2 h1,
.tp2 h2,
.tp2 h3 {
  font-family: var(--font-sans);
}
.tp2-h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  line-height: 69px;
  letter-spacing: -1.6px;
  color: var(--text-heading-2);
}
.tp2-h1 span {
  color: var(--sona-pink);
}
.tp2-h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 50.6px;
  letter-spacing: -1.2px;
  text-wrap: balance;
  color: var(--text-heading);
}
.tp2-sec--dark .tp2-h2 {
  color: var(--text-on-dark-heading);
}
.tp2-h2 .tp2-muted { color: var(--text-label); }
.tp2-h2 .tp2-pink-link { color: var(--sona-pink-link); }
.tp2-h2 .tp2-pink { color: var(--sona-pink); }
.tp2-lead {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: var(--text-body-2);
  max-width: 520px;
}
.tp2-intro {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 760px;
  text-wrap: balance;
  color: var(--text-body);
}
.tp2-sec--dark .tp2-intro {
  color: var(--text-on-dark-body);
}
.tp2-body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}
.tp2-link {
  color: var(--sona-navy-mid);
  text-decoration: underline;
  transition: color 0.2s var(--tp2-ease);
}
.tp2-link:hover,
.tp2-link:focus-visible {
  color: var(--sona-navy);
}

/* ── Eyebrow chips ────────────────────────────────────────── */
.tp2-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 8px 12px 8px 16px;
  border-radius: 9999px;
  background: #eaecf8;
  font-size: 14px;
  font-weight: 500;
  color: #343941;
  white-space: nowrap;
}
.tp2-head .tp2-chip {
  align-self: center;
}
.tp2-chip-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 21px;
  border-radius: 9999px;
  background: #cfd4ef;
  flex-shrink: 0;
}
.tp2-chip--pink {
  background: #fbc8dc;
}
.tp2-chip--pink .tp2-chip-arrow {
  background: #f796bf;
}

/* Hero badge: gradient-bordered pill with an icon */
.tp2-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 9999px;
  padding: 1.2px;
  background: linear-gradient(140deg, #cfd4ef, rgba(255, 255, 255, 0.25) 45%, #fbc8dc);
}
.tp2-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 9999px;
  padding: 7px 15px 7px 8px;
  background: linear-gradient(90deg, #eeeffa, #fbeef6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #080d17;
  white-space: nowrap;
}
.tp2-badge-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sona-navy-mid);
  box-shadow: inset 0 0 0 1px #8390d6;
}

/* ── Buttons ──────────────────────────────────────────────── */
.tp2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--tp2-ease), opacity 0.2s var(--tp2-ease);
}
.tp2-btn--pink {
  background: var(--sona-pink);
  color: var(--text-on-dark-heading);
}
.tp2-btn--pink:hover {
  opacity: 0.9;
  color: var(--text-on-dark-heading);
}
.tp2-btn--secondary {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-button);
}
.tp2-btn--secondary:hover {
  background: var(--pill-bg);
  color: var(--text-body);
}
.tp2-btn--on-dark {
  color: var(--text-on-dark-heading);
  border-color: var(--text-on-dark-heading);
}
.tp2-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark-heading);
}
.tp2-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Hero ─────────────────────────────────────────────────── */
.tp2-hero {
  padding-top: 64px;
}
.tp2-hero .tp2-two {
  align-items: center;
  gap: 64px;
}
.tp2-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 9999px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 8px 24px rgba(29, 45, 130, 0.1), 0 0 0 1px rgba(29, 45, 130, 0.04);
}
.tp2-form:focus-within {
  box-shadow: 0 8px 24px rgba(29, 45, 130, 0.1), 0 0 0 2px var(--pill-border);
}
.tp2-scheme {
  color: var(--text-muted-2);
  font-size: 16px;
}
.tp2-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-heading);
}
.tp2-form input::placeholder {
  color: var(--text-muted-2);
}
/* Picking a URL from the browser's suggestions marks the field autofilled,
   and Chrome paints it light blue until it is edited by hand. Keep the pill
   white instead: an inset shadow covers the autofill fill, and the long
   transition stops Chrome's own background from showing through. */
.tp2-form input:-webkit-autofill,
.tp2-form input:-webkit-autofill:hover,
.tp2-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text-heading);
  caret-color: var(--text-heading);
  transition: background-color 9999s ease-out 0s;
}
.tp2-form input:autofill {
  box-shadow: 0 0 0 1000px #fff inset;
}
.tp2-check {
  flex-shrink: 0;
  height: 43px;
  padding: 11px 22px;
  border: none;
  border-radius: 9999px;
  background: var(--tp2-btn-muted);
  color: var(--text-on-dark-heading);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--tp2-ease), opacity 0.2s var(--tp2-ease);
}
.tp2-check.is-filled {
  background: var(--sona-navy);
}
.tp2-check.is-filled:hover {
  background: var(--sona-navy-hover);
}
.tp2-check:disabled {
  opacity: 0.6;
  cursor: wait;
}
.tp2-note {
  font-size: 14px;
  color: var(--text-muted-3);
}
.tp2 .tp-error {
  display: none;
  margin: -8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--sona-pink);
}

/* Sample result card */
.tp2-report {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 32px;
  box-shadow: var(--shadow-analytics);
  overflow: hidden;
}
.tp2-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.tp2-report-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sona-navy);
  text-transform: uppercase;
}
.tp2-report-found {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
  border-radius: 9999px;
  padding: 4px 12px;
}
.tp2-report-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tp2-report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
}
.tp2-report-row + .tp2-report-row {
  border-top: 1px solid var(--border-light);
}
.tp2-report-row span:first-child {
  color: var(--text-muted-2);
}
.tp2-report-row span:last-child {
  font-weight: 600;
  color: var(--text-heading);
  text-align: right;
  word-break: break-all;
}
.tp2-code {
  background: var(--sona-navy-deep);
  border-radius: 16px;
  padding: 16px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-label);
}
.tp2-code-hl {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--sona-pink);
  margin: 0 -16px;
  padding: 0 16px 0 13px;
  color: var(--text-on-dark-heading);
}
.tp2-points {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tp2-points svg {
  margin-left: 12px;
}
.tp2-points-box {
  width: 100%;
  background: #eeeffa;
  color: var(--sona-navy);
  border-radius: 12px;
  padding: 12px 16px;
}
.tp2-points-box div:first-child {
  font-size: 12px;
  font-weight: 500;
}
.tp2-points-box div:last-child {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

/* Live results: the existing renderers, in a white card under the hero */
.tp2-results {
  max-width: var(--max-content);
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-analytics);
  padding: 32px;
  scroll-margin-top: 120px;
}
.tp2-results[hidden] {
  display: none;
}

/* Stats row */
.tp2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--max-content);
  margin: 56px auto 0;
  border-top: 1px solid #ebecec;
  padding-top: 40px;
}
.tp2-stat-num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1d2d82;
}
.tp2-stat-text {
  font-size: 15px;
  font-weight: 500;
  color: #343941;
  margin-top: 10px;
}
.tp2-stat-src {
  font-size: 12px;
  font-weight: 500;
  color: #8a90a2;
  margin-top: 10px;
}

/* ── Tick / cross lists ───────────────────────────────────── */
.tp2-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp2-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: balance;
  color: var(--text-on-dark-body);
}
.tp2-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tp2-mark--x {
  background: rgba(238, 43, 126, 0.2);
  color: var(--sona-pink-link);
}
.tp2-mark--ok {
  background: #22c55e;
  color: #fff;
}
.tp2-mark--err {
  background: var(--color-error-40);
  color: var(--color-error);
}

/* ── How it works (dark step cards) ───────────────────────── */
.tp2-step {
  height: 100%;
  padding: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-feature);
  box-shadow: var(--glass-inset);
}
.tp2-step-n {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fdfdfd;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.tp2-step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-on-dark-heading);
}
.tp2-step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 23.25px;
  text-wrap: balance;
  color: var(--text-on-dark-body);
}

/* ── White cards (what we check / why it matters) ─────────── */
.tp2-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-analytics);
  padding: 28px;
}
.tp2-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}
.tp2-card-sub {
  margin: 6px 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-2);
}
.tp2-ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp2-ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
}
.tp2-ticks .tp2-mark {
  width: 18px;
  height: 18px;
  background: var(--sona-navy);
  color: #fff;
}
.tp2-foot-note {
  margin: 40px auto 0;
  max-width: 760px;
  text-align: center;
  text-wrap: balance;
  font-size: 16px;
  color: var(--text-body);
}

.tp2-why {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
}
.tp2-why h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.tp2-why p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.tp2-why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pill-bg);
  color: var(--sona-navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Real impact (before → after) ─────────────────────────── */
.tp2-impact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.tp2-impact-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-analytics);
  padding: 28px;
}
.tp2-impact-card--after {
  border-color: rgba(34, 197, 94, 0.55);
}
.tp2-impact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--color-error);
}
.tp2-impact-card--after .tp2-impact-top {
  color: #15803d;
}
.tp2-impact-top span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.tp2-impact-top span:last-child {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tp2-impact-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp2-impact-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  text-wrap: balance;
  color: var(--text-body);
}
.tp2-impact-card li + li {
  border-top: 1px solid var(--border-divider);
}
.tp2-impact-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tp2-impact-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--sona-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp2-impact-fixed {
  font-size: 14px;
  font-weight: 500;
  color: #343941;
  background: #fbc8dc;
  border-radius: 9999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ── Snapshot to system (glass cards on navy) ─────────────── */
.tp2-two--cards {
  gap: 20px;
  align-items: stretch;
}
.tp2-glass {
  height: 100%;
  padding: 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-feature);
  box-shadow: var(--glass-inset);
  color: var(--text-on-dark-heading);
}
.tp2-glass h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.tp2-glass h3 a {
  color: inherit;
  text-decoration: none;
}
.tp2-glass h3 a:hover {
  text-decoration: underline;
}
.tp2-glass-q {
  margin: 6px 0 14px;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: var(--sona-pink-link);
}
.tp2-glass ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp2-glass li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
  color: var(--text-on-dark-body);
}
.tp2-diamond {
  width: 7px;
  height: 7px;
  background: var(--sona-pink-link);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 8px;
}
.tp2-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--sona-pink-link);
}
.tp2-flow span:not(.tp2-flow-arrow) {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #fdfdfd;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.tp2-flow span.tp2-flow-end {
  background: var(--sona-pink);
  border-color: var(--sona-pink);
}
.tp2-sec--dark .tp2-actions {
  margin-top: 32px;
}

/* ── Closing banner ───────────────────────────────────────── */
.tp2-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.tp2-banner-title {
  font-size: 48px;
  line-height: 60px;
  white-space: nowrap;
}
.tp2-banner p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 760px;
  color: var(--text-body);
}
.tp2-banner .tp2-link {
  font-weight: 700;
}

/* ── FAQ (dark accordion) ─────────────────────────────────── */
.tp2-faq-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.tp2-faqhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.tp2-faqhead .tp2-h2 {
  font-size: 48px;
}
.tp2-faqhead p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 360px;
  text-align: right;
  color: #ebecec;
}
.tp2-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Same accordion as the AI Crawl Checker home page (FaqSection in
   src/components/homeParts.tsx): right chevron that turns down, and the answer
   slides open via grid-template-rows. Toggled by the script in the template.
   The hover/open/focus highlight is from the Claude Design file (.ct-faq). */
.tp2-faq-item {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(253, 253, 253, 0.06);
  border: 1px solid var(--glass-border);
  transition: background 0.2s var(--tp2-ease), border-color 0.2s var(--tp2-ease);
}
.tp2-faq-item:hover,
.tp2-faq-item:has(.tp2-faq-q[aria-expanded="true"]),
.tp2-faq-item:has(.tp2-faq-q:focus-visible) {
  background: rgba(253, 253, 253, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}
.tp2-faq-q {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--text-on-dark-heading);
}
.tp2-faq-q:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -4px;
  border-radius: 16px;
}
.tp2-faq-chev {
  flex-shrink: 0;
  margin-left: 24px;
  color: var(--text-on-dark-body);
  transition: transform 0.3s var(--tp2-ease);
}
.tp2-faq-q[aria-expanded="true"] .tp2-faq-chev {
  transform: rotate(90deg);
}
.tp2-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--tp2-ease);
}
.tp2-faq-a > div {
  overflow: hidden;
  /* Keep links in a closed answer out of the tab order, once it has slid shut */
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
.tp2-faq-q[aria-expanded="true"] + .tp2-faq-a {
  grid-template-rows: 1fr;
}
.tp2-faq-q[aria-expanded="true"] + .tp2-faq-a > div {
  visibility: visible;
  transition: visibility 0s;
}
.tp2-faq-a p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark-body);
}
@media (max-width: 640px) {
  .tp2-faq-q {
    padding: 16px 18px;
    font-size: 16px;
  }
  .tp2-faq-a p {
    padding: 0 18px 16px;
    font-size: 15px;
  }
}

/* ── More free tools ──────────────────────────────────────── */
.tp2-more {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.tp2-more .tp2-h2 {
  font-size: 48px;
  line-height: 1.25;
}
.tp2-more-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tp2-more-group h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-heading);
}
.tp2-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tp2-tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid #e3e5ee;
  border-radius: 20px;
  box-shadow: var(--shadow-analytics);
  text-decoration: none;
  outline: none;
  transition: transform 0.2s var(--tp2-ease), box-shadow 0.2s var(--tp2-ease), border-color 0.2s var(--tp2-ease);
}
.tp2-tool:hover,
.tp2-tool:focus-visible {
  border-color: #cfd4ef;
  transform: translateY(-4px);
  box-shadow: 0 40px 90px rgba(29, 45, 130, 0.1), 0 12px 30px rgba(29, 45, 130, 0.04);
}
.tp2-tool-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2940b9;
}
.tp2-tool-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #141923;
}
.tp2-tool-name span {
  color: #2940b9;
  transition: color 0.2s var(--tp2-ease);
}
.tp2-tool:hover .tp2-tool-name span,
.tp2-tool:focus-visible .tp2-tool-name span {
  color: #1d2d82;
}
.tp2-tool-blurb {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #343941;
}
@media (prefers-reduced-motion: reduce) {
  .tp2-tool:hover,
  .tp2-tool:focus-visible {
    transform: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tp2-sec {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (max-width: 900px) {
  .tp2-sec {
    padding: 48px 16px;
  }
  /* Stacked columns: the desktop column gaps (48-64px) read as a hole. */
  .tp2-two,
  .tp2-hero .tp2-two,
  .tp2-three,
  .tp2-tools,
  .tp2-impact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tp2-h1 {
    font-size: 36px;
    line-height: 1.2;
  }
  .tp2-h2,
  .tp2-faqhead .tp2-h2,
  .tp2-more .tp2-h2 {
    font-size: 28px;
    line-height: 1.25;
  }
  .tp2-banner-title {
    white-space: normal;
  }
  /* More free tools: the first group label sits close under the heading
     (not floating mid-way at 40px), labels read as labels, cards tighter. */
  .tp2-more {
    gap: 32px;
  }
  .tp2-more > .tp2-h2 + .tp2-more-group {
    margin-top: -12px;
  }
  .tp2-more-group {
    gap: 12px;
  }
  .tp2-more-group h3 {
    font-size: 18px;
    font-weight: 600;
  }
  .tp2-tools {
    gap: 16px;
  }
  .tp2-faqhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .tp2-faqhead p {
    text-align: left;
  }
  .tp2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Results (and the loading card) follow the stacked hero at the same 24px
     as the rest of it; the next-step card sits closer to the last row. */
  .tp2-results {
    margin-top: 24px;
    padding: 20px;
  }
  .tp2-results .tp-next {
    margin-top: 16px;
  }
  /* Balanced wrapping on narrow bullets breaks lines early and leaves the
     right side empty; pretty only avoids a one-word last line. */
  .tp2-list li,
  .tp2-impact-card li {
    text-wrap: pretty;
  }
  .tp2-head {
    margin-bottom: 32px;
  }
  /* Real impact, stacked: tighter cards, and the arrow + label sit side by
     side with the arrow turned to point down at the next card. */
  .tp2-impact {
    gap: 16px;
  }
  .tp2-impact-card {
    padding: 20px 20px 8px;
  }
  .tp2-impact-mid {
    flex-direction: row;
    justify-content: center;
  }
  .tp2-impact-arrow {
    width: 36px;
    height: 36px;
    transform: rotate(90deg);
  }
  /* 11px uppercase labels are too small to read comfortably on a phone. */
  .tp2-impact-top span:first-child,
  .tp2-tool-tag,
  .tp2-report-label {
    font-size: 12px;
  }
  .tp2-badge-inner {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .tp2-stats {
    grid-template-columns: 1fr;
  }
  .tp2-form {
    padding-left: 16px;
  }
  .tp2-scheme {
    display: none;
  }
  /* A pair of buttons stacks: both take the width of the longer one, via a
     single auto-sized grid column, instead of each hugging its own label. */
  .tp2-actions:has(> :nth-child(2)) {
    display: grid;
    justify-content: center;
  }
  .tp2-actions:has(> :nth-child(2)) > * {
    width: 100%;
  }
  /* Room for the result card buttons to stay on one line down to 360px. */
  .tp2-results {
    padding: 16px;
  }
  /* Stacked one per row, 44px numbers would outrank the 36px page title. */
  .tp2-stat-num {
    font-size: 36px;
  }
}

.tp2-intro code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--sona-navy);
}

/* Shown in the results spot while a check runs, so it is clear where the
   result will appear. Keeps spinning under reduced motion: it is the only
   sign the check is still going. */
.tp2-loading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tp2-loading[hidden] {
  display: none;
}
.tp2-spinner {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(238, 43, 126, 0.18);
  border-top-color: var(--sona-pink);
  animation: tp2-spin 0.8s linear infinite;
}
@keyframes tp2-spin {
  to {
    transform: rotate(360deg);
  }
}
.tp2-loading-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--sona-navy);
}
.tp2-loading-sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-label);
}
/* Errors scroll back into view after a check; clear the sticky header. */
#toolError,
.tp2-error {
  scroll-margin-top: 140px;
}
