/* =========================================================
   MoshDev — light, quiet, precise.
   Layout: a 1200px column, right-aligned Arabic copy, one live
   product console as the hero image, alternating paper/mist bands.
   ========================================================= */

:root {
  color-scheme: light;
  /* color */
  --paper: #F6F7F9;      /* page ground, cool white */
  --mist: #EDEFF3;       /* alternate band */
  --surface: #FFFFFF;    /* cards */
  --ink: #0E1626;        /* headings, primary text */
  --ink-2: #39435A;      /* body text */
  --muted: #5B6578;      /* secondary text */
  --line: #E1E5EC;       /* hairlines */
  --line-2: #CDD3DE;
  --cobalt: #2D49F0;     /* single accent */
  --cobalt-ink: #1F37C9;
  --cobalt-soft: #ECEFFE;
  --ok: #0C7A54;  --ok-soft: #E3F4EC;
  --wait: #9A5B00; --wait-soft: #FBF0DC;
  --night: #0B1324;      /* contact band */
  --night-2: #16203A;

  /* type */
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --t-h1: clamp(36px, 4.6vw, 62px);
  --t-h2: clamp(30px, 3.4vw, 44px);
  --t-h3: clamp(19px, 1.6vw, 22px);
  --t-lead: clamp(17px, 1.35vw, 19px);

  --wrap: 1200px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14,22,38,.04), 0 8px 24px -12px rgba(14,22,38,.10);
  --shadow-lg: 0 2px 4px rgba(14,22,38,.04), 0 30px 60px -24px rgba(14,22,38,.22);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); font-weight: 500; text-wrap: balance; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-size: .92em; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 48px); margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; top: -48px; right: 16px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding-inline: 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 15.5px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(-3px); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 14.5px; }
