:root {
  --cpb-bg: #f5f6f3;
  --cpb-surface: #ffffff;
  --cpb-surface-2: #f0f1ed;
  --cpb-ink: #111111;
  --cpb-muted: #666b73;
  --cpb-soft: #a3a8b0;
  --cpb-line: #e4e6e0;
  --cpb-line-strong: #d2d6ce;
  --cpb-accent: #111111;
  --cpb-accent-soft: #eceee8;
  --cpb-accent-ink: #111111;
  --cpb-radius-xl: 30px;
  --cpb-radius-lg: 22px;
  --cpb-radius-md: 15px;
  --cpb-shadow: 0 18px 50px rgba(17, 24, 39, .07);
  --cpb-shadow-soft: 0 10px 30px rgba(17, 24, 39, .05);
  --cpb-max: 1160px;
}

.cpb-wrap,
.cpb-public-page,
.cpb-dashboard-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cpb-ink);
  letter-spacing: -0.015em;
}
.cpb-wrap *,
.cpb-public-page *,
.cpb-dashboard-shell * { box-sizing: border-box; }
.cpb-wrap a,
.cpb-public-page a { color: inherit; text-decoration: none; }
.cpb-wrap img,
.cpb-public-page img { max-width: 100%; height: auto; }
.cpb-wrap {
  width: min(100%, var(--cpb-max));
  margin: 0 auto;
  padding: 48px 22px;
}
.cpb-wrap h1,
.cpb-public-page h1,
.cpb-wrap h2,
.cpb-public-page h2,
.cpb-wrap h3,
.cpb-public-page h3 {
  margin: 0;
  color: var(--cpb-ink);
  letter-spacing: -.055em;
}
.cpb-wrap h1,
.cpb-public-page h1 { font-size: clamp(46px, 7vw, 88px); line-height: .94; }
.cpb-wrap h2,
.cpb-public-page h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1; }
.cpb-wrap h3,
.cpb-public-page h3 { font-size: 24px; line-height: 1.08; }
.cpb-wrap p,
.cpb-public-page p { color: var(--cpb-muted); line-height: 1.6; }

.cpb-eyebrow,
.cpb-section-label,
.cpb-section-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--cpb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cpb-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.cpb-section-label { margin-bottom: 14px; }

