/* Public (logged-out) page touch-ups that go with the shared site shell: pill buttons,
   demo tables on phones, spacing around the floating WhatsApp button. Loaded by _header_public.html. */
.tool-about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Drillbit / AI Checker demo submissions table ---------- */
/* Desktop/tablet: compact enough that all seven columns fit inside the demo card (no clipped "Paper ID"). */
.tool-demo-drillbit-table.tool-demo-table-stack { font-size: .84rem; table-layout: auto; }
.tool-demo-drillbit-table.tool-demo-table-stack th,
.tool-demo-drillbit-table.tool-demo-table-stack td { padding: 11px 8px; }
.tool-demo-drillbit-table.tool-demo-table-stack td:nth-child(2) { white-space: normal; min-width: 110px; }
.tool-demo-drillbit-table.tool-demo-table-stack th:first-child,
.tool-demo-drillbit-table.tool-demo-table-stack td:first-child { padding-left: 12px; }
/* Whenever the demo card is too narrow for seven columns (phones, tablets, small laptops), each submission
   becomes a small labelled card, so nothing is hidden off the edge. Container query on the demo card;
   browsers without container queries keep the old horizontal scroll. */
.tool-demo-drillbit { container-type: inline-size; }
@container (max-width: 740px) {
  .tool-demo-drillbit-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none !important; }
  .tool-demo-drillbit-table.tool-demo-table-stack,
  .tool-demo-drillbit-table.tool-demo-table-stack tbody,
  .tool-demo-drillbit-table.tool-demo-table-stack tr,
  .tool-demo-drillbit-table.tool-demo-table-stack td { display: block; width: 100%; }
  .tool-demo-drillbit-table.tool-demo-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool-demo-drillbit-table.tool-demo-table-stack tr {
    margin: 0 0 10px; padding: 6px 12px; border: 1px solid #d9e1ff; border-radius: 14px; background: #fff;
    box-shadow: 0 6px 18px rgba(63, 86, 160, .06);
  }
  .tool-demo-drillbit-table.tool-demo-table-stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border-bottom: 1px solid var(--gray-100, #f3f4f6); white-space: normal; text-align: right; min-width: 0;
  }
  .tool-demo-drillbit-table.tool-demo-table-stack td:first-child { padding-left: 0; font-weight: 700; }
  .tool-demo-drillbit-table.tool-demo-table-stack tbody tr td:last-child { border-bottom: 0; }
  .tool-demo-drillbit-table.tool-demo-table-stack td::before {
    content: attr(data-label); flex-shrink: 0; text-align: left; font-weight: 600; color: var(--gray-600, #4b5563); font-size: .8rem;
  }
}
@container (min-width: 460px) and (max-width: 740px) {
  .tool-demo-drillbit-table.tool-demo-table-stack tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-demo-drillbit-table.tool-demo-table-stack tr { margin: 0; }
  .tool-demo-drillbit-table.tool-demo-table-stack td { padding: 5px 0; font-size: .8rem; }
}

/* ---------- Scroll reveal on inner pages ---------- */
/* Keep the old card lifts, but only for a real mouse (the reveal's transform: none would otherwise win). */
@media (hover: hover) and (pointer: fine) {
  .hp-js .pricing-card.hp-reveal.is-visible:hover,
  .hp-js .contact-card.hp-reveal.is-visible:hover,
  .hp-js .landing-feature-card.hp-reveal.is-visible:hover { transform: translateY(-6px); }
  .hp-js .tool-section.hp-reveal.is-visible:hover { transform: translateY(-2px); }
}

/* ---------- Pill buttons, matching the homepage .hp-btn ---------- */
body.landing-page .btn,
body.landing-page .btn-landing,
body.landing-page .tool-demo-btn,
body.landing-page .landing-btn-nav,
body.landing-page .services-cta-btn,
body.landing-page .services-detail-cta,
body.landing-page .samples-cta-btn { border-radius: 999px; }
body.landing-page .btn-primary,
body.landing-page .btn-landing-primary,
body.landing-page .btn-landing-cta,
body.landing-page .tool-demo-btn:not(.tool-demo-btn-ghost) { box-shadow: 0 6px 18px rgba(63, 86, 160, .28); }
body.landing-page .btn-full { padding-top: 13px; padding-bottom: 13px; }
@media (hover: hover) and (pointer: fine) {
  body.landing-page .btn:not(:disabled):hover,
  body.landing-page .btn-landing:hover,
  body.landing-page .tool-demo-btn:hover { transform: translateY(-2px); }
}

/* ---------- Contact page: phone list + two CTAs ---------- */
.contact-card .contact-card-tel { display: block; min-height: 44px; line-height: 44px; margin-top: 0; }
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Phone readability (<=640px; desktop unchanged): 14px minimum text on tool, pricing and contact pages ---------- */
@media (max-width: 640px) {
  .hero-stat-label, .hero-testimonial-author, .tool-section-highlight-badge, .tool-turnitin-chip, .tool-turnitin-kicker,
  .tool-ai-check-figure figcaption, .pricing-card-badge, .pricing-turnitin-mode,
  .tool-demo-turnitin-queue-label, .tool-demo-turnitin-badge, .tool-demo-price-label, .tool-demo-turnitin-sample-note,
  .tool-demo-score-ready, .tool-demo-score-pending, .tool-demo-actions-pill,
  .tool-demo-drillbit-table th, .tool-demo-drillbit-table td { font-size: .875rem; }
  .contact-card-link { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-toc-nav a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .legal-contact-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .auth-link { display: inline-flex; align-items: center; min-height: 44px; }
  .form-hint { font-size: .875rem; }
  /* Login / signup / forgot-password: each label is a 44px tap row (tapping it focuses the field). */
  .auth-form .form-group label { display: flex; align-items: center; min-height: 44px; margin-bottom: 2px; }
}

/* Phones: show the page hero at once (no fade-in), so the largest text paints on first render (LCP). Desktop unchanged. */
@media (max-width: 640px) {
  .pricing-hero, .pricing-hero *, .services-hero-inner, .services-hero-inner *,
  .samples-hero, .samples-hero *, .tool-hero, .tool-hero * { animation: none !important; }
}
