/* FESTIVE, LIGHT & NATURAL STYLING FOR DOVANA SVETAINĖ */

:root {
    --bg-main: #FDFBF7; /* Warm ivory/cream background */
    --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphism light card */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(212, 175, 55, 0.2); /* Champagne gold tint */
    --accent-primary: #D4AF37; /* Luxury Metallic Gold */
    --accent-primary-hover: #C5A028;
    --accent-secondary: #FF7E67; /* Festive Coral/Peach */
    --accent-natural: #7FB069; /* Soft Sage/Leaf Green */
    --text-primary: #3A3530; /* Soft warm charcoal */
    --text-muted: #7A7268; /* Warm taupe */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-premium: 0 15px 35px -12px rgba(180, 150, 120, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 126, 103, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(127, 176, 105, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & General */
h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #2D2722;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

a {
    color: inherit;
    text-decoration: none;
}

.gradient-text {
    background: linear-gradient(135deg, #B8860B 0%, var(--accent-secondary) 50%, var(--accent-natural) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 126, 103, 0.08);
    border: 1px solid rgba(255, 126, 103, 0.25);
    color: var(--accent-secondary);
    border-radius: 9999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.hidden {
    display: none !important;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px; /* Fully rounded buttons for natural look */
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #C5A028 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 8px 20px -6px rgba(212, 175, 55, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -5px rgba(212, 175, 55, 0.6);
}

.secondary-btn {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.secondary-btn:hover {
    background: var(--bg-main);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.15);
}

.highlight-btn {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #FF5A40 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(255, 126, 103, 0.4);
}

.highlight-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -5px rgba(255, 126, 103, 0.6);
}

/* HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.nav-link.highlight {
    padding: 0.5rem 1.1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--accent-primary);
    border-radius: 9999px;
    color: #B8860B;
}

.nav-link.highlight:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* HERO SECTION */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 6rem 5% 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
}

.business-card-display h3 {
    margin-bottom: 1.5rem;
    color: #B8860B;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.steps-list {
    list-style: none;
}

.steps-list li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(127, 176, 105, 0.15);
    color: var(--accent-natural);
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.step-text strong {
    display: block;
    color: #2D2722;
    margin-bottom: 0.2rem;
}

/* PRICING SECTION */
.pricing-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-premium);
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px -10px rgba(180, 150, 120, 0.4);
}

.price-card.popular {
    border: 2px solid var(--accent-secondary);
    background: #fff;
    box-shadow: 0 25px 50px -15px rgba(255, 126, 103, 0.25);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: #fff;
    padding: 0.35rem 1.25rem;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.price-card.popular .card-icon {
    color: var(--accent-secondary);
}

.price-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.price-card h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2D2722;
    margin-bottom: 1.5rem;
}

.price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 4.5rem;
}

.card-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.card-features li {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.card-features li i {
    color: var(--accent-natural);
}

.card-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.price-card.popular .card-btn {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #FF5A40 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 126, 103, 0.3);
}

.price-card.popular .card-btn:hover {
    background: #E04D36;
    box-shadow: 0 6px 20px rgba(255, 126, 103, 0.5);
}

/* PLAYGROUND / DEMO SECTION */
.playground-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.demo-configurator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.8rem;
    box-shadow: var(--shadow-premium);
}

.config-title {
    font-weight: 800;
    color: #B8860B;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
}

.config-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    flex-grow: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input, .input-group select, .wish-form input, .wish-form select, .wish-form textarea, .inquiry-form input, .inquiry-form select {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.input-group input:focus, .input-group select:focus, .wish-form input:focus, .wish-form textarea:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(255, 126, 103, 0.15);
}

/* TABS */
.template-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 1.1rem 1.8rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-primary);
}

.tab-btn.active {
    background: #fff;
    border-color: var(--accent-primary);
    color: #B8860B;
    box-shadow: 0 8px 20px -8px rgba(212, 175, 55, 0.4);
}

/* DEMO CONTAINER FRAME */
.demo-frame {
    background: #FFFAF4; /* Warm festive soft color */
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    min-height: 500px;
    box-shadow: 0 25px 60px -20px rgba(180, 150, 120, 0.25);
    position: relative;
    overflow: hidden;
}

/* Decorative festive background elements in Demo Frame */
.demo-frame::before {
    content: '🎉';
    position: absolute;
    top: 15px;
    right: 20px;
    opacity: 0.15;
    font-size: 2.5rem;
}

.demo-frame::after {
    content: '✨';
    position: absolute;
    bottom: 15px;
    left: 20px;
    opacity: 0.15;
    font-size: 2.5rem;
}

.demo-content {
    display: none;
    position: relative;
    z-index: 2;
}

