/* ==========================================================================
   PMScope — landing page
   Colors mirror src/theme/theme.ts; the phone mockups reuse the app palette.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F6FB;
  --bg-2: #FFFFFF;
  --bg-3: #EEEEF7;
  --ink: #0B1024;
  --ink-2: #464C66;
  --ink-3: #7A8099;
  --line: rgba(15, 20, 60, 0.09);
  --line-2: rgba(15, 20, 60, 0.14);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.9);
  --shadow-1: 0 1px 2px rgba(16, 20, 50, 0.06), 0 8px 24px -12px rgba(16, 20, 50, 0.14);
  --shadow-2: 0 2px 6px rgba(16, 20, 50, 0.06), 0 30px 60px -24px rgba(40, 30, 120, 0.28);

  --brand: #4F46E5;
  --brand-2: #7C3AED;
  --brand-3: #4F6BFF;
  --brand-ink: #4338CA;
  --grad: linear-gradient(120deg, #4F6BFF 0%, #4F46E5 45%, #7C3AED 100%);
  --aurora-a: rgba(79, 107, 255, 0.34);
  --aurora-b: rgba(124, 58, 237, 0.26);
  --aurora-c: rgba(16, 185, 129, 0.16);
  --grid-line: rgba(79, 70, 229, 0.07);

  /* App palette (lightColors from theme.ts) */
  --a-bg: #F9FAFB;
  --a-surface: #FFFFFF;
  --a-surface-2: #F3F4F6;
  --a-text: #111827;
  --a-text-2: #6B7280;
  --a-text-3: #9CA3AF;
  --a-border: #E5E7EB;
  --a-primary: #4F46E5;
  --a-primary-soft: rgba(79, 70, 229, 0.12);
  --phone-frame: #16182A;
  --a-primary-light: #818CF8;
  --a-role-bg: #818CF8;
  --a-accent: #10B981;
  --a-err: #EF4444;
  --a-err-soft: #FEE2E2;
  --st-pend-bg: #FEF3C7; --st-pend-fg: #D97706; --st-pend-bd: #FCD34D;
  --st-open-bg: #FEF2F2; --st-open-fg: #EF4444; --st-open-bd: #FCA5A5;
  --st-prog-bg: #DBEAFE; --st-prog-fg: #1D4ED8; --st-prog-bd: #93C5FD;
  --st-done-bg: #D1FAE5; --st-done-fg: #047857; --st-done-bd: #6EE7B7;
  --pr1-bg: #FEE2E2; --pr1-fg: #B91C1C; --pr1-fg-solid: #B91C1C;
  --pr2-bg: #FFEDD5; --pr2-fg: #C2410C;
  --pr3-bg: #FEF9C3; --pr3-fg: #A16207;
  --pr4-bg: #D1FAE5; --pr4-fg: #047857;

  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070914;
    --bg-2: #0E1224;
    --bg-3: #141934;
    --ink: #EEF0FA;
    --ink-2: #A9AFC8;
    --ink-3: #6F7694;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --glass: rgba(18, 22, 46, 0.62);
    --glass-line: rgba(255, 255, 255, 0.1);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.85);
    --brand: #818CF8;
    --brand-ink: #A5B4FC;
    --aurora-a: rgba(79, 107, 255, 0.30);
    --aurora-b: rgba(124, 58, 237, 0.30);
    --aurora-c: rgba(16, 185, 129, 0.10);
    --grid-line: rgba(165, 180, 252, 0.06);

    --a-bg: #0F172A;
    --a-surface: #1E293B;
    --a-surface-2: #334155;
    --a-text: #F1F5F9;
    --a-text-2: #94A3B8;
    --a-text-3: #64748B;
    --a-border: #334155;
    --a-primary: #818CF8;
    --a-primary-soft: rgba(129, 140, 248, 0.16);
    --phone-frame: #05060C;
    --a-primary-light: #312E81;
    --a-role-bg: #4338CA;
    --a-accent: #34D399;
    --a-err: #F87171;
    --a-err-soft: #7F1D1D;
    --st-pend-bg: #78350F; --st-pend-fg: #FCD34D; --st-pend-bd: #B45309;
    --st-open-bg: #7F1D1D; --st-open-fg: #FCA5A5; --st-open-bd: #EF4444;
    --st-prog-bg: #1E3A8A; --st-prog-fg: #93C5FD; --st-prog-bd: #3B82F6;
    --st-done-bg: #064E3B; --st-done-fg: #6EE7B7; --st-done-bd: #059669;
    --pr1-bg: #7F1D1D; --pr1-fg: #FCA5A5; --pr1-fg-solid: #DC2626;
    --pr2-bg: #7C2D12; --pr2-fg: #FDBA74;
    --pr3-bg: #78350F; --pr3-fg: #FDE047;
    --pr4-bg: #064E3B; --pr4-fg: #6EE7B7;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #070914;
  --bg-2: #0E1224;
  --bg-3: #141934;
  --ink: #EEF0FA;
  --ink-2: #A9AFC8;
  --ink-3: #6F7694;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(18, 22, 46, 0.62);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --brand: #818CF8;
  --brand-ink: #A5B4FC;
  --aurora-a: rgba(79, 107, 255, 0.30);
  --aurora-b: rgba(124, 58, 237, 0.30);
  --aurora-c: rgba(16, 185, 129, 0.10);
  --grid-line: rgba(165, 180, 252, 0.06);

  --a-bg: #0F172A;
  --a-surface: #1E293B;
  --a-surface-2: #334155;
  --a-text: #F1F5F9;
  --a-text-2: #94A3B8;
  --a-text-3: #64748B;
  --a-border: #334155;
  --a-primary: #818CF8;
  --a-primary-soft: rgba(129, 140, 248, 0.16);
  --phone-frame: #05060C;
  --a-primary-light: #312E81;
  --a-role-bg: #4338CA;
  --a-accent: #34D399;
  --a-err: #F87171;
  --a-err-soft: #7F1D1D;
  --st-pend-bg: #78350F; --st-pend-fg: #FCD34D; --st-pend-bd: #B45309;
  --st-open-bg: #7F1D1D; --st-open-fg: #FCA5A5; --st-open-bd: #EF4444;
  --st-prog-bg: #1E3A8A; --st-prog-fg: #93C5FD; --st-prog-bd: #3B82F6;
  --st-done-bg: #064E3B; --st-done-fg: #6EE7B7; --st-done-bd: #059669;
  --pr1-bg: #7F1D1D; --pr1-fg: #FCA5A5; --pr1-fg-solid: #DC2626;
  --pr2-bg: #7C2D12; --pr2-fg: #FDBA74;
  --pr3-bg: #78350F; --pr3-fg: #FDE047;
  --pr4-bg: #064E3B; --pr4-fg: #6EE7B7;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
::selection { background: rgba(79, 70, 229, 0.25); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.section-lead { color: var(--ink-2); font-size: 18px; margin-top: 18px; }
.muted-2 { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --pad: 9px 16px; font-size: 14px; }
.btn--lg { --pad: 17px 28px; font-size: 17px; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(79, 70, 229, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--light { background: #fff; color: #312E81; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.45); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); transform: rotate(-12deg); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .i-moon { fill: currentColor; stroke: none; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: padding .35s var(--ease), background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 8px 0;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--ink); background: var(--line); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
}
.lang-switch a {
  padding: 5px 10px; border-radius: 999px; color: var(--ink-3);
  transition: color .25s, background-color .25s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.aurora--1 { width: 620px; height: 620px; background: var(--aurora-a); top: -180px; right: -80px; animation: drift1 18s ease-in-out infinite alternate; }
.aurora--2 { width: 520px; height: 520px; background: var(--aurora-b); bottom: -200px; right: 22%; animation: drift2 22s ease-in-out infinite alternate; }
.aurora--3 { width: 420px; height: 420px; background: var(--aurora-c); top: 20%; left: -160px; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(70px, -40px) scale(0.94); } }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero__title { font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 560px; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-3); font-size: 15px; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 720px; perspective: 1600px; }
.hero__stage {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg));
  transition: transform .9s var(--ease);
}
.halo {
  position: absolute; inset: 8% -20%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .45), transparent 70%);
  filter: blur(30px);
  transform: translateZ(-80px);
}
.phone.phone--hero { --pf: 11.4px; transform: translateZ(0); }

.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  font-size: 13.5px; line-height: 1.3;
  white-space: nowrap;
  text-align: left;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 60px);
  transition: transform .9s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-weight: 600; color: var(--ink); }
