/* === CSS Variables - Default (Hebrew) Theme === */
:root {
    --bg-deep: #0a1122; 
    --bg-glow: #162442;
    --text-main: #f4f7fb;
    --text-muted: #a3b8cc;
    --magic-color: #48cae4; 
    --magic-gold: #f4d068; 
    --magic-glow: rgba(72, 202, 228, 0.4);
    --btn-gradient: linear-gradient(135deg, #0077b6 0%, #0096c7 100%);
    --font-he-heading: 'Frank Ruhl Libre', serif;
    --font-en-heading: 'Cinzel', serif;
    --font-body: 'Heebo', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === CSS Variables - English Theme (Ancient Forest & Fairies) === */
[lang="en"] {
    --bg-deep: #080a09; 
    --bg-glow: #101a14; 
    --text-main: #fcfaf5; 
    --text-muted: #9ba8a0;
    --magic-color: #e2b464; 
    --magic-gold: #f7d594; 
    --magic-glow: rgba(226, 180, 100, 0.35); 
    --btn-gradient: linear-gradient(135deg, #183323 0%, #275439 100%); 
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.8s ease; 
}

body.high-contrast {
    --bg-deep: #000208;
    --bg-glow: #091327;
    --text-main: #ffffff;
    --text-muted: #f1f8ff;
    --magic-color: #9bf3ff;
    --magic-gold: #ffefad;
    --magic-glow: rgba(155, 243, 255, 0.72);
    --btn-gradient: linear-gradient(135deg, #006699 0%, #1187ad 100%);
    --contrast-surface: rgba(3, 8, 18, 0.96);
    --contrast-surface-soft: rgba(4, 9, 20, 0.97);
    --contrast-tooltip-start: rgba(4, 10, 22, 0.98);
    --contrast-tooltip-end: rgba(1, 4, 10, 0.99);
    color-scheme: dark;
}

[lang="en"] body.high-contrast {
    --bg-deep: #010402;
    --bg-glow: #0d1b12;
    --text-main: #fffef9;
    --text-muted: #f6ecd8;
    --magic-color: #ffd79a;
    --magic-gold: #ffe8bb;
    --magic-glow: rgba(255, 215, 154, 0.68);
    --btn-gradient: linear-gradient(135deg, #2f5038 0%, #4c6b52 100%);
    --contrast-surface: rgba(6, 13, 9, 0.96);
    --contrast-surface-soft: rgba(7, 14, 10, 0.97);
    --contrast-tooltip-start: rgba(10, 18, 12, 0.98);
    --contrast-tooltip-end: rgba(4, 8, 5, 0.99);
}

body.high-contrast .ambient-glow {
    opacity: 0.64;
    filter: blur(62px);
}

body.high-contrast .hero-content h1 {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: var(--text-main);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

[lang="en"] body.high-contrast .hero-content h1 {
    text-shadow: 0 0 18px rgba(255, 225, 180, 0.34);
}

body.high-contrast .hook,
body.high-contrast .synopsis,
body.high-contrast .story-intro,
body.high-contrast .story-body,
body.high-contrast .story-quote p,
body.high-contrast .story-final,
body.high-contrast .modal-body {
    color: var(--text-main);
}

body.high-contrast .story-content,
body.high-contrast .detail-item,
body.high-contrast .story-highlights li,
body.high-contrast .story-details summary,
body.high-contrast .story-quote,
body.high-contrast .modal-content,
body.high-contrast .buy-modal-content,
body.high-contrast .accessibility-panel {
    background: var(--contrast-surface);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
}

body.high-contrast .detail-item::before,
body.high-contrast .story-highlights li::before {
    opacity: 0.35;
}

body.high-contrast .story-details,
body.high-contrast .modal-header,
body.high-contrast .site-footer {
    border-color: rgba(255, 255, 255, 0.55);
}

body.high-contrast .detail-label,
body.high-contrast .author-photo-caption,
body.high-contrast .buy-modal-subtitle,
body.high-contrast .close-btn,
body.high-contrast .site-footer {
    color: var(--text-muted);
}

body.high-contrast .secondary-btn,
body.high-contrast .accessibility-action {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.66);
    color: var(--text-main);
}

body.high-contrast .lang-toggle,
body.high-contrast .accessibility-toggle {
    border-color: rgba(255, 255, 255, 0.78);
    background: var(--contrast-surface-soft);
}

[lang="en"] body.high-contrast .accessibility-toggle {
    border-color: var(--magic-gold);
    box-shadow: none;
}

body.high-contrast .primary-btn {
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.62);
}

body.high-contrast .accessibility-action.is-active {
    border-color: var(--magic-color);
    background: rgba(155, 243, 255, 0.22);
}

[lang="en"] body.high-contrast .accessibility-action.is-active {
    background: rgba(255, 215, 154, 0.24);
}

body.high-contrast .contact-icon-link svg {
    stroke: var(--magic-gold);
    filter: drop-shadow(0 0 10px var(--magic-glow));
}

body.high-contrast .contact-icon-link::before {
    background: linear-gradient(180deg, var(--contrast-tooltip-start), var(--contrast-tooltip-end));
    border-color: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
}

body.high-contrast .site-footer a,
body.high-contrast .story-jump-link {
    color: var(--magic-gold);
    text-decoration-thickness: 2px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation: none !important;
    transition: none !important;
}

body.reduce-motion #particles-canvas {
    display: none !important;
}

body.reduce-motion .reveal,
body.reduce-motion .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
}

body.reduce-motion .hero-content,
body.reduce-motion .hero-image-wrapper {
    opacity: 1 !important;
    transform: none !important;
}

body.reduce-motion .magic-pulse::before,
body.reduce-motion .magic-pulse::after {
    display: none !important;
}

body.reduce-motion .story-details.is-collapsed summary,
body.reduce-motion .story-details.is-collapsed summary::after {
    animation: none !important;
}

body.highlight-links a[href] {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

body.highlight-links .contact-icon-link {
    text-decoration: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center 30%, transparent 20%, var(--bg-deep) 100%);
    pointer-events: none;
    z-index: -1;
}

.ambient-glow {
    position: fixed;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw; height: 90vw;
    background: radial-gradient(circle, rgba(22, 36, 66, 0.8) 0%, transparent 60%); 
    opacity: 0.8;
    pointer-events: none;
    z-index: -2;
    filter: blur(80px);
    transition: background 0.8s ease;
}

[lang="en"] .ambient-glow {
    background: radial-gradient(circle, rgba(24, 45, 30, 0.6) 0%, transparent 60%); 
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

[lang="he"] h1, [lang="he"] h2, [lang="he"] h3, [lang="he"] .modal-title { font-family: var(--font-he-heading); }

[lang="en"] h1, [lang="en"] h2, [lang="en"] h3, [lang="en"] .modal-title {
    font-family: var(--font-en-heading);
    letter-spacing: 1.5px;
}

a { color: var(--text-main); text-decoration: none; transition: all var(--transition-smooth); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.site-header { position: absolute; top: 0; left: 0; width: 100%; padding: 30px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 20; }

.lang-toggle {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 22px; border-radius: 30px; font-size: 0.95rem; letter-spacing: 1px;
    transition: var(--transition-smooth); backdrop-filter: blur(10px); text-transform: uppercase;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.15); border-color: var(--magic-color);
    transform: translateY(-2px); box-shadow: 0 5px 15px var(--magic-glow);
}

.header-phone { font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; position: relative; }
.header-phone::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; right: 0; background-color: var(--magic-gold); transition: var(--transition-smooth); }
[dir="ltr"] .header-phone::after { right: auto; left: 0; }
.header-phone:hover::after { width: 100%; }
.header-phone:hover { text-shadow: 0 0 10px var(--magic-gold); color: var(--magic-gold); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: 100%; max-width: 1400px; margin: 0 auto; padding: 15vh 5% 10vh; min-height: 100vh; align-items: center; }

.hero-content { display: flex; flex-direction: column; gap: 25px; animation: slideUpFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; transform: translateY(30px); }

.hero-title-group { position: relative; }

.hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    background: linear-gradient(to bottom right, #ffffff, #cbe3f5); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(0, 119, 182, 0.4); 
    margin-bottom: -15px;
}

[lang="en"] .hero-content h1 {
    background: linear-gradient(to bottom, #ffffff 20%, #e2b464 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(226, 180, 100, 0.4); 
    letter-spacing: 3px;
    font-weight: 700;
}

.hero-content h2 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); color: var(--magic-gold); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 15px rgba(244, 208, 104, 0.3); }

[lang="en"] .hero-content h2 { text-shadow: 0 0 15px rgba(226, 180, 100, 0.4); }

.hook {
    font-size: 1.3rem; color: #dbe4f0; max-width: 550px; line-height: 1.8;
    border-right: 3px solid var(--magic-color); padding-right: 20px;
    background: linear-gradient(to left, rgba(72, 202, 228, 0.05), transparent); 
    padding-top: 5px; padding-bottom: 5px;
}

[lang="en"] .hook { color: #fcfaf5; background: linear-gradient(to left, rgba(226, 180, 100, 0.05), transparent); }

[dir="ltr"] .hook {
    border-right: none; border-left: 3px solid var(--magic-color);
    padding-right: 0; padding-left: 20px;
    background: linear-gradient(to right, rgba(72, 202, 228, 0.05), transparent); 
}

[lang="en"][dir="ltr"] .hook { background: linear-gradient(to right, rgba(226, 180, 100, 0.05), transparent); }

.cta-group { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.story-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--magic-gold);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.story-jump-link:hover { color: var(--text-main); text-shadow: 0 0 12px var(--magic-glow); }

.btn {
    position: relative; padding: 16px 36px; font-size: 1.15rem; font-weight: 600;
    border-radius: 8px; text-align: center; 
    transition: var(--transition-smooth); z-index: 1;
}

.primary-btn {
    background: var(--btn-gradient);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.4); 
    border: 1px solid rgba(255,255,255,0.2);
}

[lang="en"] .primary-btn {
    box-shadow: 0 10px 25px rgba(39, 84, 57, 0.5); 
    border: 1px solid rgba(226, 180, 100, 0.4); 
    color: #fff;
}

.primary-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px var(--magic-glow); border-color: var(--magic-gold); }

