/* LFI v4 shared design system. Do not copy into the live WordPress/main.css tree. */
:root{
  --paper:#f3eee4;--paper2:#ebe4d6;--paper3:#e3dac9;--white:#fbf8f2;
  --ink:#24201b;--ink2:#4a443c;--mute:#7a7266;--rule:#d9cfbf;
  --acc:#b8602f;--accd:#8a4423;--accl:#d99a6c;
  --serif:"Newsreader",Georgia,serif;
  --sans:"Geist",system-ui,sans-serif;
  --mono:"Geist Mono",ui-monospace,monospace;
  --container:1280px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px;-webkit-font-smoothing:antialiased}
html,body{overflow-x:hidden;max-width:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);line-height:1.55;
  padding-bottom:0;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit;color:inherit}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;letter-spacing:-.03em;color:var(--ink);line-height:1.15}
h1{font-size:clamp(36px,6vw,56px);margin:0 0 16px}
h2{font-size:clamp(24px,3.4vw,36px);margin:0 0 12px}
h3{font-size:22px;margin:0 0 8px}
p{margin:0 0 12px}
code,pre,kbd{font-family:var(--mono)}

/* language: inner pages toggle html[lang] / .lang-de */
html[lang="de"] .lang-en, html.lang-de .lang-en{display:none!important}
html[lang="en"] .lang-de, html.lang-en .lang-de, html:not([lang="de"]):not(.lang-de) .lang-de{display:none!important}

body:has(.preview-banner){--lfi-preview-banner-h:36px}
.preview-banner{position:sticky;top:0;z-index:80;background:#24201b;color:#fbf8f2;
  font:500 12px/1.4 var(--sans);letter-spacing:.02em;padding:8px 20px;text-align:center;min-height:36px}
header.ahdr,.ahdr{top:var(--lfi-preview-banner-h,0px)}
.preview-banner a{color:#d99a6c;text-decoration:underline}

.wrap{max-width:1328px;margin:0 auto;padding:0 64px}
.btn, .cf-btn-primary, .hero-panel-btn-primary, .hero-panel-start{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--ink);color:var(--white)!important;border:1px solid var(--ink);
  font:500 15px/1 var(--sans);padding:12px 20px;border-radius:99px;cursor:pointer;
  text-decoration:none!important;white-space:nowrap;min-height:44px
}
.btn:hover, .cf-btn-primary:hover, .hero-panel-btn-primary:hover, .hero-panel-start:hover{
  background:var(--accd);border-color:var(--accd)
}
.btn2, .cf-btn-ghost, .hero-panel-btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--ink)!important;border:1px solid var(--ink);
  font:500 15px/1 var(--sans);padding:12px 20px;border-radius:99px;cursor:pointer;
  text-decoration:none!important;min-height:44px
}
.brand{display:flex;align-items:center;gap:11px}
.brand .mk{width:26px;height:26px;border-radius:6px;background:var(--acc);color:var(--white);
  display:grid;place-items:center;font:600 9.5px/1 var(--sans);letter-spacing:.02em}
.brand .wm{font-family:var(--serif);font-size:22px;font-weight:500;letter-spacing:-.02em}

