/* Ask Yogi concept preview.
   All measurements come from the Figma file (frame 390 x 891). Comments name the Figma node when useful.
   Figma "Glass" effects (refraction / dispersion) have no CSS equivalent; they are rebuilt with
   backdrop blur + the exact gradient stroke + inner glow + a light rim. */

@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }

:root {
  --gs: "General Sans", "Inter", system-ui, sans-serif;
  --inter: "Inter", system-ui, sans-serif;
  --dm: "DM Sans", "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #121212;
  color: #fff;
  font-family: var(--gs);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, a { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; user-select: none; -webkit-user-drag: none; }
b { font-weight: 600; }

/* ---------------------------------------------------------------- desktop stage */
.stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 32px;
}
.stage-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 62% 50%, var(--stage-tint, rgba(120, 60, 220, .22)), transparent 70%),
    radial-gradient(30% 40% at 30% 70%, rgba(255, 255, 255, .03), transparent 70%);
  transition: background .8s;
}
.panel {
  position: relative;
  width: 280px;
  display: flex; flex-direction: column;
  font-family: var(--inter);
}
.panel-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 36px; }
.panel-brand img { filter: drop-shadow(0 0 12px rgba(255,255,255,.28)); }
.panel-title { font: 600 18px/1.2 var(--gs); letter-spacing: -.01em; }
.panel-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.panel-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 10px; }
.concept-list { display: grid; gap: 8px; margin-bottom: 28px; }
.concept-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 16px; text-align: left;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background .25s, box-shadow .25s, transform .2s var(--ease-out);
}
.concept-item:hover { background: rgba(255,255,255,.06); }
.concept-item:active { transform: scale(.98); }
.concept-item[aria-checked="true"] { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.concept-thumb { width: 44px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.concept-thumb img { width: 100%; height: 100%; object-fit: cover; }
.concept-num { font: 600 15px/1 var(--gs); }
.concept-desc { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 4px; line-height: 1.3; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); margin-bottom: 16px; }
.seg-btn { position: relative; z-index: 1; height: 36px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.55); transition: color .3s; }
.seg-btn.is-active { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .45s var(--ease-ios); }
.seg[data-active="sub"] .seg-pill { transform: translateX(100%); }
.panel-action { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: background .2s; }
.panel-action:hover { background: rgba(255,255,255,.09); }
.panel-foot { margin-top: 32px; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.4); display: grid; gap: 10px; }
kbd { font-family: var(--inter); font-size: 11px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

.device-wrap { position: relative; width: calc(414px * var(--dev-scale, 1)); height: calc(915px * var(--dev-scale, 1)); flex: none; }
.device {
  position: absolute; left: 0; top: 0;
  width: 414px; height: 915px;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(145deg, #2a2a30, #0c0c0f 40%, #1b1b20);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(0,0,0,.7), 0 0 120px -30px var(--stage-tint, rgba(120,60,220,.4));
  transform: scale(var(--dev-scale, 1));
  transform-origin: 0 0;
}
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a30; }
.device::before { left: -3px; top: 170px; height: 64px; box-shadow: 0 84px 0 #2a2a30; }
.device::after { right: -3px; top: 220px; height: 96px; }

/* ---------------------------------------------------------------- app shell */
.app {
  --top-inset: 54px;          /* Figma status bar height */
  --bottom-inset: 0px;
  position: relative;
  width: 390px; height: 891px;
  border-radius: 40px;
  overflow: hidden;
  background: #1c0d33;
  isolation: isolate;
  contain: layout paint;
}

.statusbar { position: absolute; z-index: 60; left: 0; right: 0; top: 0; height: 54px; pointer-events: none; }
.sb-time { position: absolute; left: 0; top: 17px; width: 134px; text-align: center; font: 600 17px/22px var(--inter); letter-spacing: -.17px; }
.sb-island { position: absolute; left: 133px; top: 11px; width: 124px; height: 36px; border-radius: 20px; background: #000; }
.sb-icons { position: absolute; right: 28px; top: 21px; display: flex; gap: 6px; align-items: flex-start; }
.sb-icons img:nth-child(1), .sb-icons img:nth-child(2) { margin-top: .5px; }

.screen { position: absolute; inset: 0; overflow: hidden; background: var(--frame-fill, #1c0d33); transition: transform .55s var(--ease-ios), filter .55s var(--ease-ios); will-change: transform; }
.screen-sub { transform: translateX(100%); box-shadow: -20px 0 40px rgba(0,0,0,.35); }
.app[data-screen="sub"] .screen-sub { transform: none; }
.app[data-screen="sub"] .screen-home { transform: translateX(-28%); filter: brightness(.55); }
.screen:not(.is-active) { pointer-events: none; }

.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; transition: opacity .5s; }
.frame-shadow { position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--frame-shadow, none); pointer-events: none; }

/* Figma "Rectangle 240647449/451": 8% white gradient with progressive background blur (2.3 → 72). */
.bg-veil { position: absolute; left: 0; width: 100%; pointer-events: none; -webkit-backdrop-filter: blur(36px); backdrop-filter: blur(36px); }
.bg-veil-bottom {
  bottom: 0; height: 373px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.008) 58%, rgba(255,255,255,.07));
  -webkit-mask: url("assets/img/veil-bottom.svg") center / 100% 100% no-repeat, linear-gradient(to bottom, rgba(0,0,0,.06), #000 75%);
  -webkit-mask-composite: source-in;
  mask: url("assets/img/veil-bottom.svg") center / 100% 100% no-repeat, linear-gradient(to bottom, rgba(0,0,0,.06), #000 75%);
  mask-composite: intersect;
}
.bg-veil-top {
  top: 0; height: 390px;
  background: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.008) 81%, rgba(255,255,255,.08));
  -webkit-mask: url("assets/img/veil-top.svg") center / 100% 100% no-repeat, linear-gradient(to top, rgba(0,0,0,.06), #000 75%);
  -webkit-mask-composite: source-in;
  mask: url("assets/img/veil-top.svg") center / 100% 100% no-repeat, linear-gradient(to top, rgba(0,0,0,.06), #000 75%);
  mask-composite: intersect;
}
.bg-veil-top-sub { height: 578px; -webkit-mask-image: url("assets/img/veil-top-sub.svg"), linear-gradient(to top, rgba(0,0,0,.06), #000 75%); mask-image: url("assets/img/veil-top-sub.svg"), linear-gradient(to top, rgba(0,0,0,.06), #000 75%); }

/* ---------------------------------------------------------------- glass */
.glass {
  position: relative;
  -webkit-backdrop-filter: blur(var(--gb, 4px)) saturate(var(--gsat, 135%));
  backdrop-filter: blur(var(--gb, 4px)) saturate(var(--gsat, 135%));
  box-shadow: inset 0 0 var(--gi, 11.78px) rgba(255,255,255,var(--gia, .31));
}
/* exact Figma gradient stroke (white → transparent, 43% paint opacity, inside) */
.glass::before, .glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: var(--sw, 1px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::before { background: linear-gradient(var(--ga, 152.45deg), #fff var(--g0, 4%), rgba(255,255,255,0) var(--g1, 30%)); opacity: var(--so, .43); }
/* light rim from the Glass effect (light angle 303°): soft all round, brighter on the lit and opposite edges */
.glass::after { background: linear-gradient(var(--ga, 152.45deg), rgba(255,255,255,.34), rgba(255,255,255,.1) 35%, rgba(255,255,255,.08) 65%, rgba(255,255,255,.3)); opacity: var(--rim, .75); }

.tap { transition: transform .35s var(--spring), filter .2s; }
.tap:active { transform: scale(.94); transition-duration: .12s; }

/* ---------------------------------------------------------------- top panel / header */
.top-panel { position: absolute; z-index: 20; left: 0; right: 0; top: 0; padding-top: calc(var(--top-inset) + 18px); }
.top-panel-bg {
  position: absolute; inset: 0 0 -26px; opacity: 0; transition: opacity .35s;
  background: linear-gradient(to bottom, rgba(18, 8, 36, .55), rgba(18, 8, 36, .25) 70%, rgba(18,8,36,0));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent);
}
.app.is-scrolled .top-panel-bg { opacity: 1; }
.hdr { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 15px; height: 44px; }
.hdr-group { display: flex; gap: 5px; }
.hdr-avatar { width: 44px; height: 44px; border-radius: 22px; overflow: hidden; position: relative; }
.hdr-avatar img { position: absolute; left: -.78px; top: -8.36px; width: 45.56px; height: 60.72px; max-width: none; } /* CROP transform of 221:5528 */
.gbtn { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.gbtn-menu { box-shadow: inset 0 0 11.78px rgba(255,255,255,.31), 0 8px 18px -8px rgba(8,2,24,.6); }
.dollar { font: 300 22px/22px var(--inter); }
.badge-dot { position: absolute; top: 11px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #fb76d1; box-shadow: 0 0 6px #fb76d1; transform: scale(0); transition: transform .4s var(--spring); }
.app.has-alert .badge-dot { transform: scale(1); }
.hdr-logo { width: 44px; height: 44px; margin-top: 3px; transform: translateX(4px); filter: drop-shadow(0 0 12px rgba(255,255,255,.28)); }
.hdr-logo:active { transform: translateX(4px) scale(.92); }

.loadbar { position: absolute; left: 15px; right: 15px; bottom: -14px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.loadbar span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%, #fff); box-shadow: 0 0 10px rgba(255,255,255,.8); }
.app.is-loading .loadbar { opacity: 1; }
.app.is-loading .loadbar span { animation: load 1.1s var(--ease-out) forwards; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(1); } }

/* ---------------------------------------------------------------- home scroller */
.scroller {
  position: absolute; inset: 0; z-index: 10;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.home-content { padding: calc(var(--top-inset) + 18px + 44px + 33px) 0 128.04px; transition: transform .45s var(--ease-ios); }
.ptr { position: absolute; left: 50%; top: calc(var(--top-inset) + 70px); width: 26px; height: 26px; margin-left: -13px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; filter: drop-shadow(0 0 10px rgba(255,255,255,.6)); }
.app.is-refreshing .ptr { opacity: 1; transform: scale(1); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* month row (221:5590 / 221:5597 / 221:5599 / 221:5606) */
.month-row { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 15px; }
.month-nav { display: flex; align-items: center; gap: 5px; }
.mbtn { width: 25px; height: 25px; border-radius: 12.5px; display: grid; place-items: center; --gb: 3px; --gi: 9.2px; --sw: .78px; }
.month-title { width: 120px; height: 23px; overflow: hidden; position: relative; font: 400 23px/23px var(--gs); letter-spacing: -.115px; white-space: nowrap; margin-top: 1px; }
.month-label { display: block; }
.month-label.out-l { animation: outL .28s var(--ease-out) forwards; }
.month-label.in-r { animation: inR .38s var(--ease-out); }
.month-label.out-r { animation: outR .28s var(--ease-out) forwards; }
.month-label.in-l { animation: inL .38s var(--ease-out); }
@keyframes outL { to { transform: translateX(-30px); opacity: 0; } }
@keyframes outR { to { transform: translateX(30px); opacity: 0; } }
@keyframes inR { from { transform: translateX(30px); opacity: 0; } }
@keyframes inL { from { transform: translateX(-30px); opacity: 0; } }
.getting-started { display: flex; align-items: center; gap: 6px; font: 500 14px/14px var(--inter); color: rgba(255,255,255,.92); }
.getting-started img { width: 34px; height: 26px; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

/* week strip (221:5610): mask 402 wide starting at x = -12 */
.week {
  margin-top: 8px; height: 102px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.393) 0%, rgba(0,0,0,.5) 6.2%, #000 10.33%, #000 86.6%, rgba(0,0,0,.5) 91.75%, rgba(0,0,0,.3) 96.9%, rgba(0,0,0,.3) 100%);
  mask: linear-gradient(90deg, rgba(0,0,0,.393) 0%, rgba(0,0,0,.5) 6.2%, #000 10.33%, #000 86.6%, rgba(0,0,0,.5) 91.75%, rgba(0,0,0,.3) 96.9%, rgba(0,0,0,.3) 100%);
}
.week::-webkit-scrollbar { display: none; }
.week-track { position: relative; display: flex; gap: 8px; padding: 10px 12px 0; width: max-content; }
.day {
  position: relative; z-index: 1;
  height: 92px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: color .35s;
}
.day.glass { --ga: 162.68deg; --g0: 4.63%; --g1: 33.77%; --gb: 4px; }
.day-dot { width: 6px; height: 6px; border-radius: 3px; margin-bottom: 6px; background: var(--dot); box-shadow: 0 0 6px #fff, inset 0 0 11.775px rgba(255,255,255,.31); }
.day-dot.is-yellow { --dot: #f0ce53; }
.day-dot.is-green { --dot: #8ceea5; }
.day-name { font: 500 14px/14px var(--gs); color: rgba(255,255,255,.86); margin-bottom: 5px; transition: color .35s; }
.day-num { font: 400 22px/22px var(--gs); color: #fff; transition: color .35s; }
.day.is-selected .day-name, .day.is-selected .day-num { color: #000; }
.day.is-selected::before, .day.is-selected::after { opacity: 0; transition: opacity .2s; }
.day.no-dot { padding-top: 12px; }
.day-sel { position: absolute; z-index: 0; top: 10px; left: 0; height: 92px; border-radius: 28px; background: #fefefe; transition: transform .5s var(--ease-ios), width .5s var(--ease-ios); box-shadow: 0 6px 20px -6px rgba(255,255,255,.35); }

/* today's colors (221:5700) */
.colors {
  margin: 25px 15px 0; height: 43.76px; border-radius: 23.87px;
  display: flex; align-items: center; padding: 0 13.92px 0 17.9px;
  --sw: .99px; --gi: 11.71px; --ga: 103.11deg; --g0: 1.91%; --g1: 18.76%;
  z-index: 3;
}
.colors-title { font: 500 14.917px/14.917px var(--gs); white-space: nowrap; }
.colors-div { width: .994px; height: 19.89px; margin: 0 13.92px; background: rgba(255,255,255,.28); }
.colors-dots { display: flex; gap: 7.956px; }
.cdot { display: block; width: 23.867px; height: 23.867px; border-radius: 50%; box-shadow: inset 0 0 11.71px rgba(255,255,255,.31); flex: none; }
.cdot-1 { background: var(--dot1, linear-gradient(160.11deg, #2a8dff -.17%, #22d3ff 100.17%)); }
.cdot-2 { background: linear-gradient(160.11deg, #ffc527 -.17%, #ffdc8f 100.17%); }
.cdot-3 { background: #fb76d1; }
.colors-dots .cdot { animation: none; }
.colors-view { margin-left: auto; display: flex; align-items: center; gap: 5.967px; font: 500 14.917px/14.917px var(--gs); height: 43.76px; }
.colors-view img { transition: transform .4s var(--ease-ios); }
.colors.is-open .colors-view img { transform: rotate(180deg); }
.colors-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  padding: 14px 16px; border-radius: 22px;
  background: rgba(30, 14, 56, .86);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 14px rgba(255,255,255,.12), 0 20px 40px -10px rgba(0,0,0,.45);
  display: grid; gap: 10px;
  font: 400 13px/1.3 var(--gs); color: rgba(255,255,255,.75);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 80% 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-ios);
}
.colors-pop p { display: flex; align-items: center; gap: 10px; }
.colors-pop .cdot { width: 16px; height: 16px; }
.colors-pop b { font-weight: 500; color: #fff; margin-right: 2px; }
.colors.is-open .colors-pop { opacity: 1; transform: none; pointer-events: auto; }

/* hero article (221:5719) */
.hero { position: relative; margin: 25.75px 15px 0; height: 182.89px; border-radius: 40px; overflow: hidden; z-index: 1; }
.hero-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; }
.hero-shadow { position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--frame-shadow, none); pointer-events: none; }
.hero-badge {
  position: absolute; left: 23.1px; top: 21.17px; height: 28.55px; border-radius: 16.36px;
  display: flex; align-items: center; gap: 7.7px; padding: 0 13.48px 0 10.59px;
  font: 500 14.44px/14.44px var(--gs);
  --sw: .96px; --gi: 11.33px; --ga: 115.41deg; --g0: 2.17%; --g1: 20.2%;
}
.hero-title { position: absolute; left: 23px; top: 61px; width: 257px; white-space: nowrap; font: 400 25px/24px var(--gs); letter-spacing: -.1925px; }

/* glowing CTA (Group 107 + Ellipse 43425) */
.cta { position: relative; overflow: hidden; display: block; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; border-radius: inherit; background: var(--c-fill); box-shadow: var(--c-shadow); transition: background .5s, box-shadow .5s; }
.cta-glow { position: absolute; border-radius: 50%; background: var(--c-glow); filter: blur(var(--c-blur)); mix-blend-mode: plus-lighter; pointer-events: none; transition: background .5s, top .5s var(--ease-ios); }
.cta-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; white-space: nowrap; }

.cta-unlock { position: absolute; left: 23px; top: 121.49px; width: 150px; height: 43px; border-radius: 21.5px; }
.cta-unlock .cta-label { gap: 5px; font: 500 13.55px/1.2 var(--gs); padding-top: 1px; }
.cta-unlock .cta-glow { left: 35px; width: 80px; height: 23px; top: var(--u-glow-top, -12px); --c-blur: 19px; }
.cta-unlock { --c-fill: var(--u-fill); --c-shadow: var(--u-shadow); --c-glow: var(--u-glow); }
.cta-unlock .cta-bg { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.18); } }

/* status cards (221:5744) */
.cards {
  position: relative; margin: 19.6px 15px 0; height: 180.96px; border-radius: 40px;
  --sw: .96px; --gi: 11.33px; --ga: 133.93deg; --g0: 2.91%; --g1: 24.26%; --gb: 6px;
}
.card { position: absolute; overflow: hidden; background: rgba(255,255,255,.04); isolation: isolate; }
.card-family { left: 7.04px; top: 6.04px; width: 162px; height: 166px; border-radius: 32.13px; box-shadow: inset 0 1.07px 31.27px 5.35px var(--fam-glow, rgba(255,220,143,.5)), inset 0 0 11.335px rgba(255,255,255,.31), inset 0 0 0 .6px rgba(255,255,255,.18); }
.card-alerts { left: 189.63px; right: 6.74px; top: 6.74px; height: 165.56px; border-radius: 30px; box-shadow: inset 0 0 11.335px rgba(255,255,255,.31), inset 0 0 0 .6px rgba(255,255,255,.18); }
.card-glow { position: absolute; left: 35.5px; top: -91.43px; width: 90.46px; height: 90.46px; filter: blur(17px); pointer-events: none; z-index: -1; }
.card-glow i { position: absolute; inset: 0; border-radius: 50%; background: var(--fam-ell, linear-gradient(217.28deg, #ffdc8f 53.8%, #ffc527 74.15%, #ffc527 90.32%, #ffdc8f 113.66%)); filter: blur(43px); mix-blend-mode: color-dodge; }
.card-head { position: absolute; left: 17.33px; right: 17.33px; top: 17.33px; height: 15.4px; display: flex; align-items: center; justify-content: space-between; font: 500 12px/13.476px var(--gs); }
.card-family .card-head { right: 17.61px; top: 17.29px; }
.card-head span { padding-top: 1px; }
.card-title { white-space: nowrap; position: absolute; left: 17.33px; right: 17.33px; top: 49.2px; font: 400 20px/24.064px var(--gs); letter-spacing: -.1271px; }
.card-family .card-title { top: 49.2px; }
.card-text { white-space: nowrap; position: absolute; left: 17.41px; width: 127.06px; top: 118px; font: 400 12px/16px var(--gs); color: rgba(255,255,255,.6); }
.card-family .card-text { left: 16.96px; top: 118px; }

/* bottom panel (221:5775) — fixed menu */
.bottom-panel {
  position: absolute; z-index: 20; left: 15px; right: 15px;
  bottom: calc(-67.69px + var(--bottom-inset));
  height: 175.38px; border-radius: 40px; padding: 11.08px 11.08px 0;
  --sw: .92px; --gi: 14.95px; --gia: .11; --ga: 133.04deg; --g0: 2.86%; --g1: 24.01%; --gb: 14px;
}
.tablist {
  position: relative; display: flex; height: 48px; padding: 3.69px; border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 14px rgba(255,255,255,.1), inset 0 0 0 .6px rgba(255,255,255,.14);
}
.tab { position: relative; z-index: 1; height: 40.62px; margin-top: .2px; border-radius: 20.31px; font: 500 12.92px/12.92px var(--gs); color: rgba(255,255,255,.6); transition: color .35s; }
.tab:nth-of-type(1) { width: calc((100% - 7.38px) * 81 / 330.47); padding-top: 1px; }
.tab:nth-of-type(2) { width: calc((100% - 7.38px) * 80.13 / 330.47); }
.tab:nth-of-type(3) { width: calc((100% - 7.38px) * 82.25 / 330.47); }
.tab:nth-of-type(4) { width: calc((100% - 7.38px) * 80.72 / 330.47); }
.tab.is-active { color: #fff; }
.tab-pill {
  position: absolute; z-index: 0; left: 3.69px; top: 3.5px; height: 41px; border-radius: 100px; overflow: hidden; isolation: isolate;
  transition: transform .55s var(--ease-ios), width .55s var(--ease-ios);
  --c-fill: var(--t-fill); --c-shadow: var(--t-shadow); --c-glow: var(--t-glow);
}
.tab-pill .cta-bg { right: .2px; border-radius: 20.5px; }
.tab-pill .cta-glow { left: calc(50% - 25.27px); width: 50px; height: 22px; top: var(--t-glow-top, -10.88px); --c-blur: 18px; }
.home-indicator { position: absolute; z-index: 30; left: 122px; top: 860.5px; width: 158px; height: 5px; border-radius: 33.5px; background: rgba(255,255,255,.15); pointer-events: none; }

/* ---------------------------------------------------------------- subscription */
.sub-scroller { position: absolute; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior-y: contain; }
.sub-scroller::-webkit-scrollbar { display: none; }
.sub-content { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--top-inset) + 12px) 0 82.89px; }
.sub-head { position: relative; height: 44px; flex: none; }
.sub-head .gbtn { position: absolute; left: 15px; top: 0; --gi: 11.33px; }
.sub-head-title { position: absolute; left: 0; right: 0; top: 13px; text-align: center; font: 500 19px/19px var(--gs); letter-spacing: -.19px; }
.sub-title { white-space: nowrap; margin: 56.88px auto 0; width: 333px; text-align: center; font: 400 41px/43.46px var(--gs); letter-spacing: -.57px; }
.sub-title .w-m { font-weight: 500; }
.sub-lede { white-space: nowrap; margin: 17.29px auto 0; width: 300px; text-align: center; font: 400 14px/17px var(--inter); color: rgba(255,255,255,.6); }
.sub-list { list-style: none; margin: 54.78px auto 0; width: 306px; display: flex; flex-direction: column; gap: 18px; }
.sub-list li { display: flex; gap: 12px; align-items: flex-start; min-height: 43.19px; font: var(--list-weight, 400) 16px/21.6px var(--gs); }
.sub-list li:last-child { min-height: 21.59px; }
.sub-list li img { flex: none; margin-top: .05px; }
.sub-list li span { margin-top: -1.2px; }
.sub-spacer { flex: 1 0 34px; }
.sub-actions { width: 334px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ghost {
  height: 56px; width: var(--ghost-w, 334.45px); border-radius: 28px;
  font: 500 15px/19.5px var(--ghost-font, var(--inter)); letter-spacing: -.05px;
  --sw: 1px; --gi: 11.33px; --ga: 107.82deg; --g0: 1.99%; --g1: 19.2%;
}
.app[data-ghost="soft"] .ghost { --gi: 16.2px; --gia: .11; --ga: 100.3deg; --g0: 1.48%; --g1: 100%; --so: .13; --gb: 14px; --rim: .55; }
.cta-plan { height: 56px; width: 333px; border-radius: 28px; --c-fill: var(--p-fill); --c-shadow: var(--p-shadow); --c-glow: var(--p-glow); }
.cta-plan .cta-glow { left: var(--p-glow-left, 78px); top: var(--p-glow-top, 33.89px); width: var(--p-glow-w, 177px); height: var(--p-glow-h, 36px); --c-blur: 24.7px; }
.cta-plan .cta-label { gap: 7px; font: 500 14px/1.2 var(--dm); padding-top: 1px; }
.cta-plan[data-font="gs"] .cta-label { font-family: var(--gs); }
.cta-plan .cta-spark { transition: transform .6s var(--ease-out); }
.app[data-plan-icon="none"] .cta-spark { display: none; }
.cta-plan.is-busy .cta-spark { display: block; animation: spin .9s linear infinite; }
.cta-plan.is-busy .cta-bg { animation: busy 1s ease-in-out infinite; }
@keyframes busy { 50% { filter: brightness(1.35); } }

/* ---------------------------------------------------------------- concepts (from Figma variants) */
.app {
  --black-fill: #020304;
  --black-shadow: inset 0 -1px 4.6px -1px #5c198f, inset 0 0 31.5px 1px #5c198f, inset 0 -3px 8.3px 2px #5c198f;
  --lilac-fill: rgba(61, 17, 188, .7);
  --lilac-shadow: inset 0 -1px 4.6px -1px #edd7ff, inset 0 0 31.5px 1px rgba(237,215,255,.5), inset 0 -3px 8.3px 2px rgba(237,215,255,.5);
  --blue-fill: rgba(84, 45, 128, .5);
  --blue-shadow-43: inset 0 -.768px 3.532px -.768px #cad9ff, inset 0 0 24.187px .768px #1d47ff, inset 0 -2.304px 6.373px 1.536px rgba(91,147,255,.25);
  --blue-shadow-41: inset 0 -.73px 3.37px -.73px #cad9ff, inset 0 0 23.06px .73px #1d47ff, inset 0 -2.2px 6.08px 1.46px rgba(91,147,255,.25);
  --blue-shadow-56: inset 0 -1px 4.6px -1px #cad9ff, inset 0 0 31.5px 1px #1d47ff, inset 0 -3px 8.3px 2px rgba(91,147,255,.25);
  --sub-shadow: inset 0 1px 15.7px 2px rgba(214,190,255,.5);
}
/* I · black glow CTAs */
.app[data-concept="1"] {
  --t-fill: var(--black-fill); --t-shadow: var(--black-shadow); --t-glow: #5c198f; --t-glow-top: -10.88px;
  --u-fill: var(--blue-fill); --u-shadow: var(--blue-shadow-43); --u-glow: #5b93ff; --u-glow-top: -12px;
  --p-fill: var(--black-fill); --p-shadow: var(--black-shadow); --p-glow: #5c198f;
  --stage-tint: rgba(126, 58, 214, .28);
}
/* II · lilac glass + rainbow paywall */
.app[data-concept="2"] {
  --t-fill: var(--lilac-fill); --t-shadow: var(--lilac-shadow); --t-glow: #edd7ff; --t-glow-top: 30.12px;
  --u-fill: var(--lilac-fill); --u-shadow: var(--lilac-shadow); --u-glow: #edd7ff; --u-glow-top: 31px;
  --p-fill: var(--lilac-fill); --p-shadow: var(--lilac-shadow); --p-glow: #edd7ff;
  --frame-shadow: var(--sub-shadow);
  --list-weight: 500;
  --stage-tint: rgba(90, 120, 255, .26);
}
/* III · neon dark */
.app[data-concept="3"] {
  --t-fill: var(--lilac-fill); --t-shadow: var(--lilac-shadow); --t-glow: #edd7ff; --t-glow-top: 30.12px;
  --u-fill: var(--lilac-fill); --u-shadow: var(--lilac-shadow); --u-glow: #5b93ff; --u-glow-top: 31px;
  --p-fill: var(--lilac-fill); --p-shadow: var(--lilac-shadow); --p-glow: #edd7ff;
  --dot1: linear-gradient(340.11deg, #5025b7 -.17%, #231051 100.17%);
  --fam-glow: rgba(124, 244, 114, .5);
  --fam-ell: linear-gradient(217.28deg, #66e164 53.8%, #3d985e 74.15%, #3d985e 90.32%, #66e164 113.66%);
  --ghost-font: var(--gs); --ghost-w: 327.45px;
  --stage-tint: rgba(200, 40, 230, .26);
}
/* IV · blue glow */
.app[data-concept="4"] {
  --t-fill: var(--blue-fill); --t-shadow: var(--blue-shadow-41); --t-glow: #5b93ff; --t-glow-top: -10.88px;
  --u-fill: var(--blue-fill); --u-shadow: var(--blue-shadow-43); --u-glow: #5b93ff; --u-glow-top: -12px;
  --p-fill: var(--blue-fill); --p-shadow: var(--blue-shadow-56); --p-glow: #5b93ff;
  --p-glow-left: 88.92px; --p-glow-top: -12.94px; --p-glow-w: 177.31px; --p-glow-h: 29.05px;
  --stage-tint: rgba(70, 110, 255, .28);
}
/* Subscription frame fills / inner shadow per variant */
.app[data-concept="1"] .screen-sub, .app[data-concept="4"] .screen-sub { --frame-fill: #542d80; --frame-shadow: var(--sub-shadow); }
.app[data-concept="2"] .screen-sub { --frame-fill: #110c27; --frame-shadow: var(--sub-shadow); }
.app[data-concept="3"] .screen-sub { --frame-fill: #542d80; --frame-shadow: none; }
.app[data-concept="1"] .screen-home, .app[data-concept="4"] .screen-home { --frame-fill: #1a0b33; }
.app[data-concept="3"] .screen-home { --frame-fill: #000; }

/* ---------------------------------------------------------------- reveal / loading */
.rv { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), filter .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.app.is-booting .rv { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); transition: none; }
.app.is-booting .top-panel .hdr > * { opacity: 0; transform: translateY(-8px); }
.hdr > * { transition: opacity .5s var(--ease-out) .05s, transform .6s var(--ease-out) .05s; }
.app.is-booting .bottom-panel { transform: translateY(40px); opacity: 0; }
.bottom-panel { transition: transform .8s var(--ease-ios) .25s, opacity .6s .25s; }

/* skeleton shimmer while a forecast "loads" */
.card-title, .card-text, .hero-title { transition: opacity .3s, filter .3s; }
.app.is-loading .card-title, .app.is-loading .card-text { opacity: 0; filter: blur(4px); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .3s;
  background:
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) 17px 50px / 110px 18px no-repeat,
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) 17px 76px / 80px 18px no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) 17px 113px / 112px 10px no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) 17px 129px / 76px 10px no-repeat; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); }
.app.is-loading .card::after { opacity: 1; }
.app.is-loading .card::before { opacity: 1; animation: shimmer 1.1s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- splash */
.splash { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #12062a; overflow: hidden; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.8); transform: scale(1.2); }
.splash-logo { position: relative; filter: drop-shadow(0 0 24px rgba(255,255,255,.45)); animation: pulse 1.6s ease-in-out infinite; }
.splash-name { position: relative; margin-top: 18px; font: 500 19px/1 var(--gs); letter-spacing: -.19px; opacity: .9; }
.splash-bar { position: relative; margin-top: 26px; width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.splash-bar span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: #fff; box-shadow: 0 0 8px #fff; }
.app.is-booting .splash-bar span { animation: splash-load 1.25s var(--ease-out) forwards; }
@keyframes splash-load { 0% { transform: scaleX(0); } 40% { transform: scaleX(.45); } 70% { transform: scaleX(.7); } 100% { transform: scaleX(1); } }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 34px rgba(255,255,255,.65)); } }
.app:not(.is-booting) .splash { opacity: 0; transform: scale(1.08); pointer-events: none; }
.app.splash-gone .splash { display: none; }

/* ---------------------------------------------------------------- sheet / success / toast */
.sheet-scrim { position: absolute; inset: 0; z-index: 70; background: rgba(5, 2, 12, .5); opacity: 0; pointer-events: none; transition: opacity .35s; }
.sheet {
  position: absolute; z-index: 71; left: 8px; right: 8px; bottom: calc(8px + var(--bottom-inset));
  padding: 10px 18px 22px; border-radius: 34px;
  background: rgba(28, 12, 52, .62);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 18px rgba(255,255,255,.12), 0 -10px 60px rgba(0,0,0,.5);
  transform: translateY(110%); transition: transform .5s var(--ease-ios);
  touch-action: none;
}
.sheet-grabber { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 14px; }
.sheet-title { font: 500 19px/1.2 var(--gs); letter-spacing: -.19px; text-align: center; }
.sheet-sub { font: 400 13px/1.3 var(--inter); color: rgba(255,255,255,.55); text-align: center; margin: 4px 0 16px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 12.5px/1 var(--gs); color: rgba(255,255,255,.7); }
.sheet-thumb { width: 100%; aspect-ratio: 390 / 600; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); position: relative; transition: transform .35s var(--spring), box-shadow .3s; }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-item[aria-checked="true"] { color: #fff; }
.sheet-item[aria-checked="true"] .sheet-thumb { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255,255,255,.35); }
.sheet-item:active .sheet-thumb { transform: scale(.94); }
.app.sheet-open .sheet { transform: none; }
.app.sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }

.success { position: absolute; inset: 0; z-index: 75; display: grid; place-items: center; padding: 24px; background: rgba(5,2,12,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.success-card { width: 100%; padding: 30px 22px 22px; border-radius: 36px; text-align: center; background: rgba(40, 16, 74, .45); --gb: 24px; --ga: 140deg; --g0: 2%; --g1: 30%; transform: translateY(30px) scale(.94); transition: transform .55s var(--spring); }
.success-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--p-fill); box-shadow: var(--p-shadow); }
.success-icon img { transform: scale(0); transition: transform .6s var(--spring) .15s; }
.success-title { font: 500 28px/1.1 var(--gs); letter-spacing: -.4px; }
.success-text { font: 400 14px/1.4 var(--inter); color: rgba(255,255,255,.65); margin: 10px 0 22px; }
.success .ghost { width: 100%; }
.app.success-open .success { opacity: 1; pointer-events: auto; }
.app.success-open .success-card { transform: none; }
.app.success-open .success-icon img { transform: none; }

.toast { position: absolute; z-index: 90; left: 50%; top: calc(var(--top-inset) + 8px); max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 20px; font: 500 13.5px/1.2 var(--gs); white-space: nowrap; background: rgba(28, 12, 52, .6); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.35); transform: translate(-50%, -140%); opacity: 0; transition: transform .5s var(--ease-ios), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------- phone: the app IS the page */
@media (max-width: 600px), (max-height: 520px) and (pointer: coarse) {
  html, body { background: #12062a; height: 100%; overscroll-behavior: none; }
  .stage { display: block; padding: 0; height: 100%; }
  .stage-glow, .panel { display: none; }
  .device-wrap { width: 100%; height: 100%; }
  .device { position: static; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
  .device::before, .device::after { display: none; }
  .app {
    --top-inset: max(env(safe-area-inset-top, 0px), 6px);
    --bottom-inset: env(safe-area-inset-bottom, 0px);
    width: 100%; height: 100%; height: 100dvh; border-radius: 0;
  }
  .statusbar, .home-indicator { display: none; }
  .bottom-panel { bottom: calc(-67.69px + max(var(--bottom-inset) - 20px, 0px)); }
  .home-content { padding-bottom: calc(128.04px + var(--bottom-inset)); }
  .sub-content { padding-bottom: calc(48px + max(var(--bottom-inset), 16px)); }
  .sub-actions, .ghost, .cta-plan { width: min(334px, calc(100% - 56px)); }
  .sub-actions .ghost, .sub-actions .cta-plan { width: 100%; }
  .sub-title { width: auto; padding: 0 20px; }
  .sub-list { width: min(306px, calc(100% - 84px)); }
  .home-indicator { left: calc(50% - 73px); }
}
@media (min-width: 601px) and (max-width: 860px) {
  .panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
