/* 51ROOMS — public site. Brand red on a selectable theme (dark / white / beige / gray), set in the admin panel. */
:root {
    /* Dark theme (default tokens) */
    --bg: #0b0909;
    --bg-2: #141010;
    --bg-3: #1d1616;
    --ink: #f6f2f2;
    --ink-strong: #ffffff;
    --text: #d9cfcf;
    --lead: #e2d8d8;
    --muted: #b9adad;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --header-bg: rgba(11, 9, 9, .82);
    --hero-glow: rgba(165, 13, 24, .45);
    --page-glow: rgba(110, 0, 8, .55);
    --final-glow: #6e0008;
    --input-bg: #0b0909;
    --ghost-border: rgba(255, 255, 255, .5);
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --img-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    --gold: #c19a4b;
    --book-bg: #f7f3f2;
    --book-ink: #1b1515;
    --book-text: #3d3434;

    /* Fixed in every theme */
    --red: #d0101e;
    --red-2: #a50d18;
    --red-deep: #6e0008;
    --band-bg: #0b0909;
    --band-ink: #f6f2f2;
    --band-muted: #b9adad;
    --band-line: rgba(255, 255, 255, .09);
    --radius: 14px;
    --header-h: 72px;
}

/* Light themes share everything except the paper colour. */
[data-theme="white"], [data-theme="beige"], [data-theme="gray"] {
    --ink: #1d1717;
    --ink-strong: #120d0d;
    --text: #3f3535;
    --lead: #4a3f3f;
    --muted: #6f6262;
    --line: rgba(40, 15, 15, .10);
    --line-strong: rgba(40, 15, 15, .2);
    --hero-glow: rgba(208, 16, 30, .12);
    --page-glow: rgba(208, 16, 30, .10);
    --final-glow: rgba(208, 16, 30, .16);
    --ghost-border: rgba(30, 15, 15, .35);
    --shadow: 0 18px 45px rgba(60, 20, 20, .12);
    --img-shadow: 0 26px 60px rgba(60, 20, 20, .22);
    --gold: #9a7330;
    --book-bg: #161212;
    --book-ink: #f6f2f2;
    --book-text: #d9cfcf;
}
[data-theme="white"] { --bg: #ffffff; --bg-2: #f7f4f3; --bg-3: #efe9e7; --input-bg: #ffffff; --header-bg: rgba(255, 255, 255, .88); }
[data-theme="beige"] {
    --bg: #faf5ee; --bg-2: #f2e9dc; --bg-3: #e9ddcb; --input-bg: #fffdf9; --header-bg: rgba(250, 245, 238, .9);
    --ink: #2b221c; --text: #4a3d33; --lead: #54463a; --muted: #7a6a5b; --line: rgba(70, 45, 20, .12); --line-strong: rgba(70, 45, 20, .22);
}
/* Cool, formal slate-gray. */
[data-theme="gray"] {
    --bg: #f1f3f6; --bg-2: #e4e8ed; --bg-3: #d5dbe2; --input-bg: #ffffff; --header-bg: rgba(241, 243, 246, .92);
    --ink: #1c222a; --ink-strong: #0f141a; --text: #3a434e; --lead: #444e5a; --muted: #5d6874;
    --line: rgba(20, 32, 48, .11); --line-strong: rgba(20, 32, 48, .2);
    --shadow: 0 18px 45px rgba(20, 32, 48, .12); --img-shadow: 0 26px 60px rgba(20, 32, 48, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: 'Tajawal', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; color: var(--ink-strong); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Scroll progress bar */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: right; }

/* Buttons */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.7em; border-radius: 999px; font-weight: 800; font-size: 1rem;
    border: 2px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(208, 16, 30, .3); }
.btn-red:hover { background: var(--red-2); box-shadow: 0 14px 36px rgba(208, 16, 30, .4); }
/* Light sweep across the main button on hover. */
.btn-red::after {
    content: ''; position: absolute; inset: 0; transform: translateX(120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transition: transform .6s ease;
}
.btn-red:hover::after { transform: translateX(-120%); }
.btn-ghost { border-color: var(--ghost-border); color: var(--ink-strong); }
.btn-ghost:hover { border-color: var(--ink-strong); background: var(--line); }
.btn-sm { padding: .5em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Brand wordmark */
.brand { display: inline-flex; align-items: baseline; direction: ltr; font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: .02em; font-size: 1.55rem; line-height: 1; }
.brand-num { color: var(--red); }
.brand-word { color: var(--ink-strong); }
.brand-lg { font-size: 2rem; margin-bottom: .6rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--header-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 700; font-size: .98rem; }
.main-nav a:not(.btn) { position: relative; color: var(--muted); transition: color .2s; }
.main-nav a:not(.btn)::after {
    content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--red); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--ink-strong); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero {
    position: relative; min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center;
    padding: 64px 0 40px; overflow: hidden;
    background: radial-gradient(ellipse 60% 70% at 25% 45%, var(--hero-glow), transparent 70%), var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-visual { perspective: 1200px; }
.hero-visual img {
    border-radius: 18px; border: 1px solid var(--line-strong);
    box-shadow: var(--img-shadow), 0 0 0 8px rgba(208, 16, 30, .08);
    transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transition: transform .3s ease-out;
}
.kicker { color: var(--red); font-weight: 800; font-size: 1.05rem; margin-bottom: .6rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.stats-bar {
    margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 22px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink-strong); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
    display: inline-block; color: var(--red); font-weight: 800; font-size: .9rem; letter-spacing: .04em;
    padding: .2em .9em; border: 1px solid rgba(208, 16, 30, .45); border-radius: 999px; margin-bottom: 1rem;
}
.text { color: var(--text); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-reverse > :first-child { order: 2; }
.media img { border-radius: var(--radius); }
.media-frame img { box-shadow: var(--shadow); border: 1px solid var(--line); }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-inline-start: 2rem; font-weight: 700; }
.checklist li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checklist-gold li::before { background-color: var(--gold); }

/* 51-week strip */
.week-strip { display: grid; grid-template-columns: repeat(17, 1fr); gap: 5px; margin: 1.6rem 0 .8rem; direction: rtl; }
.week-strip span {
    aspect-ratio: 1; display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--muted);
    border: 1px solid var(--line-strong); border-radius: 5px; font-family: 'Montserrat', sans-serif;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.week-strip span:hover { transform: scale(1.25); border-color: var(--red); color: var(--red); }
.week-strip span.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Training map */
.map-stats { display: flex; justify-content: center; gap: 14px; margin: -18px 0 30px; }
.map-stats div {
    min-width: 120px; padding: 12px 22px; border-radius: 14px; text-align: center;
    background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.9rem; line-height: 1.1; color: var(--red); }
.map-stats span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.map-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.map-canvas {
    min-height: 520px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
    background: var(--bg-3); box-shadow: var(--shadow); z-index: 0;
}
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; max-height: 520px; overflow-y: auto; padding-inline-end: 4px; }
.map-item {
    width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: start; cursor: pointer;
    padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
    font: inherit; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
/* Every city gets its own colour, shared by its card and its pin on the map */
.map-entry:nth-child(8n + 1) .map-item { --c: #e11d48; }
.map-entry:nth-child(8n + 2) .map-item { --c: #2563eb; }
.map-entry:nth-child(8n + 3) .map-item { --c: #16a34a; }
.map-entry:nth-child(8n + 4) .map-item { --c: #f59e0b; }
.map-entry:nth-child(8n + 5) .map-item { --c: #7c3aed; }
.map-entry:nth-child(8n + 6) .map-item { --c: #0891b2; }
.map-entry:nth-child(8n + 7) .map-item { --c: #db2777; }
.map-entry:nth-child(8n + 8) .map-item { --c: #ea580c; }
.map-item {
    border-inline-start: 5px solid var(--c);
    background: linear-gradient(90deg, var(--bg) 55%, color-mix(in srgb, var(--c) 9%, var(--bg)));
}
.map-item:hover { border-color: var(--c); transform: translateX(-4px); }
.map-item.is-active {
    border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg));
    box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 28%, transparent);
}
.map-item-pin { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.map-item-text { display: grid; gap: 2px; }
.map-item strong { color: var(--ink-strong); font-size: 1.02rem; }
.map-item small { color: var(--muted); font-weight: 600; }
.map-item em { font-style: normal; color: var(--c); font-weight: 800; font-size: .82rem; }
.map-item-desc { display: none; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.map-item.is-active .map-item-desc { display: block; }
.map-entry { position: relative; }
/* Post link: always visible without JS; with JS it shows under the selected city. */
.map-item-link, .leaflet-popup-content a.map-popup-link {
    display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 800; color: #1877F2;
}
.map-item-link { margin: -2px 40px 6px; }
.map-item-link:hover, .leaflet-popup-content a.map-popup-link:hover { color: #0b5fcc; text-decoration: underline; }
.fb-icon { flex: none; transition: transform .2s; }
.map-item-link:hover .fb-icon, .map-popup-link:hover .fb-icon { transform: scale(1.12); }
.js .map-item-link { display: none; }
.js .map-entry:has(.map-item.is-active) .map-item-link { display: inline-flex; }
.leaflet-popup-content a.map-popup-link { margin-top: 8px; }
.map-online { text-align: center; margin: 22px 0 0; color: var(--muted); font-weight: 700; }
.map-online::before { content: '🌐 '; }
/* Leaflet marker + popup in the site's style */
.map-pin { position: relative; }
.map-pin span {
    position: absolute; inset: 0; border-radius: 50%; background: var(--c, var(--red)); border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.map-pin span::before {
    content: ''; position: absolute; inset: -13px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--red)) 45%, transparent);
    animation: pin-pulse 2s ease-out infinite; z-index: -1;
}
.map-pin.is-active span { background: #fff; border-color: var(--c, var(--red)); transform: scale(1.25); }
.leaflet-control-layers { border-radius: 12px !important; font-family: 'Tajawal', sans-serif; font-weight: 700; }
.leaflet-control-layers-expanded { padding: 8px 12px; direction: rtl; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.leaflet-popup-content-wrapper { border-radius: 14px; font-family: 'Tajawal', sans-serif; direction: rtl; text-align: right; }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.7; }
.leaflet-popup-content strong { display: block; color: var(--red); font-size: 1.05rem; }
.leaflet-container { font-family: 'Tajawal', sans-serif; }

/* Rooms map: 51 doors. Open rooms stand ajar and glow; locked ones are shut with a padlock. */
.rooms-hint { display: inline-block; margin: 0; font-weight: 800; color: var(--red); }
.rooms-hint::before { content: '👆 '; }
/* Winding route like the original roadmap: rows of 4 | 4, alternating direction, curved arrows at the ends. */
.rooms {
    --path: rgba(208, 16, 30, .55); --turn: 34px; --row-gap: 34px; --mid: 58px; --gap: 12px;
    direction: ltr; display: grid; row-gap: var(--row-gap); padding: 26px calc(var(--turn) + 18px);
    background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.rooms-row {
    position: relative; display: grid; align-items: center; column-gap: var(--gap);
    grid-template-columns: repeat(4, minmax(0, 1fr)) var(--mid) repeat(4, minmax(0, 1fr));
}
.rooms-row.rev { direction: rtl; }
/* Connecting line behind the doors. */
.rooms-row::before {
    content: ''; position: absolute; z-index: 0; top: 50%; height: 2px; background: var(--path);
    inset-inline-start: 6%; inset-inline-end: calc(-1 * var(--turn));
}
.rooms-row.is-last::before { inset-inline-end: 26%; }
.rooms-mid { position: relative; z-index: 1; display: grid; place-items: center; }
.rooms-book {
    display: grid; justify-items: center; gap: 2px; color: var(--ink-strong); text-align: center;
    background: var(--bg); padding: 6px 4px; border-radius: 12px;
}
.rooms-book svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 6px 16px rgba(208, 16, 30, .25); }
.rooms-book small { font-size: .62rem; font-weight: 900; line-height: 1.3; white-space: nowrap; }
/* Curved arrow from the end of one row down into the next row. */
.rooms-turn {
    position: absolute; z-index: 0; top: 50%; height: calc(100% + var(--row-gap)); width: var(--turn);
    inset-inline-end: calc(-1 * var(--turn));
    border: 2px solid var(--path); border-inline-start: 0;
    border-start-end-radius: 18px; border-end-end-radius: 18px;
}
.rooms-turn::after {
    content: ''; position: absolute; bottom: -7px; inset-inline-start: -4px;
    border-block: 6px solid transparent; border-inline-end: 9px solid var(--path);
}
.milestone {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--ink-strong); color: var(--bg); box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    transition: transform .2s, background .2s;
}
.milestone:hover { transform: scale(1.12) rotate(-6deg); background: var(--red); color: #fff; }
.rooms-turn .milestone { position: absolute; top: 50%; inset-inline-end: -19px; transform: translateY(-50%); }
.rooms-turn .milestone:hover { transform: translateY(-50%) scale(1.12); }
.rooms-finish { position: relative; z-index: 1; grid-column: 4 / span 2; display: flex; gap: 10px; justify-content: center; }
.rooms .room { z-index: 1; }
.room {
    position: relative; display: block; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; perspective: 500px;
    background: #2a0306; border: 1px solid rgba(208, 16, 30, .35); box-shadow: 0 8px 18px rgba(60, 10, 10, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.room-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff3e0 0, #ff6a5c 30%, #b30d19 62%, #2a0306 100%); }
.room-door {
    position: absolute; inset: 0; transform-origin: right center; transition: transform .55s cubic-bezier(.2, .7, .2, 1);
    background: linear-gradient(160deg, #a70f1b 0%, #6e0710 55%, #3d0308 100%);
    box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), inset 0 0 0 7px rgba(255, 255, 255, .06);
}
.room-door::after { content: ''; position: absolute; inset: 12% 18% 40%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 4px; }
.room-handle { position: absolute; left: 12%; top: 50%; width: 4px; height: 28%; transform: translateY(-50%); border-radius: 4px; background: #1a0204; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.room-num {
    position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 16%; pointer-events: none;
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.2rem, 2.1vw, 1.6rem); color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.room-badge, .room-lock { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); pointer-events: none; }
.room-badge { background: #fff; color: var(--red); font-size: .68rem; font-weight: 900; padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.room-lock { color: rgba(255, 255, 255, .7); }

.room.is-open { border-color: rgba(255, 140, 120, .6); animation: room-pulse 2.6s ease-in-out infinite; }
.room.is-open .room-door { transform: rotateY(-32deg); }
.room.is-open:hover .room-door, .room.is-open:focus-visible .room-door { transform: rotateY(-68deg); }
.room.is-open:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 32px rgba(208, 16, 30, .4); }
@keyframes room-pulse { 50% { box-shadow: 0 0 0 4px rgba(208, 16, 30, .18), 0 10px 26px rgba(208, 16, 30, .35); } }

.room.is-locked .room-glow { filter: brightness(.35) saturate(.6); }
.room.is-locked .room-door { filter: saturate(.7) brightness(.85); }
.room.is-locked:hover .room-door { transform: rotateY(-7deg); }
.room.is-locked:hover { transform: translateY(-3px); }
.room.shake { animation: room-shake .45s ease; }
@keyframes room-shake { 20%, 60% { transform: translateX(-5px) rotate(-2deg); } 40%, 80% { transform: translateX(5px) rotate(2deg); } }
.room:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Rooms appear one after another the first time the map scrolls into view. */
.js .rooms .room { opacity: 0; transform: translateY(14px) scale(.95); }
.js .rooms.in .room { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--i) * 16ms); }
.js .rooms.in .room.is-open:hover { transform: translateY(-6px) scale(1.04); transition-delay: 0s; }
.js .rooms.in .room.is-locked:hover { transform: translateY(-3px); transition-delay: 0s; }

.rooms-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.rooms-legend .dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-inline-end: 8px; vertical-align: -2px; }
.dot-open { background: radial-gradient(circle, #ffb3a8, var(--red)); box-shadow: 0 0 0 3px rgba(208, 16, 30, .2); }
.dot-locked { background: #4b0309; }

/* Room dialog */
.room-dialog {
    width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 34px 30px 30px;
    border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}
.room-dialog[open] { animation: dialog-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.room-dialog::backdrop { background: rgba(15, 5, 5, .62); backdrop-filter: blur(5px); }
.room-dialog-close {
    position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink-strong); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.room-dialog-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
.room-dialog-kicker { display: inline-block; color: var(--red); font-weight: 900; margin-bottom: .3rem; }
.room-dialog h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.room-dialog p { color: var(--text); }
.room-dialog-img { width: 100%; border-radius: 12px; margin: 4px 0 16px; box-shadow: var(--shadow); }
.room-dialog-lock { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 12px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 14px 30px rgba(208, 16, 30, .35); animation: lock-wiggle 1.2s ease .2s; }
@keyframes lock-wiggle { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pillar {
    grid-column: span 2;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
/* 3 + 2 layout: the last two cards share the second row evenly. */
.pillar:nth-last-child(2):nth-child(3n + 1), .pillar:last-child:nth-child(3n + 2) { grid-column: span 3; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(208, 16, 30, .55); box-shadow: var(--shadow); }
.pillar-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar-img { transform: scale(1.05); }
.pillar-body { position: relative; z-index: 1; background: var(--bg-2); padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.pillar-badge { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: .2em .6em; }
.pillar h3 { margin: 0; }
.pillar-tagline { color: var(--red); font-weight: 700; font-size: .95rem; margin-bottom: .6em; }
.pillar-desc { color: var(--muted); font-size: .97rem; }
.link-arrow { margin-top: auto; color: var(--ink-strong); font-weight: 700; font-size: .95rem; }
.link-arrow::after { content: ' ←'; color: var(--red); }

.wide-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.awards { margin-top: 48px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(208, 16, 30, .45); }
.feature-media { overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.feature:hover img { transform: scale(1.06); }
.feature-body { padding: 20px 22px 24px; }
.feature-body h3 { margin-bottom: .4em; }
.feature-body p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Hook cards: 3-column grid (two rows of three) with a large view on click */
.hooks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hook-tile {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
    background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hook-tile:hover, .hook-tile:focus-visible { transform: translateY(-6px); border-color: rgba(208, 16, 30, .5); box-shadow: 0 24px 50px rgba(60, 10, 10, .22); }
.hook-tile-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.hook-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hook-tile:hover .hook-tile-media img { transform: scale(1.06); }
.hook-tile-zoom {
    position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
    background: rgba(110, 0, 8, .45); opacity: 0; transition: opacity .25s;
}
.hook-tile-zoom svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.hook-tile:hover .hook-tile-zoom, .hook-tile:focus-visible .hook-tile-zoom { opacity: 1; }
.hook-tile-body { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.hook-tile-num {
    flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2));
}
.hook-tile-title { font-weight: 800; font-size: 1.08rem; color: var(--ink-strong); }
.lightbox {
    width: min(960px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden;
    background: #111; box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}
.lightbox[open] { animation: dialog-in .35s cubic-bezier(.2, .8, .2, 1); }
.lightbox::backdrop { background: rgba(10, 5, 5, .75); backdrop-filter: blur(5px); }
.lightbox-img { width: 100%; height: auto; display: block; }
.lightbox-caption { margin: 0; padding: 14px 22px; color: #fff; font-weight: 800; text-align: center; }

/* Hook cards: horizontal scroller with arrows and drag */
.hooks-wrap { position: relative; }
.hooks-scroller {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100vw - 1180px) / 2)) 18px;
    scrollbar-color: var(--red) transparent; cursor: grab;
}
.hooks-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.hooks-scroller.dragging img { pointer-events: none; }
.hook-card { flex: 0 0 min(420px, 80vw); margin: 0; scroll-snap-align: center; transition: transform .25s; }
.hook-card:hover { transform: translateY(-4px); }
.hook-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); user-select: none; -webkit-user-drag: none; }
.hook-card figcaption { margin-top: 10px; font-weight: 800; }
.hook-card figcaption span { color: var(--red); margin-inline-end: .3em; font-family: 'Montserrat', sans-serif; }
.hooks-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.hooks-nav button {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg);
    color: var(--ink-strong); font-size: 1.3rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.hooks-nav button:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }

/* Tips */
/* Board: big red stage showing one tip + a clickable list of all tips. Without JS every tip is listed in the stage. */
.tips-board { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: stretch; }
.tips-stage {
    position: relative; overflow: hidden; min-height: 380px; padding: 44px 44px 30px;
    background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border-radius: 20px;
    box-shadow: 0 24px 60px rgba(208, 16, 30, .28); display: flex; flex-direction: column;
}
.tips-stage::before {
    content: '\201D'; position: absolute; top: -40px; inset-inline-end: 18px; font-family: Georgia, serif;
    font-size: 15rem; line-height: 1; color: #fff; opacity: .12; pointer-events: none;
    animation: quote-float 6s ease-in-out infinite;
}
@keyframes quote-float { 50% { transform: translateY(10px) rotate(-4deg); } }
.tip-slide { margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.js .tip-slide { display: none; margin: 0; flex: 1; justify-content: center; }
.js .tip-slide.is-active { display: flex; animation: tip-in .55s ease both; }
@keyframes tip-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tip-slide .tip-title {
    align-self: flex-start; font-size: .9rem; font-weight: 800; color: #fff;
    background: rgba(255, 255, 255, .16); border-radius: 999px; padding: .25em 1em;
}
.tip-body { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; line-height: 1.65; color: #fff; }
/* Words fade in one after another (spans added by site.js). */
.tip-body .w { display: inline-block; opacity: 0; transform: translateY(8px); animation: word-in .45s ease forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.tip-slide cite { font-style: normal; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.tip-slide cite::before { content: '— '; }
.tips-controls { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.tips-controls button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent;
    color: #fff; font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.tips-controls button:hover { background: #fff; color: var(--red); transform: scale(1.06); }
.tips-count { font-family: 'Montserrat', sans-serif; font-weight: 700; color: rgba(255, 255, 255, .85); }
.tips-count b { color: #fff; font-size: 1.3rem; }
.tips-timer { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); }
.tips-timer span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: right; transform: scaleX(0); }
.tips-timer span.run { animation: tip-timer var(--tip-ms, 7000ms) linear forwards; }
.tips-stage:hover .tips-timer span.run, .tips-stage:focus-within .tips-timer span.run { animation-play-state: paused; }
@keyframes tip-timer { to { transform: scaleX(1); } }
.tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.tips-list a {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--line); font-weight: 800; color: var(--text);
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tips-list a:hover { border-color: rgba(208, 16, 30, .45); color: var(--ink-strong); transform: translateX(-4px); }
.tips-list a.is-active { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--bg); transform: translateX(-6px); }
.tips-num { font-family: 'Montserrat', sans-serif; font-size: .85rem; color: var(--red); min-width: 1.6em; }
.tips-list a.is-active .tips-num { color: var(--red); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(326px, 1fr)); gap: 22px; align-items: start; }
.video.is-extra { display: none; }
.videos.show-all .video.is-extra { display: block; }
.video .instagram-media {
    margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important;
    background: var(--bg-2) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important;
}
/* Before Instagram's script runs: a tidy placeholder card with the link. */
.video blockquote.instagram-media { min-height: 420px; display: grid; place-items: center; padding: 20px; }
.video blockquote.instagram-media a { color: var(--red); font-weight: 800; }
.video-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-title { margin: 10px 0 0; font-weight: 800; }
.videos-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Library */
.books { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; perspective: 900px; }
/* Moving shelf (site.js adds .is-moving and a cloned set for a seamless loop). */
.books-shelf { position: relative; }
.books-shelf.is-moving {
    overflow: hidden; padding: 14px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.books-shelf.is-moving .books {
    flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 20px;
    animation: shelf var(--shelf-dur, 60s) linear infinite;
}
.books-shelf.is-moving .book-cover { flex: 0 0 150px; min-width: 0; }
.js .books-shelf.is-moving .book-cover.reveal { opacity: 1; transform: none; } /* the shelf itself moves, so no per-book reveal */
.books-shelf.is-moving:hover .books, .books-shelf.is-moving:focus-within .books { animation-play-state: paused; }
/* RTL: the list runs to the left, so moving right brings the next books into view. */
@keyframes shelf { to { transform: translateX(var(--shelf-w, 0px)); } }
.book-cover { flex: 0 1 calc((100% - 6 * 20px) / 7); min-width: 100px; margin: 0; text-align: center; }
.book-frame {
    position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden;
    background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
}
.book-frame.loaded { animation: none; background: #fff; }
@keyframes shimmer { to { background-position: -300% 0; } }
.book-cover img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
    box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, opacity .4s ease;
}
.js .book-frame:not(.loaded) img { opacity: 0; }
.book-cover:hover .book-frame { overflow: visible; }
.book-cover:hover img { transform: translateY(-8px) rotateY(-14deg); box-shadow: 14px 22px 40px rgba(0, 0, 0, .35); }
.book-cover figcaption { margin-top: 12px; display: grid; gap: 2px; }
.book-cover strong { font-size: .9rem; line-height: 1.4; color: var(--ink-strong); }
.book-cover span { color: var(--muted); font-size: .8rem; }

/* Trainer */
.trainer-photo { position: relative; }
.trainer-photo::before {
    content: ''; position: absolute; inset: 12% 8% 0; border-radius: 50% 50% var(--radius) var(--radius);
    background: radial-gradient(circle at 50% 35%, var(--hero-glow), transparent 70%);
}
.trainer-photo img { position: relative; margin-inline: auto; max-height: 560px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); border-radius: var(--radius); }
.role { color: var(--gold); font-weight: 800; font-size: 1.1rem; margin-top: -.3em; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 1.6rem 0 .4rem; }
.mini-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 8px; text-align: center; transition: transform .2s, border-color .2s; }
.mini-stats div:hover { transform: translateY(-3px); border-color: rgba(208, 16, 30, .45); }
.mini-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: var(--ink-strong); line-height: 1.3; }
.mini-stats span { font-size: .82rem; color: var(--muted); }

/* Book (always the opposite of the page: paper on dark, dark band on light themes) */
.book { background: var(--book-bg); color: var(--book-ink); }
.book h2 { color: var(--book-ink); }
.book .text { color: var(--book-text); }
.book-inner { text-align: center; max-width: 860px; }
.book-sub { color: var(--red); font-weight: 700; font-size: .7em; }
.book blockquote {
    margin: 1.4rem auto 2rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; line-height: 1.6;
    color: var(--red); max-width: 720px;
}
.book-text { text-align: justify; text-align-last: center; }

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
    display: flex; flex-direction: column; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(208, 16, 30, .45); }
.article-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card-media img { transform: scale(1.06); }
.article-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.15rem; line-height: 1.5; margin: .3em 0 .5em; }
.article-card h3 a:hover { color: var(--red); }
.article-card p { color: var(--muted); font-size: .95rem; }
.article-card .link-arrow { margin-top: auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.article-meta > * + *::before { content: '•'; margin-inline-end: 16px; color: var(--red); }
.article-card-author { color: var(--red); }
.center-actions { display: flex; justify-content: center; margin-top: 34px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pager-count { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--muted); }
/* Articles page: one article per row, with a page-size picker */
.articles-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 22px; padding: 12px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.articles-total { font-weight: 800; color: var(--ink-strong); }
.articles-total span { color: var(--red); }
.articles-toolbar label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.articles-toolbar select {
    font: inherit; font-weight: 800; color: var(--ink-strong); padding: 6px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg); cursor: pointer;
}
.js .articles-toolbar button { display: none; }
.view-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.view-switch-label { font-weight: 700; color: var(--muted); padding-inline: 8px 4px; }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-weight: 800; color: var(--muted); transition: background .2s, color .2s; }
.view-switch a svg { fill: currentColor; }
.view-switch a:hover { color: var(--red); }
.view-switch a.is-active { background: var(--red); color: #fff; }
@media (max-width: 560px) { .view-switch-label { display: none; } }
.articles-list { display: flex; flex-direction: column; gap: 18px; }
.articles-list .article-card { display: grid; grid-template-columns: 300px 1fr; }
.articles-list .article-card:hover { transform: translateY(-3px); }
.articles-list .article-card-media { aspect-ratio: auto; height: 100%; min-height: 190px; }
.articles-list .article-card-body { padding: 20px 26px; }
.articles-list .article-card h3 { font-size: 1.3rem; }
@media (max-width: 680px) {
    .articles-list .article-card { grid-template-columns: 1fr; }
    .articles-list .article-card-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Article page: comfortable reading column */
.article-head { padding: 64px 0 28px; text-align: center; background: radial-gradient(ellipse at top, var(--page-glow), transparent 70%); }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.45; margin: .4em 0 .6em; }
.article-head .article-meta { justify-content: center; }
.article-back { display: inline-block; color: var(--red); font-weight: 800; font-size: .95rem; }
.article-back::before { content: '→ '; }
.article-author { display: inline-flex; align-items: center; gap: 10px; text-align: start; }
.avatar {
    flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; object-fit: cover;
    color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(208, 16, 30, .35);
}
.avatar-lg { width: 84px; height: 84px; font-size: 1.8rem; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--red); }
.avatar-xl { width: 132px; height: 132px; font-size: 2.6rem; box-shadow: 0 0 0 5px var(--bg-2), 0 0 0 9px var(--red), 0 18px 40px rgba(0, 0, 0, .2); }
.avatar-sm { width: 36px; height: 36px; font-size: .9rem; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px rgba(208, 16, 30, .45); }
.article-head .article-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 16px; }
.article-head .article-author strong { font-size: 1.1rem; }
/* "About the author" box at the end of an article */
.author-box {
    display: flex; align-items: center; gap: 26px; margin-top: 34px; padding: 28px 30px; border-radius: 20px;
    background: var(--bg-2); border: 1px solid var(--line);
}
.author-box-label { display: block; color: var(--red); font-weight: 800; font-size: .9rem; }
.author-box h3 { margin: .1em 0 .1em; font-size: 1.5rem; }
.author-box p { margin: 0; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { .author-box { flex-direction: column; text-align: center; } }
.article-card-author { display: inline-flex; align-items: center; gap: 7px; }
.article-author strong { color: var(--ink-strong); }
.article-author small { display: block; font-weight: 600; color: var(--muted); }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; }
.article-body { max-width: 760px; padding-top: 30px; font-size: 1.12rem; line-height: 2.05; color: var(--text); }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 {
    position: relative; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.8em 0 .7em; padding-inline-start: 18px;
}
.article-body h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: var(--red); }
.article-lead {
    font-size: 1.22rem; font-weight: 700; color: var(--ink-strong); line-height: 1.95;
    padding: 18px 24px; border-inline-start: 4px solid var(--red); background: var(--bg-2); border-radius: 0 12px 12px 0;
}
.article-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .55em; }
.article-list li { position: relative; padding-inline-start: 1.9rem; }
.article-list li::before {
    content: ''; position: absolute; inset-inline-start: .2rem; top: .78em; width: .7rem; height: .7rem;
    border-radius: 3px; background: var(--red); transform: rotate(45deg);
}
/* Quote box: opening mark at the start (top), closing mark at the end (bottom), text centred between them. */
.article-quote {
    position: relative; margin: 2em 0; padding: 40px 64px; border-radius: 18px; text-align: center;
    background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-strong);
    font-size: 1.18rem; font-weight: 700; line-height: 1.95;
}
.article-quote::before, .article-quote::after {
    position: absolute; font-family: Georgia, 'Times New Roman', serif; font-size: 4.6rem; line-height: 1;
    color: var(--red); pointer-events: none;
}
.article-quote::before { content: '\201D'; top: 6px; inset-inline-start: 16px; }
.article-quote::after { content: '\201C'; bottom: -26px; inset-inline-end: 16px; }
.article-source { font-size: .95rem; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 18px; }
.article-source a { color: var(--red); font-weight: 800; }
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.article-share strong { margin-inline-end: 6px; color: var(--ink-strong); }
.article-share a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-strong);
    border: 1px solid var(--line-strong); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.article-share a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.article-cta {
    text-align: center; padding: 40px 28px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 24px 60px rgba(208, 16, 30, .28);
}
.article-cta h2 { color: #fff; }
.article-cta p { color: rgba(255, 255, 255, .88); margin-bottom: 1.4rem; }
.article-cta .btn-red { background: #fff; color: var(--red); box-shadow: none; }

/* Event */
.event { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.event img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow); }

/* Corporate: always a dark band */
.corporate {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 120px 0; text-align: center; background: var(--band-bg); color: var(--band-ink);
}
.corporate h2 { color: #fff; }
.corporate .lead { color: #e2d8d8; margin-bottom: 1.8rem; }
/* The background photo carries its own lettering, so it is blurred and dimmed to a texture. */
.corporate::before {
    content: ''; position: absolute; inset: -30px; z-index: -1;
    background: var(--corp-bg) center / cover no-repeat;
    filter: blur(14px) saturate(1.2); opacity: .35;
}
.corporate-inner { max-width: 760px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(208, 16, 30, .45); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final-cta { padding: 96px 0; text-align: center; background: radial-gradient(ellipse at center, var(--final-glow), var(--bg) 70%); }
.final-cta .lead { margin-bottom: 1.6rem; }

/* Inner pages */
.page-head { padding: 80px 0 24px; text-align: center; background: radial-gradient(ellipse at top, var(--page-glow), transparent 70%); }
.page-thanks { padding: 120px 0; }
.thanks-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; font-size: 2rem; font-weight: 900; margin-bottom: 1rem; animation: pop .5s ease both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Forms */
.form-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
    width: 100%; background: var(--input-bg); color: var(--ink); border: 1px solid var(--line-strong);
    border-radius: 10px; padding: .8em 1em; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(208, 16, 30, .2); }
.field input[dir="ltr"] { text-align: left; }
.type-switch { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.type-switch legend { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.type-switch label { flex: 1; min-width: 150px; }
.type-switch input { position: absolute; opacity: 0; pointer-events: none; }
.type-switch span {
    display: block; text-align: center; padding: .8em; border-radius: 10px; border: 1px solid var(--line-strong);
    font-weight: 800; cursor: pointer; transition: all .2s;
}
.type-switch span:hover { border-color: var(--red); }
.type-switch input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.type-switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-card:has(input[name="type"][value="individual"]:checked) .company-only { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: rgba(208, 16, 30, .1); border: 1px solid rgba(208, 16, 30, .5); border-radius: 10px; padding: 14px 18px; }
.alert ul { margin: .4em 0 0; padding-inline-start: 1.2em; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.contact-aside { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside .footer-links { color: var(--muted); }
.contact-aside .footer-links a:hover { color: var(--red); }

/* Footer: always dark — a rounded sheet with a red accent line, brand row, three columns and a bottom bar. */
.site-footer {
    position: relative; isolation: isolate; overflow: hidden; margin-top: 90px; padding-top: 56px; color: var(--band-ink);
    border-radius: 36px 36px 0 0;
    background:
        radial-gradient(ellipse 45% 70% at 100% 0%, rgba(208, 16, 30, .2), transparent 70%),
        radial-gradient(ellipse 35% 60% at 0% 100%, rgba(208, 16, 30, .1), transparent 70%),
        linear-gradient(180deg, #17171a, var(--band-bg));
}
/* Thin red line along the top edge, fading out at both ends */
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red-2) 75%, transparent);
}
/* Faint dot texture */
.site-footer::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.footer-top {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
    padding-bottom: 36px; border-bottom: 1px solid var(--band-line);
}
.footer-brand p { margin: .5rem 0 0; max-width: 520px; color: var(--band-muted); line-height: 1.9; }
.site-footer .brand-word { color: #fff; }
.footer-cta { display: flex; align-items: center; gap: 12px; }
.footer-social {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, border-color .2s, transform .2s;
}
.footer-social:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px) rotate(-6deg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding: 40px 0 44px; }
.site-footer h4 { position: relative; color: #fff; font-size: 1.05rem; margin: 0 0 1.2rem; padding-bottom: .6rem; }
.site-footer h4::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--red); }
.site-footer .footer-links { color: var(--band-muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links-2col { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.site-footer .footer-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.site-footer .footer-links a::before {
    content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .2s, transform .2s;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-links a:hover::before { background: var(--red); transform: scale(1.4); }
.footer-trainer {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, background .2s, transform .2s;
}
.footer-trainer:hover { border-color: rgba(208, 16, 30, .6); background: rgba(208, 16, 30, .08); transform: translateY(-3px); }
.footer-trainer img { flex: none; width: 84px; height: 84px; object-fit: contain; }
.footer-trainer strong { display: block; color: #fff; font-size: 1.1rem; }
.footer-trainer small { color: var(--band-muted); font-weight: 600; }
.footer-bottom { background: rgba(0, 0, 0, .35); border-top: 1px solid var(--band-line); color: var(--band-muted); font-size: .9rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 0; }
.credit {
    display: inline-flex; align-items: center; gap: .4em; padding: .35em 1em; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.credit a, .credit strong { color: #fff; font-weight: 800; transition: color .2s; }
.credit a:hover { color: var(--red); }
.to-top {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: #fff;
    background: var(--red); box-shadow: 0 10px 24px rgba(208, 16, 30, .35); transition: transform .2s, background .2s;
}
.to-top:hover { transform: translateY(-4px); background: var(--red-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) {
    .site-footer { margin-top: 60px; border-radius: 24px 24px 0 0; padding-top: 40px; }
    .footer-top, .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-brand p { margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.wa-float {
    position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    animation: wa-pulse 2.4s ease-in-out infinite;
}
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Reveal on scroll (only when JS is running, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
    .nav-burger { display: grid; gap: 5px; cursor: pointer; padding: 8px; }
    .nav-burger span { width: 24px; height: 2px; background: var(--ink-strong); border-radius: 2px; }
    .main-nav {
        position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
        transform: translateY(-120%); transition: transform .25s ease; z-index: -1;
    }
    .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.btn)::after { display: none; }
    .main-nav .btn { margin-top: 14px; }
    .nav-toggle:checked ~ .main-nav { transform: translateY(0); }

    .hero { min-height: auto; padding-top: 40px; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar, .pillar:nth-last-child(2):nth-child(3n + 1), .pillar:last-child:nth-child(3n + 2) { grid-column: auto; }
    .pillar:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .features, .articles-grid, .hooks-grid { grid-template-columns: repeat(2, 1fr); }
    .map-layout { grid-template-columns: 1fr; }
    .map-canvas { min-height: 380px; }
    .map-list { max-height: none; }
    .tips-board { grid-template-columns: 1fr; }
    .book-cover { flex-basis: calc((100% - 3 * 20px) / 4); }
    .tips-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .tips-list li { flex: 0 0 auto; scroll-snap-align: start; }
    .tips-list a, .tips-list a:hover, .tips-list a.is-active { transform: none; white-space: nowrap; }
    .split, .event, .contact-grid, .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .split-reverse > :first-child { order: 0; }
    .event img { max-width: 340px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-inline-start: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .section { padding: 72px 0; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .mini-stats { grid-template-columns: repeat(2, 1fr); }
    .pillars, .features, .articles-grid, .hooks-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 1.04rem; }
    .article-quote { padding: 38px 40px; font-size: 1.06rem; }
    .article-quote::before, .article-quote::after { font-size: 3.4rem; }
    .tips-stage { padding: 32px 24px 26px; min-height: 340px; }
    .videos { grid-template-columns: 1fr; }
    .book-cover { flex-basis: calc((100% - 20px) / 2); min-width: 0; }
    .books-shelf.is-moving .book-cover { flex-basis: 118px; }
    .rooms { --turn: 16px; --row-gap: 22px; --mid: 22px; --gap: 4px; padding: 16px calc(var(--turn) + 10px); border-radius: 16px; }
    .room { border-radius: 6px; aspect-ratio: 3 / 4; }
    .room-num { font-size: .85rem; padding-bottom: 0; }
    .room-badge, .room-lock, .room-handle, .rooms-book small { display: none; }
    .room.is-open { box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(208, 16, 30, .6); }
    .rooms-book svg { width: 22px; height: 22px; padding: 3px; }
    .milestone { width: 24px; height: 24px; }
    .milestone svg { width: 13px; height: 13px; }
    .rooms-turn .milestone { inset-inline-end: -12px; }
    .grid-2 { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .week-strip { grid-template-columns: repeat(13, 1fr); }
    .hero-actions .btn { flex: 1 1 auto; padding-inline: 1.1em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js .reveal, .js .rooms .room { opacity: 1; transform: none; }
    .books-shelf.is-moving { overflow-x: auto; }
}
