/* ==========================================================
   Content Planners — Gumroad-style storefront
   Motif: planner desk / calendar grid. Red-600 primary accent
   (site standard) + amber-500 secondary accent for the
   planner/desk-organizer identity.
   ========================================================== */

.cp-main {
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.10), transparent 24%),
        linear-gradient(180deg, #070604 0%, #030302 100%);
    overflow: hidden;
}

.cp-heading,
.cp-desk-title,
.cp-card-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.cp-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f59e0b;
}

/* ---------- Hero badge ---------- */

.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #fbbf24;
}

.cp-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: cp-pulse 2s ease-in-out infinite;
}

@keyframes cp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

/* ---------- Buttons ---------- */

.cp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 14px 30px -14px rgba(220, 38, 38, 0.55);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cp-btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.cp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cp-btn-secondary:hover {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.7);
    transform: translateY(-1px);
}

.cp-input {
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #27272a;
    background: #0a0a0a;
    color: #fff;
    font-size: 0.92rem;
}

.cp-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ---------- Desk card (hero week strip) ---------- */

.cp-desk-card {
    border: 1px solid #27272a;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.7), rgba(9, 9, 9, 0.9));
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.cp-desk-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cp-desk-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.cp-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #a3a3a3;
    border: 1px solid #3f3f46;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.cp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #dc2626;
    display: inline-block;
    animation: cp-pulse 1.8s ease-in-out infinite;
}

.cp-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.cp-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.2rem;
    border-radius: 0.85rem;
    border: 1px solid #27272a;
    background: rgba(255, 255, 255, 0.02);
}

.cp-day-today {
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(220, 38, 38, 0.08);
}

.cp-day-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: #71717a;
}

.cp-day-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.cp-day-tag {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
}

