/*
 * SCG Home Page — layout & section styles.
 *
 * Every color/spacing/typography value here is a var(--scg-*) read from
 * theme-tokens.css — this file never hardcodes a design value itself (see
 * that file's own docblock). Only enqueued on the page using the "SCG Home
 * Page" template (see scg-theme-components.php maybe_enqueue_assets()), so
 * it never affects any other page on the site.
 *
 * Mobile-first: base rules target small screens, breakpoints add
 * multi-column layout as width increases.
 */

/* ---------------------------------------------------------------- */
/* Base                                                              */
/* ---------------------------------------------------------------- */

body.scg-home {
    margin: 0;
    background: var(--scg-bg);
    color: var(--scg-ink);
    font-family: var(--scg-font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.scg-home *,
body.scg-home *::before,
body.scg-home *::after {
    box-sizing: border-box;
}

body.scg-home img {
    max-width: 100%;
    display: block;
}

body.scg-home a {
    color: inherit;
}

body.scg-home .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.scg-home-section-inner,
.scg-home-header-inner,
.scg-home-footer-inner {
    max-width: var(--scg-max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.scg-home-section {
    background: var(--scg-bg);
    padding: var(--scg-section-padding);
    scroll-margin-top: 84px; /* keeps anchor-jumped sections clear of the sticky header */
}
.scg-home-section--alt {
    background: var(--scg-bg-alt);
}

.scg-home-section-head {
    max-width: 640px;
    margin: 0 0 40px;
}
.scg-home-section-title {
    font-family: var(--scg-font-display);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--scg-ink);
}
.scg-home-section-subtitle {
    margin: 0;
    color: var(--scg-ink-soft);
    font-size: 1.05rem;
}

.scg-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Reveal-on-scroll (progressive enhancement — see homepage.js). Elements
   start visible; JS adds .scg-reveal only when IntersectionObserver exists,
   so nothing ever depends on JS to become visible. */
.scg-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
.scg-reveal.scg-reveal-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.scg-home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--scg-btn-padding);
    background: var(--scg-rust);
    color: #fff;
    font-family: var(--scg-font-body);
    font-weight: 700;
    font-size: var(--scg-btn-font-size);
    letter-spacing: var(--scg-btn-letter-spacing);
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--scg-radius);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
/*
 * Specificity fix, not a style change: the base rule above already sets
 * color:#fff, but body.scg-home a{color:inherit} (0,1,2) in the Base
 * section outranks a bare .scg-home-cta (0,1,0) on the <a>-tag CTAs
 * (header, hero), silently making their text the ambient ink color
 * instead of white. Buttons (e.g. the newsletter submit) aren't <a>
 * tags so were never affected. This re-declaration just wins the
 * cascade for real.
 */
body.scg-home .scg-home-cta {
    color: #fff;
}
.scg-home-cta:hover {
    background: var(--scg-rust-deep);
}
.scg-home-cta:active {
    transform: translateY(1px);
}
.scg-home-cta:disabled {
    background: var(--scg-ink-faint);
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.scg-home-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--scg-header-bg);
    border-bottom: 1px solid var(--scg-header-border);
    transition: box-shadow .2s ease;
}
.scg-home-header--scrolled {
    box-shadow: var(--scg-shadow);
}
.scg-home-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.scg-home-header .scg-home-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--scg-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--scg-header-ink);
    margin-right: auto;
    white-space: nowrap;
}
.scg-home-logo-icon {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}
.scg-home-logo-word--accent {
    color: var(--scg-rust);
}

.scg-home-nav {
    display: none;
}
.scg-home-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.scg-home-header .scg-home-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    color: var(--scg-header-ink);
    white-space: nowrap;
}
.scg-home-header .scg-home-nav a:hover {
    color: var(--scg-rust);
}

.scg-home-cta-header {
    display: none;
}

