:root {
  --ink: #12110e;
  --stone: #f1ede4;
  --white: #fffcfa;
  --brass: #b8955f;
  --brass-deep: #8c6e3a;
  --champagne: #d4b47a;
  --mute: #6b645a;
  --mute-2: #968e82;
  --line: #e4ded2;
  --font-display: "Noto Kufi Arabic", "Bricolage Grotesque", sans-serif;
  --font-body: "Noto Sans Arabic", "Bricolage Grotesque", sans-serif;
  --font-ui: "Bricolage Grotesque", "Noto Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rx: 0deg;
  --ry: 0deg;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  background: #100e0c;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@page { size: A4; margin: 0; }

/* ── Language switcher ── */
.lang-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  animation: lang-bar-in 0.7s var(--ease-out) 0.15s both;
}

.lang-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(28, 24, 20, 0.88), rgba(10, 9, 8, 0.82));
  border: 1px solid rgba(184, 149, 95, 0.34);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(212, 180, 122, 0.16);
}

.lang-shell-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 180, 122, 0.78);
  white-space: nowrap;
}

.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  min-width: 188px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  direction: ltr;
}

.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background:
    linear-gradient(165deg, #e0c28a 0%, #b8955f 48%, #8c6e3a 100%);
  box-shadow:
    0 4px 14px rgba(140, 110, 58, 0.4),
    inset 0 1px 0 rgba(255, 252, 250, 0.35);
  transition: transform 0.42s var(--ease-out);
  z-index: 0;
  will-change: transform;
}

.lang-switch[data-lang="en"] .lang-thumb {
  transform: translateX(100%);
}

.lang-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  color: rgba(255, 252, 250, 0.55);
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 0.32s var(--ease), transform 0.32s var(--ease);
}

.lang-switch button .lang-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.lang-switch button .lang-name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-switch button.is-active {
  color: #16120e;
}

.lang-switch button.is-active .lang-code {
  opacity: 1;
}

.lang-switch button:hover:not(.is-active) {
  color: rgba(255, 252, 250, 0.92);
}

.lang-switch button:focus-visible {
  outline: 2px solid rgba(212, 180, 122, 0.7);
  outline-offset: 2px;
}

.lang-switch button:active {
  transform: scale(0.98);
}

body.is-lang-switching .deck {
  opacity: 0.28;
  filter: blur(3px) saturate(0.9);
  transform: scale(0.992);
  transition:
    opacity 0.28s var(--ease),
    filter 0.28s var(--ease),
    transform 0.28s var(--ease);
}

body:not(.is-lang-switching) .deck {
  transition:
    opacity 0.45s var(--ease-out),
    filter 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

@keyframes lang-bar-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .lang-shell-label { display: none; }
  .lang-shell { padding: 6px; }
  .lang-switch { min-width: 168px; }
  .lang-switch button .lang-name { font-size: 11px; }
}

.stage {
  min-height: 100svh;
  height: auto;
  display: grid;
  place-items: start center;
  padding: 68px 16px 64px;
  position: relative;
  perspective: 1600px;
  overflow: auto;
  background: #070605;
  scroll-snap-type: y proximity;
}

.stage-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 38% at 16% 18%, rgba(212, 180, 122, 0.3), transparent 58%),
    radial-gradient(ellipse 40% 36% at 90% 72%, rgba(140, 110, 58, 0.18), transparent 56%),
    radial-gradient(ellipse 50% 32% at 55% 6%, rgba(184, 149, 95, 0.12), transparent 52%),
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(8, 7, 6, 0.98), transparent 50%),
    linear-gradient(165deg, #1c1712 0%, #090807 42%, #15110d 100%);
  pointer-events: none;
  z-index: 0;
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.65;
  animation: orb-float 12s ease-in-out infinite alternate;
  z-index: 0;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: rgba(184, 149, 95, 0.28);
  top: 4%;
  inset-inline-start: 8%;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: rgba(212, 180, 122, 0.12);
  bottom: 6%;
  inset-inline-end: 6%;
  animation-delay: -3s;
}

.orb-c {
  width: 220px;
  height: 220px;
  background: rgba(255, 252, 250, 0.07);
  top: 48%;
  inset-inline-end: 28%;
  animation-delay: -6s;
}