.cp-tag-research { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.cp-tag-idea { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.cp-tag-film { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.cp-tag-edit { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.cp-tag-publish { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.cp-tag-rest { background: rgba(161, 161, 170, 0.18); color: #d4d4d8; }

.cp-desk-note {
    margin-top: 1.1rem;
    font-size: 0.78rem;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Divider strip ---------- */

.cp-strip {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), rgba(220, 38, 38, 0.3), transparent);
    max-width: 72rem;
    margin: 0 auto;
}

/* ---------- Pre-launch notice ---------- */

.cp-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    color: #d4d4d8;
    font-size: 0.9rem;
}

.cp-notice i {
    color: #f59e0b;
    margin-top: 0.2rem;
}

/* ---------- Product grid ---------- */

.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.cp-card {
    border: 1px solid #27272a;
    background: #0a0a0a;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cp-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.cp-price {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
}

.cp-scope {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f87171;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.cp-card-pitch {
    font-size: 0.86rem;
    color: #a1a1aa;
    line-height: 1.5;
    flex-grow: 1;
}

.cp-get-it {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    font-size: 0.86rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cp-get-it:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* ---------- Cover art (mini calendar grid) ---------- */

.cp-cover {
    position: relative;
    padding: 1rem 1.1rem 0.9rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid #27272a;
}

.cp-cover-tab {
    position: absolute;
    top: -0.6rem;
    right: 1.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181b;
    border: 1px solid #3f3f46;
    color: #f59e0b;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}

.cp-cover-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.cp-cover-weekdays span {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #52525b;
}

.cp-cover-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.cp-cover-grid span {
    aspect-ratio: 1 / 1;
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.045);
}

/* Variant A — 30-Day Upload Calendar (red-heavy) */
.cp-cover-a .cp-cover-grid span:nth-child(3),
.cp-cover-a .cp-cover-grid span:nth-child(6),
.cp-cover-a .cp-cover-grid span:nth-child(9),
.cp-cover-a .cp-cover-grid span:nth-child(12),
.cp-cover-a .cp-cover-grid span:nth-child(16) {
    background: rgba(220, 38, 38, 0.55);
}
.cp-cover-a .cp-cover-grid span:nth-child(8),
.cp-cover-a .cp-cover-grid span:nth-child(19) {
    background: rgba(245, 158, 11, 0.4);
}

/* Variant B — Quarterly Strategy (amber-heavy, sparser / long-range) */
.cp-cover-b .cp-cover-grid span:nth-child(1),
.cp-cover-b .cp-cover-grid span:nth-child(8),
.cp-cover-b .cp-cover-grid span:nth-child(15) {
    background: rgba(245, 158, 11, 0.55);
}
.cp-cover-b .cp-cover-grid span:nth-child(5),
.cp-cover-b .cp-cover-grid span:nth-child(12),
.cp-cover-b .cp-cover-grid span:nth-child(19) {
    background: rgba(220, 38, 38, 0.4);
}

/* Variant C — Batch-Filming (clustered pairs = batch days) */
.cp-cover-c .cp-cover-grid span:nth-child(9),
.cp-cover-c .cp-cover-grid span:nth-child(10),
.cp-cover-c .cp-cover-grid span:nth-child(16),
.cp-cover-c .cp-cover-grid span:nth-child(17) {
    background: rgba(220, 38, 38, 0.5);
}
.cp-cover-c .cp-cover-grid span:nth-child(3) {
    background: rgba(245, 158, 11, 0.4);
}

/* Variant D — Research (scattered dots = data points) */
.cp-cover-d .cp-cover-grid span:nth-child(2),
.cp-cover-d .cp-cover-grid span:nth-child(7),
.cp-cover-d .cp-cover-grid span:nth-child(11),
.cp-cover-d .cp-cover-grid span:nth-child(14),
.cp-cover-d .cp-cover-grid span:nth-child(18),
.cp-cover-d .cp-cover-grid span:nth-child(21) {
    background: rgba(245, 158, 11, 0.45);
}

/* Variant E — Repurposing (one cell branching into a row) */
.cp-cover-e .cp-cover-grid span:nth-child(4) {
    background: rgba(220, 38, 38, 0.6);
}
.cp-cover-e .cp-cover-grid span:nth-child(11),
.cp-cover-e .cp-cover-grid span:nth-child(12),
.cp-cover-e .cp-cover-grid span:nth-child(13),
.cp-cover-e .cp-cover-grid span:nth-child(14) {
    background: rgba(245, 158, 11, 0.4);
}

/* ---------- Bundle teaser card ---------- */

.cp-card-bundle {
    border-style: dashed;
    border-color: #3f3f46;
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.06), rgba(0, 0, 0, 0));
}

.cp-bundle-inner {
    padding: 2.1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-grow: 1;
}

/* ---------- Trust cards ---------- */

.cp-trust-card {
    border: 1px solid #27272a;
    background: #0a0a0a;
    border-radius: 1.1rem;
    padding: 1.5rem;
}

.cp-trust-card i {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.cp-trust-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cp-trust-card p {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
}

/* ---------- FAQ ---------- */

.cp-faq {
    border: 1px solid #27272a;
    background: #0a0a0a;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.cp-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cp-faq summary::-webkit-details-marker {
    display: none;
}

.cp-faq summary::after {
    content: '\002B';
    font-size: 1.1rem;
    color: #f59e0b;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.cp-faq[open] summary::after {
    transform: rotate(45deg);
}

.cp-faq p {
    margin-top: 0.75rem;
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ---------- Waitlist card ---------- */

.cp-waitlist-card {
    position: relative;
    border: 1px solid #27272a;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(245, 158, 11, 0.03));
    border-radius: 1.75rem;
    padding: 2.75rem 2rem;
    text-align: center;
}

.cp-waitlist-tab {
    position: static;
    margin: 0 auto 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.05rem;
}

/* ---------- Cross-links ---------- */

.cp-crosslink {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid #27272a;
    background: #0a0a0a;
    border-radius: 1rem;
    padding: 1.35rem;
}

.cp-crosslink i {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cp-crosslink span {
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.cp-crosslink p {
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.45;
}

/* ---------- Toast ---------- */

.cp-toast {
    animation: cp-toast-in 0.25s ease, cp-toast-out 0.25s ease 2.3s;
    max-width: 22rem;
}

@keyframes cp-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cp-toast-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-badge-dot,
    .cp-live-dot {
        animation: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .cp-week-strip {
        grid-template-columns: repeat(7, minmax(2.2rem, 1fr));
        gap: 0.3rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .cp-day {
        padding: 0.4rem 0.15rem;
    }

    .cp-day-tag {
        font-size: 0.5rem;
        padding: 0.12rem 0.3rem;
    }
}
