/* Shared styles for the use-case articles. Tokens and chrome mirror
   site/index.html; served from /use-cases/ so it can't collide with the
   app-owned /assets. */
:root {
  --bg: #ffffff;
  --bg-raise: #f6f7fb;
  --panel: #ffffff;
  --line: #e7e9f2;
  --line-strong: #d9dcea;
  --ink: #171a2e;
  --muted: #5b6079;
  --faint: #8a90a8;
  --indigo: #4f6bed;
  --indigo-deep: #3a54d6;
  --glow: rgba(79, 107, 237, 0.28);
  --green: #0e9f6e;
  --amber: #b7791f;
  --rose: #d64570;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.section-sub {
  margin: 0 0 48px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--indigo-deep));
  box-shadow: 0 0 18px var(--glow);
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--indigo), var(--indigo-deep));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 24px var(--glow);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 34px rgba(79, 107, 237, 0.45);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}
.btn-ghost:hover {
  background: var(--bg-raise);
}
.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 12px;
}
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Article hero */
.article-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 30px;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    720px 380px at 50% -8%,
    rgba(79, 107, 237, 0.12),
    transparent 62%
  );
  pointer-events: none;
}
.article-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.crumbs {
  margin: 0 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faint);
}
.crumbs a {
  color: var(--indigo);
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs span {
  margin: 0 8px;
  color: var(--line-strong);
}
.article-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.article-hero .lede {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--faint);
}
.cta-note b {
  color: var(--muted);
  font-weight: 600;
}
/* Article prose */
.prose {
  max-width: 760px;
  padding-top: 26px;
  padding-bottom: 20px;
  font-size: 16.5px;
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.prose p {
  margin: 0 0 16px;
  color: var(--muted);
}
.prose b,
.prose strong {
  color: var(--ink);
  font-weight: 650;
}
.prose a {
  color: var(--indigo);
  font-weight: 600;
}
.prose a:hover {
  text-decoration: underline;
}
.prose ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.prose ul li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.prose ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex: none;
}
/* Numbered setup steps */
.steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raise);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--indigo), var(--indigo-deep));
}
.steps b {
  color: var(--ink);
  font-weight: 650;
}
/* Callout box (pricing notes etc.) */
.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid rgba(79, 107, 237, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, #eef1ff, #fff 70%);
}
.callout p {
  margin: 0;
}
.callout p + p {
  margin-top: 10px;
}
/* Before / after comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.compare > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg-raise);
}
.compare h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.compare ul {
  gap: 8px;
  font-size: 14.5px;
  margin: 0;
}
.compare .bad li::before {
  content: "✕";
  color: var(--rose);
}
/* CTA band */
.cta-band {
  padding: 40px 0 64px;
}
.cta-band .inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-raise);
  padding: 46px 32px;
  text-align: center;
}
.cta-band .section-sub {
  margin: 0 auto 26px;
}
.cta-band .cta-row {
  justify-content: center;
}
/* Card grid (hub page + related links) */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.uc-card {
  display: block;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.uc-card:hover {
  border-color: rgba(79, 107, 237, 0.45);
  background: #fafbff;
}
.uc-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.uc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.uc-card .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 650;
  color: var(--indigo);
}
.group-title {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.related {
  padding: 0 0 84px;
}
.related .uc-grid {
  margin-bottom: 0;
}
/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  background: var(--bg-raise);
}
.foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 300px;
}
.foot-brand .brand {
  margin-bottom: 12px;
}
.foot-cols {
  display: flex;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.foot-col b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.foot-col a {
  display: block;
  padding: 4px 0;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-base {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .uc-grid {
    grid-template-columns: 1fr;
  }
  .compare {
    grid-template-columns: 1fr;
  }
}
/* Auth-aware CTAs — same mechanism as the landing page. */
.lbl-authed {
  display: none;
}
html.authed .lbl-guest {
  display: none;
}
html.authed .lbl-authed {
  display: inline;
}
html.authed .only-guest {
  display: none;
}
