/* ==========================================================================
   HyperHat landing — CodeRabbit-direction marketing surface.
   Scoped to html.cr (set by templates/index.html). Warm stone (not white),
   oxblood ink, cream shot frames, per-character phrase cycle, auto-advancing
   feature stage. Everything is token driven.
   ========================================================================== */

html.cr {
    /* Neutrals — warm stone, a step above cream, never paper-white */
    --cr-bg: #e4ddd4;
    --cr-bg-2: #efe9e2;
    --cr-bg-3: #d8d0c6;
    --cr-bg-4: #c9c0b5;
    --cr-line: rgba(28, 23, 20, 0.08);
    --cr-line-2: rgba(28, 23, 20, 0.11);
    --cr-line-3: rgba(28, 23, 20, 0.16);
    --cr-line-4: rgba(28, 23, 20, 0.22);
    --cr-text: #1c1714;
    --cr-text-2: #5c554e;
    --cr-text-3: #7a736b;
    --cr-text-4: #9a9289;
    --cr-on-accent: #f7f1ea;

    /* Accents — true oxblood + deepened green for cream contrast */
    --cr-accent: #7A2E2E;
    --cr-accent-strong: #9b3c3c;
    --cr-accent-fill: #7A2E2E;
    --cr-green: #0e7d5f;
    --cr-add: #1a8f6c;
    --cr-add-bg: #d4eee4;
    --cr-del: #c4473d;
    --cr-del-bg: #f3d6d2;
    --cr-amber: #b56b00;
    --cr-blue: #2d5aaf;
    --cr-indigo: #3d4ea8;
    --cr-cream: #d7ccc1;
    --cr-cream-2: #e8e0d6;

    /* Re-point the shared system tokens so nav, footer, modals and loader
       inherit the landing palette without their own overrides. */
    --background: var(--cr-bg);
    --foreground: var(--cr-text);
    --muted: var(--cr-bg-2);
    --muted-foreground: var(--cr-text-2);
    --popover: var(--cr-bg-2);
    --popover-foreground: var(--cr-text);
    --card: var(--cr-bg-2);
    --card-foreground: var(--cr-text);
    --border: var(--cr-line-2);
    --border-strong: var(--cr-line-4);
    --input: var(--cr-bg-2);
    --primary: var(--cr-accent-fill);
    --primary-foreground: var(--cr-on-accent);
    --secondary: var(--cr-bg-3);
    --secondary-foreground: var(--cr-text);
    --accent: var(--cr-bg-3);
    --accent-foreground: var(--cr-text);
    --ring: var(--cr-accent);
    --brand: var(--cr-accent);
    --brand-soft: #efe0d8;
    --brand-tint: #efe0d8;
    --brand-ink: var(--cr-accent);
    --display-ink: var(--cr-text);

    --cr-container: 75rem;
    --cr-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --cr-radius: 0.5rem;
    --cr-radius-lg: 0.75rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --nav-h: 3.5rem;
    color-scheme: light;
}
@media (min-width: 48rem) { html.cr { --nav-h: 4.75rem; } }

html.cr body { background: var(--cr-bg); color: var(--cr-text); overflow-x: clip; }
html.cr ::selection { background: var(--cr-accent-fill); color: var(--cr-on-accent); }
html.cr .hh-theme-toggle { display: none; }
html.cr .page-loader { background: var(--cr-bg); }
html.cr .page-loader-dot { background: var(--cr-text); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
html.cr #main-nav {
    background: rgba(228, 221, 212, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cr-line);
}
html.cr #main-nav-shell {
    max-width: var(--cr-container);
    padding-inline: 1.5rem;
}
html.cr #main-nav-inner { position: relative; }
html.cr .main-nav-desktop-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 0.25rem;
}
html.cr .brand-lockup__mark { width: 2rem; height: 2rem; }
html.cr .brand-lockup__name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--cr-text);
}
html.cr .tab {
    height: 2.25rem;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--cr-text-2);
    border-radius: var(--cr-radius);
}
html.cr .tab:hover { color: var(--cr-text); background: rgba(28, 23, 20, 0.05); }
html.cr #main-nav .tab.active::after { display: none; }
html.cr #main-nav-inner > div:last-child { padding-right: 0; }
/* Nav Log in / CTA take the raised treatment from hh-system.css. */
html.cr .nav-cta-block { margin-left: 0.5rem; gap: 0.375rem; }
html.cr .nav-cta-block .hh-btn__chev { display: none; }
html.cr .nav-cta-block::after {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M2 8a.75.75 0 0 1 .75-.75h8.69L8.22 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06-1.06l3.22-3.22H2.75A.75.75 0 0 1 2 8Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M2 8a.75.75 0 0 1 .75-.75h8.69L8.22 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06-1.06l3.22-3.22H2.75A.75.75 0 0 1 2 8Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s var(--cr-ease);
}
html.cr .nav-cta-block:hover::after { transform: translateX(2px); }
html.cr #main-nav .hh-btn--primary.hh-btn--sm {
    background: var(--cr-accent-fill);
    color: var(--cr-on-accent);
    border-color: #5e2121;
}
html.cr .mobile-menu { background: var(--cr-bg); }
html.cr #user-menu-btn {
    color: var(--cr-text);
    background: transparent;
    border-color: transparent;
}
html.cr #user-menu-btn:hover,
html.cr #user-menu-btn[aria-expanded="true"] {
    color: var(--cr-text);
    background: rgba(28, 23, 20, 0.05);
    border-color: transparent;
}
html.cr #user-menu-btn svg { color: var(--cr-text-3); }
html.cr #user-dropdown {
    border-color: var(--cr-line-3);
    background: var(--cr-bg-2);
    border-radius: var(--cr-radius-lg);
}
html.cr #user-dropdown .hh-menu-item--danger { color: var(--cr-accent); }
html.cr #user-dropdown .hh-menu-item--danger:hover {
    color: var(--cr-accent-strong);
    background: rgba(122, 46, 46, 0.22);
}