/* FOOTER (v4 dark band) */
footer{background:#1f1c19;color:#d9d1c4;padding:90px 0 50px}
footer .fc{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:40px}
footer h5{font-family:var(--mono);font-weight:400;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#8f877b;margin-bottom:14px}
footer a{display:block;font-size:14px;margin-bottom:8px;color:#d9d1c4}
footer a:hover{color:#efe8dc}
footer .co{font-size:14px;line-height:1.7;color:#a79d8f}
footer .co b{color:#efe8dc;font-weight:500}
footer .brand .wm{color:#efe8dc}
footer .legal{display:flex;justify-content:space-between;gap:30px;margin-top:70px;padding-top:22px;border-top:1px solid #3a352f;font-size:12.5px;color:#8f877b;flex-wrap:wrap}
footer .legal b{color:#d9d1c4;font-weight:500}

/* fallback nav before header.js runs */
.site-nav-fallback{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:center;
  padding:14px 20px;background:var(--paper);border-bottom:1px solid var(--rule);
  font:500 13px/1 var(--sans)}
.site-nav-fallback a{color:var(--ink);padding:8px 10px;min-height:44px;display:inline-flex;align-items:center}

/* cookie — v4 paper/ink, keep #cf-cookie */
#cf-cookie, .cf-cookie{
  position:fixed;left:0;right:0;bottom:0;z-index:200;
  display:none;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  background:#1f1c19;color:#d9d1c4;padding:14px 24px;
  font:400 14px/1.45 var(--sans);
  box-shadow:0 -1px 0 #3a352f;
  transform:none!important
}
#cf-cookie.show, .cf-cookie.show{display:flex}
#cf-cookie p, .cf-cookie p{margin:0;color:#d9d1c4}
#cf-cookie a, .cf-cookie a{color:var(--accl);text-decoration:underline}
#cf-cookie button, .cf-cookie button, #cf-cookie .cf-btn-primary{
  background:var(--white);color:var(--ink)!important;border:1px solid var(--white);
  border-radius:99px;padding:10px 18px;min-height:44px;cursor:pointer;font:500 14px var(--sans)
}
body.has-cookie{padding-bottom:88px}

.seo-link-keep{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Inner typography */
.cf-inner{padding:56px 0 96px!important;background:var(--paper)!important;min-height:60vh;color:var(--ink)!important}
.cf-container{width:min(var(--container), calc(100% - 40px));margin-inline:auto}
.cf-inner-head{margin-bottom:36px;max-width:40em}
.cf-inner-head h1, .cf-inner > .cf-container > h1, main h1{
  font-family:var(--serif)!important;font-weight:500!important;letter-spacing:-.035em;
  font-size:clamp(36px,6vw,56px)!important;color:var(--ink)!important
}
.cf-inner-head p, .cf-inner > .cf-container > p{color:var(--ink2);font-size:17px;line-height:1.6}
.lead, .article-body .lead{font-size:1.15rem;color:var(--ink)!important;line-height:1.6}
.legal-muted{color:var(--mute);font-size:14px}

.blog-grid, .cases-grid, .cases-page{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px
}
.blog-card, .case-card, .case-card-full{
  background:var(--white)!important;border:1px solid var(--rule)!important;border-radius:16px;
  padding:22px;color:var(--ink)!important;box-shadow:none!important
}
.blog-card:hover, .case-card:hover{border-color:var(--acc)!important}
.blog-card h3, .case-card h2, .case-card h3{font-family:var(--serif);font-weight:500;color:var(--ink)!important}
.blog-card p, .case-card p{color:var(--ink2)!important}
.blog-card .tag, .case-cat, .tag{
  font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;
  color:var(--accd);background:var(--paper2);border:1px solid var(--rule);
  display:inline-block;padding:4px 8px;border-radius:99px
}
.blog-card .meta, .article-meta, .case-year, .case-status{color:var(--mute);font-size:13px}

.article, .cf-container.article{max-width:760px}
.article-body, .article-body p, .article-body li{color:var(--ink)!important;font-size:17px;line-height:1.7}
.article-body h2, .article-body h3{font-family:var(--serif)!important;font-weight:500!important;color:var(--ink)!important;margin:32px 0 12px}
.article-body a, .cf-inner a:not(.btn):not(.cf-btn-primary):not(.cf-btn-ghost):not(.blog-card-link):not(.brand){
  color:var(--accd);text-decoration:underline;text-underline-offset:3px
}
.blog-card-link{text-decoration:none!important;color:inherit!important;display:block}
.article-body .callout, .article-body .archive-banner{
  background:var(--paper2)!important;border:1px solid var(--rule)!important;border-left:3px solid var(--acc)!important;
  color:var(--ink)!important;padding:16px 18px;border-radius:8px;margin:20px 0
}
.article-table{width:100%;border-collapse:collapse;font-size:14px;margin:16px 0 24px}
.article-table th, .article-table td{border:1px solid var(--rule);padding:10px 12px;text-align:left;color:var(--ink)}
.article-table th{background:var(--paper2);font-weight:600}
.article-related{margin-top:48px;padding-top:28px;border-top:1px solid var(--rule)}
.article-back{margin-top:32px}

.faq-list{display:flex;flex-direction:column;gap:10px;max-width:800px}
.faq-item{background:var(--white);border:1px solid var(--rule);border-radius:14px;padding:0}
.faq-item summary{cursor:pointer;padding:16px 20px;font:500 16px/1.4 var(--sans);color:var(--ink);min-height:44px;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item .faq-a{padding:0 20px 18px;color:var(--ink2);font-size:16px;line-height:1.6}

/* forms on kontakt and elsewhere */
.cf-inner input, .cf-inner textarea, .cf-inner select,
input[type="text"], input[type="email"], input[type="tel"], textarea{
  font-size:16px;min-height:44px;border:1px solid var(--rule);border-radius:8px;
  background:var(--white);color:var(--ink);padding:10px 12px;width:100%;max-width:100%
}
textarea{min-height:132px}

/* ========== HOME LEGACY / MIXED SECTIONS → v4 paper ========== */
.px-section, .live-wrap, .cf-page-hero,
.legacy-cases, .legacy-timeline, .legacy-team, .legacy-cta-band,
.cta-dark, .cta-dark.px-section,
.why, .why.px-section, section.why,
.products, .products.px-section,
.plans, .plans.px-section, .pay-section, .pay-section.px-section,
.blog-section, .blog-section.px-section,
.region, .region.px-section, .three-run, .three-run.px-section{
  background:var(--paper)!important;color:var(--ink)!important;border-color:var(--rule)!important
}
.cta-dark h2, .legacy-cta-inner h2, section.why .why-head h2,
.live-wrap section.why .why-head h2, .live-copy section.why .why-head h2,
.products h2, .plans h2, .px-section h2, .live-wrap h2{
  color:var(--ink)!important;font-family:var(--serif)!important;font-weight:500!important
}
.cta-dark p, section.why .why-head p, .live-wrap section.why .why-head p,
.px-section p, .legacy-cta-inner p{color:var(--ink2)!important}
section.why, .live-wrap section.why, .live-copy section.why{color:var(--ink)!important}
section.why .compare-side, .live-wrap section.why .compare-side{
  background:var(--white)!important;border:1px solid var(--rule)!important;color:var(--ink)!important
}
section.why .compare-side.bad, .live-wrap section.why .compare-side.bad, .live-copy section.why .compare-side.bad{
  background:var(--paper2)!important;border:1px solid var(--rule)!important;color:var(--ink)!important
}
section.why .compare-side h3, section.why .compare-side.bad h3,
.live-wrap section.why .compare-side.bad h3{color:var(--ink)!important}

.plan, .plan-card, .plan-card.featured{
  background:var(--white)!important;color:var(--ink)!important;border:1px solid var(--rule)!important
}
.plan-card.featured{box-shadow:0 0 0 1px var(--acc)}

.hero-panel, .terminal-wrap, .hero-panel .terminal-wrap{
  background:var(--white)!important;color:var(--ink)!important;
  border:1px solid var(--rule)!important;border-radius:16px!important;
  box-shadow:none!important
}
.hero-panel-title, .hero-panel-copy, .hero-panel-eyebrow, .hero-panel-lead,
.hero-panel-flow, .hero-panel-pay-hint{color:var(--ink)!important}
.hero-panel-lead, .hero-panel-pay-hint, .hero-panel-flow{color:var(--ink2)!important}
.terminal-titlebar{background:var(--paper2)!important;border-bottom:1px solid var(--rule)!important;color:var(--ink)!important}
.terminal-body{background:var(--white)!important;color:var(--ink)!important;min-height:0!important}
.terminal-body .prompt{color:var(--acc)!important}
.terminal-input-row, .terminal-input-row input{
  background:var(--paper)!important;color:var(--ink)!important;border-color:var(--rule)!important
}

/* intake form on paper, not the old black terminal */
.intake-form, #intake-confirm{
  background:var(--white)!important;color:var(--ink)!important;border-top:1px solid var(--rule)!important
}
.intake-form label{color:var(--ink2)!important}
.intake-form input[type="text"], .intake-form input[type="email"], .intake-form input[type="tel"],
.intake-form textarea{
  background:var(--paper)!important;color:var(--ink)!important;border:1px solid var(--rule)!important;
  font-size:16px!important;min-height:44px!important;border-radius:8px
}
.intake-fallback, .intake-form noscript p, .intake-pay-note, .intake-files, .intake-note{color:var(--ink2)!important}
.intake-fallback a, .intake-form noscript a{color:var(--accd)!important}
.intake-attach{background:transparent!important;color:var(--ink)!important;border:1px solid var(--ink)!important;border-radius:99px!important;min-height:44px}
.intake-send{background:var(--ink)!important;color:var(--white)!important;border:1px solid var(--ink)!important;border-radius:99px!important;min-height:44px}
.intake-error{color:var(--accd)!important}
#intake-confirm h3, #intake-confirm p, #intake-confirm code{color:var(--ink)!important}
#intake-confirm code{background:var(--paper2)!important}
#after-acceptance{background:var(--paper2)!important;color:var(--ink2)!important;border:1px dashed var(--rule)!important}
#after-acceptance h3{color:var(--ink)!important}
.intake-form .hp, input.hp{display:none!important}

/* hide empty terminal chrome leftover */
#terminal-out:empty{display:none}

@media (max-width:760px){
  .wrap{padding:0 20px}
  .brand .wm{font-size:19px}
  footer .fc{grid-template-columns:1fr 1fr}
  footer{padding:56px 0 36px}
  footer .legal{margin-top:36px}
  .preview-banner{font-size:12px!important;line-height:1.45!important}
  #cf-cookie, .cf-cookie{flex-direction:column;align-items:stretch;gap:10px}
  .cf-inner{padding:36px 0 72px!important}
  body.has-cookie{padding-bottom:120px}
}
@media (max-width:480px){
  footer .fc{grid-template-columns:1fr}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .preview-banner, .ahdr, .ahdr *, .rv, .nav-panel{
    transition:none!important;animation:none!important
  }
  .rv{opacity:1!important;transform:none!important}
}

.lang-sw{display:none!important} /* language lives in the v4 header */


/* --- layout ported from the previous inner-page stylesheet, recolored to v4 --- */






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(--paper);
  border-bottom: 1px solid var(--rule);
}
.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(--acc); }
.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(--ink);
  border-radius: 6px;
}
.cf-nav-link:hover { background: var(--paper2); }
.cf-nav-link.active { color: var(--acc); }
.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(--ink);
  font-size: 22px; cursor: pointer; margin-left: auto;
}
@media (min-width: 900px) { .cf-nav-toggle { display: none; } }

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

.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(--acc); color: var(--ink); border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.cf-btn-primary:hover { background: var(--accd); }
.cf-btn-ghost {
  display: inline-flex; padding: 10px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--mute); 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(--ink); color: var(--paper);
  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(--paper); }
.cf-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, var(--acc) 0%, var(--accd) 45%, var(--accd) 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(36,32,27,.12) 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, var(--mute) 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: var(--ink2);
}
.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(--ink);
  text-shadow:
    -1px -1px 0 rgba(36,32,27,.10), 1px -1px 0 rgba(36,32,27,.10),
    -1px 1px 0 rgba(36,32,27,.10), 1px 1px 0 rgba(36,32,27,.10);
  margin-bottom: 20px;
}
.cf-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(251,248,242,.92);
  max-width: 52ch; margin: 0 auto 32px; line-height: 1.5;
}

