/* Family AI Landing Page - Additional Styles */

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background: var(--color-background);
    text-align: center;
}

.problem-section .section-title {
    margin-bottom: 50px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.problem-card {
    background: transparent;
    border-left: 3px solid var(--color-orange);
    border-radius: 0;
    padding: 16px 24px;
}

.problem-quote {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-dark);
    font-style: normal;
    line-height: 1.5;
}

.problem-statement {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How It Works - Family */
.how-it-works-family {
    padding: 100px 0;
    background: #EFEAE0;
    text-align: center;
}

.how-it-works-family .section-title {
    margin-bottom: 12px;
}

.how-it-works-family .section-description {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-icon-inline {
    margin-bottom: 12px;
}

.step-product-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.step-card {
    background: var(--color-background);
    border-radius: 20px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-orange);
    color: #FFFFFF;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.step-description {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Group Chat Examples */
.examples-section {
    padding: 100px 0;
    background: var(--color-background);
    text-align: center;
}

.examples-section .section-title {
    margin-bottom: 12px;
}

.examples-section .section-description {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.examples-section .examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.examples-section .examples-grid-images {
    text-align: center;
    align-items: center;
}

.examples-section .examples-grid-images img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.examples-section .example-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}

.examples-section .example-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Group Chat Bubbles */
.group-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-chat .chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.group-chat .chat-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.group-chat .chat-bubble.mom {
    background: #007AFF;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    margin-left: 30px;
}

.group-chat .chat-bubble.mom .chat-name {
    color: rgba(255, 255, 255, 0.7);
}

.group-chat .chat-bubble.dad {
    background: #34C759;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    margin-left: 30px;
}

.group-chat .chat-bubble.dad .chat-name {
    color: rgba(255, 255, 255, 0.7);
}

.group-chat .chat-bubble.ollie {
    background: #E9E9EB;
    color: var(--color-text-dark);
    border-bottom-left-radius: 4px;
    margin-right: 30px;
}

.group-chat .chat-bubble.ollie .chat-name {
    color: var(--color-orange);
}

/* Rich Link Preview */
.rich-link-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-orange);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 10px;
    text-decoration: none;
}

.rich-link-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.rich-link-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rich-link-text strong {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.rich-link-domain {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Proactive Section */
.proactive-section {
    padding: 100px 0;
    background: #EFEAE0;
}

.proactive-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.proactive-content {
    flex: 1;
}

.proactive-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.15;
    margin-bottom: 24px;
}

.proactive-description {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.proactive-description:last-child {
    margin-bottom: 0;
}

.proactive-image {
    flex: 0 0 420px;
    max-width: 420px;
}

.proactive-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Difference Section */
.difference-section {
    padding: 100px 0;
    background: #EFEAE0;
}

.difference-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.difference-card {
    background: var(--color-background);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.04);
}

.difference-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.difference-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.difference-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Form optional label */
.form-optional {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 14px;
}

/* Tasks Image Grid */
.tasks-grid-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.tasks-grid-images img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--color-background);
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 40px;
    line-height: 1.15;
}

.btn-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    background: linear-gradient(180deg, #3a3a3a 0%, #1E1E26 100%);
    border: none;
    border-radius: 10px;
    padding: 20px 40px;
    cursor: pointer;
    box-shadow: 0 10px 17px -1px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -1px rgba(0, 0, 0, 0.35);
}

.cta-disclaimer {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-light);
    margin-top: 20px;
}

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

.faq-layout {
    display: flex;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    flex: 0 0 260px;
}

.faq-list {
    flex: 1;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-dark);
    list-style: none;
}

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

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-text-dark);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 24px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

.faq-answer a {
    color: var(--color-orange);
    text-decoration: underline;
}

/* Onboarding Modal */
.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.onboarding-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.onboarding-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.onboarding-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.onboarding-modal-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.onboarding-modal-description {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Typeform-style Steps */
.tf-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.tf-progress-bar {
    height: 100%;
    background: var(--color-orange);
    border-radius: 2px;
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-steps {
    position: relative;
    min-height: 260px;
}

.tf-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tf-step.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tf-step.exit {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.tf-heading {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tf-subtext {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.tf-input {
    width: 100%;
    font-size: 18px;
    padding: 16px 18px;
    margin-bottom: 24px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.tf-input:focus {
    outline: none;
    border-color: var(--color-orange);
}

.tf-input-error {
    border-color: #e53e3e;
    animation: tf-shake 0.4s ease;
}

@keyframes tf-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.tf-step .btn {
    width: 100%;
}

.tf-skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 14px 0;
    transition: color 0.2s ease;
}

.tf-skip:hover {
    color: var(--color-text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .examples-section .examples-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tasks-grid-images {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-layout {
        flex-direction: column;
        gap: 40px;
        padding: 40px;
    }

    .faq-title {
        flex: none;
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .problem-section {
        padding: 60px 0;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .problem-card {
        padding: 22px 24px;
    }
    
    .problem-quote {
        font-size: 16px;
    }
    
    .problem-statement {
        font-size: 18px;
    }
    
    .how-it-works-family {
        padding: 60px 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
    }
    
    .step-card {
        padding: 28px 24px;
    }
    
    .examples-section {
        padding: 60px 0;
    }
    
    .examples-section .examples-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        gap: 48px;
    }
    
    .examples-section .example-card {
        padding: 24px;
    }
    
    .group-chat .chat-bubble {
        font-size: 13px;
    }
    
    .group-chat .chat-bubble.mom,
    .group-chat .chat-bubble.dad {
        margin-left: 20px;
    }
    
    .group-chat .chat-bubble.ollie {
        margin-right: 20px;
    }
    
    .proactive-section {
        padding: 60px 0;
    }

    .proactive-layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .proactive-title {
        font-size: 30px;
    }

    .proactive-description {
        font-size: 17px;
    }

    .proactive-image {
        flex: none;
        max-width: 320px;
        margin: 0 auto;
    }

    .difference-section {
        padding: 60px 0;
    }
    
    .difference-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .difference-card {
        padding: 26px;
    }

    .cta-section {
        padding: 60px 0;
    }

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

    .faq-section {
        padding: 60px 0;
    }

    .faq-layout {
        padding: 30px;
        gap: 30px;
    }

    .faq-title {
        font-size: 28px;
    }

    .faq-question {
        font-size: 17px;
        padding: 20px 0;
    }
}
