/* =========================================================================
   Sure-Fi CV19 — Verkada-inspired redesign layer
   Loaded AFTER global.css so these rules take precedence.
   Scope: shared nav + footer (site-wide) and the homepage (#home / body.page-home).
   Additive only — does not remove existing routes, data, forms, or cart JS.
   ========================================================================= */

:root {
    /* Brand + neutrals */
    --sf-ink:        #0b1015;   /* near-black: dark sections, primary buttons, footer */
    --sf-ink-2:      #141b23;
    --sf-white:      #ffffff;
    --sf-surface:    #ffffff;   /* card surface on light */
    --sf-bg-light:   #f4f6f8;   /* light section background */
    --sf-bg-soft:    #eef1f4;
    --sf-border:     #e3e7ec;
    --sf-border-2:   #d7dde3;

    /* Text */
    --sf-text:       #10171f;   /* primary text on light */
    --sf-text-muted: #56636f;   /* secondary text on light */
    --sf-text-onink: #eef2f6;   /* text on dark */
    --sf-text-onink-muted: #9aa7b3;

    /* Accent (Sure-Fi relay blue) + product palette */
    --sf-accent:     #1f9ed6;
    --sf-accent-600: #1786b7;
    --sf-green:      #6cb33f;
    --sf-red:        #cf1a24;
    --sf-orange:     #f19e00;

    /* Type scale (fluid) */
    --sf-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --sf-fs-hero:    clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
    --sf-fs-h2:      clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
    --sf-fs-h3:      clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
    --sf-fs-card:    1.2rem;
    --sf-fs-body:    1.0625rem;   /* 17px */
    --sf-fs-lead:    clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
    --sf-fs-caption: 0.8125rem;

    /* Layout */
    --sf-container:  1200px;
    --sf-gutter:     clamp(20px, 4vw, 48px);
    --sf-section-y:  clamp(64px, 7vw, 120px);
    --sf-radius:     18px;
    --sf-radius-sm:  12px;
    --sf-nav-h:      72px;
    --sf-shadow:     0 6px 24px rgba(16, 23, 31, 0.08);
    --sf-shadow-lg:  0 18px 50px rgba(16, 23, 31, 0.14);
}

/* -------------------------------------------------------------------------
   Homepage base (scoped so other, still-dark pages are untouched)
   ------------------------------------------------------------------------- */
body.page-home,
body.page-home #page_container {
    background: var(--sf-white);
}
body.page-home {
    font-family: var(--sf-font);
    color: var(--sf-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#home {
    font-family: var(--sf-font);
    color: var(--sf-text);
    font-size: var(--sf-fs-body);
    line-height: 1.65;
    overflow-x: hidden;
}
#home a { color: inherit; }

/* Shared layout helpers */
.sf-container {
    width: 100%;
    max-width: var(--sf-container);
    margin-inline: auto;
    padding-inline: var(--sf-gutter);
    box-sizing: border-box;
}
.sf-section { padding-block: var(--sf-section-y); }
.sf-section--light { background: var(--sf-bg-light); }
.sf-section--ink   { background: var(--sf-ink); color: var(--sf-text-onink); }

.sf-eyebrow {
    font-size: var(--sf-fs-caption);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sf-accent);
    margin: 0 0 14px;
}
.sf-section--ink .sf-eyebrow { color: var(--sf-accent); }

.sf-h2 {
    font-size: var(--sf-fs-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: inherit;
    text-align: left;
}
.sf-lead {
    font-size: var(--sf-fs-lead);
    line-height: 1.6;
    color: var(--sf-text-muted);
    max-width: 60ch;
    margin: 0;
}
.sf-section--ink .sf-lead { color: var(--sf-text-onink-muted); }

.sf-section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sf-section-head--center { text-align: center; }
.sf-section-head--center .sf-h2 { text-align: center; }
.sf-section-head--center .sf-lead { margin-inline: auto; }

/* -------------------------------------------------------------------------
   Button system (pill) — usable site-wide
   ------------------------------------------------------------------------- */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sf-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    white-space: nowrap;
}
.sf-btn:hover { transform: translateY(-1px); }
.sf-btn:active { transform: translateY(0); }

