/* ==========================================================
   keeplee - the CRM page: an inbox in a navy hero, a staircase,
   tiles of different sizes, a relay, a story that scrolls sideways.
   ========================================================== */
.cr-hero { position: relative; padding: calc(72px + var(--under, 0px)) 0 80px; background: radial-gradient(1000px 520px at 50% 0%, #1d4fd8 0%, transparent 70%), linear-gradient(180deg, #141413 0%, #0f2e74 100%); color: #fff; text-align: center; overflow: hidden; }
.cr-copy { max-width: 900px; }
.pp-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cr-hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.cr-hero h1 span { color: #ffb39e; }
.cr-hero .lead { max-width: 36em; margin: 0 auto 30px; color: #d6e2ff; }
.cr-channels { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cr-channels li { padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: rgba(255,255,255,.08); font-size: .88rem; font-weight: 600; }
.cr-inbox { max-width: 820px; margin: 22px auto 0; padding: 18px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); text-align: left; box-shadow: 0 40px 80px -24px rgba(20,20,19,.6), 0 0 0 8px rgba(255,255,255,.08); }
.cr-inbox-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 2px 6px; color: var(--navy); }
.cr-inbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cr-msg { display: grid; grid-template-columns: 36px 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg-soft); animation: crIn .6s var(--ease) both; }
.cr-msg:nth-child(1) { animation-delay: .3s; }
.cr-msg:nth-child(2) { animation-delay: .9s; }
.cr-msg:nth-child(3) { animation-delay: 1.5s; }
.cr-msg:nth-child(4) { animation-delay: 2.1s; }
@keyframes crIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cr-words { color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.cr-words small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.cr-tag { grid-column: 2; justify-self: start; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.cr-new { background: #e6f7ef; color: #0b6b47; }
.cr-add { background: var(--brand-50); color: var(--brand); }
.cr-wait { background: var(--warm-bg); color: var(--warm-ink); }
.cr-fine { margin-top: 14px; color: #cfccc2; }
@media (min-width: 640px) {
  .cr-msg { grid-template-columns: 36px 1fr auto; }
  .cr-tag { grid-column: 3; justify-self: end; }
}

.cr-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.cr-head h2 { margin: 8px 0 14px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.16; text-wrap: balance; }
.cr-head .lead { margin: 0 auto; }

/* The staircase */
.cr-rules { padding: 88px 0; background: #fff; }
.cr-stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cr; }
.cr-stairs li { position: relative; display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); text-align: center; counter-increment: cr; }
.cr-stairs li::before { content: counter(cr); justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; }
.cr-stairs strong { color: var(--navy); line-height: 1.3; }
.cr-stairs span { color: var(--muted); font-size: .94rem; }
@media (min-width: 960px) {
  .cr-stairs { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .cr-stairs li:nth-child(2) { margin-top: 36px; }
  .cr-stairs li:nth-child(3) { margin-top: 72px; }
  .cr-stairs li:nth-child(4) { margin-top: 108px; }
}

/* The tiles */
.cr-tiles-sec { padding: 88px 0; background: var(--bg-soft); }
.cr-tiles { display: grid; gap: 16px; }
.cr-tile { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-align: center; box-shadow: var(--shadow-sm); }
.cr-tile h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.cr-tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.cr-deals img { display: block; width: 100%; height: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; }
.cr-deals .fine { margin-top: 12px; font-size: .82rem; }
.cr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.cr-chips span { padding: 6px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-size: .84rem; font-weight: 600; }
.cr-due { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.cr-due li { padding: 7px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); font-size: .88rem; font-weight: 600; }
.cr-due .late { background: #fdecec; color: #a11b1b; }
.cr-due .soon { background: var(--warm-bg); color: var(--warm-ink); }
.cr-rights { display: grid; justify-items: center; gap: 10px; background: var(--brand); border-color: var(--brand); color: #fff; }
.cr-rights .ico { width: 28px; height: 28px; }
.cr-rights h3 { color: #fff; }
.cr-rights p { color: #d6e2ff; }
@media (min-width: 640px) { .cr-tiles { grid-template-columns: 1fr 1fr; } .cr-deals, .cr-rights { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .cr-tiles { grid-template-columns: repeat(3, 1fr); }
  .cr-deals { grid-column: span 2; grid-row: span 2; }
  .cr-rights { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; text-align: left; gap: 18px; }
}

/* The relay */
.cr-relay-sec { padding: 88px 0; background: radial-gradient(900px 420px at 50% 110%, var(--navy-2), var(--navy) 70%); color: #fff; }
.cr-relay-sec h2 { color: #fff; }
.cr-relay { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; text-align: center; }
.cr-relay li { position: relative; display: grid; justify-items: center; gap: 6px; }
.cr-relay small { color: #e8b49f; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cr-relay-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 6px 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: var(--navy); }
.cr-relay li:first-child .cr-relay-ico { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 8px rgba(198,97,63,.25); }
.cr-relay h3 { margin: 4px 0 0; color: #fff; font-size: 1.15rem; }
.cr-relay h3 a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cr-relay p { max-width: 24em; margin: 0; color: #cfccc2; font-size: .95rem; }
@media (min-width: 900px) {
  .cr-relay { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .cr-relay li:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 42px); right: calc(-50% + 30px); top: 62px; border-top: 2px dashed rgba(255,255,255,.3); }
}

/* The story that scrolls sideways */
.cr-story { padding: 88px 0; background: var(--warm-bg); overflow: hidden; }
.p-madeup { max-width: 640px; margin: 18px auto 0; padding: 12px 16px; border: 1px dashed var(--accent); border-radius: 14px; background: #fff; color: var(--warm-ink); font-size: .94rem; }
.cr-ribbon { list-style: none; margin: 0; padding: 4px max(20px, calc((100vw - 1140px) / 2)) 22px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.cr-ribbon:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.cr-ribbon li { flex: 0 0 min(84vw, 320px); scroll-snap-align: start; padding: 24px; border-radius: var(--radius-lg); background: #fff; text-align: center; box-shadow: var(--shadow-sm); }
.cr-when { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 99px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; }
.cr-ribbon h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.cr-ribbon p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 639px) {
  .cr-hero { padding-top: calc(48px + var(--under, 0px)); padding-bottom: 60px; }
  .cr-rules, .cr-tiles-sec, .cr-relay-sec, .cr-story { padding-top: 60px; padding-bottom: 60px; }
  .cr-channels { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-msg { animation: none; }
}

/* Arjun's week: a grid on wide screens, a ribbon only on small ones */
@media (min-width: 1024px) {
  .cr-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: 1140px; margin: 0 auto; padding: 4px 20px 22px; }
}
