/* litigation-financing.ai — Cloudflare.com visual clone (LFI content) */
:root {
  --orange: #f38020;
  --orange-dark: #e86f0a;
  --black: #000000;
  --gray-900: #111111;
  --gray-800: #1a1a1a;
  --gray-600: #595959;
  --gray-400: #999999;
  --gray-200: #e5e5e5;
  --white: #ffffff;
  --font: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1280px;
  --radius-lg: 24px;
  --cf-orange: var(--orange);
  --cf-muted: var(--gray-400);
  --cf-hero-muted: var(--gray-400);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.cf-container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.px-section { padding-left: 24px; padding-right: 24px; }

[lang="de"] .lang-en { display: none !important; }
[lang="en"] .lang-de { display: none !important; }

/* —— Header —— */
.cf-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid #222;
}
.cf-header-inner {
  height: 72px;
  display: flex; align-items: center; gap: 20px;
}
.cf-brand {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.cf-brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(300px, 52vw);
}
.cf-footer-top .cf-brand-logo { height: 36px; }
.cf-nav-link.active { color: var(--orange); }
.cf-nav {
  display: none; flex: 1; justify-content: center; gap: 4px;
}
@media (min-width: 900px) { .cf-nav { display: flex; } }
.cf-nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--white);
  border-radius: 6px;
}
.cf-nav-link:hover { background: #1a1a1a; }
.cf-nav-link.active { color: var(--orange); }
.cf-chev { font-size: 10px; opacity: 0.5; margin-left: 2px; }
.cf-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cf-nav-toggle {
  display: flex; background: none; border: none; color: var(--white);
  font-size: 22px; cursor: pointer; margin-left: auto;
}
@media (min-width: 900px) { .cf-nav-toggle { display: none; } }

.lang-sw {
  display: flex; border: 1px solid #333; border-radius: 6px; overflow: hidden;
}
.lang-sw button {
  border: none; background: transparent; padding: 6px 10px;
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  cursor: pointer; font-family: inherit;
}
.lang-sw button.on { background: #333; color: var(--white); }

.cf-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: var(--orange); color: var(--white); border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.cf-btn-primary:hover { background: var(--orange-dark); }
.cf-btn-ghost {
  display: inline-flex; padding: 10px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--white);
  border: 1px solid #555; background: transparent; white-space: nowrap;
}
.cf-btn-white {
  display: inline-flex; padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; background: var(--white); color: var(--black);
  border: none; cursor: pointer; font-family: inherit;
}
.cf-btn-white:hover { opacity: 0.92; }

/* —— Hero orange card (CF homepage) —— */
.cf-page-hero { padding: 24px 24px 0; background: var(--black); }
.cf-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #f38020 0%, #e86f0a 45%, #d9650a 100%);
  min-height: min(72vh, 640px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px 32px 80px;
}
.cf-hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
  pointer-events: none;
}
.cf-hero-card::after {
  content: "";
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.5) 0%, transparent 70%);
  pointer-events: none;
}
.cf-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.cf-hero-pill {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; color: rgba(255,255,255,.9);
}
.cf-hero-pill a { text-decoration: underline; font-weight: 600; }
.cf-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  color: var(--white);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.15), 1px -1px 0 rgba(0,0,0,.15),
    -1px 1px 0 rgba(0,0,0,.15), 1px 1px 0 rgba(0,0,0,.15);
  margin-bottom: 20px;
}
.cf-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.92);
  max-width: 52ch; margin: 0 auto 32px; line-height: 1.5;
}

