/* ===================================
   SOCIALSCRIPTS - Global Styles
   (design system inherited from SocialBloom)
   =================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #F77227;
    --secondary-color: #000091;
    --text-dark: #343434;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --star-stroke: #F77227;
    --font-primary: 'Poppins', Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-primary);
}

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

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e56620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 114, 39, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Wordmark logo */
.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--text-dark);
}

.wordmark span {
    color: var(--primary-color);
}

.wordmark .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    align-self: flex-end;
    margin-bottom: 3px;
}

footer .wordmark {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 20px;
}

/* Navigation */
nav {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .links {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav .links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

nav .links a:hover {
    color: var(--primary-color);
}

nav .nav-cta {
    padding: 10px 24px;
    font-size: 15px;
}

nav .menu {
    display: none;
    background: transparent;
    padding: 8px;
}

nav .menu-icon {
    width: 33px;
    height: 21px;
}

/* Mobile Menu */
@media (max-width: 992px) {
    nav .links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 20px;
        align-items: flex-start;
    }

    nav .links.active {
        right: 0;
    }

    nav .menu {
        display: block;
    }

    nav .d-none.d-lg-block {
        display: none !important;
    }
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 1440 900" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><defs><pattern id="dotPattern" x="0" y="0" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="1.5" cy="1.5" r="1.5" fill="%23D1D5DB"/></pattern><radialGradient id="fadeMask" cx="50%25" cy="45%25" r="50%25"><stop offset="0%25" stop-color="white" stop-opacity="1"/><stop offset="55%25" stop-color="white" stop-opacity="0.6"/><stop offset="80%25" stop-color="white" stop-opacity="0.2"/><stop offset="100%25" stop-color="white" stop-opacity="0"/></radialGradient><mask id="dotFade"><rect x="0" y="0" width="100%25" height="100%25" fill="url(%23fadeMask)"/></mask></defs><rect x="0" y="0" width="100%25" height="100%25" fill="url(%23dotPattern)" mask="url(%23dotFade)"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.left-section {
    flex: 1;
}

.social-proof-pill {
    margin-bottom: 24px;
    text-align: center;
}

.social-proof-pill .pill-outer {
    display: inline-grid;
    border-radius: 50px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 25%, #FF4500 50%, #8B0000 75%, #000080 100%);
    padding: 2px;
}

.social-proof-pill .pill-inner {
    border-radius: 50px;
    background: var(--white);
    padding: 2px;
}

.social-proof-pill .pill-content {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 50px;
    background: var(--white);
    padding: 4px 10px 4px 6px;
}

.social-proof-pill .avatars {
    display: flex;
    align-items: center;
}

.social-proof-pill .avatars img {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--white);
    object-fit: cover;
    display: block;
    margin-right: -6px;
}

.social-proof-pill .avatars img:last-of-type {
    margin-right: 0;
}

.social-proof-pill .trust-icon {
    margin-left: 6px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-proof-pill p {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    margin: 0;
    color: var(--text-dark);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

/* Signup Form */
.signup-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 12px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 16px 22px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 16px;
    background: var(--white);
    transition: var(--transition);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 114, 39, 0.1);
}

.signup-form input[type="email"].is-invalid {
    border-color: #dc3545;
}

.signup-form button {
    white-space: nowrap;
}

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0;
    min-height: 20px;
}

.form-hint.error {
    color: #dc3545;
    font-weight: 500;
}

/* Success state replacing the form */
.signup-success {
    display: none;
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 28px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(247, 114, 39, 0.15);
}

.signup-success.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.signup-success .check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(247, 114, 39, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.signup-success h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.signup-success p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

.signup-success .signup-email {
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keywords */
.keywords {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.keyword {
    display: flex;
    align-items: center;
    gap: 12px;
}

.keyword-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.keyword span {
    font-size: 16px;
    font-weight: 500;
}

/* Right Section - Bento Grid */
.right-section {
    flex: 1;
    display: flex;
    gap: 20px;
}

.bento-col-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.bento-row-1,
.bento-row-2 {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.bento-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bento-metric {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.arrow {
    color: var(--primary-color);
    font-size: 24px;
}

.bento-col-2 {
    position: relative;
    flex: 1;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Media Bandeau */
.media-band {
    padding: 40px 0;
    background: var(--bg-light);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.media-band .logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.media-band img {
    width: auto;
    object-fit: contain;
}

/* Section shared */
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title span {
    color: var(--primary-color);
}

.section-lead {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 50px;
}

/* How it works */
.steps-section {
    padding: 80px 0;
    background: var(--white);
}

.steps {
    display: flex;
    gap: 30px;
}

.step {
    flex: 1;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 32px 28px;
    transition: var(--transition);
}

.step:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* Products */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
}

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

.product-card.featured {
    border: 2px solid var(--primary-color);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 50px;
}

.product-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(247, 114, 39, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.product-icon svg {
    width: 26px;
    height: 26px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card > p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.product-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.product-price .amount {
    font-size: 30px;
    font-weight: 700;
}

.product-price .unit {
    font-size: 14px;
    color: var(--text-light);
}

.product-card .btn {
    width: 100%;
}

.products-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 40px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.collapse-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .collapse-icon {
    transform: rotate(45deg);
}

.question-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
    font-size: 15px;
    color: var(--text-light);
}

.faq-item.active .question-content {
    max-height: 500px;
    margin-top: 15px;
}

/* Final CTA */
.cta-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

/* Legal Modal */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 20px;
    overflow-y: auto;
}

.legal-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.legal-modal .modal-panel {
    background: var(--white);
    border-radius: 20px;
    max-width: 780px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.25s ease;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
}

.legal-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 34px 18px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.legal-modal .modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.legal-modal .modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.legal-modal .modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

.legal-modal .modal-body {
    padding: 26px 34px 34px;
    overflow-y: auto;
}

.legal-doc {
    display: none;
}

.legal-doc.active {
    display: block;
}

.legal-doc .updated {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
}

.legal-doc h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 26px;
    margin-bottom: 10px;
}

.legal-doc h3:first-of-type {
    margin-top: 0;
}

.legal-doc p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 12px;
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 14px 22px;
}

.legal-doc li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 6px;
}

.legal-doc strong {
    color: var(--text-dark);
}

.legal-doc a {
    color: var(--primary-color);
    font-weight: 500;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .legal-modal {
        padding: 16px 12px;
    }

    .legal-modal .modal-header {
        padding: 20px 22px 14px;
    }

    .legal-modal .modal-header h2 {
        font-size: 21px;
    }

    .legal-modal .modal-body {
        padding: 20px 22px 26px;
    }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-main {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col1 {
    flex: 2;
}

.footer-col1 p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-col2 {
    flex: 3;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col2 .col {
    flex: 1;
    min-width: 150px;
}

.footer-col2 .col > p {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-col2 .col span {
    display: block;
    margin-bottom: 8px;
}

.footer-col2 .link {
    color: #ccc;
    transition: var(--transition);
}

.footer-col2 .link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
    }

    .hero-title {
        font-size: 36px;
    }

    .right-section {
        width: 100%;
        max-width: 500px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
    }

    .footer-main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .media-band .logos {
        gap: 28px;
    }
}