.deck {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(210mm, calc(100vw - 32px));
  transition: opacity 0.28s var(--ease), filter 0.28s var(--ease);
}

.sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  height: auto;
  max-height: none;
  overflow: hidden;
  direction: inherit;
  background: var(--stone);
  border-radius: 4px;
  transform-style: preserve-3d;
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.58),
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  isolation: isolate;
  scroll-snap-align: center;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: soft-light;
}

.sheet.is-visible::before {
  animation: page-shine 1.8s var(--ease-out) 0.15s both;
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(184, 149, 95, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 5;
}

.frame {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.sheet.is-visible .frame,
.sheet.cover.is-in .frame {
  opacity: 0.7;
  animation: frame-in 1s var(--ease-out) 0.2s both;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(140, 110, 58, 0.55);
  border-style: solid;
}

.frame::before {
  top: 0;
  inset-inline-start: 0;
  border-width: 1.5px 0 0 1.5px;
}

.frame::after {
  bottom: 0;
  inset-inline-end: 0;
  border-width: 0 1.5px 1.5px 0;
}

.progress-rail {
  position: fixed;
  top: 50%;
  inset-inline-end: 16px;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 9px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.62);
  border: 1px solid rgba(184, 149, 95, 0.28);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.progress-rail button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 252, 250, 0.24);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.progress-rail button.is-active {
  background: linear-gradient(180deg, var(--champagne), var(--brass-deep));
  height: 18px;
  border-radius: 999px;
  transform: none;
  box-shadow: 0 0 0 3px rgba(184, 149, 95, 0.2);
}

.progress-rail button:hover {
  background: var(--champagne);
}

/* Cover sheet — entrance animation */
.sheet.cover {
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(28px)
    scale(0.96);
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    box-shadow 0.35s var(--ease);
  will-change: transform;
}

.sheet.cover.is-in {
  opacity: 1;
  animation: sheet-in 1.15s var(--ease) forwards;
}

.sheet.cover.is-live {
  animation: none;
  transition:
    transform 0.18s ease-out,
    opacity 0.9s var(--ease),
    box-shadow 0.35s var(--ease);
  transform:
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(0)
    scale(1);
}

/* Inner pages — scroll reveal entrance */
.sheet.page-sheet {
  opacity: 0;
  transform: translateY(42px) scale(0.978) rotateX(4deg);
  transform-origin: center top;
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out),
    box-shadow 0.5s var(--ease);
}

.sheet.page-sheet.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.58),
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(184, 149, 95, 0.08);
}

.sheet.page-sheet .veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(184, 149, 95, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(18, 17, 14, 0.05), transparent 50%);
  z-index: 0;
  animation: veil-breathe 8s ease-in-out infinite alternate;
}

.wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 60% at 78% -8%, rgba(212, 180, 122, 0.38), transparent 55%),
    radial-gradient(ellipse 55% 50% at 8% 18%, rgba(255, 252, 250, 0.72), transparent 58%),
    radial-gradient(ellipse 70% 48% at 0% 100%, rgba(18, 17, 14, 0.07), transparent 52%),
    radial-gradient(ellipse 48% 38% at 52% 42%, rgba(255, 252, 250, 0.5), transparent 68%),
    linear-gradient(168deg, #fcf9f3 0%, #f4eee4 38%, #ebe3d4 72%, #e4dccb 100%);
  pointer-events: none;
}

.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 17, 14, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 14, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 82% 72% at 50% 36%, #000 16%, transparent 78%);
  animation: mesh-drift 18s linear infinite;
}

@keyframes mesh-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 34px 34px, 34px 34px; }
}

