/* berlab.ch landing pages: the parts Studio, Orbit and Atelier share. The dashboard (the product shot), the three little
   demos of the feature cards, and the iPhone with a site inside. They take their colours from the page's own variables
   (--ink, --ink-2, --soft, --faint, --line, --line-2, --line-3, --bg-2, --card, --accent, --accent-ink, --accent-bg, --slate,
   --ok, --ease), so each page dresses them in its own style. Behaviour: parts.js. */

.shot { position: relative; border-radius: 18px; padding: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 50px 140px -40px rgba(30, 41, 59, .18), 0 24px 60px -34px rgba(11, 11, 13, .22);
  transform: rotateX(var(--tilt, 9deg)) scale(var(--grow, .97)); transform-origin: 50% 0; will-change: transform; }
.shot .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce0; }

/* the dashboard in the shot: drawn at 1100 × 640 and scaled to the frame by landing.js (phones show it without the side menu,
   and only computers can click it: .live is set by landing.js) */
.ui-fit { position: relative; overflow: hidden; border-radius: 11px; aspect-ratio: 1100 / 640; background: #fff; border: 1px solid var(--line); }
.ui { position: absolute; top: 0; left: 0; width: 1100px; height: 640px; display: grid; grid-template-columns: 210px 1fr; transform-origin: 0 0; font-size: 13px; color: var(--ink-2); text-align: left; letter-spacing: -.005em; pointer-events: none; user-select: none; -webkit-user-select: none; }
.ui.live { pointer-events: auto; }
.ui svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ui ul { list-style: none; margin: 0; padding: 0; }
.ui button, .ui input { font: inherit; color: inherit; letter-spacing: inherit; }
.ui aside { background: #f7f7f9; border-right: 1px solid var(--line); padding: 16px 12px; }
.ui-ws { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.ui-ws i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); }
.ui aside li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--soft); font-weight: 500; }
.ui aside li svg { width: 16px; height: 16px; }
.ui aside ul { position: relative; }
.ui aside li { position: relative; z-index: 1; transition: color .3s; }
.ui aside li.on { color: var(--ink); }
.live aside li { cursor: pointer; } .live aside li:not(.on):hover { color: var(--ink-2); }
.ui-pill { position: absolute; top: 0; left: 0; right: 0; height: 32px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(11, 11, 13, .06), 0 0 0 1px var(--line);
  transform: translateY(calc(var(--i, 0) * 32px)); transition: transform .5s var(--ease); }