/* Primary: solid dark */
.sf-btn--primary {
    background: var(--sf-ink);
    color: #fff !important;
    border-color: var(--sf-ink);
}
.sf-btn--primary:hover { background: #22303c; border-color: #22303c; box-shadow: var(--sf-shadow); }

/* Secondary: outline (on light) */
.sf-btn--secondary {
    background: transparent;
    color: var(--sf-text) !important;
    border-color: var(--sf-border-2);
}
.sf-btn--secondary:hover { border-color: var(--sf-ink); background: #fff; box-shadow: var(--sf-shadow); }

/* Light: white fill (for dark backgrounds, primary emphasis) */
.sf-btn--light {
    background: #fff;
    color: var(--sf-ink) !important;
    border-color: #fff;
}
.sf-btn--light:hover { background: #eaf3f8; border-color: #eaf3f8; }

/* Ghost on dark: white outline */
.sf-btn--ghost-light {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,0.5);
}
.sf-btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Accent */
.sf-btn--accent {
    background: var(--sf-accent);
    color: #fff !important;
    border-color: var(--sf-accent);
}
.sf-btn--accent:hover { background: var(--sf-accent-600); border-color: var(--sf-accent-600); }

.sf-btn--sm { padding: 10px 22px; font-size: 0.9rem; }
.sf-btn--block { display: flex; width: 100%; }

/* Accessible focus states site-wide */
.sf-btn:focus-visible,
#home a:focus-visible,
.sf-nav a:focus-visible,
.sf-nav button:focus-visible,
.sf-footer a:focus-visible {
    outline: 3px solid var(--sf-accent);
    outline-offset: 2px;
    border-radius: 999px;
}

/* =========================================================================
   NAV — slim white bar (shared, site-wide)
   Overrides #header_div / #header_container from global.css
   ========================================================================= */
#header_div.sf-nav {
    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(--sf-border);
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}
.sf-nav__inner {
    height: var(--sf-nav-h);
    max-width: var(--sf-container);
    margin: 0 auto;
    padding-inline: var(--sf-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

/* Logo lockup */
.sf-nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.sf-nav__logo img { height: 30px; width: auto; display: block; cursor: pointer; }

/* Primary links */
.sf-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 40px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-nav__links a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sf-text) !important;
    text-decoration: none !important;
    padding: 6px 2px;
    position: relative;
    margin: 0;
}
.sf-nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--sf-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.sf-nav__links a:hover::after { transform: scaleX(1); }
.sf-nav__links a:hover { color: var(--sf-ink) !important; }

/* "Become a Pro" tab — subtle CTA emphasis among the plain tabs */
.sf-nav__links a.sf-nav__link-cta { color: var(--sf-accent-600) !important; }
.sf-nav__links a.sf-nav__link-cta::after { background: var(--sf-accent-600); }
.sf-nav__mobile a.sf-nav__link-cta { color: var(--sf-accent-600) !important; }

/* Right-side actions */
.sf-nav__actions { display: flex; align-items: center; gap: 14px; }
.sf-nav__icon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sf-text) !important;
    font-family: var(--sf-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 8px 6px;
    transition: color .18s ease;
}
.sf-nav__icon:hover { color: var(--sf-accent) !important; }
.sf-nav__icon svg { width: 22px; height: 22px; display: block; }
.sf-nav__cart-count {
    font-variant-numeric: tabular-nums;
}
.sf-nav__pill { padding: 11px 22px; font-size: 0.82rem; letter-spacing: 0.06em; }

/* Header spacer height must match the fixed nav */
body .header-spacer { height: var(--sf-nav-h); }

/* Mobile toggle (hidden on desktop) */
.sf-nav__toggle { display: none; }

@media (max-width: 960px) {
    .sf-nav__links,
    .sf-nav__actions .sf-nav__desktop-only { display: none; }
    .sf-nav__toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px; height: 44px;
        background: none; border: none; cursor: pointer;
        padding: 0;
    }
    .sf-nav__toggle span {
        display: block; height: 2px; width: 24px; margin: 0 auto;
        background: var(--sf-ink); border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    .sf-nav__mobile {
        position: fixed;
        top: var(--sf-nav-h);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--sf-border);
        box-shadow: var(--sf-shadow);
        display: none;
        flex-direction: column;
        padding: 10px var(--sf-gutter) 24px;
        z-index: 49;
    }
    .sf-nav__mobile.is-open { display: flex; }
    .sf-nav__mobile a {
        padding: 15px 4px;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--sf-text) !important;
        text-decoration: none !important;
        border-bottom: 1px solid var(--sf-border);
    }
    .sf-nav__mobile a:last-child { border-bottom: none; }
    .sf-nav__mobile .sf-btn { margin-top: 16px; }
}
@media (min-width: 961px) {
    .sf-nav__mobile { display: none !important; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.sf-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    background: radial-gradient(120% 120% at 75% 20%, #1b2732 0%, #0b1015 60%);
    overflow: hidden;
    isolation: isolate;
}
.sf-hero__media {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.55;
}
.sf-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8,12,16,0.92) 0%, rgba(8,12,16,0.7) 42%, rgba(8,12,16,0.35) 100%),
        linear-gradient(0deg, rgba(8,12,16,0.85) 0%, rgba(8,12,16,0.1) 55%);
}
.sf-hero__inner {
    position: relative;
    padding-block: clamp(96px, 12vw, 160px);
}
.sf-hero__content { max-width: 760px; }
.sf-hero__eyebrow {
    color: #6fd0f2;
    font-size: var(--sf-fs-caption);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.sf-hero__title {
    font-size: var(--sf-fs-hero);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 24px;
    text-align: left;
    text-wrap: balance;
}
.sf-hero__sub {
    font-size: var(--sf-fs-lead);
    line-height: 1.55;
    color: #cdd8e2;
    margin: 0 0 36px;
    max-width: 52ch;
}
.sf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================================
   BEST SELLERS — horizontal scroll carousel
   ========================================================================= */
.sf-bestsellers .sf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sf-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 288px);
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;                /* overflow-x:auto makes overflow-y compute to auto,
                                          silently trapping vertical scroll/swipe. Keep the
                                          y-axis out of it so vertical gestures reach the page. */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 26px;
    margin-inline: -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--sf-border-2) transparent;
}
.sf-carousel::-webkit-scrollbar { height: 8px; }
.sf-carousel::-webkit-scrollbar-thumb { background: var(--sf-border-2); border-radius: 999px; }
.sf-carousel::-webkit-scrollbar-track { background: transparent; }
.sf-card {
    scroll-snap-align: start;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--sf-text) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    /* No min-height:100% here — grid items already stretch to fill the row
       (align-items defaults to normal/stretch). A percentage height against
       the auto-height .sf-carousel grid is circular, and Safari re-resolves
       it each layout pass, ratcheting the cards taller as you scroll. */
}
.sf-card:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow-lg); border-color: var(--sf-border-2); }
.sf-card__badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--sf-ink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.sf-card__media {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-bg-light);
    border-radius: var(--sf-radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.sf-card__media img {
    max-width: 82%;
    max-height: 82%;
    width: auto; height: auto;
    object-fit: contain;
}
.sf-card__title {
    font-size: var(--sf-fs-card);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--sf-text);
}
.sf-card__desc {
    font-size: 0.95rem;
    color: var(--sf-text-muted);
    line-height: 1.55;
    margin: 0 0 20px;
}
.sf-card__foot { margin-top: auto; }

