/* ============================================================
   Circlebox public marketing pages.
   Palette is sampled from the logo: cyan #3CADE2 (also the
   Site.css primary), purple #9A5DA6 (wordmark), orange #F68820.
   Everything is scoped under .cb-home so it cannot leak into
   the member portal views.
   ============================================================ */

.cb-home {
    --cyan: #3CADE2;
    --purple: #9A5DA6;
    --purple-dk: #5B3363;
    --orange: #F68820;
    --ink: #1C1A24;
    --muted: #5F5A6B;
    --paper: #FBFAF8;
    --line: #E7E3DC;
    font-family: 'Figtree', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

.cb-home h1,
.cb-home h2,
.cb-home h3 {
    font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.cb-home p { color: var(--muted); }
.cb-home section { position: relative; }

.cb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.cb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1.1rem;
}

.cb-eyebrow::before {
    content: "";
    width: 22px;
    height: 10px;
    border: 2px solid var(--orange);
    border-radius: 3px;
    display: inline-block;
}

/* ---------------------------- hero ---------------------------- */
.cb-hero {
    padding: 88px 0 96px;
    background: radial-gradient(900px 420px at 78% 8%, rgba(60,173,226,.13), transparent 62%), radial-gradient(700px 380px at 8% 92%, rgba(154,93,166,.10), transparent 60%), var(--paper);
    border-bottom: 1px solid var(--line);
}

/* faint graph-paper grid, faded out at the edges */
.cb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(28,26,36,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(28,26,36,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(900px 500px at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(900px 500px at 50% 40%, #000 30%, transparent 78%);
}

.cb-hero .cb-wrap { position: relative; z-index: 1; }
.cb-hero h1 { font-size: clamp(2.3rem, 4vw, 3.25rem); margin-bottom: 1.25rem; }

.cb-hero h1 .accent {
    color: var(--purple);
    background: linear-gradient(rgba(246,136,32,.26), rgba(246,136,32,.26)) no-repeat;
    background-size: 100% .32em;
    background-position: 0 .78em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cb-lead { font-size: 1.18rem; line-height: 1.6; max-width: 33rem; }

.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.7rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease;
}

.cb-btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 -2px rgba(28,26,36,.22); }
.cb-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 0 -3px rgba(28,26,36,.22); }
.cb-btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.cb-btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.cb-microtrust {
    margin-top: 1.6rem;
    font-size: .9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.cb-microtrust b { color: var(--ink); }

/* hero artwork: a portal card sitting on the logo's circle + box */
.cb-stage { position: relative; max-width: 470px; margin-inline: auto; }
.cb-stage .deco { position: absolute; z-index: 0; pointer-events: none; }

.cb-stage .ring {
    width: 260px;
    height: 260px;
    right: -64px;
    top: -58px;
    border: 2.5px solid var(--cyan);
    border-radius: 50%;
}

.cb-stage .sq {
    width: 210px;
    height: 210px;
    left: -72px;
    bottom: -62px;
    border: 2.5px solid var(--orange);
    border-radius: 34px;
    transform: rotate(-11deg);
}

.cb-portal {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 60px -28px rgba(28,26,36,.42), 0 2px 6px rgba(28,26,36,.05);
    overflow: hidden;
}

.cb-portal .phd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: #FDFCFB;
}

.cb-portal .phd img { height: 24px; display: block; }
.cb-portal .pdots { display: flex; gap: 6px; }
.cb-portal .pdots i { width: 9px; height: 9px; border-radius: 50%; background: #DFDAD3; }

.cb-portal .porg {
    padding: .9rem 1.2rem .2rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #A9A3B2;
}

.cb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    padding: .6rem 1.2rem 1.1rem;
}

.cb-stat { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem; background: #FDFCFB; }
.cb-stat .k { font-size: .72rem; font-weight: 700; color: #8E8899; letter-spacing: .03em; }

.cb-stat .v {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.15;
    margin-top: .15rem;
    color: var(--ink);
}

.cb-rows { border-top: 1px solid var(--line); padding: .35rem 0 .5rem; }

.cb-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem 1.2rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
}

.cb-row + .cb-row { border-top: 1px solid #F3F0EC; }
.cb-row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cb-row .st { margin-left: auto; font-size: .8rem; font-weight: 700; color: #8E8899; }

/* ------------------------ the patchwork ------------------------ */
.cb-band { padding: 92px 0; border-bottom: 1px solid var(--line); background: #fff; }
.cb-h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.cb-sub { font-size: 1.06rem; max-width: 34rem; }

.cb-mess { position: relative; height: 250px; }

.cb-mess .pill {
    position: absolute;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: .55rem .95rem;
    font-size: .92rem;
    font-weight: 600;
    color: #8C8796;
    box-shadow: 0 3px 12px rgba(28,26,36,.07);
    white-space: nowrap;
}

.cb-mess .pill::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 52%;
    height: 1.5px;
    background: #C9C4D0;
}

.cb-mess .p1 { top: 4%;  left: 2%;  transform: rotate(-8deg); }
.cb-mess .p2 { top: 26%; left: 40%; transform: rotate(6deg); }
.cb-mess .p3 { top: 50%; left: 6%;  transform: rotate(4deg); }
.cb-mess .p4 { top: 72%; left: 36%; transform: rotate(-5deg); }
.cb-mess .p5 { top: 2%;  left: 52%; transform: rotate(11deg); }

.cb-order {
    border: 2px solid var(--cyan);
    border-radius: 22px;
    background: #fff;
    padding: 1.5rem 1.6rem 1.7rem;
    box-shadow: 0 16px 40px -18px rgba(60,173,226,.55);
}

.cb-order .hd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.cb-order img { height: 30px; display: block; }

.cb-order .hd span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #A9A3B2;
}

.cb-order ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .62rem; }
.cb-order li { display: flex; align-items: center; gap: .65rem; font-weight: 600; color: var(--ink); font-size: .97rem; }
.cb-order li svg { flex: none; }

.cb-arrow { display: flex; align-items: center; justify-content: center; color: var(--purple); }

/* -------------------------- features -------------------------- */
.cb-feat { padding: 92px 0; border-bottom: 1px solid var(--line); }

.cb-fcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.7rem 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.cb-fcard:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px -22px rgba(28,26,36,.45); }

.cb-fcard::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: var(--c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.cb-fcard:hover::after { transform: scaleX(1); }

.cb-ficon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    margin-bottom: 1.1rem;
}

.cb-fnum {
    position: absolute;
    top: 1.3rem;
    right: 1.4rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: #CFC9D6;
    letter-spacing: .04em;
}

.cb-fcard h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.cb-fcard p { font-size: .95rem; margin: 0; line-height: 1.55; }

/* -------------------------- why band -------------------------- */
.cb-dark { padding: 88px 0; background: var(--purple-dk); color: #fff; position: relative; overflow: hidden; }

.cb-dark::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.09);
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
}

.cb-dark::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 70px;
    border: 2px solid rgba(246,136,32,.20);
    right: -150px;
    top: 50%;
    transform: translateY(-50%) rotate(16deg);
}