.scg-home-nav-toggle {
    background: none;
    border: 1px solid var(--scg-header-border);
    border-radius: var(--scg-radius);
    padding: 8px;
    line-height: 0;
    cursor: pointer;
    color: var(--scg-header-ink);
}
.scg-home-nav-toggle .scg-icon-close {
    display: none;
}
.scg-home-nav-toggle[aria-expanded="true"] .scg-icon-menu {
    display: none;
}
.scg-home-nav-toggle[aria-expanded="true"] .scg-icon-close {
    display: block;
}

/* Mobile dropdown nav, toggled by homepage.js */
.scg-home-nav.scg-home-nav--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--scg-header-bg);
    border-bottom: 1px solid var(--scg-header-border);
    box-shadow: var(--scg-shadow);
    padding: 12px 24px 20px;
}
.scg-home-nav.scg-home-nav--open ul {
    flex-direction: column;
    gap: 4px;
}
.scg-home-nav.scg-home-nav--open a {
    display: block;
    padding: 10px 4px;
}

@media (min-width: 900px) {
    .scg-home-nav {
        display: block;
    }
    .scg-home-nav ul {
        flex-direction: row;
    }
    .scg-home-cta-header {
        display: inline-flex;
    }
    .scg-home-nav-toggle {
        display: none;
    }
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

.scg-home-hero {
    position: relative;
    /*
     * Owner directive 2026-08-26 (Hero spacing fix): a 24px breathing gap
     * immediately above and below the Hero card — previously 0 on both
     * sides (Hero sat flush against the sticky header above and
     * .scg-home-trust below). Reuses --scg-gap (24px), the site's own
     * measured base line-height (16px * 1.5), rather than the larger
     * --scg-section-padding (88px) used for full section-to-section
     * rhythm elsewhere — that value would have stacked with
     * .scg-home-trust's own existing 88px top padding into a much larger,
     * unintended gap below than above. .scg-home-trust itself is
     * untouched; its own padding is unrelated pre-existing section rhythm,
     * identical to how it already relates to every other section.
     */
    /*
     * Owner directive 2026-08-19 (visual correction pass): matches the
     * approved LIVE Hero's own contained-card format — the same
     * max-width/aspect-ratio/rounded-corner treatment already applied to
     * the locked YMM/Pit Stop screens (see expert-choice-guide.css
     * .scg-ecg-screen), which were themselves built to match this Hero's
     * "isti vizuelni format kartice" in the first place. Replaces the old
     * full-bleed ~100vh sizing below.
     */
    max-width: 960px;
    margin: var(--scg-gap) auto;
    /*
     * Owner directive 2026-08-29 (Hero spacing regression fix): the margin
     * above was silently zeroed on render — .scg-home-hero-wrap carries WP
     * core's "is-layout-flow" block-support class, and since this hero is
     * that wrapper's only child, WP's own global styles apply BOTH
     * :root :where(.is-layout-flow) > :first-child{margin-block-start:0}
     * AND ...> :last-child{margin-block-end:0} to it. Both have specificity
     * (0,2,0) (two pseudo-classes outside :where()), which beats this
     * single-class rule's (0,1,0) regardless of source order, collapsing
     * the gap on both sides to 0. Restored explicitly here as the exact
     * logical properties WP core is overriding, so this actually wins.
     */
    margin-block-start: var(--scg-gap) !important;
    margin-block-end: var(--scg-gap) !important;
    aspect-ratio: 3 / 2; /* matches SCG_FINAL_HOME_HERO_BASE.png's own 1536x1024 ratio */
    border-radius: 24px;
    padding: 96px 24px 140px;
    background:
        linear-gradient(180deg, rgba(27,20,13,.4), rgba(27,20,13,.62)),
        var(--scg-bg-deep);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scg-home-hero--image {
    /*
     * Owner directive 2026-08-21: the dark gradient this rule used to layer
     * over the photo (linear-gradient(180deg, rgba(27,20,13,.4),
     * rgba(27,20,13,.62)), painted first so it sat on top of --scg-hero-image
     * beneath it) was there to keep the old white headline/subtitle/badges
     * legible over a busy photo. That copy was already removed from this
     * section in an earlier pass (see this file's own section-hero.php
     * history), so nothing depends on the darkening any more — it was just
     * dimming the approved photo for no reason. Removed; the photo now
     * renders at its own real brightness/color/contrast, completely
     * unedited. Position/size/aspect-ratio below are unchanged.
     */
    background-image: var(--scg-hero-image);
    /*
     * The FINAL locked hero photo (SCG_FINAL_HOME_HERO_BASE.png, 1536x1024)
     * frames both trucks, the two utility poles, and the centered tire/stone
     * in a band roughly 45%-83% down the image — the same vertical
     * composition band as the prior approved photo this bias was originally
     * tuned for. At the ~100vh height this section now uses, the container
     * is tall enough relative to its width that background-size:cover only
     * crops a modest amount overall, so a light downward bias is enough to
     * guarantee the full composition stays in frame while still showing the
     * dramatic sky above it. Carried over unchanged from the prior photo;
     * re-verify against real desktop/tablet/mobile renders of this exact
     * file before adjusting.
     */
    background-position: center 56%;
}
@media (max-width: 640px) {
    .scg-home-hero {
        /*
         * Deliberately NOT 100vh on narrow phones: portrait viewports are
         * typically taller (in px) than they are wide, which would force
         * background-size:cover to crop from the LEFT/RIGHT instead of
         * top/bottom on a landscape photo — and both trucks sit near the
         * image's outer edges, so horizontal cropping is the one crop
         * direction that risks losing them entirely. A bounded height keeps
         * the box closer to the photo's own landscape ratio instead.
         *
         * aspect-ratio:auto here for the same reason as the locked YMM
         * screen's own mobile override (expert-choice-guide.css): a strict
         * 3:2 box at a narrow mobile width is far too short to hold this
         * hero's title/subtitle/CTAs/badges without clipping them, since
         * overflow:hidden is still in effect above for the rounded corners.
         */
        aspect-ratio: auto;
        padding: 64px 20px 132px;
        min-height: 560px;
    }
    .scg-home-hero--image {
        background-position: center 62%;
    }
}
/*
 * Owner directive 2026-08-21: graphical START tab, positioned on the rock
 * pile directly below the hero photo's central spare tire. Percentages are
 * relative to .scg-home-hero's own box (position:relative, unchanged) so
 * the tab tracks the same spot on the photo at every width — the box and
 * the photo share the same 3:2 ratio (aspect-ratio on .scg-home-hero,
 * background-size:cover on .scg-home-hero--image), so a fixed percentage
 * position/size here never drifts off the rock as the box scales.
 * `all: revert` strips the inherited .scg-home-cta button chrome (orange
 * background, padding, uppercase text, border-radius — see the "Buttons"
 * section above) instead of overriding each property one at a time, since
 * none of that button styling belongs on an image-only tap target. No
 * change to .scg-home-hero / .scg-home-hero--image themselves — this tab
 * is a sibling overlay element, not a filter/overlay on the photo.
 */
.scg-home-hero-start-tab {
    all: revert;
    position: absolute;
    left: 39%;
    top: 70.5%;
    width: 20%;
    aspect-ratio: 1665 / 945; /* the tab graphic's own ratio — never stretched/distorted */
    display: block;
    cursor: pointer;
    z-index: 2;
}
.scg-home-hero-start-tab-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/*
 * .scg-home-cta:hover (Buttons section above) paints an orange background
 * that would otherwise show through this tab's own transparent PNG edges —
 * neutralized here (equal specificity, later in source order, so this
 * wins) rather than touching that shared hover rule other CTAs still need.
 */
.scg-home-hero-start-tab:hover {
    background: none;
}
@media (max-width: 640px) {
    .scg-home-hero-start-tab {
        /* Same rock-pile target spot; the mobile Hero override above
           (aspect-ratio:auto, fixed padding/min-height) changes the box's
           own proportions relative to the photo, so the tab's percentage
           position is re-tuned here rather than reused verbatim. */
        left: 34%;
        top: 66%;
        width: 30%;
    }
}
.scg-home-hero-scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.8);
    animation: scg-bounce 2s ease-in-out infinite;
}
@keyframes scg-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
    .scg-home-hero-scroll-cue { animation: none; }
}

