:root {
    --color-cream: #EFE3C7;
    --color-dark: #2a2a2a;
    --font-main: "Times New Roman", Times, serif;

    --bg-color: var(--color-cream);
    --text-color: var(--color-dark);
    --selection-bg: var(--color-dark);
    --selection-text: var(--color-cream);
    --scrollbar-thumb: var(--color-dark);
    --scrollbar-border: var(--color-cream);
    --hover-color: #555555;
    --faint-line: rgba(42, 42, 42, 0.2);
    --faint-bg: rgba(42, 42, 42, 0.05);
    --highlight-color: #48A9A6;
    --highlight-color-inverse: #A6F4EA;
}

html.dark-mode, body.dark-mode {
    --bg-color: var(--color-dark);
    --text-color: var(--color-cream);
    --selection-bg: var(--color-cream);
    --selection-text: var(--color-dark);
    --scrollbar-thumb: var(--color-cream);
    --scrollbar-border: var(--color-dark);
    --hover-color: #BFB59F;
    --faint-line: rgba(239, 227, 199, 0.2);
    --faint-bg: rgba(239, 227, 199, 0.05);
    --highlight-color: #A6F4EA;
    --highlight-color-inverse: #48A9A6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border: 2px solid var(--scrollbar-border);
    border-radius: 4px;
}

/* ── Layout ── */

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.section-short {
    min-height: 60vh;
}

.section-compact {
    min-height: auto;
    padding: 6rem 2rem;
}

/* ── Hero ── */

.hero {
    height: 100vh;
    flex-direction: column;
    gap: 2rem;
}

.logo {
    width: 120px;
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 2s ease, transform 2s ease;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    cursor: default;
}

.logo.loaded {
    opacity: 1;
    transform: scale(1);
}

.logo.switching {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-badge {
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 2s ease 0.5s;
}

.hero-badge.loaded {
    opacity: 0.6;
}

/* ── Typography ── */

.statement {
    font-size: 3.5rem;
    font-weight: normal;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.statement-large {
    font-size: 5rem;
    font-weight: bold;
    color: var(--highlight-color);
}

.statement-small {
    font-size: 2rem;
    max-width: 700px;
    line-height: 1.5;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* ── Narrative Sections ── */

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

.prose {
    align-items: flex-start;
    padding: 8vw;
}

.prose .content {
    max-width: 750px;
    margin: 0 auto;
}

.prose p {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.prose p.small {
    font-size: 1.2rem;
    opacity: 0.7;
    font-style: italic;
    font-family: Georgia, serif;
}

/* ── Fade animation ── */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scenario Cards ── */

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
}

.scenario-card {
    border: 1px solid var(--faint-line);
    padding: 2.5rem;
    text-align: center;
}

.scenario-card h3 {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: normal;
    opacity: 0.5;
}

.scenario-card p {
    font-size: 1.3rem;
    line-height: 1.5;
    font-family: Georgia, serif;
}

.scenario-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.4;
    margin: 2rem 0;
    grid-column: 1 / -1;
    font-family: Georgia, serif;
}

/* ── Solution Section ── */

.solution-intro {
    text-align: center;
    max-width: 700px;
}

.solution-intro h2 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2rem;
    font-weight: normal;
}

.solution-intro p {
    font-size: 1.6rem;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* ── How It Works ── */

.how-it-works {
    max-width: 800px;
    width: 100%;
}

.how-it-works h2 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 3rem;
    font-weight: normal;
    text-align: center;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    min-width: 50px;
    color: var(--highlight-color);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.step-content p {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.5;
    font-family: Georgia, serif;
}

/* ── Pricing ── */

.pricing-section {
    flex-direction: column;
    gap: 3rem;
}

.pricing-header {
    text-align: center;
}

.pricing-header h2 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1rem;
    font-weight: normal;
}

.pricing-header p {
    font-size: 1.2rem;
    opacity: 0.6;
    font-family: Georgia, serif;
    font-style: italic;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 700px;
    width: 100%;
}

.pricing-card {
    border: 1px solid var(--faint-line);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    background: var(--faint-bg);
}

.pricing-card.selected {
    border-color: var(--text-color);
    background: var(--faint-bg);
}

.pricing-card.selected::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-color);
}

.pricing-card .plan-name {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: var(--highlight-color);
}

.pricing-card .price-period {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.pricing-card .price-note {
    font-size: 0.85rem;
    opacity: 0.4;
    font-style: italic;
    font-family: Georgia, serif;
}

.save-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ── Continue Button ── */

.continue-section {
    min-height: 40vh;
    flex-direction: column;
    gap: 1.5rem;
}

.continue-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    padding: 1.2rem 4rem;
    font-family: var(--font-main);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.continue-btn:hover {
    background: transparent;
    color: var(--text-color);
}

.continue-hint {
    font-size: 0.8rem;
    opacity: 0.35;
    letter-spacing: 0.1em;
}

/* ── Checkout Modal Overlay ── */

.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.checkout-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-color);
    border: 1px solid var(--faint-line);
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.checkout-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    font-family: var(--font-main);
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    text-align: center;
}