/* Announcement bar */
.cr-announce {
    position: relative;
    z-index: 51;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 3rem;
    background: var(--cr-bg-2);
    border-bottom: 1px solid var(--cr-line);
    font-size: 0.875rem;
    color: var(--cr-text);
    text-align: center;
}
.cr-announce strong { font-weight: 500; }
.cr-announce__short { display: none; }
.cr-announce a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--cr-accent);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.cr-announce a:hover { color: var(--cr-accent-strong); }
.cr-announce__x {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-text-3);
    background: transparent;
    border: 0;
    border-radius: var(--cr-radius);
    cursor: pointer;
}
.cr-announce__x:hover { color: var(--cr-text); background: rgba(28, 23, 20, 0.06); }
.cr-announce.is-hidden { display: none; }
@media (max-width: 40rem) {
    .cr-announce {
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        font-size: 0.8125rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        white-space: nowrap;
    }
    .cr-announce__full { display: none; }
    .cr-announce__short { display: inline; }
    .cr-announce a { white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */
.cr-container {
    width: 100%;
    max-width: var(--cr-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.cr-eyebrow {
    display: block;
    margin: 0 0 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cr-green);
}
.cr-h1 {
    margin: 0;
    max-width: 100%;
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 4.2vw, 4.25rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--cr-text);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.cr-h1__line {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}
@media (max-width: 40rem) { .cr-h1__line { display: inline; } }
/* Even lines for the long hero headline at every width (no lone last word). */
.cr-hero .cr-h1 { text-wrap: balance; }
/* In the two-column hero, keep the display size from crowding the aside,
   but never below the section headings (.cr-h2). */
@media (min-width: 64rem) and (max-width: 90rem) {
    .cr-hero .cr-h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
}
.cr-h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--cr-text);
}
.cr-h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cr-text);
}
.cr-lede {
    margin: 1.25rem 0 0;
    max-width: 40rem;
    font-size: 1.1875rem;
    line-height: 1.5;
    color: var(--cr-text-2);
}
.cr-p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--cr-text-2); }
.cr-mono { font-family: var(--font-mono); }

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.875rem;
    border: 1px solid transparent;
    border-radius: 0.4375rem;
    box-shadow: 0 3px 0 0 var(--hh-btn-edge, var(--hh-edge));
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.cr-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--hh-btn-edge, var(--hh-edge)); }
.cr-btn:active { transform: translateY(3px); box-shadow: none; }
.cr-btn__arrow {
    display: inline-flex;
    flex: none;
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s var(--cr-ease);
}
.cr-btn__arrow svg { display: block; width: 1rem; height: 1rem; }
.cr-btn:hover .cr-btn__arrow { transform: translateX(2px); }
.cr-btn--white,
.cr-btn--accent { --hh-btn-edge: #3f1515; background: var(--cr-accent-fill); border-color: #5e2121; color: var(--cr-on-accent); }
.cr-btn--white:hover,
.cr-btn--accent:hover { background: var(--cr-accent-strong); }
.cr-btn--ghost { background: #fffdfa; border-color: var(--cr-line-3); color: var(--cr-text); }
.cr-btn--ghost:hover { background: #fff; border-color: var(--cr-line-4); }
.cr-btn--sm { height: 2rem; min-height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }

.cr-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cr-accent);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}
.cr-link:hover { color: var(--cr-accent-strong); }
.cr-link .cr-btn__arrow { width: 0.875rem; height: 0.875rem; transition: transform 0.2s var(--cr-ease); }
.cr-link .cr-btn__arrow svg { width: 0.875rem; height: 0.875rem; }
.cr-link:hover .cr-btn__arrow { transform: translateX(2px); }

.cr-section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.cr-section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--cr-ease), transform 0.8s var(--cr-ease);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.cr-hero { position: relative; padding-top: clamp(3.5rem, 9vw, 8.5rem); overflow: hidden; }
.cr-hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
/* Two columns only when there is real room for the cycling headline + aside. */
@media (min-width: 64rem) {
    .cr-hero__intro {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
        gap: clamp(1.5rem, 3vw, 3rem);
        column-gap: clamp(1.75rem, 4vw, 3.5rem);
    }
}
.cr-hero__copy {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.cr-hero__aside {
    min-width: 0;
    max-width: 100%;
    padding-top: 0.25rem;
}
@media (min-width: 64rem) { .cr-hero__aside { padding-top: 2.75rem; } }
/* Single column: the buttons follow the description instead of sitting
   between the headline and it. The copy column dissolves into the intro so
   its children can be reordered around the aside. */
@media (max-width: 63.99rem) {
    .cr-hero__intro { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .cr-hero__copy { display: contents; }
    .cr-hero__aside { order: 1; margin-top: 1.25rem; padding-top: 0; }
    .cr-hero__actions { order: 2; }
}
.cr-hero__aside p {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.45;
    color: var(--cr-text);
    overflow-wrap: break-word;
}
.cr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
    margin-top: 1.75rem;
    /* Room for the raised buttons' bottom edge; .cr-hero__copy clips overflow. */
    padding-bottom: 0.375rem;
}
.cr-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cr-text-3);
}

/* --------------------------------------------------------------------------
   Public /teams. Same stone, oxblood and cream frames as the home page; every
   product picture here is a drawing in these tokens, never the app's own CSS.
   -------------------------------------------------------------------------- */
.cr-hero--teams {
    padding-top: clamp(2.75rem, 7vw, 5.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    overflow: visible;
}
.cr-tm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 64rem) {
    .cr-tm-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); }
}
.cr-hero--teams .cr-h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.cr-hero--teams .cr-lede { margin-top: 1.125rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.5; text-wrap: pretty; }
.cr-hero--teams .cr-hero__actions { margin-top: 1.625rem; padding-bottom: 0.375rem; }
.cr-tm-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--cr-line-2);
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--cr-text-2);
}
.cr-tm-hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.cr-tm-hero__facts svg { flex: none; color: var(--cr-text-3); }

/* The hero picture: a team's results, drawn. */
.cr-tm-shot { padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem) 0; min-height: 0; }
.cr-tm-shot .cr-shot__inner { background: #fffdfa; }
.cr-tm-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--cr-line-2);
}
.cr-tm-kpis > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.875rem 1rem 0.75rem;
    border-left: 1px solid var(--cr-line-2);
}
.cr-tm-kpis > div:first-child { border-left: 0; }
.cr-tm-kpis strong {
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--cr-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cr-tm-kpis strong small { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; color: var(--cr-text-3); letter-spacing: 0; }
.cr-tm-kpis strong.is-up { color: var(--cr-green); }
.cr-tm-kpis strong.is-word { font-size: 1.125rem; letter-spacing: -0.02em; white-space: normal; }
.cr-tm-kpis > div > span:last-child { font-size: 0.75rem; color: var(--cr-text-2); }
/* Each skill: engineers on HyperHat as bars toned by band, the team's typical engineer pinned. */
.cr-tm-hrows { padding: 0.375rem 0 0.25rem; }
.cr-tm-hrow {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) 4rem;
    gap: 0.875rem;
    align-items: end;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--cr-text-2);
}
.cr-tm-hrow:first-child { padding-top: 1.375rem; } /* room for the pin's label */
.cr-tm-hrow + .cr-tm-hrow { border-top: 1px solid var(--cr-line); }
.cr-tm-hrow__name { min-width: 0; padding-bottom: 0.125rem; line-height: 1.25; }
.cr-tm-hrow__score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cr-tm-hrow__score strong { color: var(--cr-text); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-tm-hrow__score small { margin-top: 0.15rem; font-size: 0.6875rem; color: var(--cr-text-3); white-space: nowrap; }
.cr-tm-mini {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 1.875rem;
    border-bottom: 1px solid var(--cr-line-4);
}
.cr-tm-mini > i {
    flex: 1 1 0;
    min-width: 0;
    height: var(--h);
    border-radius: 1px 1px 0 0;
    background: var(--cr-bg-4);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.8s var(--cr-ease) var(--bd, 0s);
}
.cr-tm-mini > i.is-solid { background: #a9cdbc; }
.cr-tm-mini > i.is-strong { background: #6faa8e; }
.is-in .cr-tm-mini > i { transform: scaleY(1); }
.cr-tm-mini__pin {
    position: absolute;
    left: var(--x);
    bottom: -3px;
    height: calc(100% + 3px);
    border-left: 2px solid var(--cr-text);
    transform: translateX(-1px);
}
.cr-tm-mini__pin::after {
    content: "";
    position: absolute;
    left: -4.5px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cr-text);
    box-shadow: 0 0 0 1.5px #fffdfa;
}
.cr-tm-mini__pin > span {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cr-text);
    white-space: nowrap;
    transform: translateX(-50%);
}
.cr-tm-shot__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
    padding: 0.625rem 1rem 0.875rem;
    border-top: 1px solid var(--cr-line-2);
    background: var(--cr-bg-2);
    font-size: 0.75rem;
    color: var(--cr-text-3);
}
.cr-tm-shot__foot .cr-mono { font-size: 0.6875rem; }
.cr-tm-legend { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; }
.cr-tm-legend i { display: inline-block; vertical-align: middle; margin-right: 0.375rem; }
.cr-tm-legend .is-bars { width: 12px; height: 9px; border-radius: 1px; background: linear-gradient(90deg, var(--cr-bg-4) 0 33%, #a9cdbc 33% 66%, #6faa8e 66%); }
.cr-tm-legend .is-pin { width: 2px; height: 11px; background: var(--cr-text); }
@media (max-width: 40rem) {
    .cr-tm-shot { padding: 0.875rem 0.875rem 0; }
    .cr-tm-kpis > div { padding: 0.75rem 0.75rem 0.625rem; }
    .cr-tm-kpis strong { font-size: 1.375rem; }
    .cr-tm-kpis > div > span:last-child { font-size: 0.6875rem; }
    .cr-tm-hrow { grid-template-columns: 6.75rem minmax(0, 1fr) 3.25rem; gap: 0.5rem; padding-inline: 0.75rem; font-size: 0.6875rem; }
    /* Three across is too tight for a skill's name: the count takes the top row. */
    .cr-tm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cr-tm-kpis > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--cr-line-2); }
    .cr-tm-kpis > div:nth-child(2) { border-left: 0; }
    .cr-tm-kpis strong.is-word { font-size: 1rem; }
    .cr-tm-legend { margin-left: 0; }
}

