/* UI Motion Lab — page, phone frame, touch indicator and the 20 components.
   Motion rules used everywhere: transform / opacity / clip-path only, strong ease-out for
   enter/exit, ease-in-out for on-screen moves, real springs (computed into linear()) for
   anything a finger can throw, and a reduced-motion variant that keeps fades only. */

@font-face {
  font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/noto-sans-hebrew/noto-sans-hebrew-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/noto-sans-hebrew/noto-sans-hebrew-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --ink: #1b1b1b;
  --panel: #232323;
  --line: rgba(255, 255, 255, .08);
  --paper: #dcdad5;
  --body: #c5c1b9;
  --mute: #a09d96;
  --accent: #22c55e;
  --accent-text: #22c55e;
  --accent-soft: rgba(34, 197, 94, .12);
  --on-accent: #052e16;
  --stage: #111111;
  --stage-glow: rgba(34, 197, 94, .07);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: var(--ease-out);
  --spring-ms: 450ms;
  --spring-soft: var(--ease-out);
  --spring-soft-ms: 450ms;
  --f-body: 'Noto Sans Hebrew', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --ink: #f4f4f0;
  --panel: #ffffff;
  --line: rgba(17, 17, 17, .1);
  --paper: #111111;
  --body: #2d2d2b;
  --mute: #555555;
  --accent-text: #137a3b;
  --accent-soft: rgba(34, 197, 94, .14);
  --stage: #e8e7e2;
  --stage-glow: rgba(34, 197, 94, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-ui-lang="he"] [data-lang="en"], html[data-ui-lang="en"] [data-lang="he"] { display: none !important; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--body); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Same as the showreel: a color-scheme that differs from the host page makes the browser
   paint an opaque backdrop behind the iframe, so the embed matches the blog's (normal). */
html.embed-post, html.embed-post body { background: transparent; color-scheme: normal; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 48px 24px 72px; }
html.embed-post .wrap { padding: 0 0 8px; }

/* ---------- page header ---------- */
.page-head { margin-bottom: 28px; }
html.embed-post .page-head { display: none; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.page-head h1 { margin: 8px 0; color: var(--paper); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.page-head p { margin: 0; max-width: 64ch; }

.base { margin: 0 0 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.base__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.base__head strong { color: var(--paper); }
.base__body { padding-top: 10px; }

/* ---------- groups + cards ---------- */
.group { margin-bottom: 44px; }
.group__head { display: flex; align-items: baseline; gap: 14px; margin: 0 4px 16px; flex-wrap: wrap; }
.group__head h2 { margin: 0; color: var(--paper); font-size: 1.5rem; line-height: 1.2; }
.group__head p { margin: 0; color: var(--mute); font-size: .95rem; }
/* Each phone group holds 4 demos: 1, 2 (2/2) or 4 per row, never 3+1. */
.demos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1320px) { .demos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Each demo is a plain section on the page background: no card, no dark stage behind it. */
.demo { display: flex; flex-direction: column; min-width: 0; }
.demo__head { display: flex; align-items: baseline; gap: 10px; padding: 0 0 12px; }
.demo__num { font-family: var(--f-mono); font-size: 13px; color: var(--accent-text); }
.demo__head h3 { margin: 0; flex: 1; font-size: 1.08rem; line-height: 1.3; color: var(--paper); }
.tag { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); }
.demo__bar { display: flex; align-items: center; gap: 12px; padding: 12px 0 0; flex-wrap: wrap; }
.replay {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.replay:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .replay:hover { border-color: var(--accent); } }
.replay svg { width: 11px; height: 11px; fill: currentColor; }
html[dir="rtl"] .replay svg { transform: scaleX(-1); }
.spec { direction: ltr; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }
.why { margin: 10px 0 0; font-size: .94rem; }
.prompt { margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
.prompt summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--paper); font-size: .94rem; }
.prompt__body { padding: 0 14px 14px; }
.prompt pre, .base pre { direction: ltr; text-align: left; margin: 0 0 10px; white-space: pre-wrap; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.65; color: var(--body); }
.copy { padding: 5px 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 160ms var(--ease-out); }
.copy:active { transform: scale(.97); }

.stage {
  position: relative; height: 660px; overflow: hidden; display: grid; place-items: center;
  -webkit-user-select: none; user-select: none;
}

/* ---------- solo: one phone fills the window (screen capture for the reel) ---------- */
html.solo, html.solo body { height: 100%; overflow: hidden; }
html.solo body { background: var(--stage); }
html.solo .wrap { max-width: none; height: 100%; padding: 0; }
html.solo .page-head, html.solo .base, html.solo .part, html.solo .group__head, html.solo .demo__head, html.solo .demo__bar, html.solo .why, html.solo .prompt { display: none; }
html.solo .group, html.solo .demos { display: contents; }
html.solo .demo { display: none; height: 100%; border: 0; border-radius: 0; background: none; }
html.solo .demo.is-solo { display: flex; }
html.solo #lab { height: 100%; }
html.solo .stage { flex: 1; height: auto; border: 0; }
html.solo.bare body, html.solo.bare .stage { background: transparent; }

/* ---------- phone ---------- */
.fit { zoom: var(--z, 1); }
.phone {
  position: relative; width: 300px; height: 620px; padding: 9px; border-radius: 52px; background: #050505;
  box-shadow: 0 0 0 1.5px #2e2e30, 0 0 0 4px #121213, 0 50px 90px -40px rgba(0, 0, 0, .85);
}
[data-theme="light"] .phone { box-shadow: 0 0 0 1.5px #c9c8c3, 0 0 0 4px #f4f3ef, 0 50px 90px -45px rgba(0, 0, 0, .45); }
.screen, .screen.t-dark, .reveal.t-dark {
  /* iOS system palette, dark */
  --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --fill: rgba(118, 118, 128, .24); --sep: rgba(84, 84, 88, .55);
  --fg: #fff; --fg2: rgba(235, 235, 245, .62); --fg3: rgba(235, 235, 245, .32);
  --tint: #30d158; --red: #ff453a; --orange: #ff9f0a; --blue: #0a84ff; --pink: #ff375f;
}
.screen {
  position: relative; width: 282px; height: 602px; border-radius: 43px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); font-size: 14px; line-height: 1.4;
  transition: background-color 300ms ease, color 300ms ease;
}
.screen.t-light, .reveal.t-light, [data-theme="light"] .screen:not(.t-dark) {
  --bg: #f2f2f7; --card: #fff; --card2: #e5e5ea; --fill: rgba(118, 118, 128, .12); --sep: rgba(60, 60, 67, .2);
  --fg: #000; --fg2: rgba(60, 60, 67, .62); --fg3: rgba(60, 60, 67, .3);
  --tint: #22b04b; --red: #ff3b30; --orange: #ff9500; --blue: #007aff; --pink: #ff2d55;
}
.sbar { position: absolute; top: 0; left: 0; right: 0; z-index: 60; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 2px 24px 0 30px; direction: ltr; font-size: 14px; font-weight: 600; color: var(--fg); pointer-events: none; }
.sbar.on-photo, .screen:has(.full:not([hidden])) .sbar { color: #fff; }
.sbar__icons { display: flex; gap: 5px; align-items: center; }
.sbar__icons svg { height: 11px; fill: currentColor; }
.island { position: absolute; top: 10px; left: 50%; z-index: 70; width: 90px; height: 27px; margin-left: -45px; border-radius: 20px; background: #000; pointer-events: none; }
.homebar { position: absolute; bottom: 7px; left: 50%; z-index: 70; width: 108px; height: 4.5px; margin-left: -54px; border-radius: 3px; background: var(--fg); opacity: .9; pointer-events: none; }
.homebar.on-photo { background: #fff; }
.view { position: absolute; inset: 0; padding-top: 46px; }
.navt { padding: 8px 18px 10px; }
.navt h4 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.navt p { margin: 2px 0 0; color: var(--fg2); font-size: 13px; }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; }
.navbar b { font-size: 16px; }
.ibtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--fill); color: var(--fg); cursor: pointer; transition: transform 160ms var(--ease-out); }
.ibtn:active, .ibtn.is-pressed { transform: scale(.9); }
.ibtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--tint); color: #04210f; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active, .btn.is-pressed { transform: scale(.97); }
.btn--ghost { background: var(--fill); color: var(--fg); }
.btn svg:not(.check) { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn .check { flex: none; }
.group-list { margin: 0 14px; border-radius: 12px; background: var(--card); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; position: relative; }
.cell + .cell::before { content: ''; position: absolute; top: 0; inset-inline: 14px 0; height: .5px; background: var(--sep); }
.cell__t { flex: 1; min-width: 0; }
.cell__t b { display: block; font-weight: 500; font-size: 15px; }
.cell__t small { display: block; color: var(--fg2); font-size: 12px; }
.ava { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sect { margin: 18px 30px 6px; color: var(--fg2); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.tick { font-variant-numeric: tabular-nums; }

/* ---------- the touch indicator that plays each demo ---------- */
.touch {
  position: absolute; left: 0; top: 0; z-index: 90; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22) 70%);
  border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .12);
  opacity: 0; transition: opacity 180ms ease; will-change: transform;
}
.touch.on { opacity: 1; }
.touch-ring { position: absolute; left: 0; top: 0; z-index: 89; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); pointer-events: none; opacity: 0; }
.demo.is-playing :focus-visible { outline: none; }

