:root {
    --bg-color: #F9F7F1;
    --text-color: #2A2A2A;
    --accent-color: #E0DDD5;
    --input-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-serif: 'Crimson Pro', serif;
    --font-hand: 'Caveat', cursive;
    --chip-border: #2A2A2A;
    --chip-hover: #f0eadd;
    --chip-active: #2A2A2A;
    --chip-active-text: #F9F7F1;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    min-height: 100vh;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Subtle dot grid pattern for notebook feel */
    background-image: radial-gradient(var(--accent-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.brand-logo {
    position: absolute;
    top: 40px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
    pointer-events: none;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.notebook-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.content-wrapper {
    width: 100%;
    text-align: center;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
}

/* Chat Interface Styling */
.chat-interface-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-input-wrapper {
    background: var(--input-bg);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow-color), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
    box-shadow: 0 8px 30px var(--shadow-color);
    border-color: #ddd;
    transform: translateY(-1px);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-color);
    background: transparent;
}

.chat-input::placeholder {
    color: #999;
    font-style: italic;
}

.send-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
}

/* Knowledge Slider Styling */
.knowledge-slider-wrapper {
    width: 100%;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.knowledge-slider-wrapper.visible {
    max-height: 120px;
    opacity: 1;
    margin-top: 40px;
    padding: 10px 20px;
    transform: translateY(0);
    overflow: visible;
}

.slider-label {
    display: block;
    margin-bottom: 8px;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile-friendly slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    background: transparent;
    touch-action: manipulation;
}
.slider:focus {
    outline: none;
}
.slider::-webkit-slider-runnable-track {
    height: 12px;
    background: #e5e5e5;
    border-radius: 6px;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-color);
    border: 2px solid #fff;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.slider::-moz-range-track {
    height: 12px;
    background: #e5e5e5;
    border-radius: 6px;
}
.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-color);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-text {
    font-size: 0.9rem;
    color: #444;
    min-width: 50px;
}



/* Learning Methods Styling */
.learning-methods-container {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.learning-methods-container.visible {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 50px;
    transform: translateY(0);
}

.methods-hint {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 15px;
}

.methods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
}

.method-chip {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.method-chip:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.method-chip:nth-child(even):hover {
    transform: none;
}

.method-chip.active {
    background-color: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
    box-shadow: none;
}

.submit-action-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.start-learning-button {
    padding: 12px 30px;
    background: #2A2A2A;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.start-learning-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #000;
}

.send-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Waitlist Section Styling */
.waitlist-section {
    margin-top: 20px;
    opacity: 0.9;
}

.waitlist-text {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #444;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.waitlist-input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    transition: all 0.3s ease;
}

@keyframes radiate-glow {
    0% {
        box-shadow: 0 0 5px rgba(42, 42, 42, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(42, 42, 42, 0.4), 0 0 10px rgba(42, 42, 42, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(42, 42, 42, 0.2);
    }
}

.waitlist-input:focus {
    background: #fff;
    border-color: #2A2A2A;
    animation: radiate-glow 2s infinite ease-in-out;
}

.waitlist-button {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.waitlist-button:hover {
    background: #f5f5f5;
    color: var(--text-color);
    border-color: #2A2A2A;
}

@media (max-width: 600px) {
    body {
        display: block;
        height: auto;
        min-height: 100vh;
        padding-top: 80px; /* Space for the logo */
    }

    .notebook-container {
        padding: 20px 20px 40px 20px;
    }

    .brand-logo {
        position: absolute;
        top: 20px;
        left: 20px;
        /* Ensure logo stays on top but doesn't scroll with page if we want sticky, 
           but absolute is fine if body scrolls. 
           Let's keep it absolute but ensure body padding pushes content down. */
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-tagline {
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .chat-input {
        font-size: 1rem;
    }
    
    .methods-grid {
        gap: 8px;
    }
    
    .method-chip {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .success-screen {
        padding-top: 0;
    }

    .success-content {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .waitlist-number {
        font-size: 5rem;
    }

    .success-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
}

@media (min-width: 601px) and (max-width: 767px) and (max-height: 820px) {
    body {
        padding-top: 100px;
    }

    .notebook-container {
        min-height: calc(100vh - 100px);
        justify-content: center;
    }

    .success-screen {
        min-height: calc(100vh - 100px);
        padding-top: 0;
    }
}

@media (min-width: 1024px) {
    .notebook-container {
        min-height: 100vh;
        justify-content: center;
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    body {
        padding-top: 120px;
    }
    .notebook-container {
        min-height: calc(100vh - 120px);
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .notebook-container {
        min-height: 100vh;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 820px) {
    body {
        padding-top: 120px;
    }
    .notebook-container {
        min-height: calc(100vh - 120px);
        justify-content: center;
    }
}

/* Success Screen Styling */
.success-screen {
    width: 100%;
    padding-top: 10px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.success-screen.hidden {
    display: none;
}

.success-screen.visible {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .success-screen {
        min-height: 100vh;
        padding-top: 0;
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    .success-screen {
        min-height: calc(100vh - 120px);
        padding-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .success-screen {
        min-height: 100vh;
        padding-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 820px) {
    .success-screen {
        min-height: calc(100vh - 120px);
        padding-top: 0;
    }
}

.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.waitlist-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.success-message {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #444;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.success-help-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.7s;
}

.success-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.9s;
    flex-wrap: wrap;
    justify-content: center;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    min-width: 240px;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-color: var(--text-color);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.action-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.action-main {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.action-sub {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.success-thank-you {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 1.1s;
}

.success-screen.visible .waitlist-number,
.success-screen.visible .success-title,
.success-screen.visible .success-message,
.success-screen.visible .success-help-text,
.success-screen.visible .success-actions,
.success-screen.visible .success-thank-you {
    opacity: 1;
    transform: translateY(0);
}

/* Mission Section */
.mission-section {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mission-button {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mission-button:active {
    transform: scale(0.98);
}

.mission-embed {
    width: 100%;
    max-width: 600px;
}

.mission-embed.hidden {
    display: none;
}

.notebook-container.hidden {
    display: none;
}

/* Booking Modal Styling */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(249, 247, 241, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

.booking-modal.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.booking-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 40px 20px 20px;
    overflow: hidden;
}

.close-booking {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-booking:hover {
    color: #000;
}
