@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --surface-warm: #fff5ec;
    --text: #171717;
    --muted: #666b76;
    --line: #dde2ea;
    --primary: #ff4d20;
    --primary-dark: #c93612;
    --blue: #2d6cdf;
    --green: #008f72;
    --yellow: #ffbf36;
    --shadow: 0 18px 45px rgba(20, 31, 54, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(221, 226, 234, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 25px;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--text);
    box-shadow: inset -8px -8px 0 rgba(255, 77, 32, 0.92);
    font-size: 22px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta,
.primary-btn,
.secondary-btn,
.text-btn,
.plan-button,
.copy-btn,
.modal-close {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    font-weight: 800;
    min-height: 44px;
}

.nav-cta,
.primary-btn,
.plan-button.featured,
.copy-btn {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(255, 77, 32, 0.28);
}

.nav-cta {
    padding: 11px 16px;
    white-space: nowrap;
}

.primary-btn {
    padding: 13px 18px;
}

.secondary-btn,
.text-btn,
.plan-button {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
}

.secondary-btn {
    padding: 13px 18px;
}

.text-btn {
    padding: 10px 12px;
    color: var(--muted);
}

.primary-btn:hover,
.nav-cta:hover,
.plan-button.featured:hover,
.copy-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn:hover,
.text-btn:hover,
.plan-button:hover {
    border-color: #b8c1d0;
}

.hero-band,
.section-band,
.seo-hero,
.footer-band {
    border-bottom: 1px solid var(--line);
}

.hero-band {
    background:
        linear-gradient(120deg, rgba(255, 245, 236, 0.96), rgba(238, 244, 255, 0.98)),
        #fff;
}

.hero-grid,
.section-inner,
.seo-grid,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-grid {
    min-height: calc(100vh - 73px);
    padding: 52px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 77, 32, 0.28);
    border-radius: var(--radius);
    color: #9d3517;
    background: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: 0;
}

.seo-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.03;
    margin-bottom: 14px;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.lead {
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.trust-row,
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-row span,
.stats-row span,
.quota-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 226, 234, 0.86);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.generator-panel,
.pricing-card,
.keyword-card,
.article-card,
.mini-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.generator-panel {
    padding: clamp(18px, 3vw, 26px);
    box-shadow: var(--shadow);
}

.panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-kicker {
    margin: 0 0 5px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

.quota-pill {
    white-space: nowrap;
    color: var(--text);
    background: var(--surface-soft);
}

.generator-form {
    display: grid;
    gap: 12px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 10px;
}

.name-input,
.industry-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd4e1;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 0 14px;
    outline: 0;
}

.name-input:focus,
.industry-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.12);
}

.generate-btn {
    min-height: 54px;
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    background: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.generate-btn:hover {
    background: #000;
}

.generate-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.helper-line,
.form-error,
.plan-note,
.section-copy,
.fine-print {
    color: var(--muted);
    line-height: 1.55;
}

.helper-line {
    margin: 2px 0 0;
    font-size: 13px;
}

.form-error {
    min-height: 22px;
    color: #b42318;
    font-weight: 700;
}

.usage-meter {
    margin: 16px 0;
}

.meter-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.meter-track {
    height: 9px;
    margin-top: 8px;
    border-radius: 99px;
    overflow: hidden;
    background: #e8edf5;
}

.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width 0.2s ease;
}

.results-box {
    min-height: 230px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
}

.empty-state {
    min-height: 200px;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.result-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0;
    margin: 0;
}

.result-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e5e9f0;
    border-radius: var(--radius);
    background: #fff;
    font-weight: 800;
    overflow: hidden;
}

.result-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-badge {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 12px;
}

.toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.toolbar.is-visible {
    display: flex;
}

.copy-btn {
    padding: 10px 13px;
    min-height: 40px;
}

.section-band {
    background: #fff;
}

.section-band.alt {
    background: #f6f8fb;
}

.section-inner {
    padding: 64px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

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

.pricing-card {
    padding: 22px;
}

.pricing-card.featured {
    border-color: rgba(255, 77, 32, 0.54);
    box-shadow: var(--shadow);
}

.price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin: 12px 0 12px;
}

.price strong {
    font-size: 42px;
    letter-spacing: 0;
}

.price span {
    padding-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.plan-list,
.article-list {
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.plan-list li,
.article-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.5;
}

.plan-list li::before,
.article-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.plan-button {
    width: 100%;
    padding: 11px 14px;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.keyword-card {
    padding: 16px;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.keyword-card:hover {
    transform: translateY(-2px);
    border-color: #b8c1d0;
}

.keyword-card strong {
    display: block;
    margin-bottom: 6px;
}

.keyword-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mini-card {
    padding: 18px;
}

.seo-hero {
    background: linear-gradient(120deg, #fff, #eef4ff);
}

.seo-grid {
    padding: 54px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.article-card {
    padding: clamp(20px, 3vw, 28px);
}

.article-card + .article-card {
    margin-top: 16px;
}

.article-card p {
    color: var(--muted);
    line-height: 1.72;
}

.related-links {
    display: grid;
    gap: 9px;
}

.related-links a {
    display: block;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
}

.related-links a:hover {
    border-color: #b8c1d0;
}

.footer-band {
    background: var(--text);
    color: #fff;
}

.footer-inner {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.paywall-modal.is-open {
    display: flex;
}

.modal-card {
    width: min(520px, 100%);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
}

.modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.modal-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

.modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 70;
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
    pointer-events: none;
    min-width: min(420px, calc(100% - 32px));
    padding: 13px 16px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--text);
    font-weight: 800;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .seo-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 38px;
    }

    .pricing-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .nav-wrap,
    .hero-grid,
    .section-inner,
    .seo-grid,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 22px;
    }

    .nav-cta {
        padding: 10px 12px;
        font-size: 13px;
    }

    h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .input-row,
    .result-list,
    .keyword-grid {
        grid-template-columns: 1fr;
    }

    .panel-top,
    .toolbar,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }
}
