/* Homepage V3 layout. Colours come from brandV2.css tokens. */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body.home-v3 {
    margin: 0;
}

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

body.home-v3 p {
    margin: 0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.home-v3 .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

body.home-v3 .brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    flex-shrink: 0;
}

body.home-v3 .dash-copy {
    margin-top: 18px;
    margin-bottom: 28px;
}

body.home-v3 .nav-quote-cta {
    display: none;
}

body.home-v3 .nav-quote-cta.is-visible {
    display: inline-flex;
}

body.home-v3 .only-mobile {
    display: none;
}

/* Sections */
body.home-v3 .home-section {
    padding: 96px 0;
}

body.home-v3 .home-section--white {
    background: var(--bg-elev);
}

body.home-v3 .home-section--cream {
    background: var(--bg);
}

body.home-v3 .home-section--flush {
    padding-top: 0;
}

body.home-v3 #faq {
    scroll-margin-top: 96px;
}

body.home-v3 .band {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

/* Hero */
body.home-v3 .hero {
    padding: 64px 0 72px;
    background: var(--bg);
    border-bottom: none;
    overflow: hidden;
}

body.home-v3 .hero .row,
body.home-v3 .split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

body.home-v3 #dashboard .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

body.home-v3 .hero-quote-col {
    display: block;
    padding-left: 0;
    min-height: 0;
}

body.home-v3 .hero .lede {
    margin-top: 22px;
    max-width: 540px;
}

body.home-v3 a.trust-row {
    text-decoration: none;
    width: fit-content;
}

body.home-v3 a.trust-row:hover {
    color: var(--text-primary);
}

body.home-v3 .trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

body.home-v3 .trust-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

body.home-v3 .stars {
    color: var(--brand-secondary);
    letter-spacing: 2px;
}

/* Quote card */
body.home-v3 .hero .quote-card {
    max-width: none;
    width: 100%;
    margin-top: 0;
    border-radius: 20px;
    padding: 28px;
    scroll-margin-top: 96px;
    background: var(--bg-elev) !important;
    box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.28) !important;
}

body.home-v3 .quote-card:hover {
    transform: none;
    box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.28);
}

body.home-v3 .quote-card h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 4px;
}

body.home-v3 #quote.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.home-v3 .seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: var(--bg-subtle);
    padding: 5px;
    border-radius: 12px;
}

body.home-v3 .seg__btn {
    border: 0;
    border-radius: 9px;
    min-height: 44px;
    padding: 11px 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    white-space: nowrap;
}

body.home-v3 .seg__btn[aria-pressed="true"] {
    background: var(--bg-elev);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(28, 26, 23, 0.15);
}

body.home-v3 .fields-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

body.home-v3 .fields-2--divided {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

body.home-v3 .form-group label {
    display: block;
    margin-bottom: 6px;
}

body.home-v3 .field-opt {
    font-weight: 400;
    color: var(--text-muted);
}

body.home-v3 .price-row {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
    padding-left: 12px;
}

body.home-v3 .price-prefix {
    border: 0;
    background: transparent;
    padding: 11px 0;
    color: var(--text-muted);
}

body.home-v3 .price-row input {
    border: 0;
    box-shadow: none;
    background: transparent;
    width: auto;
    min-width: 0;
    flex: 1;
}

body.home-v3 .price-row:focus-within {
    border-color: var(--action-primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

body.home-v3 .form-group input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

body.home-v3 .form-group select:invalid {
    color: #9ca3af;
}

body.home-v3 .form-group select option {
    color: var(--text-primary);
}

body.home-v3 .checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 0;
}

body.home-v3 .quote-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

body.home-v3 .quote-submit {
    margin-top: 0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
}

body.home-v3 .quote-button:hover {
    transform: none;
}

/* Stats */
body.home-v3 .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

body.home-v3 .stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.home-v3 .stat:nth-child(1) {
    justify-self: start;
    text-align: left;
}

body.home-v3 .stat:nth-child(2) {
    justify-self: center;
    text-align: center;
}

body.home-v3 .stat:nth-child(3) {
    justify-self: end;
    text-align: right;
}

body.home-v3 .stat__num {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
}

body.home-v3 .stat__num small {
    font-size: 22px;
}

body.home-v3 .stat__label {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Recently completed */
body.home-v3 .tx-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px 32px;
    margin-bottom: 28px;
}

body.home-v3 .tx-head p {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

body.home-v3 .home-section--tight {
    padding-bottom: 64px;
}

body.home-v3 .tx-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

body.home-v3 .tx-track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 4px 0 12px;
    animation: tx-scroll 70s linear infinite;
}

body.home-v3 .tx-marquee:hover .tx-track,
body.home-v3 .tx-marquee:focus-within .tx-track {
    animation-play-state: paused;
}

@keyframes tx-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-v3 .tx-track {
        animation: none;
    }

    body.home-v3 .tx-marquee {
        overflow-x: auto;
    }
}

body.home-v3 .tx-card {
    width: 290px;
    flex-shrink: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.home-v3 .tx-map {
    position: relative;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-subtle);
}

body.home-v3 .tx-map svg,
body.home-v3 .tx-map img {
    display: block;
    width: 100%;
    height: 100%;
}

body.home-v3 .tx-map img {
    object-fit: cover;
}

body.home-v3 .tx-credit {
    flex-basis: 100%;
}

body.home-v3 .footer-bottom a {
    text-decoration: underline;
}

body.home-v3 .tx-credit a {
    color: inherit;
}

body.home-v3 .tx-map__label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

body.home-v3 .tx-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.home-v3 .tx-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.home-v3 .tx-card__agent {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

body.home-v3 .tx-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
}

body.home-v3 .tx-card__price {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.1;
}

body.home-v3 .tx-card__area {
    font-size: 14px;
    color: var(--text-muted);
}

body.home-v3 .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
}

