:root {
  --site-ink: #0b1220;
  --site-blue: #2563eb;
  --site-blue-hover: #1d4ed8;
  --site-bg: #f7f8fa;
  --site-line: #e2e7ed;
  --site-copy: #4a586b;
}

/* 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-inner {
  display: flex;
  width: min(100% - 48px, 1160px);
  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-size: 16px; 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: 12px; text-decoration: none; transition: color .15s ease; }
.global-nav-links a:hover, .global-nav-links a[aria-current="page"] { color: var(--site-blue); }
.global-header-cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 6px; background: var(--site-blue); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .15s ease; }
.global-header-cta:hover { background: var(--site-blue-hover); }
.global-footer { width: 100%; margin-top: auto; background: var(--site-ink); color: #e2e8f0; }
.global-footer-inner { width: min(100% - 48px, 1160px); margin: 0 auto; padding: 48px 0 20px; }
.global-footer-grid { display: grid; grid-template-columns: minmax(230px,1.5fr) repeat(3,minmax(120px,1fr)); gap: 36px; padding-bottom: 36px; }
.global-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; 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: 300px; margin: 13px 0 0; color: #aab4c2; font-size: 12px; line-height: 1.7; }
.global-footer-title { margin: 3px 0 14px; color: #fff; font-size: 11px; font-weight: 650; }
.global-footer-links { display: grid; gap: 11px; }
.global-footer-links a { width: fit-content; color: #b8c2cf; font-size: 11px; text-decoration: none; transition: color .15s ease; }
.global-footer-links a:hover { color: #fff; }
.global-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 17px; border-top: 1px solid #263244; color: #aab4c2; font-size: 10px; line-height: 1.6; }
.global-footer-bottom a { color: #dce4ee; text-decoration: none; }
body.public-page { padding: 0 !important; }
.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 Ghostiq 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: rgba(247,248,250,.94) !important;
  border-color: var(--site-line) !important;
}
.tool-page { background: var(--bg-main) !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 shares the homepage's quiet, neutral visual language. */
body:has(#detector-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%, 790px); flex: 1; margin: 0 auto; padding: 62px 0 84px; }
.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 { flex: 1; }
.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; }
.blog-wrap { max-width: 760px !important; padding-top: 8px !important; }
.crumb, .crumb a { color: #687587 !important; }
.tag { border: 1px solid #d9e2ec !important; border-radius: 4px !important; background: #eef3f8 !important; color: #43546c !important; }
.blog-h1 { color: var(--site-ink) !important; font-weight: 700 !important; letter-spacing: -.04em; }
.lede { border-color: var(--site-blue) !important; color: #526074 !important; }
.prose { color: #48566a !important; }
.prose h2, .prose h3, .prose strong { color: #172338 !important; }
.prose a { color: var(--site-blue) !important; }
.callout, .cta-box { border: 1px solid var(--site-line) !important; border-radius: 8px !important; background: #fff !important; }
.callout-title { color: #1d4ed8 !important; }
.step-num { border: 1px solid #d7e3f2 !important; border-radius: 6px !important; background: #edf4ff !important; color: #1d4ed8 !important; }
.faq-item { border-color: var(--site-line) !important; border-radius: 7px !important; }
.faq-item summary, .faq-body { background: #fff !important; color: #334155 !important; }
.blog-footer { background: var(--site-ink); border-color: var(--site-ink) !important; color: #aab4c2 !important; }
.blog-footer a { color: #dce4ee !important; }

/* 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-header-inner { width: min(100% - 32px,1160px); min-height: 60px; gap: 12px; }
  .global-nav-links { gap: 13px; }
  .global-nav-links a { font-size: 11px; }
  .global-nav-links a:nth-child(n+3) { display: none; }
  .global-header-cta { padding: 9px 10px; font-size: 10px; }
  .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 { padding: 42px 0 60px; }
  .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; }
}
@media (max-width: 380px) {
  .global-header-inner { width: min(100% - 24px,1160px); gap: 10px; }
  .global-brand > span:last-child { display: none; }
  .global-nav-links { flex: 0 0 auto; gap: 9px; }
  .global-nav-links a { font-size: 10px; }
}

/* 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; }
}
