/* Ridgeline — splash, welcome, sign-in, onboarding */
.screen.bleed { overflow: hidden; padding-top: 0; }
.screen.bleed > .page { padding: 0; height: 100%; }

/* Splash */
.splash { height: 100%; display: grid; place-items: center; background: #14120F; color: #F4EEE3; }
.splash__in { display: grid; justify-items: center; gap: 14px; animation: splash-in .9s var(--ease) both; }
.splash__mark { width: 64px; height: 64px; color: #FF7448; }
.splash__word { font-size: 34px; font-weight: 650; letter-spacing: -.05em; }
.splash__tag { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #A29A8A; font-weight: 520; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* Welcome carousel */
.wel { position: relative; height: 100%; background: #0c0b0a; color: #fff; }
.wel__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.wel__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.wel__slide .photo { position: absolute; inset: 0; }
.wel__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,6,.5) 0%, rgba(6,6,6,0) 28%, rgba(6,6,6,.15) 48%, rgba(6,6,6,.9) 82%); }
.wel__copy { position: absolute; left: 0; right: 0; bottom: 224px; padding: 0 var(--pad); z-index: 2; display: grid; gap: 12px; }
.wel__copy .display { color: #fff; font-size: 42px; }
.wel__copy p { color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.4; max-width: 330px; }
.wel__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(18px + env(safe-area-inset-top)) var(--pad) 0; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.wel__top .brand { color: #fff; }
.wel__top .brand__mark { color: #FF7448; }
.wel__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--pad) calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; justify-items: stretch; }
.wel__bottom .dots { justify-content: center; margin-bottom: 6px; }
.wel__bottom .dots i { background: rgba(255,255,255,.35); }
.wel__bottom .dots i.on { background: #fff; }
.wel .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.wel .fine { color: rgba(255,255,255,.62); text-align: center; }
.wel .fine a { text-decoration: underline; }

/* Auth forms */
.auth { padding-top: 8px; display: grid; gap: var(--s6); }
.auth__head { display: grid; gap: 10px; padding-top: 12px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; height: 62px; text-align: center; font-size: 26px; font-weight: 650; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); caret-color: var(--accent); padding: 0; }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.otp.err input { box-shadow: inset 0 0 0 2px var(--bad); animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.suggest { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 520; font-size: 15px; width: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.suggest .icon { color: var(--pine-text); }
.suggest b { margin-left: auto; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* Onboarding */
.ob { display: grid; gap: var(--s5); padding-top: 4px; }
.ob__bar { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; }
.ob__progress { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.ob__progress > span { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width .4s var(--ease); }
.ob__q { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.track-pick { display: grid; gap: 12px; }
.track-opt { position: relative; text-align: left; border-radius: var(--r-xl); overflow: hidden; color: #fff; min-height: 188px; width: 100%; display: block; isolation: isolate; box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .2s, transform .15s var(--ease); }
.track-opt > .photo { position: absolute; inset: 0; z-index: -2; }
.track-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,20,16,.86) 0%, rgba(8,20,16,.55) 60%, rgba(8,20,16,.2)); }
.track-opt--life::before { background: linear-gradient(90deg, rgba(40,14,6,.84) 0%, rgba(40,14,6,.5) 60%, rgba(40,14,6,.15)); }
.track-opt__in { padding: 20px; display: grid; gap: 8px; max-width: 78%; }
.track-opt h3 { font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.track-opt p { font-size: 14px; opacity: .9; line-height: 1.4; }
.track-opt .eyebrow { color: rgba(255,255,255,.8); }
.track-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); transform: scale(.99); }
:root[data-theme="dark"] .track-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.track-opt__tick { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #111; display: none; place-items: center; }
.track-opt[aria-pressed="true"] .track-opt__tick { display: grid; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { height: 48px; border-radius: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.build { display: grid; gap: 22px; justify-items: center; text-align: center; padding-top: 70px; }
.build__ring { width: 120px; height: 120px; }
.build__list { display: grid; gap: 14px; text-align: left; width: 100%; max-width: 300px; }
.build__item { display: flex; gap: 12px; align-items: center; font-weight: 520; color: var(--ink-3); transition: color .3s; }
.build__item .icon { color: var(--line-2); transition: color .3s; }
.build__item.done { color: var(--ink); }
.build__item.done .icon { color: var(--good); }
.reveal__hero { margin: 0 calc(var(--pad) * -1); position: relative; height: 300px; overflow: hidden; }
.reveal__hero .photo { position: absolute; inset: 0; }
.reveal__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.1) 30%, var(--bg) 100%); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week__d { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.week__d.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.week__d .icon { width: 18px; height: 18px; }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.target { padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.wel__top .wel-gear { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