.secondary-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.secondary-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--magic-gold); color: var(--magic-gold); transform: translateY(-3px); }

/* === אנימציית אדוות קסם (Ripple) לכפתור התקשרו === */
.magic-pulse {
    position: relative;
    isolation: isolate;
    overflow: visible;
}
.magic-pulse::before,
.magic-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    border: 2px solid rgba(72, 202, 228, 0.55);
    z-index: -1;
    will-change: transform, opacity;
    transform: scale(0.99, 1.02);
    transform-origin: center center;
}
.magic-pulse::before {
    animation: soundWave 2.6s linear infinite;
}
.magic-pulse::after {
    animation: soundWave 2.6s linear infinite 1.3s;
}
[lang="en"] .magic-pulse::before,
[lang="en"] .magic-pulse::after {
    border-color: rgba(226, 180, 100, 0.58);
}

@keyframes soundWave {
    0% {
        opacity: 0;
        transform: scale(0.99, 1.02);
    }
    14% {
        opacity: 0.46;
        transform: scale(1.02, 1.14);
    }
    100% {
        opacity: 0;
        transform: scale(1.14, 1.62);
    }
}

.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1500px; animation: fadeInRight 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; z-index: 5; }
.book-container { position: relative; transform-style: preserve-3d; transition: transform 0.1s ease; will-change: transform; }
.book-container img { width: 100%; max-width: 450px; height: auto; border-radius: 4px 9px 9px 4px; box-shadow: -15px 15px 35px rgba(0,0,0,0.6), inset 4px 0 10px rgba(255,255,255,0.3), 0 0 50px rgba(72, 202, 228, 0.2); }
[lang="en"] .book-container img { box-shadow: -15px 15px 35px rgba(0,0,0,0.8), inset 4px 0 10px rgba(255,255,255,0.2), 0 0 60px rgba(226, 180, 100, 0.2); }
[dir="ltr"] .book-container img { border-radius: 9px 4px 4px 9px; box-shadow: 15px 15px 35px rgba(0,0,0,0.6), inset -4px 0 10px rgba(255,255,255,0.3), 0 0 50px rgba(72, 202, 228, 0.2); }
[lang="en"][dir="ltr"] .book-container img { box-shadow: 15px 15px 35px rgba(0,0,0,0.8), inset -4px 0 10px rgba(255,255,255,0.2), 0 0 60px rgba(226, 180, 100, 0.2); }

