/* ============================================================
   /pricing and /subscribe: four plans, one full-screen section each.
   Brand palette (app CLAUDE.md §8): cream / paper / ink, brand blue accent,
   Fraunces (light) for names and prices, Inter (light) for text.
   ============================================================ */

.prc {
    --prc-hdr: 64px;
    --prc-bg: #fdfbf7;          /* cream */
    --prc-bg-alt: #f5f1ea;      /* paper */
    --prc-fg: #1c1c1a;
    --prc-muted: #62625c;
    --prc-rule: rgba(10, 10, 10, .12);
    --prc-accent: #2ba8ff;
    --prc-accent-deep: #0066cc;
    --prc-btn-bg: #0a0a0a;
    --prc-btn-fg: #fdfbf7;
    --prc-dark-bg: #0a0a0a;
    --prc-dark-fg: #f5f1ea;
    --prc-dark-muted: rgba(245, 241, 234, .64);
    --prc-dark-rule: rgba(245, 241, 234, .16);

    color: var(--prc-fg);
    background: var(--prc-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 768px) {
    .prc { --prc-hdr: 56px; }
}
[data-theme="dark"] .prc {
    --prc-bg: #0f0f0e;
    --prc-bg-alt: #171715;
    --prc-fg: #ece8e1;
    --prc-muted: #a19e96;
    --prc-rule: rgba(236, 232, 225, .14);
    --prc-accent-deep: #6cc4ff;
    --prc-btn-bg: #ece8e1;
    --prc-btn-fg: #0a0a0a;
    --prc-dark-bg: #f5f1ea;
    --prc-dark-fg: #0a0a0a;
    --prc-dark-muted: #55554f;
    --prc-dark-rule: rgba(10, 10, 10, .14);
}

/* ---- Sections: each fills the screen under the header ---- */
.prc-sec {
    min-height: calc(100vh - var(--prc-hdr));
    min-height: calc(100svh - var(--prc-hdr));
    display: flex;
    align-items: center;
    padding: clamp(3.5rem, 9vh, 7rem) clamp(1.5rem, 6vw, 5rem);
    background: var(--prc-bg);
    scroll-margin-top: var(--prc-hdr);
}
.prc-alt { background: var(--prc-bg-alt); }
.prc-dark {
    --prc-fg: var(--prc-dark-fg);
    --prc-muted: var(--prc-dark-muted);
    --prc-rule: var(--prc-dark-rule);
    --prc-btn-bg: var(--prc-dark-fg);
    --prc-btn-fg: var(--prc-dark-bg);
    background: var(--prc-dark-bg);
    color: var(--prc-fg);
}

.prc-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}
.prc-col { min-width: 0; }

/* ---- Type ---- */
.prc-title,
.prc-name,
.prc-price {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    margin: 0;
    color: var(--prc-fg);
}
.prc-title {
    font-size: clamp(3.75rem, 11vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.045em;
}
.prc-lede {
    margin: clamp(1.25rem, 3vh, 2rem) 0 0;
    max-width: 30rem;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.6;
    color: var(--prc-muted);
}
.prc-name {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.02em;
}
.prc-price {
    margin-top: clamp(.75rem, 2vh, 1.25rem);
    font-size: clamp(4.25rem, 12vw, 9rem);
    line-height: .9;
    letter-spacing: -.05em;
    font-feature-settings: "lnum", "tnum";
}
.prc-per {
    margin: clamp(.75rem, 2vh, 1.25rem) 0 0;
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    line-height: 1.5;
    color: var(--prc-muted);
}

/* ---- Hero index: the four prices as links ---- */
.prc-index { border-bottom: 1px solid var(--prc-rule); }
.prc-index-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2.4vh, 1.4rem) 0;
    border-top: 1px solid var(--prc-rule);
    color: var(--prc-fg);
    text-decoration: none;
}
.prc-index-name {
    display: inline-block;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    letter-spacing: -.015em;
    transition: transform .25s ease, color .25s ease;
}
.prc-index-price {
    position: relative;
    font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
    color: var(--prc-muted);
    white-space: nowrap;
    transition: padding-right .25s ease, color .25s ease;
}
/* The arrow sits in the price's right padding, which opens on hover: prices stay flush right. */
.prc-index-price::after {
    content: '\2192';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: opacity .25s ease;
}
.prc-index-row:hover .prc-index-name,
.prc-index-row:focus-visible .prc-index-name { color: var(--prc-accent-deep); transform: translateX(4px); }
.prc-index-row:hover .prc-index-price,
.prc-index-row:focus-visible .prc-index-price { padding-right: 1.5rem; color: var(--prc-fg); }
.prc-index-row:hover .prc-index-price::after,
.prc-index-row:focus-visible .prc-index-price::after { opacity: 1; }

