:root {
  --cf-white: #ffffff;
  --cf-navy: #1e3a8a;
  --cf-text: #1f2937;
  --cf-blue: #2563eb;
  --cf-orange: #f97316;
  --cf-orange-hover: #ea580c;
  --cf-green: #22c55e;
  --cf-muted: #6b7280;
  --cf-bg: #f8fafc;
  --cf-line: #e5e7eb;
  --cf-radius: 16px;
  --cf-shadow: 0 12px 40px rgba(30, 58, 138, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cf-theme {
  margin: 0;
  color: var(--cf-text);
  background: var(--cf-white);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cf-navy); }
.cf-skip {
  position: absolute; left: -999px; top: 0;
}
.cf-skip:focus { left: 12px; z-index: 100; background: #fff; padding: 8px; }
.cf-wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.cf-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cf-line);
}
.cf-header.is-compact .cf-header__inner { min-height: 56px; }
.cf-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.cf-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.cf-logo__img { height: 40px; width: auto; max-width: 220px; }
.cf-header.is-compact .cf-logo__img { height: 32px; }
.cf-nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.cf-nav a { text-decoration: none; color: var(--cf-text); font-size: 14px; font-weight: 500; }
.cf-nav-drop { position: relative; }
.cf-nav-drop__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: transparent;
  color: var(--cf-text); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.cf-nav-drop__toggle[aria-expanded="true"] .cf-lang__chevron { transform: rotate(180deg); }
