/* =========================================================
   Everlight Publishers — Design System & Site Styles
   Layout direction: Bookwave-style publishing agency
   Palette: The Pulp House Publishing purple identity
   Type: Montserrat (design.md)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --c-primary: #9e27a9;
  --c-primary-600: #7b1fa2;
  --c-primary-700: #6a147e;
  --c-primary-800: #581c87;
  --c-violet: #9333ea;
  --c-violet-soft: #a855f7;
  --c-magenta: #d946ef;
  --c-pink: #ec4899;
  --c-lilac-200: #e9d5ff;
  --c-lilac-100: #f3e8ff;
  --c-lilac-50: #fcf4fe;

  /* Surfaces */
  --c-ink-950: #0a0618;
  --c-ink-900: #130b2a;
  --c-ink-800: #1c103b;
  --c-ink-700: #1e1b4b;
  --c-bg: #ffffff;
  --c-bg-soft: #faf8ff;
  --c-bg-tint: #f3ebfc;

  /* Text */
  --c-text: #0f172a;
  --c-text-2: #334155;
  --c-text-muted: #526075;      /* AA on white & #faf8ff */
  --c-text-on-dark: #ffffff;
  --c-text-on-dark-muted: #cbd5e1;

  /* Lines & feedback */
  --c-border: #e2e8f0;
  --c-border-purple: rgba(168, 85, 247, 0.3);
  --c-success: #047857;
  --c-success-bg: #ecfdf5;
  --c-error: #b91c1c;
  --c-error-bg: #fef2f2;
  --c-star: #f5a524;

  /* Gradients */
  --g-brand: linear-gradient(135deg, #9e27a9 0%, #7b1fa2 100%);
  --g-brand-deep: linear-gradient(135deg, #9e27a9 0%, #6a147e 100%);
  --g-brand-hover: linear-gradient(135deg, #b82cc5 0%, #8e24aa 100%);
  --g-accent: linear-gradient(135deg, #9333ea 0%, #d946ef 100%);
  --g-pink: linear-gradient(135deg, #9e27a9 0%, #ec4899 100%);
  --g-dark: linear-gradient(135deg, #0d1117 0%, #1e0b36 100%);
  --g-night: linear-gradient(160deg, #0a0618 0%, #1c103b 55%, #2a0f46 100%);

  /* Type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);   /* 28–40 */
  --fs-3xl: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);  /* 34–56 */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px;
  --section-y: clamp(64px, 5vw + 40px, 112px);

  /* Shape & depth */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-full: 9999px;
  --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --sh-card: 0 15px 35px rgba(15, 23, 42, 0.08);
  --sh-lift: 0 24px 48px -12px rgba(106, 20, 126, 0.28);
  --sh-glow: 0 10px 30px -10px rgba(168, 85, 247, 0.55);
  --sh-dark: 0 20px 40px rgba(10, 6, 24, 0.4);
  --ring: 0 0 0 3px #fff, 0 0 0 6px var(--c-violet);

  --container: 1240px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t: 300ms var(--ease);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text-2);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-700); }
h1, h2, h3, h4, h5 { margin: 0 0 var(--s-4); color: var(--c-text); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--c-lilac-200); color: var(--c-ink-950); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 20px; background: var(--c-ink-950); color: #fff; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: var(--c-bg-tint); }
.section--dark { background: var(--g-night); color: var(--c-text-on-dark-muted); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: 48px; }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(232,121,249,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(232,121,249,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Section heading */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--s-4); padding: 6px 14px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-primary-700); background: var(--c-lilac-100); border: 1px solid var(--c-lilac-200); border-radius: var(--r-full);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-accent); }
.section--dark .eyebrow, .on-dark .eyebrow { color: #f5c6f9; background: rgba(158,39,169,0.18); border-color: rgba(232,149,238,0.35); }
.section-head { max-width: 760px; margin: 0 auto var(--s-12); text-align: center; }
.section-head p { font-size: var(--fs-md); color: var(--c-text-muted); margin-bottom: 0; }
.section--dark .section-head p { color: var(--c-text-on-dark-muted); }
.section-head--left { margin-inline: 0; text-align: left; }
.text-grad { background: var(--g-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--dark .text-grad, .on-dark .text-grad { background: linear-gradient(135deg, #e895ee 0%, #f5c6f9 50%, #d946ef 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- 3. Buttons ---------- */
.btn {
  --btn-h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 28px;
  font-size: var(--fs-base); font-weight: 700; line-height: 1; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--r-full); cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-fast); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { --btn-h: 42px; padding: 0 20px; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 58px; padding: 0 34px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn--primary { color: #fff; background: var(--g-brand); box-shadow: var(--sh-glow); }
.btn--primary:hover { color: #fff; background: var(--g-brand-hover); box-shadow: 0 16px 34px -10px rgba(158,39,169,0.65); transform: translateY(-2px); }
.btn--outline { color: var(--c-primary-700); border-color: var(--c-primary); background: transparent; }
.btn--outline:hover { color: #fff; background: var(--c-primary); transform: translateY(-2px); }
.btn--light { color: var(--c-primary-700); background: #fff; }
.btn--light:hover { color: var(--c-primary-700); background: var(--c-lilac-50); transform: translateY(-2px); box-shadow: var(--sh-card); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }
.btn--ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn--dark { color: #fff; background: var(--c-ink-950); }
.btn--dark:hover { color: #fff; background: var(--c-ink-800); transform: translateY(-2px); }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
.btn--outline.is-loading::after, .btn--light.is-loading::after { border-color: rgba(158,39,169,0.25); border-top-color: var(--c-primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--c-primary); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Top bar & header ---------- */
.topbar { background: var(--c-ink-950); color: var(--c-text-on-dark-muted); font-size: var(--fs-sm); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #f5c6f9; }
.topbar svg { width: 15px; height: 15px; color: #e895ee; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__promo { display: none; }
.topbar__promo strong { color: #f5c6f9; }
@media (min-width: 900px) { .topbar__promo { display: block; } }
@media (max-width: 560px) { .topbar__email { display: none !important; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow var(--t), border-color var(--t); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15,23,42,0.08); border-color: var(--c-border); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); flex: none; }
.logo__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--g-brand-deep); display: grid; place-items: center; box-shadow: var(--sh-glow); }
.logo__mark svg { width: 24px; height: 24px; color: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.logo__tag { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-primary); }
.logo--light { color: #fff; }
.logo--light .logo__tag { color: #e895ee; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px;
  font-size: 0.9375rem; font-weight: 600; color: var(--c-text); text-decoration: none; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--c-primary); background: var(--c-lilac-50); }
.nav__link[aria-current="page"] { color: var(--c-primary); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; }
.nav__link .chev { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__item { position: relative; }
.header__cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); }
.header__phone-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lilac-100); color: var(--c-primary); }
.header__phone-icon svg { width: 18px; height: 18px; }
.header__phone small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 600; }
.header__phone strong { display: block; font-size: var(--fs-sm); font-weight: 800; }
@media (min-width: 1360px) { .header__phone { display: inline-flex; } }

/* Mega dropdown */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(720px, 90vw);
  padding: 24px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 30px 60px -15px rgba(30,27,75,0.25);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--c-text); transition: background var(--t-fast); }
.dropdown a:hover { background: var(--c-lilac-50); color: var(--c-text); }
.dropdown .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--c-lilac-100); color: var(--c-primary); }
.dropdown .ico svg { width: 18px; height: 18px; }
.dropdown strong { display: block; font-size: var(--fs-sm); font-weight: 700; }
.dropdown span.d { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }

.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--c-text); }

@media (max-width: 1080px) {
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__cta { margin-left: 0; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10,6,24,0.6); opacity: 0; transition: opacity var(--t); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.drawer__close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--c-border); background: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer__close svg { width: 22px; height: 22px; }
.drawer__nav { padding: 12px 20px; list-style: none; }
.drawer__nav > li { border-bottom: 1px solid var(--c-border); }
.drawer__nav a, .drawer__nav button.acc { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; font-weight: 700; color: var(--c-text); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
.drawer__nav a[aria-current="page"] { color: var(--c-primary); }
.drawer__nav button.acc svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.drawer__nav button.acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__sub { list-style: none; padding: 0 0 12px 12px; }
.drawer__sub[hidden] { display: none; }
.drawer__sub a { min-height: 42px; font-weight: 500; font-size: var(--fs-sm); color: var(--c-text-2); }
.drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; background: var(--c-bg-soft); }
.drawer__foot .btn { width: 100%; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--g-night); color: var(--c-text-on-dark-muted); padding-block: clamp(56px, 6vw, 96px) clamp(72px, 7vw, 112px); }
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(217,70,239,0.35) 0%, transparent 65%); pointer-events: none; }
.hero .glow-2 { position: absolute; width: 520px; height: 520px; left: -220px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(147,51,234,0.35) 0%, transparent 65%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { color: #fff; margin-bottom: var(--s-6); }
.hero__lead { font-size: var(--fs-md); max-width: 600px; margin-bottom: var(--s-6); }
.hero__checks { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s-8); grid-template-columns: 1fr; }
@media (min-width: 560px) { .hero__checks { grid-template-columns: 1fr 1fr; } }
.hero__checks li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--g-accent); color: #fff; }
.check svg { width: 13px; height: 13px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--s-10); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge .stars { display: flex; gap: 2px; color: var(--c-star); }
.trust-badge .stars svg { width: 16px; height: 16px; }
.trust-badge strong { display: block; color: #fff; font-size: var(--fs-sm); }
.trust-badge small { display: block; font-size: var(--fs-xs); color: var(--c-text-on-dark-muted); }
.trust-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c-ink-900); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-left: -10px; }
.avatars span:first-child { margin-left: 0; }

