/* =====================================================================
   careers.css — Speed Innovations careers portal
   Used by /career.html and /careers/*.html. Classes are prefixed `cr-`
   so they never collide with Bootstrap or the shared header/footer.
   ===================================================================== */

:root {
  --cr-primary: #4b2a8c;
  --cr-primary-dark: #2e1a5c;
  --cr-violet: #5a3be0;
  --cr-violet-soft: #7c64e8;
  --cr-ink: #15122b;
  --cr-ink-2: #3a3552;
  --cr-muted: #4a4563;
  --cr-muted-2: #6b6585;
  --cr-line: #e3ddf2;
  --cr-line-soft: #ece8f5;
  --cr-line-strong: #d9d1ee;
  --cr-lav: #f6f4fb;
  --cr-lav-2: #fbfafe;
  --cr-teal: #18816f;
  --cr-teal-bright: #2fd3bb;
  --cr-teal-bg: #e6f6f3;
  --cr-teal-ink: #136b5d;
  --cr-yellow: #f5c518;
  --cr-night: #0b0820;
  --cr-plum: #2a1858;
  --cr-danger: #b42318;
  --cr-danger-bg: #fdecea;
  --cr-radius: 24px;
  --cr-radius-lg: 28px;
  --cr-font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.cr-body {
  margin: 0;
  font-family: var(--cr-font);
  color: var(--cr-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.cr-body main a {
  color: var(--cr-primary);
}
.cr-body main a:hover {
  color: var(--cr-primary-dark);
}
.cr-body h1,
.cr-body h2,
.cr-body h3 {
  font-family: var(--cr-font);
  color: inherit;
  margin: 0;
}
.cr-body p {
  margin: 0;
}
.cr-body main strong,
.cr-body main b {
  font-weight: 500;
}

.cr-container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 575px) {
  .cr-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.cr-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cr-body :focus-visible {
  outline: 3px solid var(--cr-violet-soft);
  outline-offset: 2px;
}

/* ---------- Shared bits ---------- */
.cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cr-primary);
}
.cr-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cr-yellow);
}
.cr-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cr-muted);
}
.cr-section {
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.cr-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.cr-section-head > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}
.cr-section-head > p {
  max-width: 420px;
}
.cr-dept {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-teal);
}

/* buttons */
.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  box-sizing: border-box;
}
.cr-btn svg {
  flex: none;
}
.cr-btn--primary,
.cr-body main a.cr-btn--primary {
  background: var(--cr-primary);
  color: #fff;
}
.cr-btn--primary:hover,
.cr-body main a.cr-btn--primary:hover {
  background: var(--cr-primary-dark);
  color: #fff;
}
.cr-btn--dark,
.cr-body main a.cr-btn--dark {
  background: var(--cr-ink);
  color: #fff;
}
.cr-btn--dark:hover,
.cr-body main a.cr-btn--dark:hover {
  background: #000;
  color: #fff;
}
.cr-btn--outline,
.cr-body main a.cr-btn--outline {
  background: #fff;
  color: var(--cr-primary);
  border-color: var(--cr-line-strong);
}
.cr-btn--outline:hover,
.cr-body main a.cr-btn--outline:hover {
  border-color: var(--cr-primary);
  color: var(--cr-primary);
}
.cr-btn--white,
.cr-body main a.cr-btn--white {
  background: #fff;
  color: var(--cr-ink);
}
.cr-btn--white:hover,
.cr-body main a.cr-btn--white:hover {
  background: var(--cr-lav);
  color: var(--cr-ink);
}
.cr-btn--ghost-light,
.cr-body main a.cr-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.cr-btn--ghost-light:hover,
.cr-body main a.cr-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cr-btn--teal,
.cr-body main a.cr-btn--teal {
  background: var(--cr-teal);
  color: #fff;
}
.cr-btn--teal:hover {
  background: var(--cr-teal-ink);
  color: #fff;
}
.cr-btn--lg {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 17px;
}
.cr-btn--block {
  width: 100%;
}
.cr-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.cr-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--cr-line-strong);
  background: #fff;
  color: var(--cr-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cr-icon-btn:hover {
  border-color: var(--cr-primary);
}

/* pills and tags */
.cr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cr-lav);
  color: var(--cr-ink-2);
}
.cr-pill--teal {
  background: var(--cr-teal-bg);
  color: var(--cr-teal-ink);
  font-weight: 500;
}
.cr-pill--white {
  background: #fff;
  border: 1px solid var(--cr-line);
}
.cr-pill svg {
  color: var(--cr-primary);
}
.cr-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cr-lav);
  color: var(--cr-ink-2);
}
.cr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--cr-muted);
}
.cr-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cr-meta svg {
  color: var(--cr-primary);
}

