/* Pocket Agency homepage (resources/views/agency-site/home.blade.php). Loaded last on that page only. */

.home-hero {
    padding: 64px 0 96px;
    background: radial-gradient(900px 520px at 78% 8%, rgba(67, 56, 202, .32), transparent 70%);
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.home-hero h1 {
    margin: 16px 0 20px;
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.home-hero h1 em {
    color: var(--primary-light);
    font-style: normal;
}

.home-price-line {
    margin: 22px 0 28px;
    color: var(--muted);
    font-weight: 500;
}

.home-price-line strong {
    color: var(--text);
    font-family: var(--font-display, 'Archivo', sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 26px;
    padding: 0;
    color: var(--muted);
    font-size: .95rem;
    list-style: none;
}

.home-checks li::before {
    margin-right: 7px;
    color: #4ade80;
    font-weight: 700;
    content: '✓';
}

.home-shots {
    position: relative;
    margin: 0;
    padding-right: 70px;
}

.home-frame {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b1020;
    box-shadow: 0 40px 90px -40px #000;
}

.home-frame__bar {
    display: flex;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-frame__bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
}

.home-frame img,
.home-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.home-phone {
    position: absolute;
    right: 0;
    bottom: -56px;
    width: 21%;
    overflow: hidden;
    border: 6px solid #0b1020;
    border-radius: 26px;
    outline: 1px solid var(--border);
    box-shadow: 0 30px 70px -20px #000;
}

.home-shots figcaption {
    position: absolute;
    top: -28px;
    left: 0;
    color: var(--muted);
    font-family: var(--font-display, 'Archivo', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* What it replaces */
.home-replace {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.home-replace article {
    padding: 20px;
    border: 1px solid var(--border-2, rgba(255, 255, 255, .1));
    border-radius: 16px;
    background: var(--surface);
}

.home-replace s {
    display: block;
    color: #8492a8;
    font-weight: 600;
    text-decoration-color: #f87171;
    text-decoration-thickness: 2px;
}

.home-replace h3 {
    margin: 10px 0 4px;
    font-size: 1.05rem;
}

.home-replace p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

/* Feature rows */
.home-feature {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 56px;
    align-items: center;
    padding: 36px 0;
}

.home-feature--flip {
    grid-template-columns: 1.25fr 1fr;
}

.home-feature--flip .home-feature__text {
    order: 2;
}

.home-feature h3 {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.1;
}

.home-feature p {
    color: var(--muted);
}

.home-feature ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-feature li::before {
    margin-right: 9px;
    color: #4ade80;
    font-weight: 700;
    content: '✓';
}

.home-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary-light);
    font-weight: 700;
}

/* Website */
.home-website {
    background: linear-gradient(160deg, #1b1747, #0f172a 60%);
}

.home-website__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.home-website h2 {
    margin: 12px 0 14px;
}

.home-website__stack {
    position: relative;
    min-height: 420px;
}

.home-website__stack .home-frame {
    position: absolute;
    width: 82%;
}

.home-website__stack .home-frame:first-child {
    top: 0;
    left: 0;
}

.home-website__stack .home-frame:last-child {
    right: 0;
    bottom: 0;
}

.home-price-chip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    margin: 22px 0;
    padding: 14px 18px;
    border: 1px solid rgba(155, 140, 255, .45);
    border-radius: 14px;
    background: rgba(155, 140, 255, .08);
    color: var(--muted);
}

.home-price-chip strong {
    color: var(--text);
    font-family: var(--font-display, 'Archivo', sans-serif);
    font-size: 1.6rem;
    font-weight: 800;
}

/* Pricing teaser */
.home-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-plans article {
    padding: 28px;
    border: 1px solid var(--border-2, rgba(255, 255, 255, .1));
    border-radius: 18px;
    background: var(--surface);
}

.home-plans article:nth-child(2) {
    border-color: rgba(155, 140, 255, .6);
}

.home-plans small {
    color: var(--muted);
    font-weight: 600;
}

.home-plans strong {
    display: block;
    margin: 8px 0 2px;
    font-family: var(--font-display, 'Archivo', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
}

.home-plans strong span {
    color: var(--muted);
    font-family: var(--font-body, 'Source Sans 3', sans-serif);
    font-size: 1rem;
    font-weight: 500;
}

.home-compare {
    margin-top: 22px;
    padding: 18px 22px;
    border-left: 3px solid var(--primary-light);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
}

.home-compare b {
    color: var(--text);
}

.home-compare a {
    color: var(--primary-light);
    font-weight: 700;
}

/* Modules */
.home-groups {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.home-groups section {
    padding: 20px;
    border: 1px solid var(--border-2, rgba(255, 255, 255, .1));
    border-radius: 16px;
    background: var(--surface);
}

.home-groups h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.home-chip {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #dbe4f0;
    font-size: .9rem;
}

a.home-chip:hover {
    border-color: var(--primary-light);
}

.home-chip--included {
    border-color: rgba(74, 222, 128, .4);
    color: #bbf7d0;
}

.home-legend {
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
}

/* Grants */
.home-grants summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    border: 1px solid var(--border-2, rgba(255, 255, 255, .1));
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    list-style: none;
}

.home-grants summary::-webkit-details-marker {
    display: none;
}

.home-grants summary h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
}

.home-grants summary p {
    margin: 0;
    color: var(--muted);
}

.home-grants[open] summary .home-grants__toggle::after {
    content: ' ↑';
}

.home-grants:not([open]) summary .home-grants__toggle::after {
    content: ' ↓';
}

.home-grants__body {
    margin-top: 28px;
}

/* Open grants list inside the grants disclosure (moved from the retired operational-signal.css). */
.marketing-for-agencies .module-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 48px;
}

.marketing-for-agencies .module-directory__group:only-child {
    grid-column: 1 / -1;
}

.marketing-for-agencies .module-directory__group {
    min-width: 0;
    border-top: 1px solid color-mix(in srgb, var(--signal-violet) 58%, var(--border-2));
}

.marketing-for-agencies .module-directory__group-header {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 20px 0 14px;
}

.marketing-for-agencies .module-directory__signal {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--signal-violet);
}

.marketing-for-agencies .module-directory__group-header h3 {
    margin: 0;
    color: #f3f5f8;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.marketing-for-agencies .module-directory__list {
    border-bottom: 1px solid var(--border);
}

.marketing-for-agencies .module-directory__item {
    display: grid;
    grid-template-columns: minmax(142px, .72fr) minmax(0, 1.28fr);
    gap: 8px 22px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.marketing-for-agencies .module-directory__identity {
    grid-row: 1 / span 2;
}

.marketing-for-agencies .module-directory__identity h4 {
    margin: 9px 0 0;
    color: #f3f5f8;
    font-size: 18px;
    line-height: 1.2;
}

.marketing-for-agencies .module-directory__item > p {
    margin: 0;
    color: #9aa6b8;
    font-size: 13px;
    line-height: 1.48;
}

.marketing-for-agencies .module-directory__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    align-items: baseline;
}

.marketing-for-agencies .module-directory__price,
.marketing-for-agencies .module-directory__bundled {
    color: #738197;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.marketing-for-agencies .module-directory__bundled {
    flex-basis: 100%;
    color: #86efac;
}

.marketing-for-agencies .module-directory__meta a {
    color: #d8d0ff;
    font-size: 12px;
    font-weight: 700;
}

.marketing-for-agencies .module-directory__meta a:hover,
.marketing-for-agencies .module-directory__meta a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 760px) {
    .marketing-for-agencies .module-directory {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 620px) {
    .marketing-for-agencies .module-directory__item {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 17px 0;
    }

    .marketing-for-agencies .module-directory__identity {
        grid-row: auto;
    }
}

/* Who builds it */
.home-builder {
    max-width: 780px;
    margin: auto;
    text-align: center;
}

.home-builder h2 {
    margin: 14px 0;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.home-builder .home-actions {
    justify-content: center;
    margin-top: 24px;
}

/* Setup */
.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-steps article {
    padding: 22px;
    border-top: 2px solid var(--primary-light);
    background: rgba(255, 255, 255, .03);
}

.home-steps strong {
    display: block;
    margin-bottom: 6px;
    color: #c7bfff;
}

.home-steps p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .home-hero__grid,
    .home-website__grid,
    .home-feature,
    .home-feature--flip {
        grid-template-columns: 1fr;
    }

    .home-feature--flip .home-feature__text {
        order: 0;
    }

    .home-replace,
    .home-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-plans,
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-website__stack {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .home-hero {
        padding: 40px 0 80px;
    }

    .home-replace,
    .home-groups {
        grid-template-columns: 1fr;
    }

    .home-shots {
        padding-right: 40px;
    }

    .home-phone {
        width: 26%;
        bottom: -40px;
    }

    .home-website__stack {
        min-height: 240px;
    }

    .home-grants summary {
        padding: 22px;
    }
}
