* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --green: #16a34a;
    --green-soft: #f0fdf4;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #ffffff 100%);
    color: var(--ink);
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 32px 64px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.section-head {
    max-width: 680px;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 56px;
    align-items: center;
    margin-bottom: 104px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--green);
}

.tagline {
    max-width: 600px;
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 28px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.primary,
.secondary,
.plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary {
    background: var(--ink);
    color: #fff;
}

.secondary,
.plan-cta {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
}

.primary:hover,
.secondary:hover,
.plan-cta:hover {
    transform: translateY(-1px);
}

.secondary:hover,
.plan-cta:hover {
    border-color: #cbd5e1;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.badge {
    border: 1px solid #dcfce7;
    background: var(--green-soft);
    color: #166534;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.snippet {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.bar,
.snippet-note {
    padding: 14px 18px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.94rem;
}

.bar {
    border-bottom: 1px solid var(--line);
}

pre {
    padding: 22px 18px;
    line-height: 1.75;
    overflow: auto;
    font-size: 0.93rem;
}

pre code {
    display: block;
    white-space: pre;
}

.snippet-note {
    border-top: 1px solid var(--line);
    background: #fff;
}

.steps,
.feature-grid,
.pricing-grid {
    display: grid;
    gap: 18px;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 104px;
}

.steps div,
.feature,
.card,
.faq details {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.steps div,
.feature {
    padding: 22px;
}

.steps span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.steps h3,
.feature h3 {
    margin: 14px 0 8px;
    letter-spacing: -0.02em;
}

.steps p,
.feature p,
.faq details p,
.compare-note {
    color: var(--muted);
    line-height: 1.65;
}

.features,
.pricing,
.compare {
    margin-bottom: 104px;
}

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

.card {
    position: relative;
    min-height: 278px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--green);
}

.card h2 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
    margin-bottom: 20px;
}

.card h2 span {
    font-size: 0.44em;
    color: var(--muted);
    font-weight: 600;
}

.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.list li {
    color: #475569;
    line-height: 1.5;
}

.pro {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.pro::after {
    content: "POPULAR";
    position: absolute;
    top: 22px;
    right: 22px;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.plan-cta {
    margin-top: auto;
    width: 100%;
}

.mini,
.mini-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.mini-note {
    margin-top: 12px;
}

.compare-table {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.compare-table .row {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 14px;
    padding: 15px 18px;
    border-top: 1px solid var(--line);
}

.compare-table .row.head {
    border-top: 0;
    background: var(--soft);
    font-weight: 800;
}

.compare-table .cell {
    color: #475569;
    line-height: 1.45;
}

.compare-table .row.head .cell {
    color: var(--ink);
}

.compare-note {
    margin-top: 14px;
}

.reviews {
    margin-bottom: 104px;
}

.reviews-head {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.reviews-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.review-cta,
.verified-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.review-cta {
    border: 1px solid #bbf7d0;
    background: #16a34a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.16);
}

.review-cta::before {
    content: "★";
    color: #facc15;
    font-size: 0.88rem;
    line-height: 1;
}

.review-cta:hover {
    transform: translateY(-1px);
    border-color: #15803d;
    background: #15803d;
}

.verified-link {
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.1);
}

.verified-link::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.verified-link:hover {
    transform: translateY(-1px);
    border-color: #86efac;
    background: #dcfce7;
}

.reviews-success {
    margin-bottom: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
    color: #166534;
    padding: 14px 16px;
    line-height: 1.55;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.08);
}

.reviews-success[hidden] {
    display: none;
}

.reviews-success strong {
    color: #14532d;
}

.reviews-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

#saas-browser-reviews {
    min-height: 150px;
}

.reviews-empty {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    color: var(--muted);
    text-align: left;
}

.reviews-empty[hidden] {
    display: none;
}

.reviews-empty-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.reviews-empty h3 {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.reviews-empty p {
    line-height: 1.55;
}

.faq {
    margin-bottom: 44px;
}

.faq details {
    padding: 16px 18px;
    margin-top: 12px;
}

.faq details summary {
    cursor: pointer;
    font-weight: 800;
}

.faq details p {
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .hero,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .snippet {
        max-width: 720px;
    }
}

@media (max-width: 820px) {
    main {
        padding: 52px 22px;
    }

    .hero,
    .steps,
    .features,
    .pricing,
    .compare,
    .reviews {
        margin-bottom: 72px;
    }

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

    .compare-table .row {
        grid-template-columns: 1fr;
    }

    .reviews-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviews-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .actions {
        flex-direction: column;
    }

    .primary,
    .secondary {
        width: 100%;
    }

    pre {
        font-size: 0.84rem;
    }

    .reviews-empty {
        flex-direction: column;
        text-align: center;
    }
}