/* Section heads: eyebrow, heading, lede, in one measure. */
.cr-tm-head { max-width: 44rem; }
.cr-tm-head .cr-lede { max-width: 40rem; }

/* How it works: four numbered steps. */
.cr-tm-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 0;
    counter-reset: step;
}
.cr-tm-steps > li {
    position: relative;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.125rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 12px;
    background: #fffdfa;
}
.cr-tm-steps > li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--cr-accent);
}
.cr-tm-steps h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--cr-text); }
.cr-tm-steps p { margin: 0.4rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-tm-steps small { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cr-text-3); }
@media (max-width: 64rem) { .cr-tm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .cr-tm-steps { grid-template-columns: minmax(0, 1fr); } }

/* The six skills: intro on the left, one row per skill on the right. */
.cr-tm-skills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60rem) {
    .cr-tm-skills { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
    .cr-tm-skills__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.cr-tm-skills__intro .cr-lede { font-size: 1.0625rem; }
.cr-tm-skills__intro .cr-p { margin-top: 1.25rem; font-size: 0.875rem; color: var(--cr-text-3); }
.cr-tm-skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cr-line-2); }
.cr-tm-skill { padding: 1.25rem 0; border-bottom: 1px solid var(--cr-line-2); }
.cr-tm-skill__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 0.75rem; }
.cr-tm-skill h3 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--cr-text); }
.cr-tm-skill__tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cr-text-3);
}
.cr-tm-skill__tag.is-result { color: var(--cr-accent); }
.cr-tm-skill > p { margin: 0.4rem 0 0; max-width: 36rem; font-size: 0.9375rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-tm-skill__ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0.875rem 0 0; }
.cr-tm-skill__ex > p {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--cr-text);
}
.cr-tm-skill__ex b { display: block; margin-bottom: 0.1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cr-tm-skill__ex .is-strong { background: color-mix(in srgb, var(--cr-green) 11%, #fffdfa); }
.cr-tm-skill__ex .is-strong b { color: var(--cr-green); }
.cr-tm-skill__ex .is-weak { background: color-mix(in srgb, var(--cr-del) 10%, #fffdfa); }
.cr-tm-skill__ex .is-weak b { color: var(--cr-del); }
@media (max-width: 36rem) { .cr-tm-skill__ex { grid-template-columns: minmax(0, 1fr); } }

/* The team report: each part drawn as the tile it is on the page. */
.cr-tm-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    margin-top: 2.25rem;
}
.cr-tm-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.125rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 12px;
    background: #fffdfa;
}
.cr-tm-tile--wide { grid-column: span 2; }
.cr-tm-tile--full { grid-column: 1 / -1; }
.cr-tm-rows--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cr-tm-tile h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--cr-text); }
.cr-tm-tile > p { margin: 0.35rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-tm-tile__viz { margin-top: auto; padding-top: 1rem; }
.cr-tm-tile__foot { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--cr-text-3); }
@media (max-width: 64rem) {
    .cr-tm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cr-tm-tile--wide { grid-column: span 2; }
}
@media (max-width: 40rem) {
    .cr-tm-bento { grid-template-columns: minmax(0, 1fr); }
    .cr-tm-tile--wide { grid-column: auto; }
    .cr-tm-rows--split { grid-template-columns: minmax(0, 1fr); }
}

/* Change since the last benchmark: before, after, verdict. */
.cr-tm-change { display: grid; gap: 0.375rem; }
.cr-tm-change > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 8px;
    background: var(--cr-bg-2);
    font-size: 0.8125rem;
    color: var(--cr-text);
}
.cr-tm-change .cr-mono { font-size: 0.75rem; color: var(--cr-text-3); white-space: nowrap; }
.cr-tm-change .cr-mono b { color: var(--cr-text); font-weight: 600; }
.cr-tm-change .cr-mono i { font-style: normal; margin: 0 0.3rem; }
@media (max-width: 40rem) {
    .cr-tm-change > div { grid-template-columns: minmax(0, 1fr) auto; gap: 0.375rem 0.75rem; }
    .cr-tm-change > div > span:first-child { grid-column: 1 / -1; }
}

/* How a session is spent: one stacked bar. */
.cr-tm-mix { display: flex; height: 1.75rem; gap: 2px; border-radius: 6px; overflow: hidden; }
.cr-tm-mix > i { display: block; height: 100%; flex: var(--f); background: var(--c); }
.cr-tm-mix__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; margin: 0.875rem 0 0; padding: 0; list-style: none; }
.cr-tm-mix__key li { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.8125rem; color: var(--cr-text-2); }
.cr-tm-mix__key i { flex: none; width: 0.625rem; height: 0.625rem; border-radius: 2px; background: var(--c); align-self: center; }
.cr-tm-mix__key b { color: var(--cr-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Where the team is strong and weak: engineers on HyperHat as bars, the team pinned on them. */
.cr-tm-hist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--cr-text); }
.cr-tm-hist__score { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; color: var(--cr-text-3); }
.cr-tm-hist__score b { font-family: var(--font-sans); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em; color: var(--cr-text); }
.cr-tm-hist__plot {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 7rem;
    margin-top: 1.75rem;
    border-bottom: 1px solid var(--cr-line-4);
}
.cr-tm-hist__plot > i {
    flex: 1 1 0;
    min-width: 0;
    height: var(--h);
    border-radius: 2px 2px 0 0;
    background: var(--cr-bg-4);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.8s var(--cr-ease) var(--d, 0s);
}
.cr-tm-hist__plot > i.is-solid { background: #a9cdbc; }
.cr-tm-hist__plot > i.is-strong { background: #6faa8e; }
.is-in .cr-tm-hist__plot > i { transform: scaleY(1); }
.cr-tm-hist__pin {
    position: absolute;
    left: var(--x);
    bottom: -4px;
    height: calc(100% + 4px);
    border-left: 2px solid var(--cr-text);
    transform: translateX(-1px);
}
.cr-tm-hist__pin::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cr-text);
    box-shadow: 0 0 0 2px #fffdfa;
}
.cr-tm-hist__pin > span {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cr-text);
    white-space: nowrap;
    transform: translateX(-50%);
}
.cr-tm-hist__axis { position: relative; height: 1.125rem; margin-top: 0.4rem; }
.cr-tm-hist__axis > span {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--cr-text-3);
    white-space: nowrap;
}
@media (max-width: 30rem) { .cr-tm-hist__axis > span { font-size: 0.6875rem; } }
@media (prefers-reduced-motion: reduce) { .cr-tm-hist__plot > i, .cr-tm-mini > i { transform: none; transition: none; } }

