/* Estate agents page, laid out like the v3 prototype.
   Colours come from brandV2.css tokens. */

body.agents-page {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

body.agents-page,
body.agents-page *,
body.agents-page *::before,
body.agents-page *::after {
    box-sizing: border-box;
}

body.agents-page p {
    margin: 0;
}

body.agents-page 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.agents-page #why,
body.agents-page #how,
body.agents-page #contact,
body.agents-page #faq {
    scroll-margin-top: 88px;
}

/* Header */
body.agents-page .nav-partner-cta {
    display: none;
}

body.agents-page .nav-partner-cta.is-visible {
    display: inline-flex;
}

body.agents-page .brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

body.agents-page .agents-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--surface-dark);
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

/* Sections */
body.agents-page .page-section {
    padding: 96px 0;
}

body.agents-page .page-section--cream {
    background: var(--bg);
}

body.agents-page .page-section--white {
    background: var(--bg-elev);
}

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

body.agents-page .section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 48px;
}

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

body.agents-page .page-section .eyebrow {
    margin-bottom: 14px;
}

/* Hero */
body.agents-page .hero {
    padding: 64px 0 80px;
    background: var(--bg);
    border-bottom: none;
    overflow: visible;
}

body.agents-page .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

body.agents-page .hero .split {
    grid-template-columns: minmax(560px, 1.05fr) minmax(0, 0.95fr);
}

body.agents-page .hero h1 {
    font-size: 65px;
    line-height: 1.02;
}

body.agents-page .hero h1 .accent-mark {
    white-space: nowrap;
}

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

body.agents-page .hero-ctas {
    margin-top: 32px;
}

/* Stats */
body.agents-page .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

body.agents-page .stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.agents-page .stat__num {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

/* Why */
body.agents-page .why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

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

body.agents-page .why-card h3 {
    font-size: 26px;
}

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

body.agents-page .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.agents-page .why-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-muted);
}

body.agents-page .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.agents-page .cta-row {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* How it works */
body.agents-page .steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

body.agents-page .steps-head h2 {
    margin: 0;
}

body.agents-page .how-step {
    display: flex;
    gap: 18px;
}

body.agents-page .how-step .why-num {
    padding-top: 6px;
    flex-shrink: 0;
}

body.agents-page .step-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.agents-page .step-copy h3 {
    font-size: 24px;
}

body.agents-page .step-copy p {
    font-size: 16px;
}

/* Screenshots: desktop frame on large screens. Below 768px the how-it-works
   section shows the mobile image; the hero image is hidden. */
body.agents-page .shot {
    position: relative;
}

body.agents-page .shot--mobile {
    display: none;
}

body.agents-page .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.agents-page .shot__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

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

body.agents-page .shot__dot--red {
    background: #ff5f57;
}

body.agents-page .shot__dot--yellow {
    background: #febc2e;
}

body.agents-page .shot__dot--green {
    background: #28c840;
}

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

/* Contact */
body.agents-page .contact-block .section-split {
    margin-bottom: 36px;
}

body.agents-page .btn-email {
    font-size: 18px;
    padding: 16px 26px;
}

/* FAQ */
body.agents-page .faq-wrap {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

body.agents-page .faq-wrap h2 {
    text-align: center;
    margin-bottom: 28px;
}

body.agents-page .agent-faq {
    border-top: 1px solid var(--border);
    text-align: left;
}

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

body.agents-page .agent-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

body.agents-page .agent-faq summary::-webkit-details-marker {
    display: none;
}

body.agents-page .agent-faq summary::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: var(--brand-primary);
    flex-shrink: 0;
}

body.agents-page .agent-faq details[open] summary::after {
    content: "–";
}

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

@media (max-width: 980px) {
    body.agents-page .nav-cta {
        display: none;
    }

    body.agents-page .mobile-menu-btn {
        display: block;
    }

    body.agents-page .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 1000;
    }

    body.agents-page .nav-links.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.agents-page .nav-links a:not(#mobile-login-btn) {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
        color: var(--text-primary);
    }

    body.agents-page .hero .split,
    body.agents-page .split,
    body.agents-page .section-split,
    body.agents-page .why-grid,
    body.agents-page .stats {
        grid-template-columns: 1fr;
    }

    body.agents-page .hero {
        padding: 40px 0 56px;
    }

    body.agents-page .hero h1 {
        font-size: clamp(36px, 10vw, 65px);
    }

    body.agents-page .page-section {
        padding: 72px 0;
    }
}

@media (max-width: 768px) {
    body.agents-page .shot--desktop {
        display: none;
    }

    body.agents-page .shot--mobile {
        display: block;
    }

    body.agents-page .hero .shot {
        display: none;
    }

    body.agents-page .shot--mobile img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        border: 1px solid var(--border);
    }
}

@media (max-width: 420px) {
    body.agents-page .agents-tag {
        display: none;
    }
}
