/* Shared styles for the redesign proposal pages (ScaleProposal, MobileFlow). Tokens only. */
.pp-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-start; }
.pp-col { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.pp-cap { margin: 0; color: var(--text-secondary); text-align: center; }
.pp-cap b { color: var(--text-primary); font-weight: 500; }
.pp-phone { position: relative; width: 390px; max-width: calc(100vw - 32px); height: 844px; border-radius: 44px; overflow: hidden; background: var(--surface-1); border: var(--stroke-hairline) solid var(--border); color: var(--text-primary); }
.pp-scroll > * { flex-shrink: 0; } /* cards keep their height; the screen scrolls instead of squeezing them */
.pp-scroll { height: 100%; overflow-y: auto; padding: 20px 16px 130px; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-5); }
.pp-fade { position: absolute; inset-inline: 0; bottom: 0; height: 130px; background: linear-gradient(to top, var(--surface-1) 30%, transparent); pointer-events: none; }
.pp-dock { position: absolute; inset-inline: 0; bottom: 18px; }

.pp-val { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
/* ---------- Watch flow ---------- */
.wf { max-width: 1320px; margin: 72px auto 0; }
.wf h2 { margin: 0 0 var(--space-1); font-family: var(--font-fa-display); font-weight: 400; font-size: 22px; line-height: 34px; }
.wf > p { margin: 0 0 var(--space-7); color: var(--text-secondary); max-width: 720px; }
.wf h3 { margin: var(--space-7) 0 var(--space-5); color: var(--text-secondary); font-weight: 500; }
.wf-row { display: flex; flex-wrap: wrap; gap: 36px 28px; justify-content: flex-start; align-items: flex-start; }
.wf-step { display: flex; flex-direction: column; gap: var(--space-3); width: 198px; }
.wf-cap { margin: 0; color: var(--text-secondary); }
.wf-cap b { display: block; color: var(--text-primary); font-weight: 500; }
.mt-watch .wf-dialwrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.mt-watch .wf-center { position: absolute; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.mt-watch .tone-energy, .wf-t-energy { --tone: var(--energy); }
.mt-watch .tone-mind, .wf-t-mind { --tone: var(--mind); }
.wf-t-sleep { --tone: var(--sleep); }
.wf-t-effort { --tone: var(--text-primary); }
.wf-count { display: flex; align-items: flex-end; justify-content: center; gap: var(--space-2); }
.wf-count-big { font-family: var(--font-fa-display); font-weight: 400; font-size: 48px; line-height: 44px; color: var(--text-primary); }
.wf-count-unit { color: var(--text-secondary); line-height: 18px; }
.mt-dial.tone-sleep .mt-tick.is-on { stroke: var(--sleep); }
.mt-dial.tone-sleep .mt-pointer { fill: var(--sleep); }
.wf-text { margin: 0; text-align: center; color: var(--text-primary); }
.wf-sub { margin: 0; text-align: center; color: var(--text-secondary); }
.wf-stack { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.wf-list { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; max-height: 176px; overflow-y: auto; scrollbar-width: none; }
.wf-row-btn { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 var(--space-3); box-sizing: border-box; border-radius: var(--radius-canvas); border: 1.5px solid transparent; background: var(--watch-surface); color: var(--text-primary); font-family: var(--font-fa); cursor: pointer; }
.wf-row-btn.is-set { border-color: var(--soreness); }
.wf-row-btn .wf-lv { color: var(--text-secondary); }
.wf-row-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wf-private { display: flex; align-items: center; justify-content: center; gap: var(--space-1); margin: 0; color: var(--text-secondary); }
.wf-face { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }

/* ---------- WatchTutorial: a looping how-to; tapping the watch pauses it ---------- */
.wt { display: flex; gap: var(--space-5); align-items: center; padding: var(--space-4) var(--space-5); }
.wt-watch { flex: none; width: 104px; height: 128px; }
.wt-watch svg { display: block; overflow: visible; }
.wt-toggle { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-card); }
.wt-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wt-text { flex: 1; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.wt-text h4 { margin: 0; font-family: var(--font-fa-display); font-weight: 400; font-size: 16px; line-height: 26px; color: var(--text-primary); }
.wt-text p { margin: 0; color: var(--text-secondary); }
.wt-knob { transition: transform var(--duration-detent) var(--ease-spring); }
.wt-ridges { transition: transform var(--duration-detent) var(--ease-spring); }
.wt-face { transition: transform var(--duration-detent) var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.wt-fade { transition: opacity var(--duration-press); }
.wt-frame { animation: wt-in var(--duration-detent) var(--ease-spring) both; transform-box: fill-box; transform-origin: center; }
@keyframes wt-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wt-knob, .wt-ridges, .wt-face, .wt-fade { transition: none; } .wt-frame { animation: none; } }

/* ---------- WelcomePitch: a pixel pitch with a ball that rolls with the phone's tilt, under a black scrim ---------- */
/* No scrim: the pitch is drawn dim on the black ground and the ball stays bright. Text over the pitch gets a halo
   of the ground color, so it keeps at least 4.5:1 even while the ball rolls under it. */
.pp-phone:has(.mt-pitch) .mf-welcome { text-shadow: 0 0 2px var(--watch-ground), 0 0 6px var(--watch-ground), 0 0 12px var(--watch-ground); }
.pp-phone:has(.mt-pitch) > .pp-scroll { position: relative; z-index: 1; }
/* one screen, no scrolling (the welcome): no dock, so no room kept for it */
.pp-scroll.is-fixed { overflow: hidden; padding-bottom: var(--space-7); }

/* screens on a Backdrop: content above the light, the fade and dock above the content */
.mt-bd-host > .pp-scroll { position: relative; z-index: 1; }
.mt-bd-host > .pp-fade, .mt-bd-host > .pp-dock { z-index: 2; }
