/* Cards sit on soft shadows, not hairline borders */
:root {
  --cr-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.10);
  --cr-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 12px 32px -12px rgba(16, 24, 40, 0.16);
  --cr-shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.05), 0 32px 64px -24px rgba(16, 24, 40, 0.22);
}

/* Carriers page (carriers.html). Prefix: cr-.
   Layout follows Mobbin references noted in the page comment; colours and type come from the site tokens. */

/* Shared type */
.cr-kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-600); }
.cr-kicker--dark { color: var(--blue-300); }
.cr-h2 { font-size: var(--text-2xl); font-weight: 400; line-height: var(--leading-2xl); letter-spacing: var(--tracking-tight); color: var(--ink); text-wrap: balance; }
.cr-h2 span { color: var(--ink-soft); }
.cr-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.cr-head > p:not(.cr-kicker) { margin-top: 18px; font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--muted); }
.cr-head .cr-kicker + .cr-h2 { margin-top: 14px; }
.cr-head--left { margin-left: 0; text-align: left; }

/* 01 · Hero */
.cr-hero { position: relative; isolation: isolate; overflow-x: clip; padding: 112px 0 96px; text-align: center; }
.cr-hero::before { content: ""; position: absolute; inset: 0 0 30%; z-index: -1; background:
  radial-gradient(40% 55% at 18% 20%, color-mix(in srgb, var(--blue-200) 55%, transparent), transparent 70%),
  radial-gradient(35% 50% at 85% 10%, color-mix(in srgb, var(--blue-100) 70%, transparent), transparent 70%); }
.cr-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--cr-shadow-sm); font-size: 13px; color: var(--ink-2); }
.cr-pill .icon { font-size: 16px; color: var(--blue-500); }
.cr-hero__title { max-width: 900px; margin: 24px auto 0; font-size: clamp(44px, 5.6vw, 80px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.cr-hero__title span { color: var(--ink-soft); }
.cr-hero__lead { max-width: 620px; margin: 24px auto 0; font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ink-2); }
.cr-hero .actions { margin-top: 36px; }

/* Hero stage: one risk flag card with two small notes beside it */
.cr-stage { position: relative; isolation: isolate; max-width: 1040px; height: 540px; margin: 72px auto 0; }
/* Soft grey pill shapes behind the photo */
.cr-stage__pills { position: absolute; inset: 120px 0 auto; z-index: -1; display: flex; justify-content: space-between; height: 260px; }
.cr-stage__pills span { width: 96px; border-radius: var(--radius-full); background: var(--slate-50); }
.cr-stage__pills span:nth-child(3), .cr-stage__pills span:nth-child(4) { visibility: hidden; }
.cr-stage__photo { position: absolute; left: 50%; top: 0; width: 560px; height: 504px; transform: translateX(-56%); border-radius: 24px; object-fit: cover; object-position: 50% 25%; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--blue-900) 45%, transparent); }
.cr-flag { position: absolute; right: 40px; bottom: 0; width: 400px; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--cr-shadow-lg); text-align: left; }
.cr-flag__top { display: flex; align-items: center; justify-content: space-between; }
.cr-flag__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--amber-50); font-size: 12px; font-weight: 500; color: var(--amber-700); }
.cr-flag__time { font-size: 12px; color: var(--muted); }
.cr-flag__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.cr-flag__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); font-size: 13px; font-weight: 600; color: var(--blue-700); }
.cr-flag__who b { display: block; font-weight: 500; }
.cr-flag__who small { font-size: 13px; color: var(--muted); }
.cr-flag__why { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--slate-10); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cr-flag__why b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cr-flag__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.cr-chip { padding: 5px 10px; border-radius: var(--radius-full); background: var(--blue-50); font-size: 12px; color: var(--blue-700); }
.cr-flag__btn { padding: 8px 16px; border-radius: var(--radius-full); background: var(--ink); font-size: 13px; color: #fff; }
.cr-mini { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--cr-shadow); text-align: left; }
.cr-mini .icon { font-size: 22px; color: var(--blue-500); }
.cr-mini b { display: block; font-size: 14px; font-weight: 500; }
.cr-mini small { font-size: 12px; color: var(--muted); }
.cr-mini--l { left: 110px; top: 64px; }
.cr-mini--r { left: 150px; bottom: 56px; }
.cr-mini--r .icon { color: var(--green-500); }