/* Lead form card (hero) */
.lead-card { position: relative; background: #fff; color: var(--c-text-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5); }
.lead-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--r-lg) + 2px); background: var(--g-accent); }
.lead-card__badge { position: absolute; top: -16px; right: 24px; padding: 8px 16px; border-radius: var(--r-full); background: var(--g-pink); color: #fff; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--sh-glow); }
.lead-card h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.lead-card > p { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--s-6); }

/* ---------- 6. Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); }
.field label .req { color: var(--c-error); }
.field label .opt { font-weight: 500; color: var(--c-text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font-size: var(--fs-base);
  background: var(--c-bg-soft); border: 1.5px solid #cfd6e1; border-radius: 12px; color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: #6b7789; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b1fa2' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: #a6b0c0; }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(158,39,169,0.16); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--c-error); background: var(--c-error-bg); }
.field.is-invalid .input:focus, .field.is-invalid .select:focus, .field.is-invalid .textarea:focus { box-shadow: 0 0 0 4px rgba(185,28,28,0.15); }
.field.is-valid .input, .field.is-valid .select, .field.is-valid .textarea { border-color: #10b981; }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-error); }
.field__error svg { width: 15px; height: 15px; flex: none; }
.field.is-invalid .field__error, .field__error.is-visible { display: flex; }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-2); }
.check-field input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-primary); cursor: pointer; }
.check-field.is-invalid { color: var(--c-error); }
.form__note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: var(--fs-xs); color: var(--c-text-muted); margin: 0; }
.form__note svg { width: 14px; height: 14px; color: var(--c-success); }
.form-alert { display: none; padding: 14px 16px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 600; }
.form-alert.is-error { display: block; background: var(--c-error-bg); color: var(--c-error); border: 1px solid #fecaca; }
.form-alert ul { margin: 6px 0 0 18px; font-weight: 500; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.is-visible { display: block; animation: pop 0.5s var(--ease); }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--c-success-bg); color: var(--c-success); }
.form-success__icon svg { width: 36px; height: 36px; }
.form-success h3 { font-size: var(--fs-xl); }
.form-success p { color: var(--c-text-muted); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* ---------- 7. Logos marquee ---------- */
.logos { padding-block: 36px; background: #fff; border-bottom: 1px solid var(--c-border); }
.logos__label { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: #6b7280; letter-spacing: -0.02em; white-space: nowrap; transition: color var(--t-fast); }
.marquee__item:hover { color: var(--c-primary); }
.marquee__item svg { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Books ---------- */
.book { position: relative; display: block; perspective: 1200px; text-decoration: none; }
.book__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 20px 30px -10px rgba(10,6,24,0.45);
  transform: rotateY(0deg); transform-origin: left center; transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.18) 40%, rgba(0,0,0,0.1)); }