/* —— Orange hero + dark CLI panel (readable) —— */
.cf-hero-card-agents {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  min-height: 0;
  padding: 28px clamp(20px, 3vw, 36px) 40px;
  margin-bottom: 32px;
}
.cf-hero-card-agents .cf-hero-pill {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
  color: rgba(251,248,242,.95);
  text-shadow: 0 1px 2px rgba(36,32,27,.12);
}
.cf-hero-card-agents .cf-hero-pill a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  text-align: left;
  background: linear-gradient(180deg, var(--paper2) 0%, var(--paper) 100%);
  border: 1px solid rgba(36,32,27,.06);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 80px rgba(36,32,27,.16);
}
.hero-panel-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hero-panel-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 12px;
}
.hero-panel-title {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 14px;
}
.hero-panel-lead {
  font-size: 0.98rem; line-height: 1.55; color: var(--mute);
  max-width: 36ch; margin-bottom: 20px;
}
.hero-panel-pay { margin-bottom: 16px; }
.hero-panel-start {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: none; border-radius: 10px;
  background: var(--acc); color: var(--ink);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.15s;
}
.hero-panel-start:hover { background: var(--accd); }
.hero-panel-pay-hint {
  font-size: 12px; color: var(--mute); margin-top: 10px; max-width: 34ch; line-height: 1.45;
}
.hero-panel-stripe {
  margin-bottom: 16px; max-width: 340px;
  padding: 16px; background: var(--ink); border-radius: 12px;
}
.hero-panel-stripe[hidden] { display: none !important; }
.hero-panel-stripe-label {
  font-size: 12px; font-weight: 600; color: var(--rule); margin-bottom: 10px;
}
.hero-panel-stripe stripe-buy-button { display: block; }
.hero-panel-after-pay {
  font-size: 11px; color: var(--mute); margin-top: 12px; line-height: 1.5;
}
.hero-panel-after-pay code {
  font-family: var(--mono); font-size: 10px; background: var(--paper2);
  padding: 1px 5px; border-radius: 4px;
}
.hero-panel-pay.is-done { display: none; }
.hero-panel-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.hero-panel-btn {
  font-family: var(--mono); font-size: 11px; padding: 9px 14px;
  background: var(--paper2); border: 1px solid var(--rule); border-radius: 8px;
  color: #9cdcfe; cursor: pointer;
}
.hero-panel-btn:hover:not(:disabled) { border-color: var(--acc); }
.hero-panel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hero-panel-btn.wallet-connected:not(.wallet-ready) { border-color: #febc2e; color: #febc2e; }
#mm-status { min-height: 1.2em; }
.hero-panel-btn-primary {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--ink);
  font-weight: 700;
}
.hero-panel-btn-primary:hover:not(:disabled) { background: var(--accd); border-color: var(--accd); }
.hero-panel-flow {
  font-size: 11px; color: var(--mute); font-family: var(--mono); line-height: 1.5;
}
.hero-panel-flow span { color: var(--acc); }
.hero-panel-terminal { min-width: 0; }
.hero-panel .terminal-wrap {
  box-shadow: 0 8px 32px rgba(36,32,27,.18);
}
.hero-panel .terminal-body { min-height: 220px; }
.hero-panel-pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.hero-pipe-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: var(--paper2); border: 1px solid var(--paper3);
  border-radius: 8px; font-size: 11px;
}
.hero-pipe-name {
  font-family: var(--mono); font-weight: 600; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-pipe-item .state { color: var(--mute); font-family: var(--mono); font-size: 10px; }
.hero-pipe-item.ok .state { color: #7ee787; }
.hero-pipe-item.warn .state { color: #febc2e; }
.hero-pipe-item.pending .state { color: var(--mute); }
.hero-panel .bid-panel { margin-top: 14px; }
@media (max-width: 900px) {
  .hero-panel-grid { grid-template-columns: 1fr; }
  .hero-panel-terminal { order: -1; }
  .hero-panel-pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* —— Region Earth —— */
.cf-region {
  padding: 96px 0;
  background: var(--paper);
  position: relative;
  background-image: radial-gradient(circle, var(--rule) 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 var(--rule);
}
.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(--ink2); 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 var(--rule); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--paper2), var(--paper));
  opacity: 0.6;
}
.cf-callout {
  position: absolute; max-width: 220px;
  padding: 16px 18px; border: 1px solid var(--acc);
  font-size: 14px; color: var(--acc); 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(--acc); }
.cf-region-stats .c { font-size: 13px; color: var(--ink2); margin-top: 6px; max-width: 16ch; }

/* —— Run three —— */
.cf-run {
  background: var(--paper2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cf-run-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cf-run-item {
  padding: 48px 36px;
  border-right: 1px solid var(--rule);
}
.cf-run-item:last-child { border-right: none; }
.cf-run-icon {
  width: 28px; height: 28px; margin-bottom: 16px;
  border: 2px solid var(--ink); 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(--ink2); line-height: 1.55; }

/* —— Fortune / logos —— */
.cf-logos { padding: 64px 0; background: var(--paper); text-align: center; }
.cf-logos h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.cf-logos .sub { color: var(--ink2); margin-top: 8px; margin-bottom: 32px; }
.cf-logo-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--rule); 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(--ink2);
  border-right: 1px solid var(--rule); cursor: pointer; background: var(--paper2);
}
.cf-logo-tab:last-child { border-right: none; }
.cf-logo-tab.on { color: var(--ink); background: var(--paper2); border-bottom: 2px solid var(--acc); }

/* —— Why bento —— */
.cf-why { padding: 96px 0; background: var(--paper); }
.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(--ink2); margin-top: 8px; }
.cf-bento {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 1000px; margin: 0 auto;
}
.cf-bento-bad {
  background: var(--paper2); border: 1px solid var(--rule); 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(--ink2); 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: var(--mute);
  background: var(--paper2); border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 10px; max-width: 140px;
}
.cf-bento-good {
  background: var(--acc); 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(--ink); margin-bottom: 24px; }
.cf-bento-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(36,32,27,.08); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; width: fit-content;
}