/* =========================================================================
   PRODUCT CATEGORY GRID
   ========================================================================= */
.sf-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.sf-cat {
    display: flex;
    flex-direction: column;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 28px;
    text-decoration: none !important;
    color: var(--sf-text) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 190px;
}
.sf-cat:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow-lg); border-color: var(--sf-border-2); }
.sf-cat__name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.sf-cat__desc { font-size: 0.95rem; color: var(--sf-text-muted); margin: 0; }
.sf-cat__arrow {
    margin-top: auto;
    padding-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-accent);
}
.sf-cat:hover .sf-cat__arrow { gap: 12px; }

/* =========================================================================
   SPECS / STATS  — "Impressive tech calls for impressive specs"
   ========================================================================= */
.sf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: clamp(32px, 4vw, 56px);
}
.sf-stat {
    background: var(--sf-ink-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--sf-radius);
    padding: 40px 32px;
    text-align: left;
}
.sf-stat__num {
    font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 6px;
    display: block;
    /* Long single words ("Extensive") must never overrun the tile. */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.sf-stat__num small { font-size: 0.42em; font-weight: 700; letter-spacing: 0; vertical-align: baseline; }
.sf-stat__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.sf-stat__label--accent { color: #6fd0f2; }
.sf-stat__desc {
    font-size: 0.95rem;
    color: var(--sf-text-onink-muted);
    line-height: 1.55;
    margin: 0;
}

/* =========================================================================
   INDUSTRIAL CONNECTIVITY — two feature cards
   ========================================================================= */
.sf-usecases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.sf-usecase {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.sf-usecase__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--sf-bg-light);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--sf-accent);
}
.sf-usecase__icon svg { width: 30px; height: 30px; }
.sf-usecase__title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
.sf-usecase__desc { color: var(--sf-text-muted); margin: 0 0 24px; }
.sf-usecase__foot { margin-top: auto; }

/* =========================================================================
   RESOURCE CENTER band
   ========================================================================= */
.sf-resource {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    background: linear-gradient(120deg, #12324a 0%, #0b1015 70%);
    border-radius: var(--sf-radius);
    padding: clamp(36px, 5vw, 68px);
    color: var(--sf-text-onink);
}
.sf-resource h2 { color: #fff; }
.sf-resource__badge {
    display: inline-block;
    background: var(--sf-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.sf-resource__art {
    display: flex; align-items: center; justify-content: center;
}
.sf-resource__art svg { width: 100%; max-width: 320px; height: auto; color: rgba(255,255,255,0.9); }
@media (max-width: 820px) {
    .sf-resource { grid-template-columns: 1fr; }
    .sf-resource__art { display: none; }
}

/* =========================================================================
   BECOME A PRO section wrapper (restyles the existing subview)
   ========================================================================= */
.sf-pro {
    background: var(--sf-bg-light);
    text-align: center;
}
.sf-pro .pro-banner-container { padding: 0 !important; }
.sf-pro .pro-banner-container h1 {
    font-size: var(--sf-fs-h2) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: var(--sf-text);
    margin: 0 0 10px;
}
.sf-pro .pro-banner-container p { color: var(--sf-text-muted); font-size: var(--sf-fs-body); }
.sf-pro .pro_id {
    box-shadow: none;
    border: 1.5px solid var(--sf-border-2);
    border-radius: 999px;
    max-width: 520px;
}
.sf-pro .pro_id:focus { outline: 3px solid var(--sf-accent); box-shadow: none; }
.sf-pro #lookup_pro.glow-button {
    background: var(--sf-ink);
    box-shadow: none;
    border-radius: 999px;
    width: auto;
    padding: 14px 28px;
    font-weight: 700;
}
.sf-pro #lookup_pro.glow-button:hover { background: #22303c; color: #fff; }

/* =========================================================================
   FOOTER — clean, dark, tidy columns (shared)
   ========================================================================= */
#footer.sf-footer {
    position: static;
    height: auto;
    background: var(--sf-ink);
    color: var(--sf-text-onink);
    text-align: left;
    padding: 0;
    font-size: var(--sf-fs-body);
    width: 100%;
}
.sf-footer__inner {
    max-width: var(--sf-container);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--sf-gutter) 32px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
}
.sf-footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.sf-footer__tagline { color: var(--sf-text-onink-muted); font-size: 0.95rem; line-height: 1.6; max-width: 30ch; margin: 0 0 22px; }
.sf-footer__col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-text-onink-muted);
    margin: 0 0 16px;
}
.sf-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sf-footer__col li { margin-bottom: 11px; }
.sf-footer__col a {
    color: var(--sf-text-onink) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color .18s ease;
}
.sf-footer__col a:hover { color: var(--sf-accent) !important; }
.sf-footer__social { display: flex; gap: 12px; margin-top: 4px; }
.sf-footer__social a {
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .18s ease, border-color .18s ease;
}
.sf-footer__social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.sf-footer__social img { width: 18px; height: 18px; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.sf-footer__bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: var(--sf-container);
    margin: 0 auto;
    padding: 22px var(--sf-gutter) 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--sf-text-onink-muted);
}
.sf-footer__bar a { color: var(--sf-text-onink-muted) !important; text-decoration: none !important; margin-left: 18px; }
.sf-footer__bar a:hover { color: #fff !important; }

@media (max-width: 860px) {
    .sf-footer__inner { grid-template-columns: 1fr 1fr; }
    .sf-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .sf-footer__inner { grid-template-columns: 1fr; }
    .sf-footer__bar { flex-direction: column; text-align: center; }
    .sf-footer__bar a { margin: 0 9px; }
}

/* -------------------------------------------------------------------------
   Small screens: homepage rhythm
   ------------------------------------------------------------------------- */
@media (max-width: 700px) {
    .sf-hero__title { line-height: 1.06; }
    .sf-hero__cta .sf-btn { flex: 1 1 auto; }
    .sf-bestsellers .sf-section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-btn, .sf-card, .sf-cat, .sf-nav__links a::after { transition: none; }
    .sf-btn:hover, .sf-card:hover, .sf-cat:hover { transform: none; }
}

/* =========================================================================
   INTERIOR PAGES — Product detail, Pros, Technology, Resources (Media)
   Phase 2: light Verkada treatment applied to the EXISTING markup classes,
   scoped per page so the still-dark pages elsewhere are untouched.
   ========================================================================= */

/* The old absolute footer reserved 150px at the bottom of <body>; the new
   footer is static, so reclaim that space site-wide. */
body { padding-bottom: 0; }

/* ---- Page grounds (turn these routes light) ---- */
body.page-product,
body.page-pros,
body.page-tech,
body.page-resources { background: var(--sf-white); }

body.page-product #page_container,
body.page-pros #page_container,
body.page-tech #page_container,
body.page-resources #page_container {
    background: var(--sf-white);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: var(--sf-fs-body);
    line-height: 1.65;
}

