/* Zoonckan — "Desk" variant
   Tokens follow the main design: four binder colours from the logo, ink text,
   warm soft grey ground, purple primary action. */

@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakhFaNum-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("../fonts/YekanBakhFaNum-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #1A1D29;
  --ink-2: #4B5060;
  --muted: #5B6070;
  --line: #ECEDF1;
  --soft: #F7F6F3;
  --paper: #FFFEFA;

  --amber: #FFC107;
  --teal: #009688;
  --orange: #FF5722;
  --purple: #673AB7;
  --amber-t: #FFF4D3;
  --teal-t: #DFF3F0;
  --orange-t: #FFE8DF;
  --purple-t: #ECE5F7;

  --primary: #5E35B1;
  --primary-hover: #4E2A9A;
  --primary-text: #5E35B1;  /* primary as text/links */

  /* surfaces (dark mode overrides these below) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: var(--border);        /* control outlines */
  --border-soft: var(--border-soft);   /* dividers on --soft */
  --header-bg: rgba(255, 255, 255, .86);
  --shadow: 26, 29, 41;      /* rgb of shadows */
  --contrast: #1A1D29;       /* inverted chip (selected tab, current page) */
  --contrast-fg: #FFFFFF;
  --cta-bg: #1A1D29;
  --tip-bg: #1A1D29;
  --notice-bg: #FFFBEF;
  --notice-border: #F3E4B5;
  --notice-icon: #FFE9A8;
  --notice-hint-border: #E8D28C;
  color-scheme: light;

  --r-card: 20px;
  --r-btn: 14px;
  --header-h: 72px;
  --font: "YekanBakh", Tahoma, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
p { margin: 0; }
/* lottie-player ships with :host { height: 100% }, which overrides aspect-ratio and stretches it to the
   grid row; height:auto restores the square, and containment keeps its content from sizing it. */
lottie-player { display: block; height: auto; contain: size layout paint; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--contrast); color: var(--contrast-fg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-btn); border: 0;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 12px 24px -14px rgba(94, 53, 177, .8); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #1A1D29; }
.btn-amber:hover { background: #FFCD38; transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost-dark:hover { border-color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 24px -20px rgba(var(--shadow), .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 24px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { font-weight: 600; font-size: 15px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; padding: 8px 0; text-decoration: none; color: var(--ink-2); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--soft); padding-top: 72px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
.hero-head { position: relative; z-index: 1; text-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-head .hero-ctas { justify-content: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-soft); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2.4s ease-out infinite; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.35; font-weight: 900; letter-spacing: -.5px; }
/* Emphasis in the hero heading: white words on a tilted brand-purple label; the text stays straight.
   inline-block + nowrap keep the two words together, so phones never split them across lines. */
.mark {
  position: relative; isolation: isolate; display: inline-block; white-space: nowrap;
  color: #FFFFFF; padding-inline: .3em; margin-inline: .06em;
}
.mark::before {
  content: ""; position: absolute; z-index: -1; inset: .14em 0 .04em;
  border-radius: .2em; background: var(--primary); transform: rotate(-2.5deg);
  box-shadow: 0 .2em .45em -.22em rgba(var(--shadow), .55);
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* interactive 3D shelf */
.stage { position: relative; width: 100%; max-width: 600px; justify-self: center; aspect-ratio: 1120 / 1040; }
.stage-poster, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster { object-fit: contain; transition: opacity .6s ease; }
.stage-canvas {
  opacity: 0; transition: opacity .6s ease; cursor: grab; touch-action: pan-y; outline: none;
  /* fade the wall shadow out before it reaches the canvas edge */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 90%, transparent), linear-gradient(#000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 90%, transparent), linear-gradient(#000 82%, transparent);
  mask-composite: intersect;
}
.stage.is-ready .stage-canvas { opacity: 1; }
.stage.is-ready .stage-poster { opacity: 0; }
.stage.is-hovering .stage-canvas { cursor: pointer; }
.stage.is-dragging .stage-canvas { cursor: grabbing; }
.stage-tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 0; white-space: nowrap;
  padding: 8px 14px; border-radius: 12px; background: var(--tip-bg); color: #FFFFFF;
  box-shadow: 0 14px 24px -14px rgba(var(--shadow), .6);
}
.stage-tip b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.stage-tip b::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--amber)); }
.stage-tip span { font-size: 12px; color: #C9CCD6; }
.stage-tip::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  background: var(--tip-bg); transform: rotate(45deg); border-radius: 2px;
}
.stage-hint {
  position: absolute; bottom: 2%; inset-inline: 0; text-align: center; font-size: 13px; color: var(--muted);
  opacity: 0; transition: opacity .6s ease .4s;
}
.stage.is-ready .stage-hint { opacity: 1; }