.book-glare { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.5) 25%, transparent 30%); border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease, background-position 0.1s ease; background-size: 200% 200%; }

.content-section { width: 100%; max-width: 900px; padding: 60px 5%; margin: 0 auto; position: relative; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.synopsis { font-size: 1.25rem; color: #dce4eb; text-align: justify; line-height: 1.9; }
[lang="en"] .synopsis { color: #fcfaf5; }
.synopsis p { margin-bottom: 25px; }
.synopsis p:first-child::first-letter { font-size: 3.8rem; font-family: var(--font-he-heading); color: var(--magic-color); float: inline-start; line-height: 1; margin-inline-end: 12px; text-shadow: 0 0 15px var(--magic-glow); }
[lang="en"] .synopsis p:first-child::first-letter { font-family: var(--font-en-heading); }

.book-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 70px; }
.detail-item { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(72, 202, 228, 0.2); border-radius: 12px; padding: 35px 20px; text-align: center; transition: var(--transition-smooth); position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
[lang="en"] .detail-item { border: 1px solid rgba(226, 180, 100, 0.2); }
.detail-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top, rgba(72, 202, 228, 0.1), transparent); pointer-events: none; }
[lang="en"] .detail-item::before { background: radial-gradient(circle at top, rgba(226, 180, 100, 0.1), transparent); }
.detail-item:hover { transform: translateY(-8px); border-color: var(--magic-color); box-shadow: 0 15px 40px rgba(72, 202, 228, 0.2); background: rgba(255, 255, 255, 0.07); }
[lang="en"] .detail-item:hover { box-shadow: 0 15px 40px rgba(226, 180, 100, 0.2); }

.detail-label { display: block; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; }
.detail-value { font-weight: 700; font-size: 1.6rem; color: var(--magic-gold); font-family: var(--font-he-heading); text-shadow: 0 0 10px rgba(244, 208, 104, 0.2); }
[lang="en"] .detail-value { font-family: var(--font-en-heading); text-shadow: 0 0 10px rgba(247, 213, 148, 0.2); }

.story-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px 5% 20px;
}
.story-header { max-width: 860px; margin-bottom: 35px; }
.story-header h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    margin-bottom: 16px;
    color: var(--magic-gold);
    text-shadow: 0 0 16px rgba(244, 208, 104, 0.28);
}
[lang="en"] .story-header h2 { text-shadow: 0 0 16px rgba(226, 180, 100, 0.32); }
.story-intro {
    font-size: 1.16rem;
    color: #dce4eb;
    line-height: 1.9;
    max-width: 780px;
}
[lang="en"] .story-intro { color: #fcfaf5; }

.story-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    align-items: start;
}