/* chips (filters) */
.cr-chip {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: var(--cr-ink-2);
  border: 1.5px solid var(--cr-line);
}
.cr-chip:hover {
  border-color: var(--cr-primary);
}
.cr-chip[aria-pressed="true"] {
  background: var(--cr-primary);
  color: #fff;
  border-color: var(--cr-primary);
}

/* skeleton while jobs.json loads */
.cr-skeleton {
  border-radius: var(--cr-radius);
  background: linear-gradient(90deg, var(--cr-lav) 25%, #eeeaf8 50%, var(--cr-lav) 75%);
  background-size: 200% 100%;
  animation: cr-shimmer 1.4s infinite;
  min-height: 120px;
}
@keyframes cr-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* =====================================================================
   Careers home (career.html)
   ===================================================================== */
.cr-hero {
  position: relative;
  overflow: hidden;
  background: var(--cr-night);
  color: #fff;
}
.cr-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 70% 38%, #5a3be0 0%, rgba(90, 59, 224, 0) 70%),
    radial-gradient(ellipse 45% 45% at 92% 88%, #a796f0 0%, rgba(167, 150, 240, 0) 70%),
    radial-gradient(ellipse 30% 35% at 8% 14%, rgba(24, 168, 148, 0.35) 0%, rgba(24, 168, 148, 0) 70%),
    radial-gradient(ellipse 40% 40% at 25% 95%, #2a1a6e 0%, rgba(42, 26, 110, 0) 70%);
}
.cr-hero__shade {
  position: absolute;
  left: 22%;
  top: 42%;
  width: 1100px;
  height: 240px;
  background: var(--cr-night);
  filter: blur(70px);
  transform: rotate(-38deg);
  opacity: 0.9;
  border-radius: 50%;
}
.cr-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.cr-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(11, 8, 32, 0), var(--cr-night));
}
.cr-shape {
  position: absolute;
  pointer-events: none;
}
.cr-shape--cube {
  left: -46px;
  top: 220px;
  width: 170px;
  height: 170px;
  border-radius: 34px;
  transform: rotate(28deg) skewY(-6deg);
  background: linear-gradient(135deg, #fff 0%, #dcd7f0 38%, #a79fcb 70%, #eeeaf9 100%);
  box-shadow: inset -14px -18px 30px rgba(80, 60, 160, 0.35), inset 10px 12px 24px rgba(255, 255, 255, 0.8), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.cr-shape--small {
  left: 70%;
  top: 120px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  transform: rotate(40deg) skewY(-8deg);
  background: linear-gradient(135deg, #fff 0%, #cfc8ea 50%, #9389bf 100%);
  box-shadow: inset -5px -6px 10px rgba(80, 60, 160, 0.4), 0 12px 24px rgba(0, 0, 0, 0.35);
}
.cr-shape--rings {
  right: 40px;
  top: 360px;
  width: 190px;
  height: 190px;
}
.cr-shape--rings span {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 48%, #f4f2fb 50%, #bdb5dd 60%, #f7f5fd 68%, #9a90c8 72%, rgba(0, 0, 0, 0) 74%);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.4));
}
.cr-shape--rings span:first-child {
  left: 0;
  top: 30px;
  transform: rotate(-30deg) scaleY(0.62);
}
.cr-shape--rings span:last-child {
  left: 50px;
  top: 20px;
  transform: rotate(55deg) scaleY(0.62);
}
.cr-shape--orb {
  left: 14%;
  bottom: 110px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0%, #cfc8ea 35%, #6e5fb8 80%, #3b2a86 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.cr-float {
  animation: cr-float 7s ease-in-out infinite;
}
.cr-float-slow {
  animation: cr-float 10s ease-in-out infinite;
}
.cr-drift {
  animation: cr-drift 18s ease-in-out infinite alternate;
}
@keyframes cr-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}
@keyframes cr-drift {
  from {
    translate: -40px 0;
  }
  to {
    translate: 60px 30px;
  }
}
.cr-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(104px, 14vw, 180px) 24px clamp(96px, 12vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.cr-hero h1 {
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
}
.cr-hero__sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: #e2def5;
  max-width: 720px;
}
.cr-hero__sub strong {
  color: #fff;
}
.cr-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cr-body main a.cr-hero__cta-main {
  background: var(--cr-night);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cr-body main a.cr-hero__cta-main:hover {
  color: #fff;
  background: #16113a;
}
.cr-body main a.cr-hero__cta-alt {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
}
.cr-body main a.cr-hero__cta-alt:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
/* marquee */
.cr-marquee {
  background: var(--cr-night);
  color: #fff;
  overflow: hidden;
  padding: 28px 0 64px;
}
.cr-marquee__track {
  display: flex;
  width: max-content;
  animation: cr-marquee 36s linear infinite;
}
.cr-marquee__track span {
  flex: none;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  padding-right: 56px;
  color: #fff;
  white-space: nowrap;
}
.cr-marquee__track span i {
  font-style: normal;
  color: var(--cr-teal-bright);
}
@keyframes cr-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* why cards */
.cr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cr-why {
  background: var(--cr-lav);
  border-radius: var(--cr-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}
.cr-why__n {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-primary);
  font-weight: 500;
  font-size: 18px;
}
.cr-why h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cr-why p,
.cr-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cr-muted);
}

/* roles list (home) */
.cr-rolelist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cr-line);
}
.cr-body main a.cr-rolerow {
  color: var(--cr-ink);
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--cr-line);
  transition: background-color 0.2s;
}
.cr-body main a.cr-rolerow:hover {
  background: var(--cr-lav-2);
  color: var(--cr-ink);
}
.cr-rolerow__main {
  flex: 999 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cr-rolerow__title {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cr-rolerow__meta {
  flex: 1 1 480px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cr-arrow {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.2s;
}
a:hover .cr-arrow {
  transform: rotate(45deg);
}

/* hiring steps */
.cr-band {
  background: var(--cr-lav);
}
.cr-step {
  background: #fff;
  border-radius: var(--cr-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--cr-line);
}
.cr-step__n {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--cr-primary);
  letter-spacing: -0.01em;
}
.cr-step h3 {
  font-size: 21px;
  font-weight: 500;
}

/* final cta */
.cr-cta {
  background: var(--cr-ink);
  color: #fff;
}
.cr-cta__inner {
  padding: clamp(80px, 10vw, 120px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.cr-cta__kicker {
  font-size: 15px;
  font-weight: 500;
  color: #b9b0da;
}
.cr-cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-cta p {
  font-size: 20px;
  color: #d8d3ea;
  max-width: 620px;
  line-height: 1.6;
}
.cr-cta__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* =====================================================================
   Open roles (careers/jobs.html)
   ===================================================================== */
.cr-pagehero {
  background: var(--cr-primary);
  color: #fff;
}
.cr-pagehero__inner {
  padding-top: 48px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cr-crumbs {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cr-muted-2);
}
.cr-pagehero .cr-crumbs {
  color: #d8cff3;
}
.cr-body main .cr-pagehero .cr-crumbs a {
  color: #fff;
}
.cr-pagehero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  max-width: 920px;
}
.cr-searchbar__field {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: var(--cr-muted-2);
  margin: 0;
}
.cr-searchbar input,
.cr-searchbar select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: var(--cr-ink);
  min-height: 48px;
  background: transparent;
}
.cr-searchbar .cr-btn {
  border-radius: 14px;
  min-height: 52px;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .cr-searchbar .cr-btn {
    flex: 1 1 100%;
  }
}

.cr-layout {
  padding-top: 40px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.cr-layout__aside {
  flex: 1 1 260px;
  max-width: 300px;
}
.cr-layout__main {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-filters {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}
.cr-filter-group legend,
.cr-filter-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-muted-2);
  margin-bottom: 12px;
  float: none;
  padding: 0;
}
.cr-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  min-height: 36px;
  margin: 0;
  cursor: pointer;
}
.cr-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cr-primary);
}
.cr-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cr-results-bar__count {
  font-size: 16px;
  color: var(--cr-muted);
}
.cr-results-bar__count strong {
  color: var(--cr-ink);
}
.cr-results-bar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cr-muted);
  margin: 0;
}
.cr-sort select {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--cr-line);
  min-height: 44px;
  background: #fff;
}
.cr-filter-toggle {
  display: none;
}