.aurora {
  position: absolute;
  width: 78%;
  height: 52%;
  top: -10%;
  inset-inline-end: -16%;
  background:
    radial-gradient(circle at 28% 38%, rgba(212, 180, 122, 0.42), transparent 46%),
    radial-gradient(circle at 68% 62%, rgba(184, 149, 95, 0.28), transparent 52%),
    radial-gradient(circle at 50% 20%, rgba(255, 245, 220, 0.35), transparent 55%);
  filter: blur(22px);
  animation: aurora-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.aurora-2 {
  position: absolute;
  width: 55%;
  height: 40%;
  bottom: 18%;
  inset-inline-start: -18%;
  background:
    radial-gradient(circle at 60% 40%, rgba(140, 110, 58, 0.16), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(184, 149, 95, 0.12), transparent 50%);
  filter: blur(28px);
  animation: aurora-drift 11s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  opacity: 0.85;
}

.shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 60%
  );
  transform: translateX(40%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.sheet.cover.is-in .shine {
  animation: page-shine 2.4s var(--ease) 0.5s both;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pad {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  padding: 20px 26px 18px;
  display: flex;
  flex-direction: column;
  transform: translateZ(20px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 8px 10px;
  margin: -2px -4px 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.72), rgba(255, 252, 250, 0.28));
  border: 1px solid rgba(228, 222, 210, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(18, 17, 14, 0.04);
}

.by {
  display: flex;
  align-items: center;
  gap: 10px;
}

.by img {
  height: 18px;
  width: auto;
}

.by span {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-row .mini-arkon {
  height: 22px;
  width: auto;
}

.brand-row .mini-rootk {
  height: 14px;
  width: auto;
}

.brand-row .x {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--mute-2);
  opacity: 0.6;
}

.badge {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid rgba(184, 149, 95, 0.28);
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.95), rgba(241, 237, 228, 0.85));
  color: var(--mute);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(18, 17, 14, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(18, 17, 14, 0.08);
}

/* Cover hero */
.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2.4vh, 22px);
  padding: clamp(20px, 4vh, 40px) 8px clamp(16px, 3vh, 28px);
}

.hero .lede {
  margin-inline: auto;
}

.hero .eyebrow,
.hero h1 {
  text-align: center;
}

.hero .demo-panel {
  text-align: start;
}

.brand-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 clamp(4px, 1vh, 10px);
  transform-style: preserve-3d;
  flex-shrink: 0;
  text-align: center;
}

.brand-glow {
  position: absolute;
  width: min(520px, 96%);
  height: 160%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(184, 149, 95, 0.34), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: brand-glow 5s ease-in-out infinite alternate;
}

.brand-hero .arkon {
  position: relative;
  z-index: 1;
  display: block;
  margin-inline: auto;
  width: min(430px, 88%);
  height: auto;
  filter: drop-shadow(0 26px 48px rgba(18, 17, 14, 0.16));
  animation: logo-float 5.5s ease-in-out 1.2s infinite;
  transform: translateZ(48px);
}

.sheet.cover.is-in .brand-hero .arkon {
  animation:
    logo-enter 1.1s var(--ease-out) 0.25s both,
    logo-float 5.5s ease-in-out 1.5s infinite;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 34px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--ink);
  flex-shrink: 0;
}

html[dir="ltr"] h1 {
  max-width: 18ch;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.03em;
}

html[dir="ltr"] .hero .lede {
  max-width: 48ch;
}

h1 .line {
  display: block;
  overflow: hidden;
}

h1 .line > span {
  display: inline-block;
  transform: translateY(110%) rotateX(-35deg);
  transform-origin: bottom;
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}

.sheet.cover.is-in h1 .line:nth-child(1) > span {
  transform: none;
  opacity: 1;
  transition-delay: 0.45s;
}

.sheet.cover.is-in h1 .line:nth-child(2) > span {
  transform: none;
  opacity: 1;
  transition-delay: 0.6s;
}

h1 .gold {
  white-space: nowrap;
  background: linear-gradient(120deg, #8c6e3a, #d4b47a 45%, #8c6e3a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brass-shift 5s linear infinite;
}

.lede {
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--mute);
  flex-shrink: 1;
}