.story-figure {
    margin: 0;
    position: sticky;
    top: 24px;
}
.author-photo {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(72, 202, 228, 0.2);
}
[lang="en"] .author-photo {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(226, 180, 100, 0.2);
}
.author-photo-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.story-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.story-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.story-highlights li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(72, 202, 228, 0.22);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
[lang="en"] .story-highlights li { border-color: rgba(226, 180, 100, 0.28); }
.story-highlights li::before {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: -1;
    transform: translateX(-140%) rotate(8deg);
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(72, 202, 228, 0.18) 46%,
        rgba(72, 202, 228, 0.24) 50%,
        rgba(72, 202, 228, 0.18) 54%,
        transparent 80%
    );
    filter: blur(4px);
    animation: cardShimmer 5.1s linear infinite;
}
[lang="en"] .story-highlights li::before {
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(226, 180, 100, 0.18) 46%,
        rgba(226, 180, 100, 0.24) 50%,
        rgba(226, 180, 100, 0.18) 54%,
        transparent 80%
    );
}
.story-highlights li:nth-child(2)::before { animation-delay: 0.9s; }
.story-highlights li:nth-child(3)::before { animation-delay: 1.8s; }

@keyframes cardShimmer {
    0% { transform: translateX(-145%) rotate(8deg); opacity: 0; }
    8% { opacity: 1; }
    32% { transform: translateX(145%) rotate(8deg); opacity: 0.9; }
    40%, 100% { transform: translateX(145%) rotate(8deg); opacity: 0; }
}

