/* PromptVault Website Styles */

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --success: #10B981;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--brand-font);
    color: var(--brand-text);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--brand-dark);
}

h3 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 2rem;
    text-align: center;
}

h4 {
    font-size: 1.25rem;
    color: var(--brand-dark);
}

p {
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Buttons inside content cards keep their own text colour; brand.css's
   `.content-section a` link colour would otherwise override it (e.g. the
   download button would render in low-contrast brand blue on purple). */
.content-section a.btn-primary {
    color: #fff;
}

.content-section a.btn-secondary {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--accent);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--accent-dark);
}

/* Navigation */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--brand-text);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-nav):hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--brand-light) 0%, #EDE9FE 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.mock-window {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.mock-header {
    background: var(--brand-light-alt);
    padding: 12px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-border);
}

.mock-content {
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
}

.mock-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.placeholder {
    color: var(--brand-text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* Problem Section */
.problem {
    padding: 60px 20px;
    background: white;
    border-top: 1px solid var(--brand-border);
}

.problem .container {
    max-width: 800px;
}

.problem h3 {
    color: var(--primary);
}

.problem p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--brand-text-muted);
}

/* Features Preview Section */
.features-preview {
    padding: 80px 20px;
    background: var(--brand-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--brand-text-muted);
    margin-bottom: 0;
}

.feature-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Comparison Section */
.comparison {
    padding: 80px 20px;
    background: white;
    border-top: 1px solid var(--brand-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table thead {
    background: var(--brand-light-alt);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand-border);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-text-muted);
}

.comparison-table .yes {
    color: var(--success);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--brand-light);
}

/* Waitlist CTA Section */
.waitlist-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.waitlist-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.waitlist-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* The Brevo form renders on its own white container. When it sits inside a
   `.waitlist-cta` band, the rule above would turn its text white-on-white, so
   keep the form's paragraphs on the colour their own blocks define. */
#sib-container p {
    color: inherit;
}

/* CTA-band buttons sit on the purple gradient, so the default purple-on-purple
   `.btn` styles are unreadable. Solid white = primary action, white outline =
   secondary. Works for any `.waitlist-cta` band (download, packs, etc.). */
.waitlist-cta .btn-primary {
    background-color: #fff;
    color: var(--primary);
}

.waitlist-cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.waitlist-cta .btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.waitlist-cta .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary);
}

.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 2rem auto;
    justify-content: center;
}

.waitlist-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.waitlist-form input::placeholder {
    color: var(--brand-text-muted);
}

.waitlist-form .btn {
    white-space: nowrap;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: var(--brand-dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input {
        min-width: auto;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Page Styles */
.page-header {
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, var(--brand-light) 0%, #EDE9FE 100%);
    border-bottom: 1px solid var(--brand-border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
}

.page-content {
    padding: 60px 20px;
    min-height: 400px;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.content-section h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Feature Page Styles */
.feature-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 4rem;
    padding: 40px;
    background: var(--brand-light);
    border-radius: 12px;
}

.feature-detailed:nth-child(even) {
    direction: rtl;
}

.feature-detailed > * {
    direction: ltr;
}

.feature-detailed h3 {
    text-align: left;
    margin-top: 0;
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.pricing-card {
    border: 2px solid var(--brand-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.pricing-card .period {
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-text-muted);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 600;
    margin-right: 10px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--brand-light);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group .btn {
    width: 100%;
}

/* Lightbox for images */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.feature-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px auto;
    display: block;
}

.feature-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.image-caption {
    text-align: center;
    color: var(--brand-text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   Prompt Packs page
   ============================================================ */

/* Prompt of the Day */
.prompt-of-day {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18);
    border: 1px solid var(--brand-border);
}

.potd-main {
    background: linear-gradient(135deg, #1F2937 0%, #312E81 100%);
    color: white;
    padding: 40px;
}

.potd-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.potd-title {
    color: white;
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.potd-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.potd-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.potd-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.potd-aside {
    background: var(--brand-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.potd-aside p {
    color: var(--brand-text);
    font-size: 1.05rem;
    margin: 0;
}

/* Value bridge */
.value-bridge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--brand-light);
    border-radius: 16px;
}

.value-bridge-text h2 {
    margin-bottom: 1rem;
}

.value-bridge-text code,
.value-bridge code,
.how-step code {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
}

.value-bridge-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Pack grid */
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pack-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.pack-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}

.pack-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.pack-card h3 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.pack-count {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(124, 58, 237, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.pack-card > p {
    color: var(--brand-text-muted);
    margin-bottom: 1.25rem;
}

.pack-samples {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    border-top: 1px solid var(--brand-border);
}

.pack-samples li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-border);
}

.sample-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.pack-card .pack-download {
    margin-top: auto;
    text-align: center;
}

/* Copy buttons */
.copy-btn {
    cursor: pointer;
    font-family: inherit;
}

.copy-mini {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-mini:hover {
    background: var(--primary);
    color: white;
}

.copy-btn.copied {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
}

/* How it works */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.how-step {
    background: white;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.how-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.how-step h4 {
    margin-bottom: 0.5rem;
}

/* Copy toast */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: var(--brand-dark);
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1100;
    max-width: 90vw;
    text-align: center;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .prompt-of-day,
    .value-bridge {
        grid-template-columns: 1fr;
    }

    .value-bridge-visual {
        order: -1;
    }

    .potd-main,
    .potd-aside,
    .value-bridge {
        padding: 28px;
    }
}

/* Pack style pages — full prompt listings */
.prompt-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.prompt-item {
    background: white;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    padding: 24px;
}

.prompt-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.prompt-item .prompt-text {
    color: var(--brand-text-muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.pack-view-all {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
