:root {
    --bg-color: #E2DFD8; /* Slightly deeper beige from their image */
    --text-color: #1A1A1A; /* Extremely dark charcoal */
    --accent: #2c2c2c; /* Button borders */
    --border: rgba(26, 26, 26, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo-small {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Hidden initially or as preferred, selfology hides it until scroll */
}

/* Custom CSS Cross Logo */
.logo-cross {
    position: relative;
    display: inline-block;
    color: var(--text-color);
}
.logo-cross .h-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform: translateY(-50%);
}
.logo-cross .v-line {
    position: absolute;
    top: 10%;
    height: 80%;
    width: 1.5px;
    background-color: currentColor;
    right: 25%;
}

/* Header logo */
.header .logo-cross { width: 40px; height: 30px; }

/* Huge header logo sizes */
.huge-logo { width: 70px; height: 50px; margin-bottom: 2rem; }

/* Billboard logo */
.bb-logo { width: 50px; height: 35px; margin-bottom: 1.5rem; }



.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.menu-btn .line {
    width: 20px;
    height: 1px;
    background: var(--text-color);
}

.header-right {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* Hero Screen 1 */
.hero-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15vh;
}

.center-stage {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.main-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 2.5rem;
}

.buy-btn {
    display: inline-block;
    background-color: #313131;
    color: #fff;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 4rem;
    transition: 0.3s;
}
.buy-btn:hover {
    background-color: #121212;
}

/* 5 Items Grid */
.icon-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.icon-card {
    background: rgba(255, 255, 255, 0.2);
    flex: 1;
    border-radius: 8px;
    padding: 30px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated Line-Art Icons */
.animated-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    stroke: var(--text-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-card:hover .animated-icon {
    transform: scale(1.05);
}

/* 1. Eye pupil looks back and forth */
@keyframes look {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2.5px); }
    75% { transform: translateX(2.5px); }
}
.i-eye .pupil { transform-origin: center; transition: all 0.3s ease; }
.icon-card:hover .i-eye .pupil {
    animation: look 2s ease-in-out infinite;
}

/* 2. Speedometer needle sweeps */
.i-meter .needle { transform-origin: 12px 16px; transition: stroke-width 0.3s; }
@keyframes sweep {
    0%, 100% { transform: rotate(-35deg); }
    50% { transform: rotate(35deg); }
}
.icon-card:hover .i-meter .needle {
    animation: sweep 1.5s ease-in-out infinite;
    stroke-width: 1.5;
}

/* 3. Equalizer sliders bounce */
@keyframes slide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.icon-card:hover .i-eq .slider-1 { animation: slide 1s ease-in-out infinite; }
.icon-card:hover .i-eq .slider-2 { animation: slide 1.2s ease-in-out infinite 0.2s; }
.icon-card:hover .i-eq .slider-3 { animation: slide 1.4s ease-in-out infinite 0.4s; }

/* 4. Target pulses */
.i-target .cross { transform-origin: 12px 12px; transition: transform 0.3s; }
@keyframes target-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.6); }
}
.icon-card:hover .i-target .cross {
    animation: target-pulse 1.5s ease-in-out infinite;
}

/* 5. Person ring ripples and body floats */
.i-person .ring { transform-origin: 12px 21px; }
@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.icon-card:hover .i-person .ring {
    animation: ripple 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.icon-card p {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
}

/* Product Screen (Image 2) */
.product-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.product-wrapper {
    position: relative;
    width: 650px;
    max-width: 90vw;
}

.product-wrapper .notebook-cover {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    animation: floating 4s ease-in-out infinite;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-wrapper .notebook-cover.front {
    position: relative; /* Maintain aspect ratio container size */
    opacity: 1;
}

.product-wrapper .notebook-cover.back {
    opacity: 0;
}

/* Activation Classes via JS */
.product-wrapper.animated-back .notebook-cover.front {
    opacity: 0;
}
.product-wrapper.animated-back .notebook-cover.back {
    opacity: 1;
}
.product-wrapper.animated-back .notebook-cover {
    animation-play-state: paused; /* Land on desk when opened */
}

/* Pointer Descriptions (Selfology Clean Style) */
.pointer-text {
    display: flex;
    flex-direction: column;
    max-width: 250px;
}
.text-right {
    text-align: right;
    align-items: flex-end;
}
.text-left {
    text-align: left;
    align-items: flex-start;
}
.pointer-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #121212;
    margin-bottom: 6px;
    white-space: nowrap;
}
.pointer-desc {
    font-size: 0.55rem;
    line-height: 1.5;
    color: #555;
    font-weight: 400;
}

.pointers-group {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s; /* Delay pointer fade in so book reveals first */
}
.product-wrapper.animated-back .pointers-group {
    opacity: 1;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.shadow-ellipse {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 1;
    animation: shadow_float 4s ease-in-out infinite;
}
@keyframes shadow_float {
    0% { width: 200px; opacity: 0.1; }
    50% { width: 150px; opacity: 0.05; }
    100% { width: 200px; opacity: 0.1; }
}


.pointer-container {
    position: absolute;
    display: flex;
    align-items: center;
    z-index: 3;
}
.pointer-label {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #121212;
    white-space: nowrap;
}
.pointer-line {
    height: 1px;
    background: #121212;
    margin: 0 10px;
    flex-shrink: 0;
    position: relative;
}

/* Dots at the end of the line closest to the book */
.p-top-left .pointer-line::after,
.p-mid-left .pointer-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #121212;
    border-radius: 50%;
}

.p-top-right .pointer-line::before,
.p-mid-right .pointer-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #121212;
    border-radius: 50%;
}