.book__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, transparent 35%); pointer-events: none; }
.book:hover .book__cover, .book:focus-visible .book__cover { transform: rotateY(-14deg) translateY(-6px); box-shadow: 18px 26px 40px -12px rgba(10,6,24,0.5); }
.book__meta { margin-top: 16px; }
.book__meta h3 { font-size: var(--fs-base); margin-bottom: 2px; }
.book__meta p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.book__genre { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--r-full); background: var(--c-lilac-100); color: var(--c-primary-700); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.shelf { overflow: hidden; padding-block: 24px 40px; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.shelf__track { display: flex; gap: 28px; width: max-content; animation: marquee 60s linear infinite; }
.shelf__track .book { width: 180px; flex: none; }
.shelf:hover .shelf__track, .shelf.is-paused .shelf__track { animation-play-state: paused; }
@media (min-width: 768px) { .shelf__track .book { width: 210px; } }
.shelf-controls { display: flex; justify-content: center; gap: 12px; }

/* Hero book stack */
.book-stack { position: relative; height: 420px; }
.book-stack .book { position: absolute; width: 190px; }
.book-stack .book:nth-child(1) { left: 6%; top: 40px; transform: rotate(-8deg); z-index: 1; }
.book-stack .book:nth-child(2) { left: 32%; top: 0; z-index: 3; width: 220px; }
.book-stack .book:nth-child(3) { right: 4%; top: 52px; transform: rotate(8deg); z-index: 2; }

/* ---------- 9. Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); border-color: var(--c-border-purple); }

.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--g-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.service-card:hover::after { transform: scaleX(1); }
.icon-box { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--c-lilac-100); color: var(--c-primary); transition: background var(--t), color var(--t), transform var(--t); }
.icon-box svg { width: 28px; height: 28px; }
.service-card:hover .icon-box { background: var(--g-brand); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--c-text-muted); font-size: 0.9375rem; }
.service-card .link-arrow { margin-top: auto; }
.service-card .num { position: absolute; right: 24px; top: 20px; font-size: 3rem; font-weight: 900; color: var(--c-lilac-100); line-height: 1; pointer-events: none; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .icon-box { flex: none; margin: 0; width: 54px; height: 54px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.feature p { font-size: 0.9375rem; color: var(--c-text-muted); margin: 0; }
.section--dark .feature p { color: var(--c-text-on-dark-muted); }
.section--dark .feature .icon-box { background: rgba(158,39,169,0.22); color: #f5c6f9; }
.glass-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(232,149,238,0.18); border-radius: var(--r-lg); padding: 28px; transition: background var(--t), border-color var(--t), transform var(--t); }
.glass-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(232,149,238,0.45); transform: translateY(-4px); }

/* Split layout */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--reverse > :first-child { order: 2; } }
.ticks { list-style: none; display: grid; gap: 12px; margin: 0 0 var(--s-8); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--c-text-2); }
.ticks li .check { margin-top: 1px; }
.section--dark .ticks li { color: #fff; }

/* About visual */
.visual { position: relative; padding: 24px; }
.visual__panel { position: relative; border-radius: var(--r-lg); background: var(--g-brand-deep); padding: 40px 32px; overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.visual__panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 22px 22px; }
.visual__books { position: relative; display: flex; gap: 16px; align-items: flex-end; }
.visual__books .book { width: 130px; }
.visual__books .book:nth-child(2) { width: 160px; }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: var(--sh-card); animation: float 6s ease-in-out infinite; }
.float-chip strong { display: block; font-size: var(--fs-lg); font-weight: 800; color: var(--c-text); line-height: 1.1; }
.float-chip small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 600; }
.float-chip .icon-box { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.float-chip .icon-box svg { width: 20px; height: 20px; }
.float-chip--tl { top: 0; left: 0; }
.float-chip--br { bottom: 0; right: 0; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 10. Stats ---------- */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); }
.stat__num { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; background: var(--g-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); }
.stats--dark .stat { background: rgba(255,255,255,0.04); border-color: rgba(232,149,238,0.18); }
.stats--dark .stat__num { background: linear-gradient(135deg, #f5c6f9, #e895ee 50%, #d946ef); -webkit-background-clip: text; background-clip: text; }
.stats--dark .stat__label { color: var(--c-text-on-dark-muted); }

/* ---------- 11. Process ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--r-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(232,149,238,0.18); transition: transform var(--t), border-color var(--t), background var(--t); }
.step:hover { transform: translateY(-4px); border-color: rgba(232,149,238,0.5); background: rgba(158,39,169,0.12); }
.step__num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; background: var(--g-accent); color: #fff; font-weight: 900; font-size: var(--fs-lg); box-shadow: var(--sh-glow); }
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.9375rem; }
.step__time { position: absolute; top: 32px; right: 24px; font-size: var(--fs-xs); font-weight: 700; color: #f5c6f9; background: rgba(158,39,169,0.25); padding: 4px 10px; border-radius: var(--r-full); }

/* Light process variant (timeline) */
.timeline { position: relative; display: grid; gap: 32px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--c-primary), var(--c-magenta)); opacity: 0.35; }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.timeline .step__num { margin: 0; position: relative; z-index: 1; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--c-text-muted); }

