/* Creator MAX — aescripts product page stylesheet.
   Host this file at a public https URL (plan: https://bielfor.com/cm/aescripts.css)
   and it is pulled in by the <link> tag inside the hero Raw HTML block.
   Everything is scoped under .cmax so it cannot leak into the storefront. */

.cmax { font-family: "itc-avant-garde-gothic-pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #090909; margin: 0 auto; }
/* the portal sanitizer strips min()/clamp() from inline styles — all image sizing lives here */
.cmax img { max-width: 100%; height: auto; }
.cmax-slide > img:not(.cmax-hero-liquid) { width: min(340px, 70%); }
/* slides run the full width of the description area (matching native video rows);
   inner content stays in a readable centered column */
.cmax-slide > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.cmax * { box-sizing: border-box; list-style: none !important; }
.cmax *::marker { content: none; }

/* slides: dark sections are rounded black cards, light sections plain */
.cmax-slide { padding: 64px clamp(28px, 5vw, 80px); }
.cmax-slide.cmax-dark { padding: 72px clamp(40px, 7vw, 96px); }
.cmax-dark { background: #090909; color: #fff; border-radius: 24px; }
.cmax-slide:not(.cmax-dark) { background: #fff; border-radius: 24px; }
.cmax-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; opacity: .55; margin-bottom: 18px; }
.cmax h1, .cmax .cmax-h1 { font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1.06; margin: 0; }
.cmax h2, .cmax .cmax-h2 { font-size: 32px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 14px; }
.cmax .cmax-lead { font-size: 16.5px; line-height: 1.55; color: #6b6b70; max-width: 680px; margin: 0; }
.cmax-dark .cmax-lead { color: #a8a8b0; }
.cmax-center { text-align: center; }
.cmax-center .cmax-lead { margin-left: auto !important; margin-right: auto !important; }

/* hero */
.cmax-hero-creator { font-size: 26px; letter-spacing: .55em; text-indent: .55em; font-weight: 500; color: #e8e8ee; display: block; margin-bottom: 2px; }
.cmax-hero-liquid { width: min(480px, 82%); height: auto; display: block; margin: 6px auto 0; }
.cmax-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.cmax-chips span, .cmax-chips .cmax-chip { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #2c2c30; border-radius: 999px; padding: 7px 13px; color: #c9c9d2; }

/* grids and cards */
.cmax-grid { display: grid; gap: 14px; }
.cmax-g2 { grid-template-columns: repeat(2, 1fr); }
.cmax-g3 { grid-template-columns: repeat(3, 1fr); }
.cmax-g4 { grid-template-columns: repeat(4, 1fr); }
.cmax-card { background: #f6f6f7; border: 1px solid #e6e6ea; border-radius: 16px; padding: 20px; }
.cmax-dark .cmax-card { background: #131316; border-color: #242428; }
.cmax-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.cmax-card p { font-size: 13px; line-height: 1.5; color: #6b6b70; margin: 0; }
.cmax-dark .cmax-card p { color: #a8a8b0; }
.cmax-card img { width: 100%; height: auto; margin-top: 14px; }
.cmax-prov { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #0013B1; font-weight: 600; margin-bottom: 10px; display: block; }
.cmax-dark .cmax-prov { color: #4D64FF; }
.cmax-num { font-size: 11px; color: #0013B1; font-weight: 600; letter-spacing: .14em; margin-bottom: 12px; display: block; }
.cmax-dark .cmax-num { color: #4D64FF; }
.cmax-sechead { margin-bottom: 36px; }

/* checklist */
.cmax-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin-top: 24px; }
.cmax-checks div { font-size: 14px; line-height: 1.45; padding-left: 24px; position: relative; }
.cmax-checks div:before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid #4D64FF; border-bottom: 2px solid #4D64FF; transform: rotate(-45deg); }

/* ================= feature showcase (radio tabs, no JS) ================= */
.cmax-fs input.cmax-fs-r { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; margin: 0; }
.cmax-fs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: center; }
.cmax-fs label.cmax-fs-item { display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  border: 1px solid #e6e6ea; background: #f6f6f7; border-radius: 14px; padding: 12px 16px; transition: border-color .2s, background .2s; }
.cmax-fs label.cmax-fs-item:hover { border-color: #c9c9d2; }
.cmax-fs-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.cmax-fs-item-d { font-size: 12.5px; color: #6b6b70; line-height: 1.45; }
.cmax-fs-glyph { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .35; flex-shrink: 0; }
.cmax-fs-stage { position: relative; height: 640px; }
.cmax-fs-shot { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%;
  opacity: 0; transition: opacity .35s ease; }
.cmax-fs-shot.cmax-s1 { opacity: 1; } /* default; overridden via :has when another tab is on */
.cmax-fs:has(.cmax-fs-item:nth-of-type(2) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(3) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(4) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(5) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(6) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(7) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(8) input:checked) .cmax-s1 { opacity: 0; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(1) input:checked) .cmax-s1 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(2) input:checked) .cmax-s2 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(3) input:checked) .cmax-s3 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(4) input:checked) .cmax-s4 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(5) input:checked) .cmax-s5 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(6) input:checked) .cmax-s6 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(7) input:checked) .cmax-s7 { opacity: 1; }
.cmax-fs:has(.cmax-fs-item:nth-of-type(8) input:checked) .cmax-s8 { opacity: 1; }
.cmax-fs label.cmax-fs-item:has(input:checked) { border-color: #090909; background: #efeff4; }
.cmax-fs label.cmax-fs-item:has(input:checked) .cmax-fs-glyph { opacity: 1; color: #0013B1; }
.cmax-fs-list { display: flex; flex-direction: column; gap: 10px; }

/* ================= FAQ (checkbox accordion, no JS) ================= */
.cmax-faq { max-width: 820px; }
.cmax-faq input.cmax-q { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; margin: 0; }
.cmax-faq .cmax-qa { border-bottom: 1px solid #e6e6ea; }
.cmax-faq label.cmax-qq { display: flex; justify-content: space-between; gap: 12px; padding: 18px 4px;
  font-size: 15.5px; font-weight: 600; cursor: pointer; }
.cmax-faq label.cmax-qq:after { content: "+"; color: #0013B1; font-weight: 400; }
.cmax-faq .cmax-qbody { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.cmax-faq .cmax-qbody p { margin: 0 0 16px; padding: 0 4px; font-size: 14px; line-height: 1.55; color: #6b6b70; max-width: 760px; }
.cmax-qa:has(label input:checked) .cmax-qbody { max-height: 400px; }
.cmax-qa:has(label input:checked) label.cmax-qq:after { content: "\2013"; }

/* legal */
.cmax-legal { font-size: 11px; line-height: 1.6; color: #6f6f78; max-width: 560px; margin: 32px auto 0; }

/* mobile */
@media (max-width: 880px) {
  .cmax-g2, .cmax-g3, .cmax-g4, .cmax-checks { grid-template-columns: 1fr; }
  .cmax h1, .cmax .cmax-h1 { font-size: 34px; }
  .cmax-slide { padding: 44px 26px; }
  .cmax-slide.cmax-dark { padding: 48px 30px; }
  .cmax-fs-grid { grid-template-columns: 1fr; gap: 20px; }
  .cmax-fs-list { flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
  .cmax-fs label.cmax-fs-item { flex-shrink: 0; border-radius: 999px; padding: 8px 14px; }
  .cmax-fs-item-top { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
  .cmax-fs-item-d, .cmax-fs-glyph { display: none; }
  .cmax-fs-stage { height: 480px; }
}

/* page-level rhythm (this stylesheet only loads on the Creator MAX page):
   space out builder rows and align native video blocks with the slides */
div[id^="row-"] { margin-bottom: 48px; gap: 48px !important; }
div[id^="row-"] video { width: min(880px, 100%); margin: 48px auto; display: block;
  border-radius: 24px; background: #090909; }

/* direct children of a slide must stay in the centered column even when their
   own margin rules (h1/h2 margin:0) fire later in the cascade */
.cmax-slide > h1, .cmax-slide > h2, .cmax-slide > p, .cmax-slide > img, .cmax-slide > div {
  margin-left: auto !important; margin-right: auto !important; }

/* Features grid: 8 cards, 2 per row; cards white to match the animation background */
.cmax-feat8 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cmax-feat8 .cmax-card { background: #fff; }
.cmax-feat8 .cmax-card h3 { font-size: 19px; }
.cmax-feat8 .cmax-card p { font-size: 14px; }
@media (max-width: 640px) { .cmax-feat8 { grid-template-columns: 1fr; } }
/* FAQ centered column */
.cmax-faq { max-width: none; }
.cmax-faq .cmax-sechead, .cmax-faq .cmax-qa { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }
/* BYOK 2-col: wide gap and a subtle divider between the columns */
.cmax-slide .cmax-grid.cmax-g2 { align-items: start; gap: 72px !important; }
.cmax-slide .cmax-grid.cmax-g2 > div + div { border-left: 1px solid #26262b; padding-left: 72px; }
@media (max-width: 880px) {
  .cmax-slide .cmax-grid.cmax-g2 { gap: 40px !important; }
  .cmax-slide .cmax-grid.cmax-g2 > div + div { border-left: none; padding-left: 0;
    border-top: 1px solid #26262b; padding-top: 40px; }
}

/* ================= card hovers (models, how-it-works, made-for) ================= */
.cmax-card:has(.cmax-prov), .cmax-card:has(.cmax-num), .cmax-card.cmax-ic {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.cmax-slide:not(.cmax-dark) .cmax-card:has(.cmax-prov):hover,
.cmax-slide:not(.cmax-dark) .cmax-card:has(.cmax-num):hover,
.cmax-slide:not(.cmax-dark) .cmax-card.cmax-ic:hover {
  transform: translateY(-4px); border-color: #0013B1; box-shadow: 0 14px 30px rgba(9, 9, 9, .10); }
.cmax-card .cmax-prov, .cmax-card .cmax-num { transition: color .25s ease; }
.cmax-card:has(.cmax-prov):hover .cmax-prov, .cmax-card:has(.cmax-num):hover .cmax-num { color: #4D64FF; }
@media (prefers-reduced-motion: reduce) {
  .cmax-card:has(.cmax-prov):hover, .cmax-card:has(.cmax-num):hover, .cmax-card.cmax-ic:hover { transform: none; }
}

/* ================= CSS-mask icons (sanitizer strips <svg>; drawn from the stylesheet) ================= */
.cmax-ic::before, .cmax-ih::before { content: ""; display: block; width: 22px; height: 22px; margin-bottom: 12px;
  background: #0013B1;
  -webkit-mask-image: var(--ic); mask-image: var(--ic);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.cmax-card.cmax-ic { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.cmax-ic:hover::before { background: #4D64FF; }
.cmax-dark .cmax-ih::before { background: #4D64FF; width: 24px; height: 24px; margin-bottom: 14px; }
.cmax-ic-designers { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z'/%3E%3Cpath d='m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18'/%3E%3Cpath d='m2.3 2.3 7.286 7.286'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E"); }
.cmax-ic-photographers { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); }
.cmax-ic-retouchers { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08'/%3E%3Cpath d='M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z'/%3E%3C/svg%3E"); }
.cmax-ic-concept { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='%23000'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='%23000'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='%23000'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='%23000'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.563-5.554C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E"); }
.cmax-ic-ecom { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.cmax-ic-social { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' x2='15.42' y1='13.51' y2='17.49'/%3E%3Cline x1='15.41' x2='8.59' y1='6.51' y2='10.49'/%3E%3C/svg%3E"); }
.cmax-ic-marketing { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v16a2 2 0 0 0 2 2h16'/%3E%3Cpath d='M13 17V9'/%3E%3Cpath d='M18 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E"); }
.cmax-ic-more { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3Cpath d='M20 3v4'/%3E%3Cpath d='M22 5h-4'/%3E%3C/svg%3E"); }
.cmax-ih-key { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='%23000'/%3E%3C/svg%3E"); }
.cmax-ih-req { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 2 2 4-4'/%3E%3Cpath d='m3 7 2 2 4-4'/%3E%3Cpath d='M13 6h8'/%3E%3Cpath d='M13 12h8'/%3E%3Cpath d='M13 18h8'/%3E%3C/svg%3E"); }

/* hero chips: strict 2x2 grid on narrow viewports (always two lines) */
@media (max-width: 780px) {
  .cmax-chips { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: center; gap: 10px; }
  .cmax-chips .cmax-chip { text-align: center; white-space: nowrap; }
}
@media (max-width: 420px) {
  .cmax-chips { gap: 8px; }
  .cmax-chips .cmax-chip { font-size: 9.5px; padding: 6px 9px; letter-spacing: .04em; }
}

/* live feature showcase (bielfor.com /cm/showcase in the builder's embed block):
   self-contained white card, header lives inside the page */
div[id^="row-"] iframe[src*="bielfor.com"] { display: block; width: 100%; height: 920px;
  border: 0; margin: 0 auto 48px; background: #fff; border-radius: 24px; }
/* vimeo demo player — full hero width; video is 4096x2160 (~1.9:1), match it so the
   Vimeo player fills the frame with no letterbox (padding:75% in the paste was wrong) */
div[id^="row-"] iframe[src*="player.vimeo.com"] { display: block; width: 100%; height: auto;
  aspect-ratio: 4096 / 2160; border: 0; border-radius: 24px; margin: 48px auto; background: #090909; }
.cmax-tryhdr .cmax-slide { padding-bottom: 20px; }
@media (max-width: 640px) {
  div[id^="row-"] iframe[src*="bielfor.com"], .cmax-tryhdr { display: none; }
}

/* marker: v28-vimeo-wide */