.story-details {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin: 10px 0 26px;
    padding: 8px 0 14px;
}
.story-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--magic-gold);
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}
.story-details summary::-webkit-details-marker { display: none; }
.story-details summary::after {
    content: '+';
    margin-inline-start: 12px;
    font-size: 1.4rem;
    vertical-align: -2px;
    color: var(--text-main);
    line-height: 1;
    display: inline-block;
    width: 1ch;
    text-align: center;
}
.story-details.is-expanded summary::after { content: '\2212'; }
.story-details summary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.story-details.is-expanded summary {
    background: rgba(255, 255, 255, 0.09);
}
.story-details.is-collapsed summary {
    animation: storySummaryInvite 2.1s ease-in-out infinite;
}
.story-details.is-collapsed summary::after {
    animation: storySummaryIconInvite 1.05s ease-in-out infinite;
}
.story-details.is-expanded summary,
.story-details.is-expanded summary::after {
    animation: none;
}

@keyframes storySummaryInvite {
    0%, 100% {
        box-shadow: 0 0 0 rgba(72, 202, 228, 0);
        transform: none;
    }
    50% {
        box-shadow: 0 0 18px rgba(72, 202, 228, 0.24);
        transform: none;
    }
}
[lang="en"] .story-details.is-collapsed summary { animation-name: storySummaryInviteEn; }
@keyframes storySummaryInviteEn {
    0%, 100% {
        box-shadow: 0 0 0 rgba(226, 180, 100, 0);
        transform: none;
    }
    50% {
        box-shadow: 0 0 18px rgba(226, 180, 100, 0.26);
        transform: none;
    }
}

@keyframes storySummaryIconInvite {
    0%, 100% { transform: none; opacity: 0.88; }
    50% { transform: none; opacity: 1; }
}

.story-body {
    margin-top: 0;
    display: grid;
    gap: 12px;
    color: #dce4eb;
    line-height: 1.85;
    height: 0;
    opacity: 0;
    overflow: hidden;
}
.story-details > .story-body {
    display: grid;
}
.story-details.is-collapsed > .story-body {
    display: grid;
    pointer-events: none;
    height: 0;
    opacity: 0;
    margin-top: 0;
}
.story-details.is-expanded > .story-body {
    display: grid;
    height: auto;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
}
[lang="en"] .story-body { color: #fcfaf5; }
.story-body h3 {
    font-size: 1.2rem;
    margin-top: 8px;
    color: var(--magic-gold);
}
.story-body p { margin: 0; }
.story-body ul {
    margin: 4px 0 0;
    padding-inline-start: 18px;
    display: grid;
    gap: 8px;
}

.story-quote {
    margin: 0 0 22px;
    padding: 20px;
    border-inline-start: 3px solid var(--magic-color);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
}
[dir="ltr"] .story-quote {
    border-inline-start: none;
    border-inline-end: 3px solid var(--magic-color);
    border-radius: 12px 0 0 12px;
}
.story-quote p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.9;
    font-style: italic;
}
.story-quote cite {
    margin-top: 10px;
    display: block;
    color: var(--magic-gold);
    font-weight: 700;
    font-style: normal;
}

.story-final {
    font-size: 1.07rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

#story-cta {
    display: block;
    width: 100%;
    max-width: 380px;
    padding: 13px 18px;
    white-space: normal;
    line-height: 1.45;
    font-size: 1.02rem;
}
#story-cta:hover,
#story-cta:focus-visible {
    transform: none;
}
#btn-buy:hover,
#btn-buy:focus-visible {
    transform: none;
}
#btn-buy,
#story-cta {
    position: relative;
    overflow: visible;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}
