/* ==========================================================================
   PMM Zero — Custom design system
   New lime-green design language for pmmzero.com
   ========================================================================== */

/* Design tokens */
:root {
    --pmmz-green: #B1FF16;
    --pmmz-black: #1a1a1a;
    --pmmz-blue: #b8d4e3;
    --rainbow-conic: conic-gradient(from 90deg at 50% 50%, #FF383C 0deg, #FF8D28 36deg, #FFCC00 72deg, #34C759 108deg, #00C8B3 144deg, #00C3D0 180deg, #00C0E8 216deg, #0088FF 252deg, #6155F5 288deg, #CB30E0 324deg, #AC7F5E 360deg);
}

/* Reset html font-size to Tailwind's 16px default.
   styles.css sets 18px which inflates all rem-based Tailwind utilities. */
html {
    font-size: 16px !important;
    scroll-padding-top: 5rem;
}

/* Body defaults for new design */
body {
    font-family: 'Plus Jakarta Sans', '-apple-system', 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #1a1a1a;
}

/* Reset h6 — styles.css applies old brand gradient text + shadow + border to all h6.
   Only the clip-text/shadow/border need forcing; padding/margin/etc. are handled by Tailwind classes. */
h6 {
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    box-shadow: none;
    border: none;
    letter-spacing: inherit;
}

/* Reset heading spans — styles.css applies old cyan gradient clip-text to all h1/h2/h3/h4 spans */
h1 span, h2 span, h3 span, h4 span {
    background: none;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: inherit;
}




/* Override old styles.css nav rules */
nav#main-nav {
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    position: sticky !important;
}

/* Nav scroll-shrink — compositor-friendly animation
   Logo uses transform:scale (GPU); padding snaps instantly (no reflow). */
@media (min-width: 1025px) {
    nav#main-nav {
        transition: padding 0s;
    }
    nav#main-nav #nav-logo {
        transform-origin: left center;
        transition: transform 300ms ease;
        will-change: transform;
    }
    nav#main-nav #nav-contact-top {
        transition: padding 0s;
    }

    nav#main-nav[data-scrolled] {
        padding-top: 0.75rem;    /* py-3 */
        padding-bottom: 0.75rem;
    }
    nav#main-nav[data-scrolled] #nav-logo {
        transform: scale(0.867);
    }
    nav#main-nav[data-scrolled] #nav-contact-top {
        padding: 0.25rem 1rem;   /* py-1 px-4 */
    }
}

/* Global link overrides for new design */
a, a:active {
    color: rgb(2, 132, 199);
    transition: all 0.2s ease-in-out;
}
a:hover {
    opacity: 0.7;
}
nav a, nav a:active, nav a:visited,
nav a:hover {
    color: inherit;
    text-decoration: none !important;
}
a[class*="btn"], a[class*="btn"]:active, a[class*="btn"]:visited {
    text-decoration: none !important;
}
a[class*="btn"]:hover {
    opacity: 1;
    text-decoration: none !important;
}

/* Logo gradient text */
.logo-gradient {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Thick gradient underline for headlines */
.highlight-underline {
    position: relative;
    display: inline;
    background: linear-gradient(90deg, #B1FF16, #E7FFB9) !important;
    background-position: 0 88% !important;
    background-size: 100% 12px !important;
    background-repeat: no-repeat !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: inherit !important;
}
.highlight-underline.tint {
    background: linear-gradient(90deg, #B1FF16CC, #B1FF16CC) !important;
    background-position: 0 88% !important;
    background-size: 100% 12px !important;
    background-repeat: no-repeat !important;
}

.handwritten-note {
    transform: rotate(-1.5deg);
}

/* Buttons */
.btn-primary {
    position: relative;
    background: #000;
    border-radius: 9999px;
    color: #fff !important;
    display: inline-block;
    transition: all 0.2s ease;
    z-index: 1;
}
.btn-primary-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--rainbow-conic);
    opacity: 0.5;
    filter: blur(5px);
    border-radius: 9999px;
    z-index: -1;
}
.btn-primary:hover {
    background: #1a1a1a;
}
.btn-secondary {
    background: #fff;
    border-radius: 9999px;
    color: #000;
    display: inline-block;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background: #f5f5f5;
}
.btn-simple {
    background: #000;
    border-radius: 9999px;
    color: #fff;
    display: inline-block;
    transition: all 0.2s ease;
}
.btn-simple:hover {
    background: #1a1a1a;
}

/* Gradient highlight for handwritten spans */
.highlight-green {
    background: linear-gradient(90deg, #B1FF16, #E7FFB9);
    display: inline-block;
}

/* Badge pill */
.badge-pill::before {
    content: '';
    position: absolute;
    left: -1%;
    top: 0;
    width: 102%;
    height: 100%;
    background: var(--rainbow-conic);
    opacity: 0.5;
    filter: blur(5px);
    border-radius: 9999px;
    transform: rotate(-0.5deg);
    z-index: -1;
}

/* Profile image with rainbow blur */
.profile-image-wrapper {
    position: relative;
    display: inline-block;
}
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--rainbow-conic);
    opacity: 0.5;
    filter: blur(5px);
    border-radius: 9999px;
    z-index: 0;
}
.profile-image-wrapper img {
    position: relative;
    z-index: 1;
}