.cb-dark h2 { color: #fff; }
.cb-dark p { color: rgba(255,255,255,.72); }
.cb-why { display: flex; gap: 1.1rem; align-items: flex-start; }

.cb-why .n {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    background: rgba(255,255,255,.10);
    border: 1.5px solid rgba(255,255,255,.22);
    color: #fff;
}

.cb-why h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #fff; }
.cb-why p { font-size: .95rem; margin: 0; }

/* -------------------------- use cases -------------------------- */
.cb-use { padding: 92px 0; border-bottom: 1px solid var(--line); }

.cb-ucard {
    border: 1px solid var(--line);
    border-left: 4px solid var(--c);
    border-radius: 16px;
    background: #fff;
    padding: 1.7rem 1.5rem;
    height: 100%;
}

.cb-utag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c);
    background: var(--bg);
    padding: .3rem .6rem;
    border-radius: 6px;
    margin-bottom: .9rem;
}

.cb-ucard h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.cb-ucard p { font-size: .96rem; margin: 0; line-height: 1.55; }

/* ======================= about page pieces ======================= */

/* centred hero variant, with the circle/box motif flanking the text */
.cb-hero-sm { padding: 76px 0 80px; text-align: center; }
.cb-hero-sm .cb-lead { margin-inline: auto; }
.cb-hero-sm .cb-eyebrow { justify-content: center; }

.cb-hero-sm::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2.5px solid rgba(60,173,226,.35);
    border-radius: 50%;
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.cb-hero-sm .cb-boxdeco {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 2.5px solid rgba(246,136,32,.38);
    border-radius: 40px;
    right: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(13deg);
    pointer-events: none;
}

/* figure strip */
.cb-statstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cb-statstrip .cb-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cb-fig {
    padding: 2.2rem 1rem;
    text-align: center;
    border-left: 1px solid var(--line);
}

.cb-fig:first-child { border-left: 0; }

.cb-fig .n {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--purple);
}

.cb-fig .l {
    margin-top: .5rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8E8899;
}

