/* site.css — TruthDraft shared header/footer + public/blog page styles.
   Variables live in tokens.css; load that first.
   site-ink, site-blue, site-line, etc. are aliased there. */

/* One shared header and footer across the homepage, tools, and content routes. */
.global-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  border-bottom: 1px solid var(--site-line);
  background: rgba(247, 248, 250, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.global-header,
.global-footer {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.global-header-inner {
  display: flex;
  width: min(100% - 48px, 1120px);
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.global-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.global-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--site-ink);
  color: #fff;
  font-size: 14px;
}

.global-nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.global-nav-links a {
  color: #526074;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s ease;
  font-weight: 500;
}

.global-nav-links a:hover,
.global-nav-links a[aria-current="page"] {
  color: var(--color-cta);
}

.global-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(28, 43, 58, 0.28);
  background: transparent;
  color: #1C2B3A;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}

.global-header-cta:hover {
  background: rgba(28, 43, 58, 0.06);
  border-color: #1C2B3A;
}

.global-footer {
  width: 100%;
  margin-top: auto;
  background: #1C2B3A;
  color: #EFEBE1;
}

.global-footer-inner {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 48px 0 20px;
}

.global-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 32px;
  padding-bottom: 36px;
}

.global-brand-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 2px;
}

.global-footer-brand-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 2px;
}

.global-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F7F3EC;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.global-footer-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #526074;
  border-radius: 6px;
  color: #fff;
}

.global-footer-description {
  max-width: 320px;
  margin: 13px 0 0;
  color: #DDD6C8;
  font-size: 12.5px;
  line-height: 1.7;
}

.global-footer-title {
  margin: 3px 0 14px;
  color: #F7F3EC;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.global-footer-links {
  display: grid;
  gap: 11px;
}

.global-footer-links a {
  width: fit-content;
  color: #DDD6C8;
  font-size: 12.5px;
  text-decoration: none;
  transition: color .15s ease;
}

.global-footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.global-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #DDD6C8;
  font-size: 12px;
  line-height: 1.6;
}

.global-footer-bottom a {
  color: #F7F3EC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.public-page {
  padding: 0 !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
}

.public-header,
.public-footer,
.blog-nav,
.blog-footer,
body>.nav-wrap,
body>.tool-nav,
.detector-page-header {
  display: none !important;
}

.site-footer,
.global-footer {
  background: var(--site-ink) !important;
}

/* Shared TruthDraft identity across tools and informational pages. */
.brand-badge,
.tool-nav-brand-mark,
.logo-mark {
  background: var(--site-ink) !important;
  box-shadow: none !important;
}

.banner-gradient {
  background: var(--site-ink) !important;
  background-image: none !important;
  animation: none !important;
}

.btn-primary-cobalt,
.btn-primary,
.tool-nav-action {
  background: var(--site-blue) !important;
  box-shadow: none !important;
}

.btn-primary-cobalt:hover,
.btn-primary:hover,
.tool-nav-action:hover {
  background: var(--site-blue-hover) !important;
}

.nav-page-link.active,
.tool-nav-link.active {
  background: #edf4ff !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}

.tool-nav,
.site-header {
  background: var(--color-bg, #F7F3EC) !important;
  border-color: var(--color-border, rgba(28, 43, 58, 0.14)) !important;
}

.tool-page {
  background: var(--color-bg, #F7F3EC) !important;
}

.tool-page .tool-nav-inner {
  max-width: 1160px !important;
}

.tool-page .container {
  max-width: 1160px !important;
}

.tool-page .tool-page-intro h1 {
  color: var(--site-ink) !important;
}

.tool-page .bento-card {
  border: 1px solid var(--site-line) !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 16px rgba(11, 18, 32, .04) !important;
}

.tool-page .humanizer-info-card {
  border-radius: 8px !important;
}

.tool-page .score-badge-success {
  border-color: #d9e2ec !important;
  background: #eef3f8 !important;
  color: #43546c !important;
}

.site-footer {
  background: var(--site-ink) !important;
}

/* Detector & Humanizer share the homepage's quiet, neutral visual language. */
body:has(#detector-panel),
body:has(#humanizer-panel) {
  padding: 0 !important;
  background: var(--site-bg) !important;
  color: var(--site-ink) !important;
}

#top-banner {
  background: var(--site-ink) !important;
  background-image: none !important;
  box-shadow: none !important;
}

#top-banner .max-w-7xl {
  max-width: 1160px;
}

.detector-page-header {
  background: #f7f8fa !important;
  border-color: var(--site-line) !important;
}

.detector-page-header>div {
  max-width: 1160px !important;
}

.detector-page-logo {
  filter: grayscale(1) contrast(1.15) !important;
}

.detector-page-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 48px !important;
}

.quillbot-workbench {
  border-color: var(--site-line) !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 16px rgba(11, 18, 32, .04) !important;
}

.quillbot-card,
.flagged-card {
  border-radius: 7px !important;
  box-shadow: none !important;
}

.btn-primary-cobalt,
#execute-detect-btn,
#detector-to-humanizer-btn,
#mobile-execute-btn,
#contact-submit-btn,
#accept-cookies-btn {
  background: var(--site-blue) !important;
  background-image: none !important;
  box-shadow: none !important;
}

