/* =========================================================
   HighPassCV — Pricing Page
   File: pricing.css
   Hero spacing fix + remove Simple Plans badge
   ========================================================= */

:root {
    --navy-950: #07182f;
    --navy-900: #0b1f3a;
    --navy-800: #12325a;

    --gold-600: #b8892b;
    --gold-500: #d2a23f;
    --gold-200: #f2dfad;

    --white: #ffffff;

    --text: #10233f;
    --text-soft: #617089;
    --text-muted: #8b96a8;

    --border: #dbe3ec;
    --border-strong: #c7d3df;

    --success: #1f8a5b;
    --success-soft: #eaf7f0;

    --warning: #9a6c18;
    --warning-soft: #fff6dd;

    --shadow-sm: 0 8px 22px rgba(7, 24, 47, 0.08);
    --shadow-md: 0 18px 42px rgba(7, 24, 47, 0.12);
    --shadow-lg: 0 28px 70px rgba(7, 24, 47, 0.16);

    --radius-lg: 24px;
    --radius-pill: 999px;

    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(210, 162, 63, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 62%, #f8fafc 100%);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.main-content {
    min-height: 70vh;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.pricing-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    isolation: isolate;
}

.pricing-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 520px;
    background:
        linear-gradient(135deg, rgba(7, 24, 47, 0.98), rgba(18, 50, 90, 0.95)),
        radial-gradient(circle at 80% 20%, rgba(210, 162, 63, 0.18), transparent 24rem);
    z-index: -2;
}

.pricing-section::after {
    content: "";
    position: absolute;
    top: 450px;
    left: -6%;
    width: 112%;
    height: 90px;
    background: #f8fafc;
    transform: rotate(-2deg);
    transform-origin: center;
    z-index: -1;
}

.pricing-container {
    position: relative;
    z-index: 1;
}

.section-heading {
    width: min(940px, 100%);
    margin: 0 auto 54px;
    padding-top: 8px;
    text-align: center;
    color: var(--white);
}

/* حذف کامل Simple Plans */
.eyebrow {
    display: none !important;
}

.section-heading h1 {
    max-width: 930px;
    margin: 0 auto 22px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 4.6vw, 4.9rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.section-heading p {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.06rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
    border: 2px solid var(--gold-500);
    box-shadow:
        0 0 0 5px rgba(210, 162, 63, 0.08),
        var(--shadow-lg);
}

.pricing-card.highlighted::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(210, 162, 63, 0.08), transparent 35%);
    pointer-events: none;
}

.coming-soon-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.popular-badge,
.corner-badge {
    position: absolute;
    top: 0;
    right: 28px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    background: var(--gold-500);
    color: var(--navy-950);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(184, 137, 43, 0.28);
}

.corner-badge {
    background: var(--navy-900);
    color: var(--gold-200);
}

.card-header {
    position: relative;
    z-index: 1;
}

.plan-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-status.available {
    background: var(--success-soft);
    color: var(--success);
}

.plan-status.coming-soon {
    background: var(--warning-soft);
    color: var(--warning);
}

.card-header h2 {
    margin: 18px 0 8px;
    color: var(--navy-950);
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    line-height: 1.15;
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--navy-950);
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.price > span {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
}

.price-period {
    margin-left: 3px;
    color: var(--text-soft);
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
}

.billing-line {
    margin: 10px 0 0;
    color: var(--gold-600);
    font-size: 0.86rem;
    font-weight: 700;
}

.card-subtitle {
    min-height: 92px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.pricing-card hr {
    width: 100%;
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--text);
    font-size: 0.92rem;
}

.feature-list i {
    margin-top: 4px;
    color: var(--gold-600);
    text-align: center;
}

.feature-list strong {
    color: var(--navy-950);
}

.feature-list .text-muted,
.feature-list i.text-muted {
    color: var(--text-muted);
}

.pricing-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.pricing-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.pricing-btn-outline {
    border-color: var(--navy-900);
    background: var(--white);
    color: var(--navy-900);
}

.pricing-btn-outline:hover {
    background: var(--navy-900);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(11, 31, 58, 0.2);
}