/* ---------------------------------------------------------------- */
/* Trust / About                                                     */
/* ---------------------------------------------------------------- */

.scg-home-trust .scg-home-section-inner {
    display: grid;
    gap: 40px;
    /*
     * Owner directive 2026-08-29 (Trust alignment fix): match the Hero's own
     * content width (960px) instead of the sitewide 1180px section width,
     * so this section's cards + copy line up with the Hero above them.
     * Scoped to .scg-home-trust only — every other section keeps the
     * sitewide --scg-max-width untouched.
     */
    max-width: 960px;
}
.scg-home-trust-badges {
    display: grid;
    /*
     * Owner directive 2026-08-29 (Trust card sizing fix): repeat(auto-fit,
     * minmax(140px,1fr)) let the browser pick the column count from
     * available width alone, which produced 2 columns at some viewport
     * widths (e.g. ~1024px) — wrapping "No Sponsored Rankings" onto its own
     * row while "Independent"/"Data-Verified" each grew to ~50% width
     * instead of ~33%, the "one card larger" effect reported. A fixed
     * 3-column grid (matching the Steps section's own already-correct
     * pattern below) guarantees exactly 3 equal columns whenever there's
     * room for them, and a clean single-column stack otherwise.
     */
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .scg-home-trust-badges {
        grid-template-columns: repeat(3, 1fr);
    }
}
.scg-home-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    font-weight: 700;
    font-size: .92rem;
    /*
     * Owner directive 2026-08-29: this badge also carries WP core's
     * "is-layout-flow" class, which — same mechanism as the Hero fix above
     * — gives non-first badges an extra margin-block-start:1.2rem inside
     * their grid cell (specificity ties with this rule, but since it's the
     * same issue class already proven to cause a visible offset on the
     * Steps cards below, closed here too for consistent top alignment).
     */
    margin-block-start: 0 !important;
}
.scg-home-trust-badge-icon {
    color: var(--scg-rust);
}
.scg-home-trust-copy .scg-home-trust-body {
    color: var(--scg-ink-soft);
    font-size: 1.05rem;
    margin: 0;
}