.float small { color: var(--ink-3); font-size: 12.5px; }
.float__ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 17px; flex: none; }
.float__ico.ok { background: linear-gradient(135deg, #22C55E, #10B981); font-weight: 800; }
.float__ico.doc { background: linear-gradient(135deg, #F97316, #EF4444); }
.float--a { top: 33%; left: -60%; }
.float--b { top: 76%; right: -44%; animation-delay: -2s; }
.float--c { bottom: 5%; left: -56%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-3); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Phone mockup — all sizes in em, scaled via --pf
   ========================================================================== */
.phone {
  --pf: 9px;
  font-size: var(--pf);
  width: 29em; height: 60em;
  padding: 0.85em;
  border-radius: 4.8em;
  background: var(--phone-frame);
  box-shadow:
    inset 0 0 0 0.12em rgba(255, 255, 255, 0.14),
    inset 0 0 0 0.45em #2A2D44,
    0 3em 6em -2em rgba(20, 16, 70, 0.45),
    0 1em 2em -1em rgba(20, 16, 70, 0.3);
  position: relative;
  flex: none;
  text-align: left;
  font-family: var(--font-body);
  line-height: 1.3;
  color: var(--a-text);
}
.phone::before, .phone::after { /* side buttons */
  content: ""; position: absolute; width: 0.35em; background: #2A2D44; border-radius: 0.2em;
}
.phone::before { left: -0.3em; top: 12em; height: 5em; }
.phone::after { right: -0.3em; top: 15em; height: 8em; }
.phone__screen {
  position: relative; height: 100%;
  border-radius: 4em;
  overflow: hidden;
  background: var(--a-bg);
  transition: background-color .4s;
}
.phone__screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 20;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%);
}

.sb { position: absolute; inset: 0 0 auto; height: 4.6em; display: flex; align-items: center; justify-content: space-between; padding: 0.4em 2.6em 0; font-size: 1.35em; font-weight: 600; z-index: 6; color: var(--a-text); }
.sb .island { position: absolute; left: 50%; top: 0.75em; translate: -50% 0; width: 6.6em; height: 1.9em; border-radius: 1em; background: #000; font-size: 1em; }
.sb__r { display: flex; align-items: center; gap: 0.35em; }
.sig { width: 1.1em; height: 0.75em; background: linear-gradient(90deg, currentColor 0 22%, transparent 22% 26%, currentColor 26% 48%, transparent 48% 52%, currentColor 52% 74%, transparent 74% 78%, currentColor 78%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 1.6em; height: 0.78em; border-radius: 0.22em; border: 0.1em solid currentColor; position: relative; opacity: .9; }
.bat::after { content: ""; position: absolute; inset: 0.1em 0.35em 0.1em 0.1em; background: currentColor; border-radius: 0.1em; }

.app { position: absolute; inset: 4.8em 0 6.9em; padding: 0.6em 1.5em 1em; overflow: hidden; display: flex; flex-direction: column; gap: 0.85em; }
.app.dim { filter: brightness(.55); }
:root[data-theme="dark"] .app.dim { filter: brightness(.45); }

/* Icons (Feather sprite) */
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic.red { color: #EF4444; }
.ic.off { color: var(--a-text-3); }
.pri { color: var(--a-primary); }
.muted { color: var(--a-text-2); font-size: 1.05em; display: inline-flex; align-items: center; gap: 0.3em; }

/* PageHeader / TopBar / IconButton */
.ph { display: flex; align-items: flex-start; gap: 0.6em; }
.ph__c { flex: 1; min-width: 0; }
.ph__t { font-size: 2em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ph__s { font-size: 1.2em; color: var(--a-text-2); margin-top: 0.15em; }
.ph__a { display: flex; gap: 0.1em; }
.ib { width: 3.3em; height: 3.3em; display: grid; place-items: center; border-radius: 50%; color: var(--a-text-2); position: relative; flex: none; }
.ib .ic { width: 1.75em; height: 1.75em; }
.bdg { position: absolute; top: 0.2em; right: 0; min-width: 1.4em; height: 1.4em; padding: 0 0.25em; border-radius: 1em; background: #EF4444; color: #fff; font-size: 0.8em; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.bdg--p { background: var(--a-primary); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; }
.topbar b { font-size: 1.45em; font-weight: 700; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dashboard */
.rolebadge { align-self: flex-start; background: var(--a-role-bg); color: #fff; font-size: 1.05em; font-weight: 600; padding: 0.35em 1.3em; border-radius: 1em; }
.pinchip { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5em; background: var(--a-primary-soft); color: var(--a-primary); font-weight: 600; font-size: 1.15em; padding: 0.4em 0.9em; border-radius: 2em; }
.pinchip .ic { width: 1.1em; height: 1.1em; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; }
.a-stat { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.2em; padding: 0.9em 0.3em 0.8em; text-align: center; box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.07); }
.a-stat b { display: block; font-size: 2.6em; line-height: 1.1; font-weight: 700; }
.a-stat b.hl { color: var(--a-primary); }
.a-stat.warn { border: 0.15em solid #F97316; }
.a-stat.warn b { color: #F97316; }
.a-stat small { font-size: 0.95em; color: var(--a-text-2); }
.a-sec { display: flex; justify-content: space-between; align-items: center; margin-top: 0.2em; }
.a-sec b { font-size: 1.4em; }
.a-sec .ic { width: 1.4em; height: 1.4em; }
.sublabel { font-size: 1em; font-weight: 600; color: var(--a-text-2); margin-bottom: -0.3em; }
.up { background: var(--a-surface); border: 1px solid var(--a-border); border-left: 0.35em solid var(--c); border-radius: 1em; padding: 0.7em 0.9em; font-size: 1.08em; line-height: 1.35; flex: none; }
.a-overdue { display: inline-flex; align-items: center; gap: 0.3em; background: var(--a-err-soft); color: var(--a-err); font-size: 0.95em; font-weight: 600; padding: 0.25em 0.7em; border-radius: 1em; }
.a-overdue .ic { width: 1.05em; height: 1.05em; }
.grp { display: flex; align-items: center; gap: 0.4em; color: var(--a-text-2); margin: 0.1em 0 -0.3em; }
.grp b { font-size: 1.15em; font-weight: 700; color: var(--a-text); }
.grp b.pinned { color: var(--a-primary); }

.a-chips { display: flex; gap: 0.5em; overflow: hidden; flex: none; }
.a-chips.wrap { flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.45em 0.95em; border-radius: 1.4em; border: 1px solid var(--a-border); background: var(--a-surface); font-size: 1.05em; font-weight: 500; white-space: nowrap; color: var(--a-text); }
.chip i { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--c); }
.chip .ic { width: 1.05em; height: 1.05em; }
.chip.on { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.chip.sel { border-color: var(--sel, var(--a-primary)); background: color-mix(in srgb, var(--sel, var(--a-primary)) 14%, transparent); font-weight: 600; }
.chip.pri-t { color: var(--a-primary); font-weight: 600; }

/* Status / priority pills (StatusPill, PriorityPill) */
.sp { display: inline-block; font-size: 0.95em; font-weight: 600; padding: 0.15em 0.7em; border-radius: 1em; border: 1px solid; }
.sp-pend { background: var(--st-pend-bg); color: var(--st-pend-fg); border-color: var(--st-pend-bd); }
.sp-open { background: var(--st-open-bg); color: var(--st-open-fg); border-color: var(--st-open-bd); }
.sp-prog { background: var(--st-prog-bg); color: var(--st-prog-fg); border-color: var(--st-prog-bd); }
.sp-done { background: var(--st-done-bg); color: var(--st-done-fg); border-color: var(--st-done-bd); }
.pp { font-size: 0.88em; font-weight: 700; padding: 0.2em 0.5em; border-radius: 0.55em; white-space: nowrap; flex: none; }
.pp1 { background: var(--pr1-bg); color: var(--pr1-fg); }
.pp2 { background: var(--pr2-bg); color: var(--pr2-fg); }
.pp3 { background: var(--pr3-bg); color: var(--pr3-fg); }
.pp4 { background: var(--pr4-bg); color: var(--pr4-fg); }
/* legacy priority chips — still used by the swipe demo in the bento grid */
.prio { font-size: 0.9em; font-weight: 700; padding: 0.25em 0.55em; border-radius: 0.6em; white-space: nowrap; flex: none; }
.p2 { color: #C2410C; background: #FFEDD5; }

/* Topic card */
.t-card { display: flex; align-items: stretch; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.3em; overflow: hidden; flex: none; }
.t-card.over { border-color: var(--st-open-bd); background: color-mix(in srgb, #EF4444 6%, var(--a-surface)); }
.t-bar { width: 0.45em; background: var(--c); flex: none; }
.sb-pend { background: var(--st-pend-bd); }
.sb-open { background: var(--st-open-bd); }
.sb-prog { background: var(--st-prog-bd); }
.sb-done { background: var(--st-done-bd); }
.t-body { flex: 1; min-width: 0; padding: 0.95em 0.9em 0.9em 1em; display: flex; flex-direction: column; gap: 0.55em; }
.t-head { display: flex; align-items: flex-start; gap: 0.55em; }
.t-head b { font-size: 1.22em; font-weight: 600; line-height: 1.3; }
.t-head b.big { font-size: 1.5em; }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45em 0.65em; }
.cat { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.92em; font-weight: 500; color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 0.15em 0.6em; border-radius: 1em; }
.cat i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--c); }
.mi { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.95em; color: var(--a-text-2); }
.mi .ic { width: 1.05em; height: 1.05em; }
.due.over { color: var(--a-err); font-weight: 600; }
.t-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4em; padding: 0 0.7em; }
.qb { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--a-primary-soft); color: var(--a-primary); display: grid; place-items: center; }
.qb .ic { width: 1.2em; height: 1.2em; }
.ic.chev { width: 1.7em; height: 1.7em; color: var(--a-text-3); }

.thumb { width: 4.4em; height: 4.4em; border-radius: 0.8em; flex: none; margin: auto 0.9em auto 0; position: relative; overflow: hidden; }
.thumb.sm { width: 3.2em; height: 3.2em; margin: 0; border-radius: 0.6em; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .25), transparent 45%); }
.th1 { background: radial-gradient(circle at 30% 30%, #FDE68A 0 12%, transparent 13%), repeating-linear-gradient(90deg, #475569 0 18%, #334155 18% 22%), #334155; }
.th2 { background: radial-gradient(circle at 70% 60%, #22D3EE 0 10%, transparent 11%), linear-gradient(135deg, #0F766E, #0EA5E9); }
.th3 { background: repeating-linear-gradient(0deg, #F59E0B 0 10%, #1F2937 10% 20%), #1F2937; }

.fab { position: absolute; font-size: 2.6em; right: 0.6em; bottom: 3.2em; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--a-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 0.15em 0.4em rgba(79, 70, 229, 0.45); z-index: 5; }
.fab .ic { width: 0.62em; height: 0.62em; stroke-width: 2.4; }

/* PersistentTabBar — the app keeps emoji tab icons with a gradient halo on the active tab */
.tabs { position: absolute; inset: auto 0 0; height: 6.9em; background: var(--a-surface); border-top: 1px solid var(--a-border); display: flex; justify-content: space-around; padding: 0.6em 0.6em 1.6em; z-index: 4; }
.tabs > span { display: flex; flex-direction: column; align-items: center; gap: 0.25em; font-size: 0.95em; font-weight: 500; color: var(--a-text-2); }
.tabs i { position: relative; font-style: normal; width: 2.9em; height: 2.9em; display: grid; place-items: center; border-radius: 50%; font-size: 1.45em; line-height: 1; }
.tabs .on { color: var(--a-primary); }
.tabs .on i { font-size: 1.2em; width: 3.2em; height: 3.2em; background: linear-gradient(135deg, color-mix(in srgb, var(--a-primary) 33%, transparent), color-mix(in srgb, var(--a-primary) 9%, transparent)); }
.tabs em { position: absolute; top: -0.1em; right: -0.2em; min-width: 1.15em; height: 1.15em; padding: 0 0.2em; border-radius: 1em; background: #EF4444; color: #fff; font-style: normal; font-size: 0.6em; display: grid; place-items: center; font-weight: 700; }
.tabs .on em { font-size: 0.72em; }
.tabs em.p { background: var(--a-primary); }

/* Projects */
.a-btn { display: inline-flex; align-items: center; gap: 0.3em; background: var(--a-primary); color: #fff; font-weight: 600; font-size: 1.1em; padding: 0.55em 1em; border-radius: 0.9em; white-space: nowrap; }
.a-search { display: flex; align-items: center; gap: 0.6em; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1em; padding: 0.75em 1em; font-size: 1.1em; color: var(--a-text-2); }
.a-search span { color: var(--a-text-3); }
.a-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--a-surface-2); border-radius: 1em; padding: 0.3em; font-size: 1.1em; font-weight: 600; text-align: center; color: var(--a-text-2); flex: none; }
.a-seg span { padding: 0.45em; border-radius: 0.75em; }
.a-seg .on { background: var(--a-surface); color: var(--a-text); box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.1); }
.p-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.3em; padding: 1em 1.1em; display: flex; flex-direction: column; gap: 0.5em; flex: none; position: relative; }
.p-card.pinned { border: 0.18em solid var(--a-primary); }
.p-date { position: absolute; top: 0.9em; right: 1.1em; font-size: 0.85em; color: var(--a-text-3); }
.p-meta { display: flex; flex-wrap: wrap; gap: 0.35em; padding-right: 5.5em; }
.client { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.9em; font-weight: 600; color: var(--a-text); background: var(--a-surface-2); padding: 0.2em 0.65em; border-radius: 1em; align-self: flex-start; }
.client i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--c); }
.pm-b, .my-b { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.9em; color: var(--a-text-2); background: var(--a-surface-2); padding: 0.2em 0.6em; border-radius: 1em; }
.my-b { color: var(--a-primary); background: var(--a-primary-soft); font-weight: 600; }
.pm-b .ic, .my-b .ic { width: 1em; height: 1em; }
.p-name { display: flex; align-items: center; gap: 0.5em; }
.p-name b { font-size: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size { font-style: normal; font-size: 0.85em; font-weight: 700; color: var(--a-text-2); border: 1px solid var(--a-border); background: var(--a-surface-2); padding: 0.1em 0.5em; border-radius: 0.5em; flex: none; }
.p-act { margin-left: auto; display: flex; align-items: center; gap: 0.3em; color: var(--a-text-3); }
.p-act .ic { width: 1.3em; height: 1.3em; }
.p-desc { font-size: 1em; color: var(--a-text-2); }
.p-counts { display: flex; gap: 0.9em; }
.p-counts span { display: inline-flex; align-items: center; gap: 0.25em; font-size: 1em; font-weight: 700; }
.p-counts .ic { width: 1em; height: 1em; }
.c-pend { color: var(--st-pend-fg); }
.c-open { color: var(--st-open-fg); }
.c-prog { color: var(--st-prog-fg); }
.c-done { color: var(--st-done-fg); }

/* Project detail */
.d-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.3em; padding: 1.1em; display: flex; flex-direction: column; gap: 0.7em; flex: none; box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.06); }
.d-card .t-meta .thumb { margin-left: auto; }
.pd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em; font-size: 1em; color: var(--a-text-2); }
.pd-status .dot { width: 0.65em; height: 0.65em; border-radius: 50%; background: #10B981; }
.pd-meta { display: grid; gap: 0.35em; }
.pd-meta span { display: inline-flex; align-items: center; gap: 0.45em; font-size: 1em; color: var(--a-text-2); }
.pd-meta .ic { width: 1.05em; height: 1.05em; }
.pd-pm { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35em; font-size: 1em; font-weight: 600; color: var(--a-primary); background: var(--a-primary-soft); padding: 0.3em 0.8em; border-radius: 1em; }
.cnt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.cnt { border-radius: 1.1em; padding: 0.8em 0.3em; text-align: center; }
.cnt b { display: block; font-size: 2.4em; line-height: 1.1; }
.cnt span { display: inline-flex; align-items: center; gap: 0.25em; font-size: 0.95em; font-weight: 600; }
.cnt .ic { width: 1em; height: 1em; }
.c-open-bg { background: var(--st-open-bg); color: var(--st-open-fg); }
.c-prog-bg { background: var(--st-prog-bg); color: var(--st-prog-fg); }
.c-done-bg { background: var(--st-done-bg); color: var(--st-done-fg); }
.a-wide { display: flex; align-items: center; justify-content: center; gap: 0.35em; font-weight: 600; font-size: 1.2em; padding: 0.75em; border-radius: 1em; border: 1px solid var(--a-primary); background: transparent; color: var(--a-primary); flex: none; }
.a-wide.primary { background: var(--a-primary); color: #fff; border-color: transparent; }
.av { width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05em; flex: none; }
.av.xs { width: 2.1em; height: 2.1em; font-size: 0.8em; }
.av.xxs { width: 1.9em; height: 1.9em; font-size: 0.68em; }

/* Calendar — month grid (CalendarMonthGrid) */
.cal-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.3em; padding: 0.7em 0.6em; flex: none; box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.06); }
.cg__h { display: flex; justify-content: space-between; align-items: center; padding: 0 0.5em 0.5em; }
.cg__h span { font-size: 2em; line-height: 1; color: var(--a-primary); font-weight: 600; }
.cg__h b { font-size: 1.3em; font-weight: 600; }
.cg__w, .cg__d { display: grid; grid-template-columns: repeat(7, 1fr); }
.cg__w span { text-align: center; font-size: 0.95em; font-weight: 500; color: var(--a-text-2); padding-bottom: 0.3em; }
.cg__d > span { height: 3.7em; margin: 0.08em; border-radius: 0.55em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em; }
.cg__d b { font-size: 1.15em; font-weight: 400; }
.cg__d .sel { background: var(--a-primary-light); }
.cg__d .sel b { color: #fff; font-weight: 600; }
.mk { display: flex; align-items: center; gap: 0.2em; font-style: normal; }
.mk em { min-width: 1.25em; height: 1.25em; padding: 0 0.2em; border-radius: 1em; font-style: normal; font-size: 0.75em; font-weight: 700; color: #fff; display: grid; place-items: center; }
.mk-p { background: var(--a-accent); }
.mk-e { background: var(--pr1-fg-solid); }
.mk-me { background: var(--a-primary); }
.mk u { width: 1px; height: 0.8em; background: var(--a-border); }
.dots { display: flex; gap: 0.15em; font-style: normal; }
.dots em { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--c); }

/* Calendar — presence timeline (PresenceTimeline) */
.tl__t { font-size: 1.05em; font-weight: 600; color: var(--a-text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0.2em 0 0.6em 0.3em; }
.tl__b { display: flex; }
.tl__n { width: 9.2em; flex: none; display: flex; flex-direction: column; }
.tl__sp { height: 1.7em; }
.tl__n > span { height: 1.9em; margin-bottom: 0.5em; display: flex; align-items: center; gap: 0.3em; font-size: 0.95em; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cd { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--c); flex: none; }
.tl__g { overflow: hidden; }
.tl__ax, .tl__r { display: flex; }
.tl__ax span { width: 2.25em; flex: none; text-align: center; font-size: 0.8em; color: var(--a-text-2); height: 2.1em; line-height: 2.1em; }
.tl__r { height: 1.9em; margin-bottom: 0.5em; }
.tl__r span { width: 1.6em; margin-right: 0.2em; flex: none; border-radius: 0.3em; background: var(--a-surface-2); }
.tl__r span.on { background: var(--c); }

/* Calendar — day list */
.cal-card.day { padding: 1em; display: flex; flex-direction: column; gap: 0.45em; }
.day__t { font-size: 1.15em; font-weight: 600; color: var(--a-text-2); }
.day__l { font-size: 0.9em; font-weight: 700; color: var(--a-primary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.3em; }
.dit { display: flex; align-items: center; gap: 0.6em; border-left: 0.3em solid var(--c); background: var(--a-surface-2); border-radius: 0.6em; padding: 0.5em 0.7em; }
.dit .e { font-size: 1.3em; }
.dit b { font-size: 1.08em; font-weight: 600; display: flex; align-items: center; gap: 0.4em; }
.dit small { display: block; font-size: 0.92em; color: var(--a-text-2); }
.prof { font-style: normal; font-size: 0.78em; font-weight: 600; color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 0.05em 0.5em; border-radius: 1em; }

/* Topic detail */
.d-desc { font-size: 1.12em; color: var(--a-text); line-height: 1.45; }
.d-desc strong { font-weight: 700; }
.d-dates { display: flex; gap: 0.9em; font-size: 0.95em; color: var(--a-text-2); }
.d-dates span { display: inline-flex; align-items: center; gap: 0.3em; }
.d-dates .ic { width: 1.05em; height: 1.05em; }
.d-assign { display: flex; flex-wrap: wrap; gap: 0.4em; }
.pchip { display: inline-flex; align-items: center; gap: 0.35em; font-size: 1em; background: var(--a-surface-2); padding: 0.25em 0.6em 0.25em 0.25em; border-radius: 1.2em; font-weight: 500; }
.pchip .ic { width: 0.95em; height: 0.95em; color: var(--a-text-2); }
.pchip.add { padding-left: 0.6em; color: var(--a-primary); background: var(--a-primary-soft); }
.pchip.add .ic { color: var(--a-primary); }
.d-cycle { display: flex; align-items: center; justify-content: center; gap: 0.35em; background: #10B981; color: #fff; font-weight: 700; border-radius: 0.9em; padding: 0.7em; font-size: 1.15em; }
.u-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.2em; padding: 0.95em 1em; display: flex; flex-direction: column; gap: 0.55em; flex: none; }
.u-head { display: flex; align-items: center; gap: 0.5em; }
.u-head b { font-size: 1.1em; }
.u-head small { margin-left: auto; color: var(--a-text-3); font-size: 0.95em; }
.u-card p { font-size: 1.1em; line-height: 1.45; }
.mention { color: var(--a-primary); font-weight: 600; }
.u-imgs { display: flex; gap: 0.5em; }
.a-input { position: absolute; left: 1.2em; right: 1.2em; bottom: 7.7em; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 2em; padding: 0.9em 1.2em; font-size: 1.15em; color: var(--a-text-3); display: flex; justify-content: space-between; box-shadow: 0 -0.8em 1.6em var(--a-bg); z-index: 3; }
.a-input span { color: var(--a-primary); }

/* Bottom sheet */
.sheet { position: absolute; inset: auto 0 0; top: 14em; background: var(--a-surface); border-radius: 2.4em 2.4em 0 0; padding: 1em 1.6em 2em; display: flex; flex-direction: column; gap: 0.6em; z-index: 7; box-shadow: 0 -1em 3em rgba(0, 0, 0, 0.3); }
.sheet__grip { align-self: center; width: 4em; height: 0.45em; border-radius: 1em; background: var(--a-border); margin-bottom: 0.4em; }
.sheet label { font-size: 1.05em; font-weight: 600; color: var(--a-text-2); margin-top: 0.2em; }
.field { border: 1px solid var(--a-border); background: var(--a-bg); border-radius: 0.9em; padding: 0.75em 0.9em; font-size: 1.15em; display: flex; align-items: center; }
.field.focus { border-color: var(--a-primary); }
.caret { width: 0.1em; height: 1.2em; background: var(--a-primary); margin-left: 0.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin: 0.3em 0; }
.ghost { display: flex; align-items: center; justify-content: center; gap: 0.35em; border: 1px dashed var(--a-border); border-radius: 0.9em; padding: 0.65em; font-size: 1.05em; font-weight: 500; }

/* Todos */
.a-filter { font-size: 1.1em; font-weight: 600; color: var(--a-text-2); display: flex; align-items: center; gap: 0.4em; }
.a-filter em { font-style: normal; background: var(--a-primary); color: #fff; font-size: 0.8em; min-width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 1em; }
.td { display: flex; gap: 0.9em; align-items: flex-start; background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.2em; padding: 0.9em 1em; flex: none; }
.td b { font-size: 1.2em; font-weight: 600; display: block; }
.td small { display: flex; align-items: center; gap: 0.4em; margin-top: 0.4em; font-size: 0.95em; color: var(--a-text-2); }
.td small .ic { width: 1em; height: 1em; }
.td .tdue { margin-top: 0.3em; }
.td p { font-size: 1.05em; color: var(--a-text-2); margin: 0.5em 0; }
.box { width: 1.9em; height: 1.9em; border-radius: 0.5em; border: 0.15em solid var(--a-text-3); flex: none; display: grid; place-items: center; font-style: normal; color: #fff; margin-top: 0.1em; }
.box .ic { width: 1.2em; height: 1.2em; stroke-width: 3; }
.box.on { background: #10B981; border-color: #10B981; }
.td.done b { text-decoration: line-through; color: var(--a-text-3); }
.td.open { border-color: var(--a-primary); }

/* Surveys */
.s-card { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 1.3em; padding: 1.1em; display: flex; flex-direction: column; gap: 0.75em; flex: none; }
.s-card > b { font-size: 1.35em; }
.bar { position: relative; display: flex; justify-content: space-between; padding: 0.7em 0.9em; border-radius: 0.8em; background: var(--a-surface-2); overflow: hidden; font-size: 1.08em; font-weight: 500; }
.bar span, .bar em { position: relative; z-index: 1; font-style: normal; }
.bar em { font-weight: 700; color: var(--a-primary); }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--a-primary-soft); border-right: 0.2em solid var(--a-primary); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.3em; }
.scale span { text-align: center; padding: 0.5em 0; border-radius: 0.5em; background: var(--a-surface-2); font-size: 1em; font-weight: 600; }
.scale .on { background: var(--a-primary); color: #fff; }
.avg { font-size: 1.1em; color: var(--a-text-2); }
.avg b { color: var(--a-text); font-size: 1.3em; }

/* ==========================================================================
   Screens marquee
   ========================================================================== */
.screens { padding: 120px 0 110px; position: relative; }
.marquee {
  position: relative;
  overflow: hidden;
  padding: 40px 0 30px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  --gap: 48px;
  display: flex; gap: var(--gap); width: max-content;
  animation: marquee var(--marquee-duration, 70s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.shot__btn { all: unset; cursor: zoom-in; display: block; border-radius: 4.8em; transition: transform .6s var(--ease); }
.shot__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }
.shot .phone { --pf: 8.6px; transition: box-shadow .6s var(--ease); }
.shot:hover .shot__btn, .shot__btn:focus-visible { transform: translateY(-14px) scale(1.07); }
.shot:hover .phone { box-shadow: inset 0 0 0 0.12em rgba(255, 255, 255, 0.14), inset 0 0 0 0.45em #2A2D44, 0 4em 8em -2em rgba(79, 70, 229, 0.55), 0 1em 2em -1em rgba(20, 16, 70, 0.3); }
.marquee__track:hover .shot:not(:hover) { opacity: .5; filter: saturate(.6) blur(0.5px); }
.shot figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.shot figcaption b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.shot figcaption span { font-size: 14px; color: var(--ink-3); }

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { padding: 110px 0; background: linear-gradient(180deg, transparent, var(--bg-3) 20%, var(--bg-3) 80%, transparent); }
.problem__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.problem h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.pains { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pain {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 4px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.pain:hover { transform: translateX(8px); border-color: rgba(79, 70, 229, .35); box-shadow: var(--shadow-2); }
.pain__ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-3); font-size: 24px; }
.pain p { color: var(--ink-3); font-size: 16px; }
.pain s {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0% 1.5px;
  transition: background-size .9s var(--ease) .3s;
}
.pain.in s { background-size: 100% 1.5px; }
.pain strong { font-weight: 600; font-size: 17.5px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease) .9s, transform .6s var(--ease) .9s; }
.pain strong::before { content: "✓"; color: #10B981; font-weight: 800; }
.pain.in strong { opacity: 1; transform: none; }

/* ==========================================================================
   Features bento
   ========================================================================== */
.features { padding: 120px 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
  padding: 30px;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(99, 102, 241, 0.14), transparent 45%);
  transition: opacity .4s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(99, 102, 241, 0.3); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile--full { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 240px; }
.tile--wide .tile__text, .tile--full .tile__text { flex: 1; }
.tile--wide .tile__demo, .tile--full .tile__demo { flex: 1.1; }
.tile h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.012em; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile__demo { position: relative; display: grid; place-items: center; min-height: 140px; }

/* Status demo */
.demo-status { gap: 14px; }
.status-pill {
  --c: #EF4444;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--bg-2));
  border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 16px 40px -16px var(--c);
  transition: color .5s, background-color .5s, border-color .5s, box-shadow .5s, transform .3s var(--ease);
}
.status-pill:hover { transform: scale(1.05); }
.status-pill:active { transform: scale(0.96); }
.status-pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); transition: background-color .5s, box-shadow .5s; }
.status-pill span { min-width: 120px; text-align: left; }
.demo-hint { font-size: 13px !important; color: var(--ink-3) !important; font-family: var(--font-mono); }
.status-track { display: flex; gap: 6px; }
.status-track span { width: 40px; height: 5px; border-radius: 4px; background: var(--line-2); transition: background-color .5s; }
.status-track[data-step="0"] span:nth-child(1),
.status-track[data-step="1"] span:nth-child(-n+2),
.status-track[data-step="2"] span { background: var(--c, #EF4444); }

/* Categories demo */
.demo-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-content: center; }
.demo-cats span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .45s var(--ease);
}
.demo-cats span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tile:hover .demo-cats span:nth-child(odd) { transform: translateY(-5px) rotate(-3deg); }
.tile:hover .demo-cats span:nth-child(even) { transform: translateY(4px) rotate(3deg); }

/* Mention demo */
.demo-mention p {
  background: var(--bg); border: 1px solid var(--line-2);
  padding: 16px 18px; border-radius: 18px 18px 18px 6px;
  font-size: 16px !important; color: var(--ink) !important;
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease);
}
.demo-mention .mention { color: var(--brand); font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 1px 6px; border-radius: 6px; }
.tile:hover .demo-mention p { transform: rotate(-2deg) scale(1.04); }

/* Push demo */
.demo-push { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 100%; }
.push { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); transition: transform .6s var(--ease); }
.push > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-size: 16px; flex: none; }
.push b { display: block; font-size: 14px; }
.push small { font-size: 12.5px; color: var(--ink-3); }
.push--2 { transform: scale(.94); opacity: .75; }
.tile:hover .push { transform: translateY(-4px); }
.tile:hover .push--2 { transform: scale(1) translateY(4px); opacity: 1; }

/* PDF demo */
.pdf {
  position: relative; width: 104px; height: 132px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 9px;
  transform: rotate(-6deg);
  transition: transform .6s var(--ease);
}
.pdf::after { content: ""; position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: linear-gradient(225deg, var(--bg-3) 50%, var(--line-2) 50%); border-radius: 0 12px 0 6px; }
.pdf i { height: 6px; border-radius: 3px; background: var(--line-2); }
.pdf i.s { width: 60%; background: color-mix(in srgb, var(--brand) 40%, transparent); }
.pdf b { position: absolute; left: -14px; bottom: 16px; background: linear-gradient(135deg, #F97316, #EF4444); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: .06em; }
.tile:hover .pdf { transform: rotate(3deg) translateY(-8px) scale(1.06); }

/* Swipe demo */
.swipe { position: relative; width: min(420px, 100%); height: 72px; border-radius: 18px; overflow: hidden; }
.swipe__under { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(90deg, var(--brand-2), var(--brand) 49%, #3B82F6 51%, #2563EB); }
.swipe__card {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 0;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  animation: swipe 6s var(--ease) infinite;
}
.swipe__card .t-bar { align-self: stretch; width: 6px; }
.swipe__card .prio { font-size: 12px; padding: 4px 8px; border-radius: 7px; }
.swipe__card b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes swipe {
  0%, 12% { transform: translateX(0); }
  26%, 38% { transform: translateX(-34%); }
  50%, 62% { transform: translateX(0); }
  76%, 88% { transform: translateX(34%); }
  100% { transform: translateX(0); }
}
.tile--flip .tile__demo { order: 0; }

/* Calendar tile */
.tile--cal { align-items: stretch; gap: 40px; }
.tile--cal .tile__text { display: flex; flex-direction: column; justify-content: center; }
.new-badge {
  align-self: flex-start; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7);
}
.cal-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cal-points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.cal-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 5px; background: var(--grad); opacity: .85; }
.demo-cal { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; }
.mini-cal { background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; padding: 14px 14px 10px; box-shadow: var(--shadow-1); }
.mini-cal__head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 8px; font-size: 15px; }
.mini-cal__head span { color: var(--brand); font-size: 22px; line-height: 1; }
.mini-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-cal__grid .wd { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding-bottom: 4px; }
.mini-cal__grid button {
  all: unset; cursor: pointer; box-sizing: border-box;
  height: 42px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink);
  transition: background-color .25s, transform .25s var(--ease), color .25s;
}
.mini-cal__grid button:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); transform: translateY(-2px); }
.mini-cal__grid button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.mini-cal__grid button.sel { background: var(--brand); color: #fff; font-weight: 700; }
.mini-cal__grid .pd { display: flex; gap: 2px; height: 6px; }
.mini-cal__grid .pd i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.mini-cal__grid button.sel .pd i { box-shadow: 0 0 0 1.5px #fff; }
.mini-tl { display: flex; flex-direction: column; gap: 7px; }
.mini-tl__row { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: opacity .3s; }
.mini-tl__row span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.mini-tl__row span::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mini-tl__track { position: relative; height: 12px; border-radius: 6px; background: var(--bg-3); }
.mini-tl__track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--c); }
.mini-tl__cursor { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; opacity: .55; transition: left .35s var(--ease); pointer-events: none; }
.mini-tl__row.dim { opacity: .35; }
.mini-cal__info { font-size: 14px !important; color: var(--ink-2) !important; min-height: 44px; }
.mini-cal__info b { color: var(--ink); }
.float__ico.cal { background: linear-gradient(135deg, #0EA5E9, #6366F1); }

.extras { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.extras li {
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.extras li:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--ink); }

/* ==========================================================================
   How it works
   ========================================================================== */
.how { padding: 110px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease) .2s;
  opacity: .6;
}
.steps.in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  width: 70px; height: 70px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 20px; color: var(--brand);
  box-shadow: var(--shadow-1);
  margin-bottom: 24px;
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.step:hover .step__num { transform: translateY(-6px) rotate(-6deg); background: var(--grad); color: #fff; box-shadow: 0 18px 40px -16px rgba(79, 70, 229, .8); }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 330px; margin-inline: auto; }

/* ==========================================================================
   Roles
   ========================================================================== */
.roles { padding: 110px 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.role {
  position: relative;
  padding: 32px 30px 34px; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.role:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); }
.role--featured { background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.role__badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.role h3 { font-size: 22px; margin-bottom: 16px; }
.role ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.role li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.role li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding: 60px 0 120px; }
.cta__box {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; color: #fff;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 36px;
  background: linear-gradient(135deg, #3B4BF0 0%, #4F46E5 40%, #6D28D9 100%);
  box-shadow: 0 40px 100px -40px rgba(79, 70, 229, .8);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 55%); transition: background .2s; }
.cta__logo { margin: 0 auto 26px; border-radius: 20px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .12); transition: transform .8s var(--ease); }
.cta__box:hover .cta__logo { transform: rotate(-8deg) scale(1.06); }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; max-width: 760px; margin-inline: auto; }
.cta p { margin: 18px auto 0; opacity: .85; font-size: 18px; max-width: 560px; }
.cta__actions { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { color: var(--ink-3); font-size: 14px; margin-right: auto; }
.footer nav { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
.footer nav a:hover { color: var(--brand); }
.footer .brand { font-size: 17px; }
.footer .brand img { border-radius: 8px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 18, .72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); animation: fadeIn .35s ease; }
.lightbox__body { position: relative; display: flex; align-items: center; gap: clamp(8px, 3vw, 40px); padding: 20px; max-width: 100%; }
.lightbox__stage { animation: zoomIn .5s var(--ease); }
.lightbox__stage .phone { --pf: min(12.5px, calc((100vh - 60px) / 62), calc((100vw - 48px) / 30)); cursor: default; }
.lightbox__caption { width: 280px; color: #fff; }
.lightbox__caption h3 { font-size: 30px; margin: 10px 0 12px; }
.lightbox__caption p { color: rgba(255, 255, 255, .75); font-size: 17px; }
.lb-count { font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .1em; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); flex: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.08); }
.lb-close { position: fixed; top: 18px; right: 18px; font-size: 18px; z-index: 2; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.88) translateY(20px); } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.1s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__facts { justify-content: center; }
  .hero__visual { min-height: 600px; }
  .float--a { left: -52%; }
  .float--b { right: -44%; }
  .float--c { left: -46%; }
  .problem__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .pain { text-align: left; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--full { grid-column: 1 / -1; }
  .tile--cal { flex-direction: column; }
  .tile--cal .tile__text, .tile--cal .tile__demo { flex: none; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__actions { gap: 8px; }
}

@media (max-width: 560px) {
  /* The hero already has the primary CTA; keep the bar to logo + language + theme. */
  .nav__actions .btn { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { left: 50%; right: auto; top: 35px; bottom: 60px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.in::before { transform: scaleY(1); }
  .step { background: var(--bg); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 100px 0 70px; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__visual { min-height: 0; padding: 10px 0 20px; perspective: none; }
  .hero__stage { transform: none !important; transform-style: flat; }
  .halo { transform: none; }
  .float { transform: none !important; }
  .eyebrow { font-size: 12.5px; white-space: nowrap; }
  .phone.phone--hero { --pf: 8.4px; }
  .float { font-size: 12px; padding: 9px 12px 9px 9px; gap: 9px; }
  .float small { font-size: 11px; }
  .float__ico { width: 30px; height: 30px; font-size: 14px; border-radius: 10px; }
  .float--a { top: auto; bottom: 20%; left: -7%; }
  .float--b, .float--c { display: none; }
  .scroll-cue { display: none; }
  .btn--lg { --pad: 15px 22px; font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .section-head { margin-bottom: 40px; }
  .screens, .features, .how, .roles, .problem { padding: 80px 0; }
  .shot .phone { --pf: 7.4px; }
  .marquee__track { --gap: 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 24px; min-height: 0; }
  .tile--wide, .tile--full { flex-direction: column; align-items: stretch; }
  .tile--wide > *, .tile--full > * { flex: none !important; }
  .tile__demo { min-height: 120px; }
  .pain { grid-template-columns: 44px 1fr; padding: 18px; column-gap: 14px; }
  .pain__ico { width: 44px; height: 44px; font-size: 20px; border-radius: 13px; }
  .lightbox__body { flex-direction: column; gap: 14px; padding: 60px 16px 20px; }
  .lightbox__caption { width: auto; text-align: center; max-width: 340px; order: 2; }
  .lightbox__caption h3 { font-size: 22px; margin: 4px 0 6px; }
  .lightbox__caption p { font-size: 15px; }
  .lightbox__stage { order: 1; }
  .lightbox__stage .phone { --pf: min(9px, calc((100vh - 250px) / 62), calc((100vw - 40px) / 30)); }
  .lb-prev, .lb-next { position: fixed; bottom: 18px; z-index: 2; }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer p { margin: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__track { animation: none; }
  .shot { scroll-snap-align: center; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}
/* ==========================================================================
   Screens section: phone / desktop switch + desktop showcase
   (desktop mockups are generated by landing-src/build.mjs, DESK_SHOWCASE)
   ========================================================================== */
.view-switch-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: -8px auto 44px; text-align: center; }
.view-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.view-switch__btn { all: unset; position: relative; z-index: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 26px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: 999px; transition: color .35s var(--ease); }
.view-switch__btn span { font-size: 16px; }
.view-switch__btn.on { color: #fff; }
.view-switch__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.view-switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7); transition: transform .5s var(--ease); }
.view-switch[data-view="desk"] .view-switch__thumb { transform: translateX(100%); }
.view-note { color: var(--ink-3); font-size: 15px; max-width: 560px; }
.view-note b { color: var(--ink); font-weight: 600; }

.view { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.screens[data-view="phone"] .view--desk,
.screens[data-view="desk"] .view--phone { display: none; }
.view.is-entering { opacity: 0; transform: translateY(16px); }

/* ---------- Browser frame ---------- */
.desk { --df: min(9.6px, calc((100vw - 48px) / 116)); display: flex; flex-direction: column; align-items: center; gap: 26px; }
.browser { width: calc(var(--df) * 116); border-radius: calc(var(--df) * 1.4); overflow: hidden; background: var(--phone-frame); box-shadow: var(--shadow-2), 0 0 0 1px var(--line-2); }
.browser__bar { display: flex; align-items: center; gap: 14px; height: calc(var(--df) * 4.2); padding: 0 calc(var(--df) * 1.6); background: #1F2236; }
.browser__dots { display: flex; gap: calc(var(--df) * .7); }
.browser__dots i { width: calc(var(--df) * 1.2); height: calc(var(--df) * 1.2); border-radius: 50%; background: #FF5F57; }
.browser__dots i:nth-child(2) { background: #FEBC2E; } .browser__dots i:nth-child(3) { background: #28C840; }
.browser__url { flex: 1; max-width: calc(var(--df) * 60); margin: 0 auto; height: calc(var(--df) * 2.7); display: flex; align-items: center; gap: 4px; padding: 0 calc(var(--df) * 1.4); border-radius: 999px; background: #2B2F48; color: #A9AFC8; font-size: calc(var(--df) * 1.2); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; }
.browser__url span { color: #EEF0FA; } .browser__url em { font-style: normal; color: #A5B4FC; }
.browser__sp { width: calc(var(--df) * 5); }
.browser__screen { position: relative; height: calc(var(--df) * 66); background: var(--a-bg); }
.dslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility .6s; }
.dslide.on { opacity: 1; visibility: visible; transform: none; }

/* ---------- Desktop app (all sizes in em of --df) ---------- */
.dapp { font-size: var(--df); display: flex; height: 100%; color: var(--a-text); font-family: var(--font-body); text-align: left; }
.dapp .ic { width: 1.35em; height: 1.35em; vertical-align: -0.3em; }
.dapp b { font-weight: 600; }
.dapp .d-side { width: 20em; flex: none; display: flex; flex-direction: column; gap: 1.2em; padding: 1.8em 1.2em 1.4em; background: var(--a-surface); border-right: 1px solid var(--a-border); }
.dapp .d-brand { display: flex; align-items: center; gap: .8em; padding: 0 .6em; }
.dapp .d-brand img { width: 3em; height: 3em; border-radius: .8em; }
.dapp .d-brand b { display: block; font-size: 1.4em; } .d-brand small { font-size: 1.05em; color: var(--a-text-2); }
.dapp .d-navs { display: flex; flex-direction: column; gap: .2em; }
.dapp .d-nav { display: flex; align-items: center; gap: 1em; padding: .85em 1em; border-radius: .8em; font-size: 1.25em; color: var(--a-text); }
.dapp .d-nav .ic { color: var(--a-text-2); }
.dapp .d-nav em { flex: 1; font-style: normal; }
.dapp .d-nav.on { background: var(--a-primary-soft); color: var(--a-primary); font-weight: 600; }
.dapp .d-nav.on .ic { color: var(--a-primary); }
.dapp .d-bdg { font-size: .8em; min-width: 1.5em; height: 1.5em; line-height: 1.5em; text-align: center; border-radius: 1em; background: var(--a-err); color: #fff; }
.dapp .d-pin-l { font-size: .95em; font-weight: 700; letter-spacing: .06em; color: var(--a-text-2); text-transform: uppercase; padding: 0 .8em; }
.dapp .d-pin { display: flex; align-items: center; gap: .6em; padding: .8em 1em; border-radius: .8em; background: var(--a-primary-soft); color: var(--a-primary); font-size: 1.1em; font-weight: 600; }
.dapp .d-pin em { flex: 1; font-style: normal; }
.dapp .d-grow { flex: 1; }
.dapp .d-user { display: flex; align-items: center; gap: .8em; padding: .9em .6em 0; border-top: 1px solid var(--a-border); }
.dapp .d-user div { flex: 1; } .d-user b { display: block; font-size: 1.2em; } .d-user small { font-size: 1em; color: var(--a-text-2); }
.dapp .d-av { width: 3em; height: 3em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--a-primary-light); color: var(--a-primary); font-weight: 700; font-size: 1.1em; }
.dapp .d-av.sm { width: 2.4em; height: 2.4em; font-size: .95em; }
.dapp .d-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dapp .d-top { height: 5.4em; flex: none; display: flex; align-items: center; gap: 1em; padding: 0 2.6em; background: var(--a-surface); border-bottom: 1px solid var(--a-border); }
.dapp .d-search { width: 36em; height: 3.3em; display: flex; align-items: center; gap: .8em; padding: 0 1em; border: 1px solid var(--a-border); border-radius: .8em; background: var(--a-bg); color: var(--a-text-3); font-size: 1.1em; }
.dapp .d-search span { flex: 1; }
.dapp .d-search kbd { font-family: var(--font-body); font-size: .85em; font-weight: 600; padding: .1em .5em; border: 1px solid var(--a-border); border-radius: .4em; color: var(--a-text-2); background: var(--a-surface); }
.dapp .d-search.sm { width: auto; height: 2.9em; margin: 0 0 .2em; }
.dapp .d-search.w { width: 28em; }
.dapp .d-ib { position: relative; width: 3.3em; height: 3.3em; display: grid; place-items: center; border: 1px solid var(--a-border); border-radius: .8em; font-weight: 700; font-size: 1.1em; color: var(--a-text); }
.dapp .d-dot { position: absolute; top: -.5em; right: -.5em; font-size: .75em; min-width: 1.6em; height: 1.6em; line-height: 1.6em; border-radius: 1em; text-align: center; background: var(--a-primary); color: #fff; }
.dapp .d-new { display: inline-flex; align-items: center; gap: .5em; height: 3.3em; padding: 0 1.3em; border-radius: .8em; background: var(--a-primary); color: #fff; font-weight: 600; font-size: 1.15em; }
.dapp .d-body { flex: 1; min-height: 0; overflow: hidden; padding: 2.2em 2.6em; display: flex; flex-direction: column; gap: 1.5em; }
.dapp .d-hello { display: flex; align-items: flex-end; justify-content: space-between; }
.dapp .d-hello h4, .dapp .c-head h4 { font-family: var(--font-display); font-size: 2.3em; margin: 0; color: var(--a-text); letter-spacing: -.01em; }
.dapp .d-hello small { font-size: 1.15em; color: var(--a-text-2); }
.dapp .d-role { font-size: 1em; font-weight: 700; color: #fff; background: var(--a-role-bg); padding: .35em .9em; border-radius: 1em; }
.dapp .d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4em; }
.dapp .d-stats > div { padding: 1.3em 1.5em; border-radius: 1em; border: 1px solid var(--a-border); background: var(--a-surface); }
.dapp .d-stats small { display: block; font-size: 1.05em; color: var(--a-text-2); }
.dapp .d-stats b { font-size: 2.6em; font-family: var(--font-display); font-weight: 700; }
.dapp .d-stats .pri { color: var(--a-primary); }
.dapp .d-stats .red { border-color: var(--st-open-bd); } .d-stats .red b { color: var(--a-err); }
.dapp .d-stats .amb { border-color: #F59E0B; } .d-stats .amb b { color: #EA580C; }
.dapp .d-cols { flex: 1; min-height: 0; display: flex; gap: 1.6em; }
.dapp .dk-card { border: 1px solid var(--a-border); border-radius: 1.1em; background: var(--a-surface); padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: .9em; }
.dapp .d-tasks { flex: 7; min-width: 0; overflow: hidden; }
.dapp .d-side-col { flex: 3; min-width: 25em; display: flex; flex-direction: column; gap: 1.4em; }
.dapp .d-ch { display: flex; align-items: center; justify-content: space-between; }
.dapp .d-ch b { font-size: 1.5em; font-family: var(--font-display); }
.dapp .d-od { font-size: 1.05em; font-weight: 600; color: var(--a-err); background: var(--a-err-soft); padding: .35em .9em; border-radius: 1em; display: inline-flex; gap: .4em; align-items: center; }
.dapp .pri-t { color: var(--a-primary); font-weight: 600; }
.dapp .dk-card .pri-t { font-size: 1.1em; }
.dapp .d-chips { display: flex; flex-wrap: wrap; gap: .6em; }
.dapp .d-chips span { display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 1.4em; border: 1px solid var(--a-border); background: var(--a-surface); font-size: 1.1em; font-weight: 500; }
.dapp .d-chips i { width: .75em; height: .75em; border-radius: 50%; background: var(--c); }
.dapp .d-chips .on { background: var(--a-primary); border-color: var(--a-primary); color: #fff; font-weight: 600; }
.dapp .d-chips .sel2 { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.dapp .d-chips .sel2 i { box-shadow: 0 0 0 1px #fff; }
.dapp .d-chips .srch { border-style: dashed; border-color: var(--a-primary); color: var(--a-primary); background: var(--a-primary-soft); font-weight: 600; }
.dapp .d-grp { display: flex; align-items: center; gap: .6em; font-size: 1.05em; font-weight: 700; letter-spacing: .04em; color: var(--a-primary); margin-top: .3em; }
.dapp .d-grp small { color: var(--a-text-3); font-weight: 500; }
.dapp .d-row { position: relative; display: flex; align-items: center; gap: 1.2em; padding: .75em 1em .75em 0; border-radius: .8em; }
.dapp .d-row.od { background: color-mix(in srgb, var(--st-open-bg) 55%, transparent); }
.dapp .d-row.hov { background: var(--a-primary-soft); }
.dapp .d-bar { width: .35em; align-self: stretch; border-radius: .2em; flex: none; }
.dapp .d-bar.st-open { background: var(--st-open-bd); } .d-bar.st-prog { background: var(--st-prog-bd); } .d-bar.st-done { background: var(--st-done-bd); }
.dapp .d-prio { display: inline-flex; align-items: center; gap: .45em; width: 8.5em; flex: none; padding: .3em .7em; border-radius: .5em; font-size: .95em; font-weight: 700; }
.dapp .d-prio i { width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.dapp .d-prio.pr1 { background: var(--pr1-bg); color: var(--pr1-fg); } .d-prio.pr2 { background: var(--pr2-bg); color: var(--pr2-fg); }
.dapp .d-prio.pr3 { background: var(--pr3-bg); color: var(--pr3-fg); } .d-prio.pr4 { background: var(--pr4-bg); color: var(--pr4-fg); }
.dapp .d-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35em; }
.dapp .d-rt > b { font-size: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dapp .d-rt > div, .dapp .t-m { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.dapp .d-st { font-size: .95em; font-weight: 700; padding: .15em .6em; border-radius: .9em; border: 1px solid; }
.dapp .d-st.st-open { background: var(--st-open-bg); color: var(--st-open-fg); border-color: var(--st-open-bd); }
.dapp .d-st.st-prog { background: var(--st-prog-bg); color: var(--st-prog-fg); border-color: var(--st-prog-bd); }
.dapp .d-cat { display: inline-flex; align-items: center; gap: .4em; font-size: 1em; color: var(--c); }
.dapp .d-cat i { width: .6em; height: .6em; border-radius: 50%; background: var(--c); }
.dapp .d-due { width: 10.5em; flex: none; font-size: 1.1em; color: var(--a-text-2); display: inline-flex; gap: .4em; align-items: center; }
.dapp .d-due.red, .dapp small.red, .dapp .red { color: var(--a-err); font-weight: 600; }
.dapp .d-avs { width: 5em; flex: none; display: flex; }
.dapp .d-avs i { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .9em; font-weight: 700; background: var(--a-primary-light); color: var(--a-primary); border: 2px solid var(--a-surface); margin-left: -.7em; }
.dapp .d-avs i:first-child { margin-left: 0; }
.dapp .d-cnt { width: 4.5em; flex: none; color: var(--a-text-2); font-size: 1.05em; display: inline-flex; gap: .3em; align-items: center; }
.dapp .d-acts { display: flex; gap: .6em; flex: none; }
.dapp .d-acts em { font-style: normal; font-size: 1em; font-weight: 700; padding: .45em .9em; border-radius: .6em; border: 1px solid; background: var(--a-surface); display: inline-flex; gap: .4em; align-items: center; }
.dapp .d-acts .st-done { color: var(--st-done-fg); border-color: var(--st-done-bd); }
.dapp .d-acts .pri { color: var(--a-primary); border-color: var(--a-primary); background: var(--a-primary-soft); }
.dapp .d-sub { font-size: .95em; font-weight: 700; letter-spacing: .06em; color: var(--a-text-2); }
.dapp .d-up { display: flex; gap: 1em; align-items: center; }
.dapp .d-up b { display: block; font-size: 1.2em; } .d-up small { font-size: 1em; color: var(--a-text-2); }
.dapp .d-date { width: 4.6em; height: 4.6em; flex: none; border-radius: .9em; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.dapp .d-date small { font-size: .6em; letter-spacing: .05em; }
.dapp .d-chk { display: flex; gap: .7em; align-items: center; font-size: 1.15em; }
.dapp .d-chk .ic { color: var(--a-text-3); }
.dapp .d-chk.done { color: var(--a-text-3); text-decoration: line-through; } .d-chk.done .ic { color: var(--a-accent); }
.dapp .mut { color: var(--a-text-2); display: inline-flex; gap: .3em; align-items: center; font-size: 1em; }

/* topics master-detail */
.dapp .d-split { flex: 1; min-height: 0; display: flex; }
.dapp .t-list { width: 36em; flex: none; border-right: 1px solid var(--a-border); padding: 1.6em 1.6em; display: flex; flex-direction: column; gap: 1em; overflow: hidden; }
.dapp .tk-head { display: flex; align-items: center; gap: .8em; font-family: var(--font-display); font-size: 1.8em; }
.dapp .t-add { text-align: center; padding: .8em; border: 1.5px solid var(--a-primary); border-radius: .9em; color: var(--a-primary); font-weight: 600; font-size: 1.2em; }
.dapp .tk-card { display: flex; gap: .9em; padding: 1em 1.1em 1em 0; border: 1px solid var(--a-border); border-radius: 1em; background: var(--a-surface); overflow: hidden; }
.dapp .tk-card.sel { border: 2px solid var(--a-primary); background: var(--a-primary-soft); }
.dapp .tk-card > div { flex: 1; display: flex; flex-direction: column; gap: .5em; min-width: 0; }
.dapp .tk-card small { font-size: 1em; color: var(--a-text-2); display: inline-flex; gap: .3em; align-items: center; }
.dapp .t-h { display: flex; align-items: center; gap: .7em; }
.dapp .t-h .d-prio { width: auto; }
.dapp .t-h b { font-size: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dapp .t-h b.big { font-size: 1.6em; }
.dapp .t-detail { flex: 1; min-width: 0; padding: 1.6em 3em; display: flex; flex-direction: column; gap: 1.1em; overflow: hidden; }
.dapp .t-hd { border-left: .4em solid var(--st-prog-bd); }
.dapp .t-hd p { margin: 0; font-size: 1.2em; color: var(--a-text-2); line-height: 1.5; }
.dapp .t-hd small { font-size: 1.05em; display: inline-flex; gap: .4em; align-items: center; }
.dapp .t-acts { display: flex; gap: 1.4em; align-items: center; padding-top: .9em; border-top: 1px solid var(--a-border); font-size: 1.1em; }
.dapp .t-stbtn { padding: .4em 1em; border: 1.5px solid var(--a-primary); border-radius: 1.2em; color: var(--a-primary); font-weight: 700; }
.dapp .t-people { display: flex; gap: .7em; flex-wrap: wrap; }
.dapp .t-people span { display: inline-flex; gap: .4em; align-items: center; padding: .35em .9em; border: 1px solid var(--a-primary-light); background: var(--a-primary-soft); color: var(--a-primary); border-radius: 1.2em; font-size: 1.1em; }
.dapp .t-addu { text-align: center; padding: .85em; border: 1.5px solid var(--a-primary); border-radius: .9em; color: var(--a-primary); font-weight: 700; font-size: 1.3em; }
.dapp .t-log { flex-direction: row; gap: 1em; align-items: flex-start; }
.dapp .t-log b { display: block; font-size: 1.15em; } .t-log small { font-size: .95em; color: var(--a-text-2); }
.dapp .t-log p { margin: .4em 0 0; font-size: 1.15em; }

/* calendar */
.dapp .c-head { display: flex; align-items: center; }
.dapp .c-cols { flex: none; }
.dapp .c-grid { flex: 1; min-width: 0; padding: 1.2em 1.6em; }
.dapp .c-mh { display: flex; justify-content: space-between; align-items: center; font-size: 1.4em; color: var(--a-primary); }
.dapp .c-mh b { color: var(--a-text); font-family: var(--font-display); }
.dapp .c-days, .dapp .c-cells { display: grid; grid-template-columns: repeat(7, 1fr); }
.dapp .c-days span { text-align: center; font-size: 1em; color: var(--a-text-2); }
.dapp .c-cell { height: 4.6em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; border-radius: .6em; margin: .1em; }
.dapp .c-cell b { font-weight: 500; font-size: 1.2em; }
.dapp .c-cell em { display: flex; gap: .25em; height: .6em; }
.dapp .c-cell em i { width: .55em; height: .55em; border-radius: 50%; background: var(--c); }
.dapp .c-cell.sel { background: var(--a-primary-light); } .c-cell.sel b { color: #fff; font-weight: 700; }
:root[data-theme="dark"] .dapp .c-cell.sel b { color: var(--a-text); }
.dapp .c-cell.today b { color: var(--a-primary); font-weight: 700; }
.dapp .c-day { width: 32em; flex: none; }
.dapp .c-date { font-size: 1.3em; color: var(--a-text-2); }
.dapp .c-item { display: flex; gap: .8em; align-items: center; padding: .5em 0 .5em .9em; border-left: .3em solid var(--c); font-size: 1.15em; }
.dapp .c-item b { display: block; } .c-item small { font-size: .85em; color: var(--a-primary); }
.dapp .c-tl { gap: .5em; }
.dapp .c-tr { display: flex; align-items: center; gap: .2em; }
.dapp .c-tn { width: 13em; flex: none; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dapp .c-tr > i { flex: 1; height: 1.9em; border-radius: .25em; background: var(--a-surface-2); font-style: normal; }
.dapp .c-tr > i.on { background: var(--c); }
.dapp .c-ax > i { background: none; height: auto; text-align: center; font-size: .8em; color: var(--a-text-3); }

/* projects grid */
.dapp .p-tool { display: flex; align-items: center; gap: 1.4em; }
.dapp .d-seg { display: flex; border: 1.5px solid var(--a-primary); border-radius: .8em; overflow: hidden; }
.dapp .d-seg span { padding: .6em 1.6em; font-size: 1.15em; color: var(--a-text-2); }
.dapp .d-seg .on { background: var(--a-primary); color: #fff; }
.dapp .pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.dapp .pc { border: 1px solid var(--a-border); border-radius: 1.1em; background: var(--a-surface); padding: 1.1em 1.4em 1.3em; display: flex; flex-direction: column; gap: .55em; }
.dapp .pc.pin { border: 2px solid var(--a-primary); }
.dapp .pc > small { font-size: .85em; color: var(--a-text-3); }
.dapp .pc-m { display: flex; gap: .8em; flex-wrap: wrap; font-size: .95em; }
.dapp .pc-n { display: flex; justify-content: space-between; align-items: center; }
.dapp .pc-n b { font-size: 1.4em; }
.dapp .pc .mut { font-size: 1em; }
.dapp .pc-c { display: flex; gap: 1.2em; font-size: 1.05em; font-weight: 700; }
.dapp .pc-c span { display: inline-flex; gap: .3em; align-items: center; }

/* tabs under the browser */
.desk-tabs { width: calc(var(--df) * 116); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.desk-tab { all: unset; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.desk-tab b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.desk-tab span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.desk-tab:hover { transform: translateY(-3px); }
.desk-tab.on { border-color: var(--brand); background: var(--bg-2); box-shadow: var(--shadow-1); }
.desk-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.desk-tab__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.desk-tab.on .desk-tab__bar { animation: deskProgress var(--desk-dur, 6s) linear forwards; }
.desk.is-paused .desk-tab.on .desk-tab__bar { animation-play-state: paused; }
@keyframes deskProgress { to { width: 100%; } }

@media (max-width: 760px) {
  .view-switch__btn { padding: 9px 18px; font-size: 14px; }
  .desk-tabs { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .desk-tab span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dslide, .view, .view-switch__thumb { transition: none; }
  .desk-tab.on .desk-tab__bar { animation: none; width: 100%; }
}
.dapp .t-acts span { display: inline-flex; align-items: center; gap: .4em; }