.cr-jobcard {
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cr-jobcard:hover {
  border-color: var(--cr-line-strong);
  box-shadow: 0 10px 30px rgba(75, 42, 140, 0.08);
}
.cr-jobcard__main {
  flex: 999 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cr-jobcard__top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cr-muted-2);
}
.cr-body main a.cr-jobcard__title {
  color: var(--cr-ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.cr-body main a.cr-jobcard__title:hover {
  color: var(--cr-primary);
}
.cr-jobcard__actions {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-empty {
  border: 1.5px dashed var(--cr-line-strong);
  border-radius: var(--cr-radius);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.cr-empty__title {
  font-size: 22px;
  font-weight: 500;
}
.cr-empty p {
  font-size: 16px;
  color: var(--cr-muted);
}

/* below lg the filters live in a Bootstrap offcanvas (.offcanvas-lg) */
@media (max-width: 991.98px) {
  .cr-layout__aside {
    max-width: none;
    flex: 0 0 0;
  }
  .cr-filter-toggle {
    display: inline-flex;
  }
  .cr-layout__aside .offcanvas-body {
    padding: 24px;
  }
}
@media (min-width: 992px) {
  .cr-layout__aside .offcanvas-header {
    display: none;
  }
}

/* =====================================================================
   Job detail (careers/job.html)
   ===================================================================== */
.cr-detailhero {
  background: var(--cr-lav);
  border-bottom: 1px solid var(--cr-line);
}
.cr-detailhero__inner {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cr-detailhero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
}
.cr-detailhero__main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cr-detailhero__top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--cr-muted-2);
}
.cr-detailhero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-detailhero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cr-detailhero__pills .cr-pill {
  font-size: 15px;
  padding: 10px 16px;
}
.cr-detailhero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cr-detail {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.cr-article {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cr-ink-2);
}
.cr-article section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-article h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--cr-ink);
  letter-spacing: -0.01em;
}
.cr-article ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-article .cr-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
}
.cr-process {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px !important;
}
.cr-process li {
  border: 1px solid var(--cr-line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}
.cr-process b {
  color: var(--cr-primary);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.cr-process strong {
  color: var(--cr-ink);
  font-size: 17px;
}
.cr-process span {
  font-size: 15px;
  color: var(--cr-muted);
}
.cr-perks {
  background: var(--cr-ink);
  color: #fff;
  border-radius: var(--cr-radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cr-perks h2 {
  color: #fff;
}
.cr-perks__grid {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px !important;
  font-size: 16px;
  line-height: 1.55;
}
.cr-perks__grid li {
  display: flex;
  gap: 12px;
  color: #e2def2;
}
.cr-tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18a894;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cr-side {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}
.cr-summary {
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
}
.cr-card-title {
  font-size: 20px;
  font-weight: 500;
}
.cr-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 15px;
}
.cr-summary dt {
  color: var(--cr-muted-2);
  font-weight: 500;
}
.cr-summary dd {
  margin: 0;
  font-weight: 500;
}
.cr-summary__note {
  font-size: 13px;
  color: var(--cr-muted-2);
  text-align: center;
}
.cr-similar {
  background: var(--cr-lav);
  border-radius: var(--cr-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cr-body main a.cr-similar__item {
  color: var(--cr-ink);
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.cr-body main a.cr-similar__item:hover {
  box-shadow: 0 6px 18px rgba(75, 42, 140, 0.1);
  color: var(--cr-ink);
}
.cr-similar__item b {
  font-weight: 500;
  font-size: 16px;
}
.cr-similar__item span {
  font-size: 14px;
  color: var(--cr-muted-2);
}
.cr-closed {
  padding-top: 96px;
  padding-bottom: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cr-closed h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cr-closed p {
  font-size: 18px;
  color: var(--cr-muted);
  max-width: 520px;
}
/* mobile sticky apply bar */
.cr-applybar {
  display: none;
}
@media (max-width: 991.98px) {
  .cr-side {
    position: static;
  }
  .cr-applybar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--cr-line-soft);
  }
  .cr-applybar .cr-btn--primary {
    flex: 1;
  }
  .cr-applybar .cr-icon-btn {
    width: 50px;
    height: 50px;
  }
  .cr-perks {
    padding: 28px 22px;
  }
}

/* toast */
.cr-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--cr-ink);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10000;
}
.cr-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =====================================================================
   Apply (careers/apply.html)
   ===================================================================== */
.cr-apply {
  background: var(--cr-lav);
}
.cr-apply__inner {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.cr-apply__main {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cr-apply__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-apply__heading span {
  font-size: 14px;
  font-weight: 500;
  color: var(--cr-muted-2);
}
.cr-apply__heading h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-stepper li {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cr-muted-2);
  font-size: 14px;
  font-weight: 500;
}
.cr-stepper li::before {
  content: "";
  height: 6px;
  border-radius: 999px;
  background: #ddd6ee;
}
.cr-stepper__label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-stepper__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #ddd6ee;
  color: var(--cr-muted);
}
.cr-stepper li.is-current,
.cr-stepper li.is-done {
  color: var(--cr-ink);
}
.cr-stepper li.is-current::before,
.cr-stepper li.is-done::before {
  background: var(--cr-primary);
}
.cr-stepper li.is-current .cr-stepper__dot {
  background: var(--cr-primary);
  color: #fff;
}
.cr-stepper li.is-done .cr-stepper__dot {
  background: var(--cr-teal);
  color: #fff;
}

.cr-formcard {
  background: #fff;
  border-radius: var(--cr-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--cr-line);
}
.cr-formstep {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cr-formstep[hidden] {
  display: none;
}
.cr-formstep h2 {
  font-size: 26px;
  font-weight: 500;
}
.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cr-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.cr-field input,
.cr-field select,
.cr-field textarea {
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--cr-line-strong);
  border-radius: 14px;
  min-height: 52px;
  background: #fff;
  color: var(--cr-ink);
  width: 100%;
  box-sizing: border-box;
}
.cr-field textarea {
  resize: vertical;
  min-height: 120px;
}
.cr-field input:focus,
.cr-field select:focus,
.cr-field textarea:focus {
  border-color: var(--cr-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 42, 140, 0.15);
}
.cr-field .cr-req {
  color: var(--cr-danger);
}
.cr-field.is-invalid input,
.cr-field.is-invalid select,
.cr-field.is-invalid textarea {
  border-color: var(--cr-danger);
}
.cr-err {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--cr-danger);
}
.is-invalid > .cr-err,
.is-invalid .cr-err {
  display: block;
}
.cr-radios {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-radios legend {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  float: none;
  padding: 0;
}
.cr-radios__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cr-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--cr-line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}
.cr-radio input {
  accent-color: var(--cr-primary);
}
.cr-radio:has(input:checked) {
  border-color: var(--cr-primary);
  background: var(--cr-lav);
}

.cr-drop {
  position: relative;
  border: 2px dashed #c9beea;
  background: var(--cr-lav-2);
  border-radius: 22px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.2s, background-color 0.2s;
}
.cr-drop:hover,
.cr-drop.is-drag {
  border-color: var(--cr-primary);
  background: #f3effc;
}
.cr-drop:focus-within {
  outline: 3px solid var(--cr-violet-soft);
  outline-offset: 2px;
}
.cr-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cr-drop__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-drop__title {
  font-size: 18px;
  font-weight: 500;
}
.cr-drop__hint {
  font-size: 14px;
  color: var(--cr-muted-2);
}
.cr-drop__file {
  font-size: 15px;
  font-weight: 500;
  color: var(--cr-teal-ink);
  background: var(--cr-teal-bg);
  padding: 6px 14px;
  border-radius: 999px;
}
.cr-drop.is-invalid {
  border-color: var(--cr-danger);
}

.cr-review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cr-line);
  border-radius: 20px;
}
.cr-review__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  flex-wrap: wrap;
  align-items: center;
}
.cr-review__row + .cr-review__row {
  border-top: 1px solid var(--cr-line);
}
.cr-review__row > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cr-review__k {
  font-size: 13px;
  color: var(--cr-muted-2);
  font-weight: 500;
}
.cr-review__v {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cr-linkbtn {
  font: inherit;
  font-weight: 500;
  color: var(--cr-primary);
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}
.cr-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cr-ink-2);
  margin: 0;
  font-weight: 500;
}
.cr-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cr-primary);
  flex: none;
}
.cr-formnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cr-line-soft);
  flex-wrap: wrap;
}
.cr-formnav__count {
  font-size: 14px;
  color: var(--cr-muted-2);
}
.cr-formnav .cr-btn {
  min-height: 52px;
}
.cr-formnav [data-back][hidden] {
  display: inline-flex;
  visibility: hidden;
}
.cr-alert {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  background: var(--cr-danger-bg);
  color: var(--cr-danger);
}
.cr-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cr-apply__side {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-applyfor {
  background: var(--cr-primary);
  color: #fff;
  border-radius: var(--cr-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cr-applyfor__k {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfc3f0;
}
.cr-applyfor__t {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cr-applyfor__m {
  font-size: 15px;
  color: #e2daf7;
}
.cr-body main .cr-applyfor a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}
.cr-help {
  background: #fff;
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cr-ink-2);
}
.cr-help a {
  font-weight: 500;
}
.cr-exitbar {
  background: #fff;
  border-bottom: 1px solid var(--cr-line-soft);
}
.cr-exitbar__inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cr-body main a.cr-exit {
  color: var(--cr-ink-2);
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* =====================================================================
   Application received (careers/thank-you.html)
   ===================================================================== */
.cr-success {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.cr-success__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cr-success__check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--cr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cr-success h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.cr-success__text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--cr-muted);
  max-width: 640px;
}
.cr-success__text strong {
  color: var(--cr-ink);
}
.cr-ref {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cr-lav);
  color: var(--cr-ink-2);
}
.cr-next {
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cr-next h2 {
  font-size: 26px;
  font-weight: 500;
}
.cr-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.cr-timeline li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-timeline li::before {
  content: "";
  height: 6px;
  border-radius: 999px;
  background: #ddd6ee;
}
.cr-timeline li.is-done::before {
  background: var(--cr-teal);
}
.cr-timeline li.is-next::before {
  background: var(--cr-primary);
}
.cr-timeline__k {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cr-muted-2);
}
.is-done .cr-timeline__k {
  color: var(--cr-teal);
}
.is-next .cr-timeline__k {
  color: var(--cr-primary);
}
.cr-timeline b {
  font-size: 18px;
  font-weight: 500;
}
.cr-timeline span:last-child {
  font-size: 15px;
  color: var(--cr-muted);
  line-height: 1.5;
}
.cr-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cr-duo > div {
  flex: 1 1 380px;
  border-radius: var(--cr-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cr-duo__refer {
  background: var(--cr-primary);
  color: #fff;
}
.cr-duo__refer p {
  color: #e2daf7;
}
.cr-duo__more {
  background: var(--cr-lav);
}
.cr-duo__more p {
  color: var(--cr-muted);
}
.cr-duo__title {
  font-size: 22px;
  font-weight: 500;
}
.cr-duo p {
  font-size: 15px;
  line-height: 1.6;
}
.cr-duo__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =====================================================================
   Motion preferences
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cr-float,
  .cr-float-slow,
  .cr-drift,
  .cr-marquee__track,
  .cr-skeleton {
    animation: none;
  }
  .cr-arrow,
  .cr-btn {
    transition: none;
  }
}
/* Small screens: the floating shapes would sit on top of the hero content. */
@media (max-width: 767px) {
  .cr-shape {
    display: none;
  }
}

/* =====================================================================
   Motion — scroll reveal, staggered lists, page transitions
   All of it is switched off for prefers-reduced-motion (see below).
   ===================================================================== */

/* Smooth cross-fade between careers pages in browsers that support
   cross-document View Transitions; others simply navigate as usual. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

/* Sections marked data-reveal ease in on first scroll into view.
   `.cr-js` is set by main.js, so nothing is hidden when JS is unavailable. */
.cr-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cr-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Rendered lists rise in one after another (--i = item index). */
.cr-rise {
  animation: cr-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(min(var(--i, 0), 8) * 60ms);
}
@keyframes cr-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.cr-jobcard__heading {
  margin: 0;
  font-size: inherit;
}
.cr-pill--sm {
  padding: 4px 12px;
  font-size: 13px;
}
.cr-formstep h2:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  .cr-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cr-rise {
    animation: none;
  }
}

/* On phones/tablets the sticky .cr-applybar replaces the hero's actions. */
@media (max-width: 991.98px) {
  .cr-detailhero__actions {
    display: none;
  }
}

/* =====================================================================
   Page furniture
   ===================================================================== */

/* "Skip to content" link: hidden until focused with the keyboard. */
.cr-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10001;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cr-ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.cr-skip:focus {
  top: 16px;
  color: #fff;
}

/* Ordered lists styled as card grids keep their semantics, lose the bullets. */
.cr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cr-joblist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Error states for wrappers that hold a non-text control. */
[data-field].is-invalid .cr-drop {
  border-color: var(--cr-danger);
}
[data-field] > .cr-err {
  margin-top: 8px;
}
.cr-radios.is-invalid .cr-radio {
  border-color: var(--cr-danger);
}
.cr-field small {
  font-weight: 500;
  color: var(--cr-muted-2);
}

/* The apply form stacks its steps, alert and navigation with even spacing. */
.cr-formcard form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================================================================
   Perks & benefits — bento grid on the careers home
   Desktop: the featured card spans 2×2 beside two cards, three below.
   ===================================================================== */
.cr-perks-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cr-perks-grid .cr-perk {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border-radius: var(--cr-radius-lg);
  background: var(--cr-lav);
  border: 1px solid transparent;
  /* Hover uses `translate` so it never fights the scroll-reveal `transform`. */
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.cr-perks-grid .cr-perk:hover {
  translate: 0 -6px;
  border-color: var(--cr-line);
  box-shadow: 0 24px 48px -24px rgba(75, 42, 140, 0.35);
}
.cr-perk h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cr-perk p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cr-muted);
}
.cr-perk__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: var(--cr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Featured: large purple card with a soft glow and ring motif. */
.cr-perks-grid .cr-perk--featured {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(110% 90% at 100% 0%, #6d4ad8 0%, rgba(109, 74, 216, 0) 55%),
    linear-gradient(150deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
}
.cr-perk--featured::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 48px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.cr-perk__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.cr-perk--featured h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cr-perk--featured p {
  font-size: 18px;
  color: #e2daf7;
}
.cr-perk--featured .cr-perk__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cr-perk__tag {
  position: relative;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 500;
}

/* Dark accent card. */
.cr-perks-grid .cr-perk--dark {
  background: var(--cr-ink);
  color: #fff;
}
.cr-perk--dark p {
  color: #cfc9e6;
}
.cr-perk--dark .cr-perk__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cr-teal-bright);
}

/* Tablet: 2 columns — featured and dark cards span the full row. */
@media (max-width: 991.98px) {
  .cr-perks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-perks-grid .cr-perk--featured {
    grid-row: auto;
  }
  .cr-perks-grid .cr-perk--dark {
    grid-column: span 2;
  }
}
/* Phone: one column. */
@media (max-width: 575.98px) {
  .cr-perks-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-perks-grid .cr-perk--featured,
  .cr-perks-grid .cr-perk--dark {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-perks-grid .cr-perk {
    transition: none;
  }
  .cr-perks-grid .cr-perk:hover {
    translate: none;
  }
}
