/* Ridgeline — polish: lighter type, flatter controls, premium charts, build screen, connect animation. Loaded last. */

/* ---------- controls: flat and calm instead of chunky ---------- */
.btn { min-height: 48px; font-size: 15px; font-weight: 560; letter-spacing: 0; box-shadow: 0 1px 2px rgba(20, 16, 10, .14), 0 10px 20px -12px var(--btn-edge); }
.btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 1px 1px rgba(20, 16, 10, .14); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:active { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--quiet { box-shadow: none; font-weight: 540; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.iconbtn { width: 40px; height: 40px; }
.chip, .opt, .subtab { font-weight: 520; }
.subtabs { gap: 6px; padding-bottom: 8px; }
.subtab { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; font-size: 13.5px; line-height: 1; white-space: nowrap; }
.empty-meal { border: 1px dashed var(--line-2); box-shadow: none; padding: 14px; background: transparent; }
.chip--demo { border: 1px dashed var(--line-2); box-shadow: none; }
.opt { min-height: 40px; font-size: 14px; }
.row__title { font-weight: 560; }
.label { font-weight: 560; font-size: 13px; }
.tabbar .tab { font-weight: 520; font-size: 11px; }

/* ---------- Track overview cards: chart sits quietly in the background ---------- */
.tcard { overflow: hidden; isolation: isolate; min-height: 150px; }
.tcard > :not(.tcard__spark) { position: relative; z-index: 1; }
.tcard__spark { position: absolute; left: 34%; right: 0; bottom: 0; top: auto; height: 52%; z-index: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 65%), linear-gradient(90deg, transparent 0%, #000 45%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 65%), linear-gradient(90deg, transparent 0%, #000 45%); mask-composite: intersect; }
.tcard__spark svg { display: block; width: 100%; height: 100%; }
.tcard .num--m { font-size: 25px; }

/* ---------- premium charts ---------- */
.chart text { font-size: 10.5px; font-weight: 500; }
.chart .grid { stroke-dasharray: 1.5 5; stroke-linecap: round; stroke-opacity: .8; }
.chart .line { stroke-width: 2; }
.chart .dot { stroke-width: 2.5; }
.chart .dot--solid { stroke-width: 2.5; }
.chart .halo { fill: var(--chart-line); opacity: .16; }
.chart .tag { fill: var(--ink); opacity: .92; }
.chart text.tag-t { font-weight: 600; font-size: 11px; }
.chart .c-bar { rx: 5px; }

/* ring + metric cards: everything on one centre line */
.metric { display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; }
.metric .eyebrow, .metric .small, .metric .fine { text-align: center; }
.ring-wrap__center .num { font-size: 26px; }

/* ---------- onboarding: Building your first week ---------- */
.build { display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: 46px; }
.build__ringwrap { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.build__ringwrap::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); opacity: .8; animation: build-breathe 2.4s ease-in-out infinite; }
.build__ring { position: relative; width: 132px; height: 132px; }
.build__ring .arc { filter: drop-shadow(0 2px 6px rgba(212, 59, 18, .3)); }
.build__pct { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 44px; font-size: 28px; font-weight: 560; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.build__pct small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.build__head { display: grid; gap: 6px; }
.build__list { width: 100%; max-width: 340px; display: grid; padding: 4px 0; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); text-align: left; }
.build__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-weight: 500; font-size: 14.5px; color: var(--ink-3); transition: color .3s; }
.build__item + .build__item { box-shadow: inset 0 1px 0 var(--line); }
.build__st { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .3s, box-shadow .3s; }
.build__st .icon { width: 14px; height: 14px; color: var(--on-pine); transform: scale(.3); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.build__item.active { color: var(--ink); }
.build__item.active .build__st { box-shadow: none; }
.build__item.active .build__st::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.build__item.done { color: var(--ink); }
.build__item.done .build__st { background: var(--pine); box-shadow: none; }
.build__item.done .build__st .icon { transform: scale(1); opacity: 1; }
@keyframes build-breathe { 0%, 100% { transform: scale(.96); opacity: .55; } 50% { transform: scale(1.06); opacity: .9; } }

/* ---------- sign-in: calm, premium phone entry ---------- */
.auth { gap: 22px; }
.auth__head { gap: 8px; padding-top: 6px; justify-items: start; }
.auth__badge { position: relative; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent-text); background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 12px 24px -14px var(--accent); }
.auth__badge::after { content: ""; position: absolute; inset: -7px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); animation: auth-ring 2.8s ease-out infinite; }
.auth .ob__q { font-size: 24px; letter-spacing: -.03em; }
.auth .lede { font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
.prefix--pro { position: relative; display: flex; align-items: stretch; height: 58px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 16, 10, .05), 0 12px 24px -18px rgba(20, 16, 10, .25); transition: box-shadow .2s var(--ease); }
/* the outline is an overlay above both halves, so the highlight is one unbroken line around the whole field */
.prefix--pro::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s var(--ease); }
.prefix--pro:focus-within { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 14px 28px -16px var(--accent); }
.prefix--pro:focus-within::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.prefix--pro .prefix__tag { display: flex; align-items: center; gap: 8px; padding: 0 16px; margin: 0; border-radius: 16px 0 0 16px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); font-weight: 560; font-size: 15px; color: var(--ink-2); box-shadow: inset -1px 0 0 var(--line); min-width: 0; height: auto; }
.prefix--pro .prefix__tag i { font-size: 13px; color: var(--ink-3); }
.prefix--pro .input { flex: 1; height: 100%; border-radius: 0; background: transparent; box-shadow: none !important; font-size: 19px; font-weight: 480; letter-spacing: .02em; font-variant-numeric: tabular-nums; padding: 0 16px; }
.prefix--pro .input:focus { outline: none; box-shadow: none !important; }
.prefix--pro .input::placeholder { color: var(--ink-3); opacity: .55; font-weight: 400; }
.field.has-error .prefix--pro { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 14%, transparent); } .field.has-error .prefix--pro::after { box-shadow: inset 0 0 0 1.5px var(--bad); }
/* one focus highlight for every field in the app: accent outline + soft glow */
.input:focus, select.input:focus, textarea.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); }
.input[aria-invalid="true"], .field.has-error .input { box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 0 5px color-mix(in srgb, var(--bad) 13%, transparent); }
.input { transition: box-shadow .2s var(--ease); }
.btn--go { gap: 10px; height: 54px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); box-shadow: 0 1px 2px rgba(20, 16, 10, .18), 0 16px 28px -14px var(--accent); }
.btn--go i { font-size: 14px; transition: transform .25s var(--ease); }
.btn--go:not([disabled]):hover i { transform: translateX(4px); }
.btn--go[disabled] { opacity: 1; background: var(--bg-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.auth__trust { display: grid; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.auth__trust span { display: inline-flex; align-items: center; gap: 7px; } .auth__trust i { color: var(--pine-text); font-size: 12px; }
.auth .fine { font-size: 12px; line-height: 1.5; }
.agree { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 2px 0; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree__box { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); transition: background-color .2s, box-shadow .2s, color .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.agree input:focus-visible + .agree__box { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.agree input:checked + .agree__box { background: var(--accent); color: var(--on-accent, #fff); box-shadow: none; transform: scale(1.06); }
.agree__t { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); } .agree__t a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wel__slide:first-child .photo { object-position: 4% 50%; }
@keyframes auth-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .screen.enter .auth > * { animation: rise-in .55s var(--ease) both; } .screen.enter .auth > :nth-child(2) { animation-delay: .08s; } .screen.enter .auth > :nth-child(3) { animation-delay: .16s; } .screen.enter .auth > :nth-child(4) { animation-delay: .22s; } }
.otp input { border-radius: 16px; font-weight: 520; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.otp input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-2px); }

/* ---------- splash ---------- */
.splash { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 38%, #221A12 0%, #14110D 55%, #0C0A08 100%); }
.splash__glow { position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 116, 72, .34), rgba(255, 116, 72, .08) 55%, transparent 72%); opacity: 0; animation: sp-glow 2.6s ease-out .1s both; }
.splash__ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; opacity: 0; transform: translateY(24px); animation: sp-ridge 1.6s var(--ease) .5s both; }
.splash__ridges .r1 { fill: rgba(255, 255, 255, .035); } .splash__ridges .r2 { fill: rgba(255, 116, 72, .07); }
.splash__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; animation: none; }
.splash__mark { width: 76px; height: 76px; overflow: visible; }
.splash__mark path { fill: #FF7448; fill-opacity: 0; stroke: #FF7448; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw 1.1s var(--ease) .25s forwards, sp-fill .7s ease 1.05s forwards; }
.splash__word { display: inline-flex; font-size: 34px; font-weight: 540; letter-spacing: -.045em; color: #F4EEE3; }
.splash__word span { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(4px); animation: sp-letter .6s var(--ease) calc(.85s + var(--i) * .045s) forwards; }
.splash__tag { font-size: 11.5px; font-weight: 520; letter-spacing: .3em; text-transform: uppercase; color: #A29A8A; opacity: 0; animation: sp-tag 1.2s ease 1.5s forwards; }
.splash__bar { position: absolute; left: 50%; bottom: 8%; width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; opacity: 0; animation: fade-in .4s ease 1s forwards; }
.splash__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #FF7448, #FFB08F); transform: scaleX(0); transform-origin: left; animation: sp-load 2.4s cubic-bezier(.4, 0, .2, 1) 1.1s forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-fill { to { fill-opacity: 1; } }
@keyframes sp-letter { to { opacity: 1; transform: none; filter: none; } }
@keyframes sp-tag { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .3em; } }
@keyframes sp-glow { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; } 100% { opacity: .85; transform: scale(1.05); } }
@keyframes sp-ridge { to { opacity: 1; transform: none; } }
@keyframes sp-load { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .splash__glow, .splash__ridges, .splash__mark path, .splash__word span, .splash__tag, .splash__bar, .splash__bar i { animation: none; opacity: 1; transform: none; filter: none; stroke-dashoffset: 0; fill-opacity: 1; } .splash__bar i { transform: scaleX(1); } }

/* welcome carousel: slides never show outside the phone */
.wel { overflow: hidden; } .wel__slide { overflow: hidden; } .wel__track { overscroll-behavior-x: contain; }
/* ...and they animate when the image changes: parallax slide, slow zoom on the active photo, copy easing in */
@media (prefers-reduced-motion: no-preference) {
  .wel__slide .photo { animation: none; translate: calc(var(--p, 0) * -24%) 0; scale: 1.14; transition: scale .9s var(--ease); will-change: translate, scale; }
  .wel__slide.is-active .photo { animation: kb 7s cubic-bezier(.2, .6, .3, 1) both; }
  .wel__slide::after { transition: opacity .6s; }
  .wel__copy > * { opacity: 0; transform: translateY(22px); filter: blur(5px); transition: opacity .5s ease, transform .6s var(--ease), filter .5s ease; }
  .wel__slide.is-active .wel__copy > * { opacity: 1; transform: none; filter: none; }
  .wel__slide.is-active .wel__copy > :nth-child(1) { transition-delay: .18s; } .wel__slide.is-active .wel__copy > :nth-child(2) { transition-delay: .32s; }
  .wel__copy .display em { display: inline-block; }
  .wel__slide.is-active .wel__copy .display em { animation: em-pop .8s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
  .wel__bottom .dots i { transition: width .45s var(--ease), background-color .3s, opacity .3s; }
  .wel__bottom .dots i.on { width: 26px; }
}
@keyframes kb { from { scale: 1.16; } to { scale: 1.02; } }
@keyframes em-pop { from { opacity: .3; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Font Awesome icons ---------- */
i.icon { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; line-height: 1; font-style: normal; flex: none; }
.tabbar .tab i.icon { font-size: 21px; width: 24px; height: 24px; }
.tabbar .tab[aria-current="page"] i.icon { font-weight: 900; font-family: "Font Awesome 7 Pro", "Font Awesome 6 Pro"; }
.chip i.icon { width: auto; height: auto; font-size: 11px; }

/* ---------- alert modal (validation + problems) ---------- */
.alertm { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 6px 4px 2px; }
.alertm__ico { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad-soft) 45%, transparent); animation: alert-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.alertm__t { font-size: 15.5px; line-height: 1.45; color: var(--ink); max-width: 28ch; text-wrap: balance; }
@keyframes alert-in { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.layer--dialog .layer__panel, .layer--dialog > .panel { box-shadow: 0 2px 4px rgba(10, 8, 6, .08), 0 14px 28px -8px rgba(10, 8, 6, .22), 0 44px 90px -24px rgba(10, 8, 6, .55); }
.layer__scrim { background: radial-gradient(120% 90% at 50% 40%, rgba(18, 14, 10, .42), rgba(8, 6, 4, .7)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- connecting -> connected ---------- */
.linking .link__box { position: relative; width: min(320px, calc(100% - 48px)); display: grid; justify-items: center; gap: 6px; padding: 30px 24px 26px; border-radius: 26px; background: var(--bg); box-shadow: var(--shadow-2); text-align: center; animation: pop .28s var(--ease) both; }
.link__row { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 14px; }
.link__logo { position: relative; flex: none; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 24px; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .45); }
.link__logo--rl { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px -10px rgba(0, 0, 0, .3); }
.link__logo--rl svg { width: 30px; height: 30px; }
.link__logo--app::after { content: ""; position: absolute; inset: -6px; border-radius: 25px; border: 2px solid var(--accent); opacity: 0; animation: link-pulse 1.6s ease-out infinite; }
.link__line { position: relative; flex: 1; height: 2px; margin: 0 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); overflow: visible; }
.link__fill { position: absolute; inset: 0; border-radius: 2px; background: var(--good); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.link__dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); opacity: 0; animation: link-travel 1.5s cubic-bezier(.5, 0, .5, 1) infinite; }
.link__dot:nth-child(3) { animation-delay: .25s; } .link__dot:nth-child(4) { animation-delay: .5s; }
.link__ok { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--bg); transform: scale(0); box-shadow: 0 0 0 5px var(--bg); }
.link__ok svg { width: 18px; height: 18px; }
.link__ok path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.link__t { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.link__s { font-size: 13.5px; color: var(--ink-3); min-height: 19px; }
.link__t, .link__s { transition: opacity .2s; }
.link__box.is-ok .link__fill { transform: scaleX(1); }
.link__box.is-ok .link__dot { animation: none; opacity: 0; }
.link__box.is-ok .link__line { background: none; }
.link__box.is-ok .link__logo--app::after { border-color: var(--good); animation: link-burst .7s ease-out both; }
.link__box.is-ok .link__ok { animation: link-ok .5s cubic-bezier(.3, 1.7, .5, 1) .35s both; }
.link__box.is-ok .link__ok path { animation: link-draw .35s ease-out .6s forwards; }
.linking { transition: opacity .22s; } .linking.out { opacity: 0; }
@keyframes link-travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes link-pulse { 0% { transform: scale(.92); opacity: .55; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes link-burst { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes link-ok { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes link-draw { to { stroke-dashoffset: 0; } }
/* a freshly connected row settles in */
.chip--good { animation: chip-in .4s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes chip-in { from { transform: scale(.85); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .link__dot, .link__logo--app::after, .build__ringwrap::before, .build__item.active .build__st::before { animation: none; } }

/* ---------- typography: smooth, light where it can be, small or large where it should be ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; font-variant-ligatures: common-ligatures; }
body { font-weight: 400; letter-spacing: -.003em; }
.display { font-weight: 540; letter-spacing: -.035em; }
.h1 { font-weight: 560; letter-spacing: -.03em; }
.h2 { font-weight: 560; font-size: 18px; letter-spacing: -.022em; }
.h3 { font-weight: 560; font-size: 15.5px; letter-spacing: -.012em; }
.lede { font-weight: 400; color: var(--ink-2); }
.eyebrow { font-weight: 540; font-size: 10.5px; letter-spacing: .09em; }
.num { font-weight: 540; letter-spacing: -.04em; }
.num--xl { font-size: 48px; font-weight: 500; letter-spacing: -.05em; }
.num--l { font-size: 36px; font-weight: 520; }
.num--m { font-size: 24px; }
.unit { font-weight: 500; }
.nav__h { font-size: 21px; font-weight: 580; letter-spacing: -.028em; }
.ob__q { font-size: 25px; font-weight: 570; letter-spacing: -.032em; }
.wel__copy .display { font-size: 36px; }
.wel__copy p { font-size: 15.5px; }
.home-top__hi { font-size: 19px; font-weight: 570; }
.plan__name { font-size: 22px; font-weight: 570; }
.credit__n { font-size: 40px; font-weight: 520; }
.dchip b { font-size: 17px; font-weight: 560; }
.step .num { font-size: 42px; }
.track-opt h3 { font-size: 21px; font-weight: 570; }
.splash__word { font-weight: 560; }
.brand__word { font-size: 20px; font-weight: 560; }
.sec .h2 { font-size: 18px; }
.row__sub, .tile__s, .small { font-weight: 400; }
.chip { font-size: 12px; font-weight: 520; }
.btn { font-weight: 540; }
.input, select.input { font-weight: 450; }
.tcard .num--m { font-size: 22px; }
.ring-wrap__center .num { font-size: 22px; }
.food__k { font-weight: 560; }
.notif .row__title, .row__title { font-weight: 550; }
.bubble { font-weight: 420; }

/* ---------- motion: plays when you navigate to a screen (not on background refresh) ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ring-fill { from { stroke-dashoffset: var(--c); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tab-pop { 0% { transform: scale(.8) translateY(2px); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes badge-ping { 0% { box-shadow: 0 0 0 0 rgba(212, 59, 18, .5); } 100% { box-shadow: 0 0 0 9px rgba(212, 59, 18, 0); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sheen { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .screen.enter > .page { animation: fade-in .3s ease both; }
  .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > * { animation: rise-in .55s var(--ease) both; }
  .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(1) { animation-delay: .02s; } .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(2) { animation-delay: .07s; }
  .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(3) { animation-delay: .12s; } .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(4) { animation-delay: .17s; }
  .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(5) { animation-delay: .22s; } .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(6) { animation-delay: .27s; }
  .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(7) { animation-delay: .32s; } .screen.enter :is(.page > .stack, .tgrid, .grid2, .list, .macros, .opts, .week) > :nth-child(n+8) { animation-delay: .36s; }
  .screen.enter .ring .prog { animation: ring-fill 1.1s var(--ease) .2s both; }
  .screen.enter .chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) .25s forwards; }
  .screen.enter .chart .area { animation: fade-in .9s ease .6s both; }
  .screen.enter .chart .dot--solid, .screen.enter .chart .halo, .screen.enter .chart .tag, .screen.enter .chart .tag-t { animation: fade-in .4s ease 1.3s both; }
  .screen.enter .chart .c-bar { transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease) both; }
  .screen.enter .chart rect:nth-of-type(2) { animation-delay: .05s; } .screen.enter .chart rect:nth-of-type(3) { animation-delay: .1s; } .screen.enter .chart rect:nth-of-type(4) { animation-delay: .15s; }
  .screen.enter .chart rect:nth-of-type(5) { animation-delay: .2s; } .screen.enter .chart rect:nth-of-type(6) { animation-delay: .25s; } .screen.enter .chart rect:nth-of-type(7) { animation-delay: .3s; }
  .screen.enter .tcard__spark { animation: fade-in 1s ease .5s both; }
  .screen.enter .bar > span { transform-origin: left; animation: bar-in .9s var(--ease) .15s both; }
  .tab[aria-current="page"] .icon { animation: tab-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
  .wel__slide .photo { animation: drift 16s ease-in-out infinite alternate; }
  .splash__mark { animation: float-y 2.6s ease-in-out infinite; }
  .card--tap, .row, .tile, .tcard { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .15s; }
  .card--tap:active, .tile:active { transform: scale(.985); }
  @media (hover: hover) { .card--tap:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -14px rgba(22, 25, 28, .25); } }
  .iconbtn .dot, .notif-dot, .iconbtn .badge { animation: badge-ping 2.2s ease-out infinite; }
  .skel { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 200% 100%; animation: sheen 1.4s linear infinite; }
  .toast { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
}
