.scroll-indicator {
  position: fixed; z-index: 10; inset: 0 0 auto; height: 3px; pointer-events: none;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
}
.header { animation: header-enter .75s cubic-bezier(.22,.7,.2,1) both; }
.hero-text .eyebrow, .hero-description, .hero-actions, .book-caption {
  animation: slide-in .9s cubic-bezier(.22,.7,.2,1) both;
}
.hero-text .eyebrow { animation-delay: .12s; }
.hero-description { animation-delay: .28s; }
.hero-actions { animation-delay: .38s; }
.book-caption { animation-delay: .55s; }
h1 { font-family: var(--serif); font-size: clamp(4rem, 7.2vw, 7.15rem); font-weight: 600; letter-spacing: -.059em; line-height: .9; }
h1 em { font-style: italic; font-weight: 500; }
.headline-line { overflow: hidden; padding: .075em .06em .11em 0; margin-bottom: -.1em; }
.headline-line > * { animation: headline-in .9s cubic-bezier(.16,.76,.19,1) both; }
.headline-line:nth-child(2) > * { animation-delay: .16s; }
.reading-demo { animation: stage-in 1.08s .12s cubic-bezier(.19,.72,.17,1) both; }
@keyframes header-enter { from { opacity: 0; translate: 0 -17px; } to { opacity: 1; translate: 0; } }
@keyframes slide-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0; } }
@keyframes headline-in {
  from { transform: translateY(105%) skewY(5deg); }
  to { transform: translateY(0) skewY(0); }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateX(35px) scale(.965); clip-path: inset(0 0 0 19% round 16px); }
  to { opacity: 1; transform: none; clip-path: inset(0 -20px -20px round 16px); }
}
.reveal-entered { animation: section-enter .76s cubic-bezier(.2,.69,.2,1) backwards; }
.download-card.reveal-entered:nth-child(2) { animation-delay: 75ms; }
.download-card.reveal-entered:nth-child(3) { animation-delay: 150ms; }
@keyframes section-enter {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0; }
}

button, a.primary, a.download-link, a.nav-link, a.brand, a.contact, a.book-source {
  position: relative;
}
button:disabled { cursor: default; }
button:not(:disabled)::before, a.primary::before, a.download-link::before,
a.nav-link::before, a.brand::before, a.contact::before, a.book-source::before {
  position: absolute; content: ""; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 85px at var(--button-x, 50%) var(--button-y, 50%), #ffffff2b, transparent 88%);
  opacity: 0; transition: opacity .25s ease;
}
button:not(:disabled):is(:hover,:focus-visible)::before, a.primary:is(:hover,:focus-visible)::before,
a.download-link:is(:hover,:focus-visible)::before, a.nav-link:is(:hover,:focus-visible)::before,
a.brand:is(:hover,:focus-visible)::before, a.contact:is(:hover,:focus-visible)::before,
a.book-source:is(:hover,:focus-visible)::before { opacity: 1; }
.nav-link::after {
  content: ""; position: absolute; height: 1px; inset: auto 0 -6px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22,.72,.2,1);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.primary .icon-download, .download-link .icon-download { transition: translate .3s cubic-bezier(.3,1.4,.5,1); }
.primary:hover .icon-download, .download-link:hover .icon-download { translate: 0 3px; }
.install[open] { animation: section-enter .28s ease backwards; }
.report-dialog[open], .shot-dialog[open] { animation: dialog-enter .35s cubic-bezier(.16,.7,.19,1.07) both; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(13px) scale(.97); } to { opacity: 1; transform: none; } }