/* —— Pay section —— */
.cf-pay { padding: 96px 0; background: var(--paper); }
.cf-pay h2 { text-align: center; font-size: 2.25rem; font-weight: 800; }
.cf-pay .sub { text-align: center; color: var(--ink2); margin: 8px 0 40px; }
.cf-tabs {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 40px;
  background: var(--paper2); border: 1px solid var(--rule); 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(--ink2);
  cursor: pointer; font-family: inherit;
}
.cf-tabs button.on { background: var(--acc); color: var(--ink); }
.cf-plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  max-width: 1100px; margin: 48px auto 0;
}
.cf-plan {
  padding: 28px 22px; border-right: 1px solid var(--rule); background: var(--paper);
}
.cf-plan:last-child { border-right: none; }
.cf-plan h4 { font-size: 12px; color: var(--ink2); margin-bottom: 8px; }
.cf-plan .price { font-size: 2rem; font-weight: 800; }
.cf-plan .price small { font-size: 13px; font-weight: 500; color: var(--ink2); }
.cf-plan ul { list-style: none; margin-top: 16px; }
.cf-plan li { font-size: 12px; color: var(--ink2); padding: 4px 0; }

/* —— Agents / CLI (hero-embedded) —— */
.agents-section {
  padding: 48px 0 80px; background: var(--paper);
  border-top: 1px solid var(--rule);
}
.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(--acc); margin-bottom: 14px;
}
.agents-copy h1,
.agents-copy h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.03em; }
.agents-copy p { color: var(--ink2); 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(184,96,47,.15); border: 1px solid rgba(184,96,47,.4);
  margin: 16px 0 20px;
}
.agents-price .amt { font-size: 1.75rem; font-weight: 800; color: var(--acc); }
.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: var(--paper2); border: 1px solid var(--rule); border-radius: 6px;
  color: #9cdcfe; cursor: pointer;
}
.cli-chip:hover { border-color: var(--acc); }
.agent-row {
  display: flex; justify-content: space-between; padding: 10px 14px;
  background: var(--paper2); border: 1px solid var(--rule); 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 var(--rule); border-radius: 12px; overflow: hidden; }
