/* Reset and base styles */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --text-dark: #111827;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-light);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

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

.btn-outline:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
}

.placeholder-image {
    width: 100%;
    height: 24rem;
    background: url("./images/choremanji-family.jpg") center/cover no-repeat #E5E7EB;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Download Section */
.download {
    padding: 6rem 0;
    text-align: center;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.store-button {
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
}

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

.copyright {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Privacy / Legal Pages */
.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: var(--white);
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 6rem 2rem 2rem;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.last-updated {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.privacy-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.privacy-section h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.privacy-section h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.privacy-section p,
.privacy-section ul,
.privacy-section ol {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.privacy-section ul,
.privacy-section ol {
    padding-inline-start: 1.5rem;
}

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

.contact-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Data Tables (used in privacy policy, account deletion) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    border: 1px solid #eee;
    padding: 0.75rem;
    text-align: start;
}

.data-table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.data-table td {
    color: var(--text-light);
}

/* Account Deletion Step Containers */
.step-container {
    background: #f8f9fa;
    border-inline-start: 4px solid #0066cc;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.step-container .step-number {
    display: inline-block;
    background: #0066cc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-inline-end: 10px;
    font-size: 0.875rem;
}

/* Alert Boxes (used in account deletion) */
.warning-box {
    background: #fff3cd;
    border-inline-start: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.danger-box {
    background: #f8d7da;
    border-inline-start: 4px solid #dc3545;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box {
    background: #d1ecf1;
    border-inline-start: 4px solid #17a2b8;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Checklist (used in account deletion) */
ul.checklist {
    list-style: none;
    padding-inline-start: 0;
}

ul.checklist li::before {
    content: "\2713  ";
    color: #28a745;
    font-weight: bold;
    margin-inline-end: 8px;
}

/* Beta Hero Section */
.beta-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%);
    text-align: center;
}

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

.beta-mascot {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

/* Beta Form Section */
.beta-form-section {
    padding: 2rem 0 4rem;
}

.beta-form-container {
    max-width: 700px;
    margin: 0 auto;
    min-height: 400px;
}

.beta-features {
    background-color: var(--bg-light);
}

/* Waitlist Notice */
.waitlist-notice {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #FEF3C7;
    border-radius: 0.5rem;
    text-align: center;
    border-inline-start: 4px solid #F59E0B;
}

.waitlist-notice h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.waitlist-notice p {
    color: var(--text-light);
}

/* Trust Signals */
.trust-signals {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.trust-signals-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-signals-content a {
    color: var(--text-light);
    text-decoration: none;
}

.trust-signals-content a:hover {
    color: var(--primary);
}

/* Languages Section */
.languages-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.languages-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.languages-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-flag {
    font-size: 1.5rem;
}

.language-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-switcher-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-family: inherit;
}

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

.switcher-arrow {
    font-size: 0.625rem;
}

.language-switcher-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 100;
    margin-top: 0.25rem;
}

.language-switcher.open .language-switcher-dropdown {
    display: block;
}

.language-option {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.language-option:hover {
    background-color: var(--bg-light);
}

/* Beta Registration Form */
.beta-form {
    max-width: 100%;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.form-fieldset {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-legend {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0 0.5rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-required {
    color: #EF4444;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.input-error,
.form-select.input-error {
    border-color: #EF4444;
}

.form-input.input-error:focus,
.form-select.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    display: none;
    color: #EF4444;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.form-error.visible {
    display: block;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-consent {
    margin: 1.5rem 0;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.form-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-server-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.375rem;
    color: #DC2626;
    font-size: 0.9375rem;
}

/* Child fieldset */
.child-fieldset {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 0.375rem;
    border: 1px solid #E5E7EB;
}

.child-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Beta Success State */
.beta-success {
    text-align: center;
    padding: 2rem;
}

.beta-success h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.beta-success > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.platform-instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.instruction-card {
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-align: start;
}

.instruction-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instruction-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.instruction-ios {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.instruction-android {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.child-credentials {
    text-align: start;
    margin-top: 2rem;
}

.child-credentials h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.credentials-note {
    color: #B45309;
    font-weight: 500;
    background: #FFFBEB;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.credential-card {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.credential-card strong {
    color: var(--text-dark);
}

.credential-card code {
    font-family: monospace;
    background: #E5E7EB;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Waitlist Section */
.waitlist-section {
    margin-top: 1.5rem;
}

.waitlist-form {
    margin-top: 1rem;
}

.waitlist-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-group-grow {
    flex: 1;
}

.waitlist-success-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 0.375rem;
    color: #065F46;
    font-size: 0.9375rem;
}

/* Screen reader only (for accessible labels) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .beta-mascot {
        width: 80px;
        height: 80px;
    }

    .languages-grid {
        gap: 0.75rem;
    }

    .language-card {
        padding: 0.5rem 1rem;
    }

    .trust-signals-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .platform-instructions {
        grid-template-columns: 1fr;
    }

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

    .form-fieldset {
        padding: 1rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}