/* ---------- Desk: open binder ---------- */
.desk { position: relative; z-index: 1; padding-block: 56px 104px; }
.binder-wrap { max-width: 1040px; margin-inline: auto; }
.binder {
  --c: var(--amber); --t: var(--amber-t);
  position: relative; padding: 16px; border-radius: 28px; background: var(--c);
  box-shadow: 0 18px 36px -24px rgba(var(--shadow), .28), inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: background-color .5s ease;
}
.binder-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; perspective: 3000px; }
/* scoped: WordPress also puts a `page` class on <body> for static pages */
.binder .page { position: relative; background: var(--paper); }
.page-text {
  padding: 40px 44px 108px;
  border-start-start-radius: 16px; border-end-start-radius: 16px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, .07), transparent 56px);
}
.page-art {
  grid-template-columns: minmax(0, 1fr); /* never let the illustration widen the page */
  display: grid; place-items: center; padding: 28px; overflow: hidden;
  border-start-end-radius: 16px; border-end-end-radius: 16px;
  background-image: linear-gradient(to left, rgba(0, 0, 0, .07), transparent 56px);
}
.art-disc { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--t); transition: background-color .5s ease; }
.page-art lottie-player { position: relative; width: min(100%, 390px); aspect-ratio: 1; transition: opacity .3s ease, transform .4s var(--ease-out); }
.page-art.is-loading lottie-player { opacity: 0; transform: scale(.94); }

.rings { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 6; display: flex; flex-direction: column; justify-content: space-around; align-items: center; pointer-events: none; }
.ring {
  flex: none; width: 60px; height: 22px; border-radius: 12px; border: 5px solid #B9BEC9;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), 0 3px 4px rgba(0, 0, 0, .2);
}

.page-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px;
  background: var(--t); font-weight: 800; font-size: 14px; transition: background-color .5s ease;
}
.group-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transition: background-color .5s ease; }
.counter { font-weight: 800; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feat-title { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 28px 0 10px; }
.feat-desc { font-size: 18px; color: var(--ink-2); max-width: 40ch; }
.siblings { margin-top: 24px; }
.siblings-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.siblings-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sib {
  min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.sib:hover { border-color: var(--ink); }

.page-foot { position: absolute; inset-inline: 44px; bottom: 36px; display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 4px; border-radius: 2px; background: #EEEDE8; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: right center; transition: background-color .5s; }
.desk.is-auto .progress span { animation: fill 7s linear forwards; }
.desk.is-auto .binder:hover .progress span,
.desk.is-auto .binder:focus-within .progress span,
.desk.is-auto.is-paused .progress span { animation-play-state: paused; }
.desk:not(.is-auto) .progress { visibility: hidden; }
.nav-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease-out);
}
.nav-btn:hover { border-color: var(--ink); }
.nav-btn:active { transform: scale(.94); }

.swap { transition: opacity .22s ease, transform .22s ease; }
.binder.is-swapping .swap { opacity: 0; transform: translateY(8px); }

/* page turn (desktop): a chain of bending strips built by main.js, plus static overlays and moving shadows.
   Stacking inside the spread: pages < overlay (2) < shadows / page controls (3) < leaf (4) < rings (6). */
.page-foot { z-index: 3; }
.flip-overlay, .flip-shadow { position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: none; }
.flip-overlay { z-index: 2; overflow: hidden; }
.flip-shadow { z-index: 3; }
.flip-overlay.is-left, .flip-shadow.is-left, .flip-leaf.is-left { left: 0; }
.flip-overlay.is-right, .flip-shadow.is-right, .flip-leaf.is-right { right: 0; }
.flip-leaf { position: absolute; top: 0; z-index: 4; transform-style: preserve-3d; pointer-events: none; }
.flip-strip { position: absolute; transform-style: preserve-3d; will-change: transform; } /* placed inline at the hinge */
.flip-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.binder .page.flip-page { position: absolute; top: 0; left: 0; margin: 0; } /* must beat `.binder .page` (position: relative) */
.flip-shade { position: absolute; inset: 0; pointer-events: none; }
.flip-art-img { position: relative; width: min(100%, 390px); aspect-ratio: 1; }
/* mobile: the halves are stacked, so the turn layers sit on the top or bottom half */
.flip-leaf.is-top, .flip-leaf.is-bottom { left: 0; }
.flip-leaf.is-top { top: 0; }
.flip-leaf.is-bottom { top: auto; bottom: 0; }
.flip-overlay.is-top, .flip-shadow.is-top, .flip-overlay.is-bottom, .flip-shadow.is-bottom { left: 0; width: 100%; height: 50%; }
.flip-overlay.is-top, .flip-shadow.is-top { top: 0; bottom: auto; }
.flip-overlay.is-bottom, .flip-shadow.is-bottom { top: auto; bottom: 0; }
.flip-back-x { transform: rotateX(180deg); }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--primary-text); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; }
.section-head p { font-size: 18px; color: var(--ink-2); }