.ui-main { padding: 18px 22px; min-width: 0; background: #fff; display: grid; grid-template-rows: auto 1fr; gap: 14px; overflow: hidden; }
.ui-top { display: flex; align-items: center; gap: 12px; }
.ui-top h4 span { display: inline-block; animation: ui-fade .5s var(--ease); }
.ui-top h4 span[hidden] { display: none; }
.ui-top h4 { margin: 0 auto 0 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.ui-search { display: flex; align-items: center; gap: 7px; width: 210px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--faint); transition: border-color .2s, box-shadow .2s; cursor: text; }
.ui-search svg { width: 14px; height: 14px; flex: none; }
.ui-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; color: var(--ink); }
.ui-search input::placeholder { color: var(--faint); }
.ui-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.ui-btn { height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--ink); color: #fff !important; font-weight: 500; cursor: pointer; transition: background .2s, transform .15s; }
.ui-btn:hover { background: #2a2b31; } .ui-btn:active { transform: scale(.97); }
.ui-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; min-width: 0; }
.ui-ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ui-ch h5 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.ui-tabs { display: flex; padding: 2px; border-radius: 8px; background: var(--bg-2); }
.ui-tabs button { height: 22px; padding: 0 9px; border: 0; border-radius: 6px; background: none; font-size: 11.5px; font-weight: 600; color: var(--soft); cursor: pointer; transition: background .2s, color .2s; }
.ui-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 11, 13, .1); }
.ui-tabs button:not(.on):hover { color: var(--ink); }
.ui-tip { position: absolute; top: 0; left: 0; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -4px); transition: opacity .15s; }
.ui-tip.on { opacity: 1; }
.ui-table { padding: 4px 6px; }
.ui table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ui th { height: 32px; padding: 0 10px; text-align: left; font-size: 11.5px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.ui td { height: 36px; padding: 0 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.ui td.num, .ui-inv th:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.ui-av { display: block; width: 20px; height: 20px; border-radius: 50%; flex: none; background: hsl(calc(200 + var(--h) / 12) 26% 80%); box-shadow: inset 0 0 0 5px hsl(calc(200 + var(--h) / 12) 22% 93%); }
.ui-sk { display: block; height: 8px; border-radius: 4px; background: #e6e6ea; }
.ui-st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--bg-2); color: var(--soft); }
.ui-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c2c2c8; }
.ui-st.s1 { background: #fdf5e4; color: #8a6414; } .ui-st.s1::before { background: #f2b544; }
.ui-st.s2 { background: var(--accent-bg); color: var(--accent-ink); } .ui-st.s2::before { background: var(--accent); }
.ui-st.s3 { background: #e7f6ef; color: #17784f; } .ui-st.s3::before { background: var(--ok); }

.art { height: 170px; margin: -2px -2px 22px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
/* art 1: code typing itself */
.code { position: absolute; inset: 18px 20px; display: grid; gap: 9px; align-content: start; }
.code i { display: block; height: 7px; border-radius: 4px; background: #dedee3; width: 0; }
.in .code i { animation: type 1.1s var(--ease) forwards; }
.code i:nth-child(1) { --w: 46%; animation-delay: .2s; } .code i:nth-child(2) { --w: 72%; animation-delay: .45s; background: rgba(74, 120, 194, .45); margin-left: 16px; }
.code i:nth-child(3) { --w: 58%; animation-delay: .7s; margin-left: 16px; } .code i:nth-child(4) { --w: 38%; animation-delay: .95s; margin-left: 32px; background: rgba(100, 116, 139, .35); }
.code i:nth-child(5) { --w: 64%; animation-delay: 1.2s; margin-left: 16px; } .code i:nth-child(6) { --w: 30%; animation-delay: 1.45s; }
.code b { position: absolute; right: 2px; bottom: -4px; padding: 4px 9px; border-radius: 7px; background: var(--card); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--accent-ink); box-shadow: 0 6px 16px -8px rgba(11, 11, 13, .3); opacity: 0; transform: translateY(6px); transition: opacity .5s 1.8s, transform .5s 1.8s var(--ease); }
.in .code b { opacity: 1; transform: none; }
@keyframes type { to { width: var(--w); } }
/* art 2: draft, build, live */
.track { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); }
.track .line { height: 4px; border-radius: 4px; background: #e2e2e6; overflow: hidden; }
.track .line i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--slate)); transition: width 1.6s .3s var(--ease); }
.in .track .line i { width: 100%; }
.track ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--faint); }
.track li { transition: color .4s; }
.in .track li { color: var(--ink-2); } .in .track li:nth-child(2) { transition-delay: .8s; } .in .track li:nth-child(3) { transition-delay: 1.5s; color: var(--ok); }
.track .dot { position: absolute; top: -4px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 107, .4); opacity: 0; transition: opacity .3s 1.7s; }
.in .track .dot { opacity: 1; animation: ping 2.4s 2s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 12px rgba(31, 157, 107, 0); } }
/* art 3: made to measure */
.tune { position: absolute; inset: 22px; display: grid; gap: 14px; align-content: center; }
.tune .row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--soft); font-weight: 500; }
.tune .row span:first-child { width: 84px; flex: none; }
.tune .sw { display: flex; gap: 6px; } .tune .sw i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2) inset; }
.tune .sw i.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.tune .sl { flex: 1; height: 4px; border-radius: 4px; background: #e2e2e6; position: relative; }
.tune .sl i { position: absolute; top: 50%; left: 20%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(11, 11, 13, .3); transition: left 1.4s .4s var(--ease); }
.in .tune .sl i { left: 68%; }
.tune .tg { width: 30px; height: 18px; border-radius: 999px; background: #dcdce0; position: relative; transition: background .4s 1s; }
.tune .tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .4s 1s var(--ease); }
.in .tune .tg { background: var(--accent); } .in .tune .tg::after { transform: translateX(12px); }

/* the dashboard's screens: one shows at a time; a change fades and rises softly, and the new screen's parts follow one by one */
.ui-views { position: relative; min-height: 0; }
.ui-view { position: absolute; inset: 0; display: grid; gap: 14px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(3px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), filter .3s, visibility 0s .45s; }
.ui-view.on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .5s .1s var(--ease), transform .7s .1s var(--ease), filter .5s .1s, visibility 0s; }
.ui-in { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ui-view.on .ui-in { opacity: 1; transform: none; transition-delay: calc(.15s + var(--k, 0) * .05s); }
@keyframes ui-fade { from { opacity: 0; transform: translateY(4px); } }
.ui-search, .ui-btn { transition: opacity .3s, border-color .2s, box-shadow .2s, background .2s; }
.ui[data-v]:not([data-v="overview"]) .ui-search, .ui[data-v]:not([data-v="overview"]) .ui-btn { opacity: 0; pointer-events: none; }

/* Projects */
.ui-chips { display: flex; gap: 6px; }
.ui-chips button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 500; color: var(--soft); transition: background .2s, color .2s, border-color .2s; }
.ui-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.live .ui-chips button { cursor: pointer; } .live .ui-chips button:not(.on):hover { color: var(--ink); border-color: var(--line-3); }
.ui-pjs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ui-pj { padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.ui-pj.out { display: none; }
.ui-site { height: 104px; padding: 8px; border-radius: 8px; background: hsl(var(--h) 22% 95%); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 6px 1fr 18px; gap: 6px; }
.ui-site .n { grid-column: 1 / -1; border-radius: 3px; background: hsl(var(--h) 14% 84%); width: 60%; }
.ui-site .h { grid-column: 1 / -1; border-radius: 5px; background: hsl(var(--h) 26% 40%); padding: 9px 10px; display: grid; align-content: center; gap: 5px; }
.ui-site .h b { display: block; height: 5px; width: 62%; border-radius: 3px; background: rgba(255, 255, 255, .75); } .ui-site .h b + b { width: 40%; background: rgba(255, 255, 255, .45); }
.ui-site .h span { width: 30px; height: 9px; margin-top: 3px; border-radius: 5px; background: #fff; }
.ui-site .c { border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px hsl(var(--h) 14% 88%); }
.ui-pj-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.ui-pj-m { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 11.5px; color: var(--soft); }
.ui-prog { height: 4px; margin-top: 11px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.ui-prog i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.ui-pj[data-st="3"] .ui-prog i { background: var(--ok); }
.ui-view.on .ui-prog i { transform: none; transition-delay: calc(.35s + var(--k, 0) * .06s); }

/* Clients */
.ui-view[data-view="clients"] { grid-template-columns: 290px minmax(0, 1fr); align-content: stretch; }
.ui-n { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.ui-cl ul { display: grid; gap: 2px; }
.ui-cl li { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; transition: background .2s; }
.ui-cl li small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--soft); }
.ui-cl li.on { background: var(--accent-bg); }
.live .ui-cl li { cursor: pointer; } .live .ui-cl li:not(.on):hover { background: #f7f7f9; }
.ui-cd { padding: 18px; transition: opacity .2s; }
.ui-cd.swap { opacity: .3; }
.ui-cd-h { display: flex; align-items: center; gap: 14px; }
.ui-av.big { width: 46px; height: 46px; box-shadow: inset 0 0 0 11px hsl(calc(200 + var(--h) / 12) 22% 93%); }
.ui-cd-h small { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--soft); }
.ui-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.ui-stats div { padding: 10px 12px; border-radius: 10px; background: #f7f7f9; }
.ui-stats span { display: block; font-size: 11.5px; color: var(--soft); }
.ui-stats b { display: block; margin-top: 3px; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ui h6 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ui-acts li { display: flex; align-items: center; gap: 10px; height: 36px; border-top: 1px solid var(--line); }
.ui-acts li:first-child { border-top: 0; }
.ui-acts i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ui-acts i.d1 { background: var(--accent); } .ui-acts i.d2 { background: var(--slate); } .ui-acts i.d3 { background: #f2b544; }
.ui-acts time { margin-left: auto; font-size: 11.5px; color: var(--faint); }

/* Invoices */
.ui-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ui-sum { display: block; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; text-align: left; transition: border-color .2s, box-shadow .2s, opacity .3s; }
.ui-sum span { display: block; font-size: 12px; color: var(--soft); }
.ui-sum b { display: block; margin-top: 4px; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ui-sum i { display: block; height: 4px; margin-top: 11px; border-radius: 4px; background: var(--ok); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.ui-sum.s1 i { background: var(--accent); } .ui-sum.s2 i { background: #c8553d; }
.ui-view.on .ui-sum i { transform: none; transition-delay: calc(.35s + var(--k, 0) * .08s); }
.live .ui-sum { cursor: pointer; } .live .ui-sum:hover { border-color: var(--line-3); }
.ui-sum.on { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(11, 11, 13, .05); }
.ui-sums.f .ui-sum:not(.on) { opacity: .5; }
.ui-inv tr.out { display: none; }
.ui td.mono { color: var(--soft); font-variant-numeric: tabular-nums; }
.ui-is { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: #e7f6ef; color: #17784f; }
.ui-is.i1 { background: var(--accent-bg); color: var(--accent-ink); } .ui-is.i2 { background: #fbeceb; color: #a8432f; }

@media (prefers-reduced-motion: reduce) {
  .ui-view, .ui-view.on, .ui-in, .ui-view.on .ui-in, .ui-pill, .ui-prog i, .ui-sum i { transition: none !important; }
  .ui-top h4 span { animation: none; }
}

.ui-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--soft); }

/* the little demos answer: the AI draft button retypes the lines; colours, slider and switch can be played with (landing.js) */
.code b { cursor: pointer; transition: opacity .5s 1.8s, transform .5s 1.8s var(--ease), box-shadow .2s, border-color .2s; }
.code b:hover { border-color: var(--line-3); box-shadow: 0 8px 18px -8px rgba(11, 11, 13, .35); }
.code b:active { transform: scale(.95); }
.code.redo b { transition-delay: 0s; }
.code.redo i { animation: type .9s var(--ease) forwards; }
.tune .sw i { cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); }
.tune .sw i:hover { transform: scale(1.12); }
.tune .sl { cursor: pointer; touch-action: none; }
.tune .sl::before { content: ""; position: absolute; inset: -10px 0; }
.tune .sl i { cursor: grab; }
.tune.live .sl i { transition: left .2s var(--ease); }
.tune .sl.drag i { transition: none; cursor: grabbing; }
.tune .tg { cursor: pointer; }
.tune.live .tg, .tune.live .tg::after { transition-delay: 0s; transition-duration: .25s; }
.in .tune .tg.off { background: #dcdce0; } .in .tune .tg.off::after { transform: none; }

/* Overview: one panel in three columns split by hairlines; cells inside each column split the same way */
.ui-ov { display: grid; grid-template-columns: 1.05fr 1fr .9fr; height: 100%; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.ui-ov > div + div { border-left: 1px solid var(--line); }
.ui-cell { padding: 13px 16px 14px; }
.ui-cell + .ui-cell { border-top: 1px solid var(--line); }
.ui-cell h5 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ui-big { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 10px; white-space: nowrap; }
.ui-big b { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.025em; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.ui-big em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.ui-big span { font-size: 11.5px; color: var(--faint); }
.ui-big.flip b { opacity: .25; }
.ui-ov .ui-tabs { display: inline-flex; }
.ui-c2 { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: 1fr auto; gap: 4px 6px; margin-top: 12px; }
.ui-ax { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--faint); text-align: right; margin: -5px 0; font-variant-numeric: tabular-nums; }
.ui-days { grid-column: 2; display: flex; justify-content: space-around; font-size: 10px; color: var(--faint); }
.ui-bars2 { position: relative; height: 120px; display: flex; align-items: flex-end; gap: 7px; padding: 0 2px;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; }
.ui-bars2 i { flex: 1; height: calc(var(--v) * 1%); border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(135deg, #ececef 0 3px, #e3e3e7 3px 5px); transform-origin: bottom; transform: scaleY(0); transition: height .7s var(--ease), transform .9s var(--ease), background .2s; }
.ui-bars2 i.hi { background: var(--accent); }
.ready .ui-bars2 i { transform: none; }
.ui-bars2 i:nth-child(n) { transition-delay: 0s, calc(.8s + var(--n, 0) * .05s), 0s; }
.live .ui-bars2 i { cursor: pointer; } .live .ui-bars2 i:hover { background: rgba(74, 120, 194, .55); } .live .ui-bars2 i.hi:hover { background: var(--accent); }
.ui-bars2 hr { position: absolute; left: 0; right: 0; bottom: calc(var(--g) * 1%); margin: 0; border: 0; border-top: 1.5px dashed #9a9ba2; transition: bottom .7s var(--ease); }
.ui-goal { position: absolute; right: 0; bottom: calc(var(--g) * 1%); transform: translateY(50%); padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; transition: bottom .7s var(--ease); }
.ui-mets li { display: grid; grid-template-columns: 1fr auto 46px; align-items: center; gap: 10px; padding: 9px 0; }
.ui-mets li + li { border-top: 1px solid var(--line); }
.ui-mets b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.ui-mets small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--faint); }
.ui-mets .v { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ui-mets em { font-style: normal; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.ui-seg { display: flex; gap: 4px; height: 22px; }
.ui-seg i { border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.ready .ui-seg i { transform: none; } .ui-seg i:nth-child(2) { transition-delay: .1s; } .ui-seg i:nth-child(3) { transition-delay: .2s; } .ui-seg i:nth-child(4) { transition-delay: .3s; }
.ui-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 9px 0 6px; font-size: 10.5px; color: var(--soft); }
.ui-leg span { display: inline-flex; align-items: center; gap: 5px; } .ui-leg i { width: 7px; height: 7px; border-radius: 2px; }
.ui-cov li { display: grid; grid-template-columns: 1fr 64px 82px; align-items: center; height: 29px; font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.ui-cov li span:nth-child(2) { color: var(--soft); font-variant-numeric: tabular-nums; }
.ui-cov .g { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; color: var(--soft); }
.ui-cov .g i { width: 6px; height: 6px; border-radius: 50%; background: #e0a43a; }
.ui-line { position: relative; height: 96px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; }
.ui-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ui-line path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2s 1s var(--ease); }
.ready .ui-line path { stroke-dashoffset: 0; }
.live .ui-line { cursor: crosshair; }
.ui-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); opacity: 0; transition: opacity .15s, left .15s, top .15s; pointer-events: none; }
.ui-dot.on { opacity: 1; }
.ui-donut { position: relative; width: 140px; height: 140px; margin: 10px auto 12px; }
.ui-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ui-donut circle { fill: none; stroke-width: 14; transition: opacity .2s, stroke-width .2s; }
.ui-donut.pick circle { opacity: .25; } .ui-donut.pick circle.on { opacity: 1; stroke-width: 16; }
.live .ui-donut circle { cursor: pointer; }
.ui-donut > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ui-donut b { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.ui-donut small { margin-top: 4px; font-size: 11px; color: var(--soft); }
.ui-legend li { display: grid; grid-template-columns: 10px 1fr 22px 44px; align-items: center; gap: 7px; height: 25px; font-size: 11.5px; color: var(--ink-2); border-radius: 6px; transition: background .2s; }
.ui-legend i { width: 7px; height: 7px; border-radius: 50%; }
.ui-legend b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; } .ui-legend em { font-style: normal; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.live .ui-legend li { cursor: pointer; } .ui-legend li.on { background: #f5f5f7; }
.ui-ticks { display: flex; gap: 2.5px; height: 30px; }
.ui-ticks i { flex: 1; border-radius: 2px; background: #e4e4e8; }
.ui-ticks i.on { background: var(--accent); }
.ui-out { margin: 9px 0 0; font-size: 11px; color: var(--soft); }

.device { container-type: inline-size; position: relative; width: min(100%, 340px); aspect-ratio: 460 / 960; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(30, 41, 59, .16)); }
.device-screen { position: absolute; left: 4.348cqw; top: 16.739cqw; width: 91.304cqw; height: 188.26cqw; overflow: hidden; border-radius: 0 0 13.48cqw 13.48cqw; background: #afc6eb; }
.device-screen img { width: 100%; height: auto; transform: translateY(calc(max(0, var(--p, 0) - .4) * -26%)); will-change: transform; }
.device-status { position: absolute; z-index: 1; left: 4.348cqw; top: 5cqw; width: 91.304cqw; height: 11.739cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 1.3cqw 6.52cqw 0 10cqw; background: #afc6eb; color: #000; border-radius: 13.48cqw 13.48cqw 0 0; font: 600 3.48cqw/1 -apple-system, BlinkMacSystemFont, "Inter", sans-serif; }
.device-status span { display: flex; align-items: center; gap: 1.3cqw; }
.device-status .sig { width: 3.7cqw; height: 2.4cqw; background: #000; clip-path: polygon(0 75%, 18% 75%, 18% 50%, 45% 50%, 45% 25%, 72% 25%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.device-status .wifi { width: 3.26cqw; height: 2.4cqw; background: #000; clip-path: polygon(50% 100%, 0 30%, 25% 8%, 50% 0, 75% 8%, 100% 30%); }
.device-status .bat { position: relative; width: 5.43cqw; height: 2.6cqw; border: .26cqw solid rgba(0, 0, 0, .4); border-radius: .9cqw; }
.device-status .bat::before { content: ""; position: absolute; inset: .33cqw .87cqw .33cqw .33cqw; border-radius: .4cqw; background: #000; }
.device-frame { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }

@media (prefers-reduced-motion: reduce) { .device-screen img { transform: none; } }

/* phones: the shot is smaller and the dashboard shows without its side menu (parts.js) */
@media (max-width: 760px) { .shot { padding: 5px; border-radius: 14px; } .shot .bar { height: 22px; } .ui-fit { border-radius: 9px; aspect-ratio: 890 / 640; } }
@media (prefers-reduced-motion: reduce) {
  .shot { transform: none !important; }
  .ui-bars2 i, .ui-line path, .ui-donut circle { transform: none; transition: none; stroke-dashoffset: 0; }
  .code i { width: var(--w) !important; animation: none !important; } .code b, .track .dot { opacity: 1; transform: none; transition: none; }
  .track .line i { transition: none; } .in .track .dot { animation: none; }
}

/* easter eggs (computers only, parts.js): the green dot by "Paid", "New page" and the lightning icon answer a click */
.egg .track .dot { cursor: pointer; }
.egg .track .dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.egg .code b { cursor: pointer; }
svg.zap { cursor: pointer; transition: color .6s, filter .6s; }
svg.zap.hit { color: #f2b544 !important; filter: drop-shadow(0 0 6px rgba(242, 181, 68, .9)); transition: color .05s, filter .05s; }

/* "Start a project" on computers (parts.js): the form page rises in under the page as it slides up */
.pg-next { position: fixed; inset: 0; z-index: 1000; visibility: hidden; translate: 0 100vh; background: #fff; }
.pg-next iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Easter egg: the pin of "Swiss and direct", held down, puts a Swiss flag behind the whole page (parts.js) */
.ch-pin { cursor: pointer; }
.ch-flag { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .12s ease-out;
  background: #da291c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center / 62vmin no-repeat; }
.ch .ch-flag { opacity: 1; transition-duration: .06s; }
/* while it is up, the page's own backgrounds step aside so the flag shows behind its text and cards */
html.ch, .ch body, .ch body > :not(.ch-flag):not(.top), .ch main, .ch section, .ch footer, .ch .hero { background: transparent !important; }
.ch body > :not(.ch-flag)::before, .ch body > :not(.ch-flag)::after, .ch section::before, .ch section::after, .ch .hero::before, .ch .hero::after { opacity: 0 !important; }
