﻿/* ═══════════════════════════════════════════════
   BizRatings – Shared Styles
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: hsl(210, 20%, 97%);
    --fg: hsl(215, 40%, 15%);
    --card: hsl(0, 0%, 100%);
    --muted-fg: hsl(210, 10%, 50%);
    --muted: hsl(210, 15%, 94%);
    --border: hsl(210, 15%, 90%);
    --accent: hsl(85, 70%, 42%);
    --accent-fg: hsl(0, 0%, 100%);
    --gold: hsl(32, 95%, 50%);
    --bizblue-deep: hsl(215, 60%, 18%);
    --bizblue-light: hsl(215, 60%, 65%);
    --primary-fg: hsl(0, 0%, 98%);
    --radius: 0.75rem;
}

body {
    font-family: 'Roboto', 'Google Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-weight: 700;
}

.max-w {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Nav ───────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s, background .3s;
}

    nav.scrolled {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(12px);
        background: hsla(0, 0%, 100%, 0.95);
    }

    nav .inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 3.5rem;
        gap: 1rem;
    }

    nav .logo {
        height: 1.75rem;
    }

    nav .nav-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
        justify-content: flex-end;
        overflow: hidden;
    }

    nav .pills {
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
    }

    nav .pill {
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: background .2s, color .2s;
        color: var(--muted-fg);
        background: transparent;
        white-space: nowrap;
        font-family: 'Roboto', 'Google Sans', sans-serif;
    }

        nav .pill:hover {
            background: var(--muted);
            color: var(--fg);
        }

        nav .pill.active {
            background: var(--accent);
            color: var(--accent-fg);
        }

/* Nav share button */
.nav-share-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    color: var(--fg);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

    .nav-share-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--accent-fg);
    }

        .nav-share-btn:hover svg {
            stroke: var(--accent-fg);
        }

@keyframes shareFlash {

    0%, 100% {
        background: var(--muted);
    }

    40% {
        background: var(--accent);
        color: var(--accent-fg);
    }
}

.nav-share-btn.copied {
    animation: shareFlash 0.5s ease;
}

/* Share toast */
.share-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    background: var(--fg);
    color: var(--bg);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 999;
    white-space: nowrap;
}

    .share-toast.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ── Hero ──────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
}

    .hero .label {
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--muted-fg);
        margin-bottom: 1rem;
    }

    .hero .company-logo {
        height: 2rem;
        margin: 0 auto 0.75rem;
        display: block;
    }

    .hero h1 {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 2.25rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .hero .subtitle {
        color: var(--muted-fg);
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .hero .stats {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        flex-wrap: wrap;
    }

    .hero .score {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 3.75rem;
        font-weight: 700;
        color: var(--gold);
        line-height: 1;
    }

    .hero .score-label {
        font-size: 0.875rem;
        color: var(--muted-fg);
        margin-top: 0.25rem;
    }

    .hero .divider {
        width: 1px;
        height: 6rem;
        background: var(--border);
    }

    .hero .count {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 3rem;
        font-weight: 700;
        line-height: 1;
    }

    .hero .count-label {
        font-size: 0.875rem;
        color: var(--muted-fg);
        margin-top: 0.25rem;
    }

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stars */
.stars {
    display: flex;
    gap: 2px;
    margin-top: 0.5rem;
}

    .stars svg {
        width: 20px;
        height: 20px;
    }

.star-filled {
    fill: var(--gold);
    color: var(--gold);
}

.star-empty {
    fill: var(--muted);
    color: var(--muted);
}

/* ── Breakdown ─────────────────────────────────── */
.breakdown {
    background: var(--bizblue-deep);
    color: var(--primary-fg);
    padding: 4rem 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.breakdown h2 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bar-label {
    font-size: 0.875rem;
    opacity: 0.7;
    width: 8rem;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--accent);
    width: 0;
    transition: width 0.8s ease-out;
}

    .bar-fill.animated {
        /* width set by JS */
    }

.bar-count {
    font-size: 0.875rem;
    font-weight: 500;
    width: 4rem;
    text-align: right;
}

/* AI Summary */
.ai-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .ai-header svg {
        flex-shrink: 0;
    }

    .ai-header h2 {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
    }

.ai-box p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ai-box strong {
    opacity: 1;
    color: var(--primary-fg);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

    .summary-card .val {
        font-size: 1.125rem;
        font-weight: 700;
    }

    .summary-card .lbl {
        font-size: 0.75rem;
        opacity: 0.6;
        margin-top: 0.125rem;
    }

/* ── Highlights ────────────────────────────────── */
.highlights {
    padding: 4rem 0;
    background: var(--bg);
}

    .highlights h2 {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .highlights .cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        min-height: 220px;
    }

.highlight-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(12px);
    animation: cardIn 0.4s ease-out forwards;
}

    .highlight-card:nth-child(2) {
        animation-delay: 0.08s;
    }

    .highlight-card:nth-child(3) {
        animation-delay: 0.16s;
    }

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-card .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.highlight-card .quote-icon {
    color: var(--accent);
}

.highlight-card .sc {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.125rem;
}

.highlight-card .quote {
    font-weight: 500;
    flex: 1;
    line-height: 1.6;
}

.highlight-card .author-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.highlight-card .author {
    font-size: 0.875rem;
    font-weight: 600;
}

.highlight-card .company {
    font-size: 0.75rem;
    color: var(--muted-fg);
}

/* ── Upgrade Banner (free page) ────────────────── */
.upgrade-banner {
    background: hsla(85, 70%, 42%, 0.1);
    border-top: 1px solid hsla(85, 70%, 42%, 0.2);
    border-bottom: 1px solid hsla(85, 70%, 42%, 0.2);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 200px;
    overflow: hidden;
}

    .upgrade-banner.dismissed {
        max-height: 0;
        opacity: 0;
        padding: 0;
        border-color: transparent;
    }

    .upgrade-banner .inner-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        padding: 1.25rem 0;
    }

    .upgrade-banner .left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .upgrade-banner .left p {
            font-size: 0.875rem;
        }

        .upgrade-banner .left strong {
            font-weight: 600;
        }

        .upgrade-banner .left span {
            color: var(--muted-fg);
        }

.upgrade-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
}

    .upgrade-btn:hover {
        filter: brightness(0.95);
    }

