/* The Black Friday page (src/_includes/pages/black-friday.njk), on top of story-page.css and promo-page.css.
   Structure and feel after an event page: a slim event bar, a dark hero with one headline, sticky robot tabs,
   one large white card per robot on a light grey page, three columns of offers, a plain FAQ accordion and
   footnotes. The site's own tokens: Poppins (inherited), --sigma-blue as the one accent, black / graphite for
   the dark panels. Nothing here reaches past .bf-page except the spotlight band it shares with the other deal
   pages, which keeps its own rules in promo-page.css. */

.bf-page {
    --bf-bg: #f5f5f7;
    --bf-card: #fff;
    --bf-ink: #1d1d1f;
    --bf-muted: #6e6e73;
    --bf-line: #d2d2d7;
    --bf-accent: var(--sigma-blue, #0071e3);
    --bf-dark: #000;
    --bf-radius: 24px;
    --bf-header: 48px; /* the painted height of the sticky site header (foundation.css --bar-h) */
    --bf-bar-h: 0px; /* the event bar is gone; the offsets that added it stay correct */
    background: var(--bf-bg);
    color: var(--bf-ink);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}
.bf-page a {
    color: inherit;
}
.bf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.bf-page [hidden] {
    display: none !important;
}

/* ---- 2. Hero ---- */
.bf-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
    background: radial-gradient(120% 90% at 50% 0%, #15233a 0%, var(--bf-dark) 60%);
    color: #f5f5f7;
    text-align: center;
}
.bf-hero-inner {
    position: relative;
    max-width: 980px;
}
.bf-crumbs {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    color: #86868b;
    font-size: 0.8125rem;
}
.bf-crumbs a {
    color: #a1a1a6;
    text-decoration: none;
}
.bf-crumbs a:hover {
    color: #fff;
}
.bf-hero-art {
    position: relative;
    display: inline-block;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.bf-hero-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(132px, 16vw, 180px);
    height: clamp(132px, 16vw, 180px);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.bf-hero-tile img,
.bf-hero-tile picture {
    width: 84%;
    height: 84%;
    object-fit: contain;
    display: block;
}
.bf-hero-tile picture img {
    width: 100%;
    height: 100%;
}
/* Confetti: a few dots in the accent, drawn with gradients so nothing is downloaded. */
.bf-confetti {
    position: absolute;
    inset: -40px -70px;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 20%, var(--bf-accent) 0 5px, transparent 6px),
        radial-gradient(circle at 92% 12%, var(--bf-accent) 0 4px, transparent 5px),
        radial-gradient(circle at 15% 85%, #2997ff 0 3px, transparent 4px),
        radial-gradient(circle at 88% 78%, var(--bf-accent) 0 6px, transparent 7px),
        radial-gradient(circle at 50% 2%, #2997ff 0 3px, transparent 4px),
        radial-gradient(circle at 2% 55%, #2997ff 0 4px, transparent 5px),
        radial-gradient(circle at 98% 48%, var(--bf-accent) 0 3px, transparent 4px);
    opacity: 0.9;
}
.bf-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--sigma-link, #2997ff);
    font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.bf-hero-title {
    margin: 0 auto 1.25rem;
    max-width: 18ch;
    color: #fff;
    font-size: clamp(2.6rem, 7.2vw, 5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.bf-hero-text,
.bf-hero-offer {
    margin: 0 auto;
    max-width: 44rem;
    color: #d2d2d7;
    font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
    line-height: 1.45;
}
.bf-hero-offer {
    margin-top: 0.6rem;
    color: #f5f5f7;
}
.bf-hero-offer a {
    color: var(--sigma-link, #2997ff);
    text-decoration: none;
}
.bf-hero-offer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- 3. Sticky tabs ---- */
.bf-tabs {
    position: sticky;
    top: calc(var(--bf-header) + var(--bf-bar-h));
    z-index: 29;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--bf-line);
}
.bf-tabs ul {
    display: flex;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bf-tabs ul::-webkit-scrollbar {
    display: none;
}
.bf-tabs li {
    flex: 0 0 auto;
}
.bf-tabs a {
    display: block;
    padding: 0.9rem 0 0.8rem;
    border-bottom: 2px solid transparent;
    color: var(--bf-ink);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.bf-tabs a:hover,
.bf-tabs a:focus-visible {
    opacity: 1;
}
.bf-tabs a.is-active {
    border-color: var(--bf-accent);
    color: var(--bf-accent);
    opacity: 1;
}

/* ---- Sections ---- */
.bf-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.bf-cards-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.bf-section-head {
    max-width: 48rem;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.bf-section-head--center {
    margin-inline: auto;
    text-align: center;
}
.bf-h2 {
    margin: 0 0 0.6rem;
    color: var(--bf-ink);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.bf-lead {
    margin: 0 0 0.6rem;
    color: var(--bf-ink);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.5;
}
.bf-lead--small {
    color: var(--bf-muted);
    font-size: 1rem;
}
.bf-lead a,
.bf-faq-answer a,
.bf-footnotes a,
.bf-column p a {
    color: var(--bf-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 113, 227, 0.35);
    text-underline-offset: 3px;
}

/* ---- 4. Cards ---- */
.bf-cards {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.bf-cards + .bf-cards {
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.bf-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 4.5vw, 4rem);
    border-radius: var(--bf-radius);
    background: var(--bf-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    scroll-margin-top: calc(var(--bf-header) + var(--bf-bar-h) + 3.5rem);
}
.bf-card:nth-child(even) .bf-card-media {
    order: 2;
}
.bf-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}
.bf-card-media a {
    display: block;
    width: 100%;
    max-width: 560px;
}
.bf-card-media img,
.bf-card-media picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.bf-confetti--card {
    inset: 6% 2%;
    opacity: 0.55;
}
.bf-card-copy {
    min-width: 0;
}
.bf-card-eyebrow,
.bf-column-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--bf-accent);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}
.bf-card-title {
    margin: 0 0 0.75rem;
    color: var(--bf-ink);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.bf-card-title a {
    color: inherit;
    text-decoration: none;
}
.bf-card-text {
    margin: 0 0 1.1rem;
    color: var(--bf-ink);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.45;
}
.bf-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.35rem;
    color: var(--bf-ink);
    font-size: 1.125rem;
    line-height: 1.3;
}
.bf-card-price s {
    position: relative;
    color: var(--bf-muted);
    text-decoration: line-through;
}
.bf-card-price strong {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.bf-card-save,
.bf-list-save {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 980px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--bf-accent);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}
.bf-card-save sup {
    font-size: 0.65em;
    line-height: 0;
}
.bf-card-save sup a {
    color: inherit;
    text-decoration: none;
}
.bf-card-note {
    margin: 0 0 0.75rem;
    color: var(--bf-muted);
    font-size: 0.9375rem;
}
.bf-card-action {
    margin: 1.4rem 0 0;
}
.bf-pill {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border: 0;
    border-radius: 980px;
    background: var(--bf-accent);
    color: #fff;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.bf-pill:hover,
.bf-pill:focus-visible {
    background: #0077ed;
    color: #fff;
}
.bf-pill--ghost {
    background: transparent;
    color: var(--bf-accent);
    box-shadow: inset 0 0 0 1px var(--bf-accent);
}
.bf-pill--ghost:hover,
.bf-pill--ghost:focus-visible {
    background: var(--bf-accent);
    color: #fff;
}
.bf-textlink {
    display: inline-block;
    margin-right: 1rem;
    color: var(--bf-accent);
    font-size: 1.0625rem;
    text-decoration: none;
}
.bf-textlink::after {
    content: ' \203A';
}
.bf-textlink:hover,
.bf-textlink:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bf-section-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.bf-section-foot .bf-textlink {
    margin: 0;
}

/* Certified Open Box / Refurbished: one card each, the robots listed inside. */
.bf-card--group {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
}
.bf-card--group .bf-card-copy {
    order: 0;
}
.bf-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}
.bf-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--bf-line);
}
.bf-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}
.bf-list-media {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--bf-bg);
    overflow: hidden;
}
.bf-list-media img,
.bf-list-media picture {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.bf-list-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.bf-list-name {
    display: block;
    color: var(--bf-ink);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
}
.bf-list-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bf-list-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin: 0.2rem 0 0;
    color: var(--bf-ink);
    font-size: 1rem;
}
.bf-list-price s {
    color: var(--bf-muted);
}
.bf-list-price strong {
    font-size: 1.125rem;
}
.bf-list-from {
    color: var(--bf-muted);
    font-size: 0.875rem;
}
.bf-list-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0.2rem 0 0;
    color: var(--bf-muted);
    font-size: 0.875rem;
}
.bf-list-grades strong {
    color: var(--bf-ink);
    font-weight: 600;
}
.bf-list .bf-card-note {
    margin: 0.2rem 0 0;
}

/* ---- 5. Even more ways to save ---- */
.bf-offers-section {
    background: var(--bf-bg);
}
/* The shared spotlight band (sections/promo-spotlight.njk, which carries its own rules) on this light page: a
   white card with the robot cards' radius and shadow. */
.bf-page .promo-spot,
.bf-page .promo-spot--card {
    width: auto;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--bf-radius);
    background: #fff;
    color: var(--bf-ink);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.bf-page .promo-spot .promo-spot-media {
    background: var(--bf-bg);
}
.bf-page .promo-spot h3.promo-spot-title,
.bf-page .promo-spot h2.promo-spot-title {
    color: var(--bf-ink);
}
.bf-page .promo-spot .promo-spot-terms,
.bf-page .promo-spot .promo-spot-text {
    color: var(--bf-muted);
}
.bf-page .promo-spot .promo-spot-terms strong {
    color: var(--bf-ink);
}
.bf-page .promo-spot .promo-spot-badge {
    background: rgba(0, 113, 227, 0.1);
    color: var(--bf-accent);
}
.bf-page .promo-spot .promo-spot-links a {
    background: var(--bf-accent);
    color: #fff;
}
.bf-page .promo-spot .promo-spot-links a:hover,
.bf-page .promo-spot .promo-spot-links a:focus-visible {
    background: #0077ed;
    color: #fff;
}
.bf-card-free {
    margin: 0 0 0.75rem;
    color: var(--bf-accent);
    font-size: 0.9375rem;
    font-weight: 600;
}
.bf-card-free a {
    color: inherit;
    text-decoration: none;
}
.bf-card-free a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bf-card-free sup {
    font-size: 0.65em;
    line-height: 0;
}
.bf-page .deals-code {
    white-space: nowrap;
    border: 1px dashed var(--bf-accent);
    color: var(--bf-ink);
    background: #fff;
}
.bf-page .deals-code strong {
    color: var(--bf-accent);
}
.bf-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.bf-columns + .bf-columns {
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.bf-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--bf-radius);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.bf-column h3 {
    margin: 0 0 0.6rem;
    color: var(--bf-ink);
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.bf-column p {
    margin: 0 0 0.9rem;
    color: var(--bf-muted);
    font-size: 1rem;
    line-height: 1.5;
}
.bf-column .bf-textlink {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}
.bf-column .deals-code {
    margin: 0 0 0.9rem;
}
.bf-columns--direct .bf-column {
    background: transparent;
    box-shadow: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.bf-column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 0.9rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.bf-column-icon img {
    width: 24px;
    height: 24px;
}

/* ---- 6. Questions ---- */
.bf-faq-section {
    background: #fff;
}
.bf-faq-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto 1rem;
}
.bf-faq-head .bf-h2 {
    margin: 0;
}
.bf-expand {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bf-accent);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}
.bf-expand:hover,
.bf-expand:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bf-faq {
    max-width: 980px;
    margin: 0 auto;
}
.bf-faq details {
    border-bottom: 1px solid var(--bf-line);
}
.bf-faq details:first-of-type {
    border-top: 1px solid var(--bf-line);
}
.bf-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
}
.bf-faq summary::-webkit-details-marker {
    display: none;
}
.bf-faq summary h3 {
    margin: 0;
    color: var(--bf-ink);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
}
.bf-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--bf-accent);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
}
.bf-faq details[open] summary::after {
    content: '\2212';
}
.bf-faq-answer {
    padding: 0 0 1.5rem;
    color: var(--bf-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---- 7. Footnotes ---- */
.bf-footnotes-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--bf-bg);
}
.bf-footnotes {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 0 1.25rem;
    color: var(--bf-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}
.bf-footnotes li {
    margin: 0 0 0.6rem;
    scroll-margin-top: calc(var(--bf-header) + var(--bf-bar-h) + 3.5rem);
}

/* ---- Phones and small tablets ---- */
@media screen and (max-width: 63.937em) {
    .bf-card,
    .bf-card--group {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .bf-card:nth-child(even) .bf-card-media,
    .bf-card .bf-card-media {
        order: 0;
    }
    .bf-card-media a {
        max-width: 420px;
    }
    .bf-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media screen and (max-width: 47.937em) {
    .bf-hero {
        padding-top: 2.5rem;
    }
    .bf-hero-title {
        max-width: 14ch;
    }
    .bf-card {
        padding: 1.5rem 1.25rem 1.75rem;
        text-align: left;
    }
    .bf-card-media {
        min-height: 0;
    }
    .bf-card-media a {
        max-width: 300px;
    }
    .bf-card-title {
        font-size: 2.1rem;
    }
    .bf-faq-head {
        flex-wrap: wrap;
    }
    .bf-pill {
        display: block;
    }
    .bf-section-foot .bf-pill {
        display: inline-block;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bf-tabs a,
    .bf-pill {
        transition: none;
    }
}

/* ---- Hero film, trust row and button text (owner, 2026-11-24) ---- */
/* The home page's hero film fills the hero behind the copy; the scrim is only as dark as white text needs. */
.bf-hero-film {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 12, 24, 0.5) 0%, rgba(4, 12, 24, 0.34) 45%, rgba(4, 12, 24, 0.5) 100%);
    pointer-events: none;
}
.bf-hero-inner {
    z-index: 1;
}
.bf-hero .bf-crumbs,
.bf-hero .bf-crumbs a {
    color: #d2d2d7;
}
.bf-hero .bf-eyebrow {
    color: #9fd0ff;
}
.bf-hero-text strong {
    color: #fff;
}
.bf-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}
.bf-hero-trust a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 980px;
    color: #fff;
    text-decoration: none;
}
.bf-hero-trust a:hover,
.bf-hero-trust a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}
/* ".bf-page a { color: inherit }" above outranked .bf-pill, so the blue buttons had dark text. */
.bf-page a.bf-pill,
.bf-page a.bf-pill:hover,
.bf-page a.bf-pill:focus-visible,
.bf-page a.bf-pill--ghost:hover,
.bf-page a.bf-pill--ghost:focus-visible {
    color: #fff;
}
.bf-page a.bf-pill--ghost {
    color: var(--bf-accent);
}