body.home-v3 .pill {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-muted);
}

body.home-v3 .pill--green {
    background: rgba(0, 175, 149, 0.12);
    color: var(--action-primary-active);
}

body.home-v3 .tx-card__foot {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding: 12px 4px 2px;
}

body.home-v3 .tx-card__time {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

/* Why */
body.home-v3 .section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 48px;
}

body.home-v3 .section-split p,
body.home-v3 .dash-copy {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
}

body.home-v3 .why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

body.home-v3 .why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.home-v3 .why-num {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    font-weight: 600;
}

body.home-v3 .why-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

body.home-v3 .why-card ul {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.home-v3 .why-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-muted);
}

body.home-v3 .why-card .tick {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

body.home-v3 .cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* Dashboard */
body.home-v3 .dash-copy {
    max-width: 520px;
}

body.home-v3 .features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

body.home-v3 .features li {
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.home-v3 .features strong {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
}

body.home-v3 .features span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

body.home-v3 .shot {
    position: relative;
}

body.home-v3 .shot--mobile {
    display: none;
}

body.home-v3 .shot__window {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.3);
}

body.home-v3 .shot__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

body.home-v3 .shot__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.home-v3 .shot__dot--red {
    background: #ff5f57;
}

body.home-v3 .shot__dot--yellow {
    background: #febc2e;
}

body.home-v3 .shot__dot--green {
    background: #28c840;
}

body.home-v3 .shot__window img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-subtle);
}

body.home-v3 .reviews .cta-row {
    margin-top: 40px;
}

/* FAQ */
body.home-v3 .faq-wrap {
    max-width: 760px;
    margin: 0 auto;
}

body.home-v3 .faq-wrap h2 {
    text-align: center;
    margin-bottom: 32px;
}

body.home-v3 .home-faq {
    border-top: 1px solid var(--border);
}

body.home-v3 .home-faq details {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

body.home-v3 .home-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
}

body.home-v3 .home-faq summary::-webkit-details-marker {
    display: none;
}

body.home-v3 .home-faq summary::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: var(--brand-primary);
}

body.home-v3 .home-faq details[open] summary::after {
    content: "–";
}

body.home-v3 .home-faq p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

body.home-v3 .home-faq a {
    color: var(--action-primary-active);
}

/* Closing band */
body.home-v3 .cta-band {
    background: var(--action-primary);
    color: var(--text-on-accent);
    border-radius: 28px;
    padding: 64px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

body.home-v3 .cta-band h2 {
    color: var(--text-on-accent);
    max-width: 640px;
}

body.home-v3 .cta-band .btn {
    background: var(--bg-elev);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 16px 26px;
    font-size: 16px;
    font-weight: 600;
}

body.home-v3 .cta-band .btn:hover {
    background: var(--bg);
    transform: none;
}

@media (max-width: 960px) {
    body.home-v3 .hero .row,
    body.home-v3 .split,
    body.home-v3 #dashboard .split,
    body.home-v3 .section-split,
    body.home-v3 .why-grid,
    body.home-v3 .stats {
        grid-template-columns: 1fr;
    }

    body.home-v3 .stat:nth-child(2),
    body.home-v3 .stat:nth-child(3) {
        justify-self: start;
        text-align: left;
    }

    body.home-v3 .hero {
        padding: 40px 0 56px;
    }
}

@media (max-width: 768px) {
    body.home-v3 .only-mobile {
        display: block;
    }

    body.home-v3 .home-section {
        padding: 72px 0;
    }

    body.home-v3 .fields-2,
    body.home-v3 .features {
        grid-template-columns: 1fr;
    }

    body.home-v3 .shot--desktop {
        display: none;
    }

    body.home-v3 .shot--mobile {
        display: block;
    }

    body.home-v3 .shot--mobile img {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    body.home-v3 .cta-band {
        padding: 40px 24px;
    }
}
