/* ============================================================
   Clinqu SEO Landing Pages — shared design system
   Matches main site: dark #161616 / light #ffffff, mono eyebrows,
   sans headings with serif-italic underlined accent words.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #161616;
  --bg-raised: #1e1e1e;
  --bg-elevated: #242424;
  --line: #2c2c2c;
  --line-strong: #3a3a3a;
  --text: #f2f1ee;
  --text-2: #b7b6b2;
  --text-3: #8a8984;
  --accent: #4f8df9;
  --accent-soft: rgba(79, 141, 249, 0.14);
  --accent-word: #f5f0e8;
  --chip-bg: #2a2a2a;
  --chip-text: #cfcfca;
  --pill-bg: #262626;
  --pill-border: #383838;
  --logo-bg: #ffffff;
  --logo-mark: #101010;
  --logo-word: #f2f1ee;
  --btn-primary-bg: #f2f1ee;
  --btn-primary-text: #131313;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --card-radius: 10px;
  --neon: #b6ef62;
  --neon-soft: rgba(182, 239, 98, 0.15);
  --focus: #8ab4ff;
  --danger: #ef6a61;
  --header-h: 64px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --bg-elevated: #f4f3f0;
  --line: #e6e4df;
  --line-strong: #d8d6d0;
  --text: #131313;
  --text-2: #55534e;
  --text-3: #76746b;
  --accent: #3d6fe0;
  --accent-soft: rgba(61, 111, 222, 0.08);
  --accent-word: #1b1b1b;
  --chip-bg: #f1efea;
  --chip-text: #4c4a45;
  --pill-bg: #f4f3f0;
  --pill-border: #e3e1da;
  --logo-bg: #101010;
  --logo-mark: #ffffff;
  --logo-word: #131313;
  --btn-primary-bg: #131313;
  --btn-primary-text: #ffffff;
  --shadow: 0 24px 60px rgba(30, 28, 22, 0.1);
  --neon: #4d7c0f;
  --neon-soft: rgba(77, 124, 15, 0.12);
  --focus: #1c4fd8;
  --danger: #c0362c;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Anchor targets must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); }

img, svg, video { max-width: 100%; height: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 0;
  z-index: 200;
  transform: translateY(-130%);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(10px)) {
  .site-header { background: var(--bg); }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--logo-bg);
  color: var(--logo-mark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  font-family: Georgia, serif;
  font-style: italic;
  padding-bottom: 2px;
  flex: 0 0 auto;
}

.logo-word {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--logo-word);
}

.header-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  min-width: 0;
}

.header-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--text); }
.header-nav a[aria-current="page"] { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.login-link {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.login-link:hover { color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--text-3); }
.theme-toggle .dot {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--neon);
  color: #14320a;
  font-size: 9px;
  flex: 0 0 auto;
}
.theme-toggle .theme-label { display: none; }

[data-theme="light"] .theme-toggle .dot { background: #ffd35c; color: #4c3800; }

/* Hamburger — hidden on desktop, shown under 900px */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--chip-bg);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  flex: 0 0 auto;
}
.nav-toggle:hover { border-color: var(--text-3); }
.nav-toggle .bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 59;
  padding: 10px clamp(16px, 4vw, 48px) 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.mobile-nav[hidden] { display: none; }

.mobile-nav nav { display: flex; flex-direction: column; }

.mobile-nav nav a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}
.mobile-nav nav a:hover { color: var(--text); }
.mobile-nav nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.mobile-nav-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.mobile-nav-foot .btn { flex: 1 1 auto; justify-content: center; }
.mobile-nav-foot .theme-toggle { padding: 7px 12px; }
.mobile-nav-foot .theme-toggle .theme-label { display: inline; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover { transform: translateY(-1px); }

/* Author display beats the UA [hidden] rule, so restate it. */
.btn[hidden] { display: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text-3); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 130px) clamp(20px, 4vw, 48px);
  position: relative;
}

.eyebrow {
  font-family: "JetBrains Mono", "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.05rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 600;
  max-width: 680px;
  color: var(--text);
  text-wrap: balance;
}

h1 .accent, .accent-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  font-size: 1.06rem;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p { color: var(--text-2); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(52px, 8vw, 110px) clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
}

.section.elevated { background: var(--bg-elevated); }

.section-head { max-width: 700px; margin-bottom: clamp(30px, 5vw, 56px); }

.section-head p { margin: 0; max-width: 640px; }

.section-head h2 { margin-bottom: 14px; }

.container { max-width: 1200px; margin: 0 auto; }

.narrow { max-width: 760px; }