/* —— Region Earth —— */
.cf-region {
  padding: 96px 0;
  background: var(--black);
  position: relative;
  background-image: radial-gradient(circle, #222 1px, transparent 1px);
  background-size: 16px 16px;
}
.cf-region::before, .cf-region::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  border-left: 1px dashed #333;
}
.cf-region::before { left: max(24px, calc(50% - 740px)); }
.cf-region::after { right: max(24px, calc(50% - 740px)); }
.cf-region h2 {
  text-align: center; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px;
}
.cf-region .sub {
  text-align: center; color: var(--gray-400); font-size: 1.1rem;
  max-width: 520px; margin: 0 auto 56px;
}
.cf-region-viz {
  position: relative; max-width: 720px; margin: 0 auto 48px;
  height: 200px;
}
.cf-region-viz .globe {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 180px; height: 180px; border: 1px solid #333; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1a1a, #000);
  opacity: 0.6;
}
.cf-callout {
  position: absolute; max-width: 220px;
  padding: 16px 18px; border: 1px solid var(--orange);
  font-size: 14px; color: var(--orange); line-height: 1.45;
}
.cf-callout strong { display: block; font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.cf-callout.left { left: 0; top: 20%; }
.cf-callout.right { right: 0; top: 15%; text-align: right; }
.cf-region-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.cf-region-stats div { text-align: center; }
.cf-region-stats .n { font-size: 2rem; font-weight: 800; color: var(--orange); }
.cf-region-stats .c { font-size: 13px; color: var(--gray-400); margin-top: 6px; max-width: 16ch; }

/* —— Run three —— */
.cf-run {
  background: var(--gray-900);
  border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.cf-run-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cf-run-item {
  padding: 48px 36px;
  border-right: 1px solid #333;
}
.cf-run-item:last-child { border-right: none; }
.cf-run-icon {
  width: 28px; height: 28px; margin-bottom: 16px;
  border: 2px solid var(--white); border-radius: 50%;
  opacity: 0.9;
}
.cf-run-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.cf-run-item p { font-size: 14px; color: var(--gray-400); line-height: 1.55; }

/* —— Fortune / logos —— */
.cf-logos { padding: 64px 0; background: var(--black); text-align: center; }
.cf-logos h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.cf-logos .sub { color: var(--gray-400); margin-top: 8px; margin-bottom: 32px; }
.cf-logo-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border: 1px solid #333; border-radius: 12px; overflow: hidden;
  max-width: 900px; margin: 0 auto;
}
.cf-logo-tab {
  padding: 16px 24px; font-size: 14px; font-weight: 600; color: var(--gray-400);
  border-right: 1px solid #333; cursor: pointer; background: #111;
}
.cf-logo-tab:last-child { border-right: none; }
.cf-logo-tab.on { color: var(--white); background: #1a1a1a; border-bottom: 2px solid var(--orange); }

/* —— Why bento —— */
.cf-why { padding: 96px 0; background: var(--black); }
.cf-why-head { text-align: center; margin-bottom: 48px; }
.cf-why-head h2 { font-size: 2rem; font-weight: 800; }
.cf-why-head p { color: var(--gray-400); margin-top: 8px; }
.cf-bento {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 1000px; margin: 0 auto;
}
.cf-bento-bad {
  background: #111; border: 1px solid #333; border-radius: 16px;
  padding: 40px 32px; min-height: 320px;
  position: relative; overflow: hidden;
}
.cf-bento-bad .status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gray-400); margin-bottom: 20px;
}
.cf-bento-bad h3 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.cf-bento-bad .bubble {
  position: absolute; font-size: 11px; color: #888;
  background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  padding: 8px 10px; max-width: 140px;
}
.cf-bento-good {
  background: var(--orange); border-radius: 16px;
  padding: 40px 32px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.cf-bento-good h3 { font-size: 1.75rem; font-weight: 800; color: var(--white); margin-bottom: 24px; }
.cf-bento-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.2); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; width: fit-content;
}