@media (min-width: 900px) {
    .scg-home-trust .scg-home-section-inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ---------------------------------------------------------------- */
/* Finder                                                            */
/* ---------------------------------------------------------------- */

.scg-home-finder-card {
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: calc(var(--scg-radius) * 2);
    box-shadow: var(--scg-shadow);
    padding: clamp(20px, 4vw, 48px);
}
.scg-home-finder-unavailable {
    margin: 0;
    color: var(--scg-ink-soft);
}

/*
 * Locked YMM / Pit Stop background photos (Owner directive 2026-08-19).
 * expert-choice-guide.css owns the .scg-ecg-screen box's sizing/hidden
 * state/rounded corners (it must stay usable without this stylesheet, on
 * the scg_scanner/scg_comparison CPT pages); this stylesheet only supplies
 * which locked photo fills that box, same division of responsibility as
 * section-hero.php's own --scg-hero-image already uses for the Hero.
 */
#scg-expert-choice-guide .scg-ecg-screen--ymm {
    background-image: url(../images/SCG_YMM_FINAL.png);
}
#scg-expert-choice-guide .scg-ecg-screen--pitstop {
    background-image: url(../images/SCG_PITSTOP_FINAL.png);
}

/*
 * Positions a locked screen's scrollIntoView() (called from
 * expert-choice-guide.js's showScreen()) so the COMPLETE image lands
 * directly below the sticky header, not partially hidden underneath it —
 * same 84px clearance already used site-wide for every anchor-jumped
 * section (.scg-home-section above), reused here rather than a new
 * one-off value.
 */
