/**
 * Block: Membership Pricing
 *
 * 3-tier card row with one highlighted tier (honey ring),
 * a tone-coded badge per card, and a small footnote below.
 *
 * @package GuildCommerceTheme
 * @since 1.5.0
 */

/* ---------------------------------------------------------- *
 * Section frame                                              *
 * ---------------------------------------------------------- */
.gc-pricing {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: var(--gc-bg, #FFFDF8);
    border-top: 1px solid rgba(82, 66, 53, 0.12);
}

.gc-pricing__inner {
    max-width: var(--gc-content-max, 1200px);
    margin-inline: auto;
    padding-inline: var(--gc-content-pad, clamp(1rem, 4vw, 2rem));
}

/* ---------------------------------------------------------- *
 * Heading block (matches other blocks)                       *
 * ---------------------------------------------------------- */
.gc-pricing__head {
    max-width: 60ch;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.gc-pricing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gc-mocha, #524235);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.gc-pricing__eyebrow-rule {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gc-honey, #FCB240);
}

.gc-pricing__title {
    margin: 0 0 0.75rem;
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-weight: 700;
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--gc-mocha, #524235);
    text-wrap: balance;
}

.gc-pricing__lede {
    margin: 0;
    font-family: var(--gc-font-body, "DM Sans", system-ui, sans-serif);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(82, 66, 53, 0.78);
}

/* ---------------------------------------------------------- *
 * Tier grid                                                  *
 * ---------------------------------------------------------- */
.gc-pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 720px) {
    .gc-pricing__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* ---------------------------------------------------------- *
 * Single tier card                                           *
 * ---------------------------------------------------------- */
.gc-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(82, 66, 53, 0.14);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(82, 66, 53, 0.04);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.gc-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(82, 66, 53, 0.08);
}

/* Highlighted tier — honey ring with offset */
.gc-tier--highlight {
    border-color: var(--gc-honey, #FCB240);
    box-shadow:
        0 0 0 2px var(--gc-honey, #FCB240),
        0 0 0 6px var(--gc-bg, #FFFDF8),
        0 1px 2px rgba(82, 66, 53, 0.04);
}

.gc-tier--highlight:hover {
    box-shadow:
        0 0 0 2px var(--gc-honey, #FCB240),
        0 0 0 6px var(--gc-bg, #FFFDF8),
        0 8px 24px rgba(82, 66, 53, 0.10);
}

/* "Most members" ribbon */
.gc-tier__ribbon {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gc-honey, #FCB240);
    color: #3a2e23;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(82, 66, 53, 0.12);
}

/* Tone-coded "tag" pill at top of each card */
.gc-tier__tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.gc-tag--honey {
    background: rgba(252, 178, 64, 0.16);
    color: #7a4a07;
}
.gc-tag--mint {
    background: rgba(134, 204, 170, 0.18);
    color: #244f3a;
}
.gc-tag--lavender {
    background: rgba(156, 102, 170, 0.16);
    color: #5a2e6a;
}
.gc-tag--mocha {
    background: rgba(82, 66, 53, 0.10);
    color: var(--gc-mocha, #524235);
}

/* Price block */
.gc-tier__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.gc-tier__price-amount {
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gc-mocha, #524235);
}

.gc-tier__price-suffix {
    font-family: var(--gc-font-body, "DM Sans", system-ui, sans-serif);
    font-size: 0.875rem;
    color: rgba(82, 66, 53, 0.62);
}

.gc-tier__name {
    margin: 0.25rem 0 0;
    font-family: var(--gc-font-display, "Inter Tight", system-ui, sans-serif);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--gc-mocha, #524235);
}

.gc-tier__body {
    margin: 0.5rem 0 0;
    font-family: var(--gc-font-body, "DM Sans", system-ui, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(82, 66, 53, 0.78);
}

/* CTA — sticks to the bottom regardless of body length */
.gc-tier__cta {
    margin-top: auto;
    padding-top: 1.25rem;
    align-self: flex-start;
}

.gc-tier__cta.gc-btn--honey,
.gc-tier__cta.gc-btn--outline {
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------- *
 * Footnote                                                   *
 * ---------------------------------------------------------- */
.gc-pricing__footnote {
    margin: clamp(1.5rem, 3vw, 2rem) auto 0;
    max-width: 60ch;
    font-family: var(--gc-font-body, "DM Sans", system-ui, sans-serif);
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(82, 66, 53, 0.68);
    text-align: left;
}

.gc-pricing__footnote strong {
    color: var(--gc-mocha, #524235);
    font-weight: 600;
}

/* ---------------------------------------------------------- *
 * Reduced motion                                             *
 * ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .gc-tier { transition: none; }
    .gc-tier:hover { transform: none; }
}