/* Shared content shell used by all interior views */
body.page-product .product_content,
body.page-pros .product_content,
body.page-tech .product_content,
body.page-resources .product_content {
    color: var(--sf-text);
    font-family: var(--sf-font);
}

/* Center + constrain each section, add generous vertical rhythm */
body.page-product .product_content_section,
body.page-tech .product_content_section {
    padding: clamp(40px, 5vw, 80px) var(--sf-gutter);
}
body.page-product .product_content_container,
body.page-tech .product_content_container {
    max-width: var(--sf-container);
    margin-inline: auto;
}

/* Alternating "other-color-section" bands become a soft light tint */
body.page-product .product_content_section.other-color-section,
body.page-tech .product_content_section.other-color-section,
body.page-pros .other-color-section,
body.page-resources .other-color-section {
    background: var(--sf-bg-light);
    color: var(--sf-text);
}

/* ---- Headings / type ---- */
body.page-product .page_title,
body.page-tech .page_title,
body.page-pros .page_title,
body.page-resources .page_title {
    color: var(--sf-text);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: var(--sf-fs-h2);
}
body.page-product .product_header_title,
body.page-tech .product_header_title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
}
body.page-product .features,
body.page-tech .features {
    color: var(--sf-text);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: left;
}
body.page-product .product-sku,
body.page-product .product_content .dimensions { color: var(--sf-text-muted); }

/* Body copy weights inside the tech article */
body.page-tech .product_content_container div[style*="font-weight:600"] { color: var(--sf-text); }
body.page-tech .product_content_container div[style*="font-weight:300"] { color: var(--sf-text-muted); }

/* ---- Links ---- */
body.page-product .product_content a,
body.page-tech .product_content a,
body.page-pros .product_content a,
body.page-resources .product_content a { color: var(--sf-accent-600); }

/* ---- Cards / included sections ---- */
body.page-product .included-inside-section {
    background: var(--sf-bg-light);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
}
body.page-product .key_points { color: var(--sf-text); }
body.page-product .lead_time_warning { background: #fff4e5; color: #8a5200; border: 1px solid #f2c98a; }

/* ---- Buttons: Add to Cart / submits become solid dark pills ---- */
body.page-product .buybutton,
body.page-pros .buybutton,
body.page-resources .buybutton {
    background: var(--sf-ink);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    border: none;
}
body.page-product .buybutton:hover,
body.page-pros .buybutton:hover,
body.page-resources .buybutton:hover { background: #22303c; }

/* Product-colour "Add to Cart" variants -> keep brand colour but pill it */
body.page-product .buybutton_wiegand, body.page-product .buybutton_access,
body.page-product .buybutton_relay, body.page-product .buybutton_relay_low,
body.page-product .buybutton_relay_pro, body.page-product .buybutton_hvac,
body.page-product .buybutton_hvac_exp, body.page-product .buybutton_analog,
body.page-product .buybutton_serial, body.page-product .buybutton_rat_access {
    border-radius: 999px !important;
    font-weight: 700;
}

/* ---- Product detail tabs ---- */
body.page-product .tab {
    border-bottom: 1px solid var(--sf-border);
    padding: 4px 0 0;
}
body.page-product .tab button {
    color: var(--sf-text-muted);
    font-family: var(--sf-font);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px 999px 0 0;
    margin: 0 6px;
    padding: 12px 18px;
}
body.page-product .tab button:hover { background: var(--sf-bg-light); color: var(--sf-text); }
body.page-product .tab button.active {
    background: var(--sf-bg-light);
    color: var(--sf-text);
    box-shadow: inset 0 -2px 0 var(--sf-accent);
}

/* Certification logos are white PNGs -> invert to dark on the light card */
body.page-product .product_content img[src*="certification-icons"] {
    filter: invert(1) brightness(0.35);
}

/* Product hero image sits on a soft rounded panel */
body.page-product .flexer.rmflexer > div:last-child img {
    background: var(--sf-bg-light);
    border-radius: var(--sf-radius);
    padding: 18px;
    box-sizing: border-box;
}

/* ---- Product hero: info column + product photo ---- */
body.page-product .product-hero {
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
}
body.page-product .product-hero__info {
    flex: 1 1 52%;
    min-width: 0;
}
body.page-product .product-hero__media {
    flex: 0 1 44%;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.page-product .product-hero__media img {
    max-width: 100%;
    height: auto;
    background: var(--sf-bg-light);
    border-radius: var(--sf-radius);
    padding: 20px;
    box-sizing: border-box;
}

/* Quantity selector beside Add to Cart */
body.page-product .qty-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--sf-text-onink, #eef2f6);
}
body.page-product .qty-field label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}
body.page-product .qty-field input[type="number"] {
    width: 68px;
    padding: 10px 8px;
    font-size: 18px;
    text-align: center;
    border: 1.5px solid var(--sf-border-2);
    border-radius: 8px;
    background: #fff;
    color: var(--sf-text);
}
body.page-product .qty-field input[type="number"]:focus {
    outline: 3px solid var(--sf-accent);
    outline-offset: 1px;
}

@media only screen and (max-width: 840px) {
    body.page-product .product-hero { flex-direction: column; }
    body.page-product .product-hero__info,
    body.page-product .product-hero__media { flex-basis: auto; width: 100%; }
    body.page-product .product-hero__media { order: -1; margin-bottom: 8px; }
}

/* ---- Technology page images ---- */
body.page-tech #technology_menu li { color: var(--sf-text); }

/* ---- Pros page ---- */
body.page-pros .product_content { padding-block: clamp(32px, 4vw, 56px); }
body.page-pros .other-color-section {
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius);
    overflow: hidden;
    box-shadow: var(--sf-shadow);
}
body.page-pros ul li { color: var(--sf-text); }
body.page-pros input[type="text"] {
    border: 1.5px solid var(--sf-border-2);
    border-radius: 999px;
}
body.page-pros input[type="text"]:focus { outline: 3px solid var(--sf-accent); }

