/* Home page hero banner (cm-hero). One slide template: eyebrow, title, sub, checklist, price + button; illustration on the right. */
.cm-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, #e3eefc 0%, rgba(227,238,252,0) 60%), linear-gradient(180deg, #f6f9fe 0%, #eef4fc 100%); }
.cm-hero:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background-image: radial-gradient(rgba(34,90,169,.10) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); }
.cm-hero-slides { position: relative; display: grid; }
.cm-hero-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; padding: 56px 0 52px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.cm-hero-slide.is-on { opacity: 1; visibility: visible; }
.cm-hero-slide.is-on .cm-hero-copy > * { animation: cmHeroRise .55s ease both; }
.cm-hero-slide.is-on .cm-hero-copy > *:nth-child(2) { animation-delay: .05s; }
.cm-hero-slide.is-on .cm-hero-copy > *:nth-child(3) { animation-delay: .1s; }
.cm-hero-slide.is-on .cm-hero-copy > *:nth-child(4) { animation-delay: .15s; }
.cm-hero-slide.is-on .cm-hero-copy > *:nth-child(5) { animation-delay: .2s; }
@keyframes cmHeroRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cm-hero-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.cm-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid #e3ebf6; box-shadow: 0 2px 6px rgba(13,42,87,.05); font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #0d2a57; }
.cm-hero-eyebrow b { padding: 3px 9px; border-radius: 999px; background: #225AA9; color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cm-hero-eyebrow b.is-new { background: #ffca05; color: #0d2a57; }
.cm-hero-title { margin: 0; font-family: 'Raleway', sans-serif; font-size: 44px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: #0d2a57; text-transform: none; }
.cm-hero-title em { font-style: normal; color: #225AA9; }
.cm-hero-sub { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: #4a5568; }
.cm-hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cm-hero-list li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: #2f3a4a; }
.cm-hero-list li:before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(34,90,169,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23225AA9' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cm-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 34em; }
.cm-hero-chips a { padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid #e3ebf6; font-size: 13.5px; font-weight: 700; color: #0d2a57; transition: border-color .2s, color .2s; }
.cm-hero-chips a:hover { border-color: #225AA9; color: #225AA9; }
.cm-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.cm-hero-cta .button { margin: 0; }
.cm-hero-cta .button i { margin: 0 0 0 8px; }
.cm-hero-price { display: grid; line-height: 1.1; }
.cm-hero-price small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7585; }
.cm-hero-price strong { font-family: 'Raleway', sans-serif; font-size: 30px; font-weight: 800; color: #0d2a57; }
.cm-hero-price strong span { font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; color: #225AA9; }
.cm-hero-link { font-size: 15px; font-weight: 700; color: #225AA9; }
.cm-hero-link:hover { text-decoration: underline; }

.cm-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.cm-hero-art:before { content: ""; position: absolute; top: 50%; left: 50%; width: 78%; padding-bottom: 78%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #dbe8fb 0%, rgba(219,232,251,0) 70%); }
.cm-hero-art img { position: relative; max-width: 100%; max-height: 380px; width: auto; height: auto; filter: drop-shadow(0 18px 30px rgba(13,42,87,.12)); }
/* Canadian visitors, slide 3: full-width flag + servers photo behind the whole banner (fades in with the slide).
   Dark shading on the left keeps the white text readable; the servers on the right stay visible. */
.cm-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; opacity: 0; transition: opacity .5s ease; background-color: #1d1f24; background-repeat: no-repeat; background-size: cover; background-position: right center; }
.cm-hero-photo:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(10,16,28,.88) 0%, rgba(10,16,28,.74) 38%, rgba(10,16,28,.25) 58%, rgba(10,16,28,0) 72%); }
.cm-hero.is-photo-bg .cm-hero-photo { opacity: 1; }
.cm-hero > .container { position: relative; z-index: 1; }
.cm-hero-art.is-photo-bg:before { display: none; }
.cm-hero-slide.is-dark .cm-hero-title { color: #fff; }
.cm-hero-slide.is-dark .cm-hero-title em { color: #ffca05; }
.cm-hero-slide.is-dark .cm-hero-sub { color: rgba(255,255,255,.88); }
.cm-hero-slide.is-dark .cm-hero-list li { color: #fff; }
.cm-hero-slide.is-dark .cm-hero-list li:before { background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca05' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cm-hero-slide.is-dark .cm-hero-link { color: #fff; }
.cm-hero-slide.is-dark .cm-hero-link:hover { color: #ffca05; }
.cm-hero-slide.is-dark .cm-hero-eyebrow { border-color: transparent; }
.cm-hero-badge { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e3ebf6; box-shadow: 0 10px 24px rgba(13,42,87,.12); font-size: 12px; line-height: 1.2; color: #6b7585; }
.cm-hero-badge strong { font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 800; color: #0d2a57; }
.cm-hero-badge.at-top { top: 8%; right: 0; }
.cm-hero-badge.at-bottom { bottom: 12%; left: 2%; }

.cm-hero-arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; padding: 0; border-radius: 50%; border: 1px solid #e3ebf6; background: #fff; color: #0d2a57; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(13,42,87,.12); transition: background .2s, color .2s, border-color .2s; }
.cm-hero-arrow:hover { background: #225AA9; border-color: #225AA9; color: #fff; }
.cm-hero-arrow:focus { outline: none; }
.cm-hero-arrow:focus-visible { outline: 2px solid #225AA9; outline-offset: 3px; }
.cm-hero-prev { left: 18px; }
.cm-hero-next { right: 18px; }
.cm-hero-progress { position: relative; height: 3px; background: #e3ebf6; }
.cm-hero-progress i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: linear-gradient(90deg, #225AA9, #ffca05); }
.cm-hero.is-playing .cm-hero-progress i { animation: cmHeroFill var(--cm-hero-dur, 7s) linear both; }
.cm-hero.is-playing.is-paused .cm-hero-progress i { animation-play-state: paused; }
@keyframes cmHeroFill { from { width: 0; } to { width: 100%; } }

/* Desktop: same height as the old slider (650px incl. the 3px progress line) */
@media (min-width: 992px) {
    .cm-hero-slide { min-height: 647px; padding-top: 60px; padding-bottom: 60px; }
    .cm-hero-art { min-height: 420px; }
    .cm-hero-slide { grid-template-columns: .9fr 1.1fr; }
    .cm-hero-art img { max-height: 500px; }
    /* Email slide: screenshot-style art needs more room to stay readable */
    .cm-hero-slide.is-wide-art { grid-template-columns: .82fr 1.18fr; }
    .cm-hero-slide.is-wide-art .cm-hero-art img { max-height: 520px; }
}

/* Keep text clear of the side arrows when the window is only a little wider than the container */
@media (min-width: 992px) and (max-width: 1319px) {
    .cm-hero-slide { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 1199px) {
    .cm-hero-title { font-size: 38px; }
}
@media (max-width: 991px) {
    .cm-hero-slide { grid-template-columns: 1fr; gap: 18px; padding: 30px 0 30px; }
    .cm-hero-art { order: -1; min-height: 0; }
    .cm-hero-art img { max-height: 220px; }
    .cm-hero-badge { display: none; }
    .cm-hero-title { font-size: 32px; }
    .cm-hero-arrow { top: 140px; width: 42px; height: 42px; margin-top: -21px; font-size: 20px; }
    /* Canadian photo slide on tablets/phones: servers show in the top area (where other slides have their illustration), text sits on darker shading below */
    .cm-hero-art.is-photo-bg { min-height: 220px; }
    /* #2a0002 = the photo's own left-edge colour, so the area left of the photo continues it with no visible edge */
    .cm-hero-photo { background-color: #2a0002; background-size: auto 280px; background-position: right -40px top; }
    .cm-hero-photo:after { background: linear-gradient(180deg, rgba(10,16,28,.05) 0, rgba(10,16,28,.25) 200px, rgba(10,16,28,.88) 290px, rgba(10,16,28,.92) 100%); }
    .cm-hero-prev { left: 10px; }
    .cm-hero-next { right: 10px; }
}
@media (max-width: 575px) {
    .cm-hero-slide { padding: 24px 0 26px; }
    .cm-hero-art img { max-height: 180px; }
    .cm-hero-arrow { top: 114px; }
    .cm-hero-art.is-photo-bg { min-height: 180px; }
    .cm-hero-photo { background-size: auto 230px; background-position: right -60px top; }
    .cm-hero-photo:after { background: linear-gradient(180deg, rgba(10,16,28,.05) 0, rgba(10,16,28,.25) 160px, rgba(10,16,28,.88) 240px, rgba(10,16,28,.92) 100%); }
    .cm-hero-title { font-size: 27px; }
    .cm-hero-sub { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .cm-hero-slide { transition: none; }
    .cm-hero-slide.is-on .cm-hero-copy > * { animation: none; }
}
