/* The onboarding walkthrough (Features/Walkthrough): a card beside whatever is being explained and never over it, a soft
   white ring on a small target, a hand tapping what to press, and a hairline at the top that fills as the tour walks.
   Nothing dims or blurs the app. Everything here is prefixed wt-, and lives in one layer over the phone's screen. */

.wt { position: absolute; inset: 0; z-index: 44; pointer-events: none; transition: opacity 0.25s ease-in-out; }
.wt.off { display: none; }
.wt.paused { opacity: 0; }
.wt.paused * { pointer-events: none !important; }
/* a tell card (the welcome, the closing word) takes the whole screen's taps */
.wt-catch { position: absolute; inset: 0; background: rgba(0,0,0,0.001); display: none; pointer-events: auto; }
.wt.tell .wt-catch { display: block; }

/* the progress hairline */
.wt-hair { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: rgba(0,0,0,0.06); }
.wt-hair i { display: block; height: 100%; width: 0; background: rgba(0,0,0,0.34); transition: width 0.4s ease-in-out; }

/* the ring: white, 2pt, a breath of white inside, a soft shadow */
.wt-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; background: rgba(255,255,255,0.14);
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px #fff, 0 2px 10px rgba(0,0,0,0.16); transition: opacity 0.3s ease; }
.wt-ring.on { opacity: 1; }
.wt-ring.mv { transition: opacity 0.3s ease, left 0.6s cubic-bezier(0.3,1.12,0.4,1), top 0.6s cubic-bezier(0.3,1.12,0.4,1), width 0.6s cubic-bezier(0.3,1.12,0.4,1), height 0.6s cubic-bezier(0.3,1.12,0.4,1), border-radius 0.6s ease; }

/* the hand (WalkthroughPointer): it presses on a loop and sends out one soft ring each time */
.wt-hand { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; z-index: 3; transition: opacity 0.3s ease-out; }
.wt-hand.on { opacity: 1; }
.wt-hand.mv { transition: opacity 0.3s ease-out, transform 0.55s cubic-bezier(0.3,1.1,0.4,1); }
.wt-hand .rg { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.28); animation: wtRing 1.15s linear infinite; }
.wt-hand .hd { position: absolute; left: -10.75px; top: -1.5px; width: 30px; height: 30px; overflow: visible; transform-origin: 10.75px 1.5px; transform: rotate(-24deg);
    animation: wtPress 1.15s linear infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3)); }
.wt-hand .hd .f { fill: #FAF7F0; }
.wt-hand .hd .o, .wt-hand .hd .ln { fill: none; stroke: rgba(0,0,0,0.5); stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
@keyframes wtPress {
    0% { transform: translateY(0) rotate(-24deg) scale(1); }
    13% { transform: translateY(6.4px) rotate(-24deg) scale(0.915); }
    26% { transform: translateY(9px) rotate(-24deg) scale(0.88); }
    39% { transform: translateY(6.4px) rotate(-24deg) scale(0.915); }
    52%, 100% { transform: translateY(0) rotate(-24deg) scale(1); }
}
@keyframes wtRing { 0% { transform: scale(0.6); opacity: 1; } 74%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wt-hand .rg, .wt-hand .hd { animation: none; } }

/* ---------- the card (WalkthroughCard) ---------- */
.wt-glass { background: rgba(250,248,244,0.8); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08), inset 0 0 0 0.7px rgba(255,255,255,0.9), inset 0 1px 0 rgba(255,255,255,0.95); }
.wt-card { position: absolute; left: 0; top: 0; border-radius: 28px; display: flex; flex-direction: column; pointer-events: auto; opacity: 0; scale: 0.97;
    transition: opacity 0.26s ease-out 0.1s, scale 0.26s ease-out 0.1s; touch-action: none; }
.wt-card.on { opacity: 1; scale: 1; }
.wt-card.mv { transition: opacity 0.26s ease-out 0.1s, scale 0.26s ease-out 0.1s, transform 0.5s cubic-bezier(0.3,1.08,0.4,1); }
.wt-card.drag { transition: opacity 0.2s ease-out; }
.wt-card.out { opacity: 0; scale: 1; transition: opacity 0.14s ease-out; pointer-events: none; }
.wt-card.away { opacity: 0 !important; pointer-events: none; transition: opacity 0.2s ease-out; }
.wt-card.tk { opacity: 0 !important; pointer-events: none; transition: opacity 0.2s ease-out; }
.wt-handle { width: 40px; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.22); margin: 9px auto 8px; flex: none; }
.wt-hd { display: flex; align-items: center; gap: 10px; min-height: 26px; padding: 0 20px 4px; flex: none; }
.wt-hd .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px; color: rgba(0,0,0,0.4); white-space: nowrap; }
.wt-hd .sp { flex: 1; min-width: 4px; }
.wt-hd .skip { font-size: 12px; font-weight: 500; color: rgba(0,0,0,0.45); white-space: nowrap; }
.wt-hd .lv { font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,0.75); white-space: nowrap; }
.wt-hd .stay { font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,0.55); }
.wt-mid { overflow: hidden; flex: none; scrollbar-width: none; overscroll-behavior: contain; }
.wt-mid::-webkit-scrollbar { display: none; }
.wt-mid.sc { overflow-y: auto; }
.wt-mid:not(.sc) { touch-action: none; }
.wt-in { padding: 0 20px 2px; display: flex; flex-direction: column; gap: 6px; }
.wt-sun { width: 54px; height: 54px; margin: 0 auto 4px; opacity: 0.9; -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 98%); mask: radial-gradient(closest-side, #000 62%, transparent 98%); }
.wt-t { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 24px; color: rgba(0,0,0,0.88); }
.wt-card.tell .wt-t { font-size: 22px; line-height: 28px; }
.wt-b { font-size: 13.5px; line-height: 19.4px; color: rgba(0,0,0,0.56); transition: opacity 0.25s ease-out; }
.wt-b.gone { display: none; }
.wt-ask { padding-top: 6px; }
.wt-ctr { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 12px 20px 0; flex: none; }
.wt-ctr .sp { flex: 1; min-width: 4px; }
.wt-ctr .dec { font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.55); white-space: nowrap; }
.wt-ctr .ans { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,0.55); white-space: nowrap; }
.wt-foot { height: 16px; flex: none; }