/* 02 · Problem: split + numbers row */
.cr-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.cr-split .cr-h2 { margin-top: 14px; }
.cr-split__body p { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ink-2); }
.cr-split__body p + p { margin-top: 20px; }
.cr-strong { color: var(--muted) !important; }
.cr-strong b { font-weight: 500; color: var(--ink); }
.cr-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); list-style: none; }
.cr-stats--4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.cr-stats li { padding: 32px 32px 0 0; }
.cr-stats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.cr-stats__num { font-size: clamp(44px, 4.6vw, 68px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.cr-stats__label { max-width: 26ch; margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.cr-stats small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* 02b · Case: pull quote */
.cr-case { padding-top: 0; }
.cr-quote { position: relative; max-width: 920px; margin: 0 auto; padding: 56px 64px; border-radius: var(--radius-xl); background: var(--slate-50); }
.cr-quote__mark { position: absolute; top: 8px; left: 40px; font-size: 120px; line-height: 1; color: var(--blue-500); }
.cr-quote blockquote p { font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: var(--tracking-tight); color: var(--ink); text-wrap: pretty; }
.cr-quote figcaption { margin-top: 20px; font-size: 13px; color: var(--muted); }
.cr-case__money { max-width: 920px; margin: 32px auto 0; font-size: var(--text-lg); font-weight: 500; text-align: center; color: var(--ink); }

/* 03 · One file vs the whole book */
.cr-compare { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.cr-compare__col { display: flex; flex-direction: column; gap: 12px; }
/* Brand gradient stage with a white app card floating on it: calm blue crop for one file, hot orange crop for the book */
.cr-compare__stage { position: relative; display: grid; place-items: center; min-height: 420px; margin-bottom: 12px; padding: 48px 40px; border-radius: var(--radius-xl); overflow: hidden; background: url("assets/harmony/hero-gradient.jpg?v=5d3800f471") 0% 45% / 240% auto no-repeat, var(--blue-50, #eef6ff); }
.cr-compare__col--book .cr-compare__stage { background-position: 100% 35%; }
.cr-compare__stage > * { width: 100%; box-shadow: var(--cr-shadow-lg); }
.cr-compare__col .cr-file { max-width: 360px; }
.cr-compare__meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-chart { padding: 24px; border-radius: 20px; background: var(--surface); }
.cr-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cr-chart__head b { font-weight: 500; }
.cr-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cr-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); }
.cr-tag__dot--grey { background: var(--green-500); }
/* One file: everything checks out */
.cr-file { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); }
.cr-file__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.cr-file__head b { display: block; font-weight: 500; }
.cr-file__head small { font-size: 13px; color: var(--muted); }
.cr-file__ok { padding: 4px 10px; border-radius: var(--radius-full); background: var(--green-50); font-size: 12px; font-weight: 500; color: #127a4a; }
.cr-file__row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cr-file__row .icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-50); font-size: 12px; color: var(--green-500); }
/* Whole book: lapses per month, spiking right after the first-year commission */
.cr-lapse__plot { position: relative; display: grid; grid-template-columns: repeat(18, 1fr); align-items: end; gap: 6px; height: 200px; padding-top: 64px; background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 35px); background-position: 0 100%; }
.cr-lapse__bar { height: max(4px, calc(var(--h) * 14%)); border-radius: 4px 4px 2px 2px; background: var(--slate-200); transform-origin: bottom; }
.cr-lapse__bar.is-hot { background: var(--red-500); }
.cr-lapse__pay { position: absolute; top: 0; bottom: 0; left: calc(200% / 3); border-left: 1.5px dashed var(--slate-400, #a3a3a3); }
.cr-lapse__pay span { position: absolute; top: 0; right: 10px; font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.cr-lapse__note { position: absolute; top: 26px; right: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; border-radius: var(--radius-full); background: var(--red-50); font-size: 12px; font-weight: 500; white-space: nowrap; color: #b42318; }
.cr-lapse__axis { display: grid; grid-template-columns: repeat(18, 1fr); gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cr-lapse__axis span { white-space: nowrap; }
.cr-lapse__axis span:nth-child(2) { grid-column: 12; justify-self: center; }
.cr-lapse__axis span:nth-child(3) { grid-column: 18; justify-self: end; }
.cr-compare__note { font-size: var(--text-lg); line-height: var(--leading-lg); }

/* 03b · Why now: numbered columns */
.cr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); list-style: none; }
.cr-cols li { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px 0 0; }
.cr-cols li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.cr-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--blue-600); }
.cr-cols h3 { margin-top: 8px; font-size: var(--text-lg); font-weight: 500; line-height: 1.25; }
.cr-cols p { color: var(--ink-2); line-height: 1.5; }
.cr-cols small { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); }
.cr-callout { max-width: 820px; margin: 72px auto 0; font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: var(--tracking-tight); text-align: center; color: var(--ink); text-wrap: balance; }
.cr-callout span { color: var(--ink-soft); }

/* 04 · Feature cards with small product visuals */
.cr-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.cr-feat { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 28px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--cr-shadow); }
.cr-feat h3, .cr-feat > p { padding: 0 16px; }
.cr-feat h3 { margin-top: 12px; font-size: var(--text-lg); font-weight: 500; }
.cr-feat > p { line-height: 1.5; color: var(--ink-2); }
.cr-feat__art { display: grid; place-items: center; height: 200px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, var(--blue-10), var(--slate-50)); }
.cr-art-list, .cr-art-log { display: grid; gap: 8px; width: 100%; max-width: 280px; }
.cr-art-list p, .cr-art-log p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--cr-shadow-sm); font-size: 13px; }
.cr-art-list b, .cr-art-log span { flex: 1; font-weight: 500; }
.cr-art-list em, .cr-art-log em { font-style: normal; font-size: 12px; color: var(--muted); }
.cr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.cr-dot--hot { background: var(--red-500); }
.cr-dot--warm { background: var(--amber-500); }
.cr-art-log .icon { font-size: 16px; color: var(--blue-500); }
.cr-art-bars { display: flex; align-items: flex-end; gap: 14px; width: 100%; max-width: 260px; height: 140px; padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, var(--surface) 70%, transparent); }
.cr-art-bars span { position: relative; flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: var(--surface); box-shadow: var(--cr-shadow-sm); }
.cr-art-bars span.is-low { background: var(--blue-500); }
.cr-art-bars i { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; white-space: nowrap; color: var(--ink-2); }