/* ---------- Cards & UI mockups ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0 0 6px;
  display: block;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-head .card-title { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }

.card-body { font-size: 14.5px; }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.mock-row > div:first-child { min-width: 0; }

.mock-row:first-of-type { border-top: none; padding-top: 8px; }
.mock-row:last-of-type { padding-bottom: 4px; }

.mock-company { font-weight: 600; }
.mock-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.mock-pill {
  font-size: 11.5px;
  border: 1px solid var(--line-strong);
  background: var(--pill-bg);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.mock-score { text-align: right; flex: 0 0 auto; }
.mock-score .num { font-weight: 700; font-size: 16px; display: block; }
.mock-score .lbl { font-size: 10.5px; color: var(--text-3); }

.mock-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.mock-foot a { color: var(--text-2); text-decoration: none; }
.mock-foot a:hover { color: var(--text); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mock-grid-cell { border-top: 1px solid var(--line); padding-top: 14px; }

.mock-grid-cell .cell-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
}

.mock-grid-cell .cell-title { font-weight: 600; font-size: 14.5px; margin: 6px 0 2px; }
.mock-grid-cell .cell-sub { font-size: 12.5px; color: var(--text-3); }

.confidence-pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > * { min-width: 0; }

/* ---------- Tables ---------- */
.table-hint {
  display: none;
  margin: 0 0 10px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--text-3);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--bg-raised);
}

.table-wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th,
table.compare thead td {
  font-family: ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-3);
  border-top: none;
  white-space: nowrap;
}

/* Row headers carry the row label — keep them readable, not mono-muted. */
table.compare tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text);
}

table.compare tbody tr:hover { background: var(--accent-soft); }

table.compare .col-clinqu {
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
}

table.compare tbody tr:hover .col-clinqu {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }

.checklist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.checklist .chk-title {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
}
.checklist .chk-title .mono-num {
  font-family: ui-monospace, monospace;
  color: var(--neon);
  margin-right: 10px;
}
.checklist p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 6px 0 0;
  font-size: 14.5px;
}
.checklist .signal-tag {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .checklist li { grid-template-columns: minmax(0, 1fr); }
  .checklist .signal-tag {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 8px;
  }
  .checklist .chk-title { grid-row: 2; }
  .checklist p { grid-row: 3; }
}

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  margin-top: -0.62em;
  line-height: 1.2;
  color: var(--text-3);
  font-size: 18px;
  font-family: ui-monospace, monospace;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(135deg); }

.faq-item .faq-a {
  padding: 0 0 18px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 720px;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  padding: clamp(52px, 8vw, 100px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.cta-band h2 { max-width: 700px; margin: 0 auto 14px; }

.cta-band p { max-width: 520px; margin: 0 auto 30px; }

.cta-band .btn-primary { padding: 12px 24px; font-size: 15px; }

/* ---------- Footer with all landing page links ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(20px, 4vw, 48px) 40px;
  background: var(--bg-raised);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
}

.footer-grid h4 {
  font-family: ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 14px;
}

.footer-brand { font-size: 14px; max-width: 340px; }

.footer-logo { margin-bottom: 14px; }

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li + li { margin-top: 6px; }

.footer-links a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

.footer-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.footer-links .fp-desc {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: ui-monospace, monospace;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  font-family: ui-monospace, monospace;
}

.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--text-2); }

/* ---------- Utility ---------- */
.mono { font-family: ui-monospace, monospace; }
.muted { color: var(--text-3); }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }

.hero-tight { padding-bottom: clamp(40px, 6vw, 70px); }

.source-note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 14px;
}

.section-note {
  margin-top: 28px;
  font-size: 15px;
}

.num-accent { color: var(--neon); }

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.inline-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.deep-dive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
}

.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;
}

.section-kicker {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 12px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: clamp(30px, 4vw, 48px) 0 0;
}

.stat-band .stat {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 20px;
  background: var(--bg-raised);
  min-width: 0;
}

.stat-band .stat .num {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  display: block;
}

.stat-band .stat .cap { font-size: 12.5px; color: var(--text-3); margin-top: 4px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .table-hint { display: block; }
}

@media (max-width: 620px) {
  .header-right { gap: 10px; }
  .login-link { display: none; }
  .header-right > .theme-toggle { display: none; }
  .header-right .btn-primary { padding: 9px 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 400px) {
  .logo-word { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-nav, .skip-link, .cta-band, .theme-toggle, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; overflow: visible; }
  .card, .table-wrap { box-shadow: none; break-inside: avoid; }
  .faq-item .faq-a { display: block !important; }
}