#detector-to-humanizer-btn:hover,
#execute-detect-btn:hover,
#mobile-execute-btn:hover {
  background: var(--site-blue-hover) !important;
}

.product-copy {
  padding-right: 24px;
  padding-left: 24px;
}

@media (max-width: 700px) {
  .detector-page-main {
    padding: 20px 16px 40px !important;
  }
}

html.dark .tool-page {
  background: #090d16 !important;
}

html.dark body:has(#detector-panel) {
  background: #090d16 !important;
  color: #e2e8f0 !important;
}

html.dark .detector-page-header {
  background: #111827 !important;
  border-color: #1f293d !important;
}

/* Public pages: legal, confirmation, and not-found routes. */
body.public-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  padding: 0 24px;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.public-header {
  display: flex;
  width: 100%;
  max-width: 1152px;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-bottom: 1px solid var(--site-line);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  font-size: 16px;
  font-weight: 700;
}

.public-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--site-ink);
  color: #fff;
  font-size: 14px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #526074;
  font-size: 12px;
}

.public-nav a:hover {
  color: var(--site-blue);
}

.public-nav-action {
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #172338;
  font-weight: 600;
}

.public-nav-action:hover {
  border-color: #94a3b8;
}

.public-main {
  width: min(100% - 32px, 790px);
  flex: 1;
  margin: 0 auto;
  padding: 54px 0 84px;
  box-sizing: border-box;
}

.public-main section {
  margin-bottom: 24px;
}

.public-kicker {
  margin: 0 0 12px;
  color: #536174;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.public-main h1 {
  margin: 0 0 12px;
  color: var(--site-ink);
  font-size: clamp(32px, 5vw, 45px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.public-lede {
  margin: 0 0 30px;
  color: #5b6879;
  font-size: 15px;
  line-height: 1.7;
}

.public-main>div:not(.public-intro) {
  margin: 0 0 12px;
  padding: 22px 24px;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.public-main h2 {
  margin: 0 0 9px;
  color: #172338;
  font-size: 15px;
  font-weight: 650;
}

.public-main p,
.public-main li {
  color: #536174;
  font-size: 13px;
  line-height: 1.75;
}

.public-main ul {
  padding-left: 20px;
}

.public-main a:not(.public-nav-action) {
  color: #1d4ed8;
}

.public-footer {
  width: 100%;
  max-width: 1152px;
  margin: auto auto 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--site-line);
  color: #687587;
  font-size: 11px;
}

.status-main {
  display: grid;
  align-content: center;
  justify-items: start;
}

.status-main .status-code {
  margin-bottom: 12px;
  color: #1d4ed8;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.status-main .public-lede {
  max-width: 570px;
}

.status-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 7px;
  background: var(--site-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}

.status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 23px;
  color: #536174;
  font-size: 12px;
}

.contact-main {
  width: min(100% - 48px, 920px);
}

.contact-main>.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, .75fr);
  gap: 28px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-intro .public-lede {
  margin-bottom: 28px;
}

.contact-form,
.contact-aside {
  padding: 26px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 9px;
}

.contact-form label {
  margin-top: 7px;
  color: #26364b;
  font-size: 12px;
  font-weight: 600;
}

.contact-form label span {
  color: #778396;
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--site-ink);
  font: inherit;
  font-size: 13px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .18);
  border-color: #7aa2f7;
}