/* ---------- Flow (scrollytelling) ---------- */
.flow { padding: 120px 0 80px; }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.flow-visual {
  --c: var(--amber); --t: var(--amber-t);
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--header-h) + 48px);
  height: min(560px, calc(100vh - 160px)); display: grid; place-items: center;
}
.flow-disc { position: absolute; width: min(88%, 520px); aspect-ratio: 1; border-radius: 50%; background: var(--t); transition: background-color .5s ease; }
.flow-visual lottie-player { position: relative; width: min(100%, 460px); aspect-ratio: 1; transition: opacity .3s ease, transform .4s var(--ease-out); }
.flow-visual.is-loading lottie-player { opacity: 0; transform: scale(.94); }
.flow-tag {
  position: absolute; bottom: 4%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 20px -14px rgba(var(--shadow), .4);
}
.flow-tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transition: background-color .5s; }

.steps { grid-column: 1; grid-row: 1; position: relative; padding-inline-start: 44px; }
.rail { position: absolute; inset-inline-start: 11px; top: 31vh; bottom: 31vh; width: 2px; background: var(--line); }
.rail-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, .25)); transition: transform .5s var(--ease-out); }
.step { position: relative; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .4; transition: opacity .4s ease; }
.step.is-active { opacity: 1; }
.step-dot {
  position: absolute; inset-inline-start: -44px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.step.is-active .step-dot { background: var(--c); border-color: var(--ink); transform: scale(1.15); }
.step-num { font-weight: 900; font-size: 15px; color: var(--muted); }
.step h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; }
.step p { font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { padding: 2px 10px; border-radius: 8px; background: var(--soft); font-size: 14px; font-weight: 700; }

/* ---------- Platforms ---------- */
.platforms { background: var(--soft); padding: 112px 0; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--contrast); color: var(--contrast-fg); border-color: var(--contrast); }
.platform-panel {
  max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
}
.platform-panel:not([hidden]) { animation: panelIn .45s var(--ease-out) both; }
.panel-text h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-bottom: 8px; }
.panel-text > p { font-size: 17px; color: var(--ink-2); }
.meta-list { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 20px 0 28px; padding: 0; }
.meta-list span { display: block; font-size: 13px; color: var(--muted); }
.meta-list b { font-size: 18px; font-weight: 800; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { font-weight: 700; font-size: 15px; color: var(--primary-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.os-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.panel-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.panel-art::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--t); }
.panel-art img { position: relative; width: min(100%, 380px); height: auto; animation: float 6s ease-in-out infinite; }

/* ---------- CTA ---------- */
.cta { padding: 112px 0; }
.cta-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: 56px 64px; border-radius: 32px; background: var(--cta-bg); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .06);
}
.cta-bars { display: flex; gap: 6px; margin-bottom: 16px; }
.cta-bars span { width: 30px; height: 6px; border-radius: 3px; }
.cta-card h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; }
.cta-card p { color: #C9CCD6; font-size: 18px; margin-top: 10px; }
.cta-card .hero-ctas { justify-content: flex-start; margin-top: 28px; }
.cta-support { margin-top: 24px; font-size: 14px; color: #C9CCD6; }
.cta-support a { color: #FFD54F; }
.cta-art { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255, 255, 255, .06), 0 0 0 28px rgba(255, 255, 255, .03); }
.cta-art lottie-player { width: 86%; aspect-ratio: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.footer-about p { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 52ch; line-height: 2; }
.footer-col h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { padding-block: 20px 32px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-head > * { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
.js .mark::before { animation: markIn .7s .55s cubic-bezier(.34, 1.56, .64, 1) both; } /* label pops in with a little spring */
.js .stage { animation: rise 1s .3s var(--ease-out) both; }
.js .binder-wrap { animation: binderIn 1s .35s var(--ease-out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: rotate(-10deg) scale(.5); } to { opacity: 1; transform: rotate(-2.5deg); } }
@keyframes binderIn { from { opacity: 0; transform: translateY(40px) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 150, 136, .45); } 100% { box-shadow: 0 0 0 10px rgba(0, 150, 136, 0); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-head { text-align: center; align-items: center; max-width: 680px; margin-inline: auto; }
  .hero-head .hero-ctas { justify-content: center; }
  .stage { max-width: 520px; }

  .nav {
    display: none; position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0;
    padding: 8px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(var(--shadow), .4);
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }

  .flow-grid { grid-template-columns: 1fr; gap: 0; }
  .flow-visual {
    grid-column: 1; grid-row: auto; z-index: 2; top: var(--header-h); height: 280px;
    background: linear-gradient(var(--bg) 82%, transparent);
  }
  .flow-visual lottie-player { width: 230px; }
  .flow-disc { width: 240px; }
  .flow-tag { bottom: 18px; }
  .steps { grid-column: 1; grid-row: auto; }
  .rail { top: 20vh; bottom: 20vh; }
  .step { min-height: 52vh; }

  .platform-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 8px; }
  .panel-art { order: -1; min-height: 260px; }
  .panel-art img { width: min(100%, 260px); }

  .cta-card { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .cta-bars, .cta-card .hero-ctas { justify-content: center; }
  .cta-art { width: min(100%, 260px); order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .desk { padding-block: 40px 72px; }
  .binder { padding: 10px; border-radius: 22px; }
  /* two equal rows (the taller page sets both) so a page turned over the centre rings lands exactly */
  .binder-spread { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; min-height: 0; }
  .page-art {
    order: -1; padding: 16px;
    border-radius: 14px 14px 0 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, .07), transparent 40px);
  }
  .page-art lottie-player { width: min(100%, 300px); }
  .art-disc { width: min(78%, 280px); }
  .page-text {
    padding: 28px 22px 24px; border-radius: 0 0 14px 14px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .07), transparent 40px);
  }
  .rings { top: 50%; bottom: auto; left: 10px; right: 10px; width: auto; height: 0; flex-direction: row; justify-content: space-evenly; }
  .ring { width: 22px; height: 54px; }
  .flip-art-img { width: min(100%, 300px); }
  .feat-title { margin-top: 18px; }
  .feat-desc { font-size: 16px; }
  .page-foot { position: static; margin-top: 24px; }


  .flow, .platforms, .cta { padding-block: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flip-leaf { display: none; }
}

/* =====================================================================
   WordPress: inner pages, posts, archives and core classes
   ===================================================================== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.anchor-alias { position: relative; top: calc(-1 * var(--header-h)); display: block; height: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; word-wrap: normal;
}
.screen-reader-text:focus {
  clip: auto; clip-path: none; width: auto; height: auto; z-index: 100; top: 12px; inset-inline-start: 16px;
  padding: 10px 16px; background: var(--contrast); color: var(--contrast-fg); border-radius: 10px;
}

/* page title band */
.page-hero { background: var(--soft); padding: 64px 0 48px; border-bottom: 1px solid var(--border-soft); }
.page-hero--narrow .container { max-width: calc(820px + 48px); } /* line up with .entry-content */
.page-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.4; }
.page-kicker { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.page-kicker a { color: var(--primary-text); text-decoration: none; }
.page-intro { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.page-body { padding-block: 56px 96px; }

/* content typography */
.entry-content { max-width: 820px; margin-inline: auto; font-size: 17px; color: var(--ink-2); line-height: 2; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-weight: 900; margin-top: 1.8em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content a { color: var(--primary-text); text-underline-offset: 3px; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote {
  margin-inline: 0; padding: 16px 20px; border-radius: 14px; background: var(--soft); color: var(--ink);
  border-inline-start: 4px solid var(--amber);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.entry-content th { background: var(--soft); color: var(--ink); }
.entry-content hr { border: 0; height: 1px; background: var(--line); }
.entry-content code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { width: 100%; height: auto; border-radius: 20px; }
.wp-caption, figure.wp-block-image { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.page-links { margin-top: 32px; display: flex; gap: 8px; }
/* page-builder rows (SiteOrigin) can span the content area */
.entry-content .panel-layout { max-width: none; }

/* post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(var(--shadow), .35); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card-thumb { aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb .post-card-placeholder { width: 72px; height: 72px; object-fit: contain; opacity: .8; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card-body time { font-size: 13px; color: var(--muted); }
.post-card-body h2 { font-size: 19px; font-weight: 800; color: var(--ink); }
.post-card-body p { font-size: 15px; color: var(--ink-2); }

/* pagination + post navigation */
.pagination, .post-navigation { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 700;
}
.page-numbers.current { background: var(--contrast); color: var(--contrast-fg); border-color: var(--contrast); }
.post-navigation .nav-links { justify-content: space-between; max-width: 820px; margin-inline: auto; }
.post-navigation a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); max-width: 380px; }
.post-navigation .nav-label { font-size: 13px; color: var(--muted); }
.post-navigation .nav-title { font-weight: 800; color: var(--ink); }

/* search form */
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface);
  font: inherit; color: var(--ink);
}
.search-field:focus { border-color: var(--primary-text); outline: none; box-shadow: 0 0 0 3px rgba(94, 53, 177, .2); }
.search-submit {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--primary); color: #FFFFFF;
  font: inherit; font-weight: 800; cursor: pointer;
}
.empty-state { text-align: center; padding: 48px 0; font-size: 18px; }
.empty-state .search-form { margin-inline: auto; }

/* 404 */
.not-found { text-align: center; padding-block: 96px; }
.not-found .page-intro, .not-found .search-form { margin-inline: auto; }
.not-found-code { font-size: 96px; font-weight: 900; line-height: 1; color: var(--amber); }
.not-found-actions { justify-content: center; margin-top: 24px; }

/* comments */
.comments { max-width: 820px; margin: 64px auto 0; }
.comments-title { font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 16px; }
.comment-body { padding: 16px 20px; border-radius: 14px; background: var(--soft); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); font: inherit;
}
.comment-form .submit {
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--primary); color: #FFFFFF; font: inherit; font-weight: 800; cursor: pointer;
}

/* =====================================================================
   Platform download pages (platform-download.php)
   The content is hand-written HTML in the editor; these rules style its classes.
   ===================================================================== */
:root {
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12'/%3E%3Cpath d='m6 11 6 6 6-6'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E");
  --icon-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L4 16.8V20h3.2l5.3-5.3a4 4 0 0 0 5.2-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");
  --icon-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M6 7l1 13h10l1-13'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3C/svg%3E");
  --icon-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 6-6 6 6 6'/%3E%3C/svg%3E");
}
.dl-icon, .dl-content .zk-store-notice__icon, .dl-content .support-icon, .dl-content .uninstall-guide-icon {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--t); font-size: 0;
}
.dl-content .zk-store-notice__icon::before, .dl-content .support-icon::before, .dl-content .uninstall-guide-icon::before {
  content: ""; width: 24px; height: 24px; background: var(--ink);
  -webkit-mask: var(--icon-info) center / contain no-repeat; mask: var(--icon-info) center / contain no-repeat;
}
.dl-content .support-icon::before { -webkit-mask-image: var(--icon-tool); mask-image: var(--icon-tool); }
.dl-content .uninstall-guide-icon::before { -webkit-mask-image: var(--icon-trash); mask-image: var(--icon-trash); }