.pricing-btn-highlight {
    background: var(--gold-500);
    color: var(--navy-950);
}

.pricing-btn-solid {
    background: var(--navy-900);
    color: var(--white);
}

.pricing-btn-disabled,
.pricing-btn:disabled {
    border-color: var(--border-strong);
    background:
        repeating-linear-gradient(
            -45deg,
            #eef2f6,
            #eef2f6 8px,
            #e5ebf1 8px,
            #e5ebf1 16px
        );
    color: #6f7b8d;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.pricing-notes {
    display: grid;
    gap: 14px;
    margin-top: 38px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.pricing-notes p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.pricing-notes strong {
    color: var(--navy-950);
}

.pricing-card:focus-within,
.pricing-btn:focus-visible {
    outline: 3px solid rgba(210, 162, 63, 0.35);
    outline-offset: 3px;
}

@media (max-width: 1365px) {
    .pricing-section {
        padding-top: 86px;
    }

    .pricing-section::before {
        height: 490px;
    }

    .pricing-section::after {
        top: 425px;
    }

    .section-heading {
        width: min(860px, 100%);
    }

    .section-heading h1 {
        font-size: clamp(2.2rem, 4.4vw, 4.35rem);
        max-width: 820px;
    }

    .section-heading p {
        max-width: 740px;
        font-size: 1rem;
    }
}

@media (max-width: 1100px) {
    /*
       The shared header wraps into two rows at this width.
       Extra top space keeps the hero title fully below it.
    */
    .pricing-section {
        padding-top: 156px;
    }

    .pricing-section::before {
        height: 548px;
    }

    .pricing-section::after {
        top: 484px;
        height: 85px;
    }

    .section-heading {
        width: min(820px, 100%);
        margin-bottom: 44px;
    }

    .section-heading h1 {
        font-size: clamp(2rem, 4.8vw, 3.55rem);
        max-width: 760px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .pricing-card:last-child {
        grid-column: 1 / -1;
        width: min(560px, 100%);
        justify-self: center;
    }

    .card-subtitle {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 680px);
    }

    .pricing-section {
        padding: 142px 0 64px;
    }

    /*
       Mobile titles and descriptions wrap into more lines.
       The navy hero must remain tall enough for all text before
       the angled white transition begins.
    */
    .pricing-section::before {
        height: 650px;
    }

    .pricing-section::after {
        top: 588px;
        left: -10%;
        width: 120%;
        height: 76px;
        transform: rotate(-1.8deg);
    }

    .section-heading {
        margin-bottom: 34px;
        padding-top: 6px;
    }

    .section-heading h1 {
        font-size: clamp(1.95rem, 8vw, 3rem);
        line-height: 1.12;
        max-width: 100%;
    }

    .section-heading p {
        font-size: 0.97rem;
        max-width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pricing-card,
    .pricing-card:last-child {
        grid-column: auto;
        width: 100%;
        padding: 24px;
    }

    .popular-badge,
    .corner-badge {
        right: 20px;
    }

    .pricing-notes {
        margin-top: 28px;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 18px, 460px);
    }

    .pricing-section {
        padding-top: 132px;
    }

    .pricing-section::before {
        height: 710px;
    }

    .pricing-section::after {
        top: 648px;
        left: -8%;
        width: 116%;
        height: 58px;
        transform: rotate(-1deg);
    }

    .section-heading h1 {
        font-size: 1.86rem;
    }

    .section-heading p {
        font-size: 0.93rem;
    }

    .pricing-card {
        padding: 22px;
        border-radius: 20px;
    }

    .card-header h2 {
        font-size: 1.72rem;
    }

    .price {
        font-size: 3rem;
    }

    .feature-list li {
        font-size: 0.88rem;
    }

    .pricing-notes {
        border-radius: 18px;
        padding: 18px;
    }
}

@media (max-width: 380px) {
    .pricing-section::before {
        height: 755px;
    }

    .pricing-section::after {
        top: 693px;
    }

    .section-heading h1 {
        font-size: 1.72rem;
    }

    .section-heading p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}