.cover-cta {
  margin-top: 8px;
  max-width: 42ch;
  padding: 14px 16px;
  border: 1px solid rgba(184, 149, 95, 0.28);
  background: linear-gradient(145deg, rgba(255, 252, 250, 0.72), rgba(241, 237, 228, 0.35));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.demo-panel {
  width: min(440px, 100%);
  margin-top: 6px;
  margin-inline: auto;
  padding: 14px 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(184, 149, 95, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 252, 250, 0.92), rgba(244, 238, 228, 0.72));
  box-shadow:
    0 16px 36px rgba(18, 17, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-align: start;
  position: relative;
  overflow: hidden;
}

.demo-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.demo-panel.compact {
  width: 100%;
  margin-top: 2px;
  padding: 11px 13px;
}

.demo-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.demo-kicker {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #16120e;
  background: linear-gradient(165deg, #e0c28a, #b8955f 55%, #8c6e3a);
  box-shadow: 0 8px 18px rgba(140, 110, 58, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.demo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(140, 110, 58, 0.35);
}

.demo-arrow {
  font-size: 12px;
  line-height: 1;
}

.demo-url {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.demo-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-panel.compact .demo-creds {
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px 10px;
  align-items: start;
}

.demo-creds label,
.demo-url-cell label {
  display: block;
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 3px;
}

.demo-creds strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
}

.demo-url-cell a {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--brass-deep);
  text-decoration: none;
  word-break: break-all;
  direction: ltr;
  unicode-bidi: isolate;
}

.demo-url-cell a:hover {
  text-decoration: underline;
}

.demo-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(184, 149, 95, 0.18);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--mute);
}

.cover-cta-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}

.cover-cta p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.cover-cta-line {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  animation: foot-line 3.2s ease-in-out infinite;
}

@media (max-width: 700px) {
  .demo-panel.compact .demo-creds {
    grid-template-columns: 1fr;
  }
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
  perspective: 900px;
  flex-shrink: 0;
}

.prices.pro {
  gap: 12px;
  margin-top: 2px;
  align-items: stretch;
}

.pricing-body {
  gap: 10px;
}

.pricing-aurora {
  opacity: 0.85;
}

.price-card {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 8px;
  height: 100%;
}

.price-card-face {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 210px;
  padding: 16px 14px 14px;
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgba(255, 252, 250, 0.96), rgba(244, 238, 228, 0.78));
  border: 1px solid rgba(228, 222, 210, 0.95);
  box-shadow: 0 10px 24px rgba(18, 17, 14, 0.05);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.price-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.price-card:hover .price-card-face {
  transform: translateY(-4px);
  border-color: rgba(184, 149, 95, 0.45);
  box-shadow: 0 18px 36px rgba(18, 17, 14, 0.1);
}

.price-card:hover .price-card-face::after {
  animation: card-shine 0.95s var(--ease);
}

.price-card.featured .price-card-face {
  background: linear-gradient(165deg, #fff9ef 0%, #fffdf8 55%, #f7efe0 100%);
  border-color: rgba(184, 149, 95, 0.55);
  box-shadow:
    0 18px 40px rgba(18, 17, 14, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.price-glow {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 149, 95, 0.45), transparent 55%);
  filter: blur(12px);
  opacity: 0.55;
  animation: glow-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.price-ribbon {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(120deg, var(--brass-deep), #c4a06a);
  box-shadow: 0 6px 14px rgba(140, 110, 58, 0.25);
}

.price-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-desc {
  font-size: 10px;
  line-height: 1.45;
  color: var(--mute);
  margin-bottom: 8px;
  min-height: 2.9em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  justify-content: flex-end;
}

.price-amount b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #8c6e3a, #d4b47a 45%, #8c6e3a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brass-shift 5s linear infinite;
}

.price-amount span {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
}

.price-was {
  font-size: 10px;
  color: var(--mute-2);
  text-decoration: line-through;
  margin-bottom: 8px;
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(184, 149, 95, 0.18);
}

.price-card li {
  position: relative;
  padding-inline-start: 12px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--mute);
}

.price-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b47a, var(--brass-deep));
}

.legal-panel {
  position: relative;
  margin-top: 4px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(184, 149, 95, 0.38);
  background:
    linear-gradient(165deg, #fffcfa 0%, #f7f1e6 48%, #efe6d6 100%);
  color: var(--ink);
  box-shadow:
    0 18px 40px rgba(18, 17, 14, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
  overflow: hidden;
}

.legal-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--brass-deep), var(--brass), transparent);
}

.legal-panel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  inset-inline-end: -40px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 95, 0.16), transparent 68%);
  pointer-events: none;
}

.legal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 149, 95, 0.22);
}

.logo-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #ffffff 0%, #f4eee4 100%);
  border: 1px solid rgba(184, 149, 95, 0.4);
  box-shadow:
    0 8px 18px rgba(18, 17, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: logo-badge-in 0.7s var(--ease-out) both;
}

.logo-badge img {
  height: 28px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  display: block;
  filter: none;
}

.legal-head-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal-head-text span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--brass-deep);
  letter-spacing: 0.06em;
}

