/* Public shell pages: the Home page (home-*), the footer (sa-footer), and the shared classes that
   Pricing / FAQs / Contact / the Account forms still use (public-section, public-content-card,
   public-auth-page). Dark-only. Breakpoints: 960px (stack the hero, 2-up grids) and 600px
   (single column, full-width buttons). The header lives in components/site-header.css. */

/* ---------- Shared building blocks ---------- */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    box-sizing: border-box;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-btn--lg {
    min-height: 56px;
    padding: 0 32px;
    font-size: 1.05rem;
}

.home-btn--amber {
    background: var(--sa-amber);
    color: var(--sa-on-amber);
}

.home-btn--amber:hover {
    background: var(--sa-amber-hover);
    transform: translateY(-1px);
}

.home-btn--outline {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #f2f6ff;
}

.home-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.home-btn--outline-primary {
    border: 1.5px solid var(--sa-primary);
    color: var(--sa-primary-ink);
}

.home-btn--outline-primary:hover {
    background: var(--sa-primary-soft);
}

.home-icon {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--sa-primary-soft);
    color: var(--sa-primary-ink);
}

.home-icon--solid {
    background: var(--sa-primary);
    color: var(--sa-on-primary);
}

.home-chip {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-chip--amber {
    background: var(--sa-amber);
    color: var(--sa-on-amber);
}

/* ---------- Hero ---------- */

/* The real aerial lot photo sits UNDER a navy wash (not a plain scrim): the brand mood stays,
   the white headline stays readable over a busy photo, and the glow gives the page its "spotlight". */
.home-hero {
    position: relative;
    overflow: hidden;
    color: #f2f6ff;
    background:
        radial-gradient(60% 90% at 82% 10%, rgba(59, 123, 255, 0.5), transparent 62%),
        radial-gradient(45% 55% at 6% 105%, rgba(255, 194, 75, 0.2), transparent 62%),
        linear-gradient(180deg, rgba(11, 27, 69, 0.9), rgba(8, 20, 51, 0.96)),
        url('/images/hero/dealer-lot-hero.jpg') center / cover no-repeat;
}

.home-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 112px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.home-hero__copy {
    flex: 1 1 0;
    min-width: 0;
    max-width: 640px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sa-amber);
    box-shadow: 0 0 10px var(--sa-amber);
}

.home-hero__title {
    margin: 22px 0 18px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.2vw, 3.75rem);
    letter-spacing: -0.03em;
    line-height: 1.06;
    overflow-wrap: anywhere;
}

.home-hero__highlight {
    color: var(--sa-amber);
}

.home-hero__subtitle {
    margin: 0 0 30px;
    max-width: 54ch;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: rgba(242, 246, 255, 0.82);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
}

.home-hero__stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.home-hero__stats span {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(242, 246, 255, 0.7);
}

.home-hero__stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
}

/* Illustration: a listing card, an offer card and an "accepted" chip, layered. */
.home-hero__visual {
    position: relative;
    flex: 0 0 500px;
    width: 500px;
    height: 430px;
}

.home-showcase {
    position: absolute;
    color: var(--sa-ink);
    background: var(--sa-surface);
    border: 1px solid var(--sa-line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.home-showcase--card {
    right: 0;
    top: 0;
    width: 370px;
    border-radius: 20px;
    overflow: hidden;
}

.home-showcase__photo {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    color: var(--sa-img-ink);
    background: linear-gradient(135deg, var(--sa-img-a), var(--sa-img-b));
}

.home-showcase__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-showcase__car {
    width: 230px;
    height: 80px;
}

.home-showcase__photo .home-chip {
    position: absolute;
    left: 14px;
    top: 14px;
}

.home-showcase__body {
    padding: 14px 18px 18px;
}

.home-showcase__price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sa-ink-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.home-showcase__title {
    margin-top: 4px;
    font-weight: 700;
    font-size: 1rem;
}

.home-showcase--offer {
    left: 0;
    top: 212px;
    width: 280px;
    padding: 16px 18px;
    border-radius: 18px;
}

.home-showcase__offer-label {
    font-size: 0.82rem;
    color: var(--sa-ink-2);
}

.home-showcase__offer-amount {
    margin: 4px 0 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

.home-showcase__offer-actions {
    display: flex;
    gap: 8px;
}

.home-showcase__offer-actions span {
    flex: 1;
    padding: 8px 0;
    border: 1.5px solid var(--sa-primary);
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sa-primary-ink);
}

.home-showcase__offer-actions .is-primary {
    background: var(--sa-primary);
    color: var(--sa-on-primary);
}

.home-showcase--done {
    right: 14px;
    top: 338px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--sa-ok-bg);
    border-color: transparent;
    color: var(--sa-ok-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ---------- Sections ---------- */

.home-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px 0;
    box-sizing: border-box;
}

.home-section--last {
    padding-bottom: 80px;
}

.home-section__head {
    max-width: 640px;
    margin-bottom: 36px;
}

.home-section__head--left {
    margin-bottom: 0;
}

.home-section__head h2,
.home-cta h2 {
    margin: 8px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.home-section__head p {
    margin: 0;
    color: var(--sa-ink-2);
    font-size: 1.05rem;
}

.home-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sa-primary);
}

.home-section__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-loading {
    display: grid;
    place-items: center;
    padding: 48px 0;
}

/* Trust strip overlaps the hero's bottom edge. */
.home-trust-wrap {
    padding-top: 0;
}

.home-trust {
    position: relative;
    margin-top: -40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: var(--sa-surface);
    border: 1px solid var(--sa-line);
    border-radius: 18px;
    box-shadow: var(--sa-shadow);
    overflow: hidden;
}

.home-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--sa-line);
}