/* ---- What you get ---- */
.prc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--prc-rule);
}
.prc-list li {
    padding: clamp(.85rem, 2vh, 1.15rem) 0;
    border-top: 1px solid var(--prc-rule);
    font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
    line-height: 1.45;
}

/* ---- Buttons and links ---- */
.prc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
    min-height: 3.25rem;
    padding: .9rem 2rem;
    border-radius: 999px;
    background: var(--prc-btn-bg);
    color: var(--prc-btn-fg);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: .005em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.prc-btn::after { content: '\2192'; transition: transform .2s ease; }
.prc-btn:hover,
.prc-btn:focus-visible { background: #0066cc; color: #fff; }
.prc-btn:hover::after { transform: translateX(3px); }

.prc-pick {
    margin: clamp(1.5rem, 4vh, 2.25rem) 0 .85rem;
    font-size: .9375rem;
    color: var(--prc-muted);
}
.prc-sports { display: flex; flex-wrap: wrap; gap: .55rem; }
.prc-sport {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .55rem 1.15rem;
    border: 1px solid var(--prc-rule);
    border-radius: 999px;
    color: var(--prc-fg);
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.prc-sport-price { margin-left: .5rem; color: var(--prc-muted); font-weight: 300; }
.prc-btn + .prc-pick { margin-top: clamp(1.25rem, 3vh, 1.75rem); }
.prc-sport:hover,
.prc-sport:focus-visible { border-color: var(--prc-accent); color: var(--prc-accent-deep); background: rgba(43, 168, 255, .07); }

/* ---- Pro: monthly / yearly ---- */
.prc-toggle {
    display: inline-flex;
    gap: 2px;
    margin-top: clamp(1rem, 2.5vh, 1.5rem);
    padding: 4px;
    border: 1px solid var(--prc-rule);
    border-radius: 999px;
}
.prc-toggle button {
    min-height: 2.5rem;
    padding: .45rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--prc-muted);
    font: inherit;
    font-size: .9375rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.prc-toggle button[aria-pressed="true"] { background: var(--prc-fg); color: var(--prc-dark-bg); }
.prc-dark .prc-toggle button[aria-pressed="true"] { background: var(--prc-dark-fg); color: var(--prc-dark-bg); }

.prc-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2.5rem;
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
    border-top: 1px solid var(--prc-rule);
}
.prc-foot a {
    color: var(--prc-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: color .2s ease;
}
.prc-foot a::after { content: '\00a0\2192'; }
.prc-foot a:hover,
.prc-foot a:focus-visible { color: var(--prc-fg); text-decoration: underline; text-underline-offset: .25em; }

.prc a:focus-visible,
.prc button:focus-visible { outline: 2px solid var(--prc-accent); outline-offset: 3px; }

/* ---- Phones and narrow screens: one column ---- */
@media (max-width: 860px) {
    .prc-sec { padding: clamp(2.25rem, 6vh, 3.5rem) 1.5rem; }
    .prc-wrap { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3.5vh, 2.25rem); align-items: start; }
    .prc-list li { padding: clamp(.7rem, 1.7vh, .95rem) 0; }
    .prc-btn { width: 100%; margin-top: clamp(1.25rem, 3vh, 2rem); }
    .prc-foot { flex-direction: column; gap: .7rem; padding-top: clamp(1.25rem, 3vh, 2rem); }
    .prc-foot a { font-size: .9375rem; }
    .prc-pick { margin: clamp(1.1rem, 2.6vh, 1.6rem) 0 .7rem; }
    .prc-sports { gap: .45rem; }
    .prc-sport { min-height: 2.5rem; padding: .4rem .9rem; font-size: .9375rem; }
}
/* A short phone screen (or a phone turned sideways): keep each section to the content. */
@media (max-height: 560px) {
    .prc-sec { min-height: 0; }
}

/* ---- Sections ease in as they reach the screen (pricing-page.js adds .prc-anim) ---- */
@media (prefers-reduced-motion: no-preference) {
    .prc-anim .prc-sec:not(.prc-hero) .prc-wrap > * {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    }
    .prc-anim .prc-sec.is-in .prc-wrap > * { opacity: 1; transform: none; }
    .prc-anim .prc-sec.is-in .prc-wrap > :nth-child(2) { transition-delay: .12s; }
    .prc-anim .prc-sec.is-in .prc-wrap > :nth-child(3) { transition-delay: .24s; }
}

/* Desktop: settle on a section when scrolling stops near one. */
@media (min-width: 900px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
    html:has(.prc) { scroll-snap-type: y proximity; }
    .prc-sec { scroll-snap-align: start; }
}