/* Habits, targets, delegation: a line of text and a count or a verdict. */
.cr-tm-rows { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.cr-tm-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 8px;
    background: var(--cr-bg-2);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--cr-text);
}
.cr-tm-rows li small { display: block; margin-top: 0.1rem; font-size: 0.75rem; color: var(--cr-text-3); }
.cr-tm-rows .cr-pill { flex: none; }

/* Rules to merge: file tabs and a diff. */
.cr-tm-files { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.6875rem; }
.cr-tm-files li { padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 6px 6px 0 0; color: var(--cr-text-3); }
.cr-tm-files li.is-on { border-color: var(--cr-line-2); border-bottom-color: var(--cr-bg-2); background: var(--cr-bg-2); color: var(--cr-text); }
.cr-tm-tile .cr-diff { margin-top: -1px; border-radius: 0 0.375rem 0.375rem 0.375rem; }
/* Rules read in full: a line wraps under its own text, past the "+". */
.cr-tm-tile .cr-diff__row { padding-left: 1.75rem; text-indent: -1rem; white-space: normal; overflow: visible; }

/* The team page recording: the same cream frame as the home page's, across the container. */
.cr-tm-tour { min-height: 0; margin-top: 2.75rem; }
.cr-tm-tour picture { display: block; }

/* Privacy band: ink, with the three promises. */
.cr-tm-privacy {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 16px;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(122, 46, 46, 0.55), transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(70, 225, 165, 0.12), transparent 60%),
        linear-gradient(135deg, #2b2521 0%, #1c1714 100%);
    color: #f1ebe4;
    overflow: hidden;
}
.cr-tm-privacy .cr-eyebrow { color: #8fd3bb; }
.cr-tm-privacy .cr-h2 { color: #fbf7f2; max-width: 30rem; }
.cr-tm-privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .cr-tm-privacy__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 3rem; } }
.cr-tm-privacy__lede { margin: 1rem 0 0; max-width: 30rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(241, 235, 228, 0.78); }
.cr-tm-privacy__points { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.cr-tm-privacy__points li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(251, 247, 242, 0.12);
    border-radius: 12px;
    background: rgba(251, 247, 242, 0.05);
}
.cr-tm-privacy__points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(251, 247, 242, 0.08);
    color: #8fd3bb;
}
.cr-tm-privacy__points b { display: block; font-size: 0.9375rem; font-weight: 600; color: #fbf7f2; }
.cr-tm-privacy__points p { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.5; color: rgba(241, 235, 228, 0.72); }

/* Pricing: two equal cards, buttons on the same line. */
.cr-tm-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
    margin-top: 2.25rem;
    max-width: 52rem;
}
.cr-tm-price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1.5rem 1.5rem 1.375rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 14px;
    background: #fffdfa;
}
.cr-tm-price.is-main { border-color: rgba(122, 46, 46, 0.35); box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.07); }
.cr-tm-price .cr-kicker { color: var(--cr-text-2); }
.cr-tm-price__num { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.cr-tm-price__num strong { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--cr-text); }
.cr-tm-price__num span { font-size: 0.9375rem; color: var(--cr-text-2); }
.cr-tm-price > p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-tm-price ul { display: grid; gap: 0.55rem; margin: 0.15rem 0 0; padding: 0; list-style: none; flex: 1 1 auto; }
.cr-tm-price li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--cr-text-2); }
.cr-tm-price li svg { flex: none; margin-top: 0.2rem; color: var(--cr-green); }
.cr-tm-price .cr-btn { margin-top: auto; width: 100%; justify-content: center; }
.cr-tm-price__note { margin: 1rem 0 0; max-width: 44rem; font-size: 0.8125rem; line-height: 1.45; color: var(--cr-text-3); }
@media (max-width: 48rem) { .cr-tm-prices { grid-template-columns: minmax(0, 1fr); } }

/* Phrase cycle (per-character slide, CodeRabbit style) */
.cr-cycle {
    display: inline-grid;
    width: var(--w, auto);
    max-width: 100%;
    transition: width 0.55s var(--cr-ease);
    vertical-align: baseline;
    white-space: nowrap;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}
.cr-cycle__word {
    grid-area: 1 / 1;
    justify-self: start;
    display: inline-flex;
    white-space: pre;
}
.cr-cycle__ch {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, var(--slide, 115%), 0);
    color: var(--cr-text);
    transition: transform 0.55s var(--cr-ease) var(--d), opacity 0.35s ease var(--d);
    will-change: transform, opacity;
}
.cr-cycle__word.is-in .cr-cycle__ch { opacity: 1; transform: none; }
.cr-cycle__word.is-in .cr-cycle__ch[data-tone="add"] { animation: cr-ch-add 1.1s ease var(--d) both; }
.cr-cycle__word.is-in .cr-cycle__ch[data-tone="del"] { animation: cr-ch-del 1.1s ease var(--d) both; }
.cr-cycle__word.is-out .cr-cycle__ch {
    opacity: 0;
    transform: translate3d(0, var(--slide-out, -115%), 0);
    transition: transform 0.45s var(--cr-ease) var(--d), opacity 0.3s ease var(--d);
}
@keyframes cr-ch-add { 0% { color: var(--cr-add); } 55% { color: var(--cr-add); } 100% { color: var(--cr-text); } }
@keyframes cr-ch-del { 0% { color: var(--cr-del); } 55% { color: var(--cr-del); } 100% { color: var(--cr-text); } }

/* --------------------------------------------------------------------------
   Feature stage (accordion columns)
   -------------------------------------------------------------------------- */