.dismiss-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-fg);
    transition: background 0.2s, color 0.2s;
}

    .dismiss-btn:hover {
        background: var(--muted);
        color: var(--fg);
    }

.right-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@keyframes pulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse-icon {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Upgrade Box (free page, inside breakdown grid) ── */
.upgrade-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

    .upgrade-box.dismissed {
        max-height: 0;
        opacity: 0;
        padding: 0;
        border-color: transparent;
    }

.upgrade-box-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

    .upgrade-box-close .dismiss-btn {
        color: rgba(255, 255, 255, 0.5);
    }

        .upgrade-box-close .dismiss-btn:hover {
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.1);
        }

.upgrade-box h3 {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--primary-fg);
}

.upgrade-box p {
    font-size: 0.875rem;
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--primary-fg);
}

.upgrade-features {
    list-style: none;
    text-align: left;
    margin: 0 auto 1.5rem;
    display: inline-block;
}

    .upgrade-features li {
        font-size: 0.875rem;
        padding: 0.25rem 0;
        color: rgba(255, 255, 255, 0.85);
    }

.upgrade-btn-lg {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

    .upgrade-btn-lg:hover {
        filter: brightness(0.95);
        transform: translateY(-1px);
    }

/* ── Leave Review CTA ──────────────────────────── */
.leave-review {
    background: var(--bizblue-deep);
    color: var(--primary-fg);
    padding: 1rem 0;
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--accent-fg);
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: filter 0.2s;
}

    .cta-btn:hover {
        filter: brightness(0.95);
    }

/* ── Review List ───────────────────────────────── */
.reviews {
    background: var(--bizblue-deep);
    color: var(--primary-fg);
    padding: 4rem 0;
}

    .reviews .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .reviews h2 {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
    }

.sort-pills {
    display: flex;
    gap: 0.5rem;
}

.sort-pill {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background .2s;
    font-family: 'Roboto', 'Google Sans', sans-serif;
}

    .sort-pill.active {
        background: var(--accent);
        color: var(--accent-fg);
    }

    .sort-pill:not(.active) {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }

        .sort-pill:not(.active):hover {
            background: rgba(255, 255, 255, 0.2);
        }

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: background .2s;
}

    .review-card:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rc-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rc-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fg);
    font-size: 0.875rem;
    font-weight: 600;
}

.rc-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.rc-company {
    font-size: 0.75rem;
    opacity: 0.6;
}

.rc-score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.rc-score {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
}

.rc-stars {
    display: flex;
    gap: 1px;
}

    .rc-stars svg {
        width: 14px;
        height: 14px;
    }

.rc-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rc-body-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rc-body {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

    .rc-body.clamped {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.25rem;
    }

.show-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.75rem;
    transition: filter 0.2s;
}

    .show-more-btn:hover {
        filter: brightness(1.2);
        text-decoration: underline;
    }