.terminal-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--paper2); border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--mute);
}
.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: var(--paper2); }
.pipe-step {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: var(--mute); font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit; border-right: 1px solid var(--rule);
}
.pipe-step.active { color: var(--ink); background: var(--paper2); box-shadow: inset 0 -2px 0 var(--acc); }
.pipe-step .n { display: block; color: var(--acc); 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: var(--paper2); border: 1px solid var(--rule);
  border-radius: 8px;
}
.bid-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; align-items: flex-start; }
.bid-panel h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin-bottom: 4px; }
.bid-panel-ref { font-size: 11px; color: var(--ink2); margin: 0; }
.bid-panel-ref code { color: var(--acc); font-family: var(--mono); }
.bid-panel-summary { font-size: 11px; color: #7ee787; margin: 0; max-width: 220px; text-align: right; }
.bid-panel-foot { font-size: 10px; color: var(--mute); margin: 12px 0 0; }
.bid-panel-foot code { font-family: var(--mono); color: var(--ink2); }
.bid-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 12px; align-items: center;
}
.bid-row:last-child { border-bottom: none; }
.bid-row.live { background: rgba(126, 231, 135, 0.06); margin: 0 -10px; padding: 10px; border-radius: 6px; }
.bid-row.pending { opacity: 0.55; }
.bid-row.winner { background: rgba(184,96,47,.18); margin: 0 -10px; padding: 10px; border-radius: 6px; opacity: 1; }
.bid-row .firm { font-weight: 600; color: var(--ink); }
.bid-row .meta { color: var(--ink2); font-size: 11px; grid-column: 1 / -1; margin-top: -4px; }
.bid-row .pps { color: var(--acc); font-weight: 700; white-space: nowrap; }
.bid-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.bid-status.received { background: rgba(126, 231, 135, 0.15); color: #7ee787; }
.bid-status.pending { background: rgba(36,32,27,.05); color: var(--ink2); }
.bid-status.funded { background: rgba(184,96,47, 0.2); color: var(--acc); }
.bid-status.awarded { background: rgba(254, 188, 46, 0.15); color: #febc2e; }
.bid-fund-btn {
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--acc); background: transparent; color: var(--acc);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.bid-fund-btn:hover { background: var(--acc); color: var(--ink); }
.bid-fund-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tranche-panel {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.tranche-panel h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin-bottom: 10px; }
.tranche-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 11px; align-items: center;
}
.tranche-row:last-child { border-bottom: none; }
.tranche-row.paid { opacity: 0.7; }
.tranche-row.locked { opacity: 0.4; }
.tranche-row .label { color: var(--ink); font-weight: 600; }
.tranche-row .amount { color: var(--acc); font-weight: 700; white-space: nowrap; }
.tranche-status {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tranche-status.awaiting_payment { background: rgba(254, 188, 46, 0.15); color: #febc2e; }
.tranche-status.paid { background: rgba(126, 231, 135, 0.15); color: #7ee787; }
.tranche-status.locked { background: rgba(36,32,27,.05); color: var(--ink2); }
.tranche-pay-btn {
  font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--rule); background: transparent; color: var(--rule);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.tranche-pay-btn.usdc { border-color: #7ee787; color: #7ee787; }
.tranche-pay-btn.stripe { border-color: #635bff; color: #a5a0ff; }
.tranche-pay-btn:hover:not(:disabled) { filter: brightness(1.15); }
.tranche-pay-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tranche-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; grid-column: 1 / -1; }
.agent-row.ok .state { color: #7ee787; }
.agent-row.warn .state { color: #febc2e; }
.terminal-body {
  padding: 18px; min-height: 200px; background: var(--paper);
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink2);
}
.terminal-body .prompt { color: var(--acc); }
.terminal-body .ok { color: #7ee787; }
.terminal-body .err { color: #ff6b6b; }
.terminal-body .warn { color: #f0c674; }
.terminal-body .dim { color: var(--mute); }
.terminal-body .hi { color: #9cdcfe; }
.terminal-cursor { display: inline-block; width: 7px; height: 13px; background: var(--acc); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-input-row {
  display: flex; gap: 8px; padding: 12px 16px; background: var(--paper2); border-top: 1px solid var(--rule);
}
.terminal-input-row input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--paper2); font-family: var(--mono); font-size: 12px;
}

/* —— Build orange CTA —— */
.cf-build {
  margin: 48px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--acc), var(--accd));
  padding: 80px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cf-build::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(36,32,27,.12) 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: var(--ink2); 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(--paper); 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(--ink2); 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: var(--paper2); border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px; transition: border-color .2s;
}
.blog-card:hover { border-color: var(--acc); }
.blog-card-link {
  display: block; color: inherit; text-decoration: none;
}
.blog-card-link:hover h3 { color: var(--acc); }
.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(--acc); 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(--acc); }
.blog-card p { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.blog-card .meta { font-size: 12px; color: var(--mute); 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(--ink2); margin-bottom: 32px; }
.article-body { color: var(--ink2); font-size: 16px; line-height: 1.7; }
.article-body h2 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.article-body p, .article-body li { margin-bottom: 1.1em; }
.article-body .lead { font-size: 1.1rem; color: var(--ink); }
.article-body a { color: var(--acc); }
.article-body h2 { font-size: 1.2rem; font-weight: 700; color: var(--ink); 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 var(--rule); margin: 28px 0; }
.article-body .callout {
  padding: 14px 16px; background: rgba(184,96,47,.08); border-left: 3px solid var(--acc);
  border-radius: 0 6px 6px 0; margin: 24px 0;
}
.article-body .archive-banner { background: rgba(36,32,27,.04); border-left-color: var(--mute); }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; }
.article-table th, .article-table td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.article-table th { background: var(--paper2); color: var(--ink); font-weight: 600; }
.article-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.article-related h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin-bottom: 12px; }
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li { margin-bottom: 10px; }
.article-related a { color: var(--ink); font-weight: 500; }
.article-related a:hover { color: var(--acc); }
.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: var(--rule); color: var(--ink2);
}
.blog-badge.archive { border: 1px solid var(--rule); }
.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(184,96,47,.1); border: 1px solid rgba(184,96,47,.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(--ink2); margin-bottom: 12px; }
.legal-page h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.legal-page a { color: var(--acc); }

/* calc */
.jurisdiction-tabs {
  display: flex; justify-content: center; gap: 6px; margin: 24px 0 12px;
}
.jurisdiction-tab {
  border: 1px solid var(--rule); background: var(--paper2); color: var(--ink2);
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.jurisdiction-tab.active { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.calc-model-note {
  text-align: center; font-size: 14px; color: var(--ink2);
  max-width: 52ch; margin: 0 auto 20px;
}
.calc-breakdown { font-size: 12px; color: var(--ink2); margin-top: 10px; line-height: 1.5; }
.pay-calc { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 32px; max-width: 900px; margin-inline: auto; }
.pay-calc-wide { max-width: 1000px; grid-template-columns: 1fr 1fr; }
.pay-labels .center { text-align: center; }
@media (max-width: 768px) {
  .pay-calc-wide { grid-template-columns: 1fr; }
}
.pay-field label { font-size: 12px; color: var(--ink2); display: block; margin-bottom: 8px; }
.pay-field input { width: 100%; accent-color: var(--acc); }
.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: var(--rule); }
.pay-seg { transition: flex .35s; }
.pay-seg.billable { background: var(--mute); }
.pay-seg.outcome { background: var(--acc); }
.pay-seg.idle { background: var(--rule); }
.pay-total { font-size: 2.25rem; font-weight: 800; color: var(--acc); }

/* —— Footer —— */
.cf-footer {
  background: var(--paper); border-top: 1px solid var(--rule);
  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 var(--rule);
}
.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(--mute); margin-bottom: 14px;
}
.cf-footer-col a {
  display: block; font-size: 14px; color: var(--ink2);
  margin-bottom: 8px;
}
.cf-footer-col a:hover { color: var(--ink); }
.cf-footer-legal {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--mute); padding-top: 24px; border-top: 1px solid var(--rule);
}
.cf-footer-links a { color: var(--ink2); margin-left: 16px; }
.cf-footer-links a:hover { color: var(--ink); }

.cf-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--paper2); border-top: 1px solid var(--rule);
  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(--ink2); }
.cf-cookie a { color: var(--acc); }

.blog-card .soon { font-size: 11px; color: var(--mute); 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(--acc); margin-bottom: 10px; }
.section-head-center h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-head-center p { color: var(--ink2); max-width: 52ch; margin-inline: auto; }
.legacy-cases, .legacy-timeline, .legacy-team { padding: 80px 0; background: var(--paper); }
.legacy-cases { border-top: 1px solid var(--rule); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.case-card {
  background: var(--paper2); border: 1px solid var(--rule); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.case-card:hover { border-color: var(--acc); }
.case-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); }
.case-year { font-size: 12px; color: var(--mute); }
.case-card h2, .case-card h3 { font-size: 1.15rem; font-weight: 700; }
.case-card p { font-size: 14px; color: var(--ink2); line-height: 1.5; flex: 1; }
.case-status { font-size: 12px; color: #7ee787; }
.case-link { font-size: 13px; font-weight: 600; color: var(--acc); margin-top: 8px; }
.timeline { display: grid; gap: 0; border: 1px solid var(--rule); 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 var(--rule); }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-size: 1.1rem; font-weight: 800; color: var(--acc); }
.tl-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.tl-body p { font-size: 13px; color: var(--ink2); 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: var(--rule); }
.team-card h3 { font-size: 1.25rem; font-weight: 700; }
.team-card p { font-size: 14px; color: var(--ink2); }
.legacy-cta-band { background: var(--paper2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.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(--ink2); margin-bottom: 20px; }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comm-card { background: var(--paper2); border: 1px solid var(--rule); 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(--ink2); margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--paper2); border: 1px solid var(--rule); 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(--ink2); 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(--paper); border-bottom: 1px solid var(--rule);
  padding: 8px 24px; font-size: 12px; color: var(--ink2); text-align: center;
}
.top-bar a { color: var(--acc); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--rule); }
.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(--acc); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--ink);
}
.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(--ink); border-radius: 6px; }
.nav-link:hover { background: var(--paper2); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: flex; background: none; border: none; color: var(--ink);
  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(--acc); color: var(--ink); border: none; }
