/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #FAF8F5;
    --lilac: #9370DB;
    --lilac-hover: #7B5FC7;
    --light-purple: #f4e4ff;
    --lime-green: #7FFF00;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #555;
    --light-gray: #f5f5f5;
    --yellow-sticky: #FFF740;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

/* Hero Wrapper - Full background spanning header + hero */
.hero-wrapper {
    background-image: linear-gradient(to bottom, #bc9bfe, #d8c7fa);
    min-height: 100vh;
}

/* Header - Top Left */
.header {
    padding: 30px 60px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.services {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 60px;
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Card Overlay */
.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 60px;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-left {
    padding-top: 20px;
    max-width: 520px;
}

.headline {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--dark);
    text-wrap: balance;
}

.headline em {
    font-style: italic;
}

/* Green Brush Stroke Highlight */
.highlight {
    background: linear-gradient(to right,
            transparent 0%,
            var(--lime-green) 3%,
            var(--lime-green) 97%,
            transparent 100%);
    background-position: 0 85%;
    background-size: 100% 35%;
    background-repeat: no-repeat;
    padding: 0 2px;
}

.subtext {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 20px;
}

.subtext.no-gap {
    margin-bottom: 0;
}

/* Hero Handwritten Number List */
.hero-list {
    list-style: none;
    margin-bottom: 24px;
    counter-reset: handwritten-counter;
}

.hero-list li {
    font-size: 1.15rem;
    color: var(--dark);
    padding: 6px 0 6px 40px;
    position: relative;
    counter-increment: handwritten-counter;
}

.hero-list li::before {
    content: counter(handwritten-counter) ".";
    position: absolute;
    left: 0;
    color: var(--lilac);
    font-family: 'Indie Flower', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    top: 50%;
    transform: translateY(-50%) rotate(-2deg);
}

.cta-text {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 700;
}

/* Signup Card */
.hero-right {
    position: sticky;
    top: 40px;
}

.signup-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.signup-photo {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    object-fit: cover;
}

/* Mobile-only hero photo — hidden on desktop, shown above headline on mobile */
.hero-mobile-photo {
    display: none;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--dark);
    line-height: 1.4;
    text-align: center;
}

/* Signup Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-form input {
    padding: 16px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    background: var(--white);
    transition: border-color 0.2s ease;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--lilac);
}

.signup-form input::placeholder {
    color: #999;
}

.signup-form button {
    padding: 16px 24px;
    background-color: var(--lilac);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.signup-form button:hover {
    background-color: var(--lilac-hover);
}

.no-spam {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    text-align: center;
}

/* Trusted Logos */
.trusted-logos {
    margin-top: 40px;
    text-align: center;
}

.trusted-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500;
}

.all-logos {
    max-width: 100%;
    width: 500px;
    height: auto;
    opacity: 0.4;
    filter: grayscale(100%);
}

/* Keep Reading + Doodle Arrow */
.keep-reading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 30px;
    text-decoration: none;
    font-family: 'Indie Flower', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    animation: gentleBounce 2.5s infinite;
}

.keep-reading:hover {
    color: var(--lilac);
}

.doodle-arrow {
    color: currentColor;
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Story Section */
.story {
    background-color: #F5F0E8;
    background-image:
        linear-gradient(#E8E0D4 1px, transparent 1px),
        linear-gradient(90deg, #E8E0D4 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 50px 60px;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story>.story-content>h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
}

/* Two Column Layout */
.story-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch;
}

.story-col {
    background: var(--cream);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.story-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.story-list,
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
}

.story-list li,
.bullet-list li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.story-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lilac);
    font-weight: 700;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--lilac);
    font-weight: 700;
}

/* Coffee doodle icon */
.doodle-coffee {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--lilac);
}

.story-emphasis {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0;
}

.story-aside {
    font-style: italic;
    color: var(--lilac);
    font-size: 0.95rem;
}


.story p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 14px;
    line-height: 1.7;
}

.story p:last-child {
    margin-bottom: 0;
}

.story strong {
    color: var(--dark);
}

.story-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    font-style: italic;
    margin-top: 18px;
    margin-bottom: 14px;
}

.story-takeaway {
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 6px;
}

/* Story CTA Form */
.story-cta-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-cta-card {
    background: var(--cream);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 750px;
    width: 100%;
}

.story-cta-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 14px;
}

.story-cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.story-cta-form input {
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    min-width: 0;
    background: var(--white);
    transition: border-color 0.2s ease;
}

.story-cta-form input:focus {
    outline: none;
    border-color: var(--lilac);
}

.story-cta-form input::placeholder {
    color: #999;
}

.story-cta-form button {
    padding: 14px 24px;
    background-color: var(--lilac);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.story-cta-form button:hover {
    background-color: var(--lilac-hover);
}

/* Privacy Page */
.header-simple {
    background: var(--cream);
}

.privacy-page {
    background: var(--cream);
    min-height: calc(100vh - 200px);
    padding: 40px 60px;
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--lilac);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.privacy-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.privacy-content .last-updated {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.privacy-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.privacy-content p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.privacy-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.privacy-content li {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-content a {
    color: var(--lilac);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Letter Format */
.letter-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 8px 40px;
}

.letter-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.1;
}

.story .letter-container .letter-subheading {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.letter-body {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 60px 70px;
    max-width: 750px;
    margin: 0 auto 16px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    position: relative;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.03);
}

/* Stacked paper effect */
.letter-body::before,
.letter-body::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 100%;
    border-radius: 12px;
    z-index: -1;
}

.letter-body::before {
    bottom: -6px;
    background: #F8F6F2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.letter-body::after {
    bottom: -12px;
    background: #F2EFE9;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.letter-body p {
    margin-bottom: 20px;
}

.letter-body p.tight-lines {
    line-height: 1.4;
    margin-bottom: 20px;
}

.letter-greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
}