.cr-stage-wrap { position: relative; padding-bottom: 3.75rem; }
.cr-stage-wrap::after { display: none; }
.cr-stage {
    position: relative;
    margin-top: clamp(3rem, 6vw, 5.5rem);
    border: 1px solid var(--cr-line-2);
    border-bottom: 0;
    border-radius: var(--cr-radius-lg);
    background: var(--cr-bg-2);
    display: grid;
    grid-template-columns: var(--cols, minmax(0, 1fr) 10.5rem 10.5rem 10.5rem);
    transition: grid-template-columns 0.65s var(--cr-ease);
    overflow: hidden;
}
.cr-stage[data-active="0"] { --cols: minmax(0, 1fr) 10.5rem 10.5rem 10.5rem; }
.cr-stage[data-active="1"] { --cols: 10.5rem minmax(0, 1fr) 10.5rem 10.5rem; }
.cr-stage[data-active="2"] { --cols: 10.5rem 10.5rem minmax(0, 1fr) 10.5rem; }
.cr-stage[data-active="3"] { --cols: 10.5rem 10.5rem 10.5rem minmax(0, 1fr); }
.cr-col {
    position: relative;
    min-width: 0;
    border-left: 1px solid var(--cr-line-2);
    background: var(--cr-bg-2);
    cursor: pointer;
}
.cr-col:first-child { border-left: 0; }
.cr-col__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 3.25rem;
    padding: 0 1.125rem;
    border-bottom: 1px solid var(--cr-line-2);
    font-size: 0.9375rem;
    color: var(--cr-text-3);
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.3s ease;
}
.cr-col__label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--cr-text-3); transition: color 0.3s ease; }
.cr-col__icon { width: 1.125rem; height: 1.125rem; flex: none; }
.cr-col__desc { font-weight: 400; color: var(--cr-text-2); opacity: 0; transition: opacity 0.35s ease 0.2s; }
.cr-col.is-active .cr-col__label { color: var(--cr-text); }
.cr-col.is-active .cr-col__head { color: var(--cr-text); }
.cr-col.is-active .cr-col__desc { opacity: 1; }
.cr-col:not(.is-active):hover .cr-col__label { color: var(--cr-text-2); }
.cr-col__bar {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--cr-accent);
    opacity: 0;
}
.cr-col.is-active .cr-col__bar { opacity: 1; animation: cr-progress var(--stage-dur, 7s) linear forwards; }
.cr-stage.is-paused .cr-col__bar { animation-play-state: paused; }
@keyframes cr-progress { from { width: 0; } to { width: 100%; } }
.cr-col__body {
    position: relative;
    height: 26.5rem;
    padding: 2.75rem 1.5rem 0;
    overflow: hidden;
}
.cr-col__body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, var(--cr-bg-2) 100%);
    pointer-events: none;
}
.cr-col:not(.is-active) .cr-col__body { opacity: 0.55; }
.cr-col__mock {
    width: 100%;
    min-width: 40rem;
    transition: transform 0.65s var(--cr-ease);
}
.cr-col:not(.is-active) .cr-col__mock { transform: translateX(-2rem) scale(0.98); transform-origin: left top; }
.cr-stage__pause {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--cr-line-2);
    border-radius: var(--cr-radius);
    background: var(--cr-bg-2);
    color: var(--cr-text-3);
    cursor: pointer;
}
.cr-stage__pause:hover { color: var(--cr-text); border-color: var(--cr-line-4); }
.cr-stage__pause svg { width: 0.875rem; height: 0.875rem; }
.cr-stage__pause .ic-play { display: none; }
.cr-stage-wrap.is-paused .cr-stage__pause .ic-play { display: block; }
.cr-stage-wrap.is-paused .cr-stage__pause .ic-pause { display: none; }
@media (max-width: 56rem) {
    .cr-stage { grid-template-columns: minmax(0, 1fr) !important; border-bottom: 1px solid var(--cr-line-2); border-radius: var(--cr-radius-lg); }
    .cr-col { border-left: 0; border-top: 1px solid var(--cr-line-2); }
    .cr-col:first-child { border-top: 0; }
    .cr-col:not(.is-active) .cr-col__body { display: none; }
    .cr-col__body { height: auto; padding: 1.25rem 1rem 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cr-col__body::after { display: none; }
    .cr-col__mock { min-width: 0; width: 100%; }
    .cr-col:not(.is-active) .cr-col__mock { transform: none; }
    .cr-col__desc { display: none; }
    .cr-stage-wrap::after { display: none; }
}
@media (max-width: 40rem) {
    .cr-announce { padding: 0.5rem 2.75rem 0.5rem 1rem; }
    .cr-h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
    .cr-lede { font-size: 1rem; }
    .cr-hero__aside p { font-size: 1rem; }
    .cr-cycle { max-width: 100%; }
    .cr-proof__quote { padding: 1.5rem 1.25rem; }
    .cr-proof__quote .q { font-size: 2.75rem; }
    .cr-proof__quote p { font-size: 1.2rem; margin: 1rem 0 0.75rem; }
    .cr-container { padding-inline: 1rem; }
    .cr-cta__actions { flex-direction: column; align-items: stretch; }
    .cr-cta__actions .cr-btn { width: 100%; }
    .cr-hero__actions { flex-direction: column; align-items: stretch; }
    .cr-hero__actions .cr-btn { width: 100%; white-space: normal; height: auto; min-height: 2.25rem; padding-block: 0.625rem; text-align: center; }
    .cr-proof__stats {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .cr-proof__stat {
        min-height: 0;
        padding: 1.125rem 1.25rem;
        font-size: 0.9375rem;
        line-height: 1.35;
        gap: 0.4rem;
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }
    .cr-proof__stat strong {
        font-size: 1.5rem;
        line-height: 1;
    }
    .cr-proof__stat.wide {
        justify-content: flex-start;
        gap: 0.45rem 0.55rem;
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
    .cr-proof__stat.wide .cr-mono { font-size: 0.8125rem; }
}

/* Mock UI cards used throughout */
.cr-card {
    border: 1px solid var(--cr-line-3);
    border-radius: var(--cr-radius-lg);
    background: var(--cr-bg);
    color: var(--cr-text);
    overflow: hidden;
}
.cr-card__bar {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--cr-line-2);
    background: var(--cr-bg-2);
    font-size: 0.75rem;
    color: var(--cr-text-2);
}
.cr-card__bar b { color: var(--cr-text); font-weight: 600; }
.cr-card__bar .cr-mono { color: var(--cr-text-3); font-size: 0.7rem; }
.cr-card__bar .sp { flex: 1 1 0.5rem; min-width: 0.5rem; }
.cr-card__bar .cr-pill { margin-block: 0.125rem; }
@media (max-width: 40rem) {
    .cr-card__bar {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem 0.5rem;
    }
    .cr-card__bar .sp {
        flex: 1 0 100%;
        height: 0;
        min-width: 0;
        margin: 0;
    }
    .cr-card__bar .cr-pill { margin-block: 0; }
}
.cr-pill {
    display: inline-flex;
    align-items: center;
    height: 1.25rem;
    padding: 0 0.4rem;
    border: 1px solid var(--cr-line-3);
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--cr-text-2);
    background: var(--cr-bg-3);
    white-space: nowrap;
}
.cr-pill--green { color: var(--cr-green); border-color: #9ecfc0; background: var(--cr-add-bg); }
.cr-pill--red { color: var(--cr-del); border-color: #e2b3ae; background: var(--cr-del-bg); }
.cr-pill--amber { color: #8a5200; border-color: #e4c48a; background: #f6ead0; }
.cr-pill--accent { color: var(--cr-accent); border-color: #d4b3b0; background: #f0e0dc; }
.cr-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: var(--cr-accent-fill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-on-accent);
    flex-shrink: 0;
}
.cr-avatar img { width: 1.375rem; height: 1.375rem; object-fit: contain; }
.cr-avatar--user { background: #5b4a74; color: var(--cr-on-accent); font-size: 0.75rem; font-weight: 600; }

/* Comment thread mock (rail on the left) */
.cr-thread { position: relative; padding-left: 3.25rem; }
.cr-thread::before {
    content: "";
    position: absolute;
    left: 1.125rem;
    top: 2.5rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cr-line-3), transparent);
}
.cr-thread__item { position: relative; margin-bottom: 0.875rem; }
.cr-thread__item > .cr-avatar { position: absolute; left: -3.25rem; top: 0; }
.cr-thread__item .cr-card__bar { min-height: 2.25rem; }
.cr-thread__body { padding: 0.75rem 0.875rem 0.875rem; font-size: 0.8125rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-thread__body b { color: var(--cr-text); font-weight: 600; }
.cr-thread__body .cr-mono { font-size: 0.75rem; color: var(--cr-text); }

/* Terminal */
.cr-term {
    padding: 0.875rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--cr-text);
}
.cr-term__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-term__line .k { display: inline-block; min-width: 6em; color: var(--cr-text-3); }
.cr-term__line.is-muted { color: var(--cr-text-3); }
.cr-term__line.is-add { color: var(--cr-add); }
.cr-term__line.is-del { color: var(--cr-del); }
.cr-term__line.is-warn { color: #8a5200; }
.cr-term__line.is-accent { color: var(--cr-accent-strong); }
.cr-term__line .p { color: var(--cr-green); }
.cr-caret {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    vertical-align: -0.15em;
    background: var(--cr-text);
    animation: cr-blink 1s steps(2, start) infinite;
}
@keyframes cr-blink { to { visibility: hidden; } }
.cr-term--typed .cr-term__line { opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.is-live .cr-term--typed .cr-term__line, .is-in .cr-term--typed .cr-term__line { opacity: 1; transform: none; }
.is-live .cr-term--typed .cr-term__line:nth-child(1), .is-in .cr-term--typed .cr-term__line:nth-child(1) { transition-delay: 0.1s; }
.is-live .cr-term--typed .cr-term__line:nth-child(2), .is-in .cr-term--typed .cr-term__line:nth-child(2) { transition-delay: 0.7s; }
.is-live .cr-term--typed .cr-term__line:nth-child(3), .is-in .cr-term--typed .cr-term__line:nth-child(3) { transition-delay: 1.3s; }
.is-live .cr-term--typed .cr-term__line:nth-child(4), .is-in .cr-term--typed .cr-term__line:nth-child(4) { transition-delay: 1.9s; }
.is-live .cr-term--typed .cr-term__line:nth-child(5), .is-in .cr-term--typed .cr-term__line:nth-child(5) { transition-delay: 2.6s; }
.is-live .cr-term--typed .cr-term__line:nth-child(6), .is-in .cr-term--typed .cr-term__line:nth-child(6) { transition-delay: 3.3s; }
.is-live .cr-term--typed .cr-term__line:nth-child(7), .is-in .cr-term--typed .cr-term__line:nth-child(7) { transition-delay: 4s; }
.is-live .cr-term--typed .cr-term__line:nth-child(8), .is-in .cr-term--typed .cr-term__line:nth-child(8) { transition-delay: 4.6s; }
.is-live .cr-term--typed .cr-term__line:nth-child(9), .is-in .cr-term--typed .cr-term__line:nth-child(9) { transition-delay: 5.2s; }

/* Diff block */
.cr-diff {
    margin: 0.75rem 0 0;
    border: 1px solid var(--cr-line-2);
    border-radius: 0.375rem;
    background: var(--cr-bg-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.7;
    overflow: hidden;
}
.cr-diff__row { padding: 0.1rem 0.75rem; white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--cr-text-2); }
.cr-diff__row.hunk { color: var(--cr-text-3); background: var(--cr-bg-3); }
.cr-diff__row.add { color: var(--cr-add); background: var(--cr-add-bg); }
.cr-diff__row.del { color: var(--cr-del); background: var(--cr-del-bg); }

/* Score + dimension bars */
.cr-score { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.cr-score__num {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--cr-text);
    font-variant-numeric: tabular-nums;
}
.cr-score__den { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--cr-text-3); }
.cr-dim {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr) 2.5rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-top: 1px solid var(--cr-line-2);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--cr-text-2);
}
.cr-dim:first-child { border-top: 0; }
.cr-dim > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.cr-dim .n { text-align: right; color: var(--cr-text); font-variant-numeric: tabular-nums; }
.cr-bar { height: 5px; background: var(--cr-bg-4); border-radius: 2px; overflow: hidden; }
.cr-bar > i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--cr-add);
    border-radius: inherit;
    transition: width 1.2s var(--cr-ease) var(--bd, 0s);
}
.cr-bar--accent > i { background: var(--cr-accent); }
.cr-bar--amber > i { background: var(--cr-amber); }
.cr-bar--blue > i { background: var(--cr-blue); }
.cr-bar--ink > i { background: var(--cr-text-2); }
.is-live .cr-bar > i, .is-in .cr-bar > i { width: var(--w); }
@media (max-width: 40rem) {
    .cr-score__num { font-size: 2.25rem; }
    .cr-score__den { font-size: 0.75rem; }
    .cr-dim {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label n"
            "bar bar";
        gap: 0.35rem 0.625rem;
        padding: 0.55rem 0.75rem;
        align-items: baseline;
    }
    .cr-dim > span:first-child { grid-area: label; line-height: 1.35; }
    .cr-dim .cr-bar { grid-area: bar; height: 4px; }
    .cr-dim .n { grid-area: n; align-self: baseline; }
}