/* ---- Resources / Media page ---- */
body.page-resources .page_title { padding-top: clamp(32px, 4vw, 56px); }
body.page-resources .asset_container { color: var(--sf-text); }
body.page-resources .asset_type_div_title {
    border-bottom: 1px solid var(--sf-border);
    color: var(--sf-text);
    font-weight: 800;
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    margin-top: 40px;
}
body.page-resources .product_title { color: var(--sf-text-muted); text-decoration: none; }
body.page-resources .asset_image {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-light);
}
body.page-resources .asset_name { color: var(--sf-text); font-weight: 700; }
body.page-resources .asset_link a { color: var(--sf-accent-600); }

/* =========================================================================
   INSTALLER STORIES (Resources) — Verkada-customers-style grid + modal
   ========================================================================= */
.sf-stories-page { background: var(--sf-white); color: var(--sf-text); font-family: var(--sf-font); }
.sf-stories-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.sf-stories-title {
    font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.03;
    margin: 0 0 18px;
    color: var(--sf-text);
    text-wrap: balance;
}

.sf-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Story card (button element, reset native styles) */
.sf-story {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    font-family: var(--sf-font);
    color: var(--sf-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.sf-story:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow-lg); border-color: var(--sf-border-2); }
.sf-story:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 2px; }

.sf-story__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0b1015;
    overflow: hidden;
}
.sf-story__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.sf-story:hover .sf-story__thumb img { transform: scale(1.04); }
.sf-story__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 62px; height: 62px;
    border-radius: 999px;
    background: rgba(11, 16, 21, 0.72);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.sf-story__play svg { width: 26px; height: 26px; margin-left: 3px; }
.sf-story:hover .sf-story__play { background: var(--sf-accent); transform: translate(-50%, -50%) scale(1.06); }

.sf-story__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex-grow: 1; }
.sf-story__tag {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--sf-accent); margin-bottom: 2px;
}
.sf-story__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--sf-text); }
.sf-story__desc { font-size: 0.94rem; color: var(--sf-text-muted); line-height: 1.55; }
.sf-story__date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sf-text-muted); margin-top: 2px; }
.sf-story__cta { align-self: flex-start; margin-top: 10px; }

/* Featured story = wide split card */
.sf-story--featured { flex-direction: row; }
.sf-story--featured .sf-story__thumb { flex: 1 1 58%; aspect-ratio: 16 / 9; }
.sf-story--featured .sf-story__body { flex: 1 1 42%; justify-content: center; padding: clamp(24px, 3vw, 44px); }
.sf-story--featured .sf-story__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.sf-story--featured .sf-story__desc { font-size: 1.02rem; }
@media (max-width: 780px) {
    .sf-story--featured { flex-direction: column; }
    .sf-story--featured .sf-story__thumb { flex-basis: auto; width: 100%; }
}

/* Video modal */
.sf-video-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.sf-video-modal[hidden] { display: none; }
.sf-video-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 9, 12, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sf-video-modal__inner { position: relative; width: min(92vw, 1000px); }
.sf-video-modal__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--sf-radius); overflow: hidden; box-shadow: var(--sf-shadow-lg); background: #000; }
.sf-video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sf-video-modal__close {
    position: absolute; top: -46px; right: 0;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,0.14); color: #fff; border: none; cursor: pointer;
    font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.sf-video-modal__close:hover { background: rgba(255,255,255,0.28); }
.sf-video-modal__close:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .sf-story, .sf-story__thumb img, .sf-story__play { transition: none; }
    .sf-story:hover { transform: none; }
    .sf-story:hover .sf-story__thumb img { transform: none; }
}

/* =========================================================================
   CONTACT PAGE — light treatment + clean info cards
   ========================================================================= */
body.page-contact { background: var(--sf-white); }
body.page-contact #page_container {
    background: var(--sf-white);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: var(--sf-fs-body);
    line-height: 1.65;
}
body.page-contact .product_content { color: var(--sf-text); font-family: var(--sf-font); max-width: var(--sf-container); margin-inline: auto; padding: 0 var(--sf-gutter) clamp(48px, 6vw, 90px); }
body.page-contact .page_title {
    color: var(--sf-text);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: var(--sf-fs-h2);
    padding-top: clamp(32px, 4vw, 56px);
}
body.page-contact .product_content a { color: var(--sf-accent-600); }
/* splash image panel */
body.page-contact .product_content > div:nth-of-type(1) {
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius);
    overflow: hidden;
    box-shadow: var(--sf-shadow);
    margin: 0 auto clamp(28px, 4vw, 48px) !important;
}
/* info cards */
body.page-contact .contact_container {
    background: var(--sf-surface) !important;
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius);
    color: var(--sf-text);
    text-align: left;
    padding: 26px 24px;
    width: min(340px, 90vw);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.page-contact .contact_container:hover { transform: translateY(-3px); box-shadow: var(--sf-shadow-lg); border-color: var(--sf-border-2); }
