/* =========================================================================
   JANE PT — Fitness App Prototype
   Design system + components. Mobile-first, rendered inside a phone frame.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Archivo+Black&display=swap');

:root {
  /* Brand palette — athletic / premium "studio" */
  --bg:        #0c0d10;   /* app background (near-black) */
  --surface:   #16181d;   /* cards */
  --surface-2: #1f222a;   /* raised cards / inputs */
  --surface-3: #2a2e38;   /* hover / chips */
  --line:      #2c313b;   /* hairlines */
  --text:      #f4f5f7;   /* primary text */
  --muted:     #9aa1ad;   /* secondary text */
  --faint:     #636b78;   /* tertiary */

  --accent:    #d8ff3e;   /* electric lime — primary action */
  --accent-ink:#15180a;   /* text on accent */
  --accent-2:  #ff7a59;   /* warm coral — secondary highlight */
  --accent-3:  #7c8cff;   /* periwinkle — data / progress */

  --glute:     #ff7a59;
  --legs:      #ffd24a;
  --back:      #7c8cff;
  --chest:     #ff5d8f;
  --shoulders: #b07cff;
  --arms:      #51e0c9;
  --full:      #d8ff3e;

  --radius:   18px;
  --radius-sm:12px;
  --radius-lg:26px;
  --shadow:   0 18px 40px -18px rgba(0,0,0,.65);

  --ff: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

/* Inline icons scale with surrounding font-size; SVGs with explicit width attrs
   (status-bar glyphs) keep their own sizing. */
svg:not([width]) { width: 1em; height: 1em; flex: none; vertical-align: middle; }
.tab svg:not([width]) { width: 24px; height: 24px; }
.tab.center .fab svg:not([width]) { width: 24px; height: 24px; }
.iconbtn svg:not([width]) { width: 19px; height: 19px; }
.nav-btn svg:not([width]) { width: 22px; height: 22px; }
.ex-card .play svg:not([width]), .play svg:not([width]) { width: 13px; height: 13px; }
.tipbox .ic svg:not([width]) { width: 20px; height: 20px; }
.step .n svg:not([width]) { width: 13px; height: 13px; }
.menu .item .chev svg:not([width]), .prog-wide > svg:not([width]) { width: 18px; height: 18px; }
.btn svg:not([width]) { width: 17px; height: 17px; }