.rc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.6;
    align-items: center;
}

.rc-helpful-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.8;
}

    .rc-helpful-btn:hover {
        opacity: 1;
    }

    .rc-helpful-btn.helpful-active {
        color: #6b9e28;
        opacity: 1;
        pointer-events: none;
    }


.rc-verified {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bizblue-light);
    font-weight: 500;
    opacity: 1;
}

.rc-public {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Pagination ────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.page-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, opacity .2s;
    font-size: 1.25rem;
}

/* Light bg pagination (highlights) */
.highlights .page-btn {
    background: var(--muted);
    color: var(--fg);
}

    .highlights .page-btn:hover {
        background: hsl(210, 15%, 88%);
    }

    .highlights .page-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Dark bg pagination (reviews) */
.reviews .page-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-fg);
}

    .reviews .page-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .reviews .page-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.page-dots {
    display: flex;
    gap: 0.5rem;
}

.page-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all .2s;
}

    .page-dot.active {
        background: var(--accent);
        transform: scale(1.1);
    }

.highlights .page-dot:not(.active) {
    background: hsla(210, 10%, 50%, 0.3);
}

    .highlights .page-dot:not(.active):hover {
        background: hsla(210, 10%, 50%, 0.5);
    }

.reviews .page-dot:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

    .reviews .page-dot:not(.active):hover {
        background: rgba(255, 255, 255, 0.5);
    }

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-num {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all .2s;
}

    .page-num.active {
        background: var(--accent);
        color: var(--accent-fg);
        border-color: var(--accent);
    }

.highlights .page-num:not(.active) {
    color: var(--fg);
    border-color: var(--border);
}

    .highlights .page-num:not(.active):hover {
        background: var(--muted);
    }

.reviews .page-num:not(.active) {
    color: var(--primary-fg);
    border-color: rgba(255, 255, 255, 0.2);
}

    .reviews .page-num:not(.active):hover {
        background: rgba(255, 255, 255, 0.1);
    }

.showing {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 1rem;
}

/* ── Footer ────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-fg);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .score {
        font-size: 3rem;
    }

    .hero .count {
        font-size: 2.5rem;
    }

    .hero .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero .divider {
        display: none;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .highlights .cards {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Review Dialog ──────────────────────────────── */
.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    .dialog-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.dialog-box {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.dialog-overlay.open .dialog-box {
    transform: scale(1) translateY(0);
}

.dialog-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted-fg);
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

    .dialog-close:hover {
        background: var(--muted);
        color: var(--fg);
    }

.dialog-title {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fg);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.dialog-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dialog-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--fg);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

    .dialog-option:hover {
        border-color: var(--accent);
        background: hsla(85, 70%, 42%, 0.06);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

.dialog-option-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.dialog-option:hover .dialog-option-icon {
    background: hsla(85, 70%, 42%, 0.15);
}

.dialog-option-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.dialog-option-sub {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    margin-top: 0.125rem;
}

.dialog-arrow {
    color: var(--muted-fg);
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s;
}

.dialog-option:hover .dialog-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

@media (min-width: 769px) {
    .hero h1 {
        font-size: 3.75rem;
    }

    .hero .company-logo {
        height: 2.5rem;
    }
}

/* ── Upgrade Dialog ────────────────────────────── */
.upgrade-dialog {
    max-width: 32rem;
}

.upgrade-dialog-sub {
    text-align: center;
    color: var(--muted-fg);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.upgrade-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.upgrade-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.upgrade-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .upgrade-form-group label {
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--fg);
    }

    .upgrade-form-group input {
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        font-family: 'Roboto', sans-serif;
        font-size: 0.875rem;
        color: var(--fg);
        background: var(--card);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .upgrade-form-group input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px hsla(85, 70%, 42%, 0.12);
        }

.upgrade-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bizblue-deep);
    color: var(--primary-fg);
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: filter 0.2s, transform 0.2s;
    margin-top: 0.25rem;
}

    .upgrade-submit-btn:hover {
        filter: brightness(0.95);
        transform: translateY(-1px);
    }

.upgrade-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    text-align: center;
}

    .upgrade-success h3 {
        font-family: 'Google Sans', 'Roboto', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--fg);
    }

    .upgrade-success p {
        color: var(--muted-fg);
        font-size: 0.875rem;
    }

@media (max-width: 640px) {
    .upgrade-form-row {
        grid-template-columns: 1fr;
    }
}