/* —— Pay section —— */
.cf-pay { padding: 96px 0; background: var(--black); }
.cf-pay h2 { text-align: center; font-size: 2.25rem; font-weight: 800; }
.cf-pay .sub { text-align: center; color: var(--gray-400); margin: 8px 0 40px; }
.cf-tabs {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 40px;
  background: #111; border: 1px solid #333; border-radius: 999px; padding: 4px;
  width: fit-content; margin-inline: auto;
}
.cf-tabs button {
  border: none; background: transparent; padding: 10px 20px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gray-400);
  cursor: pointer; font-family: inherit;
}
.cf-tabs button.on { background: var(--orange); color: var(--white); }
.cf-plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid #333; border-radius: 12px; overflow: hidden;
  max-width: 1100px; margin: 48px auto 0;
}
.cf-plan {
  padding: 28px 22px; border-right: 1px solid #333; background: #0a0a0a;
}
.cf-plan:last-child { border-right: none; }
.cf-plan h4 { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.cf-plan .price { font-size: 2rem; font-weight: 800; }
.cf-plan .price small { font-size: 13px; font-weight: 500; color: var(--gray-400); }
.cf-plan ul { list-style: none; margin-top: 16px; }
.cf-plan li { font-size: 12px; color: var(--gray-400); padding: 4px 0; }

/* —— Agents / CLI —— */
.agents-section {
  padding: 96px 0; background: #0a0a0a;
  border-top: 1px solid #222;
}
.agents-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
}
.agents-copy .eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange); margin-bottom: 14px;
}
.agents-copy h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.03em; }
.agents-copy p { color: var(--gray-400); margin-bottom: 16px; font-size: 1.05rem; }
.agents-price {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 14px 20px; border-radius: 8px;
  background: rgba(243,128,32,.15); border: 1px solid rgba(243,128,32,.4);
  margin: 16px 0 20px;
}
.agents-price .amt { font-size: 1.75rem; font-weight: 800; color: var(--orange); }
.cli-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cli-chip {
  font-family: var(--mono); font-size: 11px; padding: 8px 12px;
  background: #111; border: 1px solid #333; border-radius: 6px;
  color: #9cdcfe; cursor: pointer;
}
.cli-chip:hover { border-color: var(--orange); }
.agent-row {
  display: flex; justify-content: space-between; padding: 10px 14px;
  background: #111; border: 1px solid #222; border-radius: 8px;
  font-size: 13px; margin-top: 8px;
}
.agent-row .state { color: #7ee787; font-family: var(--mono); font-size: 12px; }
.terminal-wrap { border: 1px solid #333; border-radius: 12px; overflow: hidden; }
.terminal-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #1a1a1a; border-bottom: 1px solid #333;
  font-family: var(--mono); font-size: 12px; color: #888;
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.pipe-steps { display: flex; background: #111; }
.pipe-step {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: #666; font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit; border-right: 1px solid #222;
}
.pipe-step.active { color: var(--white); background: #1a1a1a; box-shadow: inset 0 -2px 0 var(--orange); }
.pipe-step .n { display: block; color: var(--orange); font-size: 9px; margin-bottom: 2px; }
.pipe-steps-6 .pipe-step { font-size: 10px; padding: 8px 6px; }
.bid-panel {
  margin-top: 16px; padding: 14px; background: #111; border: 1px solid #333;
  border-radius: 8px;
}
.bid-panel h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 10px; }
.bid-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px;
  padding: 10px 0; border-bottom: 1px solid #222; font-size: 12px; align-items: center;
}
.bid-row:last-child { border-bottom: none; }
.bid-row.winner { background: rgba(243,128,32,.12); margin: 0 -10px; padding: 10px; border-radius: 6px; }
.bid-row .firm { font-weight: 600; color: var(--white); }
.bid-row .meta { color: var(--gray-400); font-size: 11px; }
.bid-row .pps { color: var(--orange); font-weight: 700; }
.agent-row.ok .state { color: #7ee787; }
.agent-row.warn .state { color: #febc2e; }
.terminal-body {
  padding: 18px; min-height: 200px; background: #0d0d0d;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #ccc;
}
.terminal-body .prompt { color: var(--orange); }
.terminal-body .ok { color: #7ee787; }
.terminal-body .dim { color: #666; }
.terminal-body .hi { color: #9cdcfe; }
.terminal-cursor { display: inline-block; width: 7px; height: 13px; background: var(--orange); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-input-row {
  display: flex; gap: 8px; padding: 12px 16px; background: #111; border-top: 1px solid #333;
}
.terminal-input-row input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #eee; font-family: var(--mono); font-size: 12px;
}

/* —— Build orange CTA —— */
.cf-build {
  margin: 48px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #f38020, #d9650a);
  padding: 80px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cf-build::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 12px 12px; opacity: 0.4;
}
.cf-build h2 { position: relative; font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.cf-build p { position: relative; color: rgba(255,255,255,.9); margin-bottom: 28px; max-width: 48ch; margin-inline: auto; }
.cf-build-btns { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* —— Blog / inner pages —— */
.cf-inner { padding: 64px 0 96px; background: var(--black); min-height: 60vh; }
.cf-inner-head { margin-bottom: 40px; }
.cf-inner-head h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.cf-inner-head p { color: var(--gray-400); margin-top: 10px; font-size: 1.05rem; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.blog-card {
  background: #111; border: 1px solid #333; border-radius: 12px;
  padding: 24px; transition: border-color .2s;
}
.blog-card:hover { border-color: var(--orange); }
.blog-card-link {
  display: block; color: inherit; text-decoration: none;
}
.blog-card-link:hover h3 { color: var(--orange); }
.blog-card-link .lang-en + .lang-de,
.blog-card-link p.lang-de { margin-top: 0; }
.blog-card-link p { margin-top: 8px; }
.blog-card .tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--orange); margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { font-size: 14px; color: var(--gray-400); line-height: 1.5; }
.blog-card .meta { font-size: 12px; color: #666; margin-top: 14px; }

.article { max-width: 680px; margin: 0 auto; }
.article h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.15; }
.article-meta { font-size: 14px; color: var(--gray-400); margin-bottom: 32px; }
.article-body { color: #ccc; font-size: 16px; line-height: 1.7; }
.article-body h2 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 32px 0 12px; }
.article-body p, .article-body li { margin-bottom: 1.1em; }
.article-body .lead { font-size: 1.1rem; color: var(--white); }
.article-body a { color: var(--orange); }
.article-body h2 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 28px 0 12px; }
.article-body h2 strong { font-weight: inherit; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.25em; }
.article-body li { margin-bottom: 0.45em; }
.article-body hr.article-hr { border: none; border-top: 1px solid #333; margin: 28px 0; }
.article-body .callout {
  padding: 14px 16px; background: rgba(243,128,32,.08); border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0; margin: 24px 0;
}
.article-body .archive-banner { background: rgba(255,255,255,.04); border-left-color: #555; }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; }
.article-table th, .article-table td { border: 1px solid #333; padding: 10px 12px; text-align: left; }
.article-table th { background: #1a1a1a; color: var(--white); font-weight: 600; }
.article-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid #333; }
.article-related h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 12px; }
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li { margin-bottom: 10px; }
.article-related a { color: var(--white); font-weight: 500; }
.article-related a:hover { color: var(--orange); }
.article-back { margin-top: 32px; }
.blog-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.blog-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 4px; background: #222; color: var(--gray-400);
}
.blog-badge.archive { border: 1px solid #444; }
.article-meta .tag.lang-de { display: none; }
html[lang="de"] .article-meta .tag.lang-en { display: none; }
html[lang="de"] .article-meta .tag.lang-de { display: inline; }
.callout {
  background: rgba(243,128,32,.1); border: 1px solid rgba(243,128,32,.35);
  border-radius: 8px; padding: 16px; margin: 24px 0; font-size: 14px;
}

.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.legal-page p, .legal-page li { color: var(--gray-400); margin-bottom: 12px; }
.legal-page h2 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 24px 0 8px; }
.legal-page a { color: var(--orange); }

/* calc */
.pay-calc { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 32px; max-width: 900px; margin-inline: auto; }
.pay-field label { font-size: 12px; color: var(--gray-400); display: block; margin-bottom: 8px; }
.pay-field input { width: 100%; accent-color: var(--orange); }
.pay-field .val { font-size: 1.25rem; font-weight: 700; margin: 8px 0 20px; }
.pay-track { display: flex; height: 40px; border-radius: 8px; overflow: hidden; background: #222; }
.pay-seg { transition: flex .35s; }
.pay-seg.billable { background: #64748b; }
.pay-seg.outcome { background: var(--orange); }
.pay-seg.idle { background: #333; }
.pay-total { font-size: 2.25rem; font-weight: 800; color: var(--orange); }

/* —— Footer —— */
.cf-footer {
  background: var(--black); border-top: 1px solid #222;
  padding: 48px 0 24px;
}
.cf-footer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid #222;
}
.cf-footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-bottom: 40px;
}
.cf-footer-col h5 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-600); margin-bottom: 14px;
}
.cf-footer-col a {
  display: block; font-size: 14px; color: var(--gray-400);
  margin-bottom: 8px;
}
.cf-footer-col a:hover { color: var(--white); }
.cf-footer-legal {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--gray-600); padding-top: 24px; border-top: 1px solid #222;
}
.cf-footer-links a { color: var(--gray-400); margin-left: 16px; }
.cf-footer-links a:hover { color: var(--white); }

.cf-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #111; border-top: 1px solid #333;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .3s;
}
.cf-cookie.show { transform: translateY(0); }
.cf-cookie p { font-size: 14px; color: var(--gray-400); }
.cf-cookie a { color: var(--orange); }

.blog-card .soon { font-size: 11px; color: var(--gray-600); margin-top: 4px; }

/* Legacy .io content */
.section-head-center { text-align: center; margin-bottom: 40px; }
.section-head-center .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 10px; }
.section-head-center h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-head-center p { color: var(--gray-400); max-width: 52ch; margin-inline: auto; }
.legacy-cases, .legacy-timeline, .legacy-team { padding: 80px 0; background: var(--black); }
.legacy-cases { border-top: 1px solid #222; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.case-card {
  background: #111; border: 1px solid #333; border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.case-card:hover { border-color: var(--orange); }
.case-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.case-year { font-size: 12px; color: var(--gray-600); }
.case-card h2, .case-card h3 { font-size: 1.15rem; font-weight: 700; }
.case-card p { font-size: 14px; color: var(--gray-400); line-height: 1.5; flex: 1; }
.case-status { font-size: 12px; color: #7ee787; }
.case-link { font-size: 13px; font-weight: 600; color: var(--orange); margin-top: 8px; }
.timeline { display: grid; gap: 0; border: 1px solid #333; border-radius: 12px; overflow: hidden; max-height: 480px; overflow-y: auto; }
.tl-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #222; }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-size: 1.1rem; font-weight: 800; color: var(--orange); }
.tl-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.tl-body p { font-size: 13px; color: var(--gray-400); line-height: 1.45; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.team-card { text-align: center; }
.team-card img { width: 100%; max-width: 280px; border-radius: 12px; margin: 0 auto 16px; object-fit: cover; aspect-ratio: 1; background: #222; }
.team-card h3 { font-size: 1.25rem; font-weight: 700; }
.team-card p { font-size: 14px; color: var(--gray-400); }
.legacy-cta-band { background: var(--gray-900); border-top: 1px solid #222; border-bottom: 1px solid #222; }
.legacy-cta-inner { text-align: center; padding: 24px 0; }
.legacy-cta-inner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.legacy-cta-inner p { color: var(--gray-400); margin-bottom: 20px; }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comm-card { background: #111; border: 1px solid #333; border-radius: 12px; padding: 24px; }
.comm-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.comm-card p { font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #111; border: 1px solid #333; border-radius: 8px; padding: 4px 16px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-a { padding-bottom: 16px; color: var(--gray-400); font-size: 14px; line-height: 1.55; }
.cases-page .case-card-full { grid-column: 1 / -1; max-width: 720px; }

@media (max-width: 900px) {
  .comm-grid { grid-template-columns: 1fr; }
}

/* Homepage legacy class → CF dark theme */
.px-section { padding-left: 24px; padding-right: 24px; }
.max-w { width: min(var(--container), 100%); margin-inline: auto; }
.top-bar {
  background: var(--black); border-bottom: 1px solid #222;
  padding: 8px 24px; font-size: 12px; color: var(--gray-400); text-align: center;
}
.top-bar a { color: var(--orange); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); border-bottom: 1px solid #222; }
.site-header .nav-row {
  height: 72px; display: flex; align-items: center; gap: 16px;
  width: min(var(--container), 100% - 48px); margin-inline: auto;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.cf-logo {
  width: 32px; height: 32px; background: var(--orange); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.logo-text .dim { opacity: .7; }
.nav-center { display: none; flex: 1; justify-content: center; gap: 4px; }
@media (min-width: 900px) { .nav-center { display: flex; } }
.nav-link { padding: 8px 12px; font-size: 14px; color: var(--white); border-radius: 6px; }
.nav-link:hover { background: #1a1a1a; }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: flex; background: none; border: none; color: var(--white);
  font-size: 22px; cursor: pointer; margin-left: auto;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.btn {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit;
}
.btn-primary { background: var(--orange); color: var(--white); border: none; }
.btn-login { color: var(--white); border: 1px solid #555; background: transparent; }
.btn-outline-dark { border: 1px solid rgba(255,255,255,.5); color: var(--white); background: transparent; border-radius: 999px; }

.cf-page-hero { padding: 0 24px 0; }
.hero-wrap { display: none; }
.hero-grid-bg, .hero-glow { display: none; }

.region { padding: 96px 0; background: var(--black); }
.region .lead { text-align: center; color: var(--gray-400); margin-bottom: 48px; }
.region h2 { text-align: center; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.region-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.region-stat-num { font-size: 2rem; font-weight: 800; color: var(--orange); text-align: center; }
.region-stat-cap { font-size: 13px; color: var(--gray-400); margin-top: 8px; max-width: 18ch; text-align: center; }

.three-run { background: var(--gray-900); border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 0; }
.three-run-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.run-card {
  padding: 48px 36px; border-right: 1px solid #333;
}
.run-card:last-child { border-right: none; }
.run-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.run-card p { font-size: 14px; color: var(--gray-400); line-height: 1.55; }

.why { padding: 96px 0; background: var(--black); }
.why-head { text-align: center; margin-bottom: 48px; }
.why-head h2 { font-size: 2rem; font-weight: 800; }
.why-head p { color: var(--gray-400); margin-top: 8px; }
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; margin: 0 auto; }
.compare-side.bad {
  background: #111; border: 1px solid #333; border-radius: 16px; padding: 40px 32px;
}
.compare-side.bad h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.compare-side.bad li { color: var(--gray-400); font-size: 14px; margin-bottom: 8px; list-style: none; }
.compare-side.good {
  background: var(--orange); border-radius: 16px; padding: 40px 32px;
}
.compare-side.good h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.compare-side.good li { font-size: 14px; margin-bottom: 8px; list-style: none; }

.products { padding: 96px 0; background: var(--black); }
.products h2 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 32px; }
.tab-row {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 32px;
  background: #111; border: 1px solid #333; border-radius: 999px; padding: 4px; width: fit-content; margin-inline: auto;
}
.tab-btn {
  border: none; background: transparent; padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--gray-400); cursor: pointer; font-family: inherit;
}
.tab-btn.active { background: var(--orange); color: var(--white); }
.tab-panel { display: none; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.tab-panel.show { display: grid; }
.tab-panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.tab-panel p, .tab-panel li { color: var(--gray-400); font-size: 14px; }
.tab-card {
  background: #111; border: 1px solid #333; border-radius: 12px; padding: 20px;
}
.tab-card-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #222; font-size: 13px; }
.tab-card-row .k { color: var(--gray-400); }
.tab-card-row .v { font-weight: 700; color: var(--orange); }

.pay-section { padding: 96px 0; background: var(--black); }
.pay-section .center { text-align: center; }
.pay-section h2 { font-size: 2.25rem; font-weight: 800; }
.pay-section .sub { color: var(--gray-400); margin: 8px 0 32px; }
.pay-viz { max-width: 900px; margin: 0 auto; }
.pay-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }

.marquee-section { padding: 48px 0; text-align: center; background: var(--black); }
.marquee-section > p { color: var(--gray-400); margin-bottom: 20px; }
.marquee-track {
  display: flex; gap: 32px; animation: marquee 40s linear infinite;
  font-size: 14px; font-weight: 600; color: var(--gray-400); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.plans { padding: 96px 0; background: var(--black); }
.plans h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 40px; }
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid #333; border-radius: 12px; overflow: hidden; max-width: 1100px; margin: 0 auto;
}
.plan-card { padding: 28px 22px; border-right: 1px solid #333; background: #0a0a0a; }
.plan-card:last-child { border-right: none; }
.plan-card.featured { background: #151515; }
.plan-card h4 { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.plan-card .price { font-size: 1.75rem; font-weight: 800; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--gray-400); }
.plan-card li { font-size: 12px; color: var(--gray-400); list-style: none; padding: 4px 0; }

.blog-section { padding: 64px 0 96px; background: var(--black); }
.blog-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; }

.cta-dark {
  margin: 0 24px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #f38020, #d9650a);
  padding: 80px 32px; text-align: center;
}
.cta-dark h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.cta-dark p { color: rgba(255,255,255,.9); margin-bottom: 24px; }

.site-footer { background: var(--black); border-top: 1px solid #222; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.site-footer h5, .site-footer h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); margin-bottom: 14px; }
.site-footer a { display: block; font-size: 14px; color: var(--gray-400); margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--gray-600); padding-top: 24px; border-top: 1px solid #222; }

.cookie, #cookie, #cf-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #111; border-top: 1px solid #333;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .3s;
}
.cookie.show, #cookie.show, #cf-cookie.show { transform: translateY(0); }
.cookie p, #cf-cookie p { font-size: 14px; color: var(--gray-400); }
.cookie a, #cf-cookie a { color: var(--orange); }

@media (max-width: 900px) {
  .cf-run-grid, .cf-bento, .cf-plans, .agents-grid, .cf-footer-grid, .pay-calc { grid-template-columns: 1fr; }
  .cf-run-item { border-right: none; border-bottom: 1px solid #333; }
  .cf-plan { border-right: none; border-bottom: 1px solid #333; }
  .cf-callout { position: static; max-width: none; margin: 12px 0; }
  .cf-region-viz { height: auto; }
  .cf-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--black);
    padding: 20px; border-bottom: 1px solid #333;
  }
}