/* hero */
.dl-hero { position: relative; overflow: clip; background: var(--soft); border-bottom: 1px solid var(--border-soft); }
.dl-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-block: 48px; }
.dl-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.dl-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.dl-back::before {
  content: ""; width: 16px; height: 16px; background: currentColor; transform: scaleX(-1); /* back = towards the right in RTL */
  -webkit-mask: var(--icon-next) center / contain no-repeat; mask: var(--icon-next) center / contain no-repeat;
}
.dl-back:hover { color: var(--ink); }
.dl-title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; line-height: 1.3; }
.dl-lead { font-size: 18px; color: var(--ink-2); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 8px; padding: 0; }
.dl-meta li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-soft); font-size: 14px; }
.dl-meta li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.dl-meta span { color: var(--muted); }
.dl-meta b { font-weight: 800; }
.dl-meta a { color: var(--primary-text); font-weight: 700; text-decoration: none; }
.dl-meta li:has(a)::before { display: none; }
.dl-hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.dl-hero-art::before { content: ""; position: absolute; width: min(86%, 400px); aspect-ratio: 1; border-radius: 50%; background: var(--t); }
.dl-hero-art img { position: relative; width: min(100%, 400px); height: auto; animation: float 6s ease-in-out infinite; }

/* body */
.dl-body { padding-block: 56px 72px; scroll-margin-top: calc(var(--header-h) + 16px); }
.dl-content { max-width: 880px; }
.dl-content > .wp-block-spacer:first-child, .dl-content hr.is-style-dots, .dl-content .app-version-highlight { display: none; } /* version now in the hero */
.dl-content > * + * { margin-top: 28px; }
.dl-content h3, .dl-content h4 { margin-top: 0; }