/* Health strip (multi-tone) */
.cr-strip { display: flex; height: 4px; gap: 2px; border-radius: 2px; overflow: hidden; }
.cr-strip > i { display: block; height: 100%; background: var(--cr-add); }
.cr-strip > i.g { background: var(--cr-add); }
.cr-strip > i.m { background: var(--cr-bg-4); }
.cr-strip > i.a { background: var(--cr-amber); }
.cr-strip > i.r { background: var(--cr-del); }

/* Dot matrix (session scan) */
.cr-dots {
    display: grid;
    grid-template-columns: repeat(var(--cols, 22), 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.cr-dots i {
    display: block;
    aspect-ratio: 1;
    width: 5px;
    border-radius: 50%;
    background: var(--cr-bg-4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cr-dots i.g { background: #1f5d47; }
.cr-dots i.gg { background: var(--cr-add); }
.cr-dots i.a { background: var(--cr-amber); }
.cr-dots i.r { background: var(--cr-del); }
.cr-dots i.k { background: var(--cr-accent); }
.is-live .cr-dots i, .is-in .cr-dots i { animation: cr-dot-pulse 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes cr-dot-pulse { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.7); } 12% { transform: scale(1); } }

/* Timeline */
.cr-timeline { position: relative; display: flex; height: 2rem; gap: 2px; border-radius: 0.25rem; overflow: hidden; }
.cr-timeline > i { display: block; height: 100%; background: var(--cr-bg-4); }
.cr-timeline > i.prompt { background: var(--cr-add); }
.cr-timeline > i.verify { background: var(--cr-blue); }
.cr-timeline > i.drift { background: var(--cr-del); }
.cr-timeline > i.idle { background: var(--cr-bg-4); }
.cr-timeline__head {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--cr-text);
    box-shadow: 0 0 0 1px rgba(28, 23, 20, 0.18);
}
.is-live .cr-timeline__head, .is-in .cr-timeline__head { animation: cr-playhead 14s linear infinite; }
@keyframes cr-playhead { from { left: 0; } to { left: 100%; } }
.cr-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.625rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--cr-text-3); }
.cr-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 0.375rem; vertical-align: -1px; }