.legal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.legal-cell {
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(255, 252, 250, 0.72);
  border: 1px solid rgba(228, 222, 210, 0.95);
}

.legal-grid label {
  display: block;
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}

.legal-num {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  direction: rtl;
  unicode-bidi: isolate;
}

html[dir="ltr"] .legal-num {
  direction: ltr;
}

.legal-address {
  grid-column: 1 / -1;
}

.legal-address p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  opacity: 0.9;
}

@keyframes logo-badge-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 6px;
}

.card-face {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 14px;
  min-height: 96px;
  transform: translateZ(12px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.card:hover .card-face::after {
  animation: card-shine 0.9s var(--ease);
}

.card.focus .card-face {
  border-color: rgba(154, 123, 79, 0.55);
  background: linear-gradient(160deg, #fff8ec, #fff);
  box-shadow: 0 14px 34px rgba(18, 17, 14, 0.1);
}

.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 149, 95, 0.45), transparent 55%);
  filter: blur(10px);
  opacity: 0.55;
  animation: glow-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.card label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}

.card strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.card small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--mute);
}

/* Inner page body */
.page-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 4px 8px;
  overflow: hidden;
}

.page-kicker {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  flex-shrink: 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.025em;
  flex-shrink: 0;
  position: relative;
}

.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brass), transparent);
  border-radius: 1px;
  transform-origin: right center;
}

.sheet.is-visible .page-title::after {
  animation: rule-draw 0.9s var(--ease) 0.15s both;
}

.page-lede {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--mute);
  max-width: 62ch;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.block-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--brass-deep);
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.feat-block > .block-icon,
.diff-item > .block-icon,
.role-cell > .block-icon {
  display: block;
  margin-bottom: 7px;
}

.diff-item > .block-icon,
.role-cell > .block-icon {
  width: 17px;
  height: 17px;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  flex: 1;
  min-height: 0;
  align-content: start;
  counter-reset: feat;
}

.feat-block {
  counter-increment: feat;
  position: relative;
  padding: 10px 11px 9px;
  background:
    linear-gradient(155deg, rgba(255, 252, 250, 0.88), rgba(255, 252, 250, 0.42));
  border: 1px solid rgba(228, 222, 210, 0.95);
  border-radius: 5px;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.feat-block::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(140, 110, 58, 0.45);
}

.feat-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.feat-block:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 149, 95, 0.45);
  box-shadow: 0 14px 30px rgba(18, 17, 14, 0.08);
}

.feat-block:hover::after {
  animation: card-shine 0.95s var(--ease);
}

.feat-block h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--brass-deep);
  margin-bottom: 7px;
  padding-bottom: 6px;
  padding-inline-end: 28px;
  border-bottom: 1px solid rgba(184, 149, 95, 0.22);
  line-height: 1.35;
}

.feat-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feat-block li {
  position: relative;
  padding-inline-start: 12px;
  font-size: 10.25px;
  line-height: 1.45;
  color: var(--ink);
}

.feat-block li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b47a, var(--brass-deep));
  box-shadow: 0 0 0 2px rgba(184, 149, 95, 0.12);
}

.feat-note {
  font-size: 9px;
  line-height: 1.45;
  color: var(--mute-2);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(150, 142, 130, 0.35);
}

.diff-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.diff-item {
  position: relative;
  padding: 12px 11px 11px;
  background:
    linear-gradient(160deg, rgba(255, 252, 250, 0.9), rgba(241, 237, 228, 0.55));
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.diff-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brass), transparent);
}

.diff-item:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 149, 95, 0.4);
  box-shadow: 0 16px 28px rgba(18, 17, 14, 0.08);
}

.diff-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.35;
}

.diff-item span {
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--mute);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.role-cell {
  position: relative;
  padding: 12px 11px;
  background:
    linear-gradient(165deg, rgba(255, 252, 250, 0.92), rgba(241, 237, 228, 0.5));
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.role-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 149, 95, 0.4);
  box-shadow: 0 14px 26px rgba(18, 17, 14, 0.08);
}

.role-cell label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 5px;
  line-height: 1.35;
}

.role-cell p {
  font-size: 10px;
  line-height: 1.5;
  color: var(--mute);
}