/* Base positions and initial state for animations */
.p-top-left { top: 25%; right: 85%; left: auto; transform: translateX(-15px); opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.0s; }
.p-mid-left { top: 60%; right: 85%; left: auto; transform: translateX(-15px); opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.4s; }
.p-top-right { top: 25%; left: 85%; right: auto; transform: translateX(15px); opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s; }
.p-mid-right { top: 60%; left: 85%; right: auto; transform: translateX(15px); opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.6s; }

/* Animated in state */
.product-wrapper.animated-back .p-top-left,
.product-wrapper.animated-back .p-mid-left,
.product-wrapper.animated-back .p-top-right,
.product-wrapper.animated-back .p-mid-right {
    transform: translateX(0);
    opacity: 1;
}

/* Billboard Screen (Image 3) */
.billboard-container {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
}

.billboard {
    background: #dbd8ce;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    box-shadow: 
        inset 0px 5px 15px rgba(0,0,0,0.05),
        2px 10px 30px rgba(0,0,0,0.08); /* Frame effect */
    border: 1px solid #ccc; /* Metal frame */
    position: relative;
    overflow: hidden;
}

.billboard-inner {
    z-index: 2;
    position: relative;
    margin-left: 0;
}

.billboard-inner h2 {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 500px;
    text-transform: uppercase;
}

.bb-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    margin-top: 15px;
    color: #4a4a4a;
    max-width: 500px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.bb-notebook {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    width: 380px;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

/* Base Features from previous iterations for completeness */
.features {
    padding: 50px 10% 150px 10%;
}
.feature-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 150px;
    margin-left: 10%;
    margin-right: 10%;
}
.feature-block.reverse {
    flex-direction: row-reverse;
}
.huge-text {
    font-size: 8rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    color: rgba(18, 18, 18, 0.1);
    flex: 0 0 auto;
}
.hline {
    height: 1px;
    background: var(--text-color);
    flex: 1;
    margin: 0 40px;
}
.feature-desc {
    flex: 0 0 450px;
}
.upper-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    display: block;
}
.feature-desc h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.feature-desc p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

footer {
    padding: 60px 10%;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Order Modal Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease-in-out;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content-wide {
    max-width: 900px;
    padding: 0;
}

.modal-split {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.modal-image-col {
    flex: 1;
    background-color: #f1efe8; /* Beige light match for product */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.modal-product-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.25));
}

.modal-form-col {
    flex: 1;
    padding: 40px;
    background-color: var(--bg-color);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
}

.modal-product-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.modal-reviews {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #333;
}
.modal-reviews .stars {
    color: var(--text-color);
    letter-spacing: 2px;
    margin-right: 5px;
}

.modal-product-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 6px;
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Radio Cards Styling */
.radio-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.radio-card {
    display: block;
    cursor: pointer;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    background: transparent;
}

.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--text-color);
    background-color: rgba(26, 26, 26, 0.03);
}

.radio-card input[type="radio"] {
    display: none;
}

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

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

.card-circle {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-card input[type="radio"]:checked + .card-content .card-circle {
    border-color: var(--text-color);
}
.radio-card input[type="radio"]:checked + .card-content .card-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%;
}

.card-info {
    display: flex;
    flex-direction: column;
}
.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}
.card-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.price-sale {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}
.price-original {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #888;
}

.submit-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #333;
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* TikTok Showcase Section */
.tiktok-section {
    padding: 80px 10%;
    background-color: #f1efe8;
    text-align: center;
}

.tiktok-header {
    margin-bottom: 40px;
}

.tiktok-header h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

.tiktok-header p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.tiktok-follow-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.tiktok-follow-btn:hover {
    background-color: var(--text-color);
    color: #fff;
}

.tiktok-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .icon-grid { flex-wrap: wrap; }
    .icon-card { flex: 1 1 30%; }
    .p-top-left, .p-mid-left, .p-top-right, .p-mid-right { position: static; margin-bottom: 10px; }
    .pointer-container { flex-direction: column; }
    .pointer-line { display: none; }
    .billboard { flex-direction: column; height: auto; text-align: center; padding: 40px; }
    .bb-notebook { position: relative; right: 0; transform: none; width: 100%; margin-top: 30px; }
    .feature-block { flex-direction: column; align-items: flex-start; }
    .feature-block.reverse { flex-direction: column; }
    .hline { display: none; }
    .feature-desc { width: 100%; flex: auto; }

    /* Mobile handling for Split Modal */
    .modal-split {
        flex-direction: column;
    }
    .modal-image-col {
        padding: 20px;
        border-radius: 12px 12px 0 0;
    }
    .modal-product-img {
        max-width: 150px; /* smaller img on mobile */
    }
    .modal-form-col {
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }
    .close-btn {
        background-color: white;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