#btn-buy:hover,
#btn-buy:focus-visible,
#story-cta:hover,
#story-cta:focus-visible {
    transform: none;
    border-color: var(--magic-gold);
    box-shadow: 0 16px 34px var(--magic-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    filter: brightness(1.04) saturate(1.08);
}

.bottom-wrapper { background: linear-gradient(180deg, transparent 0%, rgba(0, 5, 15, 0.8) 100%); padding-top: 60px; margin-top: 40px; }
[lang="en"] .bottom-wrapper { background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 8, 0.9) 100%); }

.contact-section { text-align: center; padding: 20px 5% 60px; }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.contact-section h3 { font-size: 2.2rem; margin-bottom: 34px; }

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.contact-icon-link {
    width: 68px;
    height: 68px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
}

.contact-icon-link svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--magic-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(244, 208, 104, 0.22));
}

[lang="en"] .contact-icon-link svg {
    filter: drop-shadow(0 0 10px rgba(226, 180, 100, 0.24));
}

.contact-icon-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: var(--magic-color);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.contact-icon-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    min-width: max-content;
    max-width: 280px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid var(--magic-color);
    background: linear-gradient(180deg, rgba(10, 17, 34, 0.94), rgba(8, 12, 22, 0.98));
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 8;
}

[lang="en"] .contact-icon-link::before {
    background: linear-gradient(180deg, rgba(12, 17, 14, 0.94), rgba(8, 10, 9, 0.98));
}

.contact-icon-link:hover,
.contact-icon-link:focus-visible {
    transform: translateY(-2px) scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 0 16px var(--magic-glow));
}

.contact-icon-link:hover::before,
.contact-icon-link:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contact-icon-link:hover::after,
.contact-icon-link:focus-visible::after {
    width: 34px;
}

