/* Cuebase — shared stylesheet for /guides.
   Design tokens are kept identical to landing/index.html so the guides read as
   the same site. Article-specific typography lives below the token block. */

:root {
  --bg: #fbfcfe;
  --bg-2: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef2f9;
  --line: #e6ebf3;
  --line-2: #d7deeb;
  --ink: #101627;
  --ink-2: #414a5e;
  --muted: #6b7488;
  --muted-2: #949cad;

  --accent: #2f6bf5;
  --accent-2: #5a8bff;
  --accent-deep: #1f4fd0;
  --indigo: #6366f1;
  --mint: #22c98a;

  --good: #17b364;
  --needs: #f5a623;
  --poor: #ef4444;

  --grad: linear-gradient(103deg, #2f6bf5 8%, #5566f0 55%, #6d5ef6 100%);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 28px -12px rgba(16, 24, 40, 0.14);

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1160px;
  --readw: 68ch;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(47, 107, 245, 0.18);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- brand mark (matches index.html) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  position: relative;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.mark::before,
.mark::after {
  content: "";
  position: absolute;
  left: 22%;
  background: #fff;
  border-radius: 2px;
}
.mark::before {
  top: 34%;
  width: 56%;
  height: 3.2px;
  opacity: 0.95;
}
.mark::after {
  top: 55%;
  width: 34%;
  height: 3.2px;
  opacity: 0.5;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links .txt {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links .txt:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav-links .txt {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-accent {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 10px 24px -12px rgba(47, 107, 245, 0.6);
}
.btn-accent:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
}

/* ---------- article shell ---------- */
.doc {
  padding: 56px 0 72px;
}
.crumb {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.crumb a:hover {
  color: var(--accent);
}
.doc-head {
  max-width: 24ch;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 20ch;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: var(--readw);
  margin: 0 0 10px;
}
.doc-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* body copy — constrained measure for readability */
.prose {
  max-width: var(--readw);
}
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(23px, 2.6vw, 30px);
  margin: 52px 0 14px;
  text-wrap: balance;
  scroll-margin-top: 84px;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.25;
  margin: 32px 0 10px;
  scroll-margin-top: 84px;
}
.prose p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(47, 107, 245, 0.28);
}
.prose a:hover {
  border-bottom-color: var(--accent);
}
.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.prose li {
  margin-bottom: 9px;
}
.prose li::marker {
  color: var(--muted-2);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1.5px 6px;
  border-radius: 5px;
  color: var(--accent-deep);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}
.prose > :first-child {
  margin-top: 0;
}

/* ---------- content components ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(47, 107, 245, 0.08);
  border: 1px solid rgba(47, 107, 245, 0.18);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* callout — a short aside that isn't a claim */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.note p {
  margin: 0;
  font-size: 15.5px;
}
.note .nt {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

/* checklist — the workhorse for "do these things" sections */
.check {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(23, 179, 100, 0.12);
  color: var(--good);
  font-size: 11px;
  font-weight: 700;
}

/* numbered steps */
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 26px 0;
}
.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin-bottom: 22px;
}
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.steps p {
  margin: 0;
}

/* comparison / data table */
.tbl-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
table.tbl th,
table.tbl td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tbl th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}
table.tbl tr:last-child td {
  border-bottom: 0;
}
table.tbl td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* FAQ */
.faq {
  margin: 26px 0;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 16.5px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 16px;
}

/* inline CTA at the end of an article */
.cta-box {
  margin: 48px 0 0;
  padding: 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.cta-box h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.cta-box p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- guides hub ---------- */
.hub {
  padding: 56px 0 72px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 38px;
}
.gcard {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.gcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-2);
}
.gcard .gtag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.gcard h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.gcard p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  flex: 1;
}
.gcard .more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: var(--surface-2);
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