.contact-privacy {
  margin: 2px 0 5px;
  color: #6c7788;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.contact-privacy a,
.contact-aside a {
  color: var(--site-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-submit {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--site-blue);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.contact-submit:hover {
  background: var(--site-blue-hover);
}

.contact-aside h2 {
  margin-bottom: 11px;
}

.contact-aside p {
  font-size: 12px !important;
}

.blog-index-card {
  margin-top: 28px;
  padding: 23px 25px;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  background: #fff;
}

.blog-index-card .public-kicker {
  margin-bottom: 7px;
}

.blog-index-card h2 {
  font-size: 19px;
  line-height: 1.4;
}

.blog-index-card h2 a {
  color: var(--site-ink);
  text-decoration: none;
}

.blog-index-card h2 a:hover {
  color: var(--site-blue);
}

.blog-index-card>p:not(.public-kicker) {
  color: var(--site-copy);
  font-size: 13px;
  line-height: 1.7;
}

.blog-index-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 5px;
  color: var(--site-blue);
  font-size: 12px;
  font-weight: 600;
}

/* Article routes use the same surfaces, type, and restrained blue accents. */
body.blog-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--site-bg) !important;
  color: var(--site-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.blog-wrap {
  box-sizing: border-box;
  width: min(100% - 32px, 740px);
  max-width: 760px !important;
  flex: 1;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding-top: 28px;
  color: #687587 !important;
  font-size: 12px;
  line-height: 1.6;
}

.crumb a {
  color: #687587 !important;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--site-blue) !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #d9e2ec !important;
  border-radius: 4px !important;
  background: #eef3f8 !important;
  color: #43546c !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-h1 {
  margin: 0 0 14px;
  color: var(--site-ink) !important;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700 !important;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #687587;
  font-size: 12px;
  line-height: 1.6;
}

.lede {
  margin: 0 0 24px;
  border-left: 3px solid var(--site-blue) !important;
  padding-left: 16px;
  color: #526074 !important;
  font-size: 16px;
  line-height: 1.8;
}

.prose {
  color: #48566a !important;
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.prose section {
  margin: 0 0 24px;
}

.prose h2 {
  margin: 32px 0 11px;
  color: #172338 !important;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.prose h3 {
  margin: 24px 0 8px;
  color: #172338 !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.prose p {
  margin: 0 0 15px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li {
  margin: 0 0 6px;
  padding-left: 2px;
}

.prose strong {
  color: #172338 !important;
}

.prose a {
  color: var(--site-blue) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  margin: 20px 0 24px;
  border: 1px solid var(--site-line) !important;
  border-radius: 8px !important;
  padding: 17px 19px;
  background: #fff !important;
  color: #48566a;
}

.callout-title {
  margin-bottom: 7px;
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--site-line) !important;
  border-radius: 7px !important;
  background: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  background: #fff !important;
  color: #334155 !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--site-line);
}

.faq-body {
  padding: 14px 17px;
  background: #fff !important;
  color: #48566a !important;
  font-size: 14px;
  line-height: 1.75;
}

.faq-body p {
  margin: 0;
}

.cta-box {
  margin: 28px 0;
  border: 1px solid var(--site-line) !important;
  border-radius: 8px !important;
  padding: 22px;
  background: #fff !important;
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 8px;
  color: #172338 !important;
  font-size: 20px;
}

.cta-box p {
  margin: 0 0 16px;
  color: #526074;
}

.prose .try-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  background: var(--site-blue);
  padding: 10px 16px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.prose .step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
}

.prose .step-num {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #d7e3f2;
  border-radius: 6px;
  background: #edf4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.blog-nav {
  background: rgba(247, 248, 250, .95) !important;
  border-color: var(--site-line) !important;
}

.blog-nav-inner {
  max-width: 1120px !important;
}

.blog-logo {
  color: var(--site-ink) !important;
}

.try-btn {
  background: var(--site-blue) !important;
  border-radius: 6px !important;
}

.step-num {
  border: 1px solid #d7e3f2 !important;
  border-radius: 6px !important;
  background: #edf4ff !important;
  color: #1d4ed8 !important;
}

.blog-footer {
  background: var(--site-ink);
  border-color: var(--site-ink) !important;
  color: #aab4c2 !important;
}

.blog-footer a {
  color: #dce4ee !important;
}

@media (max-width: 700px) {
  .blog-wrap {
    width: min(100% - 32px, 740px);
    padding: 16px 0 48px;
  }

  .crumb {
    padding-top: 22px;
  }

  .blog-h1 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .lede {
    font-size: 15px;
  }

  .prose {
    font-size: 14px;
  }

  .prose h2 {
    margin-top: 27px;
    font-size: 19px;
  }

  .callout {
    padding: 15px 16px;
  }

  /* Blog figures, SVGs, and data tables */
  .blog-figure {
    margin: 22px 0 26px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    text-align: center;
  }

  .blog-figure svg,
  .blog-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
  }

  .blog-figure figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
  }

  .data-table-wrap {
    overflow-x: auto;
    margin: 20px 0 24px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: #fff;
  }

  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
  }

  .data-table th {
    background: #f1f5f9;
    color: var(--site-ink);
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid var(--site-line);
  }

  .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
  }

  .data-table tr:last-child td {
    border-bottom: none;
  }

  html.dark .blog-figure {
    background: #111827;
    border-color: #1f293d;
  }

  html.dark .blog-figure figcaption {
    color: #94a3b8;
  }

  html.dark .data-table-wrap {
    border-color: #1f293d;
    background: #111827;
  }

  html.dark .data-table th {
    background: #1e293b;
    color: #f1f5f9;
    border-bottom-color: #334155;
  }

  html.dark .data-table td {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
  }
}

