:root {
  --cfb-green: #059669;
  --cfb-green-dark: #047857;
  --cfb-green-deep: #065f46;
  --cfb-green-soft: #ecfdf5;
  --cfb-green-line: #a7f3d0;
  --cfb-orange: #ff8a1f;
  --cfb-orange-dark: #ed6f00;
  --cfb-navy: #0f172a;
  --cfb-slate: #475569;
  --cfb-line: #dbe3ef;
  --cfb-bg: #f8fafc;
  --cfb-white: #fff;
  --cfb-shadow: 0 20px 60px rgba(15, 23, 42, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cfb-navy);
  background: var(--cfb-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.cfb-modal-open { overflow: hidden; }
a { color: var(--cfb-green-dark); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.cfb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cfb-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.cfb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e7edf5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.cfb-header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.cfb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cfb-navy); text-decoration: none; }
.cfb-brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 1px 3px rgba(79, 70, 229, .18);
}
.cfb-brand-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cfb-brand-name { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.cfb-brand-name em { color: #4f46e5; font-style: normal; }
.cfb-brand-sub { display: block; margin-top: 2px; color: #64748b; font-size: .625rem; font-weight: 500; line-height: 1.2; letter-spacing: .025em; text-transform: uppercase; }
.cfb-nav { display: flex; align-items: center; gap: 26px; }
.cfb-nav a { color: #475569; text-decoration: none; font-size: .88rem; font-weight: 700; }
.cfb-nav a:hover { color: var(--cfb-green-dark); }
.cfb-header-actions { display: flex; align-items: center; gap: 12px; }
.cfb-header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--cfb-green);
  color: #fff;
  box-shadow: 0 9px 24px rgba(5, 150, 105, .24);
  font-size: .8rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.cfb-header-cta:hover { background: var(--cfb-green-dark); color: #fff; transform: translateY(-1px); }
.cfb-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.cfb-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 64px;
  border-bottom: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 12% 12%, rgba(16, 185, 129, .14), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(5, 150, 105, .1), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f6fffb 100%);
}
.cfb-mode-switch { display: flex; justify-content: center; margin-bottom: 28px; }
.cfb-mode-switch nav {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.cfb-mode-switch a {
  min-height: 44px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #64748b;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.cfb-mode-switch .active { background: var(--cfb-green); color: #fff; box-shadow: 0 7px 18px rgba(5, 150, 105, .25); }
.cfb-hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.cfb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--cfb-green-line);
  border-radius: 999px;
  color: var(--cfb-green-deep);
  background: var(--cfb-green-soft);
  font-size: .78rem;
  font-weight: 850;
}
.cfb-hero h1 { margin: 19px 0 17px; font-size: clamp(2.25rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.055em; }
.cfb-hero-lead { max-width: 760px; margin: 0 auto; color: #526177; font-size: clamp(1rem, 2vw, 1.22rem); }
.cfb-privacy-pill {
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #335146;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .07);
  font-size: .82rem;
  font-weight: 700;
}
.cfb-hero-points { margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; color: #475569; font-size: .84rem; font-weight: 700; }
.cfb-hero-points span::before { content: '✓'; margin-right: 6px; color: var(--cfb-green); font-weight: 900; }

.cfb-analyzer-section { padding: 42px 0 72px; background: linear-gradient(180deg, #f8fafc, #fff); }
.cfb-analyzer {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid #dbe3ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--cfb-shadow);
  overflow: hidden;
}
.cfb-analyzer-head { padding: 28px 30px 23px; border-bottom: 1px solid #e2e8f0; }
.cfb-step-label { color: var(--cfb-green-dark); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cfb-analyzer h2 { margin: 5px 0 5px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; }
.cfb-muted { margin: 0; color: #64748b; font-size: .9rem; }
.cfb-upload-area { padding: 26px 30px 30px; }
.cfb-dropzone {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 2px dashed #7dd3b1;
  border-radius: 22px;
  background: #f5fffa;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cfb-dropzone.is-dragging { border-color: var(--cfb-green); background: #e8fff5; transform: scale(1.005); }
.cfb-upload-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 19px; background: var(--cfb-green-soft); color: var(--cfb-green-dark); font-size: 29px; }
.cfb-dropzone strong { font-size: 1.08rem; }
.cfb-dropzone p { margin: 0; color: #64748b; font-size: .85rem; }
.cfb-btn {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cfb-btn:hover { transform: translateY(-1px); }
.cfb-btn-primary { background: var(--cfb-green); color: #fff; box-shadow: 0 9px 23px rgba(5, 150, 105, .22); }
.cfb-btn-primary:hover { background: var(--cfb-green-dark); }
.cfb-btn-secondary { border: 1px solid #a7f3d0; background: #fff; color: var(--cfb-green-dark); }
.cfb-btn-secondary:hover { background: var(--cfb-green-soft); }
.cfb-btn-orange { background: var(--cfb-orange); color: #fff; box-shadow: 0 10px 26px rgba(255, 138, 31, .28); }
.cfb-btn-orange:hover { background: var(--cfb-orange-dark); }
.cfb-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cfb-file-note { margin-top: 16px; color: #64748b; font-size: .78rem; text-align: center; }
.cfb-status { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: .86rem; }
.cfb-status.info { border: 1px solid #bae6fd; background: #f0f9ff; color: #0c4a6e; }
.cfb-status.error { border: 1px solid #fecaca; background: #fff1f2; color: #991b1b; }
.cfb-status.success { border: 1px solid var(--cfb-green-line); background: var(--cfb-green-soft); color: var(--cfb-green-deep); }
.cfb-loader { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff; border-radius: 50%; animation: cfb-spin .8s linear infinite; }
@keyframes cfb-spin { to { transform: rotate(360deg); } }

.cfb-review { padding: 26px 30px 32px; }
.cfb-review-note { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; color: #854d0e; font-size: .83rem; }
.cfb-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cfb-field { display: flex; flex-direction: column; gap: 6px; }
.cfb-field.span-2 { grid-column: span 2; }
.cfb-field.span-4 { grid-column: 1 / -1; }
.cfb-field label { color: #334155; font-size: .76rem; font-weight: 800; }
.cfb-field input,
.cfb-field select {
  width: 100%;
  min-height: 45px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  color: #0f172a;
  outline: none;
}
.cfb-field input:focus,
.cfb-field select:focus { border-color: var(--cfb-green); box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
.cfb-field small { color: #94a3b8; font-size: .67rem; }
.cfb-period-editor { margin: 22px 0; overflow-x: auto; border: 1px solid #dbe3ef; border-radius: 16px; }
.cfb-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .78rem; }
.cfb-table th { padding: 11px 9px; background: #f1f5f9; color: #475569; text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.cfb-table td { padding: 9px; border-top: 1px solid #e2e8f0; }
.cfb-table input { width: 100%; min-width: 78px; height: 39px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 7px; }
.cfb-review-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.cfb-results { padding: 0 0 76px; background: #fff; }
.cfb-result-head { padding: 38px 0 24px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; }
.cfb-result-head h2 { margin: 4px 0 0; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
.cfb-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cfb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.cfb-kpi { min-height: 128px; padding: 19px; border: 1px solid #dbe3ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, .055); }
.cfb-kpi span { display: block; color: #64748b; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cfb-kpi strong { display: block; margin-top: 8px; color: var(--cfb-navy); font-size: 1.62rem; line-height: 1.05; }
.cfb-kpi small { display: block; margin-top: 7px; color: #94a3b8; font-size: .71rem; }
.cfb-kpi.green { border-color: var(--cfb-green-line); background: var(--cfb-green-soft); }
.cfb-kpi.green strong { color: var(--cfb-green-deep); }
.cfb-result-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.cfb-panel { border: 1px solid #dbe3ef; border-radius: 20px; background: #fff; overflow: hidden; }
.cfb-panel-head { padding: 19px 20px; border-bottom: 1px solid #e2e8f0; }
.cfb-panel-head h3 { margin: 0; font-size: 1.08rem; }
.cfb-panel-head p { margin: 4px 0 0; color: #64748b; font-size: .77rem; }
.cfb-period-view { overflow-x: auto; }
.cfb-period-view .cfb-table td:first-child { font-weight: 900; color: var(--cfb-green-dark); }
.cfb-detected { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--cfb-green-soft); color: var(--cfb-green-deep); font-size: .62rem; font-weight: 850; }
.cfb-missing { color: #94a3b8; }
.cfb-insights { padding: 14px; display: grid; gap: 11px; }
.cfb-insight { padding: 14px 15px; border-radius: 14px; border: 1px solid #dbe3ef; background: #f8fafc; }
.cfb-insight strong { display: block; margin-bottom: 4px; font-size: .85rem; }
.cfb-insight p { margin: 0; color: #56657a; font-size: .76rem; }
.cfb-insight.high { border-color: #fed7aa; background: #fff7ed; }
.cfb-insight.medium { border-color: #fde68a; background: #fffbeb; }
.cfb-insight.good { border-color: var(--cfb-green-line); background: var(--cfb-green-soft); }
.cfb-data-quality { padding: 17px 20px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: .76rem; }
.cfb-priority {
  padding: 21px;
  border-radius: 20px;
  background: var(--cfb-navy);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}
.cfb-priority span { color: #86efac; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cfb-priority h3 { margin: 7px 0 8px; font-size: 1.45rem; }
.cfb-priority p { margin: 0; color: #cbd5e1; font-size: .8rem; }
.cfb-priority .cfb-btn { width: 100%; margin-top: 18px; }
.cfb-warning-box { margin-top: 14px; padding: 15px; border: 1px solid #dbe3ef; border-radius: 16px; background: #f8fafc; color: #5b687b; font-size: .75rem; }

.cfb-content { padding: 72px 0; background: #fff; }
.cfb-content.alt { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.cfb-section-head { max-width: 760px; margin: 0 auto 35px; text-align: center; }
.cfb-section-head h2 { margin: 6px 0 10px; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.035em; }
.cfb-section-head p { margin: 0; color: #64748b; }
.cfb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.cfb-info-card { padding: 22px; border: 1px solid #dbe3ef; border-radius: 18px; background: #fff; }
.cfb-info-card b { display: block; margin-bottom: 7px; font-size: 1rem; }
.cfb-info-card p { margin: 0; color: #64748b; font-size: .82rem; }
.cfb-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cfb-process article { position: relative; padding: 24px; border-radius: 19px; background: #fff; border: 1px solid #dbe3ef; }
.cfb-process i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cfb-green); color: #fff; font-style: normal; font-weight: 900; }
.cfb-process h3 { margin: 14px 0 6px; }
.cfb-process p { margin: 0; color: #64748b; font-size: .83rem; }
.cfb-faq { max-width: 850px; margin: 0 auto; display: grid; gap: 10px; }
.cfb-faq details { border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; overflow: hidden; }
.cfb-faq summary { padding: 16px 18px; font-weight: 850; cursor: pointer; }
.cfb-faq details p { margin: 0; padding: 0 18px 17px; color: #64748b; font-size: .84rem; }
.cfb-sources { max-width: 850px; margin: 30px auto 0; padding: 18px; border: 1px solid #dbe3ef; border-radius: 16px; background: #fff; color: #64748b; font-size: .78rem; }
.cfb-sources a { font-weight: 800; }

.cfb-footer { padding: 48px 0; background: var(--cfb-navy); color: #94a3b8; }
.cfb-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.cfb-footer-brand { min-width: 0; }
.cfb-footer-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.cfb-footer-brand .cfb-brand-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; box-shadow: none; }
.cfb-footer-brand-name { display: block; color: #fff; font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; }
.cfb-footer-brand-name em { color: #818cf8; font-style: normal; }
.cfb-footer strong { color: #fff; }
.cfb-footer p { max-width: 390px; margin: 8px 0 0; font-size: .76rem; line-height: 1.55; }
.cfb-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.cfb-footer a { color: #cbd5e1; font-size: .78rem; }

.cfb-floating-offer {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 45;
  min-height: 68px;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px 9px 11px;
  border: 4px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: var(--cfb-orange);
  color: #fff;
  box-shadow: 0 16px 40px rgba(237, 111, 0, .35);
  animation: cfb-heartbeat 2s ease-in-out infinite;
}
.cfb-floating-offer .icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 20px; }
.cfb-floating-offer .copy { text-align: left; }
.cfb-floating-offer strong { display: block; font-size: .9rem; line-height: 1.1; }
.cfb-floating-offer small { display: block; margin-top: 3px; font-size: .68rem; font-weight: 750; }
.cfb-floating-offer .arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); }
@keyframes cfb-heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 40px rgba(237, 111, 0, .32); }
  10% { transform: scale(1.035); }
  20% { transform: scale(1); }
  30% { transform: scale(1.025); }
  42% { transform: scale(1); box-shadow: 0 18px 46px rgba(237, 111, 0, .47); }
}

.cfb-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: max(18px, 4vh) 16px;
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(6px);
}
.cfb-modal-card { width: min(650px, 100%); margin: auto; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .32); overflow: hidden; }
.cfb-modal-head { padding: 22px 23px; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e2e8f0; }
.cfb-modal-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.cfb-modal-close { width: 40px; height: 40px; border: 1px solid #dbe3ef; border-radius: 50%; background: #fff; color: #475569; font-size: 1.25rem; }
.cfb-lead-form { padding: 22px 23px 25px; }
.cfb-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfb-consent { margin: 18px 0; display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: #475569; font-size: .76rem; }
.cfb-consent input { width: 18px; height: 18px; accent-color: var(--cfb-green); }
.cfb-form-message { margin-bottom: 14px; }
.cfb-lead-form .cfb-btn { width: 100%; }
.cfb-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }

.cfb-guide-hero { padding: 65px 0 48px; background: linear-gradient(180deg, #fff, #f0fdf7); border-bottom: 1px solid #dbe3ef; }
.cfb-guide-hero .cfb-container { max-width: 900px; }
.cfb-guide-hero h1 { margin: 12px 0 15px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.cfb-guide-hero p { color: #526177; font-size: 1.08rem; }
.cfb-guide { max-width: 900px; margin: 0 auto; padding: 56px 0 80px; }
.cfb-guide h2 { margin: 38px 0 12px; font-size: 1.6rem; line-height: 1.2; }
.cfb-guide h3 { margin: 25px 0 8px; font-size: 1.12rem; }
.cfb-guide p, .cfb-guide li { color: #526177; }
.cfb-guide table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .85rem; }
.cfb-guide th, .cfb-guide td { padding: 11px; border: 1px solid #dbe3ef; text-align: left; vertical-align: top; }
.cfb-guide th { background: #f1f5f9; }
.cfb-guide-callout { margin: 27px 0; padding: 20px; border: 1px solid var(--cfb-green-line); border-radius: 17px; background: var(--cfb-green-soft); }
.cfb-guide-cta { margin-top: 42px; padding: 28px; border-radius: 22px; background: var(--cfb-navy); color: #fff; text-align: center; }
.cfb-guide-cta p { color: #cbd5e1; }

@media (max-width: 900px) {
  .cfb-nav { display: none; }
  .cfb-form-grid { grid-template-columns: repeat(2, 1fr); }
  .cfb-field.span-4 { grid-column: 1 / -1; }
  .cfb-kpis { grid-template-columns: repeat(2, 1fr); }
  .cfb-result-grid { grid-template-columns: 1fr; }
  .cfb-card-grid, .cfb-process { grid-template-columns: 1fr; }
  .cfb-footer-inner { flex-direction: column; }
  .cfb-footer-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .cfb-container { width: min(100% - 22px, 1120px); }
  .cfb-header-inner { min-height: 68px; gap: 8px; }
  .cfb-header-actions { gap: 7px; }
  .cfb-language { padding: 7px 8px; font-size: .72rem; }
  .cfb-header-cta { min-height: 39px; padding: 8px 10px; font-size: .72rem; }
  .cfb-header-cta .wide { display: none; }
  .cfb-brand-icon { width: 38px; height: 38px; border-radius: 11px; }
  .cfb-brand-name { font-size: 1rem; }
  .cfb-brand-sub { font-size: .56rem; }
  .cfb-hero { padding: 38px 0 45px; }
  .cfb-mode-switch nav { width: 100%; border-radius: 18px; }
  .cfb-mode-switch a { min-height: 50px; padding: 8px; border-radius: 14px; font-size: .73rem; }
  .cfb-privacy-pill { border-radius: 14px; }
  .cfb-analyzer-section { padding: 24px 0 52px; }
  .cfb-analyzer { border-radius: 20px; }
  .cfb-analyzer-head, .cfb-upload-area, .cfb-review { padding-left: 17px; padding-right: 17px; }
  .cfb-dropzone { min-height: 218px; padding: 20px 14px; }
  .cfb-form-grid, .cfb-lead-grid { grid-template-columns: 1fr; }
  .cfb-field.span-2, .cfb-field.span-4 { grid-column: auto; }
  .cfb-result-head { align-items: flex-start; flex-direction: column; }
  .cfb-result-actions { width: 100%; }
  .cfb-result-actions .cfb-btn { flex: 1 1 100%; }
  .cfb-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cfb-kpi { min-height: 112px; padding: 15px; }
  .cfb-kpi strong { font-size: 1.28rem; }
  .cfb-content { padding: 52px 0; }
  .cfb-floating-offer { left: 8px; right: 8px; bottom: 8px; max-width: none; min-height: 64px; }
  .cfb-floating-offer strong { font-size: .8rem; }
  .cfb-modal { padding: 10px; }
  .cfb-modal-card { border-radius: 18px; }
  .cfb-guide { padding: 35px 0 65px; }
}

@media (max-width: 460px) {
  .cfb-brand-sub { display: none; }
  .cfb-header-cta { display: none; }
  .cfb-language {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 9px;
    font-size: .72rem;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .cfb-header, .cfb-floating-offer, .cfb-mode-switch, .cfb-footer, .cfb-result-actions { display: none !important; }
  body { background: #fff; }
  .cfb-results { padding: 0; }
  .cfb-panel, .cfb-kpi, .cfb-priority { break-inside: avoid; box-shadow: none; }
}

/* Ranking empresarial 3.0TD · catálogo versionado basado en fuentes oficiales */
.cfb-ranking-shell { margin: 28px 0 34px; padding: 26px; border: 1px solid #dbe3ef; border-radius: 24px; background: #fff; box-shadow: 0 16px 45px rgba(15, 23, 42, .07); }
.cfb-ranking-loading, .cfb-ranking-error { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #475569; text-align: center; }
.cfb-ranking-spinner { width: 22px; height: 22px; border: 3px solid #dbe3ef; border-top-color: var(--cfb-green); border-radius: 50%; animation: cfb-ranking-spin .8s linear infinite; }
@keyframes cfb-ranking-spin { to { transform: rotate(360deg); } }
.cfb-ranking-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.cfb-ranking-head h2 { margin: 8px 0 8px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.cfb-ranking-head p { margin: 0; max-width: 760px; color: #526177; }
.cfb-profile-quality { flex: 0 0 250px; padding: 14px 16px; border-radius: 16px; background: #f0fdf7; border: 1px solid #bbf7d0; }
.cfb-profile-quality strong, .cfb-profile-quality small { display: block; }
.cfb-profile-quality strong { color: #065f46; font-size: .82rem; line-height: 1.35; }
.cfb-profile-quality small { margin-top: 5px; color: #64748b; font-size: .7rem; }
.cfb-ranking-alert { margin: 12px 0; padding: 12px 14px; border-radius: 13px; border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; font-size: .79rem; font-weight: 700; }
.cfb-ranking-alert.info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.cfb-ranking-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 13px; }
.cfb-ranking-summary article { min-height: 106px; padding: 17px; border: 1px solid #e2e8f0; border-radius: 17px; background: #f8fafc; }
.cfb-ranking-summary article.saving { background: #ecfdf5; border-color: #a7f3d0; }
.cfb-ranking-summary article.negative { background: #fff7ed; border-color: #fed7aa; }
.cfb-ranking-summary span, .cfb-ranking-summary strong { display: block; }
.cfb-ranking-summary span { color: #64748b; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cfb-ranking-summary strong { margin-top: 8px; color: #0f172a; font-size: clamp(1.2rem, 2.3vw, 1.75rem); letter-spacing: -.03em; }
.cfb-ranking-summary .saving strong { color: #047857; }
.cfb-ranking-note { margin: 10px 0 18px; padding-left: 12px; border-left: 3px solid #94a3b8; color: #64748b; font-size: .77rem; line-height: 1.5; }
.cfb-ranking-list { display: grid; gap: 13px; }
.cfb-ranking-card { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 20px; border: 1px solid #dbe3ef; border-radius: 19px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cfb-ranking-card:hover { transform: translateY(-1px); box-shadow: 0 13px 34px rgba(15, 23, 42, .08); }
.cfb-ranking-card.is-best { border-color: #86efac; background: linear-gradient(135deg, #fff 0%, #f0fdf7 100%); box-shadow: 0 14px 38px rgba(5, 150, 105, .11); }
.cfb-ranking-card.is-best::before { content: 'MEJOR COSTE COMPARABLE'; position: absolute; top: -10px; right: 18px; padding: 5px 9px; border-radius: 999px; background: #047857; color: #fff; font-size: .58rem; font-weight: 900; letter-spacing: .05em; }
html[lang^="ca"] .cfb-ranking-card.is-best::before { content: 'MILLOR COST COMPARABLE'; }
.cfb-rank-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #0f172a; color: #fff; font-weight: 900; font-size: 1.08rem; }
.cfb-ranking-card.is-best .cfb-rank-number { background: #047857; }
.cfb-ranking-card-main { min-width: 0; }
.cfb-ranking-card-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.cfb-company { display: block; margin-bottom: 4px; color: #64748b; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.cfb-ranking-card h3 { margin: 0; font-size: 1.08rem; color: #0f172a; }
.cfb-ranking-price { min-width: 155px; text-align: right; }
.cfb-ranking-price strong, .cfb-ranking-price small { display: block; }
.cfb-ranking-price strong { color: #0f172a; font-size: 1.42rem; letter-spacing: -.03em; }
.cfb-ranking-price small { margin-top: 2px; color: #64748b; font-size: .67rem; }
.cfb-ranking-saving { display: inline-block; margin: 10px 0 0; padding: 7px 10px; border-radius: 10px; font-size: .73rem; font-weight: 850; }
.cfb-ranking-saving.positive { background: #dcfce7; color: #166534; }
.cfb-ranking-saving.negative { background: #ffedd5; color: #9a3412; }
.cfb-ranking-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.cfb-ranking-badges span { padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .64rem; font-weight: 800; }
.cfb-ranking-badges span.green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cfb-ranking-breakdown { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; color: #64748b; font-size: .73rem; }
.cfb-ranking-breakdown b { color: #334155; }
.cfb-ranking-source { margin-top: 11px; color: #64748b; font-size: .65rem; }
.cfb-ranking-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.cfb-ranking-actions .cfb-btn { min-height: 42px; padding: 9px 13px; font-size: .7rem; }
.cfb-unranked { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 15px; }
.cfb-unranked summary { cursor: pointer; color: #334155; font-size: .82rem; font-weight: 850; }
.cfb-unranked > p { color: #64748b; font-size: .74rem; }
.cfb-unranked-item { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px dashed #e2e8f0; }
.cfb-unranked-item strong { color: #334155; font-size: .76rem; }
.cfb-unranked-item p { margin: 4px 0 0; color: #64748b; font-size: .7rem; }
.cfb-unranked-item a { flex: 0 0 auto; color: #047857; font-size: .7rem; font-weight: 800; }
.cfb-ranking-method { margin-top: 17px; padding: 13px 14px; border-radius: 13px; background: #f8fafc; color: #64748b; font-size: .7rem; line-height: 1.5; }
.cfb-ranking-method a { color: #047857; font-weight: 850; }
.cfb-ranking-empty { padding: 24px; border-radius: 14px; background: #f8fafc; color: #64748b; text-align: center; }

@media (max-width: 760px) {
  .cfb-ranking-shell { padding: 18px 14px; border-radius: 19px; }
  .cfb-ranking-head { display: block; }
  .cfb-profile-quality { margin-top: 14px; }
  .cfb-ranking-summary { grid-template-columns: 1fr; }
  .cfb-ranking-summary article { min-height: 84px; }
  .cfb-ranking-card { grid-template-columns: 38px 1fr; gap: 10px; padding: 17px 13px; }
  .cfb-rank-number { width: 36px; height: 36px; border-radius: 11px; }
  .cfb-ranking-card-top { display: block; }
  .cfb-ranking-price { margin-top: 10px; text-align: left; }
  .cfb-ranking-actions { display: grid; grid-template-columns: 1fr; }
  .cfb-ranking-actions .cfb-btn { width: 100%; }
  .cfb-unranked-item { display: block; }
  .cfb-unranked-item a { display: inline-block; margin-top: 7px; }
}
.cfb-ranking-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.cfb-ranking-filters label { display: grid; grid-template-columns: 20px auto; column-gap: 9px; align-items: center; padding: 10px 13px; border: 1px solid #bbf7d0; border-radius: 13px; background: #f0fdf7; color: #065f46; cursor: pointer; }
.cfb-ranking-filters input { width: 18px; height: 18px; margin: 0; accent-color: #047857; }
.cfb-ranking-filters span { font-size: .75rem; font-weight: 850; }
.cfb-ranking-filters small { grid-column: 2; margin-top: 2px; color: #64748b; font-size: .63rem; }
