/* ==========================================================================
   HASMaster Pricing Page — v3.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page wrapper
   -------------------------------------------------------------------------- */
.hm-pricing {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px 80px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hm-pricing-hero {
    text-align: center;
    padding: 52px 0 44px;
}

.hm-pricing-hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent, #8b0000);
    margin: 0 0 12px;
}

.hm-pricing-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-hero__sub {
    font-size: 1.05rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Tier cards
   -------------------------------------------------------------------------- */
.hm-pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    margin-bottom: 64px;
    align-items: start;
}

.hm-pricing-tier {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 12px;
    padding: 28px 24px 24px;
    position: relative;
    box-sizing: border-box;
}

.hm-pricing-tier--featured {
    border-color: var(--wp--preset--color--accent, #8b0000);
    border-top-width: 3px;
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.09);
}

.hm-pricing-tier__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.hm-pricing-tier__name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    margin-bottom: 10px;
}

.hm-pricing-tier__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.hm-pricing-tier__amount {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-tier--featured .hm-pricing-tier__amount {
    color: var(--wp--preset--color--accent, #8b0000);
}

.hm-pricing-tier__period {
    font-size: 0.82rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
}

.hm-pricing-tier__desc {
    font-size: 0.88rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.hm-pricing-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
    border: 2px solid transparent;
    line-height: 1.3;
    font-family: inherit;
}

.hm-pricing-btn--primary {
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff !important;
    border-color: var(--wp--preset--color--accent, #8b0000);
}
.hm-pricing-btn--primary:hover {
    background: var(--wp--preset--color--accent-hover, #a00000);
    border-color: var(--wp--preset--color--accent-hover, #a00000);
}

.hm-pricing-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--accent, #8b0000) !important;
    border-color: var(--wp--preset--color--accent, #8b0000);
}
.hm-pricing-btn--outline:hover {
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff !important;
}

/* Donation button — muted, sits below main CTA */
.hm-pricing-btn--donation {
    background: transparent;
    color: var(--wp--preset--color--text-muted, #6b6b6b) !important;
    border-color: var(--wp--preset--color--border, #e0e0e0);
    margin-top: 8px;
    font-size: 0.83rem;
    padding: 9px 16px;
}
.hm-pricing-btn--donation:hover {
    border-color: var(--wp--preset--color--accent, #8b0000);
    color: var(--wp--preset--color--accent, #8b0000) !important;
}

.hm-pricing-btn--primary-sm,
.hm-pricing-btn--outline-sm {
    display: inline-block;
    width: auto;
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.14s ease, color 0.14s ease;
}

.hm-pricing-btn--primary-sm {
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff !important;
    border-color: var(--wp--preset--color--accent, #8b0000);
}
.hm-pricing-btn--primary-sm:hover {
    background: var(--wp--preset--color--accent-hover, #a00000);
}

.hm-pricing-btn--outline-sm {
    background: transparent;
    color: var(--wp--preset--color--accent, #8b0000) !important;
    border-color: var(--wp--preset--color--accent, #8b0000);
}
.hm-pricing-btn--outline-sm:hover {
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Pain points
   -------------------------------------------------------------------------- */
.hm-pricing-pain {
    margin-bottom: 64px;
}

.hm-pricing-pain__title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-pain__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hm-pricing-pain__item {
    background: var(--wp--preset--color--surface, #fafafa);
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 10px;
    padding: 22px 20px;
    box-sizing: border-box;
}

.hm-pricing-pain__item-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-pain__item-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    margin: 0 0 12px;
}

.hm-pricing-pain__item-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    padding-top: 10px;
}

.hm-pricing-pain__item-bullets li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    padding: 3px 0 3px 14px;
    position: relative;
}

.hm-pricing-pain__item-bullets li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--accent, #8b0000);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.hm-pricing-compare__title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 28px;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1.5px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 10px;
}

.hm-pricing-compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 520px;
}

.hm-pricing-compare__table thead th {
    padding: 16px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wp--preset--color--text, #2d2d2d);
    background: var(--wp--preset--color--surface, #fafafa);
    border-bottom: 2px solid var(--wp--preset--color--border, #e0e0e0);
    line-height: 1.4;
}

.hm-pricing-compare__table thead th span {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    margin-top: 2px;
}

.hm-pricing-compare__label-col {
    text-align: left !important;
    width: 50%;
}

.hm-pricing-compare__featured-col {
    background: rgba(139, 0, 0, 0.025) !important;
}

thead .hm-pricing-compare__featured-col {
    color: var(--wp--preset--color--accent, #8b0000) !important;
}

.hm-pricing-compare__group td {
    padding: 12px 14px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    background: var(--wp--preset--color--surface, #fafafa);
    border-top: 2px solid var(--wp--preset--color--border, #e0e0e0);
}

.hm-pricing-compare__table tbody tr:not(.hm-pricing-compare__group) {
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.hm-pricing-compare__table tbody tr:not(.hm-pricing-compare__group):hover {
    background: #fdf9f9;
}

.hm-pricing-compare__feature {
    padding: 12px 14px;
    color: var(--wp--preset--color--text, #2d2d2d);
    line-height: 1.45;
    font-weight: 500;
    vertical-align: top;
}

/* Table sub-bullets */
.hm-pricing-compare__sub {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.hm-pricing-compare__sub li {
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    padding: 2px 0 2px 14px;
    position: relative;
}

.hm-pricing-compare__sub li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--accent, #8b0000);
    font-size: 0.85rem;
}

.hm-pricing-compare__cell {
    text-align: center;
    padding: 12px 14px;
    vertical-align: top;
}

.hm-check--yes {
    color: var(--wp--preset--color--accent, #8b0000);
    font-size: 1rem;
    font-weight: 700;
}

.hm-check--no {
    color: var(--wp--preset--color--text-subtle, #9a9a9a);
    font-size: 1rem;
}

.hm-pricing-compare__table tfoot td {
    padding: 16px 14px;
    text-align: center;
    background: var(--wp--preset--color--surface, #fafafa);
    border-top: 2px solid var(--wp--preset--color--border, #e0e0e0);
}

/* --------------------------------------------------------------------------
   Payment modal
   -------------------------------------------------------------------------- */
.hm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

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

.hm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.hm-modal__box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    animation: hm-modal-in 0.18s ease;
}

@keyframes hm-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.hm-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.hm-modal__close:hover {
    background: var(--wp--preset--color--surface, #fafafa);
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-modal__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent, #8b0000);
    margin-bottom: 8px;
}

.hm-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--wp--preset--color--text, #2d2d2d);
    line-height: 1.2;
}

.hm-modal__includes {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    padding-top: 14px;
}

.hm-modal__includes li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--wp--preset--color--text, #2d2d2d);
    padding: 4px 0 4px 20px;
    position: relative;
}

.hm-modal__includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--accent, #8b0000);
    font-weight: 700;
    font-size: 0.8rem;
}

.hm-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-modal__buy {
    display: block;
    text-align: center;
    padding: 13px 20px;
    background: var(--wp--preset--color--accent, #8b0000);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.14s ease;
}

.hm-modal__buy:hover {
    background: var(--wp--preset--color--accent-hover, #a00000);
}

.hm-modal__alt {
    text-align: center;
    font-size: 0.83rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    text-decoration: none;
}

.hm-modal__alt:hover {
    color: var(--wp--preset--color--accent, #8b0000);
    text-decoration: underline;
}

.hm-modal__note {
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-subtle, #9a9a9a);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* Prevent body scroll when modal open */
body.hm-modal-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   FAQ page
   -------------------------------------------------------------------------- */
.hm-pricing-faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hm-pricing-faq h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.hm-pricing-faq__item {
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.hm-pricing-faq__q {
    display: block;
    padding: 16px 28px 16px 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--wp--preset--color--text, #2d2d2d);
}

.hm-pricing-faq__q::-webkit-details-marker { display: none; }

.hm-pricing-faq__q::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
}

.hm-pricing-faq__item[open] .hm-pricing-faq__q::after {
    content: "\2212";
}

.hm-pricing-faq__a {
    padding: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--wp--preset--color--text-muted, #6b6b6b);
    margin: 0;
}

.hm-pricing-faq__back {
    margin-top: 40px;
    font-size: 0.9rem;
}

.hm-pricing-faq__back a {
    color: var(--wp--preset--color--accent, #8b0000);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hm-pricing-pain__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hm-pricing-tiers {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hm-pricing-pain__grid {
        grid-template-columns: 1fr;
    }

    .hm-modal__box {
        padding: 28px 20px 22px;
    }
}