/* Explanatory text beneath the interactive product tools. */
.product-copy {
  max-width: 1160px;
  margin: 0 auto;
  padding: 42px 0 76px;
  border-top: 1px solid var(--site-line);
}

.product-copy h2 {
  margin: 0 0 12px;
  color: var(--site-ink);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.product-copy h3 {
  margin: 22px 0 6px;
  color: var(--site-ink);
  font-size: 14px;
  font-weight: 650;
}

.product-copy p {
  max-width: 760px;
  color: var(--site-copy);
  font-size: 13px;
  line-height: 1.75;
}

.product-copy a {
  color: var(--site-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-copy-note {
  color: #6c7788 !important;
  font-size: 11px !important;
}

@media (max-width: 700px) {
  .global-footer-inner {
    width: min(100% - 36px, 1160px);
    padding-top: 36px;
  }

  .global-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .global-footer-grid> :first-child {
    grid-column: 1 / -1;
  }

  .global-footer-description {
    max-width: 440px;
  }

  body.public-page {
    padding: 0 !important;
  }

  .public-header {
    min-height: 60px;
  }

  .public-nav {
    gap: 11px;
    font-size: 11px;
  }

  .public-nav a:nth-child(1),
  .public-nav a:nth-child(2) {
    display: none;
  }

  .public-main {
    width: min(100% - 32px, 790px);
    padding: 32px 0 60px;
    box-sizing: border-box;
  }

  .public-main>div:not(.public-intro) {
    padding: 18px;
  }

  .product-copy {
    padding: 32px 16px 56px;
  }

  .contact-main {
    width: min(100% - 32px, 920px);
    padding-top: 42px;
  }

  .contact-main>.contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-form,
  .contact-aside {
    padding: 19px;
  }
}


/* Compact, visual tool walkthroughs beneath each editor. */
.tool-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: #fff;
}

.tool-process-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
  min-width: 0;
}

.tool-process-number {
  display: grid;
  grid-row: span 2;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--site-blue);
  font-size: 10px;
  font-weight: 700;
}

.tool-process-step strong {
  color: var(--site-ink);
  font-size: 12px;
  font-weight: 650;
}

.tool-process-step>span:last-child {
  color: #6c7788;
  font-size: 10px;
  line-height: 1.4;
}

.tool-process-arrow {
  color: #97a3b2;
  font-size: 17px;
}

.humanizer-process {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .tool-process {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-right: 16px;
    margin-left: 16px;
    padding: 16px;
  }

  .tool-process-arrow {
    display: none;
  }

  .tool-process-step {
    grid-template-columns: 30px 1fr;
  }

  .product-copy {
    margin: 0 auto;
  }
}

/* Scrollbar rules are in tokens.css — no duplicate needed here. */

.data-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  margin-right: 0.35rem;
  vertical-align: middle;
}

html.dark .data-badge {
  background: #1e293b;
  color: #60a5fa;
  border-color: #3b82f6;
}


.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--site-line);
  background: #fff;
}

html.dark .faq-item {
  background: #0f172a;
  border-color: #334155;
}

