@font-face{font-family:Figtree;src:url("figtree.woff2") format("woff2");font-style:normal;font-weight:400 800;font-display:swap}

:root {
  --brand: #9146ff;
  --brand-deep: #6b2fd0;
  --brand-soft: #b58bff;
  --ok: #1fa971;
  --warn: #e08a1e;
  --bad: #e5484d;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------ tokens */

.dir-a {
  --bg: #fff;
  --bg-grad: linear-gradient(180deg, #e9deff 0%, #f5eeff 34%, #ffffff 72%);
  --surface: #ffffff;
  --surface-2: #f4eefd;
  --surface-3: #ebe2fb;
  --ink: #241a3a;
  --ink-2: #6a5f82;
  --ink-3: #9a90b0;
  --line: rgba(80, 40, 160, 0.1);
  --accent: var(--brand);
  --accent-ink: #fff;
  --accent-text: #7a2fe6;
  --r-card: 28px;
  --r-ctl: 999px;
  --r-sm: 18px;
  --shadow-card: 0 14px 34px -16px rgba(110, 60, 200, 0.32), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --shadow-btn: 0 12px 26px -10px rgba(145, 70, 255, 0.7);
  --font: 'Figtree', system-ui, sans-serif;
  --font-display: 'Figtree', system-ui, sans-serif;
  --ok-bg: #dff6ea; --ok-ink: #12714b;
  --warn-bg: #ffecd0; --warn-ink: #9a5a05;
  --bad-bg: #ffe1e2; --bad-ink: #b3262c;
  --brand-bg: #eadfff; --brand-ink: #5e22c2;
  --tab-bg: rgba(255, 255, 255, 0.92);
  --skel-a: #ece4fa; --skel-b: #f8f4ff;
  --ring-track: #e6dcf8;
  --sb-ink: #1a1230;
}

.dir-b {
  --bg: #0b0a12;
  --bg-grad: linear-gradient(180deg, #0b0a12, #0b0a12);
  --surface: #17141f;
  --surface-2: #1f1b2b;
  --surface-3: #29243a;
  --ink: #f5f2fb;
  --ink-2: #a8a1bd;
  --ink-3: #6f6885;
  --line: rgba(255, 255, 255, 0.07);
  --accent: var(--brand);
  --accent-ink: #fff;
  --accent-text: #b58bff;
  --r-card: 22px;
  --r-ctl: 16px;
  --r-sm: 14px;
  --shadow-card: none;
  --shadow-btn: 0 10px 30px -8px rgba(145, 70, 255, 0.55);
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --ok-bg: rgba(48, 209, 138, 0.14); --ok-ink: #4ae0a0;
  --warn-bg: rgba(255, 176, 64, 0.14); --warn-ink: #ffb84d;
  --bad-bg: rgba(255, 92, 100, 0.15); --bad-ink: #ff7a80;
  --brand-bg: rgba(145, 70, 255, 0.2); --brand-ink: #c7a6ff;
  --tab-bg: rgba(14, 12, 22, 0.92);
  --skel-a: #1d1928; --skel-b: #2a2438;
  --ring-track: #2a2438;
  --sb-ink: #fff;
  color-scheme: dark;
}

.dir-c {
  --bg: #faf7f2;
  --bg-grad: linear-gradient(180deg, #faf7f2, #faf7f2);
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --surface-3: #e9e2d6;
  --ink: #1d1a24;
  --ink-2: #5f5a6b;
  --ink-3: #9a95a6;
  --line: rgba(29, 26, 36, 0.1);
  --accent: var(--brand);
  --accent-ink: #fff;
  --accent-text: #6b2fd0;
  --r-card: 24px;
  --r-ctl: 16px;
  --r-sm: 14px;
  --shadow-card: none;
  --shadow-btn: 0 4px 0 #6b2fd0;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --lilac: #e9e1ff; --peach: #ffe3d3; --mint: #ddf5e8; --butter: #fff2c2;
  --ok-bg: #ddf5e8; --ok-ink: #14663f;
  --warn-bg: #fff2c2; --warn-ink: #7a5a00;
  --bad-bg: #ffe3d3; --bad-ink: #a63a14;
  --brand-bg: #e9e1ff; --brand-ink: #4f1fa8;
  --tab-bg: #1d1a24;
  --skel-a: #eee8dd; --skel-b: #f8f4ec;
  --ring-track: #e9e2d6;
  --sb-ink: #1d1a24;
}

/* ------------------------------------------------------------- page chrome */

body.kit-page {
  margin: 0;
  background: #f1eef6;
  font-family: 'Figtree', system-ui, sans-serif;
  color: #241a3a;
  padding: 32px 40px 80px;
  -webkit-font-smoothing: antialiased;
}
.kit-head { max-width: 1480px; margin: 0 auto 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 50; background: rgba(241, 238, 246, 0.92); backdrop-filter: blur(10px); padding: 14px 0; }
.kit-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.kit-head .sub { margin: 2px 0 0; font-size: 13px; color: #6a5f82; }
.kit-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.kit-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; color: #4b3a72; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid rgba(80, 40, 160, 0.12); }
.kit-tabs a:hover, .kit-tabs a.on { background: #9146ff; color: #fff; border-color: #9146ff; }
.state-row { max-width: 1480px; margin: 0 auto 56px; scroll-margin-top: 90px; }
.state-row > h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.state-row > .note { margin: 0 0 18px; font-size: 12px; color: #7d7296; }
.trio { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.phone-cell { zoom: var(--zoom, 0.8); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-cap { font-size: 13px; line-height: 1.3; color: #6a5f82; text-align: center; max-width: 380px; font-weight: 500; }
.phone-cap b { color: #241a3a; font-weight: 700; margin-right: 6px; }

/* --------------------------------------------------------------- the phone */

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  box-sizing: content-box;
  padding: 11px;
  border-radius: 66px;
  background: #0d0c11;
  box-shadow: inset 0 0 0 2px #34323b, 0 40px 70px -28px rgba(40, 10, 100, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.3);
  flex: none;
}
.phone::before {
  content: '';
  position: absolute; z-index: 90;
  top: 22px; left: 50%; width: 124px; height: 36px;
  border-radius: 20px; background: #000;
  transform: translateX(-50%);
}
.phone::after {
  content: '';
  position: absolute; z-index: 90;
  bottom: 19px; left: 50%; width: 136px; height: 5px;
  border-radius: 99px; background: var(--ink, #000);
  transform: translateX(-50%);
  opacity: 0.9;
}
.screen {
  position: relative;
  width: 390px; height: 844px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--bg-grad);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.sb {
  position: absolute; z-index: 80; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px 0 50px;
  color: var(--sb-ink);
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  pointer-events: none;
}
.sb-r { display: flex; gap: 6px; align-items: center; }
.sb-r svg { display: block; fill: currentColor; }
.sb.light { --sb-ink: #fff; }
.body { position: absolute; top: 54px; left: 0; right: 0; bottom: 0; padding: 0 20px; overflow: hidden; display: flex; flex-direction: column; }
.has-tabs .body { bottom: 92px; }
.body.flush { padding-left: 0; padding-right: 0; }

/* ------------------------------------------------------------------ type */

.t-large { font-family: var(--font-display); font-size: 32px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.dir-c .t-large { font-weight: 400; font-size: 40px; letter-spacing: -0.01em; }
.t-h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dir-c .t-h1 { font-weight: 400; font-size: 36px; letter-spacing: -0.01em; }
.t-h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.dir-c .t-h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.t-sub { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.35; }
.t-cap { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.02em; }
.t-over { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; letter-spacing: -0.02em; }
.num-xl { font-size: 72px; line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dir-c .num-xl { font-family: var(--font-display); font-weight: 400; font-size: 84px; letter-spacing: -0.02em; }
.num-lg { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dir-c .num-lg { font-family: var(--font-display); font-weight: 400; font-size: 46px; }
.num-md { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alias { font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alias b { color: var(--accent-text); font-weight: 600; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.ink-2 { color: var(--ink-2); } .ink-3 { color: var(--ink-3); }

/* ---------------------------------------------------------------- layout */

.stack { display: flex; flex-direction: column; }
.hstack { display: flex; align-items: center; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; }
.grow { flex: 1 1 0; min-width: 0; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt-auto { margin-top: auto; }
.pb-cta { padding-bottom: 44px; }
.ic { display: inline-block; width: 24px; height: 24px; flex: none; }
.ic svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 18px; height: 18px; } .ic.lg { width: 28px; height: 28px; }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.sect-h .link { font-size: 14px; font-weight: 600; color: var(--accent-text); }

/* ------------------------------------------------------------------- nav */

.nav { display: flex; align-items: center; justify-content: space-between; height: 48px; flex: none; }
.nav-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); flex: none; }
.dir-a .nav-btn { background: var(--surface); box-shadow: 0 6px 16px -8px rgba(110, 60, 200, 0.4); }
.dir-b .nav-btn { background: var(--surface); }
.dir-c .nav-btn { background: var(--surface); border: 1.5px solid var(--line); }
.nav-title { font-weight: 700; font-size: 17px; }

/* ------------------------------------------------------------- tab bar */

.tabbar { position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; height: 92px; padding: 8px 10px 34px; display: flex; justify-content: space-around; align-items: flex-start; background: var(--tab-bg); }
.dir-a .tabbar { border-top: 1px solid var(--line); backdrop-filter: blur(20px); }
.dir-b .tabbar { border-top: 1px solid var(--line); backdrop-filter: blur(24px); }
.dir-c .tabbar { left: 16px; right: 16px; bottom: 26px; height: 64px; padding: 6px; border-radius: 32px; align-items: center; box-shadow: 0 18px 30px -14px rgba(29, 26, 36, 0.5); }
.dir-c .has-tabs .body { bottom: 0; padding-bottom: 104px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; color: var(--ink-3); font-size: 11px; font-weight: 600; position: relative; min-height: 44px; }
.tab .ic { width: 26px; height: 26px; }
.tab.on { color: var(--accent-text); }
.dir-a .tab.on .ic { background: var(--brand-bg); border-radius: 12px; padding: 3px 12px; width: 52px; height: 30px; margin-bottom: -2px; }
.dir-b .tab.on { color: #fff; }
.dir-b .tab.on .ic { filter: drop-shadow(0 0 8px rgba(145, 70, 255, 0.9)); color: var(--brand-soft); }
.dir-c .tab { color: #b7b0c7; flex-direction: row; justify-content: center; height: 52px; border-radius: 26px; padding: 0; gap: 6px; }
.dir-c .tab span { display: none; }
.dir-c .tab.on { background: var(--lilac); color: #1d1a24; flex: 1.9; }
.dir-c .tab.on span { display: inline; font-size: 13px; }
.tab .dot { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* --------------------------------------------------------------- buttons */

.btn { appearance: none; border: 0; font: inherit; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: var(--r-ctl); cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s; white-space: nowrap; text-decoration: none; }
.btn:active, .press:active { transform: scale(0.96); }
.btn-block { width: 100%; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }
.dir-c .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #6b2fd0; }
.dir-c .btn { font-weight: 700; }
.btn-secondary { background: var(--surface-2); color: var(--ink); }
.dir-a .btn-secondary { background: #fff; box-shadow: 0 8px 20px -12px rgba(110, 60, 200, 0.5); color: var(--accent-text); }
.dir-b .btn-secondary { background: var(--surface-3); }
.dir-c .btn-secondary { background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--accent-text); height: 44px; }
.btn-danger { background: var(--bad-bg); color: var(--bad-ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }

/* ----------------------------------------------------------------- cards */

.card { background: var(--surface); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-card); position: relative; }
.dir-b .card { border: 1px solid var(--line); }
.dir-c .card { border: 1.5px solid var(--line); }
.card.flat { box-shadow: none; background: var(--surface-2); border: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.list { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.dir-b .list { border: 1px solid var(--line); }
.dir-c .list { border: 1.5px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 72px; right: 0; height: 1px; background: var(--line); }
.row.nosep::before { display: none; }
.row-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); flex: none; overflow: hidden; }
.dir-a .row-ic { border-radius: 50%; background: var(--brand-bg); }
.row-ic img { width: 150%; height: 150%; object-fit: contain; }
.row-main { flex: 1; min-width: 0; }
.row-t { font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-s { font-size: 13px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.unread::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* bento / tiles (C) */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento .span2 { grid-column: span 2; }
.tile { position: relative; border-radius: var(--r-card); padding: 16px; overflow: hidden; min-height: 150px; color: #1d1a24; display: flex; flex-direction: column; }
.t-lilac { background: var(--lilac, #e9e1ff); } .t-peach { background: var(--peach, #ffe3d3); } .t-mint { background: var(--mint, #ddf5e8); } .t-butter { background: var(--butter, #fff2c2); }
.tile .tile-art { position: absolute; right: -10px; bottom: -12px; width: 62%; filter: drop-shadow(0 12px 12px rgba(29, 26, 36, 0.18)); }
.tile .tile-t { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.tile .tile-n { font-family: var(--font-display); font-size: 54px; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- chips */

.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; flex: none; }
.dir-b .chip { border-radius: 8px; height: 24px; }
.chip .ic { width: 14px; height: 14px; }
.chip-ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip-bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip-brand { background: var(--brand-bg); color: var(--brand-ink); }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-lg { height: 32px; padding: 0 14px; font-size: 14px; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- segmented / toggle */

.seg { display: flex; padding: 4px; border-radius: var(--r-ctl); background: var(--surface-2); gap: 2px; }
.dir-b .seg { border-radius: 14px; }
.seg > * { flex: 1; height: 38px; display: grid; place-items: center; border-radius: calc(var(--r-ctl) - 4px); font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 38px; }
.dir-b .seg > * { border-radius: 10px; }
.seg > .on { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35); }
.dir-b .seg > .on { background: var(--surface-3); color: #fff; }
.dir-c .seg > .on { background: var(--ink); color: #fff; box-shadow: none; }
.toggle { width: 52px; height: 32px; border-radius: 16px; background: var(--surface-3); position: relative; flex: none; transition: background 0.25s; display: inline-block; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.4s var(--spring); }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(20px); }
.dir-b .toggle { background: #3a3450; }
.dir-b .toggle.on { background: var(--accent); }

/* ---------------------------------------------------------------- inputs */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { height: 56px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--line); padding: 0 16px; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--ink); }
.dir-a .input { background: #fff; box-shadow: var(--shadow-card); border-color: transparent; }
.dir-b .input { background: var(--surface-2); border-color: transparent; }
.input.focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(145, 70, 255, 0.18); }
.input.err { border-color: var(--bad); }
.input .ph { color: var(--ink-3); }
.caret { width: 2px; height: 22px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.field-err { font-size: 13px; color: var(--bad-ink); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.otp { display: flex; gap: 10px; justify-content: center; }
.otp > * { width: 48px; height: 60px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 26px; font-weight: 600; }
.dir-a .otp > * { box-shadow: var(--shadow-card); border-color: transparent; }
.dir-b .otp > * { background: var(--surface-2); border-color: transparent; }
.otp > .on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(145, 70, 255, 0.18); }
.otp.err > * { border-color: var(--bad); animation: shake 0.4s; }

/* ----------------------------------------------------------------- sheet */

.scrim { position: absolute; inset: 0; z-index: 50; background: rgba(20, 10, 40, 0.42); animation: fade 0.3s both; }
.dir-b .scrim { background: rgba(0, 0, 0, 0.6); }
.sheet { position: absolute; z-index: 60; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 34px 34px 0 0; padding: 10px 20px 40px; animation: sheetUp 0.5s var(--ease) both; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.35); }
.dir-b .sheet { background: #1b1727; border-top: 1px solid var(--line); }
.dir-c .sheet { background: #faf7f2; border-radius: 32px 32px 0 0; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: 0.4; margin: 0 auto 16px; }

/* ----------------------------------------------------------------- toast */

.toast { position: absolute; z-index: 70; left: 16px; right: 16px; bottom: 112px; height: 56px; padding: 0 8px 0 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; animation: toastIn 0.5s var(--ease) both; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.dir-a .toast { border-radius: 28px; }
.dir-b .toast { background: #2a2540; color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.toast .undo { margin-left: auto; height: 44px; padding: 0 14px; display: grid; place-items: center; color: var(--brand-soft); font-weight: 800; }
.dir-c .toast .undo { color: #c9b0ff; }

/* -------------------------------------------------------------- skeleton */

.skel { background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; border-radius: 10px; }
.skel.circle { border-radius: 50%; }
.skel.line { height: 14px; } .skel.line.sm { height: 10px; }
.skel.block { border-radius: var(--r-card); }

/* ------------------------------------------------------------------ ring */

.ring { --p: 72; --w: 14px; --d: 160px; position: relative; width: var(--d); height: var(--d); display: grid; place-items: center; flex: none; }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ring-track) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w) + 1px)); }
.dir-b .ring::before { filter: drop-shadow(0 0 10px rgba(145, 70, 255, 0.6)); }
.ring > * { position: relative; text-align: center; }

/* ----------------------------------------------------------- empty state */

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 12px; }
.empty .t-h1 { font-size: 26px; }

/* ----------------------------------------------------------------- hero */

.hero { position: relative; display: grid; place-items: center; }
.hero > img, .hero > canvas, .hero > .rive-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.hero.float > img, .hero.float > canvas { animation: float 5s ease-in-out infinite; }
.hero::after { content: ''; position: absolute; z-index: 1; left: 22%; right: 22%; bottom: 3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 20, 150, 0.35), transparent); animation: floor 5s ease-in-out infinite; }
.dir-b .hero::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.dir-c .hero::after { display: none; }
.hero-glow::before { content: ''; position: absolute; z-index: 0; inset: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(145, 70, 255, 0.5), rgba(145, 70, 255, 0.12) 60%, transparent); filter: blur(10px); }
.dir-a .hero-glow::before { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(190, 150, 255, 0.3) 60%, transparent); }
.hero-h-300 { width: 300px; height: 300px; } .hero-h-240 { width: 240px; height: 240px; } .hero-h-180 { width: 180px; height: 180px; } .hero-h-120 { width: 120px; height: 120px; }
.hero-h-340 { width: 340px; height: 340px; }
.rive-slot { position: relative; display: grid; place-items: center; }
.rive-slot canvas, .rive-slot img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }

.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.4; transition: all 0.3s; }
.dots i.on { width: 22px; border-radius: 4px; background: var(--accent); opacity: 1; }

.search { height: 48px; border-radius: 24px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--ink-3); font-weight: 500; }
.dir-b .search { border-radius: 14px; }
.dir-c .search { border-radius: 16px; background: #fff; border: 1.5px solid var(--line); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand-ink); font-weight: 800; font-size: 15px; flex: none; }
.bar { height: 8px; border-radius: 4px; background: var(--ring-track); overflow: hidden; }
.bar > i { display: block; height: 100%; width: calc(var(--p, 50) * 1%); background: var(--accent); border-radius: 4px; animation: grow 1.2s var(--ease) both; transform-origin: left; }
.divider { height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- motion */

@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }
@keyframes floor { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.82); opacity: 0.7; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes toastIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes checkPop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.js .phone:not(.in) .reveal { animation-play-state: paused; opacity: 0; }
.js .phone:not(.in) .toast, .js .phone:not(.in) .sheet, .js .phone:not(.in) .scrim { animation-play-state: paused; }
.check-pop { animation: checkPop 0.6s var(--spring) both; animation-delay: 0.4s; }
.pulse-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulseRing 2.4s ease-out infinite; }
.pulse-ring.d2 { animation-delay: 0.8s; } .pulse-ring.d3 { animation-delay: 1.6s; }
.spin { animation: spin 1.2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero.float > img, .hero.float > canvas, .hero::after, .skel, .pulse-ring, .spin, .caret, .check-pop, .toast, .sheet, .scrim, .bar > i { animation: none !important; opacity: 1; }
  .btn, .toggle::after { transition: none; }
}

html[data-dir="a"] .phone-cell:has(.phone:not(.dir-a)),
html[data-dir="b"] .phone-cell:has(.phone:not(.dir-b)),
html[data-dir="c"] .phone-cell:has(.phone:not(.dir-c)) { display: none; }
html[data-embed] .kit-head { display: none; }
html[data-embed] body.kit-page { padding-top: 24px; }
html[data-embed] .state-row { scroll-margin-top: 16px; }

/* Consistent service and broker marks across the static landing previews. */
[data-screen] .av.service-avatar { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
[data-screen] .service-avatar img { display: block; width: 28px; height: 28px; object-fit: contain; }
[data-screen] .service-avatar img[data-brand='figma'] { width: 20px; }