.site-footer { text-align: center; padding: 30px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--text-muted); font-size: 1rem; }
[lang="en"] .site-footer { border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer a {
    color: var(--magic-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.site-footer a:hover { color: var(--text-main); }

.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2000; display: flex; justify-content: center; align-items: center; visibility: hidden; opacity: 0; transition: visibility 0s 0.4s, opacity 0.4s ease; }
.modal.is-open { visibility: visible; opacity: 1; transition: visibility 0s 0s, opacity 0.4s ease; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(4, 8, 16, 0.85); backdrop-filter: blur(8px); }
[lang="en"] .modal-backdrop { background: rgba(5, 7, 6, 0.9); }

.modal-content { position: relative; background: linear-gradient(to bottom, #0f182b, #070b14); border: 1px solid rgba(72, 202, 228, 0.4); border-radius: 12px; width: 90%; max-width: 800px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,1), 0 0 40px rgba(72, 202, 228, 0.15); transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
[lang="en"] .modal-content { background: linear-gradient(to bottom, #131c17, #080a09); border: 1px solid rgba(226, 180, 100, 0.4); box-shadow: 0 20px 60px rgba(0,0,0,1), 0 0 40px rgba(226, 180, 100, 0.15); }
.modal.is-open .modal-content { transform: scale(1) translateY(0); }

.modal-header { padding: 30px 40px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
[lang="en"] .modal-header { border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-title { font-size: 2rem; color: var(--magic-color); }

.close-btn { font-size: 2.5rem; color: var(--text-muted); transition: var(--transition-smooth); width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.close-btn:hover { color: #fff; background: rgba(255,255,255,0.1); transform: rotate(90deg); }

.modal-body { padding: 40px; overflow-y: auto; line-height: 2; font-size: 1.15rem; color: #e2e8f0; }
[lang="en"] .modal-body { color: #fcfaf5; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.modal-body::-webkit-scrollbar-thumb { background: rgba(72, 202, 228, 0.5); border-radius: 4px; }
[lang="en"] .modal-body::-webkit-scrollbar-thumb { background: rgba(226, 180, 100, 0.5); }

.buy-modal-content { max-width: 560px; }
.buy-modal-body { display: grid; gap: 18px; }
.buy-modal-subtitle { margin: 0; color: var(--text-muted); }
.buy-options-links { display: grid; gap: 12px; }
.buy-options-links .btn { width: 100%; }

.accessibility-widget {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    z-index: 2200;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.accessibility-toggle {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    background: rgba(7, 12, 24, 0.9);
    border: 1px solid rgba(244, 208, 104, 0.55);
    box-shadow: none;
    outline: 1px solid transparent;
    outline-offset: 2px;
    transition: border-color 0.2s ease, outline-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

[lang="en"] .accessibility-toggle {
    color: #fcfaf5;
    background: rgba(9, 15, 11, 0.92);
    border-color: rgba(226, 180, 100, 0.72);
    box-shadow: none;
}

.accessibility-toggle:hover {
    border-color: rgba(244, 208, 104, 0.8);
    outline-color: rgba(244, 208, 104, 0.55);
    transform: translateY(-1px);
}

[lang="en"] .accessibility-toggle:hover {
    border-color: rgba(226, 180, 100, 0.86);
    outline-color: rgba(226, 180, 100, 0.55);
}

.accessibility-toggle:active {
    transform: translateY(0) scale(0.985);
}

.accessibility-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.12rem;
    height: 1.12rem;
    line-height: 1;
    transform: translateY(-0.5px);
}

.accessibility-icon-svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--magic-gold);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

[lang="en"] .accessibility-icon-svg {
    stroke: #ffe8bb;
    filter: none;
}

.accessibility-panel {
    width: min(270px, calc(100vw - 30px));
    padding: 12px;
    border-radius: 12px;
    background: rgba(7, 12, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(9px);
}

[lang="en"] .accessibility-panel {
    background: rgba(8, 11, 10, 0.95);
}

.accessibility-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--magic-gold);
}

.accessibility-actions {
    display: grid;
    gap: 8px;
}

.accessibility-action {
    width: 100%;
    text-align: start;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.accessibility-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accessibility-action.is-active {
    border-color: var(--magic-color);
    background: rgba(72, 202, 228, 0.12);
}

[lang="en"] .accessibility-action.is-active {
    background: rgba(226, 180, 100, 0.12);
}

.accessibility-reset {
    border-color: rgba(244, 208, 104, 0.35);
}

@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { to { opacity: 1; } }

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 18vh; gap: 40px; } .hero-content { align-items: center; } .hook { border: none !important; padding: 0 !important; background: none !important; } .book-container img { max-width: 70%; margin: 0 auto; } .story-layout { grid-template-columns: 1fr; } .story-figure { position: static; } .author-photo { max-width: 320px; margin: 0 auto; } .author-photo-caption { text-align: center; } }
@media (max-width: 768px) { .book-details { grid-template-columns: 1fr; gap: 20px; } .story-highlights { grid-template-columns: 1fr; } .story-content { padding: 22px; } #story-cta { max-width: 100%; } }
@media (max-width: 480px) { .hero-content h1 { font-size: 3rem; } .cta-group { flex-direction: column; width: 100%; } .btn { width: 100%; } .modal-content { width: 95%; max-height: 90vh; } .modal-header, .modal-body { padding: 25px 20px; } .story-header h2 { font-size: 2rem; } .story-intro { font-size: 1.04rem; } #story-cta { font-size: 0.95rem; padding: 12px 14px; } }
@media (max-width: 640px) { .accessibility-widget { bottom: 12px; inset-inline-end: 12px; } .accessibility-panel { width: min(250px, calc(100vw - 24px)); } }

.skip-link { position: absolute; top: -50px; left: 0; background: var(--magic-color); color: #000; padding: 10px 20px; z-index: 9999; transition: top 0.3s; font-weight: bold; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px dashed var(--magic-color); outline-offset: 4px; }
summary:focus-visible,
.close-btn:focus-visible,
.accessibility-toggle:focus-visible,
.accessibility-action:focus-visible,
.contact-icon-link:focus-visible {
    outline: 2px solid var(--magic-gold);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    #particles-canvas { display: none; }

    .reveal,
    .reveal-scale,
    .hero-content,
    .hero-image-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }

    .magic-pulse::before,
    .magic-pulse::after {
        display: none !important;
    }
}
