﻿/* ============================================================
   hero-scrapbook.css - homepage hero only, loaded via head_extra.

   Locked-light "case file" collage aesthetic. Deliberately isolated
   from theme.css dark-mode variables so it renders the same
   regardless of the site's theme toggle. Reuses --blue/--ink/--mono
   from theme.css where it doesn't fight the paper look.
   ============================================================ */

.cf-hero {
    position: relative;
    padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
    background: #fff;
    color: #16140f;
    overflow: hidden;
}

/* This stylesheet only loads on the homepage (head_extra in index.html), so
   this rule only ever applies here - not a site-wide change to chrome.css.
   Widens .container (header included) past the standard 1180px so the
   header and hero line up, matching the reference's near-full-bleed layout
   on wide screens. Loads after chrome.css, so it wins on equal specificity. */
.container {
    max-width: 1600px;
}

.cf-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

/* ---------- Left column ---------- */

.cf-copy {
    position: relative;
    z-index: 2;
}

.cf-fingerprint {
    position: absolute;
    left: -34px;
    bottom: 40px;
    width: 90px;
    height: 90px;
    stroke: #16140f;
    stroke-width: 1;
    fill: none;
    opacity: .05;
    pointer-events: none;
    z-index: -1;
}

.cf-eyebrow-wrap {
    position: relative;
    display: inline-block;
}

.cf-squiggle {
    position: absolute;
    top: -20px;
    left: -22px;
    width: 22px;
    height: 22px;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    opacity: .8;
}

.cf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 18px;
    border: 1px solid rgba(9, 9, 9, .14);
    border-radius: 999px;
    background: #fffdf7;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #45403a;
    box-shadow: 0 2px 0 rgba(9, 9, 9, .05);
}

.cf-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 2px;
    border-radius: 50%;
    background: var(--blue);
}

.cf-h1 {
    max-width: 640px;
    margin: 0 0 1.15rem;
    font-family: var(--display);
    font-size: clamp(38px, 5.4vw, 70px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #0f0d0a;
}

.cf-h1-line {
    display: block;
    white-space: nowrap;
}

.cf-highlight {
    display: inline-block;
    position: relative;
    color: var(--blue);
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: 1.28em;
    vertical-align: -.06em;
}

.cf-highlight::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 4px;
    bottom: .02em;
    height: .05em;
    background: var(--blue);
    transform: rotate(-1.2deg);
    transform-origin: left center;
}

.cf-lede {
    max-width: 480px;
    margin: 0 0 1.7rem;
    color: #55504a;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.6;
}

.cf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.9rem;
}

.cf-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(9, 9, 9, .14);
    border-radius: 999px;
    background: #fffdf7;
    font-size: 13.5px;
    font-weight: 600;
    color: #26221c;
}

.cf-pill-icon {
    width: 16px;
    height: 16px;
    fill: var(--blue);
    flex-shrink: 0;
}

.cf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.8rem;
}

.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cf-btn-primary {
    border: 1px solid #0f0d0a;
    background: #0f0d0a;
    color: #fff;
}

.cf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 9, 9, .22);
}

.cf-btn-secondary {
    border: 1px solid rgba(9, 9, 9, .22);
    background: transparent;
    color: #0f0d0a;
}

.cf-btn-secondary:hover {
    border-color: #0f0d0a;
    background: #fffdf7;
}

.cf-play {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(9, 9, 9, .3);
    border-radius: 50%;
    font-size: 10px;
}

.cf-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.cf-avatars {
    display: inline-flex;
}

.cf-avatars img {
    width: 34px;
    height: 34px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eeff;
    box-shadow: 0 1px 3px rgba(9, 9, 9, .18);
}

.cf-avatars img:first-child {
    margin-left: 0;
}

.cf-rating {
    font-size: 14px;
    color: #45403a;
}

.cf-stars {
    color: #f0b429;
    letter-spacing: 1px;
    margin-right: 6px;
}

.cf-rating strong {
    color: #0f0d0a;
}

.cf-rating-note {
    color: #6b655d;
}

/* ---------- Right column: collage image ---------- */

.cf-collage {
    display: flex;
    justify-content: center;
}

.cf-collage img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(9, 9, 9, .16));
}

/* ---------- Stats + logos ---------- */

.cf-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(40px, 6vw, 64px);
    border: 1px solid rgba(9, 9, 9, .12);
    background: rgba(9, 9, 9, .08);
}

.cf-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: #fffdf7;
    text-align: left;
}

.cf-stat-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(21, 87, 255, .3);
    border-radius: 8px;
    background: #e8eeff;
}

.cf-stat-icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.cf-stat strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 800;
    color: #0f0d0a;
    line-height: 1.15;
}

.cf-stat span {
    font-size: 12.5px;
    color: #6b655d;
}

.cf-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}

.cf-logos-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b655d;
    white-space: nowrap;
}

.cf-logos-row {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(16px, 2.6vw, 28px);
}

.cf-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    color: #6b655d;
    letter-spacing: -.01em;
    opacity: .82;
    filter: grayscale(1);
    transition: opacity .2s ease, filter .2s ease;
}

.cf-logo:hover {
    opacity: 1;
    filter: none;
}

.cf-logo svg {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .cf-grid {
        grid-template-columns: 1fr;
    }

    .cf-collage {
        max-width: 640px;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .cf-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