/* ===================================================================== components */

/* 01 save */
.c-save .hero { display: grid; place-items: center; gap: 8px; padding: 6px 0 16px; }
.c-save .hero img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.c-save .hero span { color: var(--tint); font-size: 14px; font-weight: 600; }
.c-save .field-cell { flex-direction: column; align-items: stretch; gap: 0; }
.c-save .field-cell small { color: var(--fg2); font-size: 12px; }
.c-save .field-cell b { font-weight: 500; font-size: 15px; }
.c-save .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }
.savebtn { position: relative; overflow: hidden; }
.savebtn[data-state="loading"] { background: var(--card2); color: var(--fg); cursor: default; }
.savebtn .sb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(55%); filter: blur(2px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out); }
.savebtn[data-state="idle"] .sb-idle, .savebtn[data-state="loading"] .sb-load, .savebtn[data-state="done"] .sb-done { opacity: 1; transform: none; filter: none; }
.savebtn[data-state="loading"] .sb-idle, .savebtn[data-state="done"] .sb-idle, .savebtn[data-state="done"] .sb-load { transform: translateY(-55%); }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2.2px solid currentColor; border-top-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.check path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 320ms var(--ease-out) 90ms; }
.savebtn[data-state="done"] .check path, .is-checked .check path { stroke-dashoffset: 0; }