.letter-body strong {
    color: var(--dark);
    font-weight: 600;
}

.letter-body em {
    font-style: italic;
}

.letter-signature-block {
    margin-top: 50px;
}

.signature-image {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.signature-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signature-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.signature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signature-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    margin-bottom: 0 !important;
}

.signature-title {
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}

/* Collapsible Section */
.collapsible-section {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 40px 70px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 750px;
    margin: 0 auto;
}

.collapsible-header {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.collapsible-header::-webkit-details-marker {
    display: none;
}

.collapsible-header::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
    margin-left: 12px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.collapsible-section[open] .collapsible-header::after {
    transform: rotate(-135deg);
}

.collapsible-section[open] .collapsible-header {
    margin-bottom: 20px;
}

.collapsible-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
}

.collapsible-content p {
    margin-bottom: 14px;
}

.collapsible-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.collapsible-content ul li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.collapsible-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lilac);
    font-weight: 600;
}

.collapsible-content strong {
    color: var(--dark);
}

/* Thank You Page */
.thankyou-wrapper {
    background-image: linear-gradient(to bottom, #bc9bfe, #d8c7fa);
    min-height: 100vh;
}

.thankyou-page {
    min-height: calc(100vh - 100px);
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.thankyou-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 60px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.thankyou-card h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.thankyou-handwritten {
    font-family: 'Indie Flower', cursive;
    font-size: 6em;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
}

.thankyou-signoff {
    color: var(--lilac);
    font-style: italic;
    font-weight: 500;
    margin-top: 8px;
}

.thankyou-card p {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Share section on thank-you page */
.thankyou-share {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.thankyou-share-text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 14px;
}

.thankyou-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn-linkedin {
    background-color: var(--lilac);
    color: #ffffff;
    border: none;
}

.share-btn-copy {
    background-color: #ffffff;
    color: var(--dark);
    border: 2px solid rgba(0, 0, 0, 0.12);
}

.thankyou-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.thankyou-links .back-link {
    margin-bottom: 0;
}

.thankyou-divider {
    color: var(--gray);
}

/* Confetti Animation */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confetti span {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3.5s ease-in forwards;
}

.confetti span:nth-child(odd) {
    background: var(--lilac);
    border-radius: 2px;
}

.confetti span:nth-child(even) {
    background: var(--lime-green);
    border-radius: 50%;
}

.confetti span:nth-child(3n) {
    background: var(--light-purple);
    width: 8px;
    height: 8px;
}

.confetti span:nth-child(5n) {
    background: #FFD700;
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        top: -20px;
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(15px) rotate(90deg);
    }

    50% {
        transform: translateX(-10px) rotate(180deg);
    }

    75% {
        transform: translateX(20px) rotate(270deg);
    }

    100% {
        opacity: 0;
        top: 100%;
        transform: translateX(-5px) rotate(360deg);
    }
}

/* Footer */
.footer {
    padding: 40px 60px;
    text-align: center;
    background: var(--cream);
}

.footer p {
    font-size: 0.85rem;
    color: var(--gray);
}

.footer a {
    color: var(--gray);
    text-decoration: none;
}

.footer a:hover {
    color: var(--lilac);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .header {
        padding: 24px 30px;
    }

    .hero {
        padding: 30px;
        min-height: auto;
    }

    .hero-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }

    .hero-left {
        padding-top: 0;
        text-align: left;
        max-width: 100%;
    }

    .headline {
        font-size: 1.9rem;
    }

    .hero-right {
        position: relative;
        top: 0;
    }

    .signup-card {
        padding: 32px 24px;
    }

    /* Show mobile photo above headline, hide it inside signup card */
    .hero-mobile-photo {
        display: block;
        width: 100%;
        border-radius: 16px;
        object-fit: cover;
        max-height: 260px;
        margin-bottom: 8px;
    }

    .signup-photo {
        display: none;
    }

    .all-logos {
        width: 400px;
    }

    .story {
        padding: 40px 30px;
    }

    .story-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .story h2 {
        font-size: 2.5rem;
    }

    .letter-container {
        padding: 50px 0;
    }

    .letter-heading {
        font-size: 2.8rem;
    }

    .story .letter-container .letter-subheading {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .letter-body {
        font-size: 1rem;
        padding: 40px 30px;
    }

    .collapsible-section {
        padding: 30px 30px;
    }

    .story-cta-card {
        padding: 24px 30px;
    }

    .story-cta-form {
        flex-direction: column;
    }

    .story-cta-form input,
    .story-cta-form button {
        width: 100%;
    }

    .signature-image {
        max-width: 140px;
    }

    .signature-photo {
        width: 60px;
        height: 60px;
    }

    .footer {
        padding: 30px;
    }

    .thankyou-page {
        padding: 30px;
    }

    .thankyou-card {
        padding: 40px 30px;
    }

    .thankyou-handwritten {
        font-size: 7em;
    }
}

@media (max-width: 480px) {
    .header {
        text-align: center;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .headline {
        font-size: 1.6rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .letter-heading {
        font-size: 2.4rem;
    }

    .all-logos {
        width: 300px;
    }

    .thankyou-page {
        padding: 20px;
    }

    .thankyou-card {
        padding: 32px 24px;
    }

    .thankyou-handwritten {
        font-size: 4.5em;
    }
}