body.page-contact .contact_container p[style*="24px"] { font-size: 1.2rem !important; font-weight: 800 !important; letter-spacing: -0.01em; }
body.page-contact .contact_container p[style*="18px"] { color: var(--sf-text-muted); }

/* =========================================================================
   PRODUCTS CATALOG (/products) — light treatment over the JS-built cards
   ========================================================================= */
body.page-products { background: var(--sf-white); }
body.page-products #page_container {
    background: var(--sf-white);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: var(--sf-fs-body);
    line-height: 1.65;
}
body.page-products .product_content { color: var(--sf-text); }

/* Page hero */
.sf-products-hero { text-align: center; padding-bottom: clamp(20px, 3vw, 32px); }
.sf-products-title {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    color: var(--sf-text);
    margin: 0 0 14px;
}
body.page-products .sf-products-hero .sf-lead { margin-inline: auto; }

/* Section bands + headings (JS builds .product_content_section.product_row_1/2 > h2;
   was h1 — demoted to h2 for single-h1-per-page SEO, styling unchanged) */
body.page-products .product_row_1 { background: var(--sf-white); }
body.page-products .product_row_2 { background: var(--sf-bg-light); }
body.page-products .product_content_section { padding: clamp(34px, 4.5vw, 72px) var(--sf-gutter); }
body.page-products .product_content_section h1,
body.page-products .product_content_section h2 {
    font-size: var(--sf-fs-h2);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sf-text);
    margin: 0 auto clamp(28px, 3.5vw, 44px);
    max-width: var(--sf-container);
}
body.page-products .product_display {
    max-width: var(--sf-container);
    margin-inline: auto;
    gap: 24px;
}

/* Product cards */
body.page-products .product_div {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 22px;
    width: 260px;
    box-sizing: border-box;
    text-align: center;
    color: var(--sf-text);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.page-products .product_div:hover,
body.page-products .product_div:active {
    background: var(--sf-surface);
    transform: translateY(-4px);
    box-shadow: var(--sf-shadow-lg);
    border-color: var(--sf-border-2);
}
body.page-products .product_div img {
    background: var(--sf-bg-light);
    border-radius: var(--sf-radius-sm);
    padding: 16px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100% !important;
    height: auto;
    margin-bottom: 14px;
}
body.page-products .product_titles { color: var(--sf-text); font-weight: 800; letter-spacing: -0.01em; }
body.page-products .product_descriptions { color: var(--sf-text-muted); }
body.page-products .image-collection img { border-radius: var(--sf-radius-sm); }

/* Search */
body.page-products .search-container { margin: 6px auto clamp(8px, 2vw, 20px); }
body.page-products .search-bar {
    padding: 14px 22px;
    border: 1.5px solid var(--sf-border-2);
    border-radius: 999px;
    width: min(440px, 90vw);
    font-size: 1rem;
    color: var(--sf-text);
    background: #fff;
}
body.page-products .search-bar:focus { outline: 3px solid var(--sf-accent); outline-offset: 1px; border-color: var(--sf-accent); }

/* Back button */
body.page-products #back-button {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    margin: 20px 0 0 clamp(16px, 4vw, 48px);
}
body.page-products #back-button:hover { background: var(--sf-bg-light); }
body.page-products #back-button:active { background: var(--sf-bg-soft); }
body.page-products #back-button svg { fill: var(--sf-text) !important; }

/* Pro banner (become-a-pro lookup) sitting on the catalog */
body.page-products .pro-banner-container h1 { color: var(--sf-text) !important; font-weight: 800 !important; letter-spacing: -0.02em; }
body.page-products .pro-banner-container p { color: var(--sf-text-muted); }
body.page-products .pro_id { box-shadow: none; border: 1.5px solid var(--sf-border-2); border-radius: 999px; }
body.page-products .pro_id:focus { outline: 3px solid var(--sf-accent); box-shadow: none; }
body.page-products .glow-button { background: var(--sf-ink); box-shadow: none; border-radius: 999px; color: #fff; }
body.page-products .glow-button:hover { background: #22303c; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    body.page-products .product_div { transition: none; }
    body.page-products .product_div:hover { transform: none; }
}

/* =========================================================================
   PRO SIGNUP FORM (/pro_signup)
   ========================================================================= */
.sf-signup-page { background: var(--sf-white); color: var(--sf-text); font-family: var(--sf-font); }
.sf-signup-hero { text-align: left; }
.sf-signup-hero__title {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
    color: #fff; margin: 0 0 16px; max-width: 20ch; text-wrap: balance;
}
.sf-container--form { max-width: 820px; }

/* Hero "what happens next" process strip (on the ink background) */
.sf-signup-steps {
    list-style: none; margin: 32px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; max-width: 760px;
}
.sf-signup-step {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sf-radius-sm);
}
.sf-signup-step__num {
    flex: 0 0 auto;
    width: 28px; height: 28px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800;
    color: #fff; background: var(--sf-accent);
}
.sf-signup-step__body { font-size: 0.9rem; line-height: 1.4; color: var(--sf-text-onink-muted); }
.sf-signup-step__body strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }

@media (max-width: 720px) {
    .sf-signup-steps { grid-template-columns: 1fr; gap: 10px; max-width: 440px; }
    .sf-signup-step { align-items: center; }
}

/* Two-column layout: form + sticky benefits aside */
.sf-container--signup { max-width: 1120px; }
.sf-signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.sf-signup-main { min-width: 0; }

