/* ==========================================================================
   Digital Draft — core stylesheet
   ========================================================================== */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #e9eff9;
    --surface-3: #e7edf6;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;

    --accent: #1a56db;
    --accent-hover: #1446b8;
    --accent-soft: #e8f0fe;
    --accent-2: #f59e0b;
    --gold: #b58d52;

    --ok: #2f6b4f;      --ok-soft: #e3f0e8;
    --info: #2f5b85;    --info-soft: #e3ecf5;
    --warn: #9a6a14;    --warn-soft: #f7edd8;
    --violet: #5b4a8a;  --violet-soft: #ebe7f5;
    --neutral-soft: #eef2f7;

    --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* one simple family site-wide */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05), 0 1px 1px rgba(17, 17, 17, .03);
    --shadow: 0 2px 4px rgba(17, 17, 17, .04), 0 10px 30px -8px rgba(17, 17, 17, .10);
    --shadow-lg: 0 4px 10px rgba(17, 17, 17, .05), 0 30px 60px -20px rgba(17, 17, 17, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --container: 1520px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    /* clip, not hidden: hidden makes body a scroll container, which silently
       breaks every position:sticky inside it. clip trims the same overflow
       without creating one. */
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: #0f172a; color: #f2f2f2; }
.section--dark .lead, .section--dark .muted { color: #b3b3b3; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
    font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.center > .eyebrow::after, .section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.display-xl, .display-lg, .display-md, .display-sm { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.display-xl { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.02; }
.display-lg { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.06; }
.display-md { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.display-sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.display-xl em, .display-lg em, .display-md em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); }
.section-head .lead { margin-top: 18px; }
.prose p { color: var(--ink-2); font-size: 17px; }
.prose h2 { font-family: var(--font-display); font-size: 28px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin: .35em 0; }

/* ---------- Buttons ---------- */
.btn {
    --btn-h: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--btn-h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 500 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --btn-h: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 8px 20px -8px rgba(26, 86, 219, .55); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 8px 20px -8px rgba(26, 86, 219, .6); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #ffffff; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .25); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 32px; height: 32px; }
.logo__text { font: 500 21px/1 var(--font-display); letter-spacing: -.01em; }
.logo__text em { font-style: italic; color: var(--accent); }
.logo--light { color: #ffffff; }
.logo--light .logo__text em { color: var(--accent-2); }

.primary-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.primary-nav ul { list-style: none; display: flex; gap: 2px; margin: 0 auto; }
.primary-nav ul a {
    display: block; padding: 8px 9px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
    transition: color .15s, background .15s;
}
.primary-nav ul a:hover { color: var(--ink); background: var(--surface-2); }
.primary-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.primary-nav__actions { display: flex; gap: 6px; flex: none; }
.primary-nav__actions .btn { --btn-h: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1240px) {
    .nav-toggle { display: inline-flex; }
        .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
         padding: 20px; 
        background: var(--bg);
        /* overflow-y: auto; */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
        /* background: #000000 !important; */
        height: 100vh;
    }
    .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
        .primary-nav ul {
        flex-direction: column;
        margin: 0;
        gap: 0;
    }
    .primary-nav ul a { font: 400 26px/1.2 var(--font-display); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .primary-nav ul a[aria-current="page"] { box-shadow: none; color: var(--accent); }
    .primary-nav__actions { flex-direction: column; margin-top: 24px; gap: 10px; }
    .primary-nav__actions .btn { --btn-h: 52px; font-size: 16px; }
    .primary-nav__actions .btn-ghost { border-color: var(--line-strong); }
    body.nav-open { overflow: hidden; }
}

/* ---------- Header dropdown (Publishing) ---------- */
.nav-drop { position: relative; }
.nav-drop__btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 9px; border: 0; background: none; border-radius: 8px;
    font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s;
}
.nav-drop__btn:hover, .nav-drop.is-open .nav-drop__btn { color: var(--ink); background: var(--surface-2); }
.nav-drop__btn.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-drop__btn .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop.is-open .nav-drop__btn .icon { transform: rotate(180deg); }
.primary-nav ul.nav-drop__menu {
    position: absolute; top: calc(100% + 8px); left: 50%; z-index: 120; min-width: 220px; margin: 0; padding: 8px;
    display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1241px) {
    .nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-drop:hover .nav-drop__btn .icon { transform: rotate(180deg); }
}
.primary-nav .nav-drop__menu a { padding: 10px 12px; border-radius: 9px; }
.primary-nav .nav-drop__menu a[aria-current="page"] { box-shadow: none; color: var(--accent); background: var(--surface-2); border-radius: 9px; }
@media (max-width: 1240px) {
    .nav-drop__btn { width: 100%; justify-content: space-between; font: 400 26px/1.2 var(--font-display); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink-2); }
    .nav-drop__btn:hover, .nav-drop.is-open .nav-drop__btn { background: none; }
    .nav-drop__btn.is-current { box-shadow: none; color: var(--accent); border-radius: 0; }
    .nav-drop__btn .icon { width: 20px; height: 20px; }
    .primary-nav ul.nav-drop__menu {
        position: static; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; box-shadow: none; background: none;
        transform: none; opacity: 1; visibility: visible; display: none;
    }
    .nav-drop.is-open .nav-drop__menu { display: grid; transform: none; }
    .primary-nav .nav-drop__menu a { font-size: 20px; padding: 12px 4px; border-radius: 0; }
    .primary-nav .nav-drop__menu a[aria-current="page"] { background: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 78% 40%, rgba(26, 86, 219, .14), transparent 70%),
        radial-gradient(40% 50% at 10% 90%, rgba(17, 17, 17, .10), transparent 70%);
}
/* Cover wall across the right half only, behind the book and the tablet. */
.hero .cover-wall {inset: -14% -10% -14% 56%;}
/* Opaque over the copy, easing off to the right so the artwork reads as
   texture behind the stage without ever sitting under the headline. */
.hero::after {
    content: "";
    position: absolute;
    /* inset: 0; */
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(81deg, var(--bg) 52%, rgb(255 255 255 / 0%) 46%, rgb(28 28 28 / 76%) 62%, rgb(183 181 176 / 0%));
}
.hero > .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 540px; margin-bottom: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__trust div { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero__trust strong { display: block; font: 500 26px/1.1 var(--font-display); color: var(--ink); margin-bottom: 4px; }

.hero-stage { position: relative; height: clamp(440px, 46vw, 580px); perspective: 1800px; }
.hero-stage__glow { position: absolute; left: 12%; right: 6%; bottom: 6%; height: 36px; background: radial-gradient(closest-side, rgba(17, 17, 17, .28), transparent); filter: blur(8px); }

/* 3D hardcover */
.book3d-wrap { position: absolute; left: 6%; top: 6%; width: clamp(210px, 21vw, 280px); aspect-ratio: 2 / 3; perspective: 1400px; animation: float 7s ease-in-out infinite; }
.book3d { --w: 100%; --t: 38px; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(28deg) rotateX(4deg); transition: transform .8s var(--ease); }
.hero-stage:hover .book3d { transform: rotateY(18deg) rotateX(2deg); }
.book3d__face { position: absolute; inset: 0; backface-visibility: hidden; }
.book3d__front { transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: inset 4px 0 8px -4px rgba(0,0,0,.4); }
.book3d__front .cover { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #16303f; border-radius: 5px 2px 2px 5px; }
.book3d__spine {
    left: calc(var(--t) * -1); right: auto; width: var(--t); transform-origin: right center; transform: translateZ(calc(var(--t) / 2)) rotateY(-90deg);
    background: linear-gradient(90deg, #102634, #1f3a4d 40%, #16303f); color: #e2a54a;
    display: flex; align-items: center; justify-content: center;
}
.book3d__spine span { writing-mode: vertical-rl; font: 500 12px/1 var(--font-display); letter-spacing: .08em; color: #f3ead8; white-space: nowrap; }
.book3d__pages {
    left: 100%; right: auto; width: calc(var(--t) - 4px); top: 3px; bottom: 3px; transform-origin: left center; transform: translateZ(calc(var(--t) / 2 - 2px)) rotateY(90deg);
    background: repeating-linear-gradient(90deg, #f7f7f7 0 1px, #e6e6e6 1px 2px);
}
.book3d__top { top: calc(var(--t) * -1); bottom: auto; height: var(--t); transform-origin: bottom center; transform: translateZ(calc(var(--t) / 2)) rotateX(90deg); background: #ececec; }

/* Tablet / eReader */
.ereader {
    position: absolute; right: 0; bottom: 4%; width: clamp(250px, 25vw, 330px); aspect-ratio: 3 / 4;
    background: #0f172a; border-radius: 26px; padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
    transform: rotate(4deg); animation: float 7s ease-in-out -3.5s infinite;
}
.ereader__screen { height: 100%; border-radius: 14px; background: #fbfbfb; padding: 26px 24px 18px; display: flex; flex-direction: column; overflow: hidden; font-family: var(--font-display); color: #2b2622; }
.ereader__bar { display: flex; justify-content: space-between; font: 500 10px/1 var(--font-body); color: #8f8f8f; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.ereader__chapter { font-size: 11px; font-family: var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ereader__title { font-size: 22px; line-height: 1.15; margin-bottom: 14px; }
.ereader__text { font-size: 12.5px; line-height: 1.65; color: #4a423b; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ereader__text p { margin: 0 0 .7em; text-indent: 1.2em; }
.ereader__text p:first-child { text-indent: 0; }
.ereader__text p:first-child::first-letter { float: left; font-size: 3.1em; line-height: .8; padding: 4px 6px 0 0; color: var(--accent); }
.ereader__progress { margin-top: 12px; display: flex; align-items: center; gap: 10px; font: 500 10px/1 var(--font-body); color: #8f8f8f; }
.ereader__progress i { flex: 1; height: 3px; border-radius: 3px; background: #e5e5e5; position: relative; overflow: hidden; }
.ereader__progress i::after { content: ""; position: absolute; inset: 0 88% 0 0; background: var(--accent); border-radius: 3px; }
/* eReader showing the cover as the open page: artwork fills the screen, with the
   status and progress rails floating over it. */
.ereader__screen--art { padding: 14px 16px; position: relative; justify-content: space-between; }
.ereader__screen--art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ereader__screen--art .ereader__bar,
.ereader__screen--art .ereader__progress { position: relative; z-index: 1; margin: 0; color: #f6f1e7; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.ereader__screen--art .ereader__bar { padding: 4px 6px; border-radius: 6px; background: rgba(20, 17, 14, .42); backdrop-filter: blur(4px); }
.ereader__screen--art .ereader__progress i { background: rgba(255, 255, 255, .35); }

.chip-float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    font-size: 13px; line-height: 1.25; white-space: nowrap;
}
.chip-float strong { display: block; font-weight: 600; }
.chip-float span { color: var(--muted); font-size: 12px; }
.chip-float__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.chip-float__icon--green { background: var(--ok-soft); color: var(--ok); }
.chip-float--print { left: 0; bottom: 20%; }
.chip-float--ebook { right: -2%; top: 15%; }
.chip-float--status { left: 38%; top: 0; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Logos / trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust-strip p { margin: 0; font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.4; }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); align-items: center; }
.trust-strip li { font: 500 18px/1 var(--font-display); color: #8a8a8a; letter-spacing: -.01em; }
.trust-strip li:nth-child(even) { font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.card--hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.icon-tile .icon { width: 24px; height: 24px; }

/* Publishing option cards */
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.option-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.option-card__visual { position: relative; height: 210px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.option-card__visual .cover { width: 104px; position: absolute; }
.option-card__body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.option-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.option-card h3 { font: 400 30px/1.1 var(--font-display); margin-bottom: 12px; letter-spacing: -.01em; }
.option-card p { color: var(--ink-2); }
.option-card .btn { margin-top: auto; }
.option-card--featured { border-color: var(--ink); box-shadow: var(--shadow); }
.option-card--featured .option-card__visual { background: #0f172a; }
.option-card__flag { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.checklist { list-style: none; margin: 18px 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checklist .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

/* mini visuals inside option cards */
.mini-stack { position: relative; width: 100%; height: 100%; }
.mini-stack .cover:nth-child(1) { left: calc(50% - 90px); top: 36px; transform: rotate(-8deg); }
.mini-stack .cover:nth-child(2) { left: calc(50% - 20px); top: 26px; transform: rotate(5deg); width: 112px; }
.mini-device { position: absolute; width: 124px; aspect-ratio: 3/4; left: calc(50% - 62px); top: 28px; border-radius: 16px; background: #0f172a; padding: 8px; box-shadow: var(--shadow); }
.mini-device__screen { height: 100%; border-radius: 9px; background: #fbfbfb; padding: 12px 10px; }
.mini-device__screen i { display: block; height: 4px; border-radius: 2px; background: #ddd3c3; margin-bottom: 6px; }
.mini-device__screen i:first-child { width: 60%; height: 7px; background: var(--accent); opacity: .7; margin-bottom: 10px; }
.mini-device__screen i:nth-child(4n) { width: 80%; }
/* eReader screen showing real cover art instead of the ruled-text placeholder. */
.mini-device__screen--art { padding: 0; overflow: hidden; }
.mini-device__screen--art img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.mini-both .cover { left: calc(50% - 100px); top: 34px; transform: rotate(-6deg); }
.mini-both .mini-device { left: calc(50% - 10px); top: 40px; width: 110px; transform: rotate(5deg); }

/* ---------- Steps / How it works ---------- */
/* Alternating soft cards down a centre spine. Each step sits on one side of a
   vertical line so the eye zig-zags down through the sequence. Cards are lifted
   by one soft shadow rather than a border. */
.approach-flow__list {
    /* Shadow tint follows the theme's ink rather than a brand colour, so it
       reads as depth on the warm ground instead of a coloured halo. */
    --shade: rgba(17, 17, 17, .14);
    position: relative; list-style: none; margin: 0 0 0 200px; padding: 0;
}
.approach-flow__step { position: relative; z-index: 1; width: 60%; margin: 0; padding: 0 0 50px; }
.approach-flow__step:last-child { padding-bottom: 0; }
/* Odd steps sit flush left, even ones are pushed across, so the stack steps
   sideways as it goes down rather than splitting into two columns. */
.approach-flow__step:nth-child(even) { margin-left: 26%; }

/* One accent per step, used by the pill, the badge and the icon disc. */
.approach-flow__step:nth-child(1) { --accent-step: var(--accent); --accent-wash: var(--accent-soft); }
.approach-flow__step:nth-child(2) { --accent-step: var(--info); --accent-wash: var(--info-soft); }
.approach-flow__step:nth-child(3) { --accent-step: var(--violet); --accent-wash: var(--violet-soft); }
.approach-flow__step:nth-child(4) { --accent-step: var(--ok); --accent-wash: var(--ok-soft); }
.approach-flow__step:nth-child(5) { --accent-step: var(--warn); --accent-wash: var(--warn-soft); }

/* min-height keeps every card the same depth even though the descriptions
   differ in length, so the rows line up down the spine. */
.approach-flow__card {
    display: flex; align-items: center; gap: 22px; min-height: 186px;
    background: var(--surface); border: none; border-radius: 26px; padding: 26px 28px;
    box-shadow: 0 10px 26px var(--shade);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.approach-flow__card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17, 17, 17, .2); }

/* The glyph sits on its own raised tile, on a tinted disc — the reference sets
   a colour illustration on a pastel circle; a line icon needs the same ground
   or it reads as an empty tile. */
.approach-flow__icon {
    flex: 0 0 auto; width: 128px; height: 128px; border-radius: 24px;
    background: var(--surface); box-shadow: 0 6px 16px var(--shade);
    display: flex; align-items: center; justify-content: center;
}
.approach-flow__disc { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-step); }
.approach-flow__disc .icon { width: 34px; height: 34px; }

.approach-flow__body { min-width: 0; flex: 1 1 auto; }
/* Title on the left, progress pill and step number to the right of it. */
.approach-flow__titlerow { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.approach-flow__title { margin: 0; color: var(--ink); font: 800 21px/1.25 var(--font-body); letter-spacing: .6px; text-transform: uppercase; }
.approach-flow__meta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.approach-flow__bar { display: block; width: 62px; height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.approach-flow__bar i { display: block; width: 100%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-step) 0%, rgba(255, 255, 255, .25) 160%); }
/* A pill, not a circle, so a two-digit number has somewhere to go without the
   badge changing height and knocking the row out of line. */
.approach-flow__badge {
    min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px;
    background: var(--accent-step); color: #fff;
    font: 700 13px/1 var(--font-body); letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.approach-flow__text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 42ch; }

.approach-flow__step:nth-child(2) { transition-delay: .12s; }
.approach-flow__step:nth-child(3) { transition-delay: .24s; }
.approach-flow__step:nth-child(4) { transition-delay: .36s; }

@media only screen and (max-width: 1400px) {
    /* The 200px indent is what sits the spine right of centre; below this it
       just eats width the cards need. */
    .approach-flow__list { margin-left: 80px; }
}
@media only screen and (max-width: 1100px) {
    /* Less room, so widen the cards and shorten the sideways step. */
    .approach-flow__list { margin-left: 0; }
    .approach-flow__step { width: 84%; }
    .approach-flow__step:nth-child(even) { margin-left: 16%; }
    .approach-flow__title { font-size: 19px; }
    .approach-flow__card { min-height: 0; padding: 22px; gap: 18px; }
    .approach-flow__icon { width: 104px; height: 104px; }
    .approach-flow__disc { width: 66px; height: 66px; }
    .approach-flow__disc .icon { width: 30px; height: 30px; }
    .approach-flow__text { max-width: none; }
}
/* One straight column — the sideways step has no room to read here. */
@media only screen and (max-width: 860px) {
    .approach-flow__step,
    .approach-flow__step:nth-child(odd),
    .approach-flow__step:nth-child(even) { width: 100%; margin-left: 0; padding-bottom: 16px; }
    .approach-flow__card { padding: 22px 20px 24px; gap: 14px; min-height: 0; }
    .approach-flow__icon { width: 90px; height: 90px; border-radius: 20px; }
    .approach-flow__disc { width: 58px; height: 58px; }
    .approach-flow__disc .icon { width: 26px; height: 26px; }
}
@media only screen and (max-width: 520px) {
    .approach-flow__card { flex-direction: column; align-items: flex-start; }
    .approach-flow__titlerow { flex-wrap: wrap; gap: 10px; }
    .approach-flow__meta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .approach-flow__card { transition: none; }
    .approach-flow__card:hover { transform: none; }
}

/* ---------- Covers ---------- */
.cover {
    --cv-bg: #333; --cv-ink: #fff; --cv-accent: #f59e0b;
    position: relative; container-type: inline-size; aspect-ratio: 3 / 4; width: 100%;
    background: var(--cv-bg); color: var(--cv-ink); border-radius: 2px 6px 6px 2px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; padding: 13% 11% 11%;
    box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 14px 28px -12px rgba(17, 17, 17, .38);
}
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 45%, rgba(0,0,0,.08)); }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 40%); }
.cover__art { position: absolute; inset: 0; z-index: 0; }
.cover__title { position: relative; z-index: 1; font-family: var(--font-display); font-size: 12.5cqi; line-height: 1.02; letter-spacing: -.01em; font-weight: 500; text-wrap: balance; }
.cover__author { position: relative; z-index: 1; font: 600 5.6cqi/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.cover--sm .cover__title { font-size: 13cqi; }

.cover--orb .cover__art::before { content: ""; position: absolute; width: 70cqi; aspect-ratio: 1; left: 15cqi; top: 52%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--cv-accent) 70%, #fff), var(--cv-accent) 60%); box-shadow: 0 0 60px color-mix(in srgb, var(--cv-accent) 55%, transparent); }
.cover--orb .cover__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, color-mix(in srgb, var(--cv-bg) 70%, #000)); }
.cover--band .cover__art::before { content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 16%; background: var(--cv-accent); }
.cover--band .cover__title { font-weight: 600; }
.cover--frame .cover__art::before { content: ""; position: absolute; inset: 6.5cqi; border: 1px solid var(--cv-accent); }
.cover--frame .cover__art::after { content: ""; position: absolute; left: 50%; top: 58%; width: 14cqi; height: 14cqi; translate: -50% 0; border: 1px solid var(--cv-accent); rotate: 45deg; }
.cover--frame { text-align: center; padding: 20% 16% 16%; }
.cover--stripes .cover__art::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: repeating-linear-gradient(-35deg, var(--cv-accent) 0 3cqi, transparent 3cqi 7cqi); opacity: .85; }
.cover--type .cover__title { font-size: 15cqi; font-weight: 400; font-style: italic; }
.cover--type .cover__art::before { content: ""; position: absolute; left: 11%; right: 11%; bottom: 25%; height: 2px; background: var(--cv-accent); }
.cover--type .cover__art::after { content: ""; position: absolute; right: -12cqi; top: -12cqi; width: 52cqi; aspect-ratio: 1; border-radius: 50%; border: 1.5cqi solid var(--cv-accent); opacity: .5; }
.cover--arch .cover__art::before { content: ""; position: absolute; left: 18cqi; right: 18cqi; top: 34%; bottom: 20%; border-radius: 999px 999px 0 0; background: var(--cv-accent); }
.cover--arch .cover__art::after { content: ""; position: absolute; left: 34cqi; top: 44%; width: 18cqi; aspect-ratio: 1; border-radius: 50%; background: var(--cv-bg); opacity: .85; }
.cover--arch { text-align: center; }
/* Real cover artwork — fills the whole card; the spine/sheen overlays stay on top. */
.cover--image { padding: 0; }
.cover--image img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cover--blank { box-shadow: none; border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
.cover--blank::before, .cover--blank::after { display: none; }
.cover__blank { margin: auto; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; }

/* ---------- Book cards / grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s var(--ease);
    width: 150px;
    text-align: center;
    justify-content: center;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"], .filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip small { font-size: 12px; opacity: .6; }

.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.books-grid--5 { grid-template-columns: repeat(5, 1fr); }
.book-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.book-card[hidden] { display: none; }
.book-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.book-card__flag {
    position: absolute; top: 12px; left: 0; z-index: 2;
    padding: 4px 10px 4px 12px; border-radius: 0 4px 4px 0;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em;
}
/* Square stage on plain white: every cover is sized by height, so artwork of any
   width lands at the same size and nothing is cropped off the edge. */
.book-card__cover {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; padding: clamp(12px, 1.5vw, 18px) clamp(16px, 1.9vw, 26px) clamp(5px, .7vw, 8px);
    background: var(--surface);
}
.book-card__cover .cover { flex: none; width: auto; height: 100%; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.book-card:hover .book-card__cover .cover { transform: translateY(-3px); box-shadow: 0 20px 32px -14px rgba(17, 17, 17, .55); }
.book-card__body { display: flex; flex-direction: column; flex: 1; padding: 0 14px 12px; }
/* Also used by the book detail page and the distribution cards. */
.book-card__genre { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
/* Two-line clamp keeps titles of very different lengths on a shared baseline. */
.book-card__title { font: 500 15.5px/1.35 var(--font-body); margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { color: var(--accent); text-decoration: underline; }
.book-card__sub { font-size: 13px; line-height: 1.4; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card__author { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card__author a { text-decoration: none; color: var(--ink-2); }
.book-card__author a:hover { color: var(--accent); }
/* auto keeps the price and button on a shared line across every card in a row. */
.book-card__buy { margin-top: auto; }
.book-card__formats { font-size: 12px; color: var(--muted); margin: 1px 0 8px; }

/* Rating: two star rows stacked, the gold one clipped to the score. */
.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.stars { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1.5px; color: #dddddd; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #e0952f; white-space: nowrap; }
.stars__fill::before { content: "★★★★★"; }
.rating__value { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rating__count { font-size: 12.5px; color: var(--muted); }

/* Retail price: small mark, large whole part, raised cents. */
.price { display: inline-flex; align-items: flex-start; color: var(--ink); line-height: 1; }
.price__cur { font-size: 13px; font-weight: 500; margin-top: 3px; }
.price__whole { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.price__cents { font-size: 13px; font-weight: 600; margin-top: 3px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }

.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.badge--pod { background: var(--accent-soft); color: var(--accent); }
.badge--ebook { background: var(--info-soft); color: var(--info); }
.badge--neutral { background: var(--neutral-soft); color: var(--ink-2); }

/* ---------- Split feature ---------- */
/* minmax(0, 1fr), not 1fr: a grid item defaults to min-width:auto, so the wide
   status track inside the right card pushed its column past the container and
   body's overflow-x:hidden clipped the text instead of showing a scrollbar. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split .lead { margin-top: 18px; }

/* Sticky split: the intro and its covers hold still on the left while the list
   scrolls past on the right. Needs body's overflow-x to be `clip`, not
   `hidden` — see the body rule. */
.sticky-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.sticky-split__aside { position: sticky; top: calc(var(--header-h) + 36px); }
.sticky-split__aside .lead { margin-top: 18px; max-width: 46ch; }
.sticky-split__aside .cover-grid { margin: 36px 0 0; }
.sticky-split__list { display: grid; gap: 14px; }

/* Distribution channel rows. Tone and icon come from the channel type, so ten
   otherwise identical rows can be scanned by category at a glance. */
.channel-card {
    --ch-ink: var(--accent); --ch-soft: var(--accent-soft);
    display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.channel-card--info { --ch-ink: var(--info); --ch-soft: var(--info-soft); }
.channel-card--warn { --ch-ink: var(--warn); --ch-soft: var(--warn-soft); }
.channel-card--violet { --ch-ink: var(--violet); --ch-soft: var(--violet-soft); }
.channel-card--ok { --ch-ink: var(--ok); --ch-soft: var(--ok-soft); }
.channel-card:hover { transform: translateX(5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.channel-card__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ch-soft); color: var(--ch-ink); transition: background .3s var(--ease), color .3s var(--ease); }
.channel-card:hover .channel-card__icon { background: var(--ch-ink); color: #fff; }
.channel-card__icon .icon { width: 22px; height: 22px; }
.channel-card__body { flex: 1; min-width: 0; }
.channel-card__type { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ch-ink); margin: 0 0 3px; }
.channel-card h3 { font: 500 20px/1.25 var(--font-display); margin: 0 0 3px; }
.channel-card__reach { font-size: 13.5px; color: var(--muted); margin: 0; }
.channel-card .badges { flex: none; justify-content: flex-end; max-width: 42%; }
/* Slides in from the right, matching the side the list sits on — a plain rise
   barely registers on a row this wide. */
.js .channel-card.reveal { transform: translateX(30px); }
.js .channel-card.reveal.is-visible { transform: none; }
@media (max-width: 620px) {
    .channel-card { flex-wrap: wrap; }
    .channel-card .badges { max-width: none; width: 100%; justify-content: flex-start; padding-left: 66px; }
}
@media (max-width: 960px) {
    /* No spare height beside a single column, so the aside just sits on top. */
    .sticky-split { grid-template-columns: 1fr; }
    .sticky-split__aside { position: static; }
}
/* Cover mosaic for the image half of a split section. max-width is the point:
   left to fill a half of a 1520px container the covers stood far taller than
   the copy beside them. Four narrow columns hold twelve in a compact block. */
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: start; margin: 0 auto; }
.cover-grid img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px;
    position: relative; z-index: 0;
    box-shadow: 0 10px 22px -12px rgba(17, 17, 17, .45);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}
/* Drop every other column so the block reads as a composition, not a plain grid. */
.cover-grid img:nth-child(4n + 2), .cover-grid img:nth-child(4n + 4) { margin-top: clamp(14px, 2vw, 26px); }
/* The rest of the wall recedes so the hovered cover is picked out of it —
   lifting one tile alone barely registers at this size. */
.cover-grid:hover img { filter: brightness(.68) saturate(.8); }
.cover-grid img:hover {
    z-index: 2; filter: none; transform: translateY(-6px) scale(1.14);
    box-shadow: 0 24px 46px -16px rgba(17, 17, 17, .65);
}

@media (prefers-reduced-motion: reduce) {
    .cover-grid img, .cover-grid img:hover { transition: none; transform: none; }
}
.feature-list { display: grid; gap: 4px; margin-top: 26px; }
/* The negative margin pulls the hover panel out past the copy, so the row can
   have padding without the text losing its alignment with the heading above. */
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 13px 14px; margin: 0 -14px; border-radius: 14px; transition: background .25s var(--ease); }
.feature:hover { background: var(--surface-2); }
.feature .icon-tile { width: 40px; height: 40px; border-radius: 11px; margin: 0; flex: none; transition: background .25s var(--ease), color .25s var(--ease); }
.feature:hover .icon-tile { background: var(--accent); color: #fff; }
.feature .icon-tile .icon { width: 19px; height: 19px; }
.feature h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; font-family: var(--font-body); }
.feature p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
/* Rule between the status track and the steps it explains. */
.card .track + .feature-list { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 26px; }

/* Dashboard preview panel on homepage */
.preview-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-panel__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.preview-panel__bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.preview-panel__body { padding: 22px; display: grid; gap: 14px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.preview-stat small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.preview-stat strong { font: 500 22px/1.3 var(--font-display); }
.preview-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.preview-row .cover { width: 44px; padding: 8%; }
.preview-row .cover__title, .preview-row .cover__author { display: none; }
.preview-row strong { display: block; font-size: 14px; font-weight: 600; }
.preview-row small { color: var(--muted); font-size: 12px; }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--draft { background: var(--neutral-soft); color: #666666; }
.status--submitted { background: var(--violet-soft); color: var(--violet); }
.status--review { background: var(--warn-soft); color: var(--warn); }
.status--approved { background: var(--info-soft); color: var(--info); }
.status--published { background: var(--ok-soft); color: var(--ok); }

.track { list-style: none; display: flex; margin: 0; padding: 0; }
.track__step { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.track__step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track__step:first-child::before { display: none; }
.track__step.is-done::before, .track__step.is-current::before { background: var(--ok); }
.track__dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: #fff; }
.track__step.is-done .track__dot { background: var(--ok); border-color: var(--ok); }
.track__step.is-current .track__dot { border-color: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }
.track__step.is-current .track__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.track__step.is-current { color: var(--ink); font-weight: 600; }
.track--compact .track__label { font-size: 11px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid--4 { grid-template-columns: repeat(4, 1fr); }
.service-card { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 28px); }
.service-card .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.service-card .icon-tile .icon { width: 21px; height: 21px; }
.service-card h3 { font: 500 19px/1.3 var(--font-display); margin-bottom: 8px; transition: color .2s var(--ease); }
.service-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
/* Whole-card link: the title anchor stretches over the card, so there is one
   link and one target instead of a repeated "Learn more" in every tile. */
.service-card--link h3 a { color: inherit; text-decoration: none; }
.service-card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card--link:hover h3 { color: var(--accent); }
.service-card__foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font-size: 14px; }
.service-card__foot span { color: var(--muted); }
.service-card__foot strong { font-weight: 600; }
/* Full-width service rows, stacked. Three-up cards cut each description into a
   narrow column and left the price and link cramped at the bottom; a row gives
   the copy room and puts the action where the eye already ends up. */
/* Block layout, not grid: a sticky item inside a grid can only stick within its
   own row track, which is exactly its height — so the stack would never form. */
.service-rows { margin: 0 auto; }
.service-row {
    position: sticky; top: calc(var(--header-h) + 28px); margin-bottom: 22px;
    display: flex; align-items: center; gap: clamp(24px, 3vw, 44px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
    padding: clamp(28px, 3vw, 44px);
    transform-origin: center top; will-change: transform;
    transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Each card parks a little lower than the one before, so the stack keeps a
   visible sliver of every card underneath it. */
.service-row:nth-child(2) { top: calc(var(--header-h) + 42px); }
.service-row:nth-child(3) { top: calc(var(--header-h) + 56px); }
.service-row:nth-child(4) { top: calc(var(--header-h) + 70px); }
.service-row:nth-child(5) { top: calc(var(--header-h) + 84px); }
.service-row:last-child { margin-bottom: 0; }
.service-row:hover { border-color: var(--line-strong); box-shadow: 0 30px 70px -28px rgba(17, 17, 17, .38), 0 6px 16px -8px rgba(17, 17, 17, .12); }
.service-row__icon { flex: none; width: clamp(96px, 9.5vw, 132px); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: background .3s var(--ease), color .3s var(--ease); }
.service-row__icon .icon { width: 38%; height: 38%; }
.service-row:hover .service-row__icon { background: var(--accent); color: #fff; }
.service-row__body { flex: 1; min-width: 0; }
.service-row h3 { font: 500 clamp(22px, 2vw, 30px)/1.25 var(--font-display); margin: 0 0 10px; }
.service-row p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 62ch; }
.service-row__price { display: block; margin-top: 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.service-row__action { flex: none; }

/* Cover that trails the cursor over a row. The wrapper is moved by script with
   no transition so it tracks exactly; the image inside carries the ease-in, so
   the two never fight each other. */
.cursor-cover { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; will-change: transform; }
/* Sized to clear a row's height, so the clamped preview stays inside the card. */
.cursor-cover img { display: block; width: 132px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -18px rgba(17, 17, 17, .6); opacity: 0; transform: translate(-50%, -50%) scale(.82) rotate(-6deg); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.cursor-cover.is-in img { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }

@media (max-width: 900px) {
    /* No spare height to stack into, and the action needs its own line. */
    .service-row { position: static; flex-wrap: wrap; transform: none !important; }
    .service-row__body { flex: 1 1 260px; }
    .service-row__action { width: 100%; }
}
@media (max-width: 560px) {
    .service-row__icon { width: 76px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-row { position: static; transform: none !important; }
    .cursor-cover { display: none; }
}

.service-group-title { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 56px 0 20px; display: flex; align-items: center; gap: 16px; }
.service-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.service-group-title:first-child { margin-top: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; padding: clamp(24px, 2.4vw, 30px); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.price-card:not(.price-card--featured):hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.price-card .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.price-card .icon-tile .icon { width: 21px; height: 21px; }
.price-card h3 { font: 500 21px/1.25 var(--font-display); margin: 0 0 5px; }
/* min-height keeps the price rows on one line across cards whose blurbs differ. */
.price-card__blurb { color: var(--muted); font-size: 14.5px; line-height: 1.5; min-height: 44px; margin: 0; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 5px; }
.price-card__price strong { font: 500 48px/1 var(--font-display); letter-spacing: -.03em; }
.price-card__price span { color: var(--muted); font-size: 13.5px; }
.price-card__note { font-size: 12.5px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price-card .checklist { margin: 16px 0 22px; gap: 9px; }
.price-card .checklist li { font-size: 14.5px; }
.price-card .checklist .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.price-card .btn { margin-top: auto; }
.price-card--featured { background: #0f172a; color: #f2f2f2; border-color: #0f172a; box-shadow: var(--shadow-lg); }
.price-card--featured .price-card__blurb, .price-card--featured .price-card__note, .price-card--featured .price-card__price span { color: #b3b3b3; }
.price-card--featured .price-card__note { border-color: rgba(255,255,255,.12); }
.price-card--featured .checklist li { color: #e2dbd0; }
.price-card--featured .checklist .icon { color: var(--accent-2); }
.price-card--featured .icon-tile { background: rgba(255,255,255,.08); color: var(--accent-2); }
.price-card__flag { position: absolute; top: -13px; left: 50%; translate: -50% 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
/* Ruled both ways. Horizontal lines alone left four columns floating in open
   space with nothing to say where one ended and the next began. */
.compare-table th, .compare-table td { padding: 13px 18px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; padding-right: 24px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; padding-left: 24px; }
/* The header needs its own ground: as plain text it read as just another row. */
.compare-table thead th { background: var(--surface-2); font: 600 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-top: 15px; padding-bottom: 15px; border-bottom-color: var(--line-strong); }
.compare-table thead th:first-child { color: var(--muted); }
.compare-table tbody tr { transition: background .15s var(--ease); }
/* Zebra plus hover: on a table this wide the eye loses the row between the
   label and the last column without a band to follow. */
.compare-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.compare-table tbody tr:hover { background: var(--accent-soft); }
/* The label column keeps its own tint, so the left edge stays a fixed anchor
   while reading across — cleared on hover so the row highlight wins. */
.compare-table tbody th { background: color-mix(in srgb, var(--surface-2) 55%, transparent); font-weight: 600; color: var(--ink); }
.compare-table tbody tr:hover th { background: transparent; }
.compare-table td { color: var(--ink-2); }
/* A disc behind the tick reads as "included" rather than a stray mark. */
.compare-table td .icon { display: block; margin: 0 auto; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.compare-table td.no { color: var(--line-strong); }
.table-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 0; }
.table-scroll .compare-table { min-width: 620px; }

/* ---------- FAQ ---------- */
/* One bordered panel with hairline dividers, not five floating cards — the
   questions then read as a single list instead of loose, disconnected boxes. */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); transition: background .2s var(--ease); }
.faq details:first-of-type { border-top: 0; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 16px; transition: color .2s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
/* Inset the ring: the global 3px offset on a full-width row draws accent lines
   across the divider into the neighbouring questions. */
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq summary .icon { flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); font-size: 15px; line-height: 1.65; padding: 0 22px 20px; margin: 0; max-width: 72ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.2vw, 28px); }
/* Body face, not the display face: at quote length the geometric display font
   reads as oversized UI text rather than something a person said. */
.quote blockquote { margin: 0; font: 400 16.5px/1.65 var(--font-body); color: var(--ink-2); }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.quote figcaption strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.quote figcaption span { color: var(--muted); }
.quote > .icon { color: var(--accent); width: 26px; height: 26px; opacity: .5; }

.avatar { --av: #7c4a3a; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--av); color: #fff; font: 500 15px/1 var(--font-display); letter-spacing: .02em;
    background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 60%); }
.avatar--sm { width: 36px; height: 36px; font-size: 13px; }
.avatar--md { width: 48px; height: 48px; }
.avatar--lg { width: 88px; height: 88px; font-size: 30px; }
.avatar--xl { display: grid; width: 100%; aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius-lg); font-size: clamp(64px, 9vw, 120px);
    background-image: radial-gradient(circle at 50% 30%, rgba(255,255,255,.25), transparent 55%), linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25)); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-band div { border-left: 1px solid rgba(255,255,255,.15); padding-left: 24px; }
.section:not(.section--dark) .stats-band div { border-color: var(--line-strong); }
.stats-band strong { display: block; font: 400 clamp(40px, 5vw, 60px)/1 var(--font-display); letter-spacing: -.03em; margin-bottom: 10px; }
.stats-band span { color: var(--muted); font-size: 15px; }
.section--dark .stats-band span { color: #b3b3b3; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 0%, rgba(26, 86, 219,.12), transparent 70%); }
/* Cap the measure: at a 1520px container the heading otherwise runs the full
   width and breaks wherever it lands. balance evens out the resulting lines. */
.page-hero h1 { max-width: 900px; text-wrap: balance; }
.page-hero .lead { max-width: 640px; margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }

/* Banner variant: the cover wall runs behind the hero under a scrim that is
   heaviest on the left, where the copy sits. */
/* One fixed height for every banner: the copy varies from two lines to a
   heading plus buttons, so left to content the banners would all differ.
   The box is tall enough for the longest of them, and the rest centre inside. */
.page-hero--banner {
    background: #0f172a; color: #f2f2f2; border-bottom: 0;
    min-height: clamp(380px, 40vw, 520px);
    display: flex; align-items: center;
    padding-top: clamp(40px, 5vw, 48px); padding-bottom: clamp(40px, 5vw, 48px);
}
.page-hero--banner::before { display: none; }
.page-hero--banner::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(17, 17, 17, .96) 28%, rgba(17, 17, 17, .8) 64%, rgba(17, 17, 17, .6));
}
/* Centred copy needs an even scrim; the left-weighted one would leave the
   right half of the heading sitting on bright artwork. */
.page-hero--banner.center::after { background: linear-gradient(180deg, rgba(17, 17, 17, .88), rgba(17, 17, 17, .94)); }
.page-hero--banner > .container { position: relative; z-index: 2; }
.page-hero--banner.center h1 { margin-left: auto; margin-right: auto; }
.page-hero--banner .lead { color: #c4c4c4; }
.page-hero--banner .eyebrow { color: var(--accent-2); }
.page-hero--banner .breadcrumb, .page-hero--banner .breadcrumb a { color: #b0a79b; }
.page-hero--banner .breadcrumb a:hover { color: #f2f2f2; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ---------- Book detail ---------- */
.book-hero { padding: clamp(40px, 6vw, 80px) 0; }
.book-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-hero__cover { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px); }
.book-hero__cover .cover { max-width: 380px; margin: 0 auto; box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 40px 60px -24px rgba(17, 17, 17,.55); }
.book-hero__cover-actions { display: flex; justify-content: center; gap: 18px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.book-hero__cover-actions span { display: inline-flex; align-items: center; gap: 6px; }
.book-hero h1 { margin: 10px 0 8px; }
.book-hero__subtitle { font: italic 400 22px/1.3 var(--font-display); color: var(--ink-2); margin-bottom: 16px; }
.book-hero__byline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 15px; }
.book-hero__byline a { font-weight: 600; text-decoration: none; }
.book-hero__byline a:hover { color: var(--accent); }
.rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--line-strong); }
.star.is-on { color: var(--gold); }
.star.is-on svg { fill: currentColor; }
.meta-list { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.meta-list div { flex: 1 1 auto; min-width: 110px; background: var(--surface); padding: 14px 16px; }
.meta-list dd { white-space: nowrap; }
.meta-list dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.meta-list dd { margin: 0; font-weight: 500; font-size: 14.5px; }

.format-picker { display: grid; gap: 10px; margin-bottom: 20px; }
.format-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.format-option:hover { border-color: var(--line-strong); }
.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.format-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17,.06); }
.format-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.format-option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.format-option:has(input:checked) .format-option__radio { border-color: var(--ink); }
.format-option:has(input:checked) .format-option__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.format-option__text { flex: 1; }
.format-option__text strong { display: block; font-weight: 600; }
.format-option__text small { color: var(--muted); font-size: 13px; }
.format-option__price { font: 500 20px/1 var(--font-display); }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-note { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.buy-note span { display: inline-flex; align-items: center; gap: 6px; }

.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format-card { text-align: left; display: flex; flex-direction: column; }
.format-card h3 { font: 500 24px/1.2 var(--font-display); margin: 0 0 4px; }
.format-card__price { font: 400 36px/1.2 var(--font-display); margin: 16px 0; }
.format-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0 0 24px; }
.format-card dt { color: var(--muted); }
.format-card dd { margin: 0; text-align: right; }
.format-card .btn { margin-top: auto; }
.format-card--na { opacity: .55; }

.author-strip { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; }
.author-strip .avatar { width: 120px; height: 120px; font-size: 40px; }

/* ---------- Author pages ---------- */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Avatar left, the name and its blurb stacked in the middle, cover on the right. */
.author-card { display: flex; align-items: flex-start; gap: 16px; text-decoration: none; padding: clamp(20px, 2vw, 26px); }
.author-card > .avatar { flex: none; }
.author-card__body { flex: 1; min-width: 0; }
.author-card h3 {
    font-size: 18px;
    margin: 0 0 2px;
}
.author-card__body small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.author-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.author-card__covers { flex: none; display: flex; gap: 8px; }
.author-card__covers .cover { width: 66px; padding: 9%; }
.author-card__covers .cover__author { display: none; }
.author-card__covers .cover__title { font-size: 14cqi; }

.author-hero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.social-links a:hover { border-color: var(--ink); background: var(--surface); }
.social-links .icon { width: 17px; height: 17px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
    font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b5b5b5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17,.08); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.08); }
.field__error { font-size: 12.5px; color: #b3261e; display: none; }
.field.has-error .field__error { display: block; }
.input-affix { position: relative; }
.input-affix > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: 15px; }
.input-affix .input { padding-left: 30px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-status { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: #b3261e; }

/* Contact / auth */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 36px; }
.contact-cards a, .contact-cards div { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.contact-cards .icon-tile { margin: 0; width: 44px; height: 44px; }
.contact-cards strong { display: block; font-weight: 600; font-size: 15px; }
.contact-cards span { color: var(--muted); font-size: 14px; }

.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 56px var(--gutter); }
.auth__form { width: 100%; max-width: 420px; }
.auth__form h1 { margin-bottom: 10px; }
.auth__form > p { color: var(--muted); margin-bottom: 32px; }
.auth__form .field + .field { margin-top: 18px; }
.auth__switch { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 36px; }
.auth__switch a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.auth__switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth__aside { background: #0f172a; color: #f2f2f2; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(40px, 6vw, 72px); }
.auth__aside blockquote { margin: 0 0 24px; font: 400 clamp(22px, 2.4vw, 30px)/1.35 var(--font-display); max-width: 520px; position: relative; z-index: 2; }
.auth__aside figcaption { position: relative; z-index: 2; color: #b3b3b3; font-size: 14px; display: flex; gap: 12px; align-items: center; }
/* ---------- Cover wall ---------- */
/* A tilted, slowly scrolling grid of real cover art. Sits behind a gradient
   scrim so the artwork reads as texture and any text over it stays legible.
   Used by the auth aside and by banner page heroes. */
.cover-wall {
    position: absolute; inset: -18% -12%; z-index: 0; overflow: hidden;
    display: grid; grid-template-columns: repeat(var(--wall-cols, 4), 1fr); gap: 14px; align-items: start;
    transform: rotate(-8deg) scale(1.1);
}
/* Each column prints its covers twice, so travelling -50% lands on an identical
   frame — the marquee loops forever with no visible seam. */
.cover-wall__col { display: flex; flex-direction: column; will-change: transform; animation: cover-wall-up 46s linear infinite; }
.cover-wall__col:nth-child(even) { animation-name: cover-wall-down; }
.cover-wall__col:nth-child(4n + 2) { animation-duration: 58s; }
.cover-wall__col:nth-child(4n + 3) { animation-duration: 38s; }
.cover-wall__col:nth-child(4n + 4) { animation-duration: 64s; }
/* margin-bottom, not gap: the trailing margin keeps both halves exactly equal. */
.cover-wall__col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; margin-bottom: 14px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }

@keyframes cover-wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes cover-wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .cover-wall__col { animation: none; }
}
/* A wide banner asks for 8 columns; on a phone that same count shrinks the
   covers to noise. !important because the count arrives as an inline custom
   property, which a plain rule here could not outrank. */
@media (max-width: 900px) {
    .cover-wall { --wall-cols: 4 !important; }
    .cover-wall{
        display: none;
    }
}
.auth__aside::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 17, 17, .52), rgba(17, 17, 17, .78) 45%, rgba(17, 17, 17, .97));
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Timeline (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-member .avatar--xl { margin-bottom: 16px; font-size: 56px; }
.team-member strong { display: block; font: 500 19px/1.3 var(--font-display); }
.team-member span { color: var(--muted); font-size: 14px; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; }
.article-card__img { aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 18px; position: relative; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.article-card__img .cover { width: 30%; transform: rotate(-6deg); }
.article-card small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.article-card h3 { font: 500 22px/1.25 var(--font-display); margin: 8px 0; }
.article-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.article-card p { color: var(--ink-2); font-size: 15px; }
.guide-steps { counter-reset: g; display: grid; gap: 0; }
.guide-steps li { list-style: none; counter-increment: g; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.guide-steps li::before { content: counter(g, decimal-leading-zero); font: 400 32px/1 var(--font-display); color: var(--accent); }
.guide-steps h3 { font: 500 22px/1.25 var(--font-display); margin-bottom: 8px; }
.guide-steps p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cfc6ba; padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta h2 { color: #ffffff; margin-bottom: 8px; }
.footer-cta p { margin: 0; color: #9e9e9e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0; }
.footer-brand p { font-size: 15px; margin: 20px 0 28px; max-width: 380px; color: #9e9e9e; }
.footer-brand strong { color: #ffffff; font-weight: 500; }
.site-footer h3 { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; }
.site-footer nav ul { list-style: none; display: grid; gap: 12px; }
.site-footer nav a { color: #9e9e9e; text-decoration: none; font-size: 15px; transition: color .15s; }
.site-footer nav a:hover { color: #fff; }
.newsletter label { display: block; font-size: 13px; color: #ffffff; margin-bottom: 10px; font-weight: 500; }
.newsletter__row { display: flex; gap: 8px; max-width: 420px; }
.newsletter input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #fff; }
.newsletter input::placeholder { color: #7a7a7a; }
.newsletter input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.newsletter .form-status.is-ok { color: #8fcaa9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7a7a7a; }
.footer-bottom p { margin: 0; max-width: 640px; }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom a { color: #9e9e9e; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- CTA banner ---------- */
/* Full-bleed closing CTA: the cover wall runs behind a heavy scrim with the
   copy centred over it — edge to edge, not a contained card. */
.cta-band { position: relative; overflow: hidden; background: #0f172a; color: #f2f2f2; padding: clamp(72px, 9vw, 120px) 0; }
/* Two layers. The radial sits under the copy and takes the centre to near-solid
   so the type always has contrast, whatever cover happens to scroll behind it;
   the linear underneath only mutes the rest, so the artwork still reads as
   texture towards the edges. A single flat scrim can't do both. */
.cta-band::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(58% 78% at 50% 50%, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .66) 58%, transparent 100%),
        linear-gradient(180deg, rgba(17, 17, 17, .74), rgba(17, 17, 17, .62) 45%, rgba(17, 17, 17, .8));
}
.cta-band__inner { position: relative; z-index: 2; }
.cta-band .eyebrow { color: var(--accent-2); }
.cta-band h2 { text-wrap: balance; max-width: 20ch; margin: 0 auto; }
.cta-band__text { color: #c4c4c4; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; max-width: 62ch; margin: 18px auto 34px; }
.cta-band .btn-accent { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; translate: -50% 20px; opacity: 0; max-width: calc(100% - 32px);
    background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .3s, translate .3s var(--ease); }
.toast.is-in { opacity: 1; translate: -50% 0; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s !important; }
.reveal-delay-2 { transition-delay: .16s !important; }
.reveal-delay-3 { transition-delay: .24s !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .books-grid, .books-grid--5 { grid-template-columns: repeat(3, 1fr); }
    .services-grid--4, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .hero__grid, .split, .book-hero__grid, .author-hero__grid, .contact-grid { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .hero-stage { max-width: 560px; width: 100%; margin: 0 auto; height: 480px; }
    .book3d-wrap { width: 230px; }
    .options-grid, .pricing-grid, .quotes, .values-grid, .authors-grid, .resource-grid, .formats-grid { grid-template-columns: 1fr 1fr; }
    .options-grid > :last-child:nth-child(odd), .pricing-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats-band { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .book-hero__cover { position: static; }
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .pricing-grid { row-gap: 36px; }
}
@media (max-width: 680px) {
    :root { --header-h: 66px; }
    body { font-size: 15.5px; }
    .books-grid, .books-grid--5 { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
    .book-card__cover { padding: 14px; }
    .book-card__title { font-size: 15px; }
    .price__whole { font-size: 23px; }
    .options-grid, .pricing-grid, .quotes, .values-grid, .authors-grid, .resource-grid, .formats-grid, .services-grid, .services-grid--4, .form-grid { grid-template-columns: 1fr; }
    .options-grid > :last-child:nth-child(odd), .pricing-grid > :last-child:nth-child(odd) { grid-column: auto; }
    .form-grid .span-2 { grid-column: auto; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stage { height: 400px; }
    .book3d-wrap { width: 180px; left: 2%; }
    .ereader { width: 210px; }
    .ereader__screen { padding: 18px 16px 12px; }
    .ereader__title { font-size: 17px; }
    .ereader__text { font-size: 11px; }
    .chip-float--status { display: none; }
    .chip-float--print { bottom: 2%; }
    .chip-float--ebook { top: 0; right: 0; }
    .buy-row { grid-template-columns: 1fr; }
    .author-strip { grid-template-columns: 1fr; }
    .preview-stats { grid-template-columns: 1fr 1fr; }
    .preview-stats > :last-child { display: none; }
    .trust-strip__inner { flex-direction: column; align-items: flex-start; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filter-chip { flex: none; }
    .hero__trust { gap: 18px 28px; }
}

/* Show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-toggle .icon { width: 20px; height: 20px; }
input[type="password"]::-ms-reveal { display: none; } /* Edge's own eye would duplicate ours */

/* ==========================================================================
   Simple typography — one family (Inter). Headings get weight instead of a
   second display face; accent words keep the colour but drop the italics.
   ========================================================================== */
.display-xl, .display-lg, .display-md, .display-sm { font-weight: 650; letter-spacing: -.028em; }
.display-xl { line-height: 1.04; }
.display-xl em, .display-lg em, .display-md em, .display-sm em, .logo__text em { font-style: normal; }
.logo__text { font-weight: 600; letter-spacing: -.02em; }
.prose h2, .option-card h3, .format-card h3, .price-card h3, .service-card h3, .service-row h3,
.article-card h3, .guide-steps h3, .channel-card h3, .team-member strong { font-weight: 600; letter-spacing: -.015em; }
.stats-band strong, .price-card__price strong, .format-card__price, .hero__trust strong, .preview-stat strong { font-weight: 600; letter-spacing: -.025em; }
.book-hero__subtitle, .cover--type .cover__title { font-style: normal; }
.cover__title { font-weight: 600; letter-spacing: -.02em; }
.auth__aside blockquote { font-weight: 500; letter-spacing: -.015em; }
.trust-strip li { font-weight: 600; }
@media (max-width: 1240px) { .primary-nav ul a { font-weight: 500; letter-spacing: -.015em; } }