/* Substack card with rainbow blur */
.substack-card-wrapper {
    position: relative;
    display: block;
}
.substack-card-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--rainbow-conic);
    opacity: 0.5;
    filter: blur(40px);
    border-radius: 40px;
    z-index: 0;
}
.substack-card {
    position: relative;
    z-index: 1;
    background: #000;
    border-radius: 40px;
}

/* Book card with rainbow blur */
.book-card-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--rainbow-conic);
    opacity: 0.5;
    filter: blur(40px);
    border-radius: 50px;
    z-index: 0;
}
.book-card {
    position: relative;
    z-index: 1;
    background: #000;
    border-radius: 50px;
}
.book-card-light {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 50px;
}

/* Process cards */
.process-card {
    background: #fff;
    box-shadow: 0px 6px 60px rgba(0, 0, 0, 0.03), 0px 6px 60px rgba(177, 255, 22, 0.2);
}
.process-card ul:hover li:not(:hover) {
    opacity: 0.5;
}
.process-card ul li {
    transition: opacity 0.3s ease-in-out;
}

/* Benefit cards */
.benefit-card {
    background: #fff;
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.06);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding-top: 80px !important;
}
.benefit-header {
    background: #B1FF16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px 50px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* FAQ Accordion */
.faq-question {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.faq-question:hover {
    opacity: 0.7;
}
.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-answer {
    overflow: hidden;
}

/* Testimonial section */
.testimonial-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%, #B1FF16 0%, rgba(177, 255, 22, 0) 100%);
    opacity: 0.2;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .testimonial-glow {
        left: 0;
        top: -170px;
        transform: none;
    }
}

.quote-mark {
    display: none;
}
@media (min-width: 1024px) {
    .quote-mark {
        display: block;
    }
}

.testimonial-text {
    background: linear-gradient(90deg, #B1FF16 0%, #E7FFB9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.testimonial-text strong {
    font-weight: 700;
}

/* TOC styles for book section */
ol.toc-list {
    padding: 0;
}
ol.toc-list li {
    list-style-type: none;
    padding-left: 2rem;
}
li.toc-part-title {
    margin-top: 30px;
}
li.toc-part-title b {
    text-transform: uppercase;
    font-weight: 700 !important;
    color: #999;
}
li.toc-part-title {
    font-weight: bold;
    text-transform: uppercase;
}
li.toc-part-title li {
    font-weight: normal;
}
li.toc-part-title ol {
    text-transform: none;
    font-weight: inherit;
}
ol.toc-list li {
    position: relative;
}
ol.toc-list li strong {
    display: inline-block;
    float: left;
    margin-left: -35px;
    text-align: right;
    width: 30px;
}

/* Clarity section */
.clarity-headline {
    background: linear-gradient(90deg, #B1FF16 0%, #E7FFB9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.clarity-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-rows: auto 1fr;
}
.clarity-card-header {
    background: #B1FF16;
    padding: 16px 24px;
    text-align: center;
}
.clarity-card-body {
    background: #fff;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Article / Blog post reading styles
   ========================================================================== */

.prose-pmmz {
    font-size: 20px;
    line-height: 1.75;
    color: #1a1a1a;
}
.prose-pmmz h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.prose-pmmz h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #B1FF16;
}
.prose-pmmz h3, .prose-pmmz h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid #B1FF16;
}
.prose-pmmz p {
    margin-bottom: 1.5rem;
}
.prose-pmmz ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose-pmmz ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose-pmmz li {
    margin-bottom: 0.5rem;
}
.prose-pmmz li > ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.prose-pmmz blockquote {
    border-left: 4px solid #B1FF16;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #444;
}
.prose-pmmz a {
    color: rgb(2, 132, 199);
    text-decoration: underline;
}
.prose-pmmz img {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 100%;
    margin: 2rem auto;
    display: block;
}
.prose-pmmz strong {
    font-weight: 700;
}

/* Chapter card for superpositioning */
.chapter-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.chapter-card:hover {
    box-shadow: 0 8px 48px rgba(177, 255, 22, 0.2), 0 4px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.chapter-card-header {
    background: #B1FF16;
    padding: 12px 24px;
}

/* Article card for blog list */
.article-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    border-left: 6px solid #B1FF16;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}
.article-card:hover {
    box-shadow: 0 8px 48px rgba(177, 255, 22, 0.2), 0 4px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Prompt block — Chroma highlight wrapper reset */
.prompt-block .highlight { margin: 0; background: #272822; }
.prompt-block .highlight pre { margin: 0; padding: 1.5rem; font-size: 0.82rem; line-height: 1.65; background: #272822; }
