/* --- New Landing Page Styles (Tailwind / Oatmeal Inspired) --- */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
.text-center { text-align: center; }

.hero-section,
.showcase-section,
.features-section,
.steps-section,
.pricing-section,
.cta-section {
    width: 100%;
    max-width: 100%;
}

.hero-section {
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.eyebrow-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: "Instrument Serif", serif;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    line-height: 0.95;
    margin: 0 0 32px;
    color: var(--ink);
    letter-spacing: -0.03em;
    font-weight: 400;
}

.hero-title strong {
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-family: "Instrument Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 auto 48px;
    max-width: 640px;
    font-weight: 400;
}

.hero-promo-band {
    max-width: 660px;
    margin: 0 auto 32px;
    padding: 18px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(181, 224, 187, 0.32), rgba(253, 252, 251, 0.98));
    border: 1px solid rgba(63, 78, 52, 0.14);
    box-shadow: 0 20px 40px rgba(63, 78, 52, 0.08);
}

.hero-promo-kicker,
.hero-promo-copy,
.hero-promo-code {
    margin: 0;
}

.hero-promo-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.hero-promo-copy {
    color: var(--ink);
    line-height: 1.6;
}

.hero-promo-code {
    margin-top: 10px;
    color: var(--muted);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.showcase-section {
    max-width: 1180px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.compare-card {
    max-width: 1080px;
    margin: 0 auto;
}

.compare-frame {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--panel);
    aspect-ratio: 760 / 604;
    user-select: none;
}

.compare-image {
    position: absolute;
    inset: 0;
}

.compare-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.compare-image-after {
    z-index: 1;
}

.compare-image-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.compare-label {
    position: absolute;
    top: 24px;
    background: rgba(253, 252, 251, 0.9);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    z-index: 3;
}

.compare-label-before {
    left: 24px;
}

.compare-label-after {
    right: 24px;
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position);
    width: 0;
    z-index: 3;
    pointer-events: none;
}

.compare-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: rgba(253, 252, 251, 0.95);
    box-shadow: 0 0 0 1px rgba(60, 68, 49, 0.08);
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(253, 252, 251, 0.96);
    color: var(--accent-dark);
    border: 1px solid rgba(60, 68, 49, 0.12);
    box-shadow: 0 12px 24px rgba(63, 78, 52, 0.12);
}

.compare-handle svg {
    width: 22px;
    height: 22px;
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.compare-helper {
    margin: 18px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.98rem;
}

.promo-popup-shell[hidden] {
    display: none;
}

.promo-popup-shell {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    pointer-events: none;
}

.promo-popup {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    padding: 26px 24px 22px;
    border-radius: 28px;
    background: rgba(253, 252, 251, 0.98);
    border: 1px solid rgba(63, 78, 52, 0.16);
    box-shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
    pointer-events: auto;
}

.promo-popup-eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.promo-popup h2 {
    margin: 0 0 12px;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 0.98;
}

.promo-popup p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.promo-popup-code {
    color: var(--ink);
}

.promo-popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.promo-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(34, 25, 20, 0.06);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.button-primary {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(63, 78, 52, 0.12) !important;
}

.button-primary:hover {
    background: var(--accent-dark) !important;
}

.feature-box {
    background: var(--panel);
    padding: 48px;
    border-radius: 2rem;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    min-width: 0;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(63, 78, 52, 0.04);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(92, 108, 69, 0.1);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.feature-box p {
    color: var(--muted);
    line-height: 1.6;
}

.seo-resource-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.steps-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: flex-start;
    gap: 24px;
}

.step-item {
    text-align: center;
    min-width: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    color: #f8f6ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-item h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.step-item p {
    color: var(--muted);
    line-height: 1.5;
}

.step-connector {
    flex: 0 0 40px;
    height: 2px;
    background: var(--line);
    margin-top: 24px;
}

.pricing-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 252, 246, 0.9);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--line);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pricing-card-featured {
    border: 2px solid var(--accent);
    box-shadow: 0 22px 42px rgba(92, 108, 69, 0.12);
    transform: translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #f8f6ef;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-subtle {
    background: #6f7858;
}

.plan-name {
    font-size: 1.25rem;
    margin: 0 0 16px;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.plan-price .currency {
    font-size: 1rem;
    margin-top: 4px;
    color: var(--muted);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

.plan-credits {
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-desc {
    color: var(--muted);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
}

.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.button-full {
    width: 100%;
}

.button-outline {
    background: rgba(255, 252, 246, 0.62) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}

.button-outline:hover {
    background: rgba(248, 243, 232, 0.9) !important;
}

.cta-section {
    background:
        linear-gradient(135deg, rgba(248, 243, 232, 0.98), rgba(230, 234, 214, 0.82));
    border-radius: 32px;
    padding: 80px 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(92, 108, 69, 0.1);
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin: 0 0 16px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--muted);
    margin: 0 0 32px;
}

@media (max-width: 1100px) {
    .hero-section,
    .features-section,
    .steps-section,
    .pricing-section,
    .cta-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .steps-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        max-width: 42rem;
    }

    .showcase-section {
        margin-bottom: 72px;
    }

    .feature-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .pricing-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-section {
        padding: 64px 32px;
    }
}

@media (max-width: 768px) {
    .hero-promo-band {
        padding: 16px 18px;
    }

    .promo-popup {
        width: auto;
        padding: 22px 18px 18px;
    }

    .compare-label {
        font-size: 0.75rem;
        padding: 4px 10px;
        top: 12px;
    }

    .compare-label-before {
        left: 12px;
    }

    .compare-label-after {
        right: 12px;
    }

    .compare-handle {
        width: 48px;
        height: 48px;
    }

    .step-connector {
        display: none;
    }
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    .hero-trust p {
        max-width: 22rem;
        margin-inline: auto;
    }
    .hero-cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        align-items: center;
    }
    .hero-cta-group .button {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }
    .steps-container,
    .feature-grid-modern,
    .pricing-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .showcase-section,
    .features-section,
    .steps-section,
    .pricing-section,
    .cta-section,
    .hero-section {
        padding: 40px 16px;
        width: 100%;
    }

    .pricing-card-featured {
        transform: none;
        border-width: 2px;
        margin-top: 16px;
    }
    .feature-box {
        padding: 24px 20px;
        width: 100%;
    }
    .pricing-card {
        padding: 32px 20px;
        width: 100%;
    }
    .plan-price .amount {
        font-size: 2.5rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 28px;
    }

    .showcase-section,
    .features-section,
    .steps-section,
    .pricing-section,
    .cta-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .showcase-section {
        margin-bottom: 56px;
    }

    .compare-handle {
        width: 42px;
        height: 42px;
    }

    .eyebrow-badge {
        max-width: 100%;
        padding-inline: 12px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 11vw, 2.5rem);
        margin-bottom: 18px;
    }

    .hero-subtitle,
    .section-subtitle,
    .feature-box p,
    .step-item p,
    .cta-section p,
    .plan-desc,
    .plan-features li {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .button-large {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .showcase-label,
    .pricing-badge {
        font-size: 0.72rem;
    }

    .feature-box,
    .pricing-card {
        border-radius: 20px;
        padding-inline: 16px;
    }

    .section-header {
        margin-bottom: 36px;
    }
}