.modal-body h3 {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    font-weight: normal;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.modal-plan-tag {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 2rem;
    font-family: Georgia, serif;
}

.modal-body input[type="email"] {
    width: 100%;
    background: transparent;
    border: 1px solid var(--faint-line);
    padding: 1rem 1.5rem;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal-body input[type="email"]::placeholder {
    color: var(--text-color);
    opacity: 0.3;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.modal-body input[type="email"]:focus {
    border-color: var(--text-color);
}

.modal-body button.modal-submit {
    width: 100%;
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 10px;
}

.modal-body button.modal-submit:hover {
    background: transparent;
    color: var(--text-color);
}

.modal-body button.modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-status {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    min-height: 1.2em;
    opacity: 0.7;
}

.modal-fine-print {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    opacity: 0.3;
    line-height: 1.4;
}

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

/* ── Trust bar ── */

.trust-bar {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin-top: 2rem;
}

.trust-item {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.35;
    text-transform: uppercase;
}

/* ── Footer ── */

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .statement {
        font-size: 2.2rem;
    }

    .statement-large {
        font-size: 3rem;
    }

    .statement-small {
        font-size: 1.4rem;
    }

    .prose p {
        font-size: 1.4rem;
    }

    .prose {
        padding: 4rem 2rem;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .trust-bar {
        gap: 1.5rem;
    }
}

/* ── Animations ── */

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

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

/* ── Success state ── */

.success-container {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.success-container h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.success-container p {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
    font-family: Georgia, serif;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Reveal State ── */

.reveal-container {
    text-align: center;
    max-width: 550px;
    animation: revealIn 0.8s ease-out;
}

@keyframes revealIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.reveal-title {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.reveal-main {
    font-size: 1.4rem;
    line-height: 1.5;
    font-family: Georgia, serif;
    margin-bottom: 1rem;
}

.reveal-divider {
    width: 60px;
    height: 1px;
    background: var(--text-color);
    opacity: 0.2;
    margin: 2rem auto;
}

.reveal-detail {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.75;
    font-family: Georgia, serif;
}

.reveal-small {
    font-size: 0.85rem;
    opacity: 0.35;
    font-style: italic;
    font-family: Georgia, serif;
    margin-top: 2rem;
}

/* ── Chat Demo ── */

.chat-demo {
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--faint-line);
    padding: 2rem;
}

.chat-demo-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 1.5rem;
    text-align: center;
}

.chat-bubble {
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: Georgia, serif;
    max-width: 85%;
}

.chat-bubble.ai {
    border: 1px solid var(--faint-line);
    margin-right: auto;
}

.chat-bubble.child {
    background: var(--faint-bg);
    border: 1px solid var(--faint-line);
    margin-left: auto;
    text-align: right;
}

.chat-bubble .speaker {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.4rem;
}

/* ── Comparison Table ── */

.comparison {
    max-width: 750px;
    width: 100%;
}

.comparison h2 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    font-weight: normal;
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--faint-line);
    padding: 1.2rem 0;
    align-items: center;
}

.comparison-row.header {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-color);
}

.comparison-row span {
    font-size: 1rem;
    line-height: 1.4;
}

.comparison-row span:first-child {
    font-family: Georgia, serif;
    opacity: 0.8;
}

.comparison-row span:nth-child(2),
.comparison-row span:nth-child(3) {
    text-align: center;
    font-size: 0.95rem;
}

/* ── Feature Grid ── */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--faint-line);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.65;
    line-height: 1.5;
    font-family: Georgia, serif;
}

/* ── Stats Row ── */

.stats-row {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.45;
}

/* ── FAQ ── */

.faq {
    max-width: 650px;
    width: 100%;
}

.faq h2 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    font-weight: normal;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--faint-line);
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--faint-line);
}

.faq-question {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    opacity: 0.4;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 1rem;
}

.faq-answer p {
    font-size: 1rem;
    opacity: 0.65;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* ── Quote/Testimonial ── */

.quote-block {
    max-width: 600px;
    text-align: center;
    padding: 2rem;
}

.quote-text {
    font-size: 1.5rem;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quote-attr {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.45;
}

/* ── Age Badge ── */

.age-range {
    text-align: center;
    margin-top: 1rem;
}

.age-range span {
    display: inline-block;
    border: 1px solid var(--faint-line);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    text-transform: uppercase;
}

/* ── Responsive additions ── */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.85rem;
    }

    .comparison-row span {
        font-size: 0.85rem;
    }

    .stats-row {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .chat-bubble {
        max-width: 95%;
    }

    .quote-text {
        font-size: 1.2rem;
    }
}

/* ── Highlight ── */

.highlight {
    font-style: italic;
}

#bold {
    font-weight: bold;
}
