/* "Your brand on every page" + "On your own domain" (inc/corp-brand.php) and the home page's For companies slide.
   The visual is a 4:3 stage sized by container units, so it fits a fixed-height slide and a free-height panel alike. */

/* ---- the visual: a browser typing the company domain, a phone in front ---- */
.cb-vis { container-type: size; position: relative; width: 100%; height: 100%; min-width: 0; }
.cb-stage { container-type: inline-size; position: relative; width: min(100cqw, 133.33cqh); aspect-ratio: 4 / 3; margin: 0 auto; top: 50%; transform: translateY(-50%); }
.cb-win { position: absolute; top: 3%; left: 0; width: 84%; margin: 0; overflow: hidden; border-radius: 1.6cqw; background: #eef1f4; box-shadow: 0 2.4cqw 6cqw rgba(5, 12, 20, .32), 0 0 0 1px rgba(255, 255, 255, .06); }
.cb-bar { display: flex; align-items: center; gap: 2cqw; height: 6.6cqw; padding: 0 2cqw; background: #e3e7ec; }
.cb-dots { display: flex; gap: .9cqw; flex: none; }
.cb-dots i { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: #c3c9d1; }
.cb-dots i:first-child { background: #ff6159; } .cb-dots i:nth-child(2) { background: #ffbd2e; } .cb-dots i:nth-child(3) { background: #28c941; }
.cb-url { display: flex; align-items: center; flex: 1; min-width: 0; height: 4.4cqw; padding: 0 2cqw; border-radius: 99px; background: #fff; color: #1d2733; font: 500 2.3cqw/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.cb-url svg { flex: none; width: 1.9cqw; height: 1.9cqw; margin-right: 1.1cqw; color: #2f8a57; }
.cb-host { font-weight: 650; }
.cb-path { color: #6b7684; }
.cb-caret { display: none; width: 1.5px; height: 2.6cqw; margin-left: 1px; background: #1d2733; }
.cb-vis.is-typing .cb-caret { display: inline-block; animation: cb-blink .9s steps(1) infinite; }
.cb-screen { position: relative; overflow: hidden; }
.cb-win .cb-screen { aspect-ratio: 1440 / 900; background: #1c2a36; }
.cb-phone .cb-screen { aspect-ratio: 430 / 820; border-radius: 3.4cqw; background: #1c2a36; }
.cb-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .9s ease; }
.cb-slide.on { opacity: 1; }
.cb-phone { position: absolute; right: 0; bottom: 0; width: 27%; margin: 0; padding: 4.6cqw 1.1cqw 2.4cqw; border-radius: 4.4cqw; background: #0d1116; box-shadow: 0 2.6cqw 6cqw rgba(5, 12, 20, .42), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cb-phone::before { content: ""; position: absolute; top: 1.5cqw; left: 50%; z-index: 1; width: 7cqw; height: 1.9cqw; border-radius: 99px; background: #232a33; transform: translateX(-50%); }
/* a tag under the logo in the site's top bar */
.cb-callout { position: absolute; top: 17.5%; left: 6.4%; z-index: 2; padding: .9cqw 1.9cqw; border-radius: 99px; background: #ff5a5f; color: #fff; font: 700 1.9cqw/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .25); }
.cb-callout::before { content: ""; position: absolute; top: -.9cqw; left: 3.2cqw; border: 1cqw solid transparent; border-top: 0; border-bottom-color: #ff5a5f; }
/* motion: the phone rises in, the tag pops once the domain is typed (only after the script has armed it) */
.cb-vis.is-wait .cb-callout { opacity: 0; transform: translateY(6px); }
.cb-vis.is-typed .cb-callout { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.cb-vis.is-wait .cb-phone { opacity: 0; transform: translateY(5%); }
.cb-vis.is-typing .cb-phone, .cb-vis.is-typed .cb-phone { opacity: 1; transform: none; transition: opacity .6s ease .2s, transform .6s ease .2s; }
@keyframes cb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cb-vis * { transition: none !important; animation: none !important; } }

/* ---- the section on the corporate pages ---- */
.cb-sec { scroll-margin-top: calc(var(--nav-h, 64px) - 8px); }
.cb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.cb .cb-vis { height: auto; aspect-ratio: 4 / 3; }
.cb .fx-tag { background: #ff5a5f; color: #fff; }
.cb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 28px; margin-top: 22px; }
.cb-cols h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.cb-cols .fx-list { margin-top: 6px; }
.cb-cols code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 14%, transparent); font-size: .8125rem; }
.cb .fx-foot { margin-top: 24px; }
.cb-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.cb-places li { padding: 10px 10px 16px; border-radius: var(--hp-radius, 16px); background: #e6ebef; color: #14212b; }
.cb-thumb { display: block; overflow: hidden; margin-bottom: 12px; border-radius: 10px; aspect-ratio: 4 / 3; background: #14212b; }
.cb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-places b { display: block; padding: 0 4px; font-size: .9375rem; font-weight: 600; }
.cb-places span:not(.cb-thumb) { display: block; padding: 2px 4px 0; font-size: .8125rem; opacity: .72; overflow-wrap: anywhere; }
[data-theme="dark"] .cb-places li { background: #1f2a33; color: #eef2f5; }
@media (max-width: 1024px) {
  .cb { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cb .cb-vis { max-width: 680px; margin: 0 auto; }
  .cb-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .cb-places { gap: 10px; } .cb-places li { padding: 8px 8px 12px; } }

/* ---- the home page's For companies slide: same height and rhythm as the other slides ---- */
.hs-slide.hs-co { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.hs-co .hs-sub { max-width: 40ch; }
@media (min-width: 769px) and (max-width: 1180px) { .hs-co .hs-title { font-size: clamp(2.1rem, 3.9vw, 3.6rem); } .hs-co .hs-sub { font-size: 1rem; margin-bottom: 18px; } .hs-co .hs-btn { padding: 11px 18px; } }
.hs-co-points { display: flex; flex-wrap: nowrap; gap: 6px; margin: -8px 0 22px; padding: 0; list-style: none; overflow: hidden; }
.hs-co-points li { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 11px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 11%, transparent); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.hs-co-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a5f; }
@media (max-width: 768px) {
  .hs-slide.hs-co { grid-template-columns: minmax(0, 1fr); }
  .hs-co-points { justify-content: center; margin: -4px 0 14px; }
  .hs-co-points li { padding: 4px 9px; font-size: .75rem; }
}
@media (max-width: 480px) { .hs-co-points { display: none; } }   /* the line above already says it; keeps the slide as tall as the others */