.btn-login { color: var(--ink); border: 1px solid var(--mute); background: transparent; }
.btn-outline-dark { border: 1px solid var(--mute); color: var(--ink); 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(--paper); }
.region .lead { text-align: center; color: var(--ink2); 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(--acc); text-align: center; }
.region-stat-cap { font-size: 13px; color: var(--ink2); margin-top: 8px; max-width: 18ch; text-align: center; }

.three-run { background: var(--paper2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0; }
.three-run-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.run-card {
  padding: 48px 36px; border-right: 1px solid var(--rule);
}
.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(--ink2); line-height: 1.55; }

.why { padding: 96px 0; background: var(--paper); }
.why-head { text-align: center; margin-bottom: 48px; }
.why-head h2 { font-size: 2rem; font-weight: 800; }
.why-head p { color: var(--ink2); margin-top: 8px; }
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; margin: 0 auto; }
.compare-side.bad {
  background: var(--paper2); border: 1px solid var(--rule); 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(--ink2); font-size: 14px; margin-bottom: 8px; list-style: none; }
.compare-side.good {
  background: var(--acc); 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(--paper); }
.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: var(--paper2); border: 1px solid var(--rule); 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(--ink2); cursor: pointer; font-family: inherit;
}
.tab-btn.active { background: var(--acc); color: var(--ink); }
.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(--ink2); font-size: 14px; }
.tab-card {
  background: var(--paper2); border: 1px solid var(--rule); border-radius: 12px; padding: 20px;
}
.tab-card-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.tab-card-row .k { color: var(--ink2); }
.tab-card-row .v { font-weight: 700; color: var(--acc); }

