/* Mansify site: shared styles for every page. Palette = Cobalt (chosen 2026-10-17). */

/* ---------- colour tokens: light mode (default) ---------- */
:root {
  --ink: #070b16; --ink-2: #0d1426; --ink-paper: #0b0f1b; --ink-surface: #111729; --ink-line: #1f2740;
  --accent: #3d7bff; --accent-strong: #1d5ee6; --accent-soft: #a9c2ff; --accent-alt: #7a5cff; --spark: #ffcf3f;
  --glow-1: #2a5bff; --glow-2: #7a4dff; --deep: #23409a;
  --radius: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --paper: #f6f6f2; --surface: #ffffff; --line: #e4e2da; --text: #12141b; --muted: #5b5f6d; --link: var(--accent-strong);
  --hero-bg: #f6f6f2; --hero-text: #0f1220; --hero-muted: #565b6a; --hero-line: rgba(15,18,32,.08); --hero-glass: rgba(255,255,255,.75); --h-serif: var(--accent);
  --nav-bg: rgba(255,255,255,.7); --nav-solid: rgba(255,255,255,.92); --nav-text: #0f1220; --nav-muted: #5b5f6d; --nav-line: rgba(15,18,32,.09);
  --btn-bg: #0f1220; --btn-text: #ffffff; --btn-line: rgba(15,18,32,.14);
  --aurora-op: .2; --grid-op: .8;
  --strip-bg: #ffffff; --strip-text: #5b5f6d;
  --float-bg: rgba(255,255,255,.88); --float-line: rgba(15,18,32,.08); --shadow: 0 18px 40px -12px rgba(20,25,50,.18);
  --card-bg: #ffffff; --card-line: #e4e2da;
  --slogan-grad: linear-gradient(90deg, var(--accent), var(--accent-alt));
  --wm-line: #8d93a4; --wm-op: .55;
  --soon-text: #7a5a00;
  color-scheme: light;
}
/* ---------- dark mode: same tokens, ink values ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: var(--ink-paper); --surface: var(--ink-surface); --line: var(--ink-line); --text: #eceff6; --muted: #98a1b6; --link: var(--accent-soft);
    --hero-bg: var(--ink); --hero-text: #eef1f8; --hero-muted: #9aa5bd; --hero-line: rgba(255,255,255,.09); --hero-glass: rgba(255,255,255,.04); --h-serif: var(--accent-soft);
    --nav-bg: rgba(7,11,22,.55); --nav-solid: rgba(7,11,22,.88); --nav-text: #eef1f8; --nav-muted: #9aa5bd; --nav-line: rgba(255,255,255,.09);
    --btn-bg: #eef1f8; --btn-text: var(--ink); --btn-line: rgba(255,255,255,.12);
    --aurora-op: .38; --grid-op: .55;
    --strip-bg: var(--ink-2); --strip-text: #9aa5bd;
    --float-bg: rgba(17,23,41,.82); --float-line: rgba(255,255,255,.14); --shadow: 0 20px 50px rgba(0,0,0,.4);
    --card-bg: rgba(255,255,255,.035); --card-line: rgba(255,255,255,.09);
    --slogan-grad: linear-gradient(90deg, var(--accent-soft), #ffffff 45%, var(--spark));
    --wm-line: #8e9ab8; --wm-op: .45;
    --soon-text: var(--spark);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: var(--ink-paper); --surface: var(--ink-surface); --line: var(--ink-line); --text: #eceff6; --muted: #98a1b6; --link: var(--accent-soft);
  --hero-bg: var(--ink); --hero-text: #eef1f8; --hero-muted: #9aa5bd; --hero-line: rgba(255,255,255,.09); --hero-glass: rgba(255,255,255,.04); --h-serif: var(--accent-soft);
  --nav-bg: rgba(7,11,22,.55); --nav-solid: rgba(7,11,22,.88); --nav-text: #eef1f8; --nav-muted: #9aa5bd; --nav-line: rgba(255,255,255,.09);
  --btn-bg: #eef1f8; --btn-text: var(--ink); --btn-line: rgba(255,255,255,.12);
  --aurora-op: .38; --grid-op: .55;
  --strip-bg: var(--ink-2); --strip-text: #9aa5bd;
  --float-bg: rgba(17,23,41,.82); --float-line: rgba(255,255,255,.14); --shadow: 0 20px 50px rgba(0,0,0,.4);
  --card-bg: rgba(255,255,255,.035); --card-line: rgba(255,255,255,.09);
  --slogan-grad: linear-gradient(90deg, var(--accent-soft), #ffffff 45%, var(--spark));
  --wm-line: #8e9ab8; --wm-op: .45;
  --soon-text: var(--spark);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; transition: background .3s; overflow-x: hidden; }
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif; }
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
html[lang="ar"] .serif { font-family: inherit; font-style: normal; font-weight: 700; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .mono { font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--spark)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; transition: transform .4s var(--ease); }
.nav.hide { transform: translateY(-120%); }
.nav .bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--nav-line); background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); color: var(--nav-text); transition: background .3s, box-shadow .3s; }
html[dir="rtl"] .nav .bar { padding: 10px 18px 10px 10px; }
.nav.solid .bar { background: var(--nav-solid); box-shadow: var(--shadow); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; direction: ltr; font-family: "Inter Tight", sans-serif; }
.logo svg { width: 28px; height: 28px; overflow: visible; }
.logo rect { fill: var(--accent); transition: transform .5s var(--ease); transform-origin: 16px 16px; }
.logo path { stroke-dasharray: 40; stroke-dashoffset: 0; }
.logo circle { fill: var(--spark); transform-origin: 24.5px 7.5px; transition: transform .5s var(--ease); }
.logo:hover rect { transform: rotate(-8deg) scale(1.04); }
.logo:hover circle { transform: scale(1.6); }
.logo:hover path { animation: draw .7s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 40; } }
.nav nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav nav a { position: relative; text-decoration: none; color: var(--nav-muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav nav a:hover { color: var(--nav-text); }
.nav nav a:hover::after, .nav nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav nav a[aria-current="page"] { color: var(--nav-text); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--nav-line); background: transparent; color: var(--nav-text); cursor: pointer; margin-inline-start: 4px; transition: background .2s, transform .4s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, var(--nav-text) 7%, transparent); transform: rotate(25deg); }
.icon-btn .sun { display: none; }
:root[data-mode="dark"] .icon-btn .sun { display: block; }
:root[data-mode="dark"] .icon-btn .moon { display: none; }
.lang { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--btn-text); background: var(--btn-bg); border: 0; border-radius: 999px; padding: 9px 14px; margin-inline-start: 6px; transition: transform .2s; }
.lang:hover { transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); padding: 168px 0 0; isolation: isolate; transition: background .3s; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: var(--grid-op); animation: gridpan 30s linear infinite; }
@keyframes gridpan { to { background-position: 64px 64px; } }
.hero .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px 420px at var(--sx, 50%) var(--sy, 30%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); transition: opacity .4s; }
.aurora { position: absolute; z-index: -1; width: 900px; height: 900px; border-radius: 50%; filter: blur(120px); opacity: var(--aurora-op); pointer-events: none; }
.aurora.a { background: var(--glow-1); top: -520px; left: 50%; translate: -50% 0; animation: drift 18s ease-in-out infinite alternate; }
.aurora.b { background: var(--glow-2); width: 520px; height: 520px; top: 120px; right: -260px; opacity: calc(var(--aurora-op) * .5); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
.hero .center { text-align: center; max-width: 920px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--hero-line); border-radius: 999px; background: var(--hero-glass); color: var(--hero-muted); font-size: 14px; text-decoration: none; }
html[dir="rtl"] .eyebrow { padding: 6px 8px 6px 14px; }
.eyebrow b { position: relative; overflow: hidden; color: #14110a; background: var(--spark); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.eyebrow b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite 1s; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
h1 { margin: 26px 0 22px; font-weight: 700; font-size: clamp(44px, 8.4vw, 104px); line-height: .98; letter-spacing: -0.045em; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.22; font-size: clamp(38px, 7vw, 84px); }
h1 .serif { font-weight: 400; color: var(--h-serif); padding-inline-end: .04em; }
.lead { margin: 0 auto 36px; max-width: 34em; color: var(--hero-muted); font-size: clamp(17px, 2vw, 20px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 999px; padding: 14px 24px; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; transform: translate(var(--mx, 0), var(--my, 0)); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn.solid { background: var(--btn-bg); color: var(--btn-text); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.line { border: 1px solid var(--btn-line); color: var(--hero-text); background: var(--hero-glass); }
.btn.line:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* hero stage: floating cards over the product frame */
.stage { position: relative; margin: 72px auto 0; max-width: 1040px; padding-top: 24px; perspective: 1400px; }
.stage .frame { position: relative; margin: 0 auto; max-height: 430px; width: min(760px, 92%); border-radius: 18px 18px 0 0; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; background: #0b1224; box-shadow: 0 -30px 120px color-mix(in srgb, var(--accent) 28%, transparent); overflow: hidden; transform: rotateX(var(--rx, 8deg)); transform-origin: 50% 100%; transition: transform .2s linear; }
.frame .chrome { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.09); background: var(--ink); }
.frame .chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.frame .chrome i:nth-child(1) { background: #ff5f57; } .frame .chrome i:nth-child(2) { background: #febc2e; } .frame .chrome i:nth-child(3) { background: #28c840; }
.frame img { width: 100%; height: auto; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--float-line); background: var(--float-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--hero-text); font-size: 14px; box-shadow: var(--shadow); translate: var(--fx, 0) var(--fy, 0); transition: translate .3s var(--ease); }
.float > * { pointer-events: none; }
.float .bob { display: contents; }
.float { animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: var(--hero-muted); font-size: 12px; }
.float .ic { --c: var(--accent); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.float .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float.f1 { left: 2%; top: 40px; }
.float.f2 { right: 1%; top: 10px; animation-delay: -2s; }
.float.f2 .ic { --c: #d9a400; }
.float.f3 { right: 6%; top: 190px; animation-delay: -4s; }
.float.f3 .ic { --c: #22b866; }
.float.f4 { left: 5%; top: 210px; animation-delay: -3s; }
.float.f4 .ic { --c: var(--accent-alt); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* marquee */
.strip { position: relative; z-index: 3; background: var(--strip-bg); border-top: 1px solid var(--hero-line); border-bottom: 1px solid var(--hero-line); color: var(--strip-text); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip .track { display: flex; width: max-content; gap: 48px; padding: 20px 0; animation: slide 36s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
html[dir="rtl"] .strip .track { animation-direction: reverse; }
.strip span { display: inline-flex; align-items: center; gap: 48px; font-size: 15px; white-space: nowrap; transition: color .2s; }
.strip span:hover { color: var(--hero-text); }
.strip span::after { content: "✦"; color: var(--accent); font-size: 12px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 128px 0 0; }
.head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.head .mono { color: var(--link); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.head .mono::before { content: ""; width: 28px; height: 1.5px; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
html[dir="rtl"] .head .mono::before { transform-origin: 100% 50%; }
.head.in .mono::before { transform: scaleX(1); }
h2 { margin: 0; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.25; }
h2 .serif { color: var(--accent); font-weight: 400; }
.head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 36em; }

/* spotlight that follows the cursor on cards */
.spot-card { --cx: 50%; --cy: 50%; }
.spot-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--cx) var(--cy), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.spot-card:hover::after { opacity: 1; }

/* products: one card design for every product */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 34px 70px -34px color-mix(in srgb, var(--deep) 70%, transparent); }
.tile .visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(600px 300px at 30% 0%, var(--deep) 0%, transparent 70%), var(--ink); isolation: isolate; }
.tile .visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1.1px, transparent 1.1px); background-size: 18px 18px; }
.tile .visual .shot { position: absolute; left: 8%; right: 8%; top: 10%; width: 84%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 -10px 60px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .7s var(--ease); }
.tile:hover .visual .shot { transform: translateY(-10px) scale(1.02); }
.tile .meta { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile .id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tile .pic { width: 48px; height: 48px; border-radius: 13px; flex: none; transition: transform .5s var(--ease); }
.tile:hover .pic { transform: rotate(-6deg) scale(1.06); }
.tile h3 { margin: 0; font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
html[lang="ar"] .tile h3 { letter-spacing: 0; }
.type { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.type svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile p { margin: 0; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.live::before, .chip.review::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: ping 2s infinite; }
.chip.review { color: var(--link); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.chip.review::before { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chip.soon { color: var(--soon-text); border-color: rgba(255,207,63,.6); background: rgba(255,207,63,.14); }
.tile .go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); }
.tile .go svg { transition: transform .3s var(--ease); }
.tile:hover .go svg { transform: translateX(5px); }
html[dir="rtl"] .tile .go svg { transform: scaleX(-1); }
html[dir="rtl"] .tile:hover .go svg { transform: scaleX(-1) translateX(5px); }

/* icon stroke demo (home + icon tool page) */
.demo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 20px; }
.icons { display: grid; grid-template-columns: repeat(4, 64px); gap: 14px; }
.icons div { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: #eef1f8; transition: transform .4s var(--ease), background .3s; }
.icons div:hover { transform: translateY(-4px) rotate(-4deg); background: rgba(255,255,255,.1); }
.icons svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--sw, 1.75); }
.icons div:nth-child(2) { color: var(--accent-soft); }
.slider { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #b7c0d4; }
.slider output { font-family: "JetBrains Mono", monospace; font-size: 12px; color: #eef1f8; min-width: 54px; text-align: end; direction: ltr; }
.slider input { width: 150px; accent-color: var(--accent); }

/* principles */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.rule { position: relative; padding: 32px 26px 12px 0; border-inline-end: 1px solid var(--line); }
html[dir="rtl"] .rule { padding: 32px 0 12px 26px; }
.rule + .rule { padding-inline-start: 26px; }
.rule:last-child { border-inline-end: 0; }
.rule::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
html[dir="rtl"] .rule::before { transform-origin: 100% 50%; }
.rule:hover::before { transform: scaleX(1); }
.rule .num { font-family: "Instrument Serif", Georgia, serif; font-size: 64px; line-height: 1; color: var(--accent); transition: transform .5s var(--ease); display: inline-block; }
.rule:hover .num { transform: translateY(-6px) rotate(-4deg); }
.rule h4 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
html[lang="ar"] .rule h4 { letter-spacing: 0; }
.rule p { margin: 0; color: var(--muted); font-size: 16px; }
.rules.in .rule { animation: rise .9s var(--ease) both; }
.rules.in .rule:nth-child(2) { animation-delay: .1s; } .rules.in .rule:nth-child(3) { animation-delay: .2s; } .rules.in .rule:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* slogan + contact + footer */
.finale { margin-top: 140px; background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; isolation: isolate; padding: 120px 0 0; border-top: 1px solid var(--hero-line); }
.finale .aurora.a { top: auto; bottom: -640px; }
.slogan { text-align: center; margin: 0; font-weight: 700; font-size: clamp(40px, 8.6vw, 112px); line-height: 1.02; letter-spacing: -0.05em; }
html[lang="ar"] .slogan { letter-spacing: 0; line-height: 1.25; font-size: clamp(36px, 7.2vw, 92px); }
.slogan .serif .w { background: var(--slogan-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; animation: hue 6s ease-in-out infinite alternate; }
@keyframes hue { to { background-position: 100% 0; } }
.contact { margin: 88px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mail { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--card-line); background: var(--card-bg); text-decoration: none; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.mail:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-4px); box-shadow: var(--shadow); }
.mail small { display: block; color: var(--hero-muted); font-size: 14px; margin-bottom: 4px; }
.mail strong { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.mail .circ { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-text); transition: transform .4s var(--ease), background .25s, color .25s; }
.mail:hover .circ { transform: rotate(-45deg) scale(1.08); background: var(--accent); color: #fff; }
html[dir="rtl"] .mail .circ svg { transform: scaleX(-1); }
html[dir="rtl"] .mail:hover .circ { transform: rotate(45deg) scale(1.08); }

/* big outlined wordmark: an SVG filter draws one outline around the whole word (no inner lines where glyph parts overlap, like the f bar) */
.wordmark { margin-top: 72px; display: flex; justify-content: center; font-weight: 800; letter-spacing: -0.055em; font-size: clamp(76px, 21vw, 290px); line-height: .82; user-select: none; direction: ltr; font-family: "Inter Tight", sans-serif; overflow: hidden; padding: .02em 0 .06em; filter: url(#wm-outline); opacity: var(--wm-op); }
.wordmark .l { display: inline-block; color: var(--wm-line); transform: translateY(110%); transition: transform 1.1s var(--ease), color .35s; transition-delay: calc(var(--i) * 70ms); cursor: default; }
.wordmark.in .l { transform: none; animation: wave 5.5s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * .14s); }
.wordmark .l:hover { color: var(--accent); transform: translateY(-6%); transition: transform .4s var(--ease), color .2s; animation: none; }
@keyframes wave { 0%, 72%, 100% { transform: none; color: var(--wm-line); } 82% { transform: translateY(-7%); color: var(--accent); } }

footer { margin-top: 40px; border-top: 1px solid var(--hero-line); padding: 28px 0 40px; color: var(--hero-muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--hero-text); }

/* ---------- product pages ---------- */
.p-hero { padding-top: 150px; }
.p-hero .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-bottom: 96px; }
.p-hero h1 { font-size: clamp(40px, 6.2vw, 76px); margin: 18px 0; }
html[lang="ar"] .p-hero h1 { font-size: clamp(36px, 5.4vw, 64px); }
.p-hero .lead { margin: 0 0 28px; }
.p-hero .cta { justify-content: flex-start; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hero-muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--hero-text); }
.p-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.p-note { margin-top: 16px; font-size: 14px; color: var(--hero-muted); }
.p-shot { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--ink); box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--accent) 45%, transparent); transform: perspective(1200px) rotateY(var(--ry, -6deg)) rotateX(var(--rx2, 3deg)); transition: transform .3s var(--ease); }
html[dir="rtl"] .p-shot { --ry: 6deg; }
.p-shot img { width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; overflow: hidden; }
.step:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--link); font-weight: 700; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.feature { position: relative; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; transition: transform .5s var(--ease); }
.feature:hover svg { transform: scale(1.15) rotate(-6deg); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.plan { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.pro { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin: 10px 0 2px; direction: ltr; text-align: start; }
html[dir="rtl"] .price { text-align: right; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price s { font-size: 26px; font-weight: 500; color: var(--muted); margin-inline-end: 6px; }
.price.alt { font-size: 22px; margin-top: 0; }
.offer { display: inline-block; margin-top: 10px; background: var(--spark); color: #2a1f00; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.seats { margin-top: 12px; max-width: 340px; }
.seats .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.seats .bar { height: 6px; margin-top: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.seats .bar i { display: block; height: 100%; background: var(--spark); border-radius: 9px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { position: relative; padding-inline-start: 28px; margin: 9px 0; font-size: 15px; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, #22c55e 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 880px; }
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 18px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link); }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 400; font-size: 20px; transition: transform .35s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; animation: rise .5s var(--ease); }
.faq a { color: var(--link); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .side { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: radial-gradient(500px 260px at 30% 0%, var(--deep) 0%, transparent 70%), var(--ink); }
.compare .side .demo { gap: 18px; }
.compare .label { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; font-size: 13px; font-weight: 600; color: #b7c0d4; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; }
.icons.outlined svg { stroke-width: 3.2; }
.icons.outlined svg path, .icons.outlined svg circle, .icons.outlined svg rect { stroke: currentColor; }
.icons.outlined .inner { stroke: var(--ink) !important; stroke-width: 1.8; }
.locked { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #b7c0d4; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .1s; } .rv[data-d="2"] { transition-delay: .2s; } .rv[data-d="3"] { transition-delay: .3s; }
/* word-by-word headlines */
.split.rv { opacity: 1; transform: none; }
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.in .w { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .split .w, .wordmark .l { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav nav a.opt { display: none; }
  .bento, .contact, .p-hero .grid, .plans, .compare { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule:nth-child(2) { border-inline-end: 0; }
  .rule:nth-child(3) { padding-inline-start: 0; }
  .float.f3, .float.f4 { display: none; }
  .stage .frame { max-height: 360px; }
  .steps, .gallery, .features { grid-template-columns: 1fr; }
  .p-hero .grid { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 132px; }
  .p-hero { padding-top: 120px; }
  .stage { margin-top: 48px; padding-top: 0; }
  .stage .frame { max-height: 230px; width: 100%; }
  .float { display: none; }
  section.block { padding-top: 96px; }
  .rules { grid-template-columns: 1fr; }
  .rule, html[dir="rtl"] .rule, .rule + .rule { padding: 26px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .tile .meta { padding: 22px; }
  .icons { grid-template-columns: repeat(4, 50px); gap: 10px; }
  .icons div { width: 50px; height: 50px; border-radius: 13px; }
  .icons svg { width: 24px; height: 24px; }
  .slider input { width: 100px; }
  .finale { padding-top: 88px; margin-top: 104px; }
  .contact { margin-top: 56px; }
  .plan { padding: 24px; }
}

/* whole card is clickable through its main link; the demo slider stays usable above it */
.tile .stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile .slider { position: relative; z-index: 2; cursor: default; }

/* ---------- legal pages (privacy, terms) ---------- */
.legal-hero { padding: 150px 0 72px; }
.legal-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 16px 0 12px; }
.legal-hero .updated { color: var(--hero-muted); font-size: 15px; }
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 72px; align-items: start; }
.legal .toc { position: sticky; top: 110px; display: grid; gap: 2px; font-size: 14px; }
.legal .toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; border-inline-start: 2px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.legal .toc a:hover, .legal .toc a.on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.legal article { max-width: 720px; }
.legal section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; margin-bottom: 14px; }
html[lang="ar"] .legal h2 { letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--link); }
.legal .box { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 36px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 0; padding-top: 48px; } .legal .toc { display: none; } }

/* ---------- product identity (RULE 2026-10-17, every product page): the nav always carries the Mansify logo;
   the product's own icon + name sit under it, at the top of the hero, as .p-brand ---------- */
.p-brand { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--hero-text); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.p-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.p-brand small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--hero-muted); }

/* ---------- thank-you page after a purchase (product/thanks.html) ---------- */
.thanks-hero { padding: 150px 0 80px; }
.thanks-hero .center { text-align: center; max-width: 760px; margin-inline: auto; }
.thanks-hero .p-brand { justify-content: center; text-align: start; }
.thanks-hero .tick { width: 64px; height: 64px; margin: 34px auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.thanks-hero .tick svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks-hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin: 18px 0 14px; }
.thanks-hero .lead { margin-bottom: 0; }
.thanks-hero .lead b { color: var(--hero-text); overflow-wrap: anywhere; }
.thanks .help { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.thanks .help h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.thanks .help p { margin: 0 0 10px; color: var(--muted); }
.thanks .help p b { color: var(--text); font-weight: 600; }
.thanks .help .cta { justify-content: flex-start; margin-top: 18px; }
.thanks .help .btn.line { color: var(--text); background: transparent; }
.thanks kbd { font: inherit; font-size: 14px; padding: 1px 8px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); white-space: nowrap; }
.thanks .note a, .thanks .help a:not(.btn) { color: var(--link); }
.thanks-hero [hidden] { display: none !important; }

/* thank-you: vertical steps (start side) + animated activation card (end side), 2026-10-17 */
.act-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
/* each step draws the connector from its dot centre to the next dot centre, so the line always lands on the dots */
.vstep { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.vstep:not(:last-child)::before, .vstep:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 23px; top: 24px; height: calc(100% + 18px); width: 2px; border-radius: 2px; background: var(--line); }
.vstep:not(:last-child)::after { background: linear-gradient(var(--accent), var(--accent-alt)); transform-origin: 50% 0; transform: scaleY(0); transition: transform .7s var(--ease); }
.vstep.past::after { transform: scaleY(1); }
.vstep .dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; background: var(--paper); border: 2px solid var(--line); color: var(--muted); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.vstep .body { padding: 10px 18px 14px; margin-top: -2px; border-radius: 16px; border: 1px solid transparent; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.vstep h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; transition: color .4s; }
.vstep p { margin: 0; color: var(--muted); font-size: 16px; }
.vstep.on .dot, .vstep.past .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.vstep.on .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.vstep.on .body { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--accent) 45%, transparent); }
.vstep.on h3 { color: var(--link); }
.vstep kbd { margin-inline: 2px; }

.act-demo { position: relative; padding: 24px; }
.act-glow { position: absolute; inset: 0; z-index: 0; border-radius: 40px; background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), radial-gradient(40% 40% at 80% 85%, color-mix(in srgb, var(--accent-alt) 30%, transparent), transparent 70%); filter: blur(10px); animation: actGlow 6s ease-in-out infinite alternate; }
@keyframes actGlow { from { transform: scale(.96); opacity: .8; } to { transform: scale(1.04); opacity: 1; } }
.act-panel { position: relative; z-index: 1; max-width: 440px; margin-inline: auto; border-radius: 22px; padding: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); font-size: 14px; animation: actFloat 7s ease-in-out infinite; }
@keyframes actFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ap-top { display: flex; align-items: center; gap: 9px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.ap-top img { border-radius: 6px; } .ap-top b { font-size: 14px; }
.ap-gear { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background .3s, color .3s; }
.ap-gear svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.act-panel.gear .ap-gear { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--link); }
.act-panel.gear .ap-gear svg { animation: spin 1.4s var(--ease); }
@keyframes spin { to { transform: rotate(180deg); } }
.ap-tab { display: inline-flex; margin: 12px 4px 10px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: all .4s; }
.act-panel[data-phase="2"] .ap-tab, .act-panel[data-phase="3"] .ap-tab { color: #fff; background: var(--accent); border-color: var(--accent); }
.ap-box { border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 16px; padding: 16px; display: grid; gap: 12px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.ap-h { display: flex; align-items: center; gap: 10px; } .ap-h b { font-size: 15px; }
.ap-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--link); }
.ap-ic svg, .ap-field svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ap-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.ap-field { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.act-panel.typing .ap-field, .act-panel.pasted .ap-field { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.ap-key { font: 500 14px "JetBrains Mono", ui-monospace, monospace; color: var(--text); white-space: nowrap; }
.ap-caret { width: 2px; height: 18px; background: var(--accent); opacity: 0; }
.act-panel.typing .ap-caret { opacity: 1; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ap-paste { position: absolute; inset-inline-end: 10px; font-size: 11.5px; font-weight: 600; color: var(--link); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: all .35s var(--ease); }
.act-panel.pasted[data-phase="1"] .ap-paste { opacity: 1; transform: none; }
.ap-btn { position: relative; overflow: hidden; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); opacity: .45; transition: opacity .4s, background .5s, box-shadow .4s, transform .15s; }
.act-panel.pasted .ap-btn { opacity: 1; }
.act-panel[data-phase="3"]:not(.done) .ap-btn { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--spark); }
.act-panel.clicked .ap-btn { transform: scale(.97); }
.act-panel.done .ap-btn { transform: none; background: linear-gradient(90deg, #16a34a, #22c55e); box-shadow: 0 12px 30px -10px rgba(34,197,94,.7); }
.ap-label, .ap-done { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity .3s, transform .4s var(--ease); }
.ap-done { opacity: 0; transform: translateY(12px); }
.ap-done svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.act-panel.done .ap-label { opacity: 0; transform: translateY(-12px); }
.act-panel.done .ap-done { opacity: 1; transform: none; }
.ap-ripple { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); opacity: 0; }
.act-panel.clicked .ap-ripple { animation: ripple .7s ease-out; }
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(40); opacity: 0; } }
.ap-links { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ap-cursor { position: absolute; z-index: 3; width: 26px; height: 26px; fill: var(--text); stroke: var(--surface); stroke-width: 1.5; left: 78%; top: 30%; opacity: 0; transition: left .9s var(--ease), top .9s var(--ease), opacity .3s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
html[dir="rtl"] .ap-cursor { left: 18%; }
.act-panel[data-phase="2"] .ap-cursor { opacity: 1; left: 88%; top: 9%; }
html[dir="rtl"] .act-panel[data-phase="2"] .ap-cursor { left: 7%; }
.act-panel[data-phase="3"] .ap-cursor { opacity: 1; left: 52%; top: 66%; }
.act-panel.done .ap-cursor { opacity: 0; }
.act-confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.act-confetti i { position: absolute; left: 50%; top: 62%; width: 8px; height: 8px; border-radius: 2px; opacity: 0; background: var(--accent); }
.act-confetti i:nth-child(2n) { background: var(--spark); } .act-confetti i:nth-child(3n) { background: #22c55e; border-radius: 50%; }
.act-demo:has(.act-panel.done) .act-confetti i { animation: pop 1.1s var(--ease) forwards; }
.act-confetti i:nth-child(1) { --x: -150px; --y: -120px; } .act-confetti i:nth-child(2) { --x: 140px; --y: -130px; }
.act-confetti i:nth-child(3) { --x: -190px; --y: -10px; } .act-confetti i:nth-child(4) { --x: 185px; --y: -30px; }
.act-confetti i:nth-child(5) { --x: -90px; --y: -180px; } .act-confetti i:nth-child(6) { --x: 95px; --y: -175px; }
.act-confetti i:nth-child(7) { --x: -170px; --y: 70px; } .act-confetti i:nth-child(8) { --x: 165px; --y: 80px; }
@keyframes pop { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(260deg); } }
@media (max-width: 900px) { .act-grid { grid-template-columns: 1fr; gap: 32px; } .act-demo { padding: 8px 0; } }
@media (prefers-reduced-motion: reduce) { .act-panel, .act-glow { animation: none; } }
.nw { white-space: nowrap; }
