/* ============================================
   CollegeDreams Landing — Hero (v2)
   Replaces the full-width image slider. Loaded after landing.css and uses its
   colour tokens. The old slider styles are left in landing.css, unused, so the
   archived page in docs/landing-page-v1-slider/ still works if restored.
   ============================================ */

.cdx-hero {
    --cdx-ink: #0a1530;
    --cdx-ink-2: #10214a;
    --cdx-line: rgba(255, 255, 255, .1);
    --cdx-muted: #a9b6d3;

    position: relative;
    overflow: hidden;
    padding: 88px 0 40px;
    background: var(--cdx-ink);
    color: #fff;
    isolation: isolate;
}

/* Soft glows over a faint grid — depth without a photo */
.cdx-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 30%, rgba(37, 99, 235, .45) 0%, transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(249, 115, 22, .18) 0%, transparent 70%),
        linear-gradient(180deg, var(--cdx-ink) 0%, var(--cdx-ink-2) 100%);
}

.cdx-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--cdx-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--cdx-line) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
}

.cdx-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

/* --- Copy --- */
.cdx-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #dbe4f7;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 26px;
    transition: var(--transition);
}

.cdx-pill:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cdx-pill i { font-size: .72rem; opacity: .7; }

.cdx-pill__tag {
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--orange-500);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.cd-landing .cdx-hero__title {
    color: #fff;
    font-size: clamp(2.3rem, 4.6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.035em;
    margin: 0 0 22px;
}

.cdx-gradient-text {
    background: linear-gradient(90deg, #7fb2ff 0%, #b9d3ff 45%, var(--orange-400) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.cd-landing .cdx-hero__lead {
    color: var(--cdx-muted);
    font-size: 1.13rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 34px;
}

.cdx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.cdx-hero__actions .btn-cd-orange { box-shadow: 0 10px 30px rgba(249, 115, 22, .35); }

.cdx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cdx-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }

.cdx-hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    font-size: .9rem;
    color: #c6d1ea;
}

.cdx-hero__checks i { color: #34d399; margin-right: 6px; font-size: .8rem; }

/* --- Product preview --- */
.cdx-hero__visual {
    position: relative;
    padding: 28px 0 36px;
}

.cdx-window {
    position: relative;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08),
        0 40px 80px -20px rgba(0, 0, 0, .55),
        0 20px 40px -20px rgba(37, 99, 235, .45);
    overflow: hidden;
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    transform-origin: left center;
}

.cdx-window__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f1f4f9;
    border-bottom: 1px solid #e3e8f1;
}