/* Priority-style table rows */
.cr-rows { display: grid; gap: 0.5rem; }
.cr-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    gap: 0.875rem;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--cr-line-2);
    border-radius: 0.375rem;
    background: var(--cr-bg-2);
    font-size: 0.8125rem;
    color: var(--cr-text-2);
    transition: border-color 0.2s ease, transform 0.3s var(--cr-ease);
}
.cr-row.is-hot { border-color: var(--cr-line-3); }
.cr-row__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    border-radius: 0.25rem;
    background: var(--cr-bg-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cr-text);
}
.cr-row__tag.p0 { background: var(--cr-del-bg); color: var(--cr-del); }
.cr-row__tag.p1 { background: #f6ead0; color: #8a5200; }
.cr-row b { color: var(--cr-text); font-weight: 600; }
.cr-row small { display: block; color: var(--cr-text-3); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   Logo wall + proof
   -------------------------------------------------------------------------- */
.cr-wall {
    --wall-gap: 3.75rem;
    --wall-speed: 38s;
    position: relative;
    overflow: hidden;
    padding-block: 0.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.cr-wall__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: cr-wall-scroll var(--wall-speed) linear infinite;
}
.cr-wall:hover .cr-wall__track,
.cr-wall:focus-within .cr-wall__track { animation-play-state: paused; }
.cr-wall__group {
    display: flex;
    align-items: center;
    gap: var(--wall-gap);
    padding-right: var(--wall-gap);
    flex-shrink: 0;
}
@keyframes cr-wall-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
.cr-wall__cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    height: 4.5rem;
    padding-inline: 0.5rem;
    white-space: nowrap;
    color: var(--cr-text-2);
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    border-radius: var(--cr-radius-lg);
    transition: color 0.2s ease;
}
.cr-wall__cell:hover { color: var(--cr-text); }
.cr-wall__cell svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.cr-wall__cell .cr-mono { font-weight: 500; font-size: 1.125rem; letter-spacing: 0; }
.cr-wall__cell .arr {
    position: absolute;
    right: -0.35rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    color: var(--cr-text-4);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cr-wall__cell:hover .arr { opacity: 1; }
@media (max-width: 36rem) {
    .cr-wall { --wall-gap: 2.25rem; --wall-speed: 28s; }
    .cr-wall__cell { height: 3.5rem; font-size: 1.125rem; }
    .cr-wall__cell svg { width: 1.375rem; height: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cr-wall { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
    .cr-wall__track { animation: none; width: auto; }
    .cr-wall__group[aria-hidden="true"] { display: none; }
}
.cr-proof {
    margin-top: 1rem;
    border: 1px solid var(--cr-line);
    border-radius: var(--cr-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--cr-line);
    gap: 1px;
}
.cr-proof__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 1px;
    background: var(--cr-line);
    min-height: 100%;
}
.cr-proof__stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 6rem;
    padding: 1rem;
    background: var(--cr-bg);
    font-size: 1.125rem;
    color: var(--cr-text-2);
    text-align: center;
}
.cr-proof__stat.wide { grid-column: 1 / -1; }
.cr-proof__stat strong { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; color: var(--cr-text); }
.cr-proof__stat svg { width: 1.125rem; height: 1.125rem; }
.cr-proof__stat .cr-mono { font-size: 0.9375rem; color: var(--cr-text); }
.cr-proof__quote {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 2rem 2.25rem;
    background: var(--cr-bg-2);
}
.cr-proof__quote .q {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.6;
    color: var(--cr-line-4);
}
.cr-proof__quote p {
    margin: 1.5rem 0 1rem;
    font-size: 1.625rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--cr-text);
}
.cr-proof__quote footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cr-text-2);
}
.cr-proof__quote footer b { color: var(--cr-text); font-weight: 600; }
.cr-proof__mark {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}
.cr-proof > .cr-colorbar {
    grid-column: 1 / -1;
    height: 5px;
}
@media (max-width: 56rem) {
    .cr-proof { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) and (min-width: 40.01rem) {
    .cr-proof__stat {
        padding: 1rem 0.875rem;
        font-size: 1rem;
        gap: 0.35rem;
    }
    .cr-proof__stat strong { font-size: 1.625rem; }
}

/* Multi-colour bar (CodeRabbit motif) */
.cr-colorbar { display: flex; height: 4px; width: 100%; }
.cr-colorbar i { display: block; height: 100%; flex: var(--f, 1); background: var(--c, var(--cr-bg-4)); }

/* --------------------------------------------------------------------------
   Feature sections (cream shot + points)
   -------------------------------------------------------------------------- */
.cr-feature { border-top: 0; }
.cr-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2.75rem;
}
@media (min-width: 64rem) { .cr-feature__grid { grid-template-columns: minmax(0, 1.85fr) minmax(18rem, 0.8fr); gap: 2.25rem; } }
.cr-shot {
    position: relative;
    padding: 2.5rem 2.5rem 0;
    border-radius: var(--cr-radius-lg);
    background: linear-gradient(135deg, #c9b6a8 0%, #b0897c 55%, #7A2E2E 130%);
    overflow: hidden;
    min-height: 24rem;
}
.cr-shot__inner {
    position: relative;
    min-width: 0;
    border: 1px solid var(--cr-line-4);
    border-bottom: 0;
    border-radius: var(--cr-radius-lg) var(--cr-radius-lg) 0 0;
    background: var(--cr-bg-2);
    color: var(--cr-text);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.45) inset, 0 24px 48px rgba(28, 23, 20, 0.18);
    overflow: hidden;
    transform: translateY(24px);
    transition: transform 0.9s var(--cr-ease) 0.1s;
}
.is-in .cr-shot__inner { transform: translateY(0); }
.cr-shot .cr-colorbar { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 40rem) { .cr-shot { padding: 0.875rem 0.875rem 0; min-height: 0; } }
.cr-shot__img { display: block; width: 100%; height: auto; }
.cr-points { display: grid; gap: 1.75rem; align-content: start; padding-top: 0.25rem; }
.cr-points > div { position: relative; }
.cr-points h4 { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 600; color: var(--cr-text); }
.cr-points h4 u { text-decoration-color: var(--cr-line-4); text-underline-offset: 4px; }
.cr-points p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-points ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.cr-points li { position: relative; padding-left: 1rem; font-size: 0.9375rem; color: var(--cr-text-2); line-height: 1.6; }
.cr-points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--cr-green); }
.cr-feature__cta { margin-top: 1.5rem; }

.cr-kicker { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; color: var(--cr-text-3); letter-spacing: 0.02em; }
@media (max-width: 40rem) {
    .cr-shot { padding: 0.875rem 0.875rem 0; min-height: 0; }
    .cr-timeline { height: 1.5rem; }
    .cr-legend { gap: 0.375rem 0.75rem; margin-top: 0.5rem; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.cr-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 56rem) { .cr-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } }
.cr-faq__list { border-top: 1px solid var(--cr-line-2); }
.cr-faq__item { border-bottom: 1px solid var(--cr-line-2); }
.cr-faq__item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.125rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--cr-text);
    cursor: pointer;
}
.cr-faq__item summary::-webkit-details-marker { display: none; }
.cr-faq__item summary svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--cr-text-3); transition: transform 0.35s var(--cr-ease); }
.cr-faq__item[open] summary svg { transform: rotate(45deg); }
.cr-faq__item.is-closing summary svg { transform: none; }
.cr-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--cr-ease);
}
.cr-faq__item[open] .cr-faq__panel { grid-template-rows: 1fr; }
.cr-faq__body { overflow: hidden; min-height: 0; }
.cr-faq__item p {
    margin: 0;
    padding: 0 3rem 1.25rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--cr-text-2);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.45s var(--cr-ease);
}
.cr-faq__item[open] p { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .cr-faq__panel,
    .cr-faq__item p,
    .cr-faq__item summary svg { transition: none; }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cr-cta {
    position: relative;
    border-top: 0;
    overflow: hidden;
    text-align: center;
}
.cr-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% 100%, rgba(122, 46, 46, 0.18) 0%, rgba(122, 46, 46, 0) 70%),
        linear-gradient(rgba(28, 23, 20, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 23, 20, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 3rem 3rem, 3rem 3rem;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 100%, #000 20%, transparent 100%);
    mask-image: radial-gradient(70% 90% at 50% 100%, #000 20%, transparent 100%);
    pointer-events: none;
}
.cr-cta .cr-container { position: relative; }
.cr-cta .cr-h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); max-width: 48rem; margin-inline: auto; }
.cr-cta p { margin: 1.25rem auto 0; max-width: 38rem; font-size: 1.125rem; line-height: 1.5; color: var(--cr-text-2); }
.cr-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