/* 05 · Two ways */
.cr-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; }
.cr-way { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius-xl); background: var(--slate-50); }
.cr-way h3 { margin-top: 8px; font-size: var(--text-xl); font-weight: 400; letter-spacing: var(--tracking-tight); }
.cr-way p { max-width: 44ch; line-height: 1.5; color: var(--ink-2); }
.cr-way__art { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 64px; margin-bottom: 16px; }
.cr-node { padding: 8px 14px; border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--cr-shadow-sm); font-size: 13px; color: var(--ink-2); }
.cr-node--you { background: var(--blue-500); box-shadow: none; color: #fff; }
.cr-line { width: 32px; height: 1px; background: var(--slate-300); }

/* 06 · How it works: step tracker */
.cr-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.cr-track::before { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 1px; background: var(--line-strong); }
.cr-track li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cr-track__n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--surface); box-shadow: var(--cr-shadow-sm); font-size: 13px; font-weight: 500; }
.cr-track li:first-child .cr-track__n { background: var(--blue-500); box-shadow: none; color: #fff; }
.cr-track h3 { font-size: var(--text-lg); font-weight: 500; }
.cr-track p { line-height: 1.5; color: var(--ink-2); }
.cr-connect { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 80px; padding: 40px; border-radius: var(--radius-xl); background: var(--slate-50); }
.cr-connect__head h3 { margin-top: 14px; font-size: var(--text-xl); font-weight: 400; line-height: var(--leading-xl); letter-spacing: var(--tracking-tight); }
.cr-connect__head h3 span { color: var(--ink-soft); }
.cr-connect__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.cr-connect__list li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--cr-shadow); }
.cr-connect__list .icon { font-size: 26px; color: var(--blue-500); }
.cr-connect__list b { margin-top: 4px; font-weight: 500; }
.cr-connect__list p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cr-connect__line { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* 07 · Proof */
.cr-founder { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 760px; margin: 56px auto 0; font-size: var(--text-lg); line-height: var(--leading-lg); text-align: center; color: var(--ink-2); }
.cr-founder .icon { flex: none; font-size: 28px; color: var(--blue-500); }

/* 08 · Pilot: dark panel */
/* Lookback pilot: copy on the brand gradient, one white card on the right */
.cr-pilot { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; padding: 64px; border-radius: var(--radius-xl); background: url("assets/harmony/hero-gradient.jpg?v=5d3800f471") 0% 40% / 180% auto; color: var(--ink); }
.cr-pilot .cr-h2 { margin-top: 14px; }
.cr-pilot .cr-kicker { color: var(--blue-700); } /* darker on the light gradient for AA */
.cr-pilot .cr-h2 span { color: var(--ink-2); }
.cr-pilot__body { margin-top: 20px; font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ink-2); }
.cr-pilot__ticks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.cr-pilot__ticks li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--surface) 75%, transparent); font-size: 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cr-pilot__ticks .icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); font-size: 11px; color: #fff; }
.cr-pilot__card { padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-overlay); }
.cr-pilot__label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.cr-pilot__steps { position: relative; display: grid; gap: 18px; margin: 16px 0 28px; list-style: none; }
.cr-pilot__steps::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 2px; background: var(--line); }
.cr-pilot__steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; }
.cr-pilot__steps b { display: block; font-weight: 500; color: var(--ink); }
.cr-pilot__steps li > span:last-child { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cr-pilot__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); font-size: 19px; color: var(--accent-ink); box-shadow: 0 0 0 4px var(--surface); }
.cr-pilot__steps li:last-child .cr-pilot__ic { background: var(--ink); color: #fff; }
.cr-pilot__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; }
.cr-pilot__chips li { padding: 7px 12px; border-radius: var(--radius-full); background: var(--slate-10, #f8f8f8); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.cr-pilot__roi { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--blue-10, #f2f8ff); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cr-pilot__roi .icon { flex: none; font-size: 24px; color: var(--accent-ink); }

/* Tablet */
@media (max-width: 1000px) {
  .cr-stage { height: 500px; }
  .cr-stage__photo { width: 460px; height: 440px; transform: translateX(-60%); }
  .cr-flag { right: 0; width: 360px; }
  .cr-mini--l { left: 0; }
  .cr-mini--r { left: 24px; }
  .cr-split, .cr-compare, .cr-pilot, .cr-connect { grid-template-columns: 1fr; gap: 32px; }
  .cr-feats { grid-template-columns: 1fr; }
  .cr-track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cr-track::before { display: none; }
  .cr-stats--4 { grid-template-columns: 1fr 1fr; }
  .cr-stats--4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cr-stats--4 li:nth-child(n+3) { margin-top: 32px; }
}
/* Phones */
@media (max-width: 700px) {
  .cr-hero { padding: 64px 0 56px; }
  .cr-stage { height: auto; margin-top: 48px; }
  .cr-stage__pills { display: none; }
  .cr-stage__photo { position: static; width: 100%; height: auto; aspect-ratio: 10 / 9; transform: none; }
  .cr-flag { position: relative; right: auto; width: auto; margin: -64px 12px 0; }
  .cr-mini { position: static; margin: 12px 12px 0; }
  .cr-head { margin-bottom: 36px; }
  .cr-stats, .cr-cols, .cr-ways, .cr-connect__list, .cr-track { grid-template-columns: 1fr; }
  .cr-stats { margin-top: 48px; }
  .cr-stats li, .cr-cols li { padding: 24px 0; }
  .cr-stats li + li, .cr-cols li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cr-stats--4 li:nth-child(n+3) { margin-top: 0; }
  .cr-quote { padding: 48px 24px 28px; }
  .cr-quote__mark { left: 20px; font-size: 88px; }
  .cr-way, .cr-connect { padding: 24px; }
  .cr-compare__stage { min-height: 0; padding: 32px 12px; }
  .cr-chart { padding: 20px 16px; }
  .cr-pilot { padding: 32px 20px; }
  .cr-pilot__card { padding: 24px 20px; }
  .cr-callout { margin-top: 48px; }
  .cr-founder { flex-direction: column; }
  .cr-lapse__plot { height: 232px; padding-top: 120px; }
  .cr-lapse__pay span { width: max-content; max-width: 170px; white-space: normal; text-align: right; line-height: 1.3; }
  .cr-lapse__note { top: 74px; white-space: normal; border-radius: 10px; }
}

/* ---------- Colour, imagery and motion ---------- */

/* Hero: the brand gradient (same image as Enterprise) behind the flag, the card floating gently */
.cr-flag::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-500) 0%, transparent); }
.cr-chip { position: relative; }
.cr-flag__badge .icon { color: var(--amber-500); }