#scg-expert-choice-guide .scg-ecg-screen {
    scroll-margin-top: 84px;
}

/*
 * While a locked screen is open, the finder-card wrapper above must not
 * add its own padding/border/shadow on top of the screen's own rounded
 * photo card — that would draw a visible double-card. Left untouched
 * (still a normal card) when the Finder is idle or when the shortcode
 * itself is unavailable (.scg-home-finder-unavailable), so that fallback
 * message keeps its card treatment.
 */
.scg-home-finder-card:has(.scg-ecg-screen.is-active) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ---------------------------------------------------------------- */
/* Steps                                                             */
/* ---------------------------------------------------------------- */

.scg-home-steps .scg-home-section-inner {
    /*
     * Owner directive 2026-08-29 (Steps alignment fix): match the Hero's
     * own content width (960px) instead of the sitewide 1180px section
     * width, same reasoning and scope as the Trust section fix above.
     */
    max-width: 960px;
}
.scg-home-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 24px;
}
.scg-home-step {
    position: relative;
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    padding: 28px 24px 24px;
    /*
     * Owner directive 2026-08-29 (Steps sizing fix): this card also carries
     * WP core's "is-layout-flow" class. Core's own global styles give every
     * non-first child of an is-layout-flow container margin-block-start:
     * 1.2rem — so steps 2 and 3 sat ~19px lower inside their grid cell than
     * step 1 (which core zeroes via its :first-child variant), even though
     * spacing between cards is already fully handled by this grid's own
     * gap. Zeroed uniformly so all three cards start flush with their cell.
     */
    margin-block-start: 0 !important;
}
.scg-home-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--scg-radius-round);
    background: var(--scg-rust-tint);
    color: var(--scg-rust-deep);
    margin-bottom: 16px;
}
.scg-home-step-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--scg-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--scg-border);
}
.scg-home-step-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--scg-ink); /* explicit, not inherited: the active theme's global styles emit h1-h6 { color: var(--wp--preset--color--contrast) }, which always wins over an ancestor's inherited color regardless of specificity */
}
.scg-home-step-body {
    margin: 0;
    color: var(--scg-ink-soft);
    font-size: .95rem;
}

@media (min-width: 720px) {
    .scg-home-steps-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------- */
/* Content card grid (Guides / Compare / Featured)                   */
/* ---------------------------------------------------------------- */

.scg-home-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scg-home-content-card {
    display: flex;
    flex-direction: column;
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--scg-shadow);
    transition: transform .15s ease;
}
.scg-home-content-card:hover {
    transform: translateY(-3px);
}
.scg-home-content-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--scg-bg-deep);
}
.scg-home-content-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scg-home-content-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.scg-home-content-card-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--scg-ink); /* explicit, not inherited: the active theme's global styles emit h1-h6 { color: var(--wp--preset--color--contrast) }, which always wins over an ancestor's inherited color regardless of specificity */
}
.scg-home-content-card-excerpt {
    margin: 0;
    color: var(--scg-ink-soft);
    font-size: .9rem;
    flex: 1;
}
.scg-home-content-card-link {
    margin-top: 8px;
    font-weight: 700;
    font-size: .85rem;
    color: var(--scg-rust);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Featured scanner cards reuse the Expert Choice Guide plugin's own
   .scg-ecg-suitability-badge / .scg-ecg-buy-btn classes (loaded whenever
   the shortcode is present, which it always is — see section-finder.php)
   so a "Professional" badge or a Buy button looks identical everywhere on
   the site. Only layout, not color, is adjusted here. */
.scg-home-scanner-card {
    padding: 0;
}
.scg-home-scanner-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.scg-home-scanner-card-price {
    font-family: var(--scg-font-display);
    font-size: 1.3rem;
    font-weight: 700;
}
.scg-home-scanner-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

/* ---------------------------------------------------------------- */
/* Vehicles                                                          */
/* ---------------------------------------------------------------- */

.scg-home-vehicle-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.scg-home-vehicle-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    text-decoration: none;
    color: var(--scg-ink);
    font-weight: 700;
    transition: border-color .15s ease, color .15s ease;
}
.scg-home-vehicle-card:hover {
    border-color: var(--scg-rust);
    color: var(--scg-rust);
}