/* the tour's button (WalkthroughButtonStyle): a slim ink capsule, lit from above */
.hp-scr .wt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 17px; border-radius: 17px; white-space: nowrap; flex: none;
    font-size: 13.5px; font-weight: 500; letter-spacing: 0.1px; color: #FAF7F0; background: linear-gradient(rgb(61,61,61), rgb(18,18,18));
    box-shadow: inset 0 0.75px 0 rgba(255,255,255,0.24), inset 0 0 0 0.75px rgba(255,255,255,0.08), 0 3px 7px rgba(0,0,0,0.14);
    transition: opacity 0.2s ease-out, transform 0.25s cubic-bezier(0.3,1.4,0.5,1), filter 0.2s; }
.hp-scr .wt-btn:active { transform: scale(0.96); filter: brightness(1.15); }
.hp-scr .wt-btn.sm { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; }
.hp-scr .wt-btn[disabled] { opacity: 0.25; cursor: default; }
.wt-btn svg { flex: none; }
.wt-btn svg.ar { width: 10.5px; height: 10.5px; }
.wt-btn svg.sy { width: 13px; height: 13px; }

/* Helios at work (HeliosLoader): eight dots, a crest travelling round them */
.wt-ld { position: relative; flex: none; }
.wt-ld i { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: #000; opacity: 0.18; animation: wtLd 1.4s linear infinite; }
@keyframes wtLd { 0% { opacity: 0.95; } 42%, 100% { opacity: 0.18; } }

/* tucked into one line (WalkthroughCard.line) */
.wt-line { position: absolute; left: 0; top: 0; height: 52px; border-radius: 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; pointer-events: auto;
    opacity: 0; transform: translateY(14px); transition: opacity 0.25s ease-out, transform 0.45s cubic-bezier(0.3,1.1,0.4,1); }
.wt-line.on { opacity: 1; transform: none; }
.wt-line .tt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; font-family: var(--serif); font-size: 17px; color: rgba(0,0,0,0.85); white-space: nowrap; overflow: hidden; }
.wt-line .tt span { overflow: hidden; text-overflow: ellipsis; }
.wt-line .tt svg { width: 11px; height: 11px; color: rgba(0,0,0,0.45); flex: none; }

