/* Mudra app pieces shown on the landing page: the phone, the orbit cards and the small product samples.
   Colours come from the tokens in styles.css. */

/* phone */
.phone { position: absolute; left: 0; top: 0; width: 300px; height: 620px; transform-origin: 0 0; z-index: 3; }
.phone-body { position: absolute; inset: 0; border-radius: 46px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(10,20,50,.45), inset 0 1px 0 rgba(255,255,255,.6); padding: 8px; }
.screen { position: relative; width: 284px; height: 604px; border-radius: 38px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; align-items: center; }
.lock-name { margin-top: 70px; font-size: 64px; line-height: .9; color: var(--ink); }
.lock-sub { font-style: italic; margin-top: 2px; font-size: 26px; line-height: 1; color: var(--accent); }
.lock-state { margin-top: 18px; font-size: 11px; font-weight: 700; color: var(--muted); }
.lock-hint { position: absolute; left: 0; right: 0; top: 372px; text-align: center; font-size: 13px; color: var(--muted); }
.sensor-glow, .sensor-ring, .sensor-pulse { position: absolute; left: 104px; top: 438px; width: 76px; height: 76px; border-radius: 999px; pointer-events: none; }
.sensor-glow { opacity: 0; }
.sr-track { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.sr-fill { fill: none; stroke: var(--sensor); stroke-width: 3.2; stroke-linecap: round; }
.sensor-pulse { border: 2px solid var(--accent); opacity: 0; }
.sensor { position: absolute; left: 110px; top: 444px; width: 64px; height: 64px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.fp-base { stroke: var(--line-strong); }
.fp-ink { stroke: var(--accent); }

.app { position: absolute; inset: 0; z-index: 4; background: var(--bg); color: var(--ink); visibility: hidden; }
.app-status { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 28px; font-size: 11.5px; font-weight: 700; }
.app-notch { position: absolute; left: 50%; top: 8px; width: 78px; height: 22px; margin-left: -39px; border-radius: 999px; background: #05070b; }
.app-sig { display: flex; align-items: center; gap: 5px; fill: currentColor; }
.app-bar { position: absolute; left: 6px; right: 6px; top: 36px; height: 36px; display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; }
.app-bar > span { display: grid; place-items: center; }
.app-title { text-align: center; font-size: 20px; line-height: 1; }
.app-nw { position: absolute; left: 18px; right: 18px; top: 78px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.app-nw-l { display: flex; flex-direction: column; gap: 3px; }
.app-nw-k { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.app-sample { font-size: 7.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 5px; border-radius: 5px; background: var(--tint); color: var(--accent-ink); }
.app-nw-v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-nw-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 10.5px; font-variant-numeric: tabular-nums; padding-bottom: 2px; }
.app-nw-r b { font-weight: 700; }
.app-tabs, .sheet-tabs { display: flex; align-items: center; justify-content: center; }
.app-tabs { position: absolute; left: 0; right: 0; top: 128px; height: 32px; gap: 24px; font-size: 11.5px; }
.app-tabs .off, .sheet-tabs .off { color: var(--muted); opacity: .55; }
.app-tabs .on, .sheet-tabs .on { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; }
.app-tabs .on i, .sheet-tabs .on i { width: 16px; height: 2.5px; border-radius: 3px; background: var(--accent-ui); }
.app-chart { position: absolute; left: 12px; right: 12px; top: 164px; height: 154px; }
.app-chart svg { position: absolute; left: 0; top: 0; width: 100%; height: 136px; }
.chart-stop { stop-color: var(--chart-fill); }
.app-bench { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.glow-line { fill: none; stroke: var(--chart); filter: var(--chart-glow); stroke-width: 1.6; stroke-linejoin: round; }
.app-chart .glow-line { stroke-width: 2; }
.glow-line-alt { fill: none; stroke: var(--chart-alt); filter: var(--chart-glow-alt); stroke-width: 1.6; }
.app-months { position: absolute; left: 2px; right: 2px; bottom: 0; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .08em; color: var(--muted); }
.note { position: absolute; left: 12px; right: 12px; height: 62px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px 14px; }
.note-in { top: 326px; }
.note-os { top: 394px; }
.note-guil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.note-guil path { fill: none; stroke: var(--line-strong); stroke-width: .7; }
.note-l { position: relative; display: flex; flex-direction: column; gap: 1px; }
.note-k { font-size: 8.5px; letter-spacing: .18em; color: var(--muted); }
.note-v { font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.note-r { position: relative; display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.note-c1 { fill: none; stroke: var(--chart); stroke-width: 1.2; }
.note-c2 { fill: none; stroke: var(--chart); stroke-width: .8; }
.note-sym { fill: var(--accent); font: 700 13px 'Manrope', sans-serif; }
.note-micro { position: absolute; left: 14px; right: 14px; bottom: 4px; font-size: 5px; line-height: 1; letter-spacing: .24em; color: var(--muted); white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.days { position: absolute; left: 12px; right: 12px; top: 470px; height: 58px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); padding: 5px 6px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.days-g { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); width: 100%; gap: 2px; }
.days-g > span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.days-g i { font-style: normal; font-size: 8px; letter-spacing: .06em; color: var(--muted); }
.days-g b { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pull { animation: pull 1.8s ease-in-out infinite; }
.app-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; border-top: 1px solid var(--line); background: var(--bg); display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; justify-items: center; padding: 0 6px 6px; color: var(--muted); }
.app-nav-on { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); }
.app-nav-on i { width: 4px; height: 4px; border-radius: 999px; background: var(--accent-ui); }
.app-nav-c { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--accent-ui); background: var(--card); color: var(--ink); display: grid; place-items: center; }
.hl { position: absolute; left: 0; top: 0; border-radius: 18px; box-shadow: 0 0 0 1.5px var(--sensor), 0 0 22px 3px rgba(120,150,190,.5), 0 0 0 700px var(--dimmer); opacity: 0; pointer-events: none; }
.dim { position: absolute; inset: 0; background: var(--dimmer); opacity: 0; pointer-events: none; }

.sheet { position: absolute; left: 0; right: 0; top: 604px; height: 560px; border-radius: 24px 24px 0 0; background: var(--card); box-shadow: 0 -16px 40px -14px rgba(9,14,22,.4); overflow: hidden; visibility: hidden; }
.sheet-h { position: absolute; left: 0; right: 0; top: 0; height: 78px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding-top: 9px; gap: 6px; }
.sheet-date { font-size: 8.5px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.sheet-tabs { gap: 20px; font-size: 11px; }
.sheet-tabs .on { font-size: 12px; gap: 3px; }
.sheet-tabs .on i { width: 14px; }
.sheet-vp { position: absolute; left: 0; right: 0; top: 78px; bottom: 0; overflow: hidden; }
.sheet-in { padding: 0 16px; }
.bs { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bs-k { font-size: 8.5px; font-weight: 700; letter-spacing: .2em; color: var(--accent-ink); }
.bs-sub { font-size: 7.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.bs-mk { height: 176px; padding-top: 12px; gap: 6px; }
.mk { height: 44px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.mk-last { border-bottom: 0; }
.mk-h { display: flex; justify-content: space-between; align-items: baseline; }
.mk-h b { font-size: 13px; font-weight: 700; }
.mk-h .mono { font-size: 12px; font-weight: 700; }
.tags { display: flex; gap: 4px; }
.tags i, .tchips i { font-style: normal; font-weight: 600; border-radius: 999px; background: var(--tint); color: var(--accent-ink); }
.tags i { font-size: 9px; padding: 2px 7px; }
.bs-hold { height: 250px; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; font-size: 9px; font-weight: 600; }
.chips i { font-style: normal; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; }
.chips i.up { background: var(--up-tint); }
.chips i.dn { background: var(--down-tint); }
.bs-flow { height: 120px; gap: 9px; }
.fl { display: grid; grid-template-columns: 28px minmax(0,1fr) 74px; align-items: center; gap: 8px; font-size: 11px; }
.fl b { font-weight: 700; }
.fl .mono { text-align: right; font-size: 10.5px; font-weight: 700; }
.fl-bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fl-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.fl-up { left: 50%; width: 44%; background: var(--up); }
.fl-dn { right: 50%; width: 16%; background: var(--down); }
.bs-note { font-size: 9.5px; color: var(--muted); }
.bs-mov { height: 174px; margin-right: -16px; overflow: hidden; }
.mov { display: flex; gap: 10px; }
.mov-c { flex: 0 0 196px; height: 124px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; font-size: 10.5px; }
.mov-c .mono { display: flex; justify-content: space-between; }
.mov-c b { font-weight: 700; }
.mov-k { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.bs-news { height: 190px; }
.news { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.news > div { height: 70px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.news b { font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.news span { font-size: 8.5px; color: var(--muted); }
.bs-up { height: 170px; margin-right: -16px; overflow: hidden; }
.up-row { display: flex; gap: 8px; }
.up-row > div { flex: 0 0 104px; height: 66px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 9px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.up-row b { font-size: 10.5px; font-weight: 700; }
.up-row span { font-size: 9.5px; color: var(--accent-ink); }

/* orbiting cards */
.orbit { position: absolute; inset: 0; perspective: 1200px; pointer-events: none; z-index: 4; }
.orbit-in { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.cd { position: absolute; left: 0; top: 0; width: 128px; height: 164px; transform-style: preserve-3d; will-change: transform; }
.cf { position: absolute; inset: 0; border-radius: 20px; border: 1px solid; box-shadow: var(--float); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cf.back { transform: rotateY(180deg); }
.cf .ic-t { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.cf .ic-t svg { width: 17px; height: 17px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf .col { display: flex; flex-direction: column; gap: 3px; }
.cf .t { font-size: 14px; font-weight: 700; line-height: 1.15; }
.cf .s { font-size: 10.5px; line-height: 1.3; }
.cf .k { font-size: 10.5px; font-weight: 700; }
.cf .nm { font-size: 10px; letter-spacing: .08em; }
.cf .val { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.cf .chg { align-self: flex-start; height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.cf .spk { width: 100%; height: 26px; }
.cf .spk path { fill: none; stroke-width: 1.6; }
.cf .pill { align-self: flex-start; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cf .flash { position: absolute; inset: 0; background: var(--flash); opacity: 0; pointer-events: none; }
.cf .idea-top { display: flex; justify-content: space-between; align-items: center; }
.cf .idea-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.cf .idea-ic i { width: 10px; height: 10px; border-radius: 3px; }
.cf .dots { display: flex; gap: 3px; }
.cf .dots i { width: 5px; height: 5px; border-radius: 9px; }
.cf .it { font-size: 15px; font-weight: 800; letter-spacing: .01em; }


/* product samples */
.alt-box { background: var(--alt); color: var(--on-alt); border-radius: 16px; }
.alt-k { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--alt-accent); }
.amu { color: var(--on-alt-mu); }
.nw-v { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.nw-v small { font-size: 16px; vertical-align: top; color: var(--on-alt-mu); }
.nw-v em { font-style: normal; font-size: 15px; color: var(--on-alt-mu); }
.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chips i { font-style: normal; height: 26px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: var(--alt-tint); color: var(--alt-accent); font-size: 12px; font-weight: 600; }
.nw-chips i.owe { background: rgba(255,127,114,.15); color: #ff9a8f; }
.own { display: grid; grid-template-columns: minmax(0,1fr) auto 40px; align-items: center; gap: 9px 12px; font-size: 14px; }
.own span, .own b { font-weight: 600; }
.own i { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; }
.idx { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.idx > div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.idx .k { font-size: 10.5px; color: var(--muted); }
.idx .v { font-size: 17px; font-weight: 600; }
.idx .up, .idx .dn { font-size: 11px; font-weight: 600; }
.idx svg { width: 100%; height: 22px; margin-top: 4px; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ideas > div { padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.ideas b { font-size: 15px; font-weight: 800; }
.ideas .amu { font-size: 11.5px; }
.ideas svg { width: 100%; height: 28px; margin-top: 2px; }
.ideas .mono { font-size: 11.5px; }
.ideas i { font-style: normal; }
.meter { display: flex; align-items: center; gap: 18px; }
.meter-g { position: relative; width: 130px; height: 90px; flex: none; }
.meter-g svg { width: 130px; height: 90px; }
.mg-t, .mg-v { fill: none; stroke-width: 10; stroke-linecap: round; }
.mg-t { stroke: var(--line); }
.mg-v { stroke: var(--chart); filter: var(--chart-glow); }
.meter-sc { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; flex-direction: column; align-items: center; }
.meter-sc b { font-size: 24px; font-weight: 600; line-height: 1; }
.meter-sc i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent-ink); }
.parts { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0,auto) minmax(40px,1fr) 24px; align-items: center; gap: 6px 10px; font-size: 12px; }
.parts > span:not(.bar) { color: var(--muted); }
.parts b { font-weight: 600; text-align: right; }
.bar { height: 5px; border-radius: 99px; background: var(--line); }
.bar i { display: block; width: var(--w); height: 100%; border-radius: 99px; background: var(--accent-ui); }
.q { display: flex; justify-content: flex-end; }
.q span { max-width: 86%; background: var(--glow); color: var(--pill-ink); border-radius: 18px 18px 6px 18px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.a { max-width: 92%; background: var(--alt); color: var(--on-alt); border-radius: 18px 18px 18px 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.a b { font-weight: 600; color: var(--alt-accent); }
.a .amu { font-size: 12px; }
.ask-in { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 5px 0 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-strong); }
.ask-in > span { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.ask-in > i { width: 40px; height: 40px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; }


/* planning chart */
.plan-chart { position: relative; margin: 0 4px; }
.pc-grid, .pc-clip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-grid path { fill: none; stroke-width: 1; }
.pg-strong { stroke: var(--line-strong); }
.pg { stroke: var(--line); }
.pg-goal { stroke: var(--accent-ui); stroke-width: 1.3; stroke-dasharray: 6 6; }
.pc-clip { position: absolute; inset: 0; }
.pl-line { stroke-width: 2.6; }
.pc-y { position: absolute; left: 0; transform: translateY(-130%); font-size: 11px; color: var(--muted); }
.pc-y.goal { color: var(--accent-ink); font-weight: 700; }
.mk-pt { position: absolute; width: 0; height: 0; visibility: hidden; }
.mk-pt.on { visibility: visible; }
.mk-pt .beep { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--accent-ui); animation: beep 1.6s ease-out infinite; }
.mk-pt .beep.d2 { animation-delay: .8s; }
.mk-pt .dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 999px; background: var(--accent-ui); box-shadow: 0 0 0 4px var(--bg); }
.mk-free .beep { left: -11px; top: -11px; width: 22px; height: 22px; border-color: var(--up); }
.mk-free .dot { left: -8px; top: -8px; width: 16px; height: 16px; background: var(--up); }
.tip { position: absolute; background-color: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--float); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; animation: tipIn .5s cubic-bezier(.2,.8,.2,1) both; }
.tip-l { left: 16px; bottom: 16px; width: 200px; }
.tip-r { right: 16px; bottom: 16px; width: 210px; }
.tip-free { right: 18px; top: 18px; width: 220px; background-color: var(--alt); color: var(--on-alt); border: 0; padding: 12px 14px; gap: 3px; font-size: 13.5px; }
.tip-free .mono { font-size: 11.5px; color: var(--on-alt-mu); }
.pc-head { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: var(--card); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--tint), 0 0 18px 4px rgba(120,150,190,.45); opacity: 0; }
.pc-x { position: absolute; left: 0; right: 0; top: 100%; margin-top: 10px; height: 16px; font-size: 11px; color: var(--muted); }
.pc-x span { position: absolute; transform: translateX(-50%); }
.pc-x span:first-child { transform: none; }
.pc-x span.last { right: 0; transform: none; }


/* security art */
.tile-art { position: relative; height: 156px; border-radius: 18px; background: var(--alt); color: var(--on-alt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden; isolation: isolate; }
.tile-art > :not(.guil) { position: relative; }
.tile-guil { opacity: .55; }
.lock { stroke: var(--alt-accent); }
.lock rect { fill: var(--alt-accent); stroke: none; }
.cipher { font-size: 20px; font-weight: 600; letter-spacing: .06em; color: var(--on-alt-mu); }
.usteps { display: flex; align-items: center; gap: 10px; }
.ustep { width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid rgba(220,228,236,.18); color: var(--on-alt-mu); display: grid; place-items: center; transition: background-color .3s, border-color .3s, color .3s; }
.ustep.on { background: var(--alt-tint); border-color: var(--alt-accent); color: var(--glow); }
.ustep-l { width: 22px; height: 1.5px; background: rgba(220,228,236,.18); transition: background-color .3s; }
.ustep-l.on { background: var(--alt-accent); }
.tile-never { align-items: stretch; gap: 8px; padding: 0 22px; }
.strike { position: relative; align-self: flex-start; font-size: 14px; font-weight: 600; }
.strike i { position: absolute; left: -4px; top: 50%; height: 2px; width: calc(100% + 8px); background: var(--alt-accent); transform-origin: left center; }


/* motion that runs on its own */
@keyframes beep { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pull { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .beep, .caret, .pull, .tip { animation: none !important; }
  .ustep, .ustep-l { transition: none; }
}