/* ---------------------------------------------------------------- */
/* FAQ                                                               */
/* ---------------------------------------------------------------- */

.scg-home-faq-list {
    display: grid;
    gap: 12px;
    max-width: 780px;
}
.scg-home-faq-item {
    background: var(--scg-card);
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    overflow: hidden;
}
.scg-home-faq-question {
    margin: 0;
}
.scg-home-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 18px 20px;
    font: inherit;
    font-weight: 700;
    text-align: left;
    color: var(--scg-ink);
    cursor: pointer;
}
.scg-home-faq-chevron {
    transition: transform .2s ease;
    color: var(--scg-ink-faint);
}
.scg-home-faq-toggle[aria-expanded="true"] .scg-home-faq-chevron {
    transform: rotate(180deg);
}
.scg-home-faq-answer {
    padding: 0 20px 18px;
    color: var(--scg-ink-soft);
}
.scg-home-faq-answer p {
    margin: 0;
}
.scg-home-faq-answer[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- */
/* Newsletter                                                        */
/* ---------------------------------------------------------------- */

.scg-home-newsletter-inner {
    text-align: center;
    max-width: 560px;
}
.scg-home-newsletter-icon {
    color: var(--scg-rust);
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
}
.scg-home-newsletter-body {
    color: var(--scg-ink-soft);
    margin: 0 0 24px;
}
.scg-home-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.scg-home-newsletter-form input {
    flex: 1 1 240px;
    padding: 12px 14px;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    background: var(--scg-card);
    color: var(--scg-ink);
    font: inherit;
}
.scg-home-newsletter-form input:disabled,
.scg-home-newsletter-form button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.scg-home-footer {
    background: var(--scg-bg-deep);
    border-top: 1px solid var(--scg-border);
}
.scg-home-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 24px;
}
.scg-home-footer-tagline {
    color: var(--scg-ink-soft);
    max-width: 420px;
    margin: 8px 0 0;
}
.scg-home-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.scg-home-footer-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: var(--scg-ink-soft);
}
.scg-home-footer-nav a:hover {
    color: var(--scg-rust);
}
.scg-home-footer-bottom {
    border-top: 1px solid var(--scg-border);
    padding: 20px 24px 32px;
    max-width: var(--scg-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--scg-ink-faint);
}
.scg-home-disclosure,
.scg-home-copyright {
    margin: 0;
}

@media (min-width: 900px) {
    .scg-home-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------- */
/* Back to Top                                                       */
/* ---------------------------------------------------------------- */

.scg-back-to-top {
    /*
     * Owner directive 2026-08-26 (Back-to-Top, final design): visibility is
     * controlled entirely by homepage.js setting style.display directly
     * (see initBackToTop()) — this rule must NOT set its own `display`, or
     * it silently overrides the `hidden` attribute exactly as the earlier
     * version of this control did. `display: none` here is only the
     * no-JS/pre-JS default, matching the `hidden` attribute already on the
     * element in footer.php.
     */
    display: none;
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--scg-rust);
    color: #fff;
    border: none;
    border-radius: var(--scg-radius);
    box-shadow: var(--scg-shadow);
    cursor: pointer;
    transition: background-color .2s ease;
}
.scg-back-to-top:hover,
.scg-back-to-top:focus-visible {
    background: var(--scg-rust-deep);
}
@media (max-width: 640px) {
    .scg-back-to-top {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}