/* ---------- 12. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); background: var(--g-brand-deep); color: rgba(255,255,255,0.88); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(236,72,153,0.5), transparent 65%); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: var(--fs-md); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 13. Pricing ---------- */
.price-tabs { display: inline-flex; gap: 4px; padding: 6px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-full); box-shadow: var(--sh-sm); flex-wrap: wrap; justify-content: center; }
.price-tabs-wrap { text-align: center; }
.price-tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-full); background: transparent; font-weight: 700; font-size: var(--fs-sm); color: var(--c-text-2); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.price-tab:hover { color: var(--c-primary); }
.price-tab[aria-selected="true"] { background: var(--g-brand); color: #fff; box-shadow: var(--sh-glow); }
.price-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--c-border); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); border-color: var(--c-border-purple); }
.price-card.is-featured { background: var(--g-night); border-color: transparent; color: var(--c-text-on-dark-muted); box-shadow: 0 30px 60px -20px rgba(106,20,126,0.55); }
.price-card.is-featured::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--r-lg) + 2px); background: var(--g-accent); }
.price-card.is-featured h3, .price-card.is-featured .price-card__price { color: #fff; }
.price-card__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: var(--r-full); background: var(--g-pink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.price-card h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.price-card__desc { font-size: var(--fs-sm); color: var(--c-text-muted); min-height: 48px; }
.price-card.is-featured .price-card__desc { color: var(--c-text-on-dark-muted); }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; font-size: 2.75rem; font-weight: 900; color: var(--c-text); letter-spacing: -0.03em; line-height: 1; }
.price-card__price s { font-size: var(--fs-md); font-weight: 600; color: #8a94a6; }
.price-card.is-featured .price-card__price s { color: #a7a1c2; }
.price-card__save { font-size: var(--fs-xs); font-weight: 700; color: var(--c-success); margin-bottom: 20px; }
.price-card.is-featured .price-card__save { color: #6ee7b7; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin: 20px 0 28px; padding-top: 20px; border-top: 1px dashed var(--c-border); font-size: var(--fs-sm); }
.price-card.is-featured ul { border-color: rgba(255,255,255,0.15); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--c-primary); }
.price-card.is-featured li { color: #fff; }
.price-card.is-featured li svg { color: #e895ee; }
.price-card .btn { margin-top: auto; }
.price-card.is-selected { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(158,39,169,0.2), var(--sh-lift); }
.price-panel[hidden] { display: none; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: #fff; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--c-border); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--c-text); }
.compare thead th { background: var(--c-ink-950); color: #fff; font-weight: 800; position: sticky; top: 0; }
.compare thead th.hl { background: var(--c-primary-600); }
.compare tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.compare td.hl { background: rgba(158,39,169,0.06); }
.compare .yes { color: var(--c-success); }
.compare .no { color: #94a3b8; }
.compare svg { width: 20px; height: 20px; margin: 0 auto; }

/* ---------- 14. Testimonials ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 600ms var(--ease); }
.slider__slide { flex: 0 0 100%; padding: 8px; }
@media (min-width: 768px) { .slider__slide { flex-basis: 50%; } }
@media (min-width: 1100px) { .slider__slide { flex-basis: 33.3333%; } }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c-border); background: #fff; color: var(--c-text); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.icon-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; background: #fff; color: var(--c-text); border-color: var(--c-border); }
.icon-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: var(--r-full); border: 0; background: #d5c7e3; cursor: pointer; transition: width var(--t), background var(--t); }
.dot[aria-current="true"] { width: 28px; background: var(--c-primary); }
.dot-hit { padding: 17px 2px; background: none; border: 0; cursor: pointer; }

.review { height: 100%; display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-sm); transition: box-shadow var(--t), transform var(--t); }
.review:hover { box-shadow: var(--sh-lift); transform: translateY(-4px); }
.review__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.review .stars { display: flex; gap: 2px; color: var(--c-star); }
.review .stars svg { width: 18px; height: 18px; }
.review__quote { width: 36px; height: 36px; color: var(--c-lilac-200); }
.review blockquote { margin: 0 0 24px; color: var(--c-text-2); font-size: 0.9375rem; }
.review__author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-border); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.review__author strong { display: block; color: var(--c-text); font-size: var(--fs-sm); }
.review__author small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); }
.review__book { margin-left: auto; width: 40px; flex: none; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: 0 6px 12px -4px rgba(0,0,0,0.35); }

.rating-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.rating-pill { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-sm); }
.rating-pill strong { color: var(--c-text); font-size: var(--fs-lg); font-weight: 900; }
.rating-pill .stars { display: flex; color: var(--c-star); }
.rating-pill .stars svg { width: 15px; height: 15px; }
.rating-pill small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: 600; line-height: 1.2; }

/* ---------- 15. FAQ ---------- */
.faq-wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq details[open] { border-color: var(--c-border-purple); box-shadow: var(--sh-card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; min-height: 64px; cursor: pointer; list-style: none; font-weight: 700; color: var(--c-text); border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary); }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lilac-100); color: var(--c-primary); transition: transform var(--t), background var(--t), color var(--t); }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq .faq__body { padding: 0 24px 22px; color: var(--c-text-muted); }
.faq .faq__body p:last-child { margin: 0; }

/* ---------- 16. Contact section ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; } }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-md); background: rgba(255,255,255,0.05); border: 1px solid rgba(232,149,238,0.2); text-decoration: none; color: #fff; transition: background var(--t-fast), border-color var(--t-fast); }
a.contact-item:hover { background: rgba(158,39,169,0.18); border-color: rgba(232,149,238,0.5); color: #fff; }
.contact-item .icon-box { margin: 0; width: 52px; height: 52px; background: var(--g-accent); color: #fff; flex: none; }
.contact-item small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item strong { display: block; font-size: var(--fs-base); }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--sh-dark); color: var(--c-text-2); }
.form-card h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.form-card > p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: 24px; }
.contact-light .contact-item { background: #fff; border-color: var(--c-border); color: var(--c-text); box-shadow: var(--sh-sm); }
.contact-light a.contact-item:hover { background: var(--c-lilac-50); border-color: var(--c-border-purple); color: var(--c-text); }
.contact-light .contact-item small { color: var(--c-text-muted); }
.contact-light .form-card { box-shadow: var(--sh-card); border: 1px solid var(--c-border); }

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--g-night); color: var(--c-text-on-dark-muted); padding-block: clamp(56px, 6vw, 96px); text-align: center; }
.page-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(217,70,239,0.32), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; max-width: 860px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { font-size: var(--fs-md); margin: 0 auto 28px; max-width: 680px; }
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 20px; font-size: var(--fs-sm); font-weight: 600; }
.breadcrumb a { color: #f5c6f9; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,0.4); }
.breadcrumb [aria-current] { color: #fff; }
.page-hero .hero__actions { justify-content: center; margin: 0; }

/* Service detail blocks */
.svc-detail { display: grid; gap: 40px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--c-border); }
.svc-detail:last-child { border-bottom: 0; }
@media (min-width: 1024px) { .svc-detail { grid-template-columns: 1fr 1fr; gap: 72px; } .svc-detail:nth-child(even) .svc-detail__visual { order: -1; } }
.svc-detail__visual { position: relative; border-radius: var(--r-lg); padding: 40px; min-height: 340px; display: grid; place-items: center; overflow: hidden; background: var(--g-brand-deep); }
.svc-detail__visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 22px 22px; }
.svc-detail__visual .big-icon { position: relative; width: 120px; height: 120px; border-radius: 32px; display: grid; place-items: center; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(6px); }
.svc-detail__visual .big-icon svg { width: 56px; height: 56px; }
.svc-detail__visual .book { position: absolute; width: 110px; }
.svc-detail__visual > .book:nth-of-type(1) { left: 8%; bottom: 10%; transform: rotate(-10deg); }
.svc-detail__visual > .book:nth-of-type(2) { right: 8%; top: 10%; transform: rotate(9deg); }
.svc-detail__visual .tag-chip { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: var(--c-primary-700); font-weight: 800; font-size: var(--fs-sm); padding: 10px 18px; border-radius: var(--r-full); white-space: nowrap; box-shadow: var(--sh-card); }
.svc-detail h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.svc-detail p { color: var(--c-text-muted); }
.svc-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-full); border: 1.5px solid var(--c-border); background: #fff; font-weight: 700; font-size: var(--fs-sm); color: var(--c-text-2); text-decoration: none; cursor: pointer; transition: all var(--t-fast); }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip[aria-pressed="true"] { background: var(--g-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-glow); }

/* Portfolio */
.portfolio-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1240px) { .portfolio-grid { grid-template-columns: repeat(5, 1fr); } }
.portfolio-grid .book[hidden] { display: none; }
.portfolio-grid .book { animation: pop 0.45s var(--ease); }
.empty-state { text-align: center; padding: 48px 16px; color: var(--c-text-muted); }

/* Team / values */
.team-card { text-align: center; }
.team-card .avatar { width: 96px; height: 96px; margin: 0 auto 18px; font-size: 1.75rem; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); margin-bottom: 12px; }
.team-card p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }

/* Guarantee strip */
.guarantee { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .guarantee { grid-template-columns: repeat(4, 1fr); } }
.guarantee__item { display: flex; gap: 14px; align-items: center; }
.guarantee__item .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.guarantee__item .icon-box svg { width: 22px; height: 22px; }
.guarantee__item strong { display: block; color: var(--c-text); font-size: var(--fs-sm); }
.guarantee__item small { display: block; color: var(--c-text-muted); font-size: var(--fs-xs); }

/* Comparison (self vs traditional) */
.vs { display: grid; gap: 24px; }
@media (min-width: 640px) and (max-width: 1023px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs__col { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: #fff; }
.vs__col--us { background: var(--g-night); border-color: transparent; color: #fff; }
.vs__col h3 { display: flex; align-items: center; gap: 10px; }
.vs__col--us h3 { color: #fff; }
.vs__col ul { list-style: none; display: grid; gap: 14px; }
.vs__col li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
.vs__col li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.vs__col .x { color: #dc2626; }
.vs__col--us li svg { color: #6ee7b7; }

/* ---------- 18. Footer ---------- */
.footer { background: var(--c-ink-950); color: var(--c-text-on-dark-muted); font-size: var(--fs-sm); }
.footer__newsletter { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__newsletter .container { display: grid; gap: 24px; padding-block: 48px; align-items: center; }
@media (min-width: 900px) { .footer__newsletter .container { grid-template-columns: 1fr 1fr; } }
.footer__newsletter h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: 6px; }
.footer__newsletter p { margin: 0; }
.news-form { display: flex; flex-wrap: wrap; gap: 12px; }
.news-form .field { flex: 1 1 240px; }
.news-form .input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.news-form .input::placeholder { color: #a9a3c4; }
.news-form .input:focus { background: rgba(255,255,255,0.1); border-color: #e895ee; }
.news-form .field.is-invalid .input { background: rgba(185,28,28,0.15); border-color: #f87171; }
.news-form .field__error { color: #fca5a5; }
.news-form .form-success { padding: 8px 0; text-align: left; color: #6ee7b7; font-weight: 700; flex-basis: 100%; }
.footer__main .container { display: grid; gap: 40px; padding-block: 64px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__main .container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__main .container { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h3 { color: #fff; font-size: var(--fs-base); margin-bottom: 20px; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--c-text-on-dark-muted); text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: #f5c6f9; text-decoration: underline; }
.footer__about p { margin: 18px 0 22px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: background var(--t-fast), transform var(--t-fast); }
.socials a:hover { background: var(--g-brand); transform: translateY(-3px); color: #fff; text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #e895ee; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px; font-size: var(--fs-xs); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 19. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,6,24,0.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--t); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-dark); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity var(--t), transform var(--t); }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--c-border); background: #fff; cursor: pointer; transition: background var(--t-fast); }
.modal__close:hover { background: var(--c-lilac-50); }
.modal__close svg { width: 20px; height: 20px; }
.modal h2 { font-size: var(--fs-xl); padding-right: 48px; margin-bottom: 6px; }
.modal__pkg { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: var(--r-full); background: var(--c-lilac-100); color: var(--c-primary-700); font-weight: 700; font-size: var(--fs-sm); }

/* ---------- 20. Floating actions ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--g-brand); color: #fff; box-shadow: var(--sh-glow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--t); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--g-brand-hover); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
.consult-fab { position: fixed; left: 20px; bottom: 20px; z-index: 90; }
@media (max-width: 640px) { .consult-fab { display: none; } }

/* ---------- 21. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; } .reveal-d2 { transition-delay: 160ms; } .reveal-d3 { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .shelf__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track [aria-hidden="true"], .shelf__track [aria-hidden="true"] { display: none; }
}

/* ---------- 22. Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--c-text-muted); }
.flex-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .book-stack { height: 330px; }
  .book-stack .book { width: 140px; }
  .book-stack .book:nth-child(2) { width: 160px; left: 28%; }
  .card { padding: 24px; }
  .trust-sep { display: none; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .text-grad, .stat__num { color: CanvasText; background: none; }
}

/* ---------- 23. Refinements ---------- */
.form-card h3, .section--dark .form-card h3 { color: var(--c-text); }
.review { margin: 0; }
.review__quote { display: block; flex: none; }
.review__quote svg { width: 100%; height: 100%; }
.slider__slide { padding: 12px 10px 28px; }
.dot { display: block; }
.vs__col h3 svg { width: 26px; height: 26px; color: #e895ee; flex: none; }
.lead-card { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--g-accent) border-box; }
.lead-card::before, .price-card.is-featured::before { content: none; }
.price-card.is-featured { border: 2px solid transparent; background: var(--g-night) padding-box, var(--g-accent) border-box; }
.split > *, .contact-grid > *, .hero__grid > *, .faq-wrap > *, .svc-detail > * { min-width: 0; }
.visual__books { width: 100%; max-width: 470px; justify-content: center; }
.visual__books .book { width: auto; flex: 0 1 130px; }
.visual__books .book:nth-child(2) { flex-basis: 160px; }
.contact-item strong { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .visual { padding: 16px 0; }
  .visual__panel { min-height: 320px; padding: 48px 16px; }
  .float-chip { padding: 10px 14px; }
  .float-chip--tl { left: -4px; } .float-chip--br { right: -4px; }
}
.shelf-controls { flex-wrap: wrap; padding-inline: 8px; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }
.chip svg { width: 16px; height: 16px; flex: none; }
.modal__pkg svg { width: 16px; height: 16px; flex: none; }

/* ---------- 24. Brand logo (image) ---------- */
.logo__img { display: block; width: auto; height: 50px; }
.drawer__head .logo__img { height: 40px; }
.footer .logo__img { height: 58px; }
@media (max-width: 560px) { .site-header .logo__img { height: 42px; } }

/* =========================================================
   25. Motion & 3D
   ========================================================= */
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* When GSAP drives reveals, the CSS fallback steps aside */
.has-motion .reveal { opacity: 1; transform: none; transition: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: 3px; background: linear-gradient(90deg, #9e27a9, #d946ef, #f0b53b); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---- True 3D book ---- */
.b3d { --w: 150px; --h: calc(var(--w) * 1.5); --d: calc(var(--w) * 0.17); width: var(--w); height: var(--h); perspective: 1400px; flex: none; }
.b3d__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--bx, 6deg)) rotateY(var(--by, -28deg)); will-change: transform; }
.b3d__face { position: absolute; backface-visibility: hidden; }
.b3d__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 4px 0 6px -2px rgba(0,0,0,0.35); }
.b3d__front img { width: 100%; height: 100%; object-fit: cover; }
.b3d__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.28) 48%, rgba(255,255,255,0) 62%); transform: translateX(var(--shine, -60%)); pointer-events: none; }
.b3d__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--back); border-radius: 6px 2px 2px 6px; }
.b3d__spine { top: 0; left: calc(50% - var(--d) / 2); width: var(--d); height: 100%; transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.12) 45%, rgba(0,0,0,0.3)), var(--spine); }
.b3d__pages { top: 3px; left: calc(50% - var(--d) / 2); width: calc(var(--d) - 2px); height: calc(100% - 6px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px)); background: repeating-linear-gradient(90deg, #fbf8f1 0 2px, #e7e0d2 2px 3px); }
.b3d__top, .b3d__bottom { left: 0; top: calc(50% - var(--d) / 2); width: calc(100% - 3px); height: var(--d); background: repeating-linear-gradient(0deg, #fbf8f1 0 2px, #e7e0d2 2px 3px); }
.b3d__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.b3d__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.b3d::after { content: ""; display: block; width: 90%; height: 18px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,6,24,0.45), transparent); filter: blur(2px); transform: scale(var(--shadow, 1)); }

/* About / visual panel books */
.visual__panel { perspective: 1600px; }
.visual__books { gap: 26px; align-items: center; }
.visual__books .b3d { --w: clamp(84px, 9vw, 128px); }
.visual__books .b3d:nth-child(2) { --w: clamp(100px, 11vw, 152px); }
.visual__books .b3d:nth-child(1) .b3d__inner { --by: 28deg; }
.visual__books .b3d:nth-child(2) .b3d__inner { --by: -10deg; }
.visual__books .b3d:nth-child(3) .b3d__inner { --by: -32deg; }

/* Hero visual: floating 3D books around the lead form */
.hero__visual { position: relative; }
.hero__books { display: none; }
@media (min-width: 1024px) {
  .hero__books { display: block; position: absolute; inset: 0; pointer-events: none; }
  /* A tucks behind the form's lower-left edge (clear of the headline); B peeks over its top-right */
  .hero-book-a { position: absolute; --w: 118px; left: -92px; bottom: 36px; z-index: 0; }
  .hero-book-b { position: absolute; --w: 104px; right: -34px; top: -122px; z-index: 0; }
  .hero-book-a .b3d__inner { --by: 32deg; --bx: 10deg; animation: bookFloat 7s ease-in-out infinite; }
  .hero-book-b .b3d__inner { --by: -34deg; --bx: -6deg; animation: bookFloat 8s ease-in-out -3s infinite; }
  .hero__visual .lead-card { z-index: 1; }
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotateX(var(--bx)) rotateY(var(--by)) rotateZ(-2deg); }
  50% { transform: translateY(-16px) rotateX(calc(var(--bx) - 4deg)) rotateY(calc(var(--by) + 10deg)) rotateZ(2deg); }
}

/* Twinkling gold stars (from the Everlight mark) */
.hero__stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; width: var(--s, 10px); height: var(--s, 10px); background: #f0b53b; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; filter: drop-shadow(0 0 6px rgba(240,181,59,0.8)); animation: twinkle var(--t, 4s) ease-in-out var(--dl, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: var(--o, 0.9); transform: scale(1) rotate(45deg); } }

/* Pointer-driven 3D tilt with light glare (smoothed in JS) */
.is-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, 0px), 0) !important; transition: box-shadow var(--t), border-color var(--t), background var(--t) !important; will-change: transform; }
.is-tilt.is-tilt::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.22), transparent 45%); opacity: var(--glare, 0); mix-blend-mode: soft-light; }
.price-card.is-featured.is-tilt::before, .step.is-tilt::before { mix-blend-mode: screen; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(232,149,238,0.18), transparent 45%); }

/* GSAP-driven shelf replaces the CSS marquee */
.shelf.is-gsap .shelf__track { animation: none; }
.shelf__track { will-change: transform; }

/* Hero / page hero parallax layers */
[data-depth] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero__books .b3d__inner { animation: none; }
  .star { animation: none; opacity: 0.6; }
  .scroll-progress { display: none; }
}

/* Clip (not scroll) horizontal overflow from in-flight 3D transforms; keeps sticky header working */
html, body { overflow-x: clip; }

/* Tawk.to chat (bubble + greeting pop-up) owns the bottom-right corner: back-to-top moves bottom-left */
.to-top { right: auto; left: 20px; bottom: 20px; }