.book-stage {
  background: radial-gradient(ellipse at 46% 43%, var(--accent-soft), var(--surface) 73%);
}
.book-field { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.front-cover {
  position: absolute; inset: 0 auto 0 0; overflow: hidden;
  align-items: center; text-align: center; padding: 12% 7% 8%;
  background: url("assets/cover.webp") center / 100% 100% no-repeat, var(--cover);
  color: #f5e4ff; border-color: #cba6e36b;
  box-shadow: inset 8px 0 11px #100b177c, inset -1px -1px 3px #e8ceff67, 1px 3px 4px #0005;
  transition: transform .78s cubic-bezier(.2,.66,.18,1), left .78s cubic-bezier(.2,.66,.18,1),
              width .78s cubic-bezier(.2,.66,.18,1), opacity .63s, visibility .78s;
}
.front-cover::after { background: #dcbaf02b; }
.cover-copy { align-items: center; gap: 12px; text-shadow: 0 2px 9px #0d0912; }
.cover-title { font-size: clamp(1.55rem, 3.3vw, 3.65rem); }
.cover-footer {
  width: auto; padding: .4rem .65rem; border: 1px solid #f2d6ff42;
  border-radius: 4px; background: #201629e3; letter-spacing: .14em;
}
.is-open .front-cover { left: 50%; width: 50%; opacity: 0; transform: translateZ(11px) rotateY(-176deg); }
.book-pages { transform-style: preserve-3d; }
.is-open .book-pages { animation: book-unfold .69s cubic-bezier(.2,.7,.2,1) both; }
@keyframes book-unfold { from { opacity: .3; } to { opacity: 1; } }
.turning-leaf {
  display: block; color: var(--ink); padding: 8% 6%; overflow: hidden;
  transform-style: preserve-3d; box-shadow: 7px 1px 18px #0003;
}
.turning-leaf span {
  display: block; backface-visibility: hidden; white-space: pre-line;
  font: 600 clamp(1rem, 1.45vw, 1.22rem)/1.2 var(--serif);
}
.book-source { color: var(--accent); font-size: .8rem; text-decoration: underline; padding: 7px 4px; }

.screenshots { padding-block: 55px; border-top: 1px solid var(--line); }
.screenshot-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.screenshot-tabs button {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--muted); font-size: .85rem; font-weight: 750;
  transition: color .22s, background .22s, border-color .22s;
}
.screenshot-tabs button[aria-selected="true"] { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.screenshot-deck {
  position: relative; isolation: isolate; overflow: hidden; height: clamp(315px, 42vw, 490px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse at center, var(--accent-soft), var(--surface) 70%);
}
.preview-shot {
  position: absolute; top: 47%; left: 50%; padding: 5px; border-radius: 12px; border: 1px solid var(--accent-line);
  background: var(--bg); box-shadow: 0 16px 35px #0007;
  transition: transform .68s cubic-bezier(.18,.75,.16,1), opacity .48s, filter .43s;
}
.preview-shot img { display: block; width: 100%; height: auto; border-radius: 7px; }
.desktop-shot { width: min(64%, 590px); }
.phone-shot { width: min(26%, 225px); }
.preview-shot[data-position="center"] { z-index: 3; transform: translate(-50%, -50%) scale(1); }
.preview-shot[data-position="center"]:hover { transform: translate(-50%, -50%) scale(1.035); }
.preview-shot[data-position="left"], .preview-shot[data-position="right"] { z-index: 1; opacity: .48; pointer-events: none; }
.preview-shot[data-position="left"] { transform: translate(calc(-50% - clamp(110px, 29vw, 335px)), -41%) rotate(-9deg) scale(.75); }
.preview-shot[data-position="right"] { transform: translate(calc(-50% + clamp(110px, 29vw, 335px)), -41%) rotate(9deg) scale(.75); }
.screenshot-caption { margin: 10px 0 0; color: var(--muted); font-size: .87rem; }
.shot-dialog {
  width: fit-content; max-width: calc(100% - 18px); max-height: calc(100dvh - 18px); padding: 13px;
  border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.shot-dialog::backdrop { background: #000b; }
.shot-dialog form { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.shot-dialog button { font-size: 1.35rem; }
.shot-dialog figure { margin: 0; }
.shot-dialog img { display: block; max-width: 100%; max-height: 73dvh; width: auto; height: auto; border-radius: 6px; }
.shot-dialog figcaption { margin-top: 7px; }

@media (max-width: 850px) {
  h1 { font-size: clamp(3.45rem, 10vw, 6rem); }
  .navigation { gap: 14px; }
  .navigation .nav-link:last-child { display: none; }
}
@media (max-width: 580px) {
  h1 { font-size: clamp(3.1rem, 12vw, 4.7rem); }
  .cover-title { font-size: clamp(1.45rem, 6vw, 2.25rem); }
  .book-controls { flex-wrap: wrap; }
  .is-open .front-cover { left: 0; width: 100%; }
  .is-open .book-stage { min-height: 450px; }
  .turning-leaf { padding: 22px; }
  .screenshots { padding-block: 38px; }
  .desktop-shot { width: 85%; }
  .phone-shot { width: min(52%, 163px); }
}
@media (prefers-reduced-motion: reduce) {
  .book-field { display: none; }
}