.sf-signup-aside { position: sticky; top: calc(var(--sf-nav-h) + 24px); }
.sf-signup-aside__card {
    background: var(--sf-ink); color: #fff;
    border-radius: var(--sf-radius);
    padding: clamp(26px, 2.4vw, 34px);
    box-shadow: var(--sf-shadow);
}
.sf-signup-aside__eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sf-accent); margin: 0 0 8px;
}
.sf-signup-aside__title {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
    color: #fff; margin: 0 0 22px;
}
.sf-aside-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.sf-aside-benefit { display: flex; align-items: flex-start; gap: 13px; }
.sf-aside-benefit__icon {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(31, 158, 214, 0.18); color: var(--sf-accent);
    margin-top: 1px;
}
.sf-aside-benefit__icon svg { width: 15px; height: 15px; }
.sf-aside-benefit span:last-child { font-size: 0.92rem; line-height: 1.45; color: var(--sf-text-onink-muted); }
.sf-aside-benefit strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.sf-signup-aside__note {
    margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem; color: var(--sf-text-onink-muted);
}
.sf-signup-aside__note a { color: var(--sf-accent); font-weight: 600; }

@media (max-width: 900px) {
    .sf-signup-layout { grid-template-columns: 1fr; }
    .sf-signup-aside { position: static; order: -1; }
    .sf-signup-aside__card { padding: 24px; }
    .sf-aside-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
}
@media (max-width: 560px) {
    .sf-aside-benefits { grid-template-columns: 1fr; }
}

.sf-form { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.sf-fieldset {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: clamp(22px, 3vw, 34px);
    margin: 0;
    background: var(--sf-surface);
}
.sf-legend {
    font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
    color: var(--sf-text); padding: 0 10px; margin-left: -10px;
}
.sf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin-top: 8px;
}
.sf-field { display: flex; flex-direction: column; gap: 7px; }
.sf-field--full { grid-column: 1 / -1; }
.sf-field__label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; color: var(--sf-text); }
.sf-field__label em { color: var(--sf-accent-600); font-style: normal; }
.sf-field__hint { font-size: 0.82rem; color: var(--sf-text-muted); }

.sf-input-line {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--sf-font);
    font-size: 1rem;
    color: var(--sf-text);
    background: #fff;
    border: 1.5px solid var(--sf-border-2);
    border-radius: var(--sf-radius-sm);
    padding: 12px 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-input-line::placeholder { color: #9aa7b3; }
.sf-input-line:focus { outline: none; border-color: var(--sf-accent); box-shadow: 0 0 0 3px rgba(31,158,214,0.18); }
.sf-textarea { resize: vertical; min-height: 108px; line-height: 1.5; }
.sf-select { -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2356636f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.sf-file { font-family: var(--sf-font); font-size: 0.95rem; color: var(--sf-text-muted); }
.sf-file::file-selector-button {
    font-family: var(--sf-font); font-weight: 700; font-size: 0.9rem;
    border: 1.5px solid var(--sf-border-2); background: #fff; color: var(--sf-text);
    border-radius: 999px; padding: 9px 18px; margin-right: 14px; cursor: pointer; transition: border-color .15s ease;
}
.sf-file::file-selector-button:hover { border-color: var(--sf-ink); }

.sf-checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--sf-text-muted); margin-bottom: 4px; cursor: pointer; }
.sf-checkbox input { width: 18px; height: 18px; accent-color: var(--sf-accent); }

.sf-form-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-form-actions .sf-btn { font-size: 1.05rem; padding: 16px 34px; }

.sf-form-errors {
    background: #fdecec; border: 1px solid #f4b8b8; color: #a11;
    border-radius: var(--sf-radius-sm); padding: 16px 20px; margin-bottom: 26px;
}
.sf-form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.sf-form-errors li { margin: 3px 0; }

.sf-success-card {
    max-width: 620px; margin: 0 auto; text-align: center;
    background: var(--sf-surface); border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius); box-shadow: var(--sf-shadow);
    padding: clamp(34px, 5vw, 60px);
}
.sf-success-card__icon {
    width: 66px; height: 66px; border-radius: 999px;
    background: rgba(108,179,63,0.14); color: var(--sf-green);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.sf-success-card__icon svg { width: 32px; height: 32px; }

@media (max-width: 620px) {
    .sf-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    body.page-contact .contact_container { transition: none; }
    body.page-contact .contact_container:hover { transform: none; }
}

/* =========================================================================
   BECOME A PRO — landing page
   ========================================================================= */
.sf-propage { background: var(--sf-white); color: var(--sf-text); font-family: var(--sf-font); }

.sf-pro-hero { text-align: left; }
.sf-pro-hero__title,
.sf-rma-hero__title {
    font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.03;
    color: #fff;
    margin: 0 0 18px;
    text-wrap: balance;
    max-width: 18ch;
}

/* Benefits grid */
.sf-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.sf-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 24px;
}
.sf-benefit__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 999px;
    background: rgba(31, 158, 214, 0.12);
    color: var(--sf-accent-600);
    display: inline-flex; align-items: center; justify-content: center;
}
.sf-benefit__icon svg { width: 20px; height: 20px; }
.sf-benefit__title { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 5px; color: var(--sf-text); }
.sf-benefit__desc { font-size: 0.94rem; color: var(--sf-text-muted); line-height: 1.55; margin: 0; }

/* Steps */
.sf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.sf-step {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 32px 28px;
}
.sf-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--sf-ink);
    color: #fff;
    font-size: 1.15rem; font-weight: 800;
    margin-bottom: 18px;
}
.sf-step__title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--sf-text); }
.sf-step__desc { color: var(--sf-text-muted); margin: 0; line-height: 1.55; }
.sf-step__desc a { color: var(--sf-accent-600); }