/* Problem numbers in brand blue */
.cr-stats__num { color: var(--blue-500); }

/* Case: the one saturated block on the page */
.cr-quote { overflow: hidden; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; }
.cr-quote::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue-300) 55%, transparent), transparent); }
.cr-quote__mark { color: var(--blue-200); opacity: 0.6; }
.cr-quote blockquote p { position: relative; z-index: 1; color: #fff; }
.cr-quote figcaption { position: relative; z-index: 1; color: var(--on-dark-2); }

/* Whole book: a soft red glow behind the grid */

/* Why now on a pale blue band */
.cr-band { background: linear-gradient(180deg, var(--blue-10), var(--blue-50)); }
.cr-band .cr-cols, .cr-band .cr-cols li + li { border-color: color-mix(in srgb, var(--blue-700) 14%, transparent); }
.cr-band .cr-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); box-shadow: var(--cr-shadow-sm); font-size: 14px; }

/* Feature art on the brand gradient; chips and bars float on it in white */
.cr-feat__art { position: relative; overflow: hidden; background: url("assets/harmony/hero-gradient.jpg?v=5d3800f471") var(--bgp, 30% 40%) / 220% auto; }
.cr-feat:nth-child(2) .cr-feat__art { --bgp: 0% 42%; }
.cr-feat:nth-child(3) .cr-feat__art { --bgp: 10% 80%; }
.cr-feat__art::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 35%, transparent); }
.cr-feat__art > * { position: relative; }
.cr-feat { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease; }
.cr-feat:hover { transform: translateY(-4px); box-shadow: var(--cr-shadow-lg); }