@media (max-width: 900px) {
  .global-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .global-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================================
   MOBILE NAVIGATION (Hamburger menu strictly for mobile view)
   ================================================================ */
.global-header-inner {
  position: relative;
}

.global-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Strictly hide hamburger menu and mobile menu drawer on desktop */
.global-menu-toggle {
  display: none !important;
  background: transparent;
  border: 1px solid rgba(28, 43, 58, 0.24);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  color: #1C2B3A;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.global-menu-toggle:hover {
  background: rgba(28, 43, 58, 0.06);
  border-color: #1C2B3A;
}

.global-menu-toggle:focus-visible {
  outline: 2px solid var(--color-cta, #9E4B2C);
  outline-offset: 2px;
}

.global-mobile-menu {
  display: none !important;
}

/* On mobile / small screens (<= 768px):
   - Left side: Logo (.global-brand)
   - Middle: Review my text (.global-header-cta)
   - Rightmost: Hamburger icon (.global-menu-toggle)
*/
@media (max-width: 768px) {
  #user-session-stats,
  .session-stat-chip,
  #analysis-status-pill {
    display: none !important;
  }

  .quillbot-textarea {
    min-height: 240px !important;
    font-size: 15px !important;
  }

  .detector-page-main {
    padding-bottom: 90px !important;
  }

  .global-header-inner {
    width: min(100% - 24px, 1120px) !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    position: relative !important;
  }

  /* 1. Left side: Logo */
  .global-brand {
    order: 1 !important;
    flex: 0 0 auto !important;
    font-size: 17px !important;
    gap: 7px !important;
  }

  .global-brand-icon {
    width: 28px !important;
    height: 28px !important;
  }

  /* 2. Hidden on mobile */
  .global-nav-links {
    display: none !important;
  }

  /* 3. Middle: Review/Revise my text button */
  .global-header-cta {
    order: 2 !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(28, 43, 58, 0.28) !important;
    color: #1C2B3A !important;
    white-space: nowrap !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 4. Rightmost: Hamburger icon */
  .global-menu-toggle {
    display: inline-flex !important;
    order: 3 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: transparent !important;
    border: 1px solid rgba(28, 43, 58, 0.24) !important;
    border-radius: 6px !important;
    color: #1C2B3A !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  .global-menu-toggle:hover {
    background: rgba(28, 43, 58, 0.06) !important;
  }

  .global-menu-toggle:focus-visible {
    outline: 2px solid var(--color-cta, #9E4B2C) !important;
    outline-offset: 2px !important;
  }

  .global-mobile-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 1px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #FDFBF7 !important;
    border-bottom: 1px solid var(--site-line) !important;
    flex-direction: column !important;
    padding: 12px 14px !important;
    gap: 4px !important;
    box-shadow: 0 14px 32px rgba(28, 43, 58, 0.12) !important;
    z-index: 999 !important;
  }

  .global-mobile-menu.is-open {
    display: flex !important;
    animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .global-mobile-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1C2B3A !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    min-height: 44px !important;
    transition: background 0.12s ease !important;
  }

  .global-mobile-menu a:hover,
  .global-mobile-menu a[aria-current="page"] {
    background: rgba(28, 43, 58, 0.06) !important;
    color: var(--color-cta, #9E4B2C) !important;
  }

  .mobile-menu-divider {
    height: 1px !important;
    background: rgba(28, 43, 58, 0.1) !important;
    margin: 6px 0 !important;
  }
}

@media (max-width: 360px) {
  .global-brand span {
    font-size: 14.5px !important;
  }
  .global-header-cta {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   COOKIE CONSENT BANNER (Accessible, WCAG AA Compliant)
   ================================================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 840px);
  z-index: 99999;
  background: #1C2B3A;
  color: #F7F3EC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 18px 24px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
}

.cookie-consent-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1 1 220px;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #F7F3EC;
}

.cookie-consent-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #DDD6C8;
}

.cookie-consent-desc a {
  color: #F7F3EC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-desc a:hover {
  color: #FFFFFF;
}

.cookie-consent-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #9E4B2C;
  color: #F7F3EC;
  border: 1px solid transparent;
}

.cookie-btn-accept:hover {
  background: #85391F;
}

.cookie-btn-decline {
  background: transparent;
  color: #DDD6C8;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.cookie-btn:focus-visible {
  outline: 2px solid #FFFFFF !important;
  outline-offset: 3px !important;
}

/* ================================================================
   KEYBOARD NAVIGABILITY & CONTRAST
   ================================================================ */
:focus-visible {
  outline: 2px solid #9E4B2C !important;
  outline-offset: 3px !important;
}

.global-footer a:focus-visible,
.global-footer button:focus-visible {
  outline: 2px solid #FFFFFF !important;
  outline-offset: 3px !important;
}

/* Mobile Viewport Zoom Prevention: stop mobile browsers (iOS/Android) from auto-zooming on focus */
@media (max-width: 768px) {
  textarea, input, select {
    font-size: 16px !important;
  }
}