/* 02 hold to delete */
.c-hold .file { margin: 6px 16px 0; border-radius: 18px; overflow: hidden; background: var(--card); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.c-hold .file img { width: 100%; height: 170px; object-fit: cover; }
.c-hold .file div { padding: 12px 14px 14px; }
.c-hold .file b { display: block; font-size: 15px; direction: ltr; text-align: start; }
.c-hold .file small { color: var(--fg2); }
.c-hold.is-gone .file { opacity: 0; transform: scale(.94); }
.c-hold .gone { position: absolute; top: 210px; left: 0; right: 0; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out) 120ms, transform 300ms var(--ease-out) 120ms; pointer-events: none; }
.c-hold.is-gone .gone { opacity: 1; transform: none; pointer-events: auto; }
.c-hold .gone b { display: block; font-size: 17px; }
.c-hold .gone button { margin-top: 8px; border: 0; background: none; color: var(--tint); font-size: 15px; font-weight: 600; cursor: pointer; }
.c-hold .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }
.holdbtn { position: relative; overflow: hidden; background: rgba(255, 69, 58, .14); color: var(--red); touch-action: none; }
.holdbtn .fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; clip-path: inset(0 0 0 100%); transition: clip-path 220ms var(--ease-out); }
html[dir="ltr"] .holdbtn .fill { clip-path: inset(0 100% 0 0); }
.holdbtn.is-holding .fill { clip-path: inset(0 0 0 0) !important; transition: clip-path 1.4s linear; }
.holdbtn.is-done .fill { clip-path: inset(0 0 0 0) !important; transition: none; }
.holdbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 03 like */
.c-like .post-h { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; }
.c-like .post-h .ava { width: 32px; height: 32px; }
.c-like .post-h b { font-size: 14px; }
.c-like .post-h small { display: block; color: var(--fg2); font-size: 12px; }
.c-like .photo { position: relative; height: 330px; overflow: hidden; touch-action: manipulation; cursor: pointer; }
.c-like .photo img { width: 100%; height: 100%; object-fit: cover; }
.c-like .big-heart { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; fill: #fff; opacity: 0; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .4)); pointer-events: none; }
.c-like .acts { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0; }
.c-like .acts .ico { width: 24px; height: 24px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.c-like .acts > span { display: grid; place-items: center; width: 40px; height: 40px; }
.like { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 160ms var(--ease-out); }
.like:active, .like.is-pressed { transform: scale(.88); }
.like .heart { width: 27px; height: 27px; fill: transparent; stroke: var(--fg); stroke-width: 1.8; transition: fill 120ms ease, stroke 120ms ease; }
.like[aria-pressed="true"] .heart { fill: var(--pink); stroke: var(--pink); }
.like .ring { position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; pointer-events: none; }
.like .dot { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; opacity: 0; pointer-events: none; }
.c-like .likes { display: flex; gap: 4px; padding: 0 14px; font-size: 14px; font-weight: 700; }
.roll { position: relative; display: inline-block; height: 20px; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.roll span { display: block; transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out); }
.roll span + span { position: absolute; inset-inline-start: 0; top: 0; }
.c-like .cap { padding: 2px 14px; font-size: 13.5px; }

/* 04 add to cart */
.c-cart .navbar { position: relative; z-index: 3; }
.c-cart .cart { position: relative; }
.c-cart .badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--tint); color: #04210f; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; opacity: 0; transform: scale(.5); transition: opacity 200ms var(--ease-out), transform var(--spring-ms) var(--spring); }
.c-cart .badge.on { opacity: 1; transform: none; }
.c-cart .prod { position: relative; height: 250px; margin: 0 14px; border-radius: 22px; background: #e9e8e4; display: grid; place-items: center; overflow: hidden; }
.c-cart .prod img { width: 230px; height: 230px; object-fit: contain; transition: filter 350ms ease; }
.c-cart .prod img.v-black { filter: grayscale(1) brightness(.42) contrast(1.15); }
.c-cart .prod img.v-sand { filter: sepia(.55) saturate(.9) hue-rotate(-12deg) brightness(1.12); }
.c-cart .info { padding: 14px 18px 0; }
.c-cart .info h5 { margin: 0; font-size: 20px; }
.c-cart .info p { margin: 2px 0 0; color: var(--fg2); font-size: 13px; }
.c-cart .price { margin-top: 6px; font-size: 18px; font-weight: 700; }
.swatches { position: relative; display: flex; gap: 14px; margin-top: 14px; }
.swatch { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch-ring { position: absolute; top: -4px; left: -4px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--fg); pointer-events: none; transition: transform var(--spring-ms) var(--spring); }
.c-cart .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }
.c-cart .addbtn .lbl { display: inline-flex; align-items: center; gap: 8px; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.c-cart .addbtn { position: relative; overflow: hidden; }
.c-cart .addbtn .lbl + .lbl { position: absolute; opacity: 0; transform: translateY(60%); }
.c-cart .addbtn.is-added .lbl:first-child { opacity: 0; transform: translateY(-60%); }
.c-cart .addbtn.is-added .lbl + .lbl { opacity: 1; transform: none; }
.flyer { position: absolute; z-index: 80; left: 0; top: 0; pointer-events: none; }
.flyer > div { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #e9e8e4; }
.flyer img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }

/* 05 switches + theme reveal */
.c-sw .group-list .cell { min-height: 52px; }
.c-sw .ico-sq { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; }
.c-sw .ico-sq svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.switch { position: relative; flex: none; width: 51px; height: 31px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: var(--fill); transition: background-color 250ms ease; }
.switch[aria-checked="true"] { background: var(--tint); }
.switch__thumb { position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; transition: transform var(--spring-ms) var(--spring); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(20px); }
html[dir="rtl"] .switch[aria-checked="true"] .switch__thumb { transform: translateX(-20px); }
.switch__knob { display: block; width: 100%; height: 100%; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform 200ms var(--ease-out); }
.switch:active .switch__knob, .switch.is-pressed .switch__knob { transform: scaleX(1.22); }
.reveal { position: absolute; inset: 0; z-index: 55; pointer-events: none; background: var(--bg); color: var(--fg); }
.no-trans, .no-trans * { transition: none !important; }
.flip { transform: scaleX(-1); }
.reveal > .view { background: var(--bg); color: var(--fg); }

/* 06 dynamic island */
.c-di .wall { position: absolute; inset: 0; }
.c-di .wall img { width: 100%; height: 100%; object-fit: cover; }
.c-di .wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35)); }
.c-di .clock { position: absolute; top: 92px; left: 0; right: 0; z-index: 2; text-align: center; color: #fff; direction: ltr; }
.c-di .clock small { display: block; font-size: 15px; font-weight: 600; opacity: .9; }
.c-di .clock b { display: block; font-size: 76px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.c-di .timer-card { position: absolute; left: 14px; right: 14px; bottom: 34px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(30, 30, 30, .55); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); color: #fff; }
.c-di .timer-card b { display: block; font-size: 15px; }
.c-di .timer-card small { color: rgba(255, 255, 255, .7); }
.c-di .timer-card .t { flex: 1; }
.c-di .go { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 159, 10, .25); color: #ff9f0a; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.c-di .go:active, .c-di .go.is-pressed { transform: scale(.9); }
.c-di .go svg { width: 18px; height: 18px; fill: currentColor; }
.c-di .go .ic-stop { display: none; }
.c-di.is-running .go .ic-play { display: none; }
.c-di.is-running .go .ic-stop { display: block; }
.dyn { position: absolute; top: 10px; left: 0; z-index: 75; width: 282px; height: 120px; cursor: pointer; clip-path: inset(0 96px 93px 96px round 13.5px); transition: clip-path var(--spring-soft-ms) var(--spring-soft); }
.dyn[data-s="compact"] { clip-path: inset(0 62px 91px 62px round 14.5px); }
.dyn[data-s="expanded"] { clip-path: inset(0 8px 30px 8px round 30px); }
.dyn__bg { position: absolute; inset: 0; background: #000; }
.dyn__c { position: absolute; color: #fff; opacity: 0; filter: blur(6px); transform: scale(.9); transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out), transform 300ms var(--ease-out); pointer-events: none; }
.dyn[data-s="compact"] .dyn__compact, .dyn[data-s="expanded"] .dyn__exp { opacity: 1; filter: none; transform: none; transition-delay: 90ms; }
.dyn__compact { top: 0; left: 62px; right: 62px; height: 29px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; direction: ltr; }
.dyn__compact svg { width: 16px; height: 16px; }
.dyn__compact b { color: #ff9f0a; font-size: 14px; font-variant-numeric: tabular-nums; }
.dyn__exp { top: 0; left: 8px; right: 8px; height: 90px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.dyn__exp img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.dyn__exp .t { flex: 1; min-width: 0; }
.dyn__exp b { display: block; font-size: 14px; }
.dyn__exp span { display: block; color: rgba(255, 255, 255, .72); font-size: 13px; }
.dyn__exp i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #30d158; font-style: normal; }
.dyn__exp i svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 07 toasts */
.c-toast .docs .cell img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.c-toast .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }
.toaster { position: absolute; left: 12px; right: 12px; bottom: 96px; z-index: 50; height: 0; }
.toaster::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; }
.toast {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 10px 0 12px;
  border-radius: 16px; background: var(--card); box-shadow: 0 0 0 .5px var(--sep), 0 14px 34px -14px rgba(0, 0, 0, .6);
  touch-action: pan-y; transform-origin: 50% 0; transition: transform 420ms ease, opacity 420ms ease;
}
.toast.is-dragging { transition: none; }
.toast > i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #04210f; font-style: normal; font-weight: 800; font-size: 13px; }
.toast .t { flex: 1; min-width: 0; }
.toast .t b { display: block; font-size: 13.5px; }
.toast .t small { display: block; color: var(--fg2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--fill); color: var(--fg); font-size: 12.5px; font-weight: 600; cursor: pointer; }

/* 08 skeleton + blur-up */
.c-sk .feed { display: grid; gap: 12px; padding: 0 12px; }
.c-sk .post { position: relative; padding: 12px; border-radius: 18px; background: var(--card); }
.c-sk .ph { display: flex; align-items: center; gap: 10px; height: 34px; }
.c-sk .ph .ava { width: 34px; height: 34px; }
.c-sk .ph b { display: block; font-size: 13.5px; line-height: 17px; }
.c-sk .ph small { display: block; color: var(--fg2); font-size: 12px; line-height: 15px; }
.c-sk .img { height: 130px; margin-top: 10px; border-radius: 12px; overflow: hidden; background: var(--card2); }
.c-sk .img img { width: 100%; height: 100%; object-fit: cover; transition: filter 500ms var(--ease-out), transform 600ms var(--ease-out), opacity 300ms ease; }
.c-sk .txt { margin: 9px 0 0; height: 38px; font-size: 13px; line-height: 19px; overflow: hidden; }
.c-sk .real { transition: opacity 300ms var(--ease-out); }
.c-sk .skel { position: absolute; inset: 12px; pointer-events: none; transition: opacity 250ms var(--ease-out); }
.sk { position: relative; overflow: hidden; border-radius: 7px; background: var(--card2); }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); transform: translateX(-100%); animation: shimmer 1.3s linear infinite; }
.screen.t-light .sk::after, [data-theme="light"] .screen:not(.t-dark) .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-row { display: flex; align-items: center; gap: 10px; }
.sk-av { width: 34px; height: 34px; border-radius: 50%; }
.sk-l1 { width: 46%; height: 12px; margin-bottom: 6px; }
.sk-l2 { width: 26%; height: 10px; }
.sk-img { height: 130px; margin-top: 10px; border-radius: 12px; }
.sk-t1 { height: 11px; margin-top: 13px; }
.sk-t2 { height: 11px; margin-top: 8px; width: 64%; }
.c-sk[data-state="loading"] .real { opacity: 0; }
.c-sk[data-state="loading"] .img img { filter: blur(14px); transform: scale(1.08); opacity: 0; }
.c-sk[data-state="blur"] .img img { filter: blur(14px); transform: scale(1.08); }
.c-sk:not([data-state="loading"]) .skel { opacity: 0; }
.c-sk .post:nth-child(2) .real, .c-sk .post:nth-child(2) .skel { transition-delay: 70ms; }

/* 09 tab bar */
.c-tabs .pages { position: absolute; inset: 46px 0 84px; }
.c-tabs .page { position: absolute; inset: 0; opacity: 0; transform: translateX(var(--from, 14px)); pointer-events: none; transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out); }
.c-tabs .page.is-active { opacity: 1; transform: none; pointer-events: auto; }
.c-tabs .feature { position: relative; height: 250px; margin: 0 14px; border-radius: 22px; overflow: hidden; }
.c-tabs .feature img { width: 100%; height: 100%; object-fit: cover; }
.c-tabs .feature div { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.c-tabs .feature small { opacity: .8; font-size: 12px; }
.c-tabs .feature b { display: block; font-size: 22px; line-height: 1.2; }
.c-tabs .search { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 14px; padding: 0 12px; border-radius: 11px; background: var(--fill); color: var(--fg2); }
.c-tabs .search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.c-tabs .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px; }
.c-tabs .chips span { padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 13px; }
.c-tabs .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
.c-tabs .tiles img { width: 100%; height: 110px; border-radius: 14px; object-fit: cover; }
.c-tabs .prof { display: grid; place-items: center; gap: 6px; padding-top: 20px; text-align: center; }
.c-tabs .prof img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.c-tabs .prof b { font-size: 20px; }
.c-tabs .stats { display: flex; gap: 26px; margin-top: 10px; }
.c-tabs .stats b { display: block; font-size: 18px; }
.c-tabs .stats small { color: var(--fg2); }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 20px; height: 62px; border-radius: 31px; padding: 6px; background: rgba(44, 44, 46, .72); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 0 0 .5px var(--sep), 0 12px 30px -10px rgba(0, 0, 0, .5); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 5; }
.screen.t-light .tabbar, [data-theme="light"] .screen:not(.t-dark) .tabbar { background: rgba(255, 255, 255, .78); }
.tabbar__pill { position: absolute; top: 6px; bottom: 6px; inset-inline-start: 6px; width: calc((100% - 12px) / 4); border-radius: 26px; background: var(--fill); transition: transform var(--spring-ms) var(--spring); }
.tabbar button { position: relative; display: grid; place-items: center; align-content: center; gap: 1px; padding: 0; border: 0; background: none; color: var(--fg2); font-size: 10.5px; font-weight: 600; cursor: pointer; transition: color 200ms ease; }
.tabbar button[aria-selected="true"] { color: var(--tint); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 10 gallery lightbox */
.c-gal .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.c-gal .grid button { padding: 0; border: 0; height: 94px; cursor: pointer; overflow: hidden; background: var(--card2); }
.c-gal .grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity 120ms ease; }
.c-gal .grid button.is-src img { opacity: 0; }
.c-gal .albums { display: flex; gap: 10px; padding: 18px 14px 0; }
.c-gal .albums div { flex: 1; }
.c-gal .albums img { width: 100%; height: 110px; border-radius: 12px; object-fit: cover; }
.c-gal .albums b { display: block; margin-top: 6px; font-size: 13.5px; }
.c-gal .albums small { color: var(--fg2); }
.lb { position: absolute; inset: 0; z-index: 65; }
.lb__bg { position: absolute; inset: 0; background: #000; opacity: 0; }
.lb__img { position: absolute; left: 0; width: 282px; height: 352px; top: 125px; transform-origin: 0 0; touch-action: none; cursor: grab; will-change: transform, clip-path; }
.lb__img img { width: 100%; height: 100%; object-fit: cover; }
.lb__ui { position: absolute; inset: 0; pointer-events: none; color: #fff; opacity: 0; transition: opacity 200ms ease; }
.lb.is-open .lb__ui { opacity: 1; }
.lb__ui b { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; font-size: 15px; }
.lb__ui small { position: absolute; left: 0; right: 0; bottom: 50px; text-align: center; font-size: 12px; opacity: .7; }
.lb__close { position: absolute; top: 52px; inset-inline-end: 14px; pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.lb__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* 11 mini player -> full player */
.c-mp .lib .cell img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mini { position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 20; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 16px; background: var(--card2); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); cursor: pointer; }
.mini__cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.mini.is-src .mini__cover { opacity: 0; }
.mini .t { flex: 1; min-width: 0; }
.mini b { display: block; font-size: 14px; }
.mini small { color: var(--fg2); font-size: 12px; }
.mini__bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 1px; background: var(--fill); overflow: hidden; }
.mini__bar i, .full__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
html[dir="rtl"] .mini__bar i, html[dir="rtl"] .full__bar i { transform-origin: 100% 50%; }
.pp { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; transition: transform 160ms var(--ease-out); }
.pp:active, .pp.is-pressed { transform: scale(.86); }
.pp svg { position: absolute; width: 22px; height: 22px; fill: currentColor; transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.pp .ic-pause { opacity: 0; transform: scale(.4) rotate(-90deg); }
.is-playing-audio .pp .ic-play { opacity: 0; transform: scale(.4) rotate(90deg); }
.is-playing-audio .pp .ic-pause { opacity: 1; transform: none; }
.full { position: absolute; inset: 0; z-index: 58; color: #fff; overflow: hidden; touch-action: none; }
.full__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.4) brightness(.55); transform: scale(1.2); }
.full__grab { position: absolute; top: 46px; left: 50%; z-index: 2; width: 80px; height: 24px; margin-left: -40px; padding: 0; border: 0; background: none; cursor: pointer; }
.full__grab::before { content: ''; position: absolute; top: 9px; left: 20px; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.full__coverwrap { position: absolute; left: 31px; top: 90px; width: 220px; height: 220px; transform-origin: 0 0; }
.full__cover { width: 220px; height: 220px; border-radius: 14px; object-fit: cover; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); transition: transform 500ms var(--ease-out); }
.c-mp:not(.is-playing-audio) .full.is-open .full__cover { transform: scale(.86); }
.full__in { position: absolute; left: 22px; right: 22px; top: 336px; }
.full__in > * { opacity: 0; transform: translateY(12px); transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out); }
.full.is-open .full__in > * { opacity: 1; transform: none; }
.full.is-open .full__in > :nth-child(2) { transition-delay: 40ms; }
.full.is-open .full__in > :nth-child(3) { transition-delay: 80ms; }
.full.is-open .full__in > :nth-child(4) { transition-delay: 120ms; }
.full__in b { display: block; font-size: 20px; }
.full__in small { color: rgba(255, 255, 255, .65); font-size: 14px; }
.full__bar { position: relative; height: 4px; margin-top: 22px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.full__bar i { background: #fff; }
.full__times { display: flex; justify-content: space-between; margin-top: 6px; direction: ltr; font-size: 11px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.full__ctrls { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 18px; direction: ltr; }
.full__ctrls .pp { width: 64px; height: 64px; color: #fff; }
.full__ctrls .pp svg { width: 40px; height: 40px; }
.skip { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; transition: transform 160ms var(--ease-out); }
.skip:active, .skip.is-pressed { transform: scale(.86); }
.skip svg { width: 30px; height: 30px; fill: currentColor; }

/* 12 onboarding */
.c-ob .track { position: absolute; inset: 0; direction: ltr; touch-action: pan-y; cursor: grab; }
.c-ob .pg { position: absolute; top: 0; width: 282px; height: 100%; overflow: hidden; }
.c-ob .pg .art { position: absolute; left: -60px; right: -60px; top: 0; height: 372px; }
.c-ob .pg .art img { width: 100%; height: 100%; object-fit: cover; }
.c-ob .pg .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), transparent 30%, transparent 60%, var(--bg)); }
.c-ob .pg .txt { position: absolute; left: 24px; right: 24px; top: 372px; direction: inherit; }
html[dir="rtl"] .c-ob .pg .txt { direction: rtl; }
.c-ob .pg h5 { margin: 0; font-size: 25px; line-height: 1.2; }
.c-ob .pg p { margin: 8px 0 0; color: var(--fg2); font-size: 14px; }
.c-ob .dots { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; justify-content: center; gap: 8px; direction: ltr; }
.c-ob .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--fill); }
.c-ob .dots .act { position: absolute; top: 0; left: 50%; width: 24px; height: 8px; margin-left: -20px; border-radius: 4px; background: var(--tint); }
.c-ob .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }
.c-ob .nextbtn { position: relative; overflow: hidden; }
.c-ob .nextbtn span { position: absolute; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.c-ob .nextbtn span + span { opacity: 0; transform: translateY(60%); }
.c-ob .nextbtn.is-last span:first-child { opacity: 0; transform: translateY(-60%); }
.c-ob .nextbtn.is-last span + span { opacity: 1; transform: none; }

/* 13 bottom sheet */
.c-sheet .under { position: absolute; inset: 0; border-radius: 43px; overflow: hidden; background: var(--bg); transform-origin: 50% 100%; will-change: transform; }
.c-sheet .place { position: relative; height: 380px; }
.c-sheet .place img { width: 100%; height: 100%; object-fit: cover; }
.c-sheet .place::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .3), transparent 30%, transparent 55%, var(--bg)); }
.c-sheet .pinfo { padding: 0 18px; margin-top: -40px; position: relative; }
.c-sheet .pinfo h5 { margin: 0; font-size: 24px; }
.c-sheet .pinfo p { margin: 2px 0 14px; color: var(--fg2); }
.c-sheet .dim { position: absolute; inset: 0; z-index: 10; background: #000; opacity: 0; pointer-events: none; }
.c-sheet .dim.on { pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: 20; border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .5); touch-action: none; will-change: transform; }
.sheet__grab { width: 38px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: var(--fg3); }
.sheet h6 { margin: 12px 18px 12px; font-size: 16px; }
.sheet .people { display: flex; justify-content: space-between; padding: 0 18px; }
.sheet .people div { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--fg2); }
.sheet .people img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sheet .apps { display: flex; justify-content: space-between; padding: 16px 18px; }
.sheet .apps div { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--fg2); }
.sheet .apps i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-style: normal; font-weight: 800; color: #fff; font-size: 18px; }
.sheet .acts { margin: 0 14px; border-radius: 12px; background: var(--card2); }
.sheet .acts .cell + .cell::before { background: var(--sep); }