.pay-section { padding: 96px 0; background: var(--paper); }
.pay-section .center { text-align: center; }
.pay-section h2 { font-size: 2.25rem; font-weight: 800; }
.pay-section .sub { color: var(--ink2); margin: 8px 0 32px; }
.pay-viz { max-width: 900px; margin: 0 auto; }
.pay-labels {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  font-size: 12px; color: var(--ink2); margin-bottom: 8px; text-align: center;
}
.pay-labels .left { text-align: left; }
.pay-labels .right { text-align: right; }

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

.plans { padding: 96px 0; background: var(--paper); }
.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 var(--rule); border-radius: 12px; overflow: hidden; max-width: 1100px; margin: 0 auto;
}
.plan-card { padding: 28px 22px; border-right: 1px solid var(--rule); background: var(--paper); }
.plan-card:last-child { border-right: none; }
.plan-card.featured { background: var(--paper2); }
.plan-card h4 { font-size: 12px; color: var(--ink2); 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(--ink2); }
.plan-card li { font-size: 12px; color: var(--ink2); list-style: none; padding: 4px 0; }

.blog-section { padding: 64px 0 96px; background: var(--paper); }
.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, var(--acc), var(--accd));
  padding: 80px 32px; text-align: center;
}
.cta-dark h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.cta-dark p { color: var(--ink2); margin-bottom: 24px; }