body {
  font-family: var(--ff);
  background:
    radial-gradient(1200px 600px at 15% -10%, #1b2233 0%, transparent 55%),
    radial-gradient(1000px 700px at 110% 10%, #241a22 0%, transparent 50%),
    #07080a;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Desktop "device" presentation ---------- */
.stage {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.pitch { max-width: 360px; color: var(--muted); }
.pitch .logo { display:flex; align-items:center; gap:10px; margin-bottom: 22px; }
.pitch .logo b { font-size: 24px; letter-spacing:-.02em; color: var(--text); font-weight: 800; }
.pitch h1 { font-size: 40px; line-height: 1.04; letter-spacing: -.03em; color: var(--text); font-weight: 800; margin-bottom: 16px; }
.pitch h1 span { color: var(--accent); }
.pitch p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.pitch .hint { font-size: 13px; color: var(--faint); border-left: 2px solid var(--accent); padding-left: 12px; }
.pitch ul { list-style:none; margin: 18px 0; display:grid; gap:10px; }
.pitch li { font-size: 14px; color: var(--muted); display:flex; gap:10px; align-items:flex-start;}
.pitch li::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-top:7px; flex:none;}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 36px);
  background: #000;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2d34,
    0 0 0 10px #0c0d10,
    0 40px 80px -20px rgba(0,0,0,.8);
  flex: none;
}
.phone::after { /* notch */
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; background: #000; border-radius: 18px; z-index: 60;
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Scrollable app body ---------- */
.app-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 96px;       /* room for tab bar */
  animation: viewIn .32s cubic-bezier(.2,.7,.2,1);
}
.app-view::-webkit-scrollbar { display: none; }
.app-view.no-tabs { padding-bottom: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.statusbar {
  height: 52px; flex: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 26px 6px; font-size: 13px; font-weight: 700; color: var(--text);
  position: relative; z-index: 40;
}
.statusbar .right { display:flex; gap:6px; align-items:center; font-size: 12px; }

/* ---------- Common UI ---------- */
.pad { padding: 0 18px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.h-section { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 12px; }
.h-section .link { float: right; font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }

.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.btn {
  appearance: none; border: 0; cursor: pointer; font-family: var(--ff);
  font-weight: 700; font-size: 15px; border-radius: 14px; padding: 15px 18px;
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-sm { width: auto; padding: 10px 16px; font-size: 13px; border-radius: 11px; }

.chip {
  flex: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 999px;
  transition: all .15s ease;
}
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.pill { display:inline-flex; align-items:center; gap:6px; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }

.tag-dot { width: 8px; height: 8px; border-radius: 50%; flex:none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Home: greeting / hero ---------- */
.greeting { padding: 6px 18px 0; }
.greeting .hello { font-size: 13px; color: var(--muted); }
.greeting h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.avatar-fallback { display:flex; align-items:center; justify-content:center; background: var(--surface-3); color: var(--accent); font-weight: 800; }

/* daily rings / stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align:center; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat .v small { font-size: 11px; color: var(--faint); font-weight:600; }

/* today workout hero card */
.today {
  margin: 16px 18px 0; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 196px; display:flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(12,13,16,0) 30%, rgba(12,13,16,.92) 100%), var(--surface-2);
  border: 1px solid var(--line); cursor: pointer;
}
.today video, .today img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; z-index:0; }
.today .body { position: relative; z-index: 2; padding: 16px; }
.today .body .eyebrow { color: var(--accent); }
.today .body h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.today .meta { display:flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.today .meta b { color: var(--text); }

/* ---------- Program cards ---------- */
.prog-card {
  flex: none; width: 230px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; height: 270px;
  display:flex; flex-direction: column; justify-content: flex-end;
}
.prog-card .media { position:absolute; inset:0; z-index:0; }
.prog-card .media video, .prog-card .media img { width:100%; height:100%; object-fit: cover; }
.prog-card .scrim { position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(12,13,16,.05) 25%, rgba(12,13,16,.55) 60%, rgba(12,13,16,.96) 100%); }
.prog-card .body { position: relative; z-index: 2; padding: 14px; }
.prog-card h4 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.prog-card .sub { font-size: 12px; color: var(--muted); margin-top: 3px; display:flex; gap: 10px; }
.prog-card .badge { position:absolute; top: 12px; left: 12px; z-index: 3; }

/* wide list program card */
.prog-wide { display:flex; gap: 12px; align-items:center; padding: 10px; margin-bottom: 10px; cursor:pointer; }
.prog-wide .thumb { width: 84px; height: 84px; border-radius: 14px; overflow:hidden; flex:none; position:relative; background: var(--surface-2); }
.prog-wide .thumb img, .prog-wide .thumb video { width:100%; height:100%; object-fit: cover; }
.prog-wide .info { flex: 1; min-width: 0; }
.prog-wide .info h4 { font-size: 15px; font-weight: 700; }
.prog-wide .info .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.prog-wide .info .bars { display:flex; gap:5px; margin-top: 8px; }
.prog-wide .info .bars span { height: 4px; flex:1; border-radius:2px; background: var(--surface-3); }
.prog-wide .info .bars span.on { background: var(--accent); }

/* ---------- Exercise library grid ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px; }
.ex-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; }
.ex-card .media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2); }
.ex-card .media video, .ex-card .media img { width:100%; height:100%; object-fit: cover; }
.ex-card .play { position:absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius:50%;
  background: rgba(12,13,16,.6); backdrop-filter: blur(6px); display:flex; align-items:center; justify-content:center; z-index:2;}
.ex-card .cat-dot { position:absolute; top: 8px; left: 8px; z-index: 2; }
.ex-card .body { padding: 10px 11px 12px; }
.ex-card h4 { font-size: 13.5px; font-weight: 700; line-height: 1.15; }
.ex-card .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- Exercise / workout detail ---------- */
.detail-video { position: relative; width: 100%; background: #000; aspect-ratio: 3/4; max-height: 56%; }
.detail-video video { width: 100%; height: 100%; object-fit: cover; }
.detail-video .grad { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 22%, transparent 70%, rgba(12,13,16,.95) 100%); pointer-events:none; }
.topbar { position: absolute; top: 14px; left: 0; right: 0; z-index: 30; display:flex; justify-content: space-between; padding: 0 16px; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; background: rgba(12,13,16,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08); color: var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer; transition: color .15s, background .15s; }
.iconbtn.faved { color: var(--glute); background: rgba(255,122,89,.16); border-color: rgba(255,122,89,.4); }
.iconbtn.faved svg { fill: var(--glute); }
.detail-body { padding: 18px; }
.detail-body h1 { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.muscle-row { display:flex; gap:8px; flex-wrap: wrap; margin: 12px 0 18px; }

.setline { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.setline .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align:center; }
.setline .box .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.setline .box .l { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }

.steps { display:grid; gap: 12px; margin-top: 6px; }
.step { display:flex; gap: 12px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--accent);
  font-size: 12px; font-weight: 800; display:flex; align-items:center; justify-content:center; flex:none; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; padding-top: 3px; }

.tipbox { background: linear-gradient(135deg, rgba(216,255,62,.1), rgba(216,255,62,.02)); border: 1px solid rgba(216,255,62,.25);
  border-radius: 14px; padding: 14px; margin-top: 18px; display:flex; gap: 10px; }
.tipbox .ic { color: var(--accent); flex:none; }
.tipbox p { font-size: 13px; color: var(--text); line-height: 1.5; }
.tipbox b { color: var(--accent); }

/* sticky bottom action inside detail */
.sticky-action { position: sticky; bottom: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 30%); }

/* ---------- Workout player ---------- */
.player { position:absolute; inset:0; background:#000; display:flex; flex-direction:column; z-index: 90; }
.player video { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; z-index:0; }
.player .grad { position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.92) 100%); }
.player .p-top { position:relative; z-index:3; padding: 54px 18px 0; }
.player .progress-track { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow:hidden; margin-top: 14px; }
.player .progress-fill { height:100%; background: var(--accent); border-radius:2px; transition: width .4s ease; }
.player .p-bottom { position:relative; z-index:3; margin-top:auto; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
.player .p-ex { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.player .p-target { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
.player .p-sets { display:flex; gap: 22px; margin: 16px 0 18px; }
.player .p-sets .v { font-size: 24px; font-weight: 800; }
.player .p-sets .l { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing:.08em; }
.player .controls { display:flex; gap: 12px; align-items:center; }
.player .controls .btn-primary { flex: 1; }
.player .nav-btn { width: 52px; height: 52px; border-radius: 50%; flex:none; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.player .nav-btn:disabled { opacity: .3; }

/* rest overlay */
.rest { position:absolute; inset:0; z-index: 5; background: rgba(8,9,11,.92); backdrop-filter: blur(8px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding: 30px; }
.rest .rest-ring { width: 138px; height: 138px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); position: relative;
  background: var(--surface); border: 1px solid var(--line); animation: restpulse 1s ease-in-out infinite; }
.rest .rest-ring::before { content:""; position:absolute; inset:-4px; border-radius:50%;
  border: 4px solid rgba(216,255,62,.18); border-top-color: var(--accent); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes restpulse { 50% { transform: scale(1.04); } }
.rest .lbl { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rest .next { margin-top: 20px; color: var(--muted); font-size: 14px; }
.rest .next b { color: var(--text); }

/* ---------- Nutrition ---------- */
.macro-card { margin: 0 18px; padding: 18px; display:flex; gap: 18px; align-items:center; }
.ring { --p: 62; --c: var(--accent); width: 96px; height: 96px; border-radius: 50%; flex:none; position:relative;
  background: conic-gradient(var(--c) calc(var(--p)*1%), var(--surface-3) 0); display:flex; align-items:center; justify-content:center; }
.ring::before { content:""; position:absolute; inset:9px; border-radius:50%; background: var(--surface); }
.ring .inner { position: relative; text-align:center; }
.ring .inner .v { font-size: 20px; font-weight: 800; }
.ring .inner .l { font-size: 10px; color: var(--muted); }
.macros { flex:1; display:grid; gap: 12px; }
.macro { }
.macro .row { justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.macro .row b { font-weight: 700; }
.macro .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow:hidden; }
.macro .bar i { display:block; height:100%; border-radius:3px; }

.meal { display:flex; gap: 12px; padding: 10px; margin-bottom: 10px; align-items:center; cursor:pointer; }
.meal .ic { width: 56px; height: 56px; border-radius: 14px; flex:none; display:flex; align-items:center; justify-content:center; font-size: 26px; background: var(--surface-2); }
.meal .info { flex:1; min-width:0; }
.meal .info h4 { font-size: 14.5px; font-weight: 700; }
.meal .info .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.meal .kcal { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Progress ---------- */
.chart { margin: 0 18px; padding: 18px; }
.bars-chart { display:flex; align-items:flex-end; gap: 10px; height: 130px; margin-top: 14px; }
.bars-chart .col { flex:1; display:flex; flex-direction:column; align-items:center; gap: 8px; height:100%; justify-content:flex-end; }
.bars-chart .col .bar { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), #97b81f); min-height: 6px; }
.bars-chart .col .bar.off { background: var(--surface-3); }
.bars-chart .col .d { font-size: 11px; color: var(--muted); }

.cal-grid { display:grid; grid-template-columns: repeat(7,1fr); gap: 7px; margin-top: 14px; }
.cal-grid .cell { aspect-ratio: 1; border-radius: 8px; background: var(--surface-3); display:flex; align-items:center; justify-content:center; font-size: 11px; color: var(--faint); }
.cal-grid .cell.done { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal-grid .cell.restday { background: var(--surface-2); }

.achv { display:flex; gap: 12px; overflow-x:auto; padding: 0 18px; scrollbar-width:none;}
.achv::-webkit-scrollbar{ display:none;}
.badge-card { flex:none; width: 110px; text-align:center; padding: 16px 10px; }
.badge-card .em { font-size: 34px; }
.badge-card .t { font-size: 12px; font-weight: 700; margin-top: 8px; }
.badge-card .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.badge-card.locked { opacity: .42; }

.measure { display:grid; grid-template-columns:1fr 1fr; gap: 12px; padding: 0 18px; }
.measure .m { padding: 14px; }
.measure .m .l { font-size: 11px; color: var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.measure .m .v { font-size: 22px; font-weight: 800; margin-top: 4px; }
.measure .m .delta { font-size: 11px; font-weight: 700; margin-top: 4px; }
.measure .m .delta.up { color: var(--accent); } .measure .m .delta.down { color: var(--accent-2); }

/* ---------- Profile ---------- */
.profile-head { text-align:center; padding: 12px 18px 0; }
.profile-head .pic { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--accent); object-fit:cover;
  display:flex; align-items:center; justify-content:center; background: var(--surface-3); color: var(--accent); font-size: 34px; font-weight: 800; }
.profile-head h2 { font-size: 22px; font-weight: 800; }
.profile-head .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.prof-stats { display:flex; justify-content:center; gap: 28px; margin: 18px 0; }
.prof-stats .p .v { font-size: 20px; font-weight: 800; text-align:center; }
.prof-stats .p .l { font-size: 11px; color: var(--muted); text-align:center; }
.menu { padding: 0 18px; }
.menu .item { display:flex; align-items:center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; cursor:pointer; }
.menu .item .ic { width: 22px; color: var(--muted); display:flex; }
.menu .item .chev { margin-left:auto; color: var(--faint); }

.plan-card { margin: 8px 18px 0; padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(216,255,62,.16), rgba(124,140,255,.1)); border: 1px solid rgba(216,255,62,.3); }
.plan-card .eyebrow { color: var(--accent); }
.plan-card h3 { font-size: 19px; font-weight: 800; margin: 6px 0 4px; }
.plan-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* pricing tiers */
.tier { padding: 16px; margin-bottom: 12px; display:flex; align-items:center; gap: 14px; cursor:pointer; border:1px solid var(--line); }
.tier.best { border-color: var(--accent); background: linear-gradient(135deg, rgba(216,255,62,.08), transparent); }
.tier .radio { width: 22px; height: 22px; border-radius:50%; border: 2px solid var(--line); flex:none; }
.tier.best .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 48%); }
.tier .info { flex:1; }
.tier .info h4 { font-size: 15px; font-weight: 700; }
.tier .info .sub { font-size: 12px; color: var(--muted); }
.tier .price { text-align:right; }
.tier .price .v { font-size: 18px; font-weight: 800; }
.tier .price .l { font-size: 11px; color: var(--muted); }
.tier .ribbon { position:absolute; }

/* ---------- Onboarding ---------- */
.onb { position:absolute; inset:0; display:flex; flex-direction:column; z-index: 80; background: var(--bg); }
.onb-hero { position:relative; flex:1; overflow:hidden; }
.onb-hero video, .onb-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.onb-hero .grad { position:absolute; inset:0; background: linear-gradient(180deg, rgba(12,13,16,.2) 0%, rgba(12,13,16,.1) 40%, rgba(12,13,16,.98) 100%); }
.onb-content { position:relative; z-index:2; margin-top:auto; padding: 26px 24px calc(30px + env(safe-area-inset-bottom)); }
.onb-content .brand { display:flex; align-items:center; gap:10px; margin-bottom: 18px; }
.onb-content h1 { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.onb-content h1 span { color: var(--accent); }
.onb-content p { font-size: 15px; color: var(--muted); margin: 12px 0 22px; line-height: 1.55; }
.onb-dots { display:flex; gap:6px; justify-content:center; margin-bottom: 18px; }
.onb-dots i { width:7px; height:7px; border-radius:50%; background: var(--surface-3); }
.onb-dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }

.goal-grid { display:grid; grid-template-columns:1fr 1fr; gap: 12px; padding: 0 18px; }
.goal { padding: 18px 14px; cursor:pointer; border:1px solid var(--line); border-radius: var(--radius); transition: all .15s; }
.goal.sel { border-color: var(--accent); background: rgba(216,255,62,.06); }
.goal .em { font-size: 30px; } .goal h4 { font-size: 15px; font-weight: 700; margin-top: 10px; }
.goal p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Logo mark ---------- */
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  display:flex; align-items:center; justify-content:center; font-weight: 800; font-size: 17px; flex:none;
  font-family: 'Archivo Black', var(--ff); }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.wordmark span { color: var(--accent); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 50; height: 86px;
  background: rgba(12,13,16,.82); backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5,1fr); align-items: start; padding-top: 10px;
}
.tab { display:flex; flex-direction:column; align-items:center; gap: 4px; cursor:pointer; color: var(--faint); }
.tab svg { width: 24px; height: 24px; }
.tab .lbl { font-size: 10px; font-weight: 600; }
.tab.active { color: var(--accent); }
.tab.center { margin-top: -16px; }
.tab.center .fab { width: 52px; height: 52px; border-radius: 18px; background: var(--accent); color: var(--accent-ink);
  display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 24px -8px rgba(216,255,62,.6); }
.tab.center.active .fab { filter: brightness(1.05); }

/* ---------- Builder ---------- */
.builder-pick { display:flex; gap:12px; align-items:center; padding: 10px; margin-bottom:10px; cursor:pointer; }
.builder-pick .thumb { width: 60px; height: 60px; border-radius: 12px; overflow:hidden; flex:none; position:relative; background: var(--surface-2); }
.builder-pick .thumb img { width:100%;height:100%;object-fit:cover;}
.builder-pick .info { flex:1; min-width:0; }
.builder-pick .info h4 { font-size: 14px; font-weight: 700; }
.builder-pick .info .sub { font-size: 11px; color: var(--muted); margin-top:2px; }
.builder-pick .check { width: 26px; height:26px; border-radius:8px; border:2px solid var(--line); flex:none; display:flex; align-items:center; justify-content:center; }
.builder-pick.added .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.builder-bar { position: sticky; bottom: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 25%); }

.input { width:100%; background: var(--surface-2); border:1px solid var(--line); border-radius: 12px; padding: 14px;
  color: var(--text); font-family: var(--ff); font-size: 15px; }
.input::placeholder { color: var(--faint); }

.empty { text-align:center; color: var(--muted); padding: 40px 24px; font-size: 14px; }

/* toast */
.toast { position:absolute; bottom: 100px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 12px 18px;
  border-radius: 12px; z-index: 200; opacity: 0; transition: all .3s ease; pointer-events:none; white-space:nowrap; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  body { padding: 0; align-items: stretch; }
  .pitch { display: none; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .phone::after { display: none; }
  .screen { border-radius: 0; }
}