.home-trust__item:last-child {
    border-right: 0;
}

.home-trust__item strong {
    display: block;
    font-size: 0.95rem;
}

.home-trust__item span:not(.home-icon) {
    display: block;
    font-size: 0.82rem;
    color: var(--sa-ink-2);
}

.home-steps,
.home-values {
    display: grid;
    gap: 20px;
}

.home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-step,
.home-value {
    padding: 26px;
    background: var(--sa-surface);
    border: 1px solid var(--sa-line);
    border-radius: 18px;
    box-shadow: var(--sa-shadow);
}

.home-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-step__n {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    color: var(--sa-primary-soft);
    -webkit-text-stroke: 1px var(--sa-line);
}

.home-step h3,
.home-value h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.home-value .home-icon {
    margin-bottom: 14px;
}

.home-step p,
.home-value p {
    margin: 0;
    color: var(--sa-ink-2);
    line-height: 1.6;
    font-size: 0.95rem;
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 48px 52px;
    border-radius: 24px;
    color: #f2f6ff;
    background:
        radial-gradient(50% 120% at 92% 0%, rgba(59, 123, 255, 0.55), transparent 60%),
        radial-gradient(40% 90% at 0% 110%, rgba(255, 194, 75, 0.22), transparent 60%),
        linear-gradient(180deg, #0b1b45, #081433);
    border: 1px solid var(--sa-line);
}

.home-cta h2 {
    margin: 0 0 8px;
    font-weight: 800;
}

.home-cta p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(242, 246, 255, 0.78);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .home-hero__visual {
        flex-basis: 440px;
        width: 440px;
        transform: scale(0.92);
        transform-origin: right center;
    }

    .home-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .home-hero__inner {
        padding: 48px 20px 96px;
    }

    /* The composite illustration is decoration; below tablet it would only push the headline down. */
    .home-hero__visual {
        display: none;
    }

    .home-hero__copy {
        max-width: none;
    }

    .home-section {
        padding: 56px 20px 0;
    }

    .home-section--last {
        padding-bottom: 56px;
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-trust__item {
        border-right: 0;
        border-bottom: 1px solid var(--sa-line);
    }

    .home-trust__item:last-child {
        border-bottom: 0;
    }

    .home-cta {
        padding: 36px 28px;
    }
}

@media (max-width: 600px) {
    .home-hero__inner {
        padding: 36px 16px 88px;
    }

    .home-hero__actions {
        flex-direction: column;
    }

    .home-hero__actions .home-btn,
    .home-section__row .home-btn,
    .home-cta .home-btn {
        width: 100%;
    }

    .home-hero__stats strong {
        font-size: 1.6rem;
    }

    .home-section {
        padding: 44px 16px 0;
    }

    .home-section--last {
        padding-bottom: 44px;
    }

    .home-section__head {
        margin-bottom: 24px;
    }

    .home-values {
        grid-template-columns: 1fr;
    }

    .home-trust {
        grid-template-columns: 1fr;
    }

    .home-cta {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* ---------- Shared classes for Pricing / FAQs / Contact / Account forms ---------- */

.public-section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.public-section--alt {
    background: var(--sa-surface);
}

.public-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.public-value-card {
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--sa-radius-lg);
    box-shadow: var(--sa-shadow);
}

.public-content-card {
    border-radius: var(--sa-radius-lg);
    box-shadow: var(--sa-shadow);
}

.public-auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1.5rem;
}

.public-auth-page .mud-paper {
    width: 100%;
}

.public-auth-page__subtitle {
    max-width: 420px;
}

@media (max-width: 600px) {
    .public-section {
        padding: 1.25rem 1rem;
    }

    .public-auth-page {
        padding: 2rem 1rem;
    }
}

/* ---------- Footer ---------- */

.sa-footer {
    margin-top: 24px;
    background: var(--sa-chrome);
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    justify-content: space-between;
}

.sa-footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
    display: block;
}

.sa-footer__brand p {
    max-width: 340px;
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.sa-footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
}

.sa-footer__col h4 {
    margin: 0 0 12px;
    color: var(--sa-amber);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sa-footer__col a,
.sa-footer__form button {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #94a3b8;
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sa-footer__col a:hover,
.sa-footer__form button:hover {
    color: #fff;
}

.sa-footer__form {
    margin: 0;
}

.sa-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    /* Room for the fixed phone tab bar so the copyright line is never covered. */
    .sa-footer {
        padding-bottom: var(--sa-tabbar-h);
    }
}

@media (max-width: 600px) {
    .sa-footer__inner {
        padding: 36px 16px 16px;
    }

    .sa-footer__bottom {
        padding: 16px 16px 24px;
    }
}
