/* ==========================================================================
   PRICING CARDS, shared: the landing page (#pricing) and the partners' co-branded
   landing page (/r/<slug>, with the first month at 50%). Moved out of landing.css
   on 2026-10-13 so both pages draw the same cards from one file. Tokens (--ctj-*,
   --font-*) come from the page that links this.
   ========================================================================== */
.price {
    padding: var(--section-pad) 24px;
    background: #050505;
    border-top: 1px solid #1a1a1a;
}
.price__inner { max-width: 1320px; margin: 0 auto; }
.price__head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.price__eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--ctj-gold); margin-bottom: 22px;
}
.price__headline {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 700; line-height: 1.2;
    letter-spacing: -.015em; color: var(--ctj-cream);
}
.price__headline em { font-style: italic; color: var(--ctj-gold); }

.price__row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 18px; align-items: start;
}

/* Dark card default */
.price-card {
    position: relative;
    background: #111;
    border: 1px solid var(--ctj-gold-dim);
    border-radius: 14px;
    padding: 30px 26px 26px;
}
.price-card__name {
    font-family: var(--font-serif);
    font-size: 1.3rem; font-weight: 700; color: var(--ctj-cream);
}
.price-card__for {
    margin-top: 4px; font-size: .88rem; line-height: 1.5;
    color: var(--ctj-text-secondary); min-height: 2.6em;
}
.price-card__amount {
    margin-top: 14px;
    font-family: var(--font-serif);
    font-size: 2.6rem; font-weight: 700; color: var(--ctj-cream);
}
.price-card__amount span {
    font-family: var(--font-body);
    font-size: .95rem; font-weight: 500; color: var(--ctj-text-secondary);
}
.price-card__cta {
    display: block; text-align: center;
    margin-top: 16px; padding: 12px 0;
    border: 1px solid var(--ctj-gold); border-radius: 999px;
    color: var(--ctj-gold); text-decoration: none;
    font-weight: 600; font-size: .95rem;
    transition: background .2s ease, color .2s ease;
}
.price-card__cta:hover { background: var(--ctj-gold); color: #0a0a0a; }

/* Grouped feature list, TraderSync-style categories with gold checks */
.price-card__list { margin-top: 22px; }
.price-card__cat {
    font-size: .72rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--ctj-gold); margin: 16px 0 8px;
}
.price-card__list ul { list-style: none; margin: 0; padding: 0; }
.price-card__list li {
    position: relative; padding-left: 24px;
    font-size: .9rem; line-height: 1.5;
    color: var(--ctj-text-secondary); margin-bottom: 7px;
}
.price-card__list li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--ctj-gold); font-weight: 700;
}
/* Not-included items: dash instead of check, dimmed */
.price-card__list li.is-no { color: #555; }
.price-card__list li.is-no::before { content: "–"; color: #555; }
.price-card--featured .price-card__list li.is-no { color: #a89c82; }
.price-card--featured .price-card__list li.is-no::before { color: #a89c82; }

/* Featured parchment card: the old page's pricing card, reborn as Desk */
.price-card--featured {
    background: #F0E4CC;                 /* warm parchment cream */
    border: 1px solid var(--ctj-gold);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.price-card--featured::before {          /* inner gold frame, double-border feel */
    content: ""; position: absolute; inset: 6px;
    border: 1px solid rgba(160,118,20,.5);
    border-radius: 9px; pointer-events: none;
}
.price-card__band {
    text-align: center;
    font-size: .72rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #7a5a10; margin-bottom: 14px;
}
.price-card--featured .price-card__name,
.price-card--featured .price-card__amount { color: #241d10; }
.price-card--featured .price-card__for,
.price-card--featured .price-card__list li { color: #5b4d31; }
.price-card--featured .price-card__cat { color: #7a5a10; }
.price-card--featured .price-card__list li::before { color: #7a5a10; }
.price-card--featured .price-card__cta {
    background: #241d10; border-color: #241d10; color: #F0E4CC;
}
.price-card--featured .price-card__cta:hover { background: #3a2f19; border-color: #3a2f19; }

.price__fine {
    margin-top: 26px; text-align: center;
    font-size: .88rem; font-style: italic;
    color: var(--ctj-text-secondary);
}

@media (max-width: 1020px) { .price__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .price__row { grid-template-columns: 1fr; } }

/* The partner offer: the regular price struck, the first-month price beside it */
.price-card__was { font-size: 1.3rem; font-weight: 400; color: var(--ctj-text-muted); text-decoration: line-through; margin-right: 8px; }
.price-card--featured .price-card__was { color: #8a7a55; }
.price-card__line { display: block; margin-top: 2px; }   /* the partner offer's second line ("your first month", "free, no card"), so the four buttons line up */
.price-card--featured .price-card__amount span { color: #5b4d31; }   /* readable on the parchment card ("/mo" and "your first month") */

/* Phones: inside a .price-swipe wrapper the four cards become a row you swipe, opening on Desk, with tappable
   dots above it (his call 2026-10-20 for /start and the partners' pages). Pages without the wrapper keep the stack. */
@media (max-width: 620px) {
    .price-swipe .price__row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .price-swipe .price__row::-webkit-scrollbar { display: none; }
    .price-swipe .price-card { flex: 0 0 84%; scroll-snap-align: center; }
    .price-swipe .price-dots { display: flex; justify-content: center; gap: 2px; margin: -12px 0 8px; }
    /* each dot is a button with a finger-sized hit area around a 7px dot */
    .price-swipe .price-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
    .price-swipe .price-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ctj-gold-dim, rgba(218,165,32,.3)); transition: background .2s ease, transform .2s ease; }
    .price-swipe .price-dots button.on::before { background: var(--ctj-gold, #DAA520); transform: scale(1.3); }
}
.price-dots { display: none; }