/* 14 swipe cards */
.c-cards .deck { position: absolute; left: 16px; right: 16px; top: 100px; height: 390px; }
.tcard { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #111; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); touch-action: none; cursor: grab; will-change: transform; transform-origin: 50% 90%; }
.tcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tcard .meta { position: absolute; inset: auto 0 0; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.tcard .meta b { display: block; font-size: 24px; line-height: 1.15; }
.tcard .meta small { opacity: .8; }
.stamp { position: absolute; top: 24px; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-size: 22px; font-weight: 800; letter-spacing: .04em; opacity: 0; }
.stamp.yes { left: 18px; color: #30d158; border-color: #30d158; transform: rotate(-14deg); }
.stamp.no { right: 18px; color: #ff453a; border-color: #ff453a; transform: rotate(14deg); }
.c-cards .ctl { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 22px; direction: ltr; }
.c-cards .ctl button { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); cursor: pointer; transition: transform 160ms var(--ease-out); }
.c-cards .ctl button:active, .c-cards .ctl button.is-pressed { transform: scale(.88); }
.c-cards .ctl svg { width: 24px; height: 24px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-cards .ctl .n svg { stroke: #ff453a; }
.c-cards .ctl .y svg { stroke: #30d158; fill: #30d158; }
.c-cards .empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--fg2); }
.c-cards .empty button { border: 0; background: var(--fill); color: var(--fg); padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* 15 inbox swipe */
.c-inbox .rows { margin: 0; }
.rw { position: relative; overflow: hidden; transition: height 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.rw + .rw::before { content: ''; position: absolute; top: 0; inset-inline: 66px 0; z-index: 2; height: .5px; background: var(--sep); }
.rw__act { visibility: hidden; position: absolute; inset: 0; direction: ltr; display: flex; align-items: center; justify-content: flex-start; padding: 0 22px; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }
.rw.is-swiping .rw__act { visibility: visible; }
.rw__act.to-r { justify-content: flex-end; }
.rw__act.is-commit { background: var(--tint); color: #04210f; }
.rw__act span { display: grid; justify-items: center; gap: 2px; transition: transform 260ms var(--spring); }
.rw__act.is-commit span { transform: scale(1.18); }
.rw__act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; background: var(--bg); touch-action: pan-y; cursor: grab; will-change: transform; }
.row .ava { width: 40px; height: 40px; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 14.5px; }
.row .t span { display: block; font-size: 13px; }
.row .t small { display: block; color: var(--fg2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row time { color: var(--fg2); font-size: 12px; }
.row.enter { opacity: 0; transform: translateY(10px); }
.row.entering { transition: opacity 320ms var(--ease-out), transform 360ms var(--ease-out); }
.c-inbox .empty { padding: 120px 20px; text-align: center; color: var(--fg2); }

/* 16 tilt card */
.c-tilt .wallet { position: absolute; left: 0; right: 0; top: 120px; display: grid; justify-items: center; perspective: 700px; }
.paycard { position: relative; width: 252px; height: 159px; border-radius: 16px; overflow: hidden; transform-style: preserve-3d; will-change: transform; touch-action: none; cursor: pointer;
  background: radial-gradient(120% 140% at 0% 0%, #2f3a33 0%, #101512 55%, #050706 100%); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; }
.paycard__glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; pointer-events: none; }
.paycard__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(34, 197, 94, .25) 45%, rgba(255, 255, 255, .18) 50%, transparent 62%); background-size: 250% 100%; background-position: var(--sx, 50%) 0; mix-blend-mode: screen; pointer-events: none; }
.paycard__logo { position: absolute; top: 16px; left: 18px; font-weight: 800; letter-spacing: .14em; font-size: 15px; direction: ltr; }
.paycard__logo i { color: #22c55e; font-style: normal; }
.paycard__chip { position: absolute; top: 56px; left: 18px; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #d9c27a, #a8893f); }
.paycard__num { position: absolute; left: 18px; bottom: 34px; direction: ltr; font-family: var(--f-mono); font-size: 14px; letter-spacing: .12em; }
.paycard__name { position: absolute; left: 18px; bottom: 14px; direction: ltr; font-size: 10.5px; letter-spacing: .12em; opacity: .75; }
.paycard__nfc { position: absolute; top: 14px; right: 16px; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.c-tilt .hint { margin-top: 26px; color: var(--fg2); font-size: 13px; text-align: center; }
.c-tilt .rings { position: absolute; left: 50%; top: 240px; width: 0; height: 0; }
.c-tilt .rings i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--tint); opacity: 0; }
.c-tilt.is-paying .rings i { animation: ping 1.4s var(--ease-out) infinite; }
.c-tilt.is-paying .rings i:nth-child(2) { animation-delay: .45s; }
.c-tilt.is-paying .rings i:nth-child(3) { animation-delay: .9s; }
@keyframes ping { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
.c-tilt .done { position: absolute; left: 0; right: 0; top: 330px; display: grid; justify-items: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.c-tilt.is-paid .done { opacity: 1; transform: none; }
.c-tilt.is-paid .done .check path { stroke-dashoffset: 0; }
.c-tilt .done i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: #04210f; }
.c-tilt .done i .check { width: 28px; height: 28px; }
.c-tilt .done b { font-size: 17px; }
.c-tilt.is-paid .hint, .c-tilt.is-paying .hint { opacity: 0; }
.c-tilt .hint { transition: opacity 200ms ease; }
.c-tilt .foot { position: absolute; left: 16px; right: 16px; bottom: 30px; }

/* 17 email field */
.c-mail .navt { padding-bottom: 4px; }
.c-mail form { padding: 0 16px; }
.fld { position: relative; margin-top: 16px; }
.fld__box { position: relative; height: 56px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); transition: box-shadow 200ms ease; }
.fld.is-focus .fld__box { box-shadow: inset 0 0 0 2px var(--fg3); }
.fld.is-invalid .fld__box { box-shadow: inset 0 0 0 2px var(--red); }
.fld.is-valid .fld__box { box-shadow: inset 0 0 0 2px var(--tint); }
.fld input { position: absolute; inset: 0; width: 100%; padding: 22px 14px 6px; padding-inline-end: 42px; border: 0; background: transparent; outline: none; color: var(--fg); font: inherit; font-size: 16px; direction: ltr; text-align: left; }
html[dir="rtl"] .fld input { text-align: right; }
.fld label { position: absolute; top: 18px; inset-inline-start: 14px; color: var(--fg2); font-size: 16px; pointer-events: none; transform-origin: right top; transition: transform 200ms var(--ease-out), color 200ms ease; }
html[dir="ltr"] .fld label { transform-origin: left top; }
.fld.is-focus label, .fld.has-value label { transform: translateY(-11px) scale(.76); }
.fld.is-invalid label { color: var(--red); }
.fld .check { position: absolute; top: 19px; inset-inline-end: 14px; color: var(--tint); }
.msg { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.msg > div { overflow: hidden; }
.msg p { margin: 0; padding-top: 8px; color: var(--red); font-size: 12.5px; }
.fld.is-invalid .msg { grid-template-rows: 1fr; opacity: 1; }
.fld:not([data-err="at"]) .err-at, .fld[data-err="at"] .err-domain { display: none; }
.c-mail .btn { margin-top: 16px; }
.c-mail .note { margin-top: 12px; color: var(--fg2); font-size: 12.5px; text-align: center; }
.c-mail .sent { position: absolute; inset: 46px 0 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); }
.c-mail .sent i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: #04210f; transform: scale(.6); transition: transform 500ms var(--spring); }
.c-mail .sent i .check { width: 30px; height: 30px; }
.c-mail.is-sent .sent { opacity: 1; pointer-events: auto; }
.c-mail.is-sent .sent i { transform: none; }
.sent.is-checked .check path { stroke-dashoffset: 0; }
.c-mail .sent b { font-size: 19px; }
.c-mail .sent small { color: var(--fg2); }

/* 18 OTP */
.c-otp .navt { text-align: center; padding-top: 28px; }
.c-otp .navt p { max-width: 220px; margin: 6px auto 0; }
.otp { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 26px; direction: ltr; }
.otp input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; caret-color: transparent; }
.otp__box { position: relative; display: grid; place-items: center; width: 38px; height: 50px; border-radius: 12px; background: var(--card); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 250ms ease, color 250ms ease; }
.otp__box span { display: block; }
.otp__box.is-ok { background: var(--tint); color: #04210f; }
.otp__box.is-bad { background: rgba(255, 69, 58, .2); color: var(--red); }
.otp__ring { position: absolute; top: 0; left: 0; width: 38px; height: 50px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--fg); pointer-events: none; transition: transform var(--spring-ms) var(--spring), opacity 200ms ease; }
.otp__caret { position: absolute; width: 2px; height: 22px; border-radius: 1px; background: var(--tint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.c-otp .msg2 { height: 20px; margin-top: 14px; text-align: center; font-size: 13px; color: var(--red); opacity: 0; transition: opacity 200ms ease; }
.c-otp .msg2.on { opacity: 1; }
.c-otp .ok { position: absolute; left: 0; right: 0; top: 330px; display: grid; justify-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.c-otp.is-verified .ok { opacity: 1; transform: none; }
.c-otp .ok b { font-size: 17px; }
.c-otp .ok small { color: var(--fg2); }
.c-otp .keys { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 8px 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--card2); direction: ltr; transition: transform 300ms var(--ease-drawer); }
.c-otp.is-verified .keys { transform: translateY(100%); }
.c-otp .keys button { height: 40px; border: 0; border-radius: 8px; background: var(--card); color: var(--fg); font-size: 20px; cursor: pointer; transition: background-color 120ms ease; }
.c-otp .keys button.is-pressed, .c-otp .keys button:active { background: var(--fill); }

/* 19 dashboard */
.c-dash .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
.c-dash .kpi { padding: 12px; border-radius: 16px; background: var(--card); }
.c-dash .kpi span { display: block; color: var(--fg2); font-size: 12px; }
.c-dash .kpi b { display: block; font-size: 24px; line-height: 1.25; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.delta { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; direction: ltr; color: var(--tint); background: rgba(48, 209, 88, .14); opacity: 0; transform: translateY(4px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.delta.down { color: var(--red); background: rgba(255, 69, 58, .14); }
.delta.on { opacity: 1; transform: none; }
.c-dash .chart { position: relative; height: 170px; margin: 10px 14px 0; padding: 14px 12px 10px; border-radius: 16px; background: var(--card); touch-action: none; }
.c-dash .chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-dash .line { fill: none; stroke: var(--tint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-dash .area { fill: url(#dashFill); }
.c-dash .xh { position: absolute; top: 14px; bottom: 10px; left: 0; width: 1px; background: var(--fg3); opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.c-dash .xdot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 3px var(--card); opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.c-dash .xtip { position: absolute; left: 0; top: -10px; padding: 3px 8px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; direction: ltr; white-space: nowrap; opacity: 0; transition: opacity 150ms ease; pointer-events: none; font-variant-numeric: tabular-nums; }
.c-dash .chart.is-scrub .xh, .c-dash .chart.is-scrub .xdot, .c-dash .chart.is-scrub .xtip { opacity: 1; }
.c-dash .bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin: 10px 14px 0; padding: 12px; border-radius: 16px; background: var(--card); direction: ltr; }
.c-dash .bar { flex: 1; height: 100%; border-radius: 5px 5px 3px 3px; background: var(--tint); transform-origin: 50% 100%; transform: scaleY(var(--h, .5)); transition: transform 600ms var(--ease-out); }
.c-dash .bar:nth-child(odd) { opacity: .5; }
.c-dash.is-zero .bar { transform: scaleY(0); }

/* 20 AI streaming answer */
.c-ai .msgs { position: absolute; inset: 92px 0 96px; overflow: hidden; padding: 0 14px; }
.c-ai .msgs__in { display: flex; flex-direction: column; gap: 12px; will-change: transform; transition: transform 400ms var(--ease-out); }
.bubble-u { align-self: flex-end; max-width: 80%; padding: 9px 13px; border-radius: 18px; background: var(--tint); color: #04210f; font-size: 14px; }
.ai-ans { font-size: 14px; line-height: 1.6; }
.ai-ans .w { display: inline; opacity: 0; filter: blur(5px); transition: opacity 360ms var(--ease-out), filter 360ms var(--ease-out); }
.ai-ans .w.in { opacity: 1; filter: none; }
.ai-ans ol { margin: 6px 0 0; padding-inline-start: 18px; }
.ai-ans li { margin: 3px 0; }
.thinking { display: inline-block; font-size: 14px; font-weight: 600; color: transparent; background: linear-gradient(90deg, var(--fg3) 0%, var(--fg3) 35%, var(--fg) 50%, var(--fg3) 65%, var(--fg3) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: think 1.6s linear infinite; }
@keyframes think { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.ai-tools { display: flex; gap: 6px; margin-top: 8px; opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.ai-tools.on { opacity: 1; transform: none; }
.ai-tools span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--fill); }
.ai-tools svg { width: 15px; height: 15px; fill: none; stroke: var(--fg2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer { position: absolute; left: 10px; right: 10px; bottom: 30px; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 .5px var(--sep); }
html[dir="rtl"] .composer { padding: 6px 14px 6px 6px; }
.composer__txt { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; outline: none; background: none; font: inherit; font-size: 14px; color: var(--fg); }
.composer__txt::placeholder { color: var(--fg3); }
.composer__send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--fill); color: var(--fg3); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.composer__send.is-ready { background: var(--tint); color: #04210f; }
.composer__send:active, .composer__send.is-pressed { transform: scale(.86); }
.composer__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-ai .navbar { justify-content: center; }
.c-ai .navbar b { display: flex; align-items: center; gap: 6px; }
.c-ai .navbar b i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }

/* ---------- reduced motion: keep the fades, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  .row.enter, .c-tabs .page, .delta, .full__in > *, .c-hold .gone, .c-tilt .done, .c-otp .ok { transform: none !important; }
  .sk::after, .thinking { animation: none; }
  .savebtn .sb { transform: none !important; filter: none !important; }
  .ai-ans .w { filter: none; }
  .c-tilt.is-paying .rings i { animation: none; }
}

/* ===================================================================== parts */
.part { margin: 64px 4px 22px; padding-top: 28px; border-top: 1px solid var(--line); }
.part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.part span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.part h2 { margin: 6px 0 4px; color: var(--paper); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.part p { margin: 0; max-width: 70ch; }
/* 6 web demos: one per row inside the post's column, 2 (3 rows of 2) on a wide page. */
.demos.demos--web { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .demos.demos--web { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demos--web .stage { height: 500px; }
.demos.demos--site { grid-template-columns: minmax(0, 1fr); }
.demos--site .stage { height: 820px; }
html.solo .demos--web .stage, html.solo .demos--site .stage { height: auto; }

/* ===================================================================== browser window */
.win {
  --w-bg: #f7f6f2; --w-fg: #141414; --w-mute: #6b6862; --w-card: #fff; --w-line: rgba(17, 17, 17, .09); --w-accent: #16a34a; --w-accent-ink: #052e16;
  position: relative; border-radius: 14px; overflow: hidden; background: var(--w-bg); color: var(--w-fg); font-size: 14px; line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -36px rgba(0, 0, 0, .8);
}
[data-theme="light"] .win { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 80px -40px rgba(0, 0, 0, .35); }
.win__bar { position: relative; z-index: 30; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #e9e7e1; border-bottom: 1px solid var(--w-line); direction: ltr; }
.win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win__url { margin: 0 auto; padding: 3px 40px; border-radius: 7px; background: #fff; color: #6b6862; font-size: 11.5px; }
.win__page { position: absolute; top: 36px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.wlogo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.wlogo i { width: 9px; height: 9px; border-radius: 50%; background: var(--w-accent); }
.wbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--w-fg); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.wbtn:active, .wbtn.is-pressed { transform: scale(.97); }
.wbtn--g { background: var(--w-accent); color: #fff; }
.wbtn--o { background: transparent; color: var(--w-fg); box-shadow: inset 0 0 0 1px var(--w-line); }
.wbtn .arr { display: inline-block; transition: transform 200ms var(--ease-out); }
.wbtn.is-hover .arr { transform: translateX(calc(4px * var(--dir, 1))); }
html[dir="rtl"] .wbtn { --dir: -1; }
.wbtn.is-hover { background: #000; }
.wbtn--g.is-hover { background: #15803d; }
@media (hover: hover) and (pointer: fine) { .wbtn:hover .arr { transform: translateX(calc(4px * var(--dir, 1))); } }

/* W1 · nav that hides on scroll */
.w-nav .scroller, .w-site .scroller { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.w-nav .scroller::-webkit-scrollbar, .w-site .scroller::-webkit-scrollbar { display: none; }
.wnav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 24px; transition: transform 300ms var(--ease-out), background-color 250ms ease, box-shadow 250ms ease, height 250ms var(--ease-out); }
.wnav.is-compact { height: 48px; background: rgba(247, 246, 242, .82); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 1px 0 var(--w-line), 0 8px 24px -16px rgba(0, 0, 0, .25); }
.wnav.is-hidden { transform: translateY(-100%); }
.wnav__links { position: relative; display: flex; gap: 20px; margin-inline-start: 12px; }
.wnav__links a { position: relative; color: var(--w-mute); font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 6px 0; transition: color 200ms ease; }
.wnav__links a.is-on { color: var(--w-fg); }
.wnav__ink { position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; border-radius: 1px; background: var(--w-accent); transform-origin: 0 0; transition: transform 320ms var(--ease-in-out); }
.wnav .wbtn { margin-inline-start: auto; height: 32px; font-size: 12.5px; }
.w-nav .sec { padding: 78px 24px 26px; min-height: 300px; border-bottom: 1px solid var(--w-line); }
.w-nav .sec h4 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.w-nav .sec p { margin: 0 0 14px; color: var(--w-mute); max-width: 52ch; }
.w-nav .sec .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-nav .sec .row3 img { width: 100%; height: 110px; border-radius: 12px; object-fit: cover; }

/* W2 · morphing dropdown */
.w-mm .mnav { position: relative; z-index: 10; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px; border-bottom: 1px solid var(--w-line); background: var(--w-bg); }
.w-mm .mnav .wlogo { margin-inline-end: 16px; }
.mtrig { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--w-mute); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.mtrig.is-on { color: var(--w-fg); background: rgba(0, 0, 0, .05); }
.mtrig svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform 200ms var(--ease-out); }
.mtrig.is-on svg { transform: rotate(180deg); }
.mm { position: absolute; top: 64px; left: 0; right: 0; height: 300px; z-index: 9; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.mm.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mm__bg { position: absolute; inset: 0; background: var(--w-card); clip-path: inset(0 0 0 0 round 14px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.mm.is-moving .mm__bg { transition: clip-path 300ms var(--ease-in-out); }
.mm__c { position: absolute; top: 0; padding: 14px; opacity: 0; transform: translateX(var(--from, 0)); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); pointer-events: none; }
.mm__c.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mm-grid { display: grid; grid-template-columns: repeat(2, 190px); gap: 4px; }
.mm-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; transition: background-color 150ms ease; }
.mm-item.is-hover, .mm-item:hover { background: rgba(0, 0, 0, .045); }
.mm-item i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-style: normal; color: #fff; font-weight: 800; }
.mm-item b { display: block; font-size: 13px; }
.mm-item small { display: block; color: var(--w-mute); font-size: 11.5px; line-height: 1.35; }
.mm-dest { display: grid; gap: 4px; width: 280px; }
.mm-dest .mm-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.mm-res { display: flex; gap: 14px; }
.mm-res ul { margin: 0; padding: 6px 4px; list-style: none; width: 130px; }
.mm-res li { padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.mm-res li small { display: block; color: var(--w-mute); font-weight: 400; font-size: 11.5px; }
.mm-res figure { margin: 0; width: 170px; }
.mm-res figure img { width: 170px; height: 104px; border-radius: 10px; object-fit: cover; }
.mm-res figure figcaption { margin-top: 6px; font-size: 12px; font-weight: 700; }
.w-mm .hero { padding: 72px 30px 0; text-align: center; }
.w-mm .hero h4 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
.w-mm .hero p { margin: 10px auto 0; max-width: 46ch; color: var(--w-mute); }

/* W3 · pricing */
.w-price { padding: 22px 26px; }
.w-price h4 { margin: 0; text-align: center; font-size: 24px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 280px; margin: 14px auto 18px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .06); }
.seg button { position: relative; z-index: 1; height: 32px; border: 0; background: none; color: var(--w-mute); font-weight: 700; font-size: 13px; cursor: pointer; transition: color 200ms ease; }
.seg button[aria-pressed="true"] { color: var(--w-fg); }
.seg button em { font-style: normal; color: var(--w-accent); font-size: 11px; }
.seg__pill { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform var(--spring-ms) var(--spring); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { position: relative; padding: 16px; border-radius: 16px; background: var(--w-card); box-shadow: 0 0 0 1px var(--w-line); transition: transform 250ms var(--ease-out), box-shadow 250ms ease; }
.plan.is-hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--w-line), 0 18px 30px -18px rgba(0, 0, 0, .3); }
.plan--pop { box-shadow: 0 0 0 2px var(--w-accent); }
.plan--pop.is-hover { box-shadow: 0 0 0 2px var(--w-accent), 0 18px 30px -18px rgba(22, 163, 74, .5); }
.plan__badge { position: absolute; top: -10px; inset-inline-start: 14px; padding: 1px 9px; border-radius: 999px; background: var(--w-accent); color: #fff; font-size: 11px; font-weight: 700; }
.plan b { font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 2px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .price { justify-content: flex-start; }
.price .cur { font-size: 20px; font-weight: 700; }
.odo { display: inline-flex; height: 40px; overflow: hidden; font-size: 34px; font-weight: 800; line-height: 40px; font-variant-numeric: tabular-nums; }
.odo span { display: flex; flex-direction: column; transition: transform 600ms var(--ease-out); }
.odo span i { display: block; height: 40px; font-style: normal; }
.price small { color: var(--w-mute); font-size: 12px; }
.plan .bill { height: 18px; color: var(--w-mute); font-size: 11.5px; transition: opacity 250ms ease; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.plan li { padding: 3px 0; }
.plan li::before { content: '✓  '; color: var(--w-accent); font-weight: 800; }

/* W4 · spotlight bento */
.w-spot { padding: 22px; }
.w-spot h4 { margin: 0 0 14px; font-size: 22px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 132px; gap: 10px; }
.bento > div { position: relative; padding: 16px; border-radius: 16px; background: #141414; color: #ecebe7; overflow: hidden; transition: transform 250ms var(--ease-out); }
.bento > div.wide { grid-column: span 2; }
.bento > div::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--x, -999px) var(--y, -999px), rgba(74, 222, 128, .9), transparent 60%), rgba(255, 255, 255, .08); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.bento > div::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--x, -999px) var(--y, -999px), rgba(34, 197, 94, .14), transparent 60%); opacity: var(--glow, 0); transition: opacity 300ms ease; pointer-events: none; }
.bento i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(34, 197, 94, .15); color: #4ade80; font-style: normal; }
.bento i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bento b { display: block; margin-top: 10px; font-size: 15px; }
.bento small { display: block; color: #9c9890; font-size: 12px; max-width: 34ch; }
.bento img { position: absolute; inset-inline-end: -10px; bottom: -14px; width: 46%; height: 100%; object-fit: cover; border-radius: 12px; opacity: .85; transform: rotate(-4deg); }

/* W5 · FAQ */
.w-faq { padding: 22px 30px; }
.w-faq h4 { margin: 0 0 12px; font-size: 24px; }
.qa { border-bottom: 1px solid var(--w-line); }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 2px; border: 0; background: none; text-align: start; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.pm { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .06); transition: background-color 200ms ease; }
.pm::before, .pm::after { content: ''; position: absolute; top: 10px; left: 6px; width: 10px; height: 2px; border-radius: 1px; background: var(--w-fg); transition: transform 260ms var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.qa.is-open .pm { background: var(--w-accent); }
.qa.is-open .pm::before { background: #fff; }
.qa.is-open .pm::after { transform: rotate(0deg) scaleX(0); background: #fff; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 2px 14px; color: var(--w-mute); font-size: 13.5px; opacity: 0; transform: translateY(-4px); transition: opacity 220ms ease, transform 280ms var(--ease-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: 60ms; }

/* W6 · marquee */
.w-mq { padding: 22px 0; }
.w-mq h4 { margin: 0 0 4px; padding: 0 26px; font-size: 22px; }
.w-mq > p { margin: 0 0 14px; padding: 0 26px; color: var(--w-mute); font-size: 13px; }
.mq { overflow: hidden; padding: 6px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.mq__track { display: flex; gap: 12px; width: max-content; }
.quote { width: 250px; padding: 14px; border-radius: 14px; background: var(--w-card); box-shadow: 0 0 0 1px var(--w-line); direction: rtl; text-align: start; }
html[dir="ltr"] .quote { direction: ltr; }
.quote p { margin: 0 0 10px; font-size: 13px; }
.quote div { display: flex; align-items: center; gap: 8px; }
.quote img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.quote b { font-size: 12.5px; }
.quote small { display: block; color: var(--w-mute); font-size: 11px; }

/* ===================================================================== the full site */
.w-site .prog { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: 3px; background: var(--w-accent); transform-origin: 100% 50%; transform: scaleX(0); }
html[dir="ltr"] .w-site .prog { transform-origin: 0 50%; }
.snav { position: absolute; top: 0; left: 0; right: 0; z-index: 15; display: flex; align-items: center; gap: 26px; height: 64px; padding: 0 40px; transition: height 250ms var(--ease-out), background-color 250ms ease, box-shadow 250ms ease; }
.snav.is-compact { height: 52px; background: rgba(247, 246, 242, .85); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 1px 0 var(--w-line); }
.snav nav { display: flex; gap: 22px; color: var(--w-mute); font-size: 13.5px; font-weight: 600; }
.snav .wbtn { margin-inline-start: auto; }
.s-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 100px 40px 48px; }
.s-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(22, 163, 74, .1); color: #15803d; font-size: 12.5px; font-weight: 700; }
.s-hero h1 { margin: 16px 0 14px; font-size: 54px; line-height: 1.04; letter-spacing: -.02em; }
.s-hero h1 .ln { display: block; overflow: hidden; padding-bottom: 4px; }
.s-hero h1 .ln > span { display: block; transition: transform 800ms var(--ease-out); }
.s-hero h1 .ln:nth-child(2) > span { transition-delay: 90ms; }
.s-hero h1 em { font-style: normal; color: var(--w-accent); }
.s-hero p { margin: 0 0 22px; color: var(--w-mute); font-size: 16px; max-width: 40ch; }
.s-hero .ctas { display: flex; gap: 10px; }
.s-hero .ctas .wbtn { height: 46px; padding: 0 22px; font-size: 14.5px; }
.s-fade { transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.s-hero .pic { position: relative; height: 430px; border-radius: 26px; overflow: hidden; }
.s-hero .pic img { width: 100%; height: 118%; object-fit: cover; transition: transform 1200ms var(--ease-out), clip-path 1100ms var(--ease-out); }
.s-hero .pic .chip { position: absolute; bottom: 18px; inset-inline-start: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
.s-hero .pic .chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; transform: none !important; }
.w-site.is-pre .s-hero h1 .ln > span { transform: translateY(105%); transition: none; }
.w-site.is-pre .s-fade { opacity: 0; transform: translateY(14px); transition: none; }
.w-site.is-pre .s-hero .pic img { transform: scale(1.12); clip-path: inset(10% 10% 10% 10% round 26px); transition: none; }
.s-logos { display: flex; justify-content: space-between; align-items: center; padding: 18px 60px 36px; color: #a7a39b; font-weight: 800; font-size: 18px; letter-spacing: .04em; direction: ltr; }
.s-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 40px; padding: 30px; border-radius: 24px; background: var(--w-card); box-shadow: 0 0 0 1px var(--w-line); text-align: center; }
.s-stats b { display: block; font-size: 46px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; direction: ltr; }
.s-stats small { color: var(--w-mute); font-size: 14px; }
.s-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 70px 40px; }
.s-feat .pic { height: 400px; border-radius: 26px; overflow: hidden; }
.s-feat .pic img { width: 100%; height: 100%; object-fit: cover; }
.s-feat h3 { margin: 0 0 12px; font-size: 36px; line-height: 1.12; letter-spacing: -.01em; }
.s-feat p { margin: 0 0 16px; color: var(--w-mute); font-size: 15px; }
.s-feat ul { margin: 0; padding: 0; list-style: none; }
.s-feat li { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-weight: 600; border-bottom: 1px solid var(--w-line); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.s-feat li i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(22, 163, 74, .12); color: var(--w-accent); font-style: normal; font-weight: 800; font-size: 13px; }
.s-feat:not(.is-in) li { opacity: 0; transform: translateY(12px); }
.s-feat li:nth-child(2) { transition-delay: 80ms; }
.s-feat li:nth-child(3) { transition-delay: 160ms; }
.s-cards { padding: 10px 40px 70px; }
.s-cards h3 { margin: 0 0 18px; font-size: 32px; }
.s-cards .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dcard { border-radius: 20px; overflow: hidden; background: var(--w-card); box-shadow: 0 0 0 1px var(--w-line); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), box-shadow 300ms ease; }
.dcard .ph { height: 190px; overflow: hidden; }
.dcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.dcard div:last-child { padding: 14px 16px; }
.dcard b { display: block; font-size: 16px; }
.dcard small { color: var(--w-mute); }
.dcard.is-hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--w-line), 0 24px 40px -22px rgba(0, 0, 0, .35); }
.dcard.is-hover .ph img { transform: scale(1.06); }
.s-cards:not(.is-in) .dcard { opacity: 0; transform: translateY(24px); }
.s-cards .dcard:nth-child(2) { transition-delay: 90ms, 90ms, 0ms; }
.s-cards .dcard:nth-child(3) { transition-delay: 180ms, 180ms, 0ms; }
.s-cta { margin: 0 40px 50px; padding: 54px 40px; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, #1d6b3c, #0c2b18); color: #fff; text-align: center; }
.s-cta h3 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.01em; }
.s-cta p { margin: 0 0 22px; opacity: .8; }
.s-cta .wbtn { height: 50px; padding: 0 26px; background: #fff; color: #0c2b18; font-size: 15px; }
.s-cta .wbtn.is-hover { background: #e7f8ee; }
.site-cap { position: absolute; left: 50%; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 10px; max-width: min(760px, calc(100% - 40px)); padding: 10px 16px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -16px rgba(0, 0, 0, .6); color: var(--paper); font-size: 14px; transform: translateX(-50%); }
.site-cap b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.site-cap span { transition: opacity 200ms ease; }
.demos--site .stage { align-content: start; padding-top: 24px; }

/* the robot as a mouse pointer on web demos */
.touch.is-mouse { width: 22px; height: 22px; margin: -2px 0 0 -3px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.touch.is-mouse svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.touch-ring.is-mouse { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .w-site.is-pre .s-hero h1 .ln > span, .w-site.is-pre .s-fade, .s-feat:not(.is-in) li, .s-cards:not(.is-in) .dcard { transform: none; }
}
/* capture mode: no robot indicator in stills */
html.nodot .touch, html.nodot .touch-ring { display: none !important; }