.btn-lg { height: 54px; padding-inline: 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px -8px rgba(14,22,38,.5); }
.btn-primary:hover { background: var(--cobalt); box-shadow: 0 8px 20px -8px rgba(45,73,240,.55); }
.btn-primary:active { transform: translateY(1px); }
.btn-quiet { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(246,247,249,.9); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246,247,249,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--ink-2); border-radius: 8px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgba(14,22,38,.04); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--cobalt); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; right: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.drawer { border-top: 1px solid var(--line); background: var(--paper); }
.drawer nav { display: flex; flex-direction: column; padding-block: 12px 20px; }
.drawer nav a:not(.btn) { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 6vw, 88px) clamp(72px, 8vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14,22,38,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 600px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { margin-top: 28px; font-size: var(--t-h1); line-height: 1.22; letter-spacing: -.015em; font-weight: 500; }
.h1-soft { color: var(--cobalt); }
.lead { margin-top: 24px; max-width: 640px; font-size: var(--t-lead); line-height: 1.85; color: var(--ink-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Console */
.console {
  position: relative; margin-bottom: 176px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.console-bar { border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.console-tabs { display: flex; gap: 4px; font-size: 13.5px; color: var(--muted); overflow: hidden; }
.console-tabs span { padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.console-tabs .is-on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(14,22,38,.05); }
.console-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ok); font-weight: 500; }
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }

.console-grid { display: block; }
.pane { padding: 22px; min-width: 0; }
.pane-kpi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 24px; align-items: end; border-bottom: 1px solid var(--line); }
.pane-kpi .spark { margin-top: 0; }
.pane-kpi .kpi-split { grid-column: 1 / -1; margin-top: 8px; }
.pane-feed { padding-bottom: 112px; }
.pane-chat {
  position: absolute; left: -40px; bottom: -160px; width: 290px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.pane-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.pane-head b { font-weight: 500; color: var(--ink); font-size: 14px; }

.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { margin-top: 4px; font-family: var(--f-display); font-weight: 500; font-size: 34px; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-value span { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.kpi-value small { font-size: 15px; color: var(--muted); font-family: var(--f-body); }
.chip { display: inline-flex; align-items: center; height: 24px; padding-inline: 9px; border-radius: 6px; font-size: 12px; font-weight: 500; margin-top: 8px; }
.chip-up { background: var(--ok-soft); color: var(--ok); }
.spark { width: 100%; height: 64px; margin-top: 16px; overflow: visible; }
.spark-area { fill: var(--cobalt-soft); }
.spark-line { fill: none; stroke: var(--cobalt); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.kpi-split { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.kpi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kpi-row b { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--ink); }
.meter { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.meter i { display: block; height: 100%; width: 78%; border-radius: inherit; background: var(--ink); }
.kpi-note { font-size: 12.5px; color: var(--muted); }

.feed { display: flex; flex-direction: column; }
.feed li {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.1fr) 70px 104px; gap: 10px; align-items: center;
  padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; border-radius: 8px;
}
.feed li:last-child { border-bottom: 0; }
.feed li.is-new { animation: rowIn .7s var(--ease); background: var(--cobalt-soft); transition: background-color 1.6s ease .6s; }
.feed li.is-new.settled { background: transparent; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.feed li.flash { background: var(--ok-soft); transition: background-color 1.4s ease; }
.f-id { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; }
.f-who { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-gw { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-amt { font-family: var(--f-mono); font-size: 13px; color: var(--ink); direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.st { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-inline: 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-wait { background: var(--wait-soft); color: var(--wait); }

.thread { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.6; }
.bub { max-width: 88%; padding: 9px 12px; border-radius: 12px; }
.bub-in { align-self: flex-start; background: var(--mist); color: var(--ink); border-start-start-radius: 4px; }
.bub-out { align-self: flex-end; background: #E7F6EE; color: #0F3D2B; border-start-end-radius: 4px; }
.bub-link span { font-family: var(--f-mono); font-size: 12.5px; color: var(--cobalt-ink); text-decoration: underline; text-underline-offset: 3px; }
.bub-sys { align-self: center; max-width: none; margin-top: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--ok); background: var(--ok-soft); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bub-sys.pending { opacity: 0; transform: translateY(6px); }
.console-foot { position: absolute; right: 4px; bottom: -32px; font-size: 12px; color: var(--muted); }

/* ---------- Logos ---------- */
.logos { border-block: 1px solid var(--line); background: var(--surface); }
.logos-row { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.logos-label { flex-shrink: 0; font-size: 13.5px; color: var(--muted); }
.logos ul { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.logos li { font-family: var(--f-display); font-weight: 500; font-size: 17px; color: #7A8396; letter-spacing: -.01em; transition: color .2s; }
.logos li:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--mist); }
.sec-head { margin-bottom: clamp(36px, 4.5vw, 56px); max-width: 760px; }
.sec-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: var(--t-h2); line-height: 1.32; letter-spacing: -.01em; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--cobalt); margin-bottom: 14px; }
.eyebrow-light { color: #9DB0FF; }
.sec-lead { max-width: 420px; color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.sec-lead a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pain-tag { align-self: flex-start; font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--mist); color: var(--ink-2); margin-bottom: 8px; }
.pain h3 { font-size: var(--t-h3); line-height: 1.5; }
.pain p { color: var(--muted); font-size: 15.5px; }

/* Services */
.services { display: flex; flex-direction: column; gap: 20px; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.svc:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-kicker { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.svc h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; margin-bottom: 12px; }
.svc-text > p:not(.svc-kicker) { color: var(--ink-2); max-width: 520px; }
.ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex-shrink: 0; width: 14px; height: 8px; border-inline-start: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: translateY(-3px) rotate(-45deg) scaleX(-1); }

.flow { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.flow::before { content: ""; position: absolute; top: var(--line-top, 44px); height: var(--travel, 150px); right: 43px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 8px); }
.flow::after {
  content: ""; position: absolute; right: 39px; top: calc(var(--line-top, 44px) - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--cobalt); box-shadow: 0 0 0 4px rgba(45,73,240,.15); opacity: 0;
}
.svc.is-in .flow::after { animation: travel 3.2s var(--ease) .4s infinite; }
@keyframes travel { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 85% { opacity: 1; transform: translateY(var(--travel, 150px)); } 100% { opacity: 0; transform: translateY(var(--travel, 150px)); } }
.node {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; color: var(--ink);
}
.node::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.node-code { font-family: var(--f-mono); font-size: 13px; color: var(--cobalt-ink); background: var(--cobalt-soft); border-color: #D6DCFD; }
.node-code::before { border-color: var(--cobalt); }
.node-done { color: var(--ok); background: var(--ok-soft); border-color: #C8E8D8; font-weight: 500; }
.node-done::before { border-color: var(--ok); background: var(--ok); }

.also { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.also-label { font-size: 14.5px; color: var(--muted); margin-inline-end: 6px; }
.also-item { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 2.8vw, 34px); display: flex; flex-direction: column; gap: 16px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.case:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--cobalt-soft); color: var(--cobalt-ink); }
.case-type { font-size: 13px; color: var(--muted); }
.case h3 { font-size: var(--t-h3); line-height: 1.5; }
.case dl { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.case dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.case dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.case dt { color: var(--muted); font-size: 14px; }
.case dd { color: var(--ink-2); min-width: 0; }
.case dd.mono { text-align: right; color: var(--ink); }

.own {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); background: var(--cobalt-soft); border: 1px solid #DCE1FD;
}
.own h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.45; margin-bottom: 12px; }
.own p { color: var(--ink-2); }
.signals { background: var(--surface); border-radius: var(--radius); border: 1px solid #DCE1FD; padding: 10px 18px; }
.sig { display: grid; grid-template-columns: 82px 56px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 13px; direction: ltr; }
.sig-tag { direction: rtl; text-align: center; font-size: 12px; font-weight: 500; padding: 3px 0; border-radius: 6px; }
.sig-buy { background: var(--ok-soft); color: var(--ok); }
.sig-sell { background: #FCE9E4; color: #A63A1C; }
.sig-bar { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.sig-bar i { display: block; height: 100%; width: var(--v); background: var(--ink); border-radius: inherit; transform-origin: left; }
.own.is-in .sig-bar i { animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sig-pc { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.signals-note { padding-block: 10px 4px; font-size: 12px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 20px; right: 20px; left: 20px; height: 1px; background: var(--line-2); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 0; }
.step-n {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 500; color: var(--ink); margin-bottom: 12px;
}
.step:last-child .step-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--muted); font-size: 15.5px; }
.step-time { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--cobalt-ink); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.monogram { width: 96px; height: 96px; border-radius: 24px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 500; font-size: 52px; line-height: 1; margin-bottom: 24px; }
.about-facts > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.about-facts dt { color: var(--muted); }
.about-facts dd { color: var(--ink); text-align: left; }
.about-text h2 { font-size: var(--t-h2); line-height: 1.3; margin-bottom: 18px; }
.about-lead { font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.about-text > p:not(.eyebrow):not(.about-lead) { max-width: 600px; }
.about-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.about-links a { font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.about-links a:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.faq-side h2 { font-size: var(--t-h2); line-height: 1.3; margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.qa[open] { border-color: var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--f-display); font-weight: 500; font-size: 17.5px; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--mist); transition: background-color .2s, transform .3s var(--ease); }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .2s; }
.qa-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-ico { background: var(--ink); }
.qa[open] .qa-ico::before { background: #fff; }
.qa[open] .qa-ico::after { background: #fff; transform: translate(-50%, -50%) rotate(0deg); }
.qa p { padding: 0 22px 22px; color: var(--ink-2); max-width: 640px; }

/* Contact */
.contact { background: var(--night); color: #C9D2E6; padding-block: clamp(72px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { color: #fff; font-size: var(--t-h2); line-height: 1.32; margin-bottom: 18px; }
.contact-text > p:not(.eyebrow) { max-width: 480px; font-size: 17px; line-height: 1.85; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--night-2); }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--night-2); font-size: 15.5px; }
.contact-list span { color: #8C98B3; }
.contact-list a, .contact-list b { color: #fff; font-weight: 500; }
.contact-list a:hover { color: #9DB0FF; }

.form { background: var(--surface); color: var(--ink-2); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; color: var(--ink); font-weight: 500; padding: 0; }
.field legend { margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; height: 48px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper);
  font-size: 15.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 92px; padding-block: 12px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #AEB7C6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: var(--surface); box-shadow: 0 0 0 4px rgba(45,73,240,.12); }
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: #9AA3B2; }
.field.is-invalid input { border-color: #C2410C; box-shadow: 0 0 0 4px rgba(194,65,12,.1); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; height: 40px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all .2s var(--ease); }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.form-error { font-size: 14px; color: #B23A0C; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--night); border-top: 1px solid var(--night-2); color: #8C98B3; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 28px; }
.footer .brand { color: #fff; }
.footer .brand-mark rect { fill: #fff; }
.footer .brand-mark path { stroke: var(--night); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 14px; }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; z-index: 40;
  left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -10px rgba(14,22,38,.6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.wa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { background: var(--cobalt); }
.wa-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Reveal: elements are visible at rest; only those below the fold at load
   are hidden by JS (.await) and brought in when scrolled to. */
.reveal.await { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .pane-chat { left: 24px; }
  .svc { grid-template-columns: 1fr; gap: 28px; }
  .about, .faq, .contact-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 480px; }
  .contact .form { max-width: 620px; }
}
@media (max-width: 800px) {
  .header-cta .btn { display: none; }
  .console { margin-bottom: 0; }
  .pane-feed { padding-bottom: 22px; }
  .pane-chat { position: static; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; padding: 22px; }
  .console-foot { position: static; padding: 10px 18px; border-top: 1px solid var(--line); }
  .pains, .cases { grid-template-columns: 1fr; }
  .own { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .logos-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logos ul { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .hero-actions .btn { width: 100%; }
  .console-tabs span:nth-child(n+3) { display: none; }
  .pane { padding: 18px 16px; }
  .pane-kpi { grid-template-columns: 1fr; }
  .pane-chat { padding: 18px 16px; }
  .feed li { grid-template-columns: 48px minmax(0, 1fr) 62px 96px; gap: 8px; padding-inline: 4px; }
  .f-gw { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case dl > div { grid-template-columns: 1fr; gap: 2px; }
  .case dd.mono { text-align: right; }
  .sig { grid-template-columns: 72px 48px minmax(0, 1fr) 36px; gap: 10px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .wa-fab { width: 50px; height: 50px; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.await { opacity: 1; transform: none; }
  .bub-sys.pending { opacity: 1; transform: none; }
}

/* =========================================================
   BLOG — colourful categories, animated covers, interactive tools
   ========================================================= */
:root {
  --c-pay: #2D49F0;   --c-pay-soft: #E6EBFF;
  --c-store: #D9480F; --c-store-soft: #FFEADB;
  --c-auto: #0A7F52;  --c-auto-soft: #DCF4E8;
  --c-plan: #6741D9;  --c-plan-soft: #EEE8FF;
  --c-sub: #087F96;   --c-sub-soft: #DDF2F6;
  --c-rose: #C2255C;  --c-rose-soft: #FDE4EC;
}
[data-cat="pay"]   { --cat: var(--c-pay);   --cat-soft: var(--c-pay-soft); }
[data-cat="store"] { --cat: var(--c-store); --cat-soft: var(--c-store-soft); }
[data-cat="auto"]  { --cat: var(--c-auto);  --cat-soft: var(--c-auto-soft); }
[data-cat="plan"]  { --cat: var(--c-plan);  --cat-soft: var(--c-plan-soft); }

/* Home section head (31-style: big title with highlighted word) */
.blog-home { position: relative; overflow: hidden; }
.blog-home::before, .blog-home::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.blog-home::before { width: 320px; height: 320px; top: -120px; left: -80px; background: radial-gradient(circle, var(--c-store-soft) 0 60%, transparent 61%); }
.blog-home::after { width: 260px; height: 260px; bottom: -100px; right: -60px; background: radial-gradient(circle, var(--c-auto-soft) 0 60%, transparent 61%); }
.blog-home .wrap { position: relative; z-index: 1; }
.hl { position: relative; color: var(--cobalt); white-space: nowrap; }
.hl svg { position: absolute; inset-inline: 0; bottom: -.18em; width: 100%; height: .38em; overflow: visible; }
.hl path { fill: none; stroke: #FFB020; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.is-in .hl path, .hl.drawn path { stroke-dashoffset: 0; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14.5px; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.cat-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--ink)); }
.cat-btn:hover { transform: translateY(-2px); border-color: var(--cat, var(--ink)); }
.cat-btn[aria-pressed="true"] { background: var(--cat, var(--ink)); border-color: var(--cat, var(--ink)); color: #fff; }
.cat-btn[aria-pressed="true"]::before { background: #fff; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.post:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px color-mix(in srgb, var(--cat) 55%, transparent); border-color: color-mix(in srgb, var(--cat) 35%, var(--line)); }
.post-cover { position: relative; aspect-ratio: 16 / 10; background: var(--cat-soft); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-cover img { transform: scale(1.06); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.post-cat { display: inline-flex; align-items: center; height: 26px; padding-inline: 10px; border-radius: 7px; background: var(--cat-soft); color: var(--cat); font-weight: 500; font-size: 13px; }
.post h3 { font-size: 19px; line-height: 1.55; }
.post h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post h3 a:focus-visible { outline: none; }
.post:has(a:focus-visible) { outline: 2px solid var(--cat); outline-offset: 3px; }
.post p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.post-go {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--cat);
}
.post-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.post:hover .post-go svg { transform: translate(-4px, -4px); }
.post.is-hidden { display: none; }
.posts-more { margin-top: 36px; display: flex; justify-content: center; }

/* Featured post (blog index) */
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.post-featured .post-cover { aspect-ratio: auto; min-height: 340px; }
.post-featured .post-body { padding: clamp(24px, 3.4vw, 44px); justify-content: center; gap: 14px; }
.post-featured h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; }
.post-featured p { font-size: 16.5px; }

/* Blog index hero */
.blog-hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); overflow: hidden; }
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; letter-spacing: -.015em; max-width: 820px; }
.blog-hero .lead { margin-top: 18px; }
.blob { position: absolute; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; opacity: .9; animation: morph 14s ease-in-out infinite; pointer-events: none; }
.blob-a { width: 260px; height: 260px; background: var(--c-store-soft); top: 30px; left: 6%; }
.blob-b { width: 180px; height: 180px; background: var(--c-auto-soft); top: 200px; left: 24%; animation-delay: -4s; }
.blob-c { width: 120px; height: 120px; background: var(--c-plan-soft); top: 60px; left: 34%; animation-delay: -8s; }
@keyframes morph { 0%,100% { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; transform: translate(0,0) rotate(0); } 50% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; transform: translate(14px,-12px) rotate(8deg); } }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.blog-tools .cat-filter { margin: 0; }
.search { position: relative; width: min(100%, 320px); }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding-inline: 42px 14px; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(45,73,240,.12); }
.search svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.empty { display: none; padding: 48px 0; text-align: center; color: var(--muted); }
.empty.show { display: block; }

/* Article page */
.read-bar { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 70; background: transparent; }
.read-bar i { display: block; height: 100%; width: 100%; background: var(--cat); transform-origin: right; transform: scaleX(0); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.art-hero { padding-block: clamp(36px, 5vw, 64px) 0; }
.art-head { max-width: 820px; }
.art-head h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 50px); line-height: 1.35; letter-spacing: -.01em; }
.art-dek { margin-top: 16px; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.85; }
.art-by { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; color: var(--muted); }
.art-by b { color: var(--ink); font-weight: 500; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 17px; }
.art-cover { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden; background: var(--cat-soft); aspect-ratio: 16 / 8; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

.art-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 104px); align-items: start; }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 20px; }
.toc-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.toc-box h2 { font-size: 15px; margin-bottom: 10px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; counter-reset: t; }
.toc li a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); border-inline-start: 2px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.toc li a:hover { color: var(--ink); background: var(--paper); }
.toc li a.is-active { color: var(--cat); background: var(--cat-soft); border-inline-start-color: var(--cat); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.share a:hover, .share button:hover { border-color: var(--cat); background: var(--cat-soft); }

.prose { max-width: 760px; font-size: 17.5px; line-height: 2; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.45; scroll-margin-top: 100px; }
.prose h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--cat); margin-bottom: 14px; }
.prose h3 { margin-top: 1.6em; font-size: 20px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cat); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--cat); text-decoration: underline; text-underline-offset: 4px; }
.tldr { border-radius: var(--radius); background: var(--cat-soft); padding: 22px 24px; }
.tldr b { display: block; color: var(--cat); font-family: var(--f-display); font-weight: 500; margin-bottom: 6px; }
.tldr ul { margin: 0; }
.note { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--cat) 45%, var(--line-2)); padding: 18px 22px; font-size: 16px; }
.note b { color: var(--cat); }

/* Interactive widget */
.widget { margin-block: 2em; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-size: 15.5px; line-height: 1.8; }
.w-head { padding: 22px 24px 18px; background: var(--cat-soft); }
.w-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--cat); }
.w-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); animation: live 1.6s ease-in-out infinite; }
.w-head h3 { margin: 6px 0 4px; font-size: 20px; }
.w-head p { color: var(--ink-2); }
.w-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.w-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.w-opt { position: relative; cursor: pointer; }
.w-opt input { position: absolute; opacity: 0; pointer-events: none; }
.w-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); transition: all .2s var(--ease); }
.w-opt span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line-2); transition: all .2s var(--ease); flex-shrink: 0; }
.w-opt input[type="radio"] + span::before { border-radius: 50%; }
.w-opt:hover span { border-color: var(--cat); }
.w-opt input:checked + span { border-color: var(--cat); background: var(--cat-soft); color: var(--ink); }
.w-opt input:checked + span::before { border-color: var(--cat); background: var(--cat); box-shadow: inset 0 0 0 3px #fff; }
.w-opt input:focus-visible + span { outline: 2px solid var(--cat); outline-offset: 2px; }
.w-q { display: flex; flex-direction: column; gap: 10px; }
.w-q > b { color: var(--ink); font-weight: 500; }
.w-out { border-radius: 14px; background: var(--paper); padding: 16px 18px; min-height: 60px; }
.w-out ol { list-style: decimal; padding-inline-start: 1.2em; margin: 0; }
.w-out li { animation: rowIn .45s var(--ease); }
.w-out .muted { color: var(--muted); }
.w-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.w-big { font-family: var(--f-display); font-weight: 500; font-size: 40px; line-height: 1.2; color: var(--cat); font-variant-numeric: tabular-nums; }
.w-sliders { display: grid; gap: 18px; }
.w-slider label { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.w-slider output { font-family: var(--f-mono); font-size: 14px; color: var(--cat); font-variant-numeric: tabular-nums; }
.w-slider input[type="range"] { width: 100%; accent-color: var(--cat); height: 28px; }
.w-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-stat { border-radius: 12px; background: var(--paper); padding: 14px; }
.w-stat span { display: block; font-size: 13px; color: var(--muted); }
.w-stat b { font-family: var(--f-display); font-weight: 500; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.w-chart { width: 100%; height: 140px; }
.w-chart rect { fill: var(--cat); transition: height .5s var(--ease), y .5s var(--ease); }
.w-chart text { fill: var(--muted); font-size: 10px; font-family: var(--f-mono); }
.meter-lg { height: 14px; border-radius: 14px; background: var(--paper); overflow: hidden; }
.meter-lg i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cat); transition: width .6s var(--ease); }
.split-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.split-chip { border-radius: 12px; padding: 12px; background: var(--paper); text-align: center; animation: pop .5s var(--ease) both; }
.split-chip:first-child { background: var(--cat); color: #fff; }
.split-chip span { display: block; font-size: 12.5px; opacity: .8; }
.split-chip b { font-family: var(--f-display); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.split-chip:nth-child(2) { animation-delay: .08s; } .split-chip:nth-child(3) { animation-delay: .16s; } .split-chip:nth-child(4) { animation-delay: .24s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.w-note { font-size: 13px; color: var(--muted); }
.w-input { display: flex; align-items: center; gap: 10px; }
.w-input input { width: 160px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); padding-inline: 14px; font-size: 17px; color: var(--ink); direction: ltr; text-align: right; }
.w-input input:focus { outline: none; border-color: var(--cat); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 15%, transparent); }

.art-cta { margin-top: 2.6em; border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); background: var(--ink); color: #C9D2E6; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.art-cta::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: -60px; bottom: -90px; background: var(--cat); opacity: .55; filter: blur(2px); }
.art-cta h2 { color: #fff; font-size: 24px; margin: 0; position: relative; }
.art-cta h2::before { display: none; }
.art-cta p { position: relative; margin: 0; }
.art-cta .btns { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.art-cta .btn-primary { background: #fff; color: var(--ink); }
.art-cta .btn-primary:hover { background: var(--cat); color: #fff; }
.art-cta .btn-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.art-cta .btn-quiet:hover { border-color: #fff; }
.related { padding-block: clamp(56px, 7vw, 88px); }

@media (max-width: 1080px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .toc-box { display: none; }
}
@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 0; aspect-ratio: 16 / 10; }
  .w-stats { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose { font-size: 16.5px; }
  .art-cover { aspect-ratio: 16 / 10; }
  .blob-c { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hl path { stroke-dashoffset: 0; }
}
@media (max-width: 1080px) { .toc .share-box { display: block; order: 2; } .toc { display: contents; } .share-box { margin-top: 8px; } }

/* =========================================================
   PROCESS — five stages, scroll-driven
   ========================================================= */
.proc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.proc-steps { position: relative; display: flex; flex-direction: column; gap: 8px; padding-inline-start: 56px; }
.proc-line { position: absolute; inset-inline-start: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.proc-line i { display: block; width: 100%; height: 100%; background: var(--cobalt); transform-origin: top; transform: scaleY(0); }
.proc-step { position: relative; padding: 22px 24px; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .4s var(--ease), border-color .4s, box-shadow .4s, opacity .4s; opacity: .55; }
.proc-step.is-on, .proc-step.is-done { opacity: 1; }
.proc-step.is-on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.ps-n {
  position: absolute; inset-inline-start: -56px; top: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 13px; color: var(--muted); transition: all .4s var(--ease); z-index: 1;
}
.proc-step.is-done .ps-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.proc-step.is-on .ps-n { background: var(--cobalt); color: #fff; border-color: var(--cobalt); box-shadow: 0 0 0 6px rgba(45,73,240,.15); transform: scale(1.08); }
.proc-step h3 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 6px; }
.proc-step p { color: var(--ink-2); font-size: 15.5px; }
.ps-out { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--cobalt-ink); background: var(--cobalt-soft); padding: 5px 10px; border-radius: 8px; }
.ps-out::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.proc-stage { position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); }
.stage-card { position: relative; aspect-ratio: 36 / 28; max-width: 100%; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.stage-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,22,38,.08) 1px, transparent 1px); background-size: 18px 18px; }
.stage-vis { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.stage-vis.is-on { opacity: 1; transform: none; }
.stage-vis svg { flex: 1; width: 100%; height: auto; }
.stage-cap { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.stage-cap b { color: var(--ink); font-weight: 500; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .3s, width .3s var(--ease); }
.stage-dots i.on { background: var(--cobalt); width: 22px; border-radius: 4px; }
/* stage svg motion (only when visible) */
.sv-float { animation: svf 4s ease-in-out infinite; }
@keyframes svf { 50% { transform: translateY(-8px); } }
.sv-scan { animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translate(0,0); } 33% { transform: translate(70px,30px); } 66% { transform: translate(-30px,60px); } }
.stage-vis.is-on .sv-tick { animation: tick .5s var(--ease) both; }
.sv-tick { opacity: 0; }
@keyframes tick { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.sv-tick { transform-box: fill-box; transform-origin: center; }
.stage-vis.is-on .sv-drop { animation: sdrop .7s cubic-bezier(.2,.8,.2,1) both; }
.sv-drop { opacity: 0; }
@keyframes sdrop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.stage-vis.is-on .sv-grow { animation: sgrow .9s var(--ease) both; }
.sv-grow { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
@keyframes sgrow { to { transform: scaleY(1); } }
.stage-vis.is-on .sv-draw { animation: sdraw 1.6s var(--ease) .3s both; }
.sv-draw { stroke-dasharray: 400; stroke-dashoffset: 400; }
@keyframes sdraw { to { stroke-dashoffset: 0; } }
.sv-pulse { animation: live 1.6s ease-in-out infinite; }

/* =========================================================
   COMPARE — manual day vs. with MoshDev
   ========================================================= */
.cmp { --m: #C2410C; --m-soft: #FFEDE3; --a: #0A7F52; --a-soft: #DCF4E8; --k: var(--m); --k-soft: var(--m-soft); }
.cmp[data-mode="auto"] { --k: var(--a); --k-soft: var(--a-soft); }
.cmp-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 28px; isolation: isolate;
}
.cmp-switch button { position: relative; z-index: 1; height: 48px; padding-inline: 22px; border: 0; background: transparent; border-radius: 12px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color .35s; white-space: nowrap; }
.cmp-switch button[aria-pressed="true"] { color: #fff; }
.cmp-knob { position: absolute; z-index: 0; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--k); transition: transform .55s cubic-bezier(.5,1.6,.4,1), background-color .4s; }
.cmp[data-mode="auto"] .cmp-knob { transform: translateX(-100%); }
[dir="ltr"] .cmp[data-mode="auto"] .cmp-knob { transform: translateX(100%); }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.cmp-panel { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 24px; transition: border-color .4s; }
.cmp[data-mode="auto"] .cmp-panel { border-color: color-mix(in srgb, var(--a) 30%, var(--line)); }
.cmp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmp-stat { border-radius: 14px; padding: 14px 16px; background: var(--k-soft); transition: background-color .4s; }
.cmp-stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; color: var(--k); font-variant-numeric: tabular-nums; transition: color .4s; }
.cmp-stat span { font-size: 13.5px; color: var(--ink-2); }
.cmp-day { display: flex; flex-direction: column; }
.cmp-day li { display: grid; grid-template-columns: 56px 28px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.cmp-day time { font-family: var(--f-mono); font-size: 13px; color: var(--muted); direction: ltr; }
.cmp-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--k-soft); color: var(--k); transition: background-color .4s, color .4s; }
.cmp-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp-ico .i-auto { display: none; }
.cmp[data-mode="auto"] .cmp-ico .i-auto { display: block; }
.cmp[data-mode="auto"] .cmp-ico .i-man { display: none; }
.cmp-txt { transition: opacity .25s; }
.cmp.swap .cmp-txt { opacity: 0; }
.cmp-note { font-size: 12.5px; color: var(--muted); }

.cmp-phone { position: relative; border-radius: var(--radius-lg); background: var(--k-soft); display: flex; align-items: center; justify-content: center; padding: 28px 16px; overflow: hidden; transition: background-color .5s; min-height: 420px; }
.phone-shell { position: relative; width: 230px; height: 390px; border-radius: 34px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -24px rgba(14,22,38,.45); }
.phone-scr { position: relative; height: 100%; border-radius: 26px; background: #F3F4F7; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px; font-family: var(--f-mono); font-size: 11px; color: var(--ink); direction: ltr; }
.phone-badge { position: absolute; top: -10px; inset-inline-end: -10px; min-width: 40px; height: 40px; padding-inline: 8px; border-radius: 20px; background: var(--k); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 600; font-size: 17px; box-shadow: 0 0 0 4px var(--k-soft); transition: background-color .4s, transform .5s cubic-bezier(.5,1.8,.4,1); z-index: 2; }
.cmp[data-mode="manual"] .phone-badge { animation: shake 2.4s ease-in-out infinite; }
@keyframes shake { 0%,80%,100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
.notifs { position: relative; flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(14,22,38,.06); font-size: 11.5px; line-height: 1.5; color: var(--ink); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.notif i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--k-soft); position: relative; }
.notif i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--k); }
.cmp[data-mode="manual"] .notif { animation: pile .6s var(--ease) both; }
.cmp[data-mode="manual"] .notif:nth-child(2) { animation-delay: .1s; } .cmp[data-mode="manual"] .notif:nth-child(3) { animation-delay: .2s; }
.cmp[data-mode="manual"] .notif:nth-child(4) { animation-delay: .3s; } .cmp[data-mode="manual"] .notif:nth-child(5) { animation-delay: .4s; }
@keyframes pile { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.cmp[data-mode="auto"] .notif.n-man { display: none; }
.notif.n-auto { display: none; }
.cmp[data-mode="auto"] .notif.n-auto { display: flex; animation: pile .6s var(--ease) both; }
.calm { position: absolute; inset-inline: 0; bottom: 18px; text-align: center; font-size: 12px; color: var(--a); font-weight: 500; opacity: 0; transition: opacity .5s .3s; }
.cmp[data-mode="auto"] .calm { opacity: 1; }

/* =========================================================
   BUILDER — "build your project"
   ========================================================= */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: stretch; }
.bld-controls { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.bld fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bld legend { font-family: var(--f-display); font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 12px; padding: 0; }
.bld legend small { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-inline-start: 6px; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type { position: relative; cursor: pointer; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line-2); text-align: center; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); height: 100%; }
.type svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.type:hover span { border-color: var(--ink); transform: translateY(-2px); }
.type input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.type input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feat { position: relative; cursor: pointer; }
.feat input { position: absolute; opacity: 0; pointer-events: none; }
.feat span { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.feat span i { flex-shrink: 0; width: 12px; height: 12px; border-radius: 4px; background: var(--fc); opacity: .35; transition: opacity .25s, transform .3s var(--ease); }
.feat:hover span { border-color: var(--fc); }
.feat input:checked + span { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 10%, #fff); color: var(--ink); }
.feat input:checked + span i { opacity: 1; transform: rotate(45deg); }
.feat input:focus-visible + span { outline: 2px solid var(--fc); outline-offset: 2px; }
.bld-sum { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.bld-size { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bld-size span { font-size: 14px; color: var(--muted); }
.bld-size b { font-family: var(--f-display); font-weight: 500; font-size: 22px; color: var(--ink); }
.bld-meter { height: 10px; border-radius: 10px; background: var(--mist); overflow: hidden; }
.bld-meter i { display: block; height: 100%; width: 10%; border-radius: inherit; background: linear-gradient(90deg, var(--cobalt), #7C5CFF); transition: width .6s var(--ease); }
[dir="rtl"] .bld-meter i { margin-inline-start: 0; }
.bld-canvas { position: relative; border-radius: var(--radius-lg); background: var(--ink); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; }
.bld-canvas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.bld-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #8C98B3; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bld-head b { color: #fff; font-weight: 500; }
.bld svg.map { position: relative; flex: 1; width: 100%; height: auto; }
.map .edge { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 6; transition: stroke .4s; }
.map .edge.on { stroke: var(--ec); stroke-dasharray: 6 8; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.map .node rect { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.14); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.map .node text { fill: rgba(255,255,255,.4); font-family: var(--f-body); font-size: 14px; transition: fill .4s; }
.map .node circle { fill: rgba(255,255,255,.12); transition: fill .4s; }
.map .node { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.5,1.7,.4,1), opacity .4s; }
.map .node.on rect { fill: color-mix(in srgb, var(--ec) 22%, #0E1626); stroke: var(--ec); }
.map .node.on text { fill: #fff; }
.map .node.on circle { fill: var(--ec); }
.map .node.on { transform: scale(1.04); }
.map .core rect { fill: #fff; stroke: none; }
.map .core text { fill: var(--ink); font-family: var(--f-display); font-size: 17px; }
.map .core .sub { fill: var(--muted); font-family: var(--f-body); font-size: 12.5px; }
.map .core-ring { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.map .pkt { fill: #fff; }
.bld-foot { position: relative; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #8C98B3; }

@media (max-width: 1080px) {
  .proc { grid-template-columns: 1fr; }
  .proc-stage { display: none; }
  .proc-step { opacity: 1; }
  .cmp-grid, .bld { grid-template-columns: 1fr; }
  .bld-canvas { order: -1; }
  .cmp-phone { min-height: 0; }
}
@media (max-width: 560px) {
  .cmp-switch { display: grid; width: 100%; }
  .cmp-switch button { padding-inline: 10px; font-size: 14.5px; }
  .cmp-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cmp-stat { padding: 12px 10px; }
  .cmp-stat span { font-size: 12px; }
  .cmp-day li { grid-template-columns: 46px 26px minmax(0, 1fr); font-size: 14px; }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .type span { font-size: 12.5px; padding: 12px 4px; }
  .feats { grid-template-columns: 1fr; }
  .bld-canvas { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-vis .sv-tick, .stage-vis .sv-drop { opacity: 1; }
  .sv-grow { transform: none; } .sv-draw { stroke-dashoffset: 0; }
}

/* =========================================================
   LTR (English) adjustments
   ========================================================= */
[dir="ltr"] .pane-chat { left: auto; right: -40px; }
[dir="ltr"] .console-foot { right: auto; left: 4px; }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
[dir="ltr"] .about-facts dd { text-align: right; }
[dir="ltr"] .case dd.mono { text-align: left; }
[dir="ltr"] .f-id { text-align: left; }
[dir="ltr"] .wa-fab { left: auto; right: calc(20px + env(safe-area-inset-right, 0px)); }
[dir="ltr"] .btn:hover svg { transform: translateX(3px); }
[dir="ltr"] .post:hover .post-go svg { transform: translate(4px, -4px); }
.lang-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 44px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s; }
.lang-link:hover { border-color: var(--ink); }
@media (max-width: 1080px) { [dir="ltr"] .pane-chat { right: 24px; } }
@media (max-width: 800px) { [dir="ltr"] .pane-chat { right: auto; } [dir="ltr"] .console-foot { left: auto; } }
@media (max-width: 560px) { [dir="ltr"] .wa-fab { right: calc(14px + env(safe-area-inset-right, 0px)); } }