.site-footer { background: var(--paper); border-top: 1px solid var(--rule); 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(--mute); margin-bottom: 14px; }
.site-footer a { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 8px; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--mute); padding-top: 24px; border-top: 1px solid var(--rule); }

.cookie, #cookie, #cf-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--paper2); border-top: 1px solid var(--rule);
  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(--ink2); }
.cookie a, #cf-cookie a { color: var(--acc); }

@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 var(--rule); }
  .cf-plan { border-right: none; border-bottom: 1px solid var(--rule); }
  .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(--paper);
    padding: 20px; border-bottom: 1px solid var(--rule);
  }
}



/* --- mobile nav panel (shared, well-formed) --- */
.nav-panel{
  display:none;
  background:rgba(243,238,228,.98);
  border-top:1px solid rgba(36,32,27,.08);
  z-index:211;
}
.nav-panel a{
  display:flex;align-items:center;
  padding:11px 4px;min-height:44px;
  color:#24201b;
  border-bottom:1px solid rgba(36,32,27,.06);
  font:500 15px/1.3 Geist,system-ui,sans-serif;
  background:transparent;
}
.nav-panel a:last-child{border-bottom:0}
.nav-panel a:focus-visible,
button.nav-toggle:focus-visible,
button.menu:focus-visible{
  outline:2px solid #24201b;outline-offset:2px
}
.nav-panel button[data-lang-toggle]{
  display:flex;align-items:center;width:100%;
  padding:11px 4px;min-height:44px;
  border:0;border-bottom:1px solid rgba(36,32,27,.06);
  background:transparent;border-radius:0;height:auto;
  font:500 15px/1.3 Geist,system-ui,sans-serif;color:#24201b;cursor:pointer;text-align:left
}
@keyframes lfi-nav-in{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}
@media (max-width:760px){
  .nav-panel.is-open,
  .ahdr .nav-panel.is-open{
    display:block;
    position:absolute;top:100%;left:0;right:0;
    padding:8px 16px 88px;
    background:rgba(243,238,228,.98);
    border-top:1px solid rgba(36,32,27,.08);
    max-height:calc(100vh - 56px);overflow:auto
  }
  html.nav-open{overflow:hidden}
  .ahdr .more{display:none}
  .ahdr .nav-toggle{display:inline-flex!important}
  .ahdr{position:sticky;z-index:60}
}
@media (max-width:760px) and (prefers-reduced-motion: no-preference){
  .nav-panel.is-open{animation:lfi-nav-in .18s ease-out}
}
@media (prefers-reduced-motion: reduce){
  .nav-panel{animation:none!important;transition:none!important}
}

/* ===== final v4 unify overrides ===== */
.cf-page-hero{
  background:var(--paper)!important;
  padding:24px 24px 0!important;
}
.cf-hero-card,
.cf-hero-card-agents{
  background:var(--paper)!important;
  background-image:none!important;
  min-height:0!important;
  padding:24px 0 40px!important;
  border-radius:0!important;
  text-align:left!important;
  display:block!important;
  overflow:visible!important;
}
.cf-hero-card::before,
.cf-hero-card::after{display:none!important;content:none!important}
.cf-hero-pill,
.cf-hero-card-agents .cf-hero-pill{
  display:inline-block;
  margin:0 0 18px!important;
  padding:6px 12px;
  border-radius:99px;
  background:var(--paper2)!important;
  border:1px solid var(--rule);
  color:var(--ink2)!important;
  font:500 12px/1.3 var(--sans);
  text-shadow:none!important;
}
.cf-hero-pill a,
.cf-hero-card-agents .cf-hero-pill a{color:var(--accd)!important;text-decoration:underline;text-underline-offset:3px}

section.why .compare-side.bad,
.live-wrap section.why .compare-side.bad,
.live-copy section.why .compare-side.bad{
  background:var(--paper2)!important;
  border:1px solid var(--rule)!important;
  color:var(--ink)!important;
}
section.why .compare-side.bad h3,
section.why .compare-side.bad li,
.live-wrap section.why .compare-side.bad h3,
.live-wrap section.why .compare-side.bad li,
.live-copy section.why .compare-side.bad h3,
.live-copy section.why .compare-side.bad li{
  color:var(--ink)!important;
}
section.why .compare-side.good,
section.why .compare-side.good h3,
section.why .compare-side.good li{
  color:var(--ink)!important;
}
.hero-panel-title{
  font-family:var(--serif)!important;
  font-weight:500!important;
  font-size:clamp(32px,4vw,52px)!important;
  letter-spacing:-.035em;
  color:var(--ink)!important;
}
.intake-note, .hero-panel-lead{color:var(--ink2)!important}

/* 2026-11-15 contrast (WCAG AA 4.5:1) with existing v4 tokens only: accent text -> --accd (as .tag on home), muted dates -> --ink2 */
.cf-cookie a,.tag,.case-cat,.tl-year{color:var(--accd)!important}
time,.case-year,.meta time{color:var(--ink2)!important}