.demo-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.template-preview-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.template-preview-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.preview-badge {
    background: rgba(255, 126, 103, 0.1);
    color: var(--accent-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
}

.preview-url {
    color: var(--text-muted);
    font-size: 0.85rem;
    background: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* TEMPLATE A: TIMELINE & WISHES LAYOUT */
.template-layout-timeline {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.sub-section-title {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #2D2722;
    border-bottom: 2px dashed rgba(212, 175, 55, 0.2);
    padding-bottom: 0.75rem;
    font-family: var(--font-heading);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2.2rem;
    border-left: 3px solid rgba(127, 176, 105, 0.25);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.75rem;
    top: 0.25rem;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--accent-natural);
    border: 4px solid #FFFAF4;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(127, 176, 105, 0.15);
}

.timeline-date {
    font-weight: 800;
    color: var(--accent-natural);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    background: rgba(127, 176, 105, 0.08);
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2D2722;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Wishes Board */
.wish-form {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

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

.wishes-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.wish-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(180, 150, 120, 0.06);
    background-image: linear-gradient(135deg, #ffffff 0%, #FFFDFB 100%);
}

.wish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(180, 150, 120, 0.12);
}

.wish-sticker-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.8rem;
}

.wish-card-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.wish-card-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* TEMPLATE B: GAME & QUIZ LAYOUT */
.template-layout-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.quiz-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    min-height: 250px;
    box-shadow: 0 10px 25px rgba(180, 150, 120, 0.06);
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: #2D2722;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.quiz-opt-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.quiz-opt-btn:hover {
    background: var(--bg-main);
    border-color: rgba(0, 0, 0, 0.15);
}

.quiz-opt-btn.correct {
    background: rgba(127, 176, 105, 0.15);
    border-color: var(--accent-natural);
    color: #3E632E;
}

.quiz-opt-btn.wrong {
    background: rgba(255, 126, 103, 0.15);
    border-color: var(--accent-secondary);
    color: #B52F17;
}

/* Game canvas styling */
.canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 15px 30px rgba(180, 150, 120, 0.15);
    border: 2px solid rgba(0,0,0,0.05);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 244, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-primary);
    z-index: 5;
    text-align: center;
    padding: 1.5rem;
}

.game-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-secondary);
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    padding: 0 0.5rem;
}

/* TEMPLATE C: PREMIUM SKAITMENINĖ KNYGA */
.book-container {
    max-width: 900px;
    margin: 0 auto;
}

.music-player {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 0.85rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(180, 150, 120, 0.04);
}

.music-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.player-btn {
    background: var(--accent-primary);
    border: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #fff;
    transition: var(--transition-smooth);
}

.player-btn:hover {
    transform: scale(1.1);
    background: var(--accent-primary-hover);
}

/* Sound Wave animation */
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
    width: 22px;
}

.sound-wave span {
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    animation: bounce 0.5s ease infinite alternate;
    transform-origin: bottom;
    border-radius: 10px;
}

.sound-wave:not(.playing) span {
    animation: none;
    height: 3px;
}

.sound-wave span:nth-child(2) { animation-delay: 0.15s; }
.sound-wave span:nth-child(3) { animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { animation-delay: 0.45s; }

@keyframes bounce {
    0% { height: 3px; }
    100% { height: 16px; }
}

/* Book Shell */
.book-shell {
    background: #EEDEC9; /* Rich wooden desk simulated feel */
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.06), 0 15px 30px rgba(180, 150, 120, 0.2);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.book-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 380px;
}

.book-page {
    background: #FAF8F5; /* Cream paper look */
    color: #4A3E3D;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.03);
}

.book-left {
    border-right: 1px solid rgba(0,0,0,0.08);
}

.book-photo-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-photo-frame img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.photo-caption {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.book-chapter {
    font-family: var(--font-heading);
    color: #2D2722;
    border-bottom: 2px solid rgba(212,175,55,0.25);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.book-story-text {
    font-size: 0.98rem;
    line-height: 1.75;
    flex-grow: 1;
    color: #4A443F;
}

.book-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

#page-number-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* RSVP simulation styling */
.rsvp-simulation {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(180, 150, 120, 0.03);
}

.rsvp-box {
    margin-top: 1.25rem;
}

.rsvp-box .form-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.text-success {
    color: var(--accent-natural);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* CTA / INQUIRY FORM */
.cta-section {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 4rem auto;
}

.cta-card {
    background: linear-gradient(135deg, #FFFDFB 0%, #FAF6F0 100%);
    border: 1px solid var(--border-color);
    padding: 4rem 3.5rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 30px 70px -25px rgba(180, 150, 120, 0.35);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.inquiry-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

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

.order-success-box {
    margin-top: 1.5rem;
    padding: 1.1rem;
    background: rgba(127, 176, 105, 0.1);
    border: 1px solid var(--accent-natural);
    border-radius: 12px;
    color: #3E632E;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

/* FOOTER */
.app-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 2.5rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
    }
    
    .template-layout-timeline, .template-layout-game, .book-pages {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-left {
        border-right: none;
        border-bottom: 1px dashed rgba(0,0,0,0.08);
        padding-bottom: 2rem;
    }
}

.hero-mockup-img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(180, 150, 120, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ANIMATIONS & DYNAMICS */

/* Emerge reveal container */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal variations */
.reveal-left {
    transform: translateX(-40px);
}
.reveal-left.revealed {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(40px);
}
.reveal-right.revealed {
    transform: translateX(0);
}

.reveal-scale {
    transform: scale(0.95);
}
.reveal-scale.revealed {
    transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Page load animations for Hero Section */
.animate-on-load {
    animation-fill-mode: both;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in {
    animation-name: fadeInOnly;
}

.animate-slide-up {
    animation-name: slideUpOnly;
}

.animate-slide-left {
    animation-name: slideLeftOnly;
}

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

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

@keyframes slideLeftOnly {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Confetti canvas overlay */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}