html.cr .cr-footer__brand { color: var(--cr-text); }
html.cr .cr-footer__social a:hover { color: var(--cr-text); }
html.cr .cr-footer__col > a:hover,
html.cr .cr-footer__col > button:hover { color: var(--cr-text); }
html.cr .cr-footer__bottom a { color: var(--cr-text-2); }
html.cr .cr-footer__bottom a:hover { color: var(--cr-text); }
html.cr .cr-footer__col > a, html.cr .cr-footer__col > button { color: var(--cr-text-2); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .cr-cycle__ch, .cr-cycle__word.is-out .cr-cycle__ch { transition: none; animation: none; }
    .cr-col.is-active .cr-col__bar, .is-live .cr-dots i, .is-live .cr-timeline__head, .is-in .cr-timeline__head, .cr-chip { animation: none; }
    .cr-stage, .cr-col__mock, .cr-shot__inner { transition: none; }
    .cr-shot__inner { transform: none; }
    .cr-term--typed .cr-term__line { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Research (/research): a long read. Contents on the left on wide screens,
   one readable column of prose, the at-a-glance table and the findings wider.
   -------------------------------------------------------------------------- */
.cr-rs-hero { padding-bottom: clamp(2rem, 4vw, 3rem); overflow: visible; }
.cr-rs-hero .cr-h1 { max-width: 48rem; margin: 0; font-size: clamp(2.125rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.cr-rs-hero .cr-lede { max-width: 42rem; margin-top: 1.125rem; }
.cr-rs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--cr-text-3); }

.cr-rs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64rem) {
    .cr-rs-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; }
    .cr-rs-toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--nav-h) - 3rem); overflow-y: auto; }
}
@media (max-width: 63.99rem) { .cr-rs-toc { display: none; } }
.cr-rs-toc ol { margin: 0.75rem 0 0; padding: 0; list-style: none; border-left: 1px solid var(--cr-line-2); }
.cr-rs-toc li a { display: block; padding: 0.3rem 0 0.3rem 0.875rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--cr-text-2); font-size: 0.8125rem; line-height: 1.35; text-decoration: none; }
.cr-rs-toc li.is-sub a { padding-left: 1.5rem; font-size: 0.78rem; color: var(--cr-text-3); }
.cr-rs-toc li a:hover { color: var(--cr-text); border-left-color: var(--cr-line-4); }

.cr-rs-body { min-width: 0; max-width: 46rem; }
.cr-rs-section { padding-top: 2.75rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.cr-rs-section:first-child { padding-top: 0; }
.cr-rs-section > p, .cr-rs-section li { font-size: 1.0625rem; line-height: 1.65; color: var(--cr-text-2); }
.cr-rs-section > p { margin: 0.875rem 0 0; }
.cr-rs-h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--cr-text); text-wrap: balance; }
.cr-rs-h3 { margin: 1.5rem 0 0; font-size: 0.75rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cr-text-3); }
.cr-rs-h3 + p { margin-top: 0.5rem !important; }
.cr-rs-dim { border-top: 1px solid var(--cr-line-2); margin-top: 2.75rem; }
.cr-rs-dim .cr-kicker { margin: 0 0 0.5rem; color: var(--cr-accent); }
.cr-rs-report { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.875rem 0 0; padding: 0.3rem 0.65rem 0.3rem 0.35rem; border: 1px solid var(--cr-line-2); border-radius: 999px; background: #fffdfa; font-size: 0.875rem; font-weight: 500; color: var(--cr-text); }
.cr-rs-report span { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--cr-bg-2); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; color: var(--cr-text-3); }
.cr-rs-formerly { margin: 0.625rem 0 0 !important; font-size: 0.875rem !important; color: var(--cr-text-3) !important; }

.cr-rs-callout { margin-top: 1.25rem; padding: 1.125rem 1.25rem; border: 1px solid var(--cr-line-2); border-left: 3px solid var(--cr-accent); border-radius: 0 10px 10px 0; background: #fffdfa; }
.cr-rs-callout p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--cr-text); }

.cr-rs-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; margin-top: 1.25rem; }
@media (max-width: 40rem) { .cr-rs-findings { grid-template-columns: minmax(0, 1fr); } }
.cr-rs-finding { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid var(--cr-line-2); border-radius: 12px; background: #fffdfa; }
.cr-rs-finding__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 0; }
.cr-rs-finding__stat strong { font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: -0.035em; color: var(--cr-accent); font-variant-numeric: tabular-nums; }
.cr-rs-finding__stat span { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cr-text-3); }
.cr-rs-finding h3 { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; color: var(--cr-text); }
.cr-rs-finding p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--cr-text-2); }

.cr-rs-table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--cr-line-2); border-radius: 12px; background: #fffdfa; }
.cr-rs-table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.cr-rs-table th, .cr-rs-table td { padding: 0.875rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--cr-line-2); }
.cr-rs-table thead th { border-top: 0; background: var(--cr-bg-2); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cr-text-3); }
.cr-rs-table tbody th { width: 30%; font-weight: 600; color: var(--cr-text); }
.cr-rs-table tbody th a { color: inherit; text-decoration: none; }
.cr-rs-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-rs-table tbody th small { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.75rem; color: var(--cr-text-3); }
.cr-rs-table td { color: var(--cr-text-2); }
.cr-rs-strength { display: inline-block; padding: 0.2rem 0.55rem; border: 1px solid; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.cr-rs-strength.is-strong { color: var(--cr-green); border-color: #9ecfc0; background: var(--cr-add-bg); }
.cr-rs-strength.is-mixed { color: #2f6b55; border-color: #b9d8cb; background: #e7f2ec; }
.cr-rs-strength.is-moderate { color: #8a5200; border-color: #e4c48a; background: #f6ead0; }

.cr-rs-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.cr-rs-list li { position: relative; padding-left: 1.25rem; }
.cr-rs-list li::before { content: ""; position: absolute; left: 0.25rem; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--cr-accent); }

.cr-rs-log { margin: 1rem 0 0; padding: 0; list-style: none; }
.cr-rs-log li { padding: 1rem 1.25rem; border: 1px solid var(--cr-line-2); border-radius: 12px; background: #fffdfa; }
.cr-rs-log li p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--cr-text-2); }
.cr-rs-log__when { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem !important; font-size: 0.875rem !important; color: var(--cr-text-3) !important; }

.cr-rs-refs { margin: 1rem 0 0; padding-left: 1.5rem; display: grid; gap: 0.75rem; }
.cr-rs-refs li { padding-left: 0.25rem; font-size: 0.9375rem !important; line-height: 1.55 !important; }
.cr-rs-refs li::marker { color: var(--cr-text-3); font-family: var(--font-mono); font-size: 0.8125rem; }
.cr-rs-refs__by { color: var(--cr-text); }
.cr-rs-refs a { display: inline; color: var(--cr-accent); word-break: break-word; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cr-accent) 35%, transparent); text-underline-offset: 3px; }
.cr-rs-refs a:hover { text-decoration-color: currentColor; }
/* On a phone each row of the at-a-glance table is a card, so strength is never off screen. */
@media (max-width: 40rem) {
    .cr-rs-table-wrap { overflow: visible; }
    .cr-rs-table { min-width: 0; }
    .cr-rs-table thead { display: none; }
    .cr-rs-table, .cr-rs-table tbody, .cr-rs-table tr, .cr-rs-table th, .cr-rs-table td { display: block; width: auto; }
    .cr-rs-table tr { display: flex; flex-direction: column; padding: 0.875rem 1rem; border-top: 1px solid var(--cr-line-2); }
    .cr-rs-table tbody tr:first-child { border-top: 0; }
    .cr-rs-table th, .cr-rs-table td { padding: 0; border: 0; }
    .cr-rs-table tbody th { width: auto; }
    .cr-rs-table td:last-child { order: -1; margin: 0 0 0.5rem; }
    .cr-rs-table td:nth-child(2) { margin-top: 0.5rem; }
}