/* Android: one card per build */
.dl-content .android-download-section > * + * { margin-top: 28px; }
.dl-content .android-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-content .android-download-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1.5px solid var(--line);
}
.dl-content .android-download-card.primary { border: 2px solid var(--c); box-shadow: 0 24px 40px -30px rgba(var(--shadow), .45); }
.dl-content .android-download-card.primary::before {
  content: "پیشنهادی"; position: absolute; top: -12px; inset-inline-start: 20px; padding: 2px 12px; border-radius: 999px;
  background: var(--c); color: #1A1D29; font-size: 13px; font-weight: 800;
}
.dl-content .android-download-card h4 { font-size: 19px; font-weight: 900; color: var(--ink); }
.dl-content .android-download-card p { margin: 0; font-size: 14px; color: var(--muted); direction: rtl; }
.dl-content .android-download-card a,
.dl-content .main-download a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 14px;
  border-radius: var(--r-btn); background: var(--primary); color: #FFFFFF; font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(94, 53, 177, .8); transition: transform .2s var(--ease-out), background-color .2s;
}
.dl-content .android-download-card.secondary a { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); box-shadow: none; }
.dl-content .android-download-card a:hover, .dl-content .main-download a:hover { transform: translateY(-2px); }
.dl-content .android-download-card a::before, .dl-content .main-download a::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat;
}

/* Windows / Mac: one main button */
.dl-content .main-download { display: flex; }
.dl-content .main-download a { min-height: 64px; padding: 0 36px; margin: 0; font-size: 18px; }
.dl-content .install-note {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--t);
  font-size: 15px; color: var(--ink); margin-top: 16px;
}
.dl-content .install-note::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--icon-info) center / contain no-repeat; mask: var(--icon-info) center / contain no-repeat;
}

/* notices (install tips, iOS store warning) */
.dl-content .zk-store-notice {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 22px;
  background: var(--notice-bg); border: 1px solid var(--notice-border); --t: var(--notice-icon);
}
.dl-content .zk-store-notice__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-content .zk-store-notice__title { font-size: 19px; font-weight: 900; color: var(--ink); }
.dl-content .zk-store-notice p { margin: 0; font-size: 16px; line-height: 2; }
.dl-content .zk-store-notice__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dl-content .zk-store-notice__list li { position: relative; padding-inline-start: 22px; font-size: 15px; line-height: 1.9; }
.dl-content .zk-store-notice__list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 8px; height: 8px; border-radius: 3px; background: #E0A800; }
.dl-content .zk-store-notice__hint { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--notice-hint-border); }