/* story artwork — nested circle + box, echoing the logo */
.cb-storyart {
    position: relative;
    aspect-ratio: 1 / .92;
    max-width: 420px;
    margin-inline: auto;
}

.cb-storyart span {
    position: absolute;
    display: block;
    border-radius: 50%;
    border: 2.5px solid var(--cyan);
}

.cb-storyart .s1 { inset: 0; }
.cb-storyart .s2 { inset: 14% 14% 14% 14%; border-color: rgba(60,173,226,.45); }
.cb-storyart .s3 { inset: 28% 28% 28% 28%; border-color: rgba(60,173,226,.25); }

.cb-storyart .sbox {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34%;
    height: 34%;
    transform: translate(-50%,-50%) rotate(-12deg);
    border: 2.5px solid var(--orange);
    border-radius: 22px;
    background: #fff;
}

.cb-storyart .sdot {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 6px rgba(154,93,166,.15);
}

.cb-storyart .d1 { top: -8px; left: 50%; margin-left: -7px; }
.cb-storyart .d2 { bottom: 16%; right: -7px; background: var(--orange); box-shadow: 0 0 0 6px rgba(246,136,32,.15); }
.cb-storyart .d3 { bottom: 16%; left: -7px; background: var(--cyan); box-shadow: 0 0 0 6px rgba(60,173,226,.15); }

/* pull quote inside the dark band */
.cb-quote {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.24;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 1.4rem;
}

.cb-quote-by { font-size: .95rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* milestones */
.cb-tl { position: relative; padding-left: 2rem; }

.cb-tl::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: linear-gradient(var(--cyan), rgba(60,173,226,.15));
}

.cb-tlitem { position: relative; padding-bottom: 2.1rem; }
.cb-tlitem:last-child { padding-bottom: 0; }

.cb-tlitem::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: .38rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--cyan);
}

.cb-tlitem .yr {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .08em;
    color: var(--orange);
    text-transform: uppercase;
}

.cb-tlitem h3 { font-size: 1.1rem; margin: .3rem 0 .4rem; }
.cb-tlitem p { font-size: .95rem; margin: 0; line-height: 1.55; }

/* people */
.cb-person {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    text-align: center;
}

.cb-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 2px solid var(--c);
}

.cb-person h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.cb-person .role { font-size: .86rem; font-weight: 600; color: var(--c); margin-bottom: .6rem; }
.cb-person p { font-size: .92rem; margin: 0; line-height: 1.5; }

@media (max-width: 767px) {
    .cb-statstrip .cb-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-fig:nth-child(3) { border-left: 0; }
    .cb-fig { border-top: 1px solid var(--line); }
    .cb-fig:nth-child(-n+2) { border-top: 0; }

    /* the flanking circle/box would cut straight through the headline here */
    .cb-hero-sm::after,
    .cb-hero-sm .cb-boxdeco { display: none; }
}

/* ----------------------------- cta ----------------------------- */
.cb-cta {
    padding: 92px 0;
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: radial-gradient(620px 300px at 50% 42%, rgba(60,173,226,.20), transparent 70%), radial-gradient(420px 240px at 50% 100%, rgba(246,136,32,.15), transparent 72%);
}

.cb-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.09) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(660px 320px at 50% 50%, transparent 42%, #000 78%);
    mask-image: radial-gradient(660px 320px at 50% 50%, transparent 42%, #000 78%);
}

.cb-cta .cb-wrap { position: relative; z-index: 1; }
.cb-cta h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: .9rem; }
.cb-cta p { color: rgba(255,255,255,.72); font-size: 1.1rem; margin-bottom: 2rem; }
.cb-cta .cb-btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 0 -2px rgba(246,136,32,.4); }
.cb-cta .cb-btn-orange:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 0 -3px rgba(246,136,32,.4); }
.cb-cta .cb-btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.cb-cta .cb-btn-ghost:hover { background: #fff; color: var(--ink); }

/* --------------------------- footer --------------------------- */
.cb-foot {
    padding: 34px 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.55);
    font-size: .9rem;
}

.cb-foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.cb-foot a:hover { color: #fff; }

@media (max-width: 991px) {
    .cb-hero { padding: 56px 0 72px; }
    .cb-stage { max-width: 420px; margin-top: 3.5rem; }
    .cb-mess { height: 210px; margin-bottom: 1rem; }
    .cb-arrow { transform: rotate(90deg); margin: .5rem 0; }
    .cb-band, .cb-feat, .cb-use, .cb-dark, .cb-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cb-home * { transition: none !important; }
}