.cpb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--cpb-ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.cpb-btn:hover { transform: translateY(-1px); }
.cpb-btn-primary { background: var(--cpb-ink); color: #fff; border-color: var(--cpb-ink); }
.cpb-btn-primary:hover { background: #000; color: #fff; }
.cpb-btn-secondary { background: #fff; color: var(--cpb-ink); border-color: var(--cpb-line-strong); }
.cpb-btn-secondary:hover { border-color: var(--cpb-ink); }
.cpb-btn-locked { background: #f4f4f2; color: #8a8f98; border-color: var(--cpb-line); cursor: not-allowed; }
.cpb-actions,
.cpb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.cpb-card,
.cpb-auth-card {
  background: var(--cpb-surface);
  border: 1px solid var(--cpb-line);
  border-radius: var(--cpb-radius-lg);
  padding: 26px;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-grid { display: grid; gap: 16px; }
.cpb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Landing */
.cpb-landing-v2 { padding-top: 34px; }
.cpb-saas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--cpb-line);
  border-radius: var(--cpb-radius-xl);
  background: var(--cpb-surface);
  box-shadow: var(--cpb-shadow);
}
.cpb-saas-hero h1 { max-width: 780px; margin-top: 16px; }
.cpb-saas-hero p { max-width: 650px; margin: 20px 0 0; font-size: 18px; }
.cpb-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.cpb-hero-kpis span {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--cpb-line);
  border-radius: 18px;
  background: #fafaf8;
  color: var(--cpb-muted);
  font-size: 13px;
  font-weight: 750;
}
.cpb-hero-kpis strong { display: block; margin-bottom: 4px; color: var(--cpb-ink); font-size: 28px; line-height: 1; letter-spacing: -.06em; }
.cpb-template-stack-preview {
  position: relative;
  min-height: 390px;
  border-radius: 26px;
  background: #f3f4f0;
  border: 1px solid var(--cpb-line);
  overflow: hidden;
}
.stack-card {
  position: absolute;
  left: 28px;
  right: 28px;
  min-height: 108px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  background: #fff;
  color: var(--cpb-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.055em;
  box-shadow: 0 14px 34px rgba(17,24,39,.08);
}
.stack-card-one { top: 52px; z-index: 3; }
.stack-card-two { top: 146px; left: 54px; z-index: 2; background: #111; color: #fff; }
.stack-card-three { top: 240px; right: 54px; z-index: 1; background: #fff7ed; }
.cpb-public-section {
  width: min(100%, var(--cpb-max));
  margin: 0 auto;
  padding: 62px 22px;
}
.cpb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 26px;
  margin-bottom: 24px;
}
.cpb-section-head h2 { max-width: 760px; }
.cpb-template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cpb-template-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--cpb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-template-thumb {
  position: relative;
  height: 138px;
  border-radius: 18px;
  background: var(--t-bg, #f4f4f2);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  color: var(--t-ink, #111);
}
.cpb-template-thumb:before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.44);
}
.cpb-template-thumb span {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--t-accent, #111);
}
.cpb-template-thumb strong,
.cpb-template-thumb i,
.cpb-template-thumb b {
  position: absolute;
  left: 24px;
  right: 24px;
  display: block;
  border-radius: 999px;
  background: var(--t-ink, #111);
}
.cpb-template-thumb strong { bottom: 50px; height: 12px; opacity: .86; }
.cpb-template-thumb i { bottom: 32px; right: 48px; height: 8px; opacity: .36; }
.cpb-template-thumb b { bottom: 18px; height: 9px; background: var(--t-accent, #111); }
.cpb-template-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cpb-surface-2);
  color: var(--cpb-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cpb-template-card h3 { margin: 10px 0 6px; font-size: 24px; }
.cpb-template-card p { margin: 0 0 7px; }
.cpb-template-card small { color: var(--cpb-muted); font-weight: 700; }

/* Auth */
.cpb-auth-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  align-items: center;
}
.cpb-auth-card { max-width: 980px; margin: 0 auto; }
.cpb-auth-card h1 { margin-top: 14px; }
.cpb-auth-card > p { max-width: 680px; font-size: 18px; }
.cpb-auth-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--cpb-line);
  border-radius: 20px;
  background: #fafaf8;
}
.cpb-auth-form h3 { margin-bottom: 4px; }
.cpb-auth-form label,
.cpb-lead-form label {
  display: grid;
  gap: 7px;
  color: #444951;
  font-size: 13px;
  font-weight: 800;
}
.cpb-auth-form input,
.cpb-lead-form input,
.cpb-lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cpb-line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--cpb-ink);
  padding: 12px 13px;
  font: inherit;
  outline: none;
}
.cpb-auth-form input:focus,
.cpb-lead-form input:focus,
.cpb-lead-form textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.cpb-notice { margin: 16px 0; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.cpb-notice-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }

/* Public creator pages */
body.cpb-public-body {
  margin: 0;
  background: var(--cpb-bg);
  color: var(--cpb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.cpb-public-page { min-height: 100vh; overflow: hidden; }
.cpb-template-hero {
  width: min(100%, var(--cpb-max));
  margin: 30px auto 0;
  padding: clamp(26px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--cpb-line);
  border-radius: var(--cpb-radius-xl);
  background: var(--cpb-surface);
  box-shadow: var(--cpb-shadow);
}
.cpb-template-hero h1 { margin-top: 16px; }
.cpb-template-hero p { max-width: 680px; font-size: 18px; }
.cpb-public-title { color: var(--cpb-ink) !important; font-size: 20px; font-weight: 800; }
.cpb-public-bio { font-size: 18px; }
.cpb-location { color: var(--cpb-muted); font-weight: 750; }
.cpb-social-row,
.cpb-chip-row,
.cpb-addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.cpb-social-row a,
.cpb-chip-row span,
.cpb-addon-list span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--cpb-line);
  border-radius: 999px;
  background: #fff;
  color: #252930;
  font-size: 13px;
  font-weight: 800;
}
.cpb-addon-list strong { align-self: center; margin-right: 4px; }
.cpb-avatar-large {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--cpb-accent-soft);
  color: var(--cpb-accent-ink);
  font-size: 52px;
  font-weight: 900;
}
.cpb-featured-offer,
.cpb-beauty-profile-card,
.cpb-fashion-panel,
.cpb-review-product-card,
.cpb-local-offer-card,
.cpb-local-map-card,
.cpb-tech-window,
.cpb-travel-ticket,
.cpb-performance-board,
.cpb-wellness-offer,
.cpb-fashion-offer,
.cpb-performance-offer {
  border: 1px solid var(--cpb-line);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-featured-offer span,
.cpb-review-product-card span,
.cpb-local-offer-card span,
.cpb-local-map-card span,
.cpb-travel-ticket span,
.cpb-tech-window span,
.cpb-price-card span,
.cpb-case-card span {
  display: block;
  color: var(--cpb-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.cpb-featured-offer strong,
.cpb-review-product-card strong,
.cpb-local-offer-card strong,
.cpb-local-map-card strong,
.cpb-travel-ticket strong,
.cpb-tech-window strong {
  display: block;
  margin-top: 10px;
  color: var(--cpb-ink);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.cpb-metrics-grid {
  width: min(100%, var(--cpb-max));
  margin: 14px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cpb-metric {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--cpb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-metric strong { display: block; color: var(--cpb-ink); font-size: 36px; line-height: 1; letter-spacing: -.07em; }
.cpb-metric span { display: block; margin-top: 7px; color: var(--cpb-muted); font-size: 13px; font-weight: 750; }
.cpb-service-grid,
.cpb-price-grid,
.cpb-case-grid,
.cpb-testimonial-grid,
.cpb-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cpb-service-card,
.cpb-price-card,
.cpb-case-card,
.cpb-testimonial-grid blockquote,
.cpb-contact-card {
  margin: 0;
  border: 1px solid var(--cpb-line);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-service-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cpb-accent-soft);
  color: var(--cpb-accent-ink);
  font-weight: 900;
}
.cpb-service-card h3 { margin: 14px 0 8px; }
.cpb-price-card strong { display: block; margin-top: 8px; font-size: 34px; line-height: 1; letter-spacing: -.07em; }
.cpb-portfolio-grid img,
.cpb-portfolio-grid video,
.cpb-portfolio-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--cpb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-portfolio-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, #fff, var(--cpb-accent-soft));
}
.cpb-portfolio-placeholder span { color: var(--cpb-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.cpb-portfolio-placeholder strong { font-size: 40px; line-height: 1; letter-spacing: -.075em; }
.cpb-case-card h3 { margin: 10px 0 8px; }
.cpb-testimonial-grid p { margin-top: 0; color: var(--cpb-ink); font-size: 19px; }
.cpb-testimonial-grid cite { color: var(--cpb-muted); font-style: normal; font-weight: 800; }
.cpb-faq-list { display: grid; gap: 10px; }
.cpb-faq-list details {
  border: 1px solid var(--cpb-line);
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-faq-list summary { cursor: pointer; font-weight: 900; }
.cpb-faq-list p { margin-bottom: 0; }
.cpb-contact-card {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 26px;
  align-items: start;
}
.cpb-lead-form { display: grid; gap: 12px; }
.cpb-powered { padding: 28px 22px; text-align: center; color: var(--cpb-muted); font-size: 13px; font-weight: 800; }
.cpb-ad-slot { width: min(100%, var(--cpb-max)); margin: 18px auto 0; padding: 0 22px; text-align: center; }
.cpb-ad-slot img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--cpb-line); }
.cpb-ad-slot span { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 13px 18px; border: 1px dashed var(--cpb-line-strong); border-radius: 16px; color: var(--cpb-muted); font-weight: 750; }
.cpb-link-list { display: grid; gap: 10px; }
.cpb-link-list a { padding: 14px 16px; border: 1px solid var(--cpb-line); border-radius: 16px; background: #fff; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 980px) {
  .cpb-saas-hero,
  .cpb-template-hero,
  .cpb-contact-card { grid-template-columns: 1fr; }
  .cpb-template-stack-preview { min-height: 320px; }
  .cpb-template-gallery { grid-template-columns: 1fr; }
  .cpb-service-grid,
  .cpb-price-grid,
  .cpb-case-grid,
  .cpb-testimonial-grid,
  .cpb-portfolio-grid,
  .cpb-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpb-section-head { display: block; }
  .cpb-section-head h2 { margin-top: 12px; }
}
@media (max-width: 700px) {
  .cpb-wrap,
  .cpb-public-section,
  .cpb-template-hero { padding-left: 16px; padding-right: 16px; }
  .cpb-wrap { padding-top: 32px; padding-bottom: 40px; }
  .cpb-saas-hero { padding: 24px; border-radius: 22px; }
  .cpb-template-hero { margin-top: 14px; border-radius: 22px; }
  .cpb-template-gallery,
  .cpb-template-card,
  .cpb-hero-kpis,
  .cpb-service-grid,
  .cpb-price-grid,
  .cpb-case-grid,
  .cpb-testimonial-grid,
  .cpb-portfolio-grid,
  .cpb-metrics-grid,
  .cpb-grid-2,
  .cpb-grid-3 { grid-template-columns: 1fr; }
  .cpb-template-card { align-items: start; }
  .cpb-template-thumb { height: 180px; }
  .cpb-template-stack-preview { display: none; }
  .cpb-btn { width: 100%; }
  .cpb-metrics-grid { margin-top: 10px; padding-left: 16px; padding-right: 16px; }
  .cpb-public-section { padding-top: 42px; padding-bottom: 42px; }
  .cpb-auth-form { padding: 14px; }
}

/* v4 pricing cards */
.cpb-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cpb-plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--cpb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--cpb-shadow-soft);
}
.cpb-plan-card.is-featured { border-color: #111827; box-shadow: 0 18px 44px rgba(15, 23, 42, .09); }
.cpb-plan-card > span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cpb-surface-2);
  color: var(--cpb-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.cpb-plan-card h3 { margin: 0; }
.cpb-plan-card strong { font-size: 30px; line-height: 1; letter-spacing: -.06em; }
.cpb-plan-card p { margin: 0; }
.cpb-plan-card .cpb-btn { margin-top: auto; }
@media (max-width: 900px) { .cpb-plan-grid { grid-template-columns: 1fr; } }