/* iOS: Iranian stores */
.dl-content .ios-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.dl-content .store-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 0 18px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; font-size: 16px;
  text-decoration: none; transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.dl-content .store-btn::after {
  content: ""; width: 18px; height: 18px; background: var(--muted);
  -webkit-mask: var(--icon-next) center / contain no-repeat; mask: var(--icon-next) center / contain no-repeat;
}
.dl-content .store-btn:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(var(--shadow), .5); }

/* remote support + uninstall guide */
.dl-content .support-box, .dl-content .uninstall-guide-box {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--soft); border: 1px solid var(--border-soft);
}
.dl-content .support-header, .dl-content .uninstall-guide-header { display: flex; align-items: center; gap: 14px; }
.dl-content .support-header h3, .dl-content .uninstall-guide-header h3 { font-size: 19px; font-weight: 900; color: var(--ink); }
.dl-content .support-text, .dl-content .uninstall-guide-text { margin: 0; font-size: 16px; }
.dl-content .support-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dl-content .support-btn, .dl-content .uninstall-guide-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none;
  transition: border-color .2s;
}
.dl-content .support-btn::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat;
}
.dl-content .uninstall-guide-btn { align-self: flex-start; color: var(--primary-text); }
.dl-content .support-btn:hover, .dl-content .uninstall-guide-btn:hover { border-color: var(--ink); }

/* other platforms */
.dl-others { padding-block: 0 96px; }
.dl-others h2 { font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.dl-others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dl-other {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.dl-other:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 20px 34px -26px rgba(var(--shadow), .45); }
.dl-other-art { flex: none; width: 72px; height: 72px; border-radius: 18px; background: var(--t); display: grid; place-items: center; }
.dl-other-art img { width: 64px; height: 64px; object-fit: contain; }
.dl-other-text { display: flex; flex-direction: column; gap: 2px; }
.dl-other-text b { font-size: 16px; font-weight: 800; }
.dl-other-text span { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .dl-hero-grid { grid-template-columns: 1fr; padding-block: 32px 24px; gap: 8px; }
  .dl-hero-art { order: -1; min-height: 220px; }
  .dl-hero-art img { width: min(100%, 240px); }
  .dl-cta { align-self: stretch; }
  .dl-body { padding-block: 36px 48px; }
  .dl-content .zk-store-notice { flex-direction: column; padding: 20px; }
  .dl-content .main-download a { flex: 1; padding: 0 20px; }
  .dl-content .support-box, .dl-content .uninstall-guide-box { padding: 22px; }
}

/* =====================================================================
   Dark mode
   Follows the system setting; the header toggle stores an explicit choice in
   <html data-theme="light|dark"> (set before paint by the inline head script).
   The two blocks below are identical: one for the toggle, one for the system setting.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111319;
  --surface: #1A1D27;
  --soft: #161821;
  --line: #272B38;
  --border: #383D4F;
  --border-soft: #262A36;
  --ink: #ECEDF3;
  --ink-2: #BCC0CF;
  --muted: #9AA0B3;
  --paper: #F2EEE5;
  --amber-t: rgba(255, 193, 7, .14);
  --teal-t: rgba(0, 150, 136, .22);
  --orange-t: rgba(255, 87, 34, .17);
  --purple-t: rgba(124, 92, 214, .26);
  --primary: #6F4BD0;
  --primary-hover: #8160DD;
  --primary-text: #B9A6FF;
  --header-bg: rgba(17, 19, 25, .82);
  --shadow: 0, 0, 0;
  --contrast: #ECEDF3;
  --contrast-fg: #111319;
  --cta-bg: #1D2030;
  --tip-bg: #2B2F40;
  --notice-bg: rgba(255, 193, 7, .07);
  --notice-border: rgba(255, 193, 7, .22);
  --notice-icon: rgba(255, 193, 7, .2);
  --notice-hint-border: rgba(255, 193, 7, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111319;
    --surface: #1A1D27;
    --soft: #161821;
    --line: #272B38;
    --border: #383D4F;
    --border-soft: #262A36;
    --ink: #ECEDF3;
    --ink-2: #BCC0CF;
    --muted: #9AA0B3;
    --paper: #F2EEE5;
    --amber-t: rgba(255, 193, 7, .14);
    --teal-t: rgba(0, 150, 136, .22);
    --orange-t: rgba(255, 87, 34, .17);
    --purple-t: rgba(124, 92, 214, .26);
    --primary: #6F4BD0;
    --primary-hover: #8160DD;
    --primary-text: #B9A6FF;
    --header-bg: rgba(17, 19, 25, .82);
    --shadow: 0, 0, 0;
    --contrast: #ECEDF3;
    --contrast-fg: #111319;
    --cta-bg: #1D2030;
    --tip-bg: #2B2F40;
    --notice-bg: rgba(255, 193, 7, .07);
    --notice-border: rgba(255, 193, 7, .22);
    --notice-icon: rgba(255, 193, 7, .2);
    --notice-hint-border: rgba(255, 193, 7, .3);
  }
}

/* Light islands: paper stays paper. The open binder, the story animation and the trial animation keep
   the light palette — the Lottie illustrations are black line art and would vanish on a dark ground. */
:root[data-theme="dark"] :is(.binder, .flow-visual, .cta-art) {
  color-scheme: light;
  --surface: #FFFFFF; --soft: #F7F6F3; /* --bg stays the page colour (sticky fades on mobile) */ --line: #ECEDF1; --border: #D5D7DE; --border-soft: #E4E2DC;
  --ink: #1A1D29; --ink-2: #4B5060; --muted: #5B6070; --paper: #F4F1E9;
  --amber-t: #FFF4D3; --teal-t: #DFF3F0; --orange-t: #FFE8DF; --purple-t: #ECE5F7;
  --primary: #5E35B1; --primary-text: #5E35B1; --shadow: 26, 29, 41; --contrast: #1A1D29; --contrast-fg: #FFFFFF;
  color: var(--ink); /* inherited text colour is computed on <body>, so reset it here too */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.binder, .flow-visual, .cta-art) {
    color-scheme: light;
    --surface: #FFFFFF; --soft: #F7F6F3; /* --bg stays the page colour (sticky fades on mobile) */ --line: #ECEDF1; --border: #D5D7DE; --border-soft: #E4E2DC;
    --ink: #1A1D29; --ink-2: #4B5060; --muted: #5B6070; --paper: #F4F1E9;
    --amber-t: #FFF4D3; --teal-t: #DFF3F0; --orange-t: #FFE8DF; --purple-t: #ECE5F7;
    --primary: #5E35B1; --primary-text: #5E35B1; --shadow: 26, 29, 41; --contrast: #1A1D29; --contrast-fg: #FFFFFF;
    color: var(--ink);
  }
}

/* theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--border); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .45s var(--ease-out), opacity .3s; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
}
/* small phones: the header has room for brand, theme toggle and menu; downloads are in the menu and hero */
@media (max-width: 420px) {
  .header-actions .btn-sm { display: none; }
}

/* FAQ accordion (Quick and Easy FAQs plugin): theme colours in both modes instead of its fixed greys */
.entry-content .qe-faq-toggle { margin-bottom: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.entry-content .qe-faq-toggle .qe-toggle-title { background: transparent; border: 0; padding: 16px 20px; }
.entry-content .qe-faq-toggle .qe-toggle-title h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.entry-content .qe-faq-toggle .qe-toggle-title i.fa { margin: 0 0 0 .5em; color: var(--primary-text); } /* RTL: gap after the icon */
.entry-content .qe-faq-toggle.active .qe-toggle-title, .entry-content .qe-faq-toggle .qe-toggle-title:hover { background: var(--soft); }
.entry-content .qe-faq-toggle .qe-toggle-content { border: 0; border-top: 1px solid var(--line); padding: 16px 20px 6px; color: var(--ink-2); }

/* 3D shelf at night: a warm lamp glow on the wall behind it (the shelf's shadow falls on this glow) */
.stage::before {
  content: ""; position: absolute; inset: -6% -10% 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(ellipse 48% 44% at 46% 44%, rgba(255, 206, 140, .26), rgba(255, 206, 140, .08) 55%, transparent 76%);
}
.stage-poster, .stage-canvas, .stage-hint { z-index: 1; }
:root[data-theme="dark"] .stage::before { opacity: 1; }
:root[data-theme="dark"] .stage-poster { filter: brightness(.86); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage::before { opacity: 1; }
  :root:not([data-theme="light"]) .stage-poster { filter: brightness(.86); }
}

/* =====================================================================
   Clean Page canvas (page-cleanpage.php) — e.g. the Zoonckan 8 beta page (/v8/)
   That page ships its own <style> inside the content; these scoped rules (more specific) restyle its
   .zk8-* classes to the site design and dark mode. Markup and text stay untouched: the release
   scripts it loads find .zk8-card / .zk8-btn / .zk8-meta by class.
   ===================================================================== */
.page-canvas .zk8-page {
  /* the page defines its own colour variables; hand these back to the theme so dark mode works */
  --ink: inherit; --muted: inherit; --line: inherit;
  font-family: var(--font); color: var(--ink); background: transparent; padding: 40px 24px 96px; overflow: visible;
}
.page-canvas .zk8-wrap { width: min(1152px, 100%); }
.page-canvas .zk8-page h1, .page-canvas .zk8-page h2, .page-canvas .zk8-page h3 { font-weight: 900; }

/* hero banner */
.page-canvas .zk8-hero { border-radius: 28px; border: 0; box-shadow: 0 40px 80px -48px rgba(var(--shadow), .6); }
.page-canvas .zk8-hero-overlay { background: linear-gradient(180deg, transparent, rgba(17, 12, 40, .92)); padding: 110px 6% 40px; }
.page-canvas .zk8-hero h1 { color: #FFFFFF; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.3; letter-spacing: -.5px; margin: 14px 0 8px; }
.page-canvas .zk8-hero p { color: rgba(255, 255, 255, .86); font-size: clamp(15px, 1.8vw, 19px); }
.page-canvas .zk8-badge { font-weight: 800; }
.page-canvas .zk8-dot { background: #2BD9C5; box-shadow: 0 0 0 6px rgba(43, 217, 197, .18); }

/* sections */
.page-canvas .zk8-section {
  margin-top: 28px; border-radius: 28px; padding: clamp(22px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(var(--shadow), .45);
}
.page-canvas .zk8-title { font-size: clamp(24px, 3vw, 34px); color: var(--ink); }
.page-canvas .zk8-sub { color: var(--ink-2); font-size: 17px; }

/* download cards: card colour = accent; one consistent button style */
.page-canvas .zk8-downloads { gap: 20px; margin-top: 28px; }
.page-canvas .zk8-card {
  border-radius: 22px; padding: 26px; min-height: 0; background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: none;
}
.page-canvas .zk8-card::before { /* accent bar instead of the blurred blob */
  content: ""; position: absolute; inset: 0 0 auto; width: auto; height: 6px; border-radius: 0; filter: none; opacity: 1;
  left: 0; top: 0; background: var(--card);
}
.page-canvas .zk8-card:first-child { border: 2px solid var(--card); box-shadow: 0 24px 40px -30px rgba(var(--shadow), .5); } /* the recommended build */
.page-canvas .zk8-card:hover { transform: translateY(-4px); border-color: var(--card); box-shadow: 0 24px 40px -30px rgba(var(--shadow), .5); }
.page-canvas .zk8-icon { border-radius: 16px; background: color-mix(in srgb, var(--card) 16%, var(--surface)); color: var(--ink); font-size: 26px; }
.page-canvas .zk8-card h3 { font-size: 21px; color: var(--ink); }
.page-canvas .zk8-card p { color: var(--ink-2); font-size: 15px; }
.page-canvas .zk8-meta span { background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 4px 10px; }
.page-canvas .zk8-btn {
  min-height: 52px; border-radius: var(--r-btn); background: var(--primary); color: #FFFFFF !important; font-size: 16px; font-weight: 800;
  box-shadow: 0 12px 24px -14px rgba(94, 53, 177, .8);
}
.page-canvas .zk8-btn:hover { filter: none; background: var(--primary-hover); transform: translateY(-2px); }
.page-canvas .zk8-card + .zk8-card .zk8-btn { /* secondary builds: outline buttons */
  background: var(--surface); color: var(--ink) !important; border: 1.5px solid var(--border); box-shadow: none;
}
.page-canvas .zk8-card + .zk8-card .zk8-btn:hover { background: var(--surface); border-color: var(--ink); }
.page-canvas .zk8-note { border-radius: 16px; padding: 16px 18px; background: var(--notice-bg); border: 1px solid var(--notice-border); color: var(--ink); font-size: 15px; }

/* what's new */
.page-canvas .zk8-features { gap: 14px; margin-top: 28px; }
.page-canvas .zk8-features li { padding: 18px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.page-canvas .zk8-features li strong { color: var(--ink); font-size: 17px; font-weight: 800; }
.page-canvas .zk-check { border-radius: 9px; background: var(--teal-t); color: var(--teal); }

/* tester guide + which-android */
.page-canvas .zk8-test { gap: 20px; }
.page-canvas .zk8-testbox { border-radius: 22px; padding: 28px; background: linear-gradient(135deg, #2E1A66, var(--primary)); }
.page-canvas .zk8-testbox h3 { color: #FFFFFF; font-size: 22px; }
.page-canvas .zk8-testbox ul { padding: 0 20px 0 0; }
.page-canvas .zk8-info { border-radius: 22px; padding: 28px; background: var(--soft); border: 1px solid var(--line); }
.page-canvas .zk8-info h3 { color: var(--ink); }
.page-canvas .zk8-info p { color: var(--ink-2); }
.page-canvas .zk8-footer { color: var(--muted); margin-top: 28px; }

@media (max-width: 640px) {
  /* the banner is too short on phones to hold the text: put the text under it instead of over it */
  .page-canvas .zk8-hero-overlay { position: relative; inset: auto; padding: 18px 20px 22px; background: linear-gradient(180deg, #1F1546, #120C2B); }
  .page-canvas .zk8-hero h1 { margin-top: 10px; }
}
@media (max-width: 520px) {
  .page-canvas .zk8-page { padding: 20px 16px 64px; }
  .page-canvas .zk8-hero, .page-canvas .zk8-section { border-radius: 22px; }
}