.cdx-window__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d4dae5; }
.cdx-window__bar > span:nth-child(1) { background: #ff6159; }
.cdx-window__bar > span:nth-child(2) { background: #ffbd2e; }
.cdx-window__bar > span:nth-child(3) { background: #28c941; }

.cdx-window__url {
    margin: 0 auto;
    padding: 4px 16px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e3e8f1;
    font-size: .7rem;
    color: #6b7280;
}

.cdx-window__url i { color: #10b981; font-size: .62rem; margin-right: 4px; }

.cdx-app {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 330px;
    color: #1f2937;
    font-size: .74rem;
}

.cdx-app__side {
    padding: 14px 10px;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: #c7d6fb;
}

.cdx-app__brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    color: #fff;
    font-size: .8rem;
    padding: 2px 6px 14px;
}

.cdx-app__brand img { width: 20px; height: 20px; border-radius: 5px; background: #fff; }

.cdx-app__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    margin-bottom: 2px;
}

.cdx-app__nav i { width: 14px; text-align: center; font-size: .7rem; opacity: .85; }
.cdx-app__nav.is-active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }

.cdx-app__main { padding: 14px 16px; background: #f8fafc; }

.cdx-app__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cdx-app__head small { display: block; color: #6b7280; font-size: .66rem; }
.cdx-app__head strong { font-size: .92rem; color: #0f172a; }

.cdx-app__chip {
    padding: 4px 10px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: .64rem;
    color: #374151;
    white-space: nowrap;
}

.cdx-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.cdx-kpi {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 9px 10px;
}

.cdx-kpi small { display: block; color: #6b7280; font-size: .62rem; }
.cdx-kpi b { display: block; font-size: 1rem; color: #0f172a; letter-spacing: -.02em; margin: 2px 0 1px; }
.cdx-kpi em { font-style: normal; font-size: .6rem; font-weight: 600; }
.cdx-kpi em.up { color: #059669; }

.cdx-panels {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 8px;
}

.cdx-panel {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 10px;
}

.cdx-panel__title { font-weight: 700; color: #0f172a; margin-bottom: 8px; font-size: .72rem; }
.cdx-panel__title span { font-weight: 500; color: #9ca3af; }

.cdx-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 104px;
    padding-top: 4px;
    border-bottom: 1px solid #eef1f6;
}

.cdx-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
    transform-origin: bottom;
    animation: cdx-grow 1s cubic-bezier(.2, .7, .2, 1) both;
}

.cdx-bars i:nth-child(2) { animation-delay: .05s; }
.cdx-bars i:nth-child(3) { animation-delay: .1s; }
.cdx-bars i:nth-child(4) { animation-delay: .15s; }
.cdx-bars i:nth-child(5) { animation-delay: .2s; }
.cdx-bars i:nth-child(6) { animation-delay: .25s; }
.cdx-bars i:nth-child(7) { animation-delay: .3s; }
.cdx-bars i:nth-child(8) { animation-delay: .35s; }
.cdx-bars i.is-hi { background: linear-gradient(180deg, var(--orange-400) 0%, var(--orange-500) 100%); }

@keyframes cdx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.cdx-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid #f1f4f8;
}

.cdx-pay:first-of-type { border-top: 0; }
.cdx-pay b { display: block; font-size: .7rem; color: #111827; }
.cdx-pay small { color: #9ca3af; font-size: .6rem; }
.cdx-pay em { margin-left: auto; font-style: normal; font-weight: 700; color: #059669; font-size: .68rem; }

.cdx-av {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .56rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1d4ed8;
}

.cdx-av.o { background: #ffedd5; color: #c2410c; }
.cdx-av.g { background: #d1fae5; color: #047857; }

/* Floating notification cards */
.cdx-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px 11px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 40px -12px rgba(2, 8, 30, .45);
    color: #111827;
    animation: cdx-float 6s ease-in-out infinite;
    white-space: nowrap;
}

.cdx-float strong { display: block; font-size: .8rem; }
.cdx-float small { display: block; font-size: .7rem; color: #6b7280; }

.cdx-float__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.cdx-float__icon.green { background: #d1fae5; color: #059669; }
.cdx-float__icon.blue { background: #dbeafe; color: #2563eb; }
.cdx-float__icon.orange { background: #ffedd5; color: var(--orange-600); }

.cdx-float--pay { left: -34px; bottom: 6px; }
.cdx-float--verify { right: -18px; top: 0; animation-delay: -2s; }
.cdx-float--lina { right: 22px; bottom: -8px; animation-delay: -4s; }

@keyframes cdx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Module strip */
.cdx-modules {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #c6d1ea;
    font-size: .88rem;
    font-weight: 500;
}

.cdx-modules i { color: #7fb2ff; margin-right: 6px; }

.cdx-modules__label {
    width: 100%;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7d8bab;
    margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .cdx-float--pay { left: -8px; }
    .cdx-float--verify { right: -6px; }
}

@media (max-width: 1024px) {
    .cdx-hero { padding: 64px 0 36px; }
    .cdx-hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .cd-landing .cdx-hero__lead { margin-left: auto; margin-right: auto; }
    .cdx-hero__actions, .cdx-hero__checks { justify-content: center; }
    .cdx-hero__visual { max-width: 680px; margin: 0 auto; width: 100%; text-align: left; }
    .cdx-window { transform: none; }
}

@media (max-width: 640px) {
    .cdx-hero { padding: 48px 0 28px; }
    .cdx-app { grid-template-columns: 1fr; min-height: 0; }
    .cdx-app__side { display: none; }
    .cdx-panels { grid-template-columns: 1fr; }
    .cdx-bars { height: 76px; }
    .cdx-float--verify, .cdx-float--lina { display: none; }
    .cdx-float--pay { left: 50%; bottom: -4px; transform: translateX(-50%); animation: none; }
    .cdx-hero__actions { flex-direction: column; }
    .cdx-hero__actions a { width: 100%; justify-content: center; }
    .cdx-modules { gap: 8px 16px; font-size: .82rem; margin-top: 40px; }
}

@media (max-width: 400px) {
    .cdx-kpis { grid-template-columns: 1fr 1fr; }
    .cdx-kpi:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cdx-float, .cdx-bars i { animation: none; }
}

/* ============================================
   SHOWCASE PRODUCTS — Penney & Lina rows
   Sits on the original .cd-showcase rows from landing.css.
   ============================================ */
.cd-showcase .cd-section-header { max-width: 720px; }

.cdx-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.01em;
}

.cdx-product em {
    font-style: normal;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cdx-product__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
}

.cdx-product__logo.green { background: linear-gradient(135deg, #059669, #065f46); }
.cdx-product__logo.blue { background: linear-gradient(135deg, var(--blue-600), #0a1530); }

.cdx-product__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--blue-200);
    color: var(--blue-700);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    transition: var(--transition);
}

.cdx-product__link i { font-size: .75rem; transition: transform .2s ease; }
.cdx-product__link:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-700); }
.cdx-product__link:hover i { transform: translateX(3px); }

/* Preview cards laid over the existing showcase images */
.cdx-overlay {
    position: absolute;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .35);
    animation: cdx-float 6s ease-in-out infinite;
}

.cdx-overlay--wallet {
    left: -24px;
    bottom: -24px;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-left: 4px solid #059669;
}

.cdx-overlay--wallet small { font-size: .74rem; color: var(--gray-500); }
.cdx-overlay--wallet b { font-size: 1.45rem; letter-spacing: -.02em; color: var(--gray-900); }
.cdx-overlay--wallet span { margin-top: 2px; font-size: .78rem; font-weight: 600; color: #059669; }
.cdx-overlay--wallet span i { margin-right: 5px; }

.cdx-overlay--chat {
    right: -24px;
    bottom: -28px;
    width: min(340px, 80%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    font-size: .8rem;
    line-height: 1.45;
    animation-delay: -3s;
}

.cdx-overlay__q {
    align-self: flex-end;
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px 12px 4px 12px;
    background: var(--blue-600);
    color: #fff;
}

.cdx-overlay__a {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px 12px 12px 4px;
    background: var(--gray-100);
    color: var(--gray-800);
}

.cdx-overlay__avatar {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffedd5;
    color: var(--orange-600);
    font-size: .62rem;
}

.cdx-overlay__progress { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--gray-500); }
.cdx-overlay__progress i { flex: 1; height: 6px; border-radius: 6px; background: var(--gray-200); overflow: hidden; }
.cdx-overlay__progress i b { display: block; height: 100%; background: linear-gradient(90deg, #10b981, var(--blue-500)); }
.cdx-overlay__progress strong { color: #059669; }

@media (max-width: 1024px) {
    .cdx-overlay--wallet { left: 12px; }
    .cdx-overlay--chat { right: 12px; }
}

@media (max-width: 640px) {
    .cdx-overlay { animation: none; }
    .cdx-overlay--wallet { left: 10px; bottom: -18px; padding: 12px 14px; }
    .cdx-overlay--wallet b { font-size: 1.15rem; }
    .cdx-overlay--chat { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 10px 0; }
    .cd-showcase-row { margin-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
    .cdx-overlay { animation: none; }
}

/* ============================================
   "AND MUCH MORE" + FEATURE IDEAS
   ============================================ */
.cdx-more {
    margin-top: 56px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--gray-200);
}

.cdx-more__head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.cdx-more__head .cd-overline { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--orange-500); margin-bottom: 10px; }
.cd-landing .cdx-more__head h3 { font-size: 1.7rem; letter-spacing: -.02em; margin: 0 0 8px; }
.cd-landing .cdx-more__head p { margin: 0; }

.cdx-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cdx-group {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.cdx-group__head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }

.cdx-group__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
}

.cdx-group__icon.blue { background: var(--blue-100); color: var(--blue-600); }
.cdx-group__icon.green { background: #d1fae5; color: #059669; }
.cdx-group__icon.orange { background: #ffedd5; color: var(--orange-600); }
.cdx-group__icon.purple { background: #ede9fe; color: #7c3aed; }

.cdx-group ul { list-style: none; padding: 0; margin: 0; }

.cdx-group li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: .88rem;
    color: var(--gray-700);
}

.cdx-group li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
}

.cdx-idea {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff7ed 0%, var(--blue-50) 100%);
    border: 1px dashed var(--orange-400);
}

.cdx-idea__icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-500);
    color: #fff;
    font-size: 1.25rem;
}

.cdx-idea__text strong { display: block; color: var(--gray-900); font-size: 1.05rem; margin-bottom: 2px; }
.cdx-idea__text span { color: var(--gray-600); font-size: .92rem; }
.cdx-idea .btn-cd-primary { margin-left: auto; white-space: nowrap; }

/* ============================================
   SOCIAL — follow us
   ============================================ */
.cdx-social { padding: 0 0 100px; background: #fff; }

.cdx-social__box {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    gap: 36px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.cdx-social__copy .cd-overline { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-600); margin-bottom: 10px; }
.cd-landing .cdx-social__copy h2 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 10px; }
.cd-landing .cdx-social__copy p { margin: 0; }

@media (max-width: 1024px) {
    .cdx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdx-social__box { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cdx-more { padding: 26px 18px; margin-top: 40px; }
    .cdx-groups { grid-template-columns: 1fr; }
    .cdx-idea { flex-direction: column; text-align: center; }
    .cdx-idea .btn-cd-primary { margin-left: 0; width: 100%; }
    .cdx-social { padding-bottom: 70px; }
    .cdx-social__box { padding: 26px 18px; }
}

/* ============================================
   FOOTER — copyright + "Built by Modernware"
   ============================================ */
.cd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    color: #cbd5e1;
}

.cdx-builtby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #cbd5e1;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.cdx-builtby strong { color: var(--orange-400); font-weight: 700; letter-spacing: .1px; }
.cdx-builtby i { font-size: .7rem; color: #94a3b8; }
.cdx-builtby:hover { background: rgba(249, 115, 22, .12); border-color: var(--orange-400); color: #fff; }
.cdx-builtby:hover strong { color: #fff; }

/* The brand blurb inherited .cd-landing p (dark grey) and was unreadable on the dark footer. */
.cd-landing .cd-footer-brand p { color: #94a3b8; }

@media (max-width: 768px) {
    .cd-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   TRUST BAR — five stats (years in service added first)
   ============================================ */
.cd-trust-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.cdx-trust-years .trust-number { color: var(--orange-500); }

@media (max-width: 1024px) {
    .cd-trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .cd-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdx-trust-years { grid-column: 1 / -1; }
}

/* ============================================
   OUR STORY — heritage timeline
   ============================================ */
.cdx-story { padding: 100px 0; background: var(--gray-50); }

.cdx-story__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.cdx-story__intro .cd-overline { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--orange-500); margin-bottom: 12px; }
.cd-landing .cdx-story__intro h2 { font-size: 2.4rem; letter-spacing: -.03em; margin: 0 0 16px; }
.cd-landing .cdx-story__intro p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 28px; }

.cdx-story__since {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 14px 14px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.cdx-story__since-year {
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-700), #0a1530);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.cdx-story__since-label { font-weight: 700; color: var(--gray-700); max-width: 110px; line-height: 1.3; text-align: right; }

.cdx-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* the connecting line */
.cdx-timeline::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-600), var(--orange-400));
}

.cdx-timeline__item {
    position: relative;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 12px 0;
}

.cdx-timeline__year {
    position: relative;
    z-index: 1;
    flex: 0 0 80px;
    padding: 9px 0;
    border-radius: 50px;
    background: #fff;
    border: 2px solid var(--blue-600);
    color: var(--blue-700);
    font-weight: 800;
    font-size: .92rem;
    text-align: center;
}

.cdx-timeline__item > div {
    flex: 1;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--gray-200);
}

.cd-landing .cdx-timeline h4 { font-size: 1.05rem; margin: 0 0 4px; }
.cd-landing .cdx-timeline p { font-size: .9rem; margin: 0; }
.cdx-timeline p a { color: var(--orange-600); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cdx-timeline p a i { font-size: .72rem; margin-left: 2px; }

.cdx-timeline__item.is-next .cdx-timeline__year { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.cdx-timeline__item.is-next > div { border-style: dashed; border-color: var(--orange-400); background: #fff7ed; }

@media (max-width: 1024px) {
    .cdx-story__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .cdx-story { padding: 70px 0; }
    .cd-landing .cdx-story__intro h2 { font-size: 1.8rem; }
    .cdx-timeline::before { left: 31px; }
    .cdx-timeline__item { gap: 14px; }
    .cdx-timeline__year { flex-basis: 64px; font-size: .82rem; }
    .cdx-timeline__item > div { padding: 14px 16px; }
}