.closing-line {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-deep);
  margin-top: 10px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Scroll / stagger reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(var(--ri, 0) * 0.06s + 0.1s);
}

.sheet.is-visible .reveal,
.sheet.cover.is-in .reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-li {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
  transition-delay: calc(var(--li, 0) * 0.04s + 0.35s);
}

.sheet.is-visible .reveal-li {
  opacity: 1;
  transform: translateX(0);
}

.foot {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(180deg, #1a1814 0%, var(--ink) 55%);
  color: #fff;
  border-radius: 5px;
  padding: 13px 16px 11px;
  position: relative;
  overflow: hidden;
  transform: translateZ(16px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(212, 180, 122, 0.18);
}

.sheet.is-visible .foot {
  animation: foot-rise 0.7s var(--ease) 0.25s both;
}

.foot::before {
  content: "";
  position: absolute;
  inset-inline: -30%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 180, 122, 0.9), transparent);
  animation: foot-line 3.8s ease-in-out infinite;
}

.foot-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.foot label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9b07a;
  margin-bottom: 4px;
}

.foot strong {
  font-size: 12.5px;
  font-weight: 600;
}

.foot .center { text-align: center; }
.foot .end { text-align: end; }
.foot .end strong[data-date-local] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.page-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #e8d7b0;
  direction: ltr;
  unicode-bidi: isolate;
}

.page-count .page-sep {
  opacity: 0.45;
  font-weight: 600;
}

.anim {
  opacity: 0;
  transform: translateY(16px) translateZ(0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s + 0.2s);
}

.sheet.cover.is-in .anim {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

h1.anim {
  opacity: 1;
  transform: none;
}

@keyframes sheet-in {
  0% {
    opacity: 0;
    transform: rotateX(12deg) rotateY(-8deg) translateY(40px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) translateY(0) scale(1);
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateZ(48px) translateY(0) scale(1); }
  50% { transform: translateZ(56px) translateY(-7px) scale(1.015); }
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateZ(20px) translateY(24px) scale(0.92);
    filter: blur(6px) drop-shadow(0 10px 20px rgba(18, 17, 14, 0.08));
  }
  to {
    opacity: 1;
    transform: translateZ(48px) translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 26px 48px rgba(18, 17, 14, 0.16));
  }
}

@keyframes brand-glow {
  from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); opacity: 1; }
}

@keyframes page-shine {
  0% { opacity: 0; transform: translateX(-30%) rotate(8deg); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: translateX(55%) rotate(8deg); }
}

@keyframes card-shine {
  to { transform: translateX(120%); }
}

@keyframes brass-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes foot-line {
  0%, 100% { opacity: 0.35; transform: scaleX(0.75); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, -24px, 0) scale(1.08); }
}

@keyframes rule-draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes foot-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes frame-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 0.7; transform: scale(1); }
}

@keyframes veil-breathe {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

@media print {
  html, body { background: #fff; }
  .stage {
    padding: 0;
    display: block;
    perspective: none;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .stage-bg, .orb, .progress-rail, .frame, .veil, .lang-bar { display: none; }
  .deck {
    width: 210mm;
    gap: 0;
  }
  .orb, .shine, .grain, .card-glow, .mesh, .aurora, .aurora-2, .brand-glow { display: none; }
  .sheet,
  .sheet.page-sheet,
  .sheet.page-sheet.is-visible {
    width: 210mm;
    height: 297mm;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    page-break-after: always;
    break-after: page;
    border-radius: 0;
  }
  .sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .anim, .reveal, h1 .line > span, .foot {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .stage { padding: 52px 12px 12px; }
  .orb { display: none; }
  .progress-rail { display: none; }
  .deck {
    width: min(210mm, calc(100vw - 24px));
  }
  .pad { padding: 18px 16px; }
  .prices { gap: 10px; }
  .brand-hero .arkon {
    width: min(340px, 90%);
    animation: none;
  }
  .feat-grid { gap: 8px 12px; }
  .diff-row { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.cover, .sheet.page-sheet, .anim, .orb, .shine, .brand-hero .arkon, .brand-glow, .aurora, .aurora-2, .card-glow, .foot::before, .foot, h1 .gold, h1 .line > span, .reveal, .reveal-li, .veil, .frame {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .progress-rail { display: none; }
  .stage { scroll-snap-type: none; }
}