/* Two ways: photo on top, the diagram chips over it */
.cr-way { padding: 12px 12px 32px; background: var(--slate-50); }
.cr-way h3, .cr-way p { padding: 0 20px; }
.cr-way__pic { position: relative; margin-bottom: 12px; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; }
.cr-way__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cr-way:hover .cr-way__pic img { transform: scale(1.04); }
.cr-way__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--slate-900) 55%, transparent)); }
.cr-way__pic .cr-way__art { position: absolute; left: 16px; bottom: 16px; z-index: 1; min-height: 0; margin: 0; }
.cr-way__pic .cr-line { background: rgba(255, 255, 255, 0.6); }

/* Pilot: a blue glow in the corner */
.cr-pilot { position: relative; overflow: hidden; isolation: isolate; }
.cr-pilot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface) 30%, transparent); }

/* ---------- Scroll motion (only with JS, never under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .cr-flag { animation: cr-float 6s ease-in-out infinite; }
  .js .cr-mini--l { animation: cr-float 7s ease-in-out -2s infinite; }
  .js .cr-mini--r { animation: cr-float 8s ease-in-out -4s infinite; }
  @keyframes cr-float { 50% { transform: translateY(-8px); } }

  .js .cr-chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue-500) 45%, transparent); animation: cr-ping 2.4s ease-out infinite; }
  @keyframes cr-ping { to { box-shadow: 0 0 0 10px transparent; } }

  .js [data-cr-in] > li, .js .cr-quote[data-cr-in] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js [data-cr-in] > li:nth-child(2) { transition-delay: 0.1s; }
  .js [data-cr-in] > li:nth-child(3) { transition-delay: 0.2s; }
  .js [data-cr-in] > li:nth-child(4) { transition-delay: 0.3s; }
  .js [data-cr-in].is-in > li, .js .cr-quote[data-cr-in].is-in > * { opacity: 1; transform: none; }

  /* Whole book: risky policies light up one by one */
  .js .cr-lapse__bar { transform: scaleY(0); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 0.04s); }
  .js .cr-lapse__bar.is-hot { transition-delay: calc(var(--i) * 0.04s + 0.35s); }
  .js .cr-lapse.is-in .cr-lapse__bar { transform: none; }
  .js .cr-lapse__note { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease 1.3s, transform 0.4s ease 1.3s; }
  .js .cr-lapse.is-in .cr-lapse__note { opacity: 1; transform: none; }

  /* Step tracker: the line fills, then each step lights up */
  .js .cr-track::after { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 2px; margin-top: -0.5px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
  .js .cr-track.is-in::after { transform: scaleX(1); }
  .js .cr-track .cr-track__n { transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
  .js .cr-track li:nth-child(2) .cr-track__n { transition-delay: 0.6s; }
  .js .cr-track li:nth-child(3) .cr-track__n { transition-delay: 1.1s; }
  .js .cr-track li:nth-child(4) .cr-track__n { transition-delay: 1.6s; }
  .js .cr-track.is-in .cr-track__n { background: var(--blue-500); box-shadow: none; color: #fff; }
  @media (max-width: 1000px) { .js .cr-track::after { display: none; } }
}
/* Without motion the steps are all lit */
@media (prefers-reduced-motion: reduce) { .cr-track .cr-track__n { background: var(--blue-500); box-shadow: none; color: #fff; } }

@media (max-width: 700px) {
  .cr-way { padding: 8px 8px 24px; }
  .cr-way h3, .cr-way p { padding: 0 12px; }
}