/* ---------- Hello ---------- */
.wt-hello { display: flex; flex-direction: column; gap: 12px; }
.wt-panel { padding: 0 16px; border-radius: 18px; background: rgba(255,255,255,0.55); }
.wt-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; }
.wt-row .l { font-size: 14px; color: rgba(0,0,0,0.5); flex: none; }
.hp-scr .wt-row input { flex: 1; min-width: 0; text-align: right; font-size: 15px; color: rgba(0,0,0,0.88); user-select: text; -webkit-user-select: text; cursor: text; }
.wt-row input::placeholder { color: rgba(0,0,0,0.3); }
.wt-row .v { margin-left: auto; font-size: 15px; color: rgba(0,0,0,0.85); white-space: nowrap; }
.wt-row .v.none { font-weight: 500; color: rgba(0,0,0,0.4); }
.wt-row .cv { width: 11px; height: 11px; color: rgba(0,0,0,0.3); flex: none; transition: transform 0.35s cubic-bezier(0.3,1.1,0.4,1); }
.wt-row.open .cv { transform: rotate(180deg); }
.wt-sep { height: 1px; background: rgba(0,0,0,0.07); }
.wt-pane { position: relative; display: flex; overflow: hidden; border-radius: 22px; }
.wt-pane.in { animation: wtDrop 0.4s cubic-bezier(0.3,1.1,0.4,1) both; }
@keyframes wtDrop { from { opacity: 0; transform: translateY(-10px); } }
.wt-consent { display: flex; align-items: flex-start; gap: 12px; }
.wt-consent p { flex: 1; font-size: 11.5px; line-height: 15.2px; color: rgba(0,0,0,0.6); }
.wt-consent a { color: rgba(0,0,0,0.85); text-decoration: none; }
.hp-scr .wt-tg { position: relative; width: 51px; height: 31px; border-radius: 16px; flex: none; background: rgba(120,120,128,0.16); transition: background 0.25s ease; }
.wt-tg::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 3px 1px rgba(0,0,0,0.06); transition: transform 0.3s cubic-bezier(0.3,1.3,0.5,1); }
.wt-tg.on { background: rgba(0,0,0,0.75); }
.wt-tg.on::after { transform: translateX(20px); }
.wt-go { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 10px; }
.wt-note { font-size: 12.5px; line-height: 17px; color: rgba(0,0,0,0.6); }
.wt-young { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* the wheels (UIDatePicker, UIPickerView) */
.wt-wh { position: relative; flex: 1; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; cursor: grab;
    -webkit-mask: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask: linear-gradient(transparent, #000 34%, #000 66%, transparent); }
.wt-wh::-webkit-scrollbar { display: none; }
.wt-wh i { display: block; height: 32px; line-height: 32px; scroll-snap-align: center; font-style: normal; font-family: var(--sf); font-size: 21px; letter-spacing: -0.3px; color: #000; white-space: nowrap; will-change: transform; }
.wt-wh.d i { text-align: right; padding-right: 22px; } .wt-wh.m i { text-align: left; padding-left: 14px; } .wt-wh.y i { text-align: left; padding-left: 8px; } .wt-wh.c i { text-align: center; }
.wt-band { position: absolute; left: 8px; right: 8px; top: 50%; height: 32px; margin-top: -16px; border-radius: 9px; background: rgba(120,120,128,0.12); pointer-events: none; }

/* ---------- questions, lists and their circles (WalkthroughChoices) ---------- */
.wt-qs { display: flex; flex-direction: column; gap: 11px; }
.wt-turn { display: flex; flex-direction: column; gap: 11px; transition: opacity 0.24s ease-out 0.02s; }
.wt-turn.go { opacity: 0; transition: opacity 0.12s ease-in; }
.wt-q { font-family: var(--serif); font-size: 21px; line-height: 26.5px; color: rgba(0,0,0,0.86); }
.wt-steps { display: flex; gap: 4px; }
.wt-steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(0,0,0,0.1); transition: background 0.3s ease-in-out; }
.wt-steps i.on { background: rgba(0,0,0,0.7); }
.wt-opts { display: flex; flex-direction: column; }
.wt-osep { height: 1px; margin-left: 34px; background: rgba(0,0,0,0.06); }
.hp-scr .wt-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left; }
.wt-opt.dt { padding: 10px 0; }
.wt-opt .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wt-opt .tx b { font-size: 15px; line-height: 19.5px; font-weight: 400; color: rgba(0,0,0,0.78); transition: color 0.2s; }
.wt-opt.on .tx b { font-weight: 500; color: rgba(0,0,0,0.9); }
.wt-opt .tx small { font-size: 12.5px; line-height: 16px; color: rgba(0,0,0,0.42); }
.wt-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 2px; }
.wt-grid .wt-opt { min-height: 42px; }
.wt-grid .wt-opt .tx b { font-size: 14px; line-height: 18px; }
.wt-tick { position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.22); transition: box-shadow 0.2s; }
.wt-grid .wt-tick { width: 20px; height: 20px; }
.wt-tick::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.86); transform: scale(0.4); opacity: 0; transition: transform 0.3s cubic-bezier(0.3,1.5,0.5,1), opacity 0.2s; }
.wt-tick svg { position: absolute; left: 50%; top: 50%; width: 45%; height: 45%; margin: -22.5% 0 0 -22.5%; color: #FAF7F0; transform: scale(0.4); opacity: 0; transition: transform 0.3s cubic-bezier(0.3,1.5,0.5,1), opacity 0.2s; }
.wt-tick.on { box-shadow: none; }
.wt-tick.on::before, .wt-tick.on svg { transform: none; opacity: 1; }
.wt-num { display: flex; align-items: center; gap: 12px; }
.wt-num .wt-pane { width: 150px; height: 96px; border-radius: 18px; }
.wt-num .wt-wh i { font-family: var(--sans); font-size: 17px; }

/* ---------- bringing things in ---------- */
.wt-cn { display: flex; flex-direction: column; gap: 9px; }
.wt-ok { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: #2E9963; animation: wtPop 0.45s cubic-bezier(0.3,1.3,0.5,1) both; }
.wt-ok svg { width: 16px; height: 16px; }
@keyframes wtPop { from { opacity: 0; transform: scale(0.9); } }
.wt-small { font-size: 12px; color: rgba(0,0,0,0.45); animation: wtFade 0.3s ease-out both; }
.wt-plain { font-size: 13px; color: rgba(0,0,0,0.55); }
@keyframes wtFade { from { opacity: 0; } }
.hp-scr .wt-way { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; color: rgba(0,0,0,0.85); }
.wt-way .ic { width: 22px; display: grid; place-items: center; flex: none; } .wt-way .ic svg { width: 17px; height: 17px; }
.wt-way .l { flex: 1; font-size: 14.5px; }
.wt-way .cv { width: 12px; height: 12px; color: rgba(0,0,0,0.3); }

/* ---------- missions ---------- */
.wt-ms { display: flex; flex-direction: column; gap: 12px; }
.wt-mh { display: flex; align-items: center; gap: 10px; }
.wt-mh .wt-steps { flex: 1; }
.wt-mh span { font-size: 11.5px; font-weight: 600; color: rgba(0,0,0,0.42); white-space: nowrap; }
.wt-pg { display: flex; flex-direction: column; gap: 10px; }
.wt-own { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 16px; border-radius: 16px; background: rgba(255,255,255,0.6); }
.hp-scr .wt-own input { flex: 1; min-width: 0; font-size: 15px; color: rgba(0,0,0,0.88); user-select: text; -webkit-user-select: text; cursor: text; }
.wt-own input::placeholder { color: rgba(0,0,0,0.35); }
.hp-scr .wt-own .go { width: 36px; height: 36px; display: grid; place-items: center; color: rgba(0,0,0,0.85); flex: none; animation: wtFade 0.15s ease-out both; }
.wt-own .go svg { width: 15px; height: 15px; }
.wt-sub { font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.42); padding-top: 4px; }
.wt-bkr { display: flex; align-items: center; gap: 8px; }
.hp-scr .wt-bk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.7); color: rgba(0,0,0,0.6); flex: none; }
.wt-bk svg { width: 12px; height: 12px; }
.wt-bkr span { font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-hint { font-size: 13px; line-height: 17.5px; color: rgba(0,0,0,0.5); }
.wt-vent { display: flex; flex-direction: column; padding: 14px 16px 10px; border-radius: 20px; background: rgba(255,255,255,0.55); }
.hp-scr .wt-vent textarea { width: 100%; min-height: 118px; max-height: 270px; resize: none; font-size: 15px; line-height: 19.6px; color: rgba(0,0,0,0.88); user-select: text; -webkit-user-select: text; cursor: text; scrollbar-width: none; }
.wt-vent textarea::placeholder { color: rgba(0,0,0,0.3); }
.wt-vb { display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.wt-vb .st { font-size: 12.5px; font-weight: 500; color: rgba(0,0,0,0.5); }
.wt-vb .sp { flex: 1; }
.hp-scr .wt-mic { width: 44px; height: 44px; display: grid; place-items: center; color: rgba(0,0,0,0.88); flex: none; transition: transform 0.12s ease-out; }
.wt-mic svg { width: 21px; height: 21px; }
.wt-mic.rec svg { width: 17px; height: 17px; }
.wt-mic.rec { animation: wtLevel 0.5s ease-in-out infinite alternate; }
@keyframes wtLevel { to { transform: scale(1.18); } }
.wt-pk { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.wt-pk .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wt-pk small { font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.4); }
.wt-pk b { font-size: 15px; font-weight: 500; color: rgba(0,0,0,0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-scr .wt-pk .x { width: 28px; height: 28px; display: grid; place-items: center; color: rgba(0,0,0,0.4); flex: none; }
.wt-pk .x svg { width: 11px; height: 11px; }

/* ---------- the way in (SummaryAsk) ---------- */
.wt-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wt-team { display: flex; }
.wt-team > span { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease-out, transform 0.55s cubic-bezier(0.3,1.3,0.5,1); }
.wt-team > span + span { margin-left: -10px; }
.wt-sum.in .wt-team > span { opacity: 1; transform: none; }
.wt-work { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.4s ease-out 0.45s; }
.wt-sum.in .wt-work { opacity: 1; }
.wt-work i { width: 7px; height: 7px; border-radius: 50%; background: #2E9963; animation: wtBeat 1.1s ease-in-out 6 alternate both; }
@keyframes wtBeat { from { opacity: 0.35; } to { opacity: 1; } }
.wt-sum .wt-btn { margin-top: 2px; }
