/* Murphy referral demo — presenter shell + iOS-style app screens.
   Throwaway spike: vanilla CSS, no build step. */

:root {
  --green: #008050;
  --green-deep: #00623d;
  --green-tint: #e3f2ea;
  --ink: #17191b;
  --ink-2: #5d6165;
  --ink-3: #8d9195;
  --line: #e6e2da;
  --bg: #f6f4ef;
  --card: #ffffff;
  --dark: #1c1e20;
  --amber: #b86e00;
  --ios-blue: #0a7cff;
  --li: #0a66c2;
  --on-primary: #fff;
  --primary-hover: #00915b;
  --primary-text: var(--green);
  --panel-accent: #4fc08d;
  --on-dark-accent: #6fd3a4;
  --rail-done-bg: #2b4d3c;
  --rail-done-fg: #9fd8bb;
  --hero-bg: var(--green);
  --hero-fg: #fff;
  --feat-shadow: rgba(0, 96, 60, .45);
  --send-glow: rgba(0, 128, 80, .18);
  --promise-t: #0b3a26;
  --promise-p: #2d5a45;
  --soft: #f6f4ef;
  --soft-2: #f1eee8;
  --stage-a: #f7f5f0;
  --stage-b: #ebe8e1;
  --ic-app-bg: #008050;
  --ic-app-fg: #fff;
  --ic-app-stroke: #008050;
  --ic-accent: #008050;
  --ic-ok: #008050;
  --coin-bg: #fff;
  --coin-fg: #008050;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ui);
  background: var(--stage-b);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

/* ============ Presenter layout ============ */
.presenter {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100vh;
}
.panel {
  background: var(--dark);
  color: #f2f0eb;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 18px;
  overflow-y: auto;
}
.panel-brand { display: flex; align-items: center; gap: 12px; }
.panel-brand img { height: 26px; }
.panel-brand .sep { width: 1px; height: 20px; background: #3a3d40; }
.panel-brand span { font: 600 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #9a9ea2; }
.panel-title {
  font: 800 23px/1.12 var(--font);
  letter-spacing: -.01em;
  margin: 22px 0 20px;
  color: #fff;
}
.panel-title em { font-style: normal; color: var(--panel-accent); }

.now { border-top: 1px solid #303336; padding-top: 22px; }
.now-meta { display: flex; align-items: center; gap: 10px; font: 600 12px var(--ui); color: #9a9ea2; letter-spacing: .04em; text-transform: uppercase; }
.now-meta .num { background: var(--green); color: var(--on-primary); border-radius: 6px; padding: 3px 7px; letter-spacing: 0; }
.now h2 { font: 800 27px/1.1 var(--font); margin: 12px 0 10px; letter-spacing: -.01em; color: #fff; }
.now p { font: 400 15.5px/1.5 var(--ui); color: #cfd2d4; min-height: 94px; }
.now p b { color: #fff; font-weight: 600; }

.nav-btns { display: flex; gap: 10px; margin: 16px 0 22px; }
.nav-btns button {
  height: 46px; border-radius: 12px; font: 700 15px var(--ui);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-back { width: 56px; background: #2a2d30; color: #d8dadc; }
.btn-next { flex: 1; background: var(--green); color: var(--on-primary); }
.btn-next:hover { background: var(--primary-hover); }
.btn-back:hover { background: #34383b; }
.btn-back:disabled, .btn-next:disabled { opacity: .35; cursor: default; }
.kbd-hint { font: 500 12px var(--ui); color: #74787c; margin-top: -16px; margin-bottom: 22px; }

.rail { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rail .grp { font: 700 10.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #6f7377; margin: 10px 0 2px 6px; }
.rail .grp:first-child { margin-top: 0; }
.rail button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 10px;
  padding: 5px 8px; border-radius: 9px; font: 500 14px var(--ui); color: #b9bcbf;
}
.rail button:hover { background: #26292c; color: #fff; }
.rail button .n {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #44484c;
  font: 700 11px var(--ui); display: grid; place-items: center; flex: none; color: #9a9ea2;
}
.rail button.done .n { background: var(--rail-done-bg); border-color: var(--rail-done-bg); color: var(--rail-done-fg); }
.rail button.on { background: #26292c; color: #fff; }
.rail button.on .n { background: var(--green); border-color: var(--green); color: var(--on-primary); }

.panel-foot {
  margin-top: auto; padding: 14px 0 0; position: sticky; bottom: -18px; padding-bottom: 18px; background: var(--dark); display: flex; justify-content: space-between; align-items: center;
  font: 500 12px var(--ui); color: #74787c;
}
.panel-foot button { color: #cfd2d4; font: 600 12.5px var(--ui); display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #2a2d30; }
.panel-foot button:hover { background: #34383b; }

.stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(800px 500px at 50% 40%, var(--stage-a) 0%, var(--stage-b) 70%);
}
.owner {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px var(--ui); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 8px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.owner .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--ui); color: var(--on-primary); background: var(--green); }
.owner.marcus { background: #20242a; color: #fff; border-color: #20242a; }
.owner.marcus .av { background: #6b7c93; }
.owner small { font-weight: 500; color: var(--ink-3); }
.owner.marcus small { color: #a8b0ba; }

.fit { position: relative; }
.device {
  position: absolute; top: 0; left: 0;
  width: 414px; height: 868px;
  transform-origin: top left;
  border-radius: 60px;
  padding: 12px;
  background: #121314;
  box-shadow:
    0 0 0 2px #2c2e30,
    0 40px 80px -30px rgba(30, 30, 25, .45),
    0 12px 30px -12px rgba(30, 30, 25, .3);
}
.device.marcus {
  background: #c9ccd0;
  box-shadow:
    0 0 0 2px #aeb2b7,
    0 40px 80px -30px rgba(30, 30, 25, .45),
    0 12px 30px -12px rgba(30, 30, 25, .3);
}
.device > .scr { border-radius: 48px; }

/* ============ Overview ============ */
.overview {
  display: none;
  height: 100vh; overflow-y: auto;
  background: var(--stage-b);
  padding: 32px 40px 48px;
}
body.ov .presenter { display: none; }
body.ov .overview { display: block; }
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; max-width: 1500px; margin-inline: auto; }
.ov-head h1 { font: 800 30px/1.1 var(--font); letter-spacing: -.01em; }
.ov-head p { font: 500 14px var(--ui); color: var(--ink-2); margin-top: 6px; }
.ov-head .ov-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ov-head .ov-brand img { height: 28px; }
.ov-head button { background: var(--dark); color: #fff; font: 700 14px var(--ui); padding: 11px 16px; border-radius: 11px; display: inline-flex; gap: 8px; align-items: center; flex: none; }
.ov-grid {
  max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 30px 22px;
}
.ov-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.ov-item .mini { width: 207px; height: 434px; position: relative; }
.ov-item .mini .device { transform: scale(.5); }
.ov-item:hover .device { box-shadow: 0 0 0 6px var(--green), 0 20px 40px -20px rgba(0,0,0,.4); }
.ov-cap { margin-top: 12px; text-align: center; max-width: 214px; }
.ov-cap .k { font: 700 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ov-cap .k.m { color: #4b5d74; }
.ov-cap .t { font: 700 14.5px/1.25 var(--font); margin-top: 3px; }
.ov-foot { text-align: center; font: 500 12px var(--ui); color: var(--ink-3); margin-top: 36px; }
.ov-mobile-close { display: none; }

/* ============ Mobile bar ============ */
.mbar { display: none; }

/* ============ The phone screen ============ */
.scr {
  position: relative;
  width: 390px; height: 844px;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  display: flex; flex-direction: column;
}
.scr.dark { background: #0d0f0e; color: #fff; }
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 50;
}
.sb {
  height: 54px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 40px;
  font: 600 16px var(--ui); letter-spacing: -.01em;
  position: relative; z-index: 40;
}
.sb .r { display: flex; gap: 6px; align-items: center; }
.scr.dark .sb, .sb.light { color: #fff; }
.hi {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 136px; height: 5px; border-radius: 3px; background: #111; z-index: 60;
}
.scr.dark .hi, .hi.light { background: #fff; }
.body { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }

/* shared bits */
.pad { padding: 0 20px; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 10px; }
.appbar img { height: 24px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 700 14px var(--ui); color: #fff; background: #4b5d74;
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.me { background: var(--green); color: var(--on-primary); }
.c1 { background: #4b5d74; } .c2 { background: #8a5a3c; } .c3 { background: #5b6f4a; } .c4 { background: #7a4f6b; } .c5 { background: #3f6b78; }
.large-title { font: 800 32px/1.1 var(--font); letter-spacing: -.02em; padding: 6px 20px 4px; }
.sub { font: 500 15px/1.4 var(--ui); color: var(--ink-2); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 56px; border-radius: 16px;
  font: 700 17px var(--ui); letter-spacing: -.01em;
  background: var(--green); color: var(--on-primary);
}
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.dark { background: var(--ink); color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font: 700 12px var(--ui); padding: 4px 9px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-deep);
  white-space: nowrap;
}
.pill.new { background: var(--ink); color: #fff; letter-spacing: .04em; font-size: 10.5px; padding: 3px 7px; }
.src { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px var(--ui); color: var(--ink-2); background: #f0ede7; border-radius: 6px; padding: 3px 7px 3px 5px; white-space: nowrap; }
.src.li { color: var(--li); background: #e8f1fb; }
.src .inbox { width: 13px; height: 13px; border-radius: 3px; background: var(--li); color: #fff; font: 800 9px/13px Arial, sans-serif; text-align: center; letter-spacing: -.02em; }
.pbc { display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 11.5px var(--ui); color: var(--ink-3); letter-spacing: .01em; }
.pbc .mark { width: 14px; height: 14px; border-radius: 4px; background: var(--ink-3); color: #fff; font: 800 9px/14px var(--ui); text-align: center; }
.pbc img { height: 16px; width: auto; display: block; }
.pbc b { color: var(--ink-2); font-weight: 700; }

/* tab bar */
.tabbar {
  flex: none; height: 86px; padding: 8px 30px 0;
  display: flex; justify-content: space-around; align-items: flex-start;
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 10.5px var(--ui); color: var(--ink-3); width: 80px; position: relative; }
.tab.on { color: var(--primary-text); }
.tab .dot { position: absolute; top: -2px; right: 20px; width: 9px; height: 9px; border-radius: 50%; background: #d93b2b; border: 2px solid #fff; }

/* ---------- 1 onboarding ---------- */
.ob { display: flex; flex-direction: column; height: 100%; padding: 8px 24px 34px; }
.ob .logo { height: 40px; align-self: center; margin: 18px 0 26px; }
.invite {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  display: flex; gap: 12px;
}
.invite .ic { width: 34px; height: 34px; border-radius: 9px; background: #34c759; display: grid; place-items: center; flex: none; }
.invite .from { font: 700 13px var(--ui); color: var(--ink); display: flex; justify-content: space-between; }
.invite .from span { font-weight: 500; color: var(--ink-3); }
.invite p { font: 400 14px/1.4 var(--ui); color: var(--ink-2); margin-top: 3px; }
.ob h1 { font: 800 30px/1.1 var(--font); letter-spacing: -.02em; margin: 28px 0 8px; }
.field { margin-top: 20px; }
.field label { font: 600 13px var(--ui); color: var(--ink-2); display: block; margin-bottom: 8px; }
.phone-in {
  height: 56px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; font: 600 18px var(--ui);
}
.phone-in .cc { color: var(--ink-3); padding-right: 10px; border-right: 1px solid var(--line); }
.phone-in .ok { margin-left: auto; }
.code { display: flex; gap: 8px; }
.code span {
  flex: 1; height: 58px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line);
  display: grid; place-items: center; font: 700 24px var(--ui);
}
.code span.last { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.ob .grow { flex: 1; }
.ob .pbc { margin-top: 16px; }

/* ---------- 2 permissions ---------- */
.perm-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  margin-top: 12px;
}
.perm-row .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.perm-row .t { font: 700 17px var(--ui); }
.perm-row .d { font: 500 13.5px var(--ui); color: var(--ink-2); margin-top: 2px; }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: #34c759; position: relative; flex: none; margin-left: auto; }
.toggle::after { content: ''; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.promise {
  margin-top: 22px; background: var(--green-tint); border-radius: 18px; padding: 18px;
  display: flex; gap: 14px;
}
.promise .ic { color: var(--on-primary); width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.promise b { font: 700 16px/1.3 var(--ui); color: var(--promise-t); display: block; }
.promise p { font: 500 14px/1.45 var(--ui); color: var(--promise-p); margin-top: 4px; }

/* ---------- 3 jobs ---------- */
.sync {
  margin: 10px 20px 0; display: flex; align-items: center; gap: 8px;
  font: 500 13px var(--ui); color: var(--ink-2);
}
.sync b { color: var(--ink); font-weight: 600; }
.chips { display: flex; gap: 8px; padding: 16px 20px 4px; overflow: hidden; }
.chip { font: 600 14px var(--ui); padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.featured {
  margin: 14px 20px 6px; background: #fff; border-radius: 22px; padding: 18px;
  border: 2px solid var(--green); box-shadow: 0 10px 24px -14px var(--feat-shadow);
  cursor: pointer;
}
.featured .top { display: flex; gap: 8px; align-items: center; }
.featured h3 { font: 800 22px/1.15 var(--font); margin: 10px 0 4px; letter-spacing: -.01em; }
.featured .meta { font: 500 14px var(--ui); color: var(--ink-2); }
.featured .fits {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font: 600 14.5px var(--ui);
}
.stack { display: flex; }
.stack .avatar { width: 30px; height: 30px; font-size: 9.5px; border: 2px solid #fff; margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }
.featured .fits .go { margin-left: auto; color: var(--primary-text); }
.jlist { margin: 10px 20px 0; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.jrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.jrow:last-child { border-bottom: 0; }
.jrow .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--soft-2); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.jrow .t { font: 700 16px/1.2 var(--font); }
.jrow .m { font: 500 13px var(--ui); color: var(--ink-2); margin-top: 3px; }
.jrow .b { margin-left: auto; text-align: right; flex: none; }
.jrow .b .amt { font: 700 14px var(--ui); color: var(--green-deep); }
.jrow .b .lbl { font: 500 11px var(--ui); color: var(--ink-3); }
.section-h { font: 700 13px var(--ui); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; padding: 20px 20px 0; }

/* ---------- 4 lock screen ---------- */
.scr.lock {
  background:
    radial-gradient(500px 420px at 70% 20%, #1f5a40 0%, transparent 70%),
    radial-gradient(500px 500px at 10% 90%, #12352a 0%, transparent 70%),
    #0b1210;
}
.lock .date { text-align: center; font: 600 20px var(--ui); color: rgba(255,255,255,.85); margin-top: 18px; }
.lock .clock { text-align: center; font: 700 96px/1 var(--ui); letter-spacing: -.03em; color: rgba(255,255,255,.95); margin-top: 2px; }
.notif {
  margin: 0 12px; border-radius: 22px; padding: 14px;
  background: rgba(245, 245, 240, .82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: var(--ink); display: flex; gap: 12px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.notif .appic { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.notif .h { display: flex; justify-content: space-between; font: 700 15px/1.25 var(--ui); gap: 8px; }
.notif .h span { font: 500 13px var(--ui); color: #6b6f73; flex: none; }
.notif p { font: 400 15px/1.35 var(--ui); margin-top: 2px; }
.lock .stack-older { margin: 10px 24px 0; height: 12px; border-radius: 0 0 16px 16px; background: rgba(245,245,240,.35); }
.lock .bottom { position: absolute; bottom: 44px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 48px; }
.lock .bottom span { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; backdrop-filter: blur(10px); }
.lock .tap-hint { position: absolute; bottom: 58px; left: 0; right: 0; text-align: center; font: 500 13px var(--ui); color: rgba(255,255,255,.55); }

/* ---------- 5 matches ---------- */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 6px; font: 500 17px var(--ui); color: var(--primary-text); }
.navbar .back { display: flex; align-items: center; gap: 2px; }
.navbar .ttl { font: 700 17px var(--ui); color: var(--ink); }
.navbar .act { min-width: 60px; text-align: right; }
.jobhead { padding: 4px 20px 0; }
.jobhead h2 { font: 800 27px/1.12 var(--font); letter-spacing: -.02em; }
.jobhead .meta { font: 500 14.5px var(--ui); color: var(--ink-2); margin-top: 5px; }
.bonus-bar {
  margin: 14px 20px 0; border-radius: 16px; background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
}
.bonus-bar .amt { font: 800 22px var(--font); color: var(--on-dark-accent); }
.bonus-bar .lbl { font: 500 13.5px/1.3 var(--ui); color: #cfd2d4; }
.picked { padding: 22px 20px 0; }
.picked h3 { font: 800 20px var(--font); letter-spacing: -.01em; }
.picked .sub { font-size: 14px; margin-top: 3px; }
.person {
  margin: 12px 20px 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 14px 16px;
}
.person .row1 { display: flex; align-items: center; gap: 12px; }
.person .nm { font: 700 17px var(--ui); display: flex; align-items: center; gap: 7px; }
.person .role { font: 500 13.5px/1.3 var(--ui); color: var(--ink-2); margin-top: 2px; }
.person .why {
  margin-top: 10px; display: flex; gap: 8px; align-items: flex-start;
  font: 500 13.5px/1.4 var(--ui); color: var(--ink);
  background: var(--soft); border-radius: 12px; padding: 9px 11px;
}
.person .why svg { flex: none; margin-top: 2px; }
.send-btn {
  margin-left: auto; flex: none; height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--green); color: var(--on-primary); font: 700 15px var(--ui);
  display: inline-flex; align-items: center; gap: 6px;
}
.send-btn.top { box-shadow: 0 0 0 4px var(--send-glow); }
.other { text-align: center; padding: 18px 20px 24px; font: 600 14.5px var(--ui); color: var(--primary-text); }

/* ---------- 6 compose ---------- */
.compose-to { margin: 6px 20px 0; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font: 500 15px var(--ui); }
.compose-to .lbl { color: var(--ink-3); }
.compose-to .rc { display: inline-flex; align-items: center; gap: 6px; background: var(--green-tint); color: var(--green-deep); padding: 5px 10px 5px 5px; border-radius: 999px; font-weight: 600; }
.compose-to .rc .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.compose-to .num { color: var(--ink-3); font-size: 13.5px; margin-left: auto; }
.msg-wrap { padding: 20px 20px 0; display: flex; flex-direction: column; align-items: flex-end; }
.bubble-edit {
  width: 88%; background: var(--green); color: var(--on-primary); border-radius: 22px 22px 6px 22px; padding: 12px 15px;
  position: relative;
}
.bubble-edit textarea {
  width: 100%; border: 0; background: transparent; color: var(--on-primary); resize: none; outline: none;
  font: 400 16.5px/1.4 var(--ui); height: 72px; display: block;
}
.edit-hint { font: 500 12.5px var(--ui); color: var(--ink-3); margin-top: 8px; display: flex; gap: 5px; align-items: center; }
.lp {
  width: 88%; margin-top: 6px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line);
}
.lp .img { height: 116px; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.lp .img img { width: 62%; }
.lp .img .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--green); }
.lp .txt { padding: 10px 14px 12px; background: #eeece8; }
.lp .txt b { font: 700 14px/1.3 var(--ui); display: block; color: var(--ink); }
.lp .txt span { font: 500 12.5px var(--ui); color: var(--ink-3); }
.compose-foot { padding: 16px 20px 34px; flex: none; }
.compose-foot .note { font: 500 13px/1.4 var(--ui); color: var(--ink-2); text-align: center; margin-bottom: 12px; }

/* ---------- 7 sent ---------- */
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px 0; }
.ring { color: var(--on-primary); width: 96px; height: 96px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 12px var(--green-tint); }
.sent h1 { font: 800 30px/1.1 var(--font); margin-top: 30px; letter-spacing: -.02em; }
.sent p { font: 500 16px/1.45 var(--ui); color: var(--ink-2); margin-top: 8px; }
.mini-track { width: 100%; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: left; }
.mini-track .hd { display: flex; align-items: center; gap: 10px; }
.mini-track .hd .t { font: 700 15.5px var(--ui); }
.mini-track .hd .m { font: 500 13px var(--ui); color: var(--ink-2); }
.segs { display: flex; gap: 4px; margin-top: 14px; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: #ebe7df; }
.segs i.on { background: var(--green); }
.segs i.cur { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.seg-l { display: flex; justify-content: space-between; margin-top: 7px; font: 600 10.5px var(--ui); color: var(--ink-3); }
.seg-l .on { color: var(--green-deep); }
.next-up { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 12px 14px; text-align: left; }
.next-up .t { font: 700 15px var(--ui); }
.next-up .m { font: 500 13px var(--ui); color: var(--ink-2); }
.next-up .send-btn { height: 38px; padding: 0 14px; font-size: 14px; background: var(--green-tint); color: var(--green-deep); }

/* ---------- 8 iMessage (Marcus) ---------- */
.im { background: #fff; }
.im-head { text-align: center; padding: 0 0 10px; border-bottom: 1px solid #ececec; background: #f7f7f7; position: relative; }
.im-head .bk { position: absolute; left: 12px; top: 16px; color: var(--ios-blue); display: flex; align-items: center; font: 500 17px var(--ui); }
.im-head .bk span { background: var(--ios-blue); color: #fff; font: 600 13px var(--ui); border-radius: 10px; padding: 1px 7px; margin-left: 2px; }
.im-head .avatar { margin: 0 auto; width: 54px; height: 54px; font-size: 19px; background: linear-gradient(#a3a9b2, #858b94); }
.im-head .nm { font: 500 12px var(--ui); color: var(--ink); margin-top: 5px; display: inline-flex; align-items: center; gap: 2px; }
.im-body { padding: 16px 14px; font-family: var(--ui); }
.im-meta { text-align: center; font: 500 12px var(--ui); color: #8e8e93; margin: 4px 0 12px; }
.im-meta b { font-weight: 600; }
.rb { max-width: 78%; background: #e9e9eb; color: #000; border-radius: 19px; padding: 9px 14px; font: 400 16.5px/1.35 var(--ui); margin-bottom: 4px; }
.rb a { color: var(--ios-blue); text-decoration: underline; }
.im-lp { width: 78%; border-radius: 19px; overflow: hidden; background: #e9e9eb; cursor: pointer; transition: transform .15s; }
.im-lp:hover { transform: scale(1.015); }
.im-lp .img { height: 150px; background: #fff; display: grid; place-items: center; position: relative; }
.im-lp .img img { width: 64%; }
.im-lp .img .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--green); }
.im-lp .txt { padding: 9px 14px 11px; }
.im-lp .txt b { font: 600 14.5px/1.3 var(--ui); display: block; }
.im-lp .txt span { font: 400 13px var(--ui); color: #8e8e93; }
.im-input { flex: none; padding: 8px 12px 36px; display: flex; align-items: center; gap: 10px; }
.im-input .plus { width: 34px; height: 34px; border-radius: 50%; background: #ededf0; display: grid; place-items: center; color: #8e8e93; }
.im-input .field { margin: 0; flex: 1; height: 36px; border-radius: 18px; border: 1px solid #d8d8dc; font: 400 16px/34px var(--ui); color: #b0b0b5; padding: 0 14px; }

/* ---------- 9 landing ---------- */
.safari-top { flex: none; }
.lp-page { background: #fff; }
.lp-hero { background: var(--hero-bg); color: var(--hero-fg); padding: 18px 22px 22px; }
.lp-hero .logo-w { height: 26px; }
.ref-chip { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px 6px 6px; }
.ref-chip .avatar { width: 32px; height: 32px; font-size: 12px; background: #fff; color: var(--primary-text); }
.ref-chip b { font: 700 15px var(--ui); }
.ref-chip span { font: 500 12.5px var(--ui); opacity: .8; display: block; }
.lp-hero h1 { font: 800 31px/1.08 var(--font); letter-spacing: -.02em; margin-top: 16px; }
.lp-hero .meta { font: 500 15px var(--ui); opacity: .85; margin-top: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 18px 20px 0; }
.fact { background: var(--soft); border-radius: 14px; padding: 12px 10px; }
.fact .k { font: 600 11.5px var(--ui); color: var(--ink-3); }
.fact .v { font: 700 15.5px var(--ui); margin-top: 3px; }
.lp-desc { padding: 16px 22px 0; font: 400 15.5px/1.5 var(--ui); color: var(--ink-2); }
.lp-desc b { color: var(--ink); font-weight: 600; }
.lp-actions { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.track-note { display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 12.5px var(--ui); color: var(--ink-3); padding: 14px 20px 26px; }
.track-note code { font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--ink-2); background: var(--soft-2); padding: 2px 6px; border-radius: 5px; }
.safari-bot {
  flex: none; height: 88px; background: rgba(248,248,248,.96); border-top: 1px solid #e3e3e3; padding: 8px 14px 0;
}
.urlbar { height: 44px; border-radius: 13px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 16px var(--ui); color: #222; }
.urlbar .aa { position: absolute; left: 30px; font: 600 15px var(--ui); }

/* ---------- 10 call me sheet ---------- */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.38); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 22px 40px;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d4d4d8; margin: 0 auto 18px; }
.sheet h2 { font: 800 25px/1.12 var(--font); letter-spacing: -.02em; }
.sheet .sub { margin-top: 6px; font-size: 15px; }
.sheet .field { margin-top: 16px; }
.input { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); display: flex; align-items: center; padding: 0 14px; font: 600 17px var(--ui); }
.seg3 { display: flex; gap: 8px; }
.seg3 span { flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; font: 600 14.5px var(--ui); color: var(--ink-2); }
.seg3 span.on { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.sheet .btn { margin-top: 20px; }
.sheet .fine { text-align: center; font: 500 12.5px var(--ui); color: var(--ink-3); margin-top: 12px; }

/* ---------- 11 tracker ---------- */
.earn {
  margin: 12px 20px 0; border-radius: 22px; background: var(--ink); color: #fff; padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.earn .k { font: 600 12.5px var(--ui); color: #a8acb0; }
.earn .v { font: 800 30px var(--font); letter-spacing: -.02em; margin-top: 2px; }
.earn .v.g { color: var(--on-dark-accent); }
.tl-card { margin: 14px 20px 0; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 16px; }
.tl-card .hd { display: flex; align-items: center; gap: 12px; }
.tl-card .hd .t { font: 700 17px var(--ui); }
.tl-card .hd .m { font: 500 13.5px var(--ui); color: var(--ink-2); }
.tl-card .hd .pill { margin-left: auto; }
.tl { list-style: none; margin-top: 14px; padding-left: 4px; }
.tl li { position: relative; padding: 0 0 13px 30px; font: 600 15px var(--ui); color: var(--ink); }
.tl li span { display: block; font: 500 12.5px var(--ui); color: var(--ink-3); margin-top: 1px; }
.tl li::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.tl li::after { content: ''; position: absolute; left: 8px; top: 21px; bottom: 1px; width: 2px; background: var(--green); }
.tl li:last-child::after { display: none; }
.tl li.done .ck { color: var(--on-primary); position: absolute; left: 4px; top: 5px; }
.tl li.cur::before { background: #fff; border: 5px solid var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.tl li.cur::after, .tl li.todo::after { background: #e6e2da; }
.tl li.todo { color: var(--ink-3); font-weight: 500; }
.tl li.todo::before { background: #fff; border: 2px solid #d9d4cb; }
.tl li.cur span { color: var(--green-deep); font-weight: 600; }
.cmp { margin: 10px 20px 0; background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 13px 14px; }
.cmp .hd { display: flex; align-items: center; gap: 12px; }
.cmp .t { font: 700 15.5px var(--ui); }
.cmp .m { font: 500 13px var(--ui); color: var(--ink-2); }
.cmp .st { margin-left: auto; font: 700 13px var(--ui); color: var(--green-deep); text-align: right; }
.cmp .segs { margin-top: 10px; }

/* ---------- 12 hired ---------- */
.hired { background: var(--hero-bg); color: var(--hero-fg); }
.hired .sb, .hired .navbar { color: var(--hero-fg); }
.hired-top { text-align: center; padding: 26px 24px 30px; }
.hired-top .coin { width: 92px; height: 92px; border-radius: 50%; background: #fff; margin: 0 auto; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,.14), 0 0 0 26px rgba(255,255,255,.07); }
.hired-top .k { font: 700 13px var(--ui); letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-top: 40px; }
.hired-top .amt { font: 800 68px/1 var(--font); letter-spacing: -.03em; margin-top: 8px; }
.hired-top p { font: 500 16.5px/1.45 var(--ui); opacity: .92; margin-top: 12px; }
.hired-sheet { background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; padding: 20px 20px 30px; min-height: 380px; }
.hired-sheet .tl-card, .hired-sheet .cmp { margin-left: 0; margin-right: 0; }
.hired-sheet .totals { display: flex; gap: 10px; margin-top: 12px; }
.hired-sheet .totals > div { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.hired-sheet .totals .k { font: 600 12px var(--ui); color: var(--ink-3); }
.hired-sheet .totals .v { font: 800 22px var(--font); margin-top: 2px; }
.hired-sheet .btn { margin-top: 16px; }

/* tap affordance */
[data-go] { cursor: pointer; }
.scr.live [data-go]:active { transform: scale(.98); }

/* ============ Phone width ============ */
@media (max-width: 600px) {
  body { background: #000; }
  .presenter { display: block; height: 100dvh; }
  .panel { display: none; }
  .stage { padding: 0; height: 100dvh; justify-content: flex-start; background: #000; }
  .owner { position: fixed; top: calc(env(safe-area-inset-top) + 58px); right: 10px; z-index: 90; margin: 0; padding: 4px 10px 4px 4px; font-size: 11px; opacity: .92; }
  .owner small { display: none; }
  .owner .av { width: 18px; height: 18px; font-size: 8px; }
  .fit { width: 100vw !important; height: calc(100dvh - 54px) !important; }
  .fit .device {
    position: static; transform: none !important;
    width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: #000;
  }
  .fit .device > .scr { width: 100%; height: 100%; border-radius: 0; }
  .fit .island, .fit .sb { display: none; }
  .fit .scr { padding-top: env(safe-area-inset-top); }
  .fit .scr .hi { display: none; }
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 54px; z-index: 100;
    background: #111; color: #fff; align-items: center; justify-content: space-between; padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar button { height: 40px; min-width: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; padding: 0 10px; }
  .mbar button:disabled { opacity: .3; }
  .mbar .mid { font: 600 13px var(--ui); color: #c9cccf; text-align: center; line-height: 1.2; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 6px; }
  .mbar .mid b { color: #fff; }
  .mbar .nx { background: var(--green); color: var(--on-primary); }
  .overview { padding: 20px 16px 40px; height: 100dvh; }
  .ov-head { flex-direction: column; align-items: flex-start; }
  .ov-head h1 { font-size: 22px; }
  .ov-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .ov-item .mini { width: 155px; height: 325px; }
  .ov-item .mini .device { transform: scale(.375); }
}

.person .why .src { flex: none; margin-top: 0; }
.person .why { align-items: center; }
.panel-brand .grow { flex: 1; }
.panel-brand .ovb { color: #cfd2d4; font: 600 12.5px var(--ui); display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #2a2d30; text-transform: none; letter-spacing: 0; }
.panel-brand .ovb:hover { background: #34383b; }

.panel { overflow: hidden; }
.rail { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3d40 transparent; }
.panel-foot { position: static; padding: 14px 0 0; }
.eyebrow { font: 700 11px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #7d8185; margin-top: 22px; }
.panel-title { margin-top: 6px; }

.hired .body { display: flex; flex-direction: column; }
.hired-sheet { flex: 1; min-height: 0; }
.person .why .src { background: #fff; }
.person .why .src.li { background: #e8f1fb; }
.tl li { padding-left: 34px; }
.sent-wrap { display: flex; flex-direction: column; min-height: 100%; }
.sent-wrap .sent { flex: 1; }
.lp-foot { text-align: center; font: 500 12px var(--ui); color: var(--ink-3); padding: 0 20px 24px; }
.lp-hero .logo-w { height: 30px; }
@media (min-width: 1300px) {
  .ov-grid { grid-template-columns: repeat(6, 1fr); gap: 30px 16px; }
  .ov-item .mini { width: 199px; height: 417px; }
  .ov-item .mini .device { transform: scale(.48); }
}
body.ov .mbar { display: none; }
@media (max-width: 600px) {
  .owner { display: none; }
  .fit .scr { padding-top: max(env(safe-area-inset-top), 10px); }
  .fit .scr.lock .body { padding-top: 30px; }
  .mbar .mid b { color: var(--on-dark-accent); font-size: 11.5px; letter-spacing: .02em; }
}

/* ============ Brand 2: Murphy amber and near-black (?brand=2) ============
   Primary #F2A900 / hover #D69600, ink #252022. Text on amber is always ink;
   white on amber fails contrast (2.01:1). Green #00833E only on tiny verified marks. */
html[data-brand="2"] {
  --green: #00833E;
  --green-tint: #E6F3EC;
  --green-deep: #006B32;
  --on-primary: #fff;
  --primary-hover: #006B32;
  --primary-text: #006B32;
  --panel-accent: #F2A900;
  --on-dark-accent: #F2A900;
  --rail-done-bg: #3b3436;
  --rail-done-fg: #F2A900;
  --hero-bg: #252022;
  --hero-fg: #fff;
  --feat-shadow: rgba(37, 32, 34, .28);
  --send-glow: rgba(0, 131, 62, .3);
  --promise-t: #252022;
  --promise-p: #5D5A5C;
  --soft: #F5F5F5;
  --soft-2: #ECEBE9;
  --stage-a: #F5F5F5;
  --stage-b: #E5E3DF;
  --ink: #252022;
  --ink-2: #5D5A5C;
  --ink-3: #6B6869;
  --line: #E5E3DF;
  --bg: #F5F5F5;
  --dark: #252022;
  --amber: #8A5A00;
  --ic-app-bg: #00833E;
  --ic-app-fg: #fff;
  --ic-app-stroke: #00833E;
  --ic-accent: #006B32;
  --ic-ok: #00833E;
  --coin-bg: #F2A900;
  --coin-fg: #252022;
}
html[data-brand="2"] .btn.ghost { border-color: #D9D9D9; }
html[data-brand="2"] .btn-back { background: #3b3436; }
html[data-brand="2"] .btn-back:hover { background: #4a4244; }
html[data-brand="2"] .panel-brand .ovb,
html[data-brand="2"] .panel-foot button { background: #3b3436; }
html[data-brand="2"] .panel-brand .ovb:hover,
html[data-brand="2"] .panel-foot button:hover { background: #4a4244; }
html[data-brand="2"] .rail button:hover,
html[data-brand="2"] .rail button.on { background: #332d2f; }
html[data-brand="2"] .now { border-top-color: #3b3436; }
html[data-brand="2"] .pill.new { background: var(--ink); color: #fff; }
html[data-brand="2"] .pill { background: #FFF3D1; color: #252022; }
html[data-brand="2"] .c3 { background: #6a5f58; }
html[data-brand="2"] .c5 { background: #5a5256; }
html[data-brand="2"] .src { background: #ECEBE9; }
html[data-brand="2"] .lp .txt { background: #ECEBE9; }
html[data-brand="2"] .segs i:not(.on):not(.cur) { background: #E5E3DF; }
html[data-brand="2"] .tl li.cur::after,
html[data-brand="2"] .tl li.todo::after { background: #D9D9D9; }
html[data-brand="2"] .tl li.todo::before { border-color: #D9D9D9; }
html[data-brand="2"] .tabbar { background: rgba(255,255,255,.94); }
html[data-brand="2"] .tab.on { color: #252022; }
html[data-brand="2"] .tab.on svg { color: #00833E; }
html[data-brand="2"] .featured { border-color: #F2A900; }
html[data-brand="2"] .jrow .b .amt,
html[data-brand="2"] .cmp .st { color: #252022; }
html[data-brand="2"] .ref-chip .avatar { background: #F2A900; color: #252022; }
html[data-brand="2"] .hired-top .coin { background: var(--coin-bg); }
html[data-brand="2"] .ov-item:hover .device { box-shadow: 0 0 0 6px #00833E, 0 20px 40px -20px rgba(0,0,0,.4); }
/* Brand 2: the compose card and lock screen use gold and black rather than green. */
html[data-brand="2"] .navbar .back { color: var(--ink); }
html[data-brand="2"] .compose-to .rc { background: var(--soft-2); color: var(--ink); }
html[data-brand="2"] .bubble-edit { background: #252022; color: #fff; }
html[data-brand="2"] .bubble-edit textarea { color: #fff; }
html[data-brand="2"] .lp .img .bar,
html[data-brand="2"] .im-lp .img .bar { background: #F2A900; }
html[data-brand="2"] .scr.lock {
  background: radial-gradient(120% 70% at 50% 100%, #8a6100 0%, #4a3a12 38%, #252022 72%, #161314 100%);
}
/* Brand 2: the two get-started screens use a gold button. */
html[data-brand="2"] .ob .btn { background: #F2A900; color: #252022; }
html[data-brand="2"] .ob .btn:hover { background: #D69600; }