.cf-nav-drop__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  min-width: 280px; max-height: 360px; overflow: auto;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}
.cf-nav-drop__menu li { margin: 0; }
.cf-nav-drop__menu a {
  display: block; padding: 8px 10px; border-radius: 12px;
  text-decoration: none; color: var(--cf-text); font-size: 14px; font-weight: 500;
}
.cf-nav-drop__menu a:hover { background: #f8fafc; }
.cf-header__actions { display: flex; align-items: center; gap: 10px; }
.cf-langs { position: relative; }
.cf-lang { position: relative; }
.cf-lang__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 10px 4px 6px;
  border: 1px solid var(--cf-line); border-radius: 999px;
  background: #fff; color: var(--cf-text);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.cf-lang__toggle[aria-expanded="true"] { border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.cf-lang__chevron { display: flex; color: #64748b; transition: transform .15s ease; }
.cf-lang__toggle[aria-expanded="true"] .cf-lang__chevron { transform: rotate(180deg); }
.cf-flag {
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
  background: #fff;
}
.cf-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 260px; max-height: 320px; overflow: auto;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}
.cf-lang__menu li { margin: 0; }
.cf-lang__option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  text-decoration: none; color: var(--cf-text);
}
.cf-lang__option:hover { background: #f8fafc; }
.cf-lang__option.is-selected { background: #eef2ff; }
.cf-lang__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.cf-lang__meta strong { font-size: 14px; font-weight: 650; }
.cf-lang__meta small { font-size: 12px; color: var(--cf-muted); font-weight: 400; }
.cf-lang__check { color: var(--cf-navy); display: flex; }
.cf-mobile .cf-lang { width: 100%; }
.cf-mobile .cf-lang__toggle { width: 100%; justify-content: flex-start; }
.cf-mobile .cf-lang__menu { left: 0; right: 0; min-width: 0; }
.cf-burger { display: none; }
.cf-mobile { display: none; flex-direction: column; padding: 12px 16px 20px; gap: 10px; background: #fff; }
.cf-mobile:not([hidden]) { display: flex; }

.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
}
.cf-btn--accent { background: var(--cf-orange); color: #fff; }
.cf-btn--accent:hover { background: var(--cf-orange-hover); }
.cf-btn--navy { background: var(--cf-navy); color: #fff; }
.cf-btn--ghost { background: transparent; color: var(--cf-navy); border: 1px solid var(--cf-navy); }
.cf-btn--light { background: #fff; color: var(--cf-navy); }
.cf-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cf-blue); outline-offset: 2px;
}

.cf-hero { padding: 56px 0 32px; background: linear-gradient(180deg, #eef2ff 0%, #fff 70%); }
.cf-hero__grid, .cf-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.cf-kicker { text-transform: uppercase; letter-spacing: .08em; color: var(--cf-navy); font-size: 12px; font-weight: 700; }
h1, h2, h3 { line-height: 1.2; color: #111827; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 8px 0 16px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cf-lead { font-size: 1.15rem; color: #374151; max-width: 42rem; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cf-dash { position: relative; }
.cf-dash img { border-radius: var(--cf-radius); box-shadow: var(--cf-shadow); }
.cf-dash__overlay {
  position: absolute; right: 16px; bottom: 16px; background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; box-shadow: var(--cf-shadow);
}
.cf-dash__overlay ul { margin: 8px 0; padding-left: 16px; }
.cf-muted { color: var(--cf-muted); font-size: 14px; }
.cf-photo { border-radius: var(--cf-radius); box-shadow: var(--cf-shadow); width: 100%; object-fit: cover; }
.cf-figure { margin: 24px 0 0; }

.cf-trust { border-block: 1px solid var(--cf-line); background: var(--cf-bg); }
.cf-trust__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 18px 0; }
.cf-trust p { margin: 0; font-size: 13px; font-weight: 600; color: var(--cf-navy); text-align: center; }

.cf-section { padding: 72px 0; }
.cf-section--muted { background: var(--cf-bg); }
.cf-section--navy { background: var(--cf-navy); color: #fff; }
.cf-section--navy h2, .cf-section--navy li { color: #fff; }
.cf-list { padding-left: 18px; }
.cf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cf-card, .cf-price-card {
  background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius);
  padding: 20px; box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.cf-card:hover, .cf-price-card:hover { transform: translateY(-2px); box-shadow: var(--cf-shadow); }
.cf-flow, .cf-steps { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.cf-flow li, .cf-steps li {
  background: #fff; border: 1px solid var(--cf-line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.cf-steps li { display: flex; align-items: center; gap: 8px; }
.cf-steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--cf-navy); color: #fff; display: grid; place-items: center; font-size: 12px; }

.cf-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-compare article { background: #fff; border-radius: var(--cf-radius); padding: 24px; border: 1px solid var(--cf-line); }
.cf-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cf-price-card.is-featured { border-color: var(--cf-navy); box-shadow: var(--cf-shadow); }
.cf-price { font-size: 2rem; margin: 8px 0 4px; }
.cf-price span { font-size: 14px; color: var(--cf-muted); font-weight: 500; }
.cf-price-vat { margin: 0 0 8px; font-size: 0.95rem; color: var(--cf-muted); }
.cf-table-wrap { overflow-x: auto; }
.cf-table { width: 100%; border-collapse: collapse; background: #fff; }
.cf-table th, .cf-table td { padding: 12px 14px; border-bottom: 1px solid var(--cf-line); text-align: left; }
.cf-table th { background: var(--cf-navy); color: #fff; }

.cf-faq details { background: #fff; border: 1px solid var(--cf-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.cf-faq summary { cursor: pointer; font-weight: 600; }
.cf-pagehead { padding: 48px 0 8px; background: #eef2ff; }
.cf-prose { padding-bottom: 48px; }
.cf-prose .cf-cards { margin-top: 16px; }
.cf-docs-menu {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 20px 0 8px;
}
.cf-docs-menu__item {
  min-height: 38px; padding: 6px 14px;
  border: 1px solid var(--cf-line); border-radius: 999px;
  background: #fff; color: var(--cf-text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cf-docs-menu__item:hover { border-color: #c7d2fe; }
.cf-docs-menu__item.is-active {
  background: var(--cf-navy); color: #fff; border-color: var(--cf-navy);
}
.cf-docs-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cf-docs-card[hidden], .cf-docs-empty[hidden], .cf-nav-drop__menu[hidden] { display: none !important; }
.cf-docs-empty { margin-top: 16px; }
.cf-agent-downloads { margin: 8px 0 36px; }
.cf-agent-downloads h2,
.cf-prose h2 { margin: 28px 0 8px; font-size: 1.35rem; }
.cf-diagram { background: #0f172a; color: #e2e8f0; padding: 20px; border-radius: 12px; overflow: auto; }

.cf-form { display: grid; gap: 12px; max-width: 640px; }
.cf-form input, .cf-form select, .cf-form textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit;
}
.cf-hp { position: absolute; left: -9999px; }
.cf-notice { padding: 12px 14px; border-radius: 10px; background: #ecfdf5; color: #166534; }
.cf-notice--error { background: #fef2f2; color: #991b1b; }

.cf-cta-band { background: var(--cf-navy); color: #fff; padding: 48px 0; text-align: center; }
.cf-cta-band h2, .cf-cta-band p { color: #fff; }
.cf-footer { background: #0f1d4a; color: #dbeafe; padding: 48px 0 24px; }
.cf-footer a { color: #fff; text-decoration: none; display: block; margin: 6px 0; }
.cf-footer a.cf-footer__logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 14px; margin: 0 0 28px; }
.cf-footer__logo-img { height: 36px; width: auto; max-width: 200px; }
.cf-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.cf-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cf-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.cf-social a { display: inline; margin-right: 12px; }

@media (max-width: 1024px) {
  .cf-nav, .cf-btn--navy { display: none; }
  .cf-burger { display: inline-flex; background: transparent; border: 1px solid var(--cf-line); }
  .cf-hero__grid, .cf-split, .cf-trust__grid, .cf-cards, .cf-pricing, .cf-compare, .cf-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .cf-trust__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .cf-hero__grid, .cf-split, .cf-cards, .cf-pricing, .cf-compare, .cf-footer__grid, .cf-trust__grid {
    grid-template-columns: 1fr;
  }
  .cf-header__actions .cf-langs { display: none; }
  .cf-dash__overlay { position: static; margin-top: 12px; }
  .cf-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cf-card, .cf-price-card { transition: none; }
}

.woocommerce .button { background: var(--cf-navy) !important; color: #fff !important; }
.alignwide { width: min(1280px, 100%); }
.alignfull { width: 100%; }