/* Lookup / account card */
.sf-pro-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    padding: clamp(30px, 4vw, 52px);
}
.sf-pro-card .sf-h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); margin: 6px 0 10px; }
.sf-pro-card a { color: var(--sf-accent-600); }
.sf-pro-inputrow {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}
.sf-input {
    flex: 1 1 260px;
    max-width: 340px;
    font-size: 1.05rem;
    padding: 14px 22px;
    border: 1.5px solid var(--sf-border-2);
    border-radius: 999px;
    background: #fff;
    color: var(--sf-text);
    text-align: center;
    box-sizing: border-box;
}
.sf-input:focus { outline: 3px solid var(--sf-accent); outline-offset: 1px; border-color: var(--sf-accent); }
.sf-pro-inputrow .sf-btn { flex: 0 0 auto; }
.sf-pro-error {
    margin: 22px auto 0;
    max-width: 520px;
    text-align: center;
    background: #fdecec;
    border: 1px solid #f4b8b8;
    color: #a11;
    border-radius: var(--sf-radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
}
/* Keep the signed-in "sign out" chip on-brand within the card */
.sf-pro-card .buybutton_small {
    background: transparent;
    color: var(--sf-accent-600);
    border: 1.5px solid var(--sf-border-2);
    border-radius: 999px;
}
.sf-pro-card .buybutton_small:hover { border-color: var(--sf-ink); color: var(--sf-ink); }

/* ===========================================================================
   RMA intake (/rma_intake) + customer RMA portal (/rma_portal)

   Built on the same tokens and components as the Pro pages so the two match
   exactly rather than approximately. Anything that already existed
   (.sf-pro-card, .sf-input, .sf-form-grid, .sf-field, .sf-input-line,
   .sf-form-errors, .sf-btn, .sf-section--ink, .sf-eyebrow) is reused as-is —
   only genuinely new pieces are defined here.
   =========================================================================== */

/* Hero: identical treatment to the Pro hero. Declared alongside it rather than
   duplicated, so the two can never drift. */
.sf-rma-hero { text-align: left; }

/* Screen-reader-only utility (no such helper existed in this codebase). */
.sf-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Wider card for the multi-field contact form; the lookup card keeps the
   stock .sf-pro-card 640px so it lines up with /pros. */
.sf-rma-card--wide { max-width: 760px; }

/* ---- paired-unit list ---------------------------------------------------- */
.sf-rma-units { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sf-rma-unit {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 12px 14px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
}
.sf-rma-unit__serial { color: var(--sf-text-muted); font-size: 0.95rem; }
.sf-rma-unit__role { font-weight: 700; }

/* ---- callouts ------------------------------------------------------------ */
.sf-rma-note {
    padding: 14px 16px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-light);
}
.sf-rma-note p { margin: 6px 0 0; font-size: 0.95rem; color: var(--sf-text-muted); }
.sf-rma-note--ok    { border-color: #b9d8c0; background: #f2faf4; }
.sf-rma-note--warn  { border-color: #e6d2a2; background: #fff8e5; }
.sf-rma-note--error { border-color: #f4b8b8; background: #fdecec; color: #a11; }

/* ---- review summary ------------------------------------------------------ */
.sf-rma-summary {
    display: grid; grid-template-columns: auto 1fr;
    gap: 8px 18px; margin: 0 0 18px;
}
.sf-rma-summary dt { color: var(--sf-text-muted); }
.sf-rma-summary dd { margin: 0; }

/* ---- the issued RMA number ----------------------------------------------- */
.sf-rma-code {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
    font-weight: 800; letter-spacing: 2px;
    margin: 0 0 18px; color: var(--sf-text);
}

/* ---- lifecycle track (portal) -------------------------------------------- */
.sf-rma-track { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sf-rma-track__item { display: flex; align-items: flex-start; gap: 14px; }
.sf-rma-track__rail {
    display: flex; flex-direction: column; align-items: center; align-self: stretch;
}
.sf-rma-track__dot {
    width: 16px; height: 16px; border-radius: 999px; flex: none; margin-top: 3px;
    border: 2px solid var(--sf-border-2); background: #fff;
}
.sf-rma-track__line { flex: 1; width: 2px; min-height: 22px; background: var(--sf-border-2); }
.sf-rma-track__label { padding-bottom: 18px; color: var(--sf-text-muted); }

.sf-rma-track__item--done .sf-rma-track__dot  { background: var(--sf-accent); border-color: var(--sf-accent); }
.sf-rma-track__item--done .sf-rma-track__line { background: var(--sf-accent); }
.sf-rma-track__item--done .sf-rma-track__label,
.sf-rma-track__item--current .sf-rma-track__label { color: var(--sf-text); font-weight: 700; }
.sf-rma-track__item--current .sf-rma-track__dot {
    border-color: var(--sf-accent); box-shadow: 0 0 0 4px rgba(31, 158, 214, 0.16);
}

/* Horizontal variant for the shorter Advance Replacement track. */
.sf-rma-track--inline { display: flex; flex-wrap: wrap; gap: 18px; }
.sf-rma-track--inline .sf-rma-track__item { align-items: center; gap: 9px; }
.sf-rma-track--inline .sf-rma-track__dot { width: 13px; height: 13px; margin-top: 0; }
.sf-rma-track--inline .sf-rma-track__label { padding-bottom: 0; }

/* ---- terms modal --------------------------------------------------------- */
.sf-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 12, 16, 0.72);
    padding: 24px; overflow-y: auto;
}
.sf-modal__panel {
    max-width: 720px; margin: 40px auto;
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-lg);
    padding: clamp(24px, 3vw, 32px);
}
.sf-modal__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .sf-rma-summary { grid-template-columns: 1fr; gap: 2px 0; }
    .sf-rma-summary dt { margin-top: 10px; }
    .sf-rma-unit { flex-direction: column; align-items: flex-start; gap: 6px; }
}
