/* onyxworks.io/hire: the iPhone and the live product screens inside it (2026-11-17, v2).
   One device everywhere: iPhone 16 Pro proportions (71.5 x 149.6 mm body, 402 x 874 pt screen).
   Inside the screen 1 point = var(--u) = 1/402 of the screen's width (a size container), so every screen
   is drawn at true iPhone scale at any device width, no image, no JS. */

/* ---------- the device ---------- */
.iphone {
  --ip-w: clamp(264px, 76vw, 336px);
  position: relative; width: var(--ip-w); aspect-ratio: 71.5 / 149.6; flex: none;
  border-radius: calc(var(--ip-w) * .172);
  padding: calc(var(--ip-w) * .012);
  background:
    linear-gradient(150deg, #8a8a94 0%, #3b3b42 18%, #232328 50%, #3a3a41 82%, #7c7c86 100%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .06) inset,
    0 calc(var(--ip-w) * .18) calc(var(--ip-w) * .32) calc(var(--ip-w) * -.08) rgb(0 0 0 / .7),
    0 calc(var(--ip-w) * .1) calc(var(--ip-w) * .4) calc(var(--ip-w) * -.12) rgb(99 102 241 / .45);
  isolation: isolate;
}
/* the side buttons: action + volume on the left, power and camera control on the right */
.iphone::before, .iphone::after, .iphone__keys::before, .iphone__keys::after {
  content: ""; position: absolute; width: calc(var(--ip-w) * .011); border-radius: 2px;
  background: linear-gradient(90deg, #2b2b31, #6d6d77 50%, #2b2b31);
}
.iphone::before { left: calc(var(--ip-w) * -.009); top: 18%; height: 4.6%; }
.iphone::after  { left: calc(var(--ip-w) * -.009); top: 26%; height: 9%; box-shadow: 0 calc(var(--ip-w) * .26) 0 0 #4b4b53; }
.iphone__keys::before { right: calc(var(--ip-w) * -.009); top: 27%; height: 13%; }
.iphone__keys::after  { right: calc(var(--ip-w) * -.009); top: 58%; height: 7%; opacity: .8; }
.iphone__bezel {
  position: relative; height: 100%; border-radius: calc(var(--ip-w) * .16);
  padding: calc(var(--ip-w) * .028); background: #050506;
  box-shadow: 0 0 0 calc(var(--ip-w) * .004) #000 inset;
}
.iphone__screen {
  --u: calc(100cqw / 402);
  position: relative; height: 100%; overflow: hidden; container-type: size;
  border-radius: calc(var(--ip-w) * .135);
  background: #0b0b10; color: #f5f6fa;
  font-family: var(--font-text); -webkit-font-smoothing: antialiased;
}
.iphone__screen * { --u: calc(100cqw / 402); }
/* status bar + Dynamic Island + home indicator */
.ip-status {
  position: absolute; inset: 0 0 auto; height: calc(54 * var(--u)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(4 * var(--u)) calc(32 * var(--u)) 0 calc(44 * var(--u));
  font: 600 calc(17 * var(--u))/1 var(--font-text); letter-spacing: -.01em; color: #fff; pointer-events: none;
}
.ip-status--dark { color: #0a0a0f; }
.ip-status__icons { display: flex; gap: calc(6 * var(--u)); align-items: center; }
.ip-status__icons svg { height: calc(12.5 * var(--u)); width: auto; fill: currentColor; }
.ip-island {
  position: absolute; left: 50%; top: calc(11 * var(--u)); z-index: 6; transform: translateX(-50%);
  width: calc(124 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(20 * var(--u)); background: #000;
}
.ip-home {
  position: absolute; left: 50%; bottom: calc(8 * var(--u)); z-index: 6; transform: translateX(-50%);
  width: calc(140 * var(--u)); height: calc(5 * var(--u)); border-radius: 99px; background: rgb(255 255 255 / .85);
}
.ip-home--dark { background: rgb(10 10 15 / .8); }
.ip-app { position: absolute; inset: 0; overflow: hidden; padding-top: calc(58 * var(--u)); }

/* the lit stage a phone stands on */
.stage {
  position: relative; display: grid; place-items: center; border-radius: var(--r-lg); overflow: hidden;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
  background:
    radial-gradient(60% 55% at 50% 38%, rgb(99 102 241 / .55), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgb(30 27 75 / .9), transparent 70%),
    linear-gradient(180deg, #17163a, #0c0c16);
}
.stage::before { /* a faint floor line under the phone */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(165 180 252 / .25), transparent);
}
.stage__ctrl {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; cursor: pointer;
  font: 500 12px/1 var(--font-mono); color: #c7cbda; background: rgb(10 10 15 / .55);
  border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, color .2s, transform .15s;
}
.stage__ctrl:hover { color: #fff; background: rgb(10 10 15 / .8); }
.stage__ctrl:active { transform: scale(.96); }
.stage__ctrl svg { width: 12px; height: 12px; fill: currentColor; }
.stage__ctrl [data-on] { display: none; }
.stage__ctrl[aria-pressed="true"] [data-on] { display: inline; }
.stage__ctrl[aria-pressed="true"] [data-off] { display: none; }

/* ---------- shared screen parts (all sizes in points) ---------- */
.s-pad { padding-left: calc(20 * var(--u)); padding-right: calc(20 * var(--u)); }
.s-badge {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u));
  border-radius: 99px; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04);
  font: 500 calc(13 * var(--u))/1 var(--font-text); color: #d1fae5;
}
.s-dot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #34d399; box-shadow: 0 0 0 calc(3 * var(--u)) rgb(52 211 153 / .2); }
.s-biz { margin-top: calc(16 * var(--u)); font: 500 calc(14 * var(--u))/1.2 var(--font-text); color: #c7cbda; }
.s-h { margin-top: calc(10 * var(--u)); font: 600 calc(29 * var(--u))/1.08 var(--font-display); letter-spacing: -.03em; color: #fff; }
.s-n { display: inline-grid; place-items: center; min-width: calc(32 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(6 * var(--u)); border-radius: calc(10 * var(--u)); background: #6366f1; margin-right: calc(4 * var(--u)); transition: transform .3s; }
.s-sub { margin-top: calc(10 * var(--u)); font: 400 calc(14.5 * var(--u))/1.45 var(--font-text); color: #b4b8c8; }
.s-stats { margin-top: calc(18 * var(--u)); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .08); border-bottom: 1px solid rgb(255 255 255 / .08); }
.s-stats > div { padding: calc(12 * var(--u)) 0 calc(12 * var(--u)) calc(12 * var(--u)); border-left: 1px solid rgb(255 255 255 / .08); }
.s-stats > div:first-child { border-left: 0; padding-left: 0; }
.s-stats dt { font: 400 calc(13 * var(--u))/1.2 var(--font-text); color: #9ca0b4; }
.s-stats dd { margin: calc(6 * var(--u)) 0 0; font: 500 calc(24 * var(--u))/1 var(--font-text); color: #fff; font-variant-numeric: tabular-nums; }
.s-stats dd small { font: 400 calc(13 * var(--u))/1 var(--font-mono); color: #9ca0b4; margin-left: calc(3 * var(--u)); }
.s-label { font: 600 calc(19 * var(--u))/1.2 var(--font-display); letter-spacing: -.02em; color: #fff; display: flex; align-items: center; gap: calc(8 * var(--u)); }
.s-pill { display: inline-grid; place-items: center; min-width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 99px; background: #6366f1; font: 500 calc(13 * var(--u))/1 var(--font-text); }

/* a draft card */
.s-card { position: relative; margin-top: calc(14 * var(--u)); padding: calc(16 * var(--u)); border-radius: calc(20 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .08); }
.s-card__top { display: flex; gap: calc(12 * var(--u)); align-items: center; }
.s-av { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #1e1b4b; color: #c7d2fe; font: 600 calc(15 * var(--u))/1 var(--font-text); flex: none; }
.s-to { font: 600 calc(16.5 * var(--u))/1.2 var(--font-text); color: #fff; }
.s-kind { margin-top: calc(3 * var(--u)); font: 400 calc(13 * var(--u))/1.3 var(--font-text); color: #9ca0b4; }
.s-of { margin-left: auto; align-self: start; font: 400 calc(13 * var(--u))/1 var(--font-mono); color: #9ca0b4; }
.s-thread { margin-top: calc(14 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #0a0a0f; display: grid; gap: calc(8 * var(--u)); }
.s-bub { max-width: 84%; padding: calc(10 * var(--u)) calc(13 * var(--u)); border-radius: calc(18 * var(--u)); font: 400 calc(14.5 * var(--u))/1.38 var(--font-text); }
.s-bub--out { justify-self: end; background: #4f46e5; color: #fff; border-bottom-right-radius: calc(6 * var(--u)); }
.s-bub--in { justify-self: start; background: #26262f; color: #f0f1f5; border-bottom-left-radius: calc(6 * var(--u)); }
.s-bub[contenteditable="true"] { outline: calc(2 * var(--u)) solid #a5b4fc; outline-offset: calc(2 * var(--u)); }
.s-meta { justify-self: end; font: 400 calc(13 * var(--u))/1.3 var(--font-text); color: #8b8fa3; }
.s-meta--l { justify-self: start; }
.s-actions { margin-top: calc(14 * var(--u)); display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: calc(8 * var(--u)); }
.s-btn {
  position: relative; height: calc(46 * var(--u)); border-radius: calc(13 * var(--u)); border: 1px solid rgb(255 255 255 / .12);
  display: inline-flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); cursor: pointer;
  font: 600 calc(15 * var(--u))/1 var(--font-text); color: #fff; background: transparent; transition: transform .15s, background .2s, box-shadow .2s;
}
.s-btn svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-btn--go { background: #6366f1; border-color: #6366f1; box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) calc(-8 * var(--u)) rgb(99 102 241 / .8); }
.s-btn--go:hover { background: #7376f4; }
.s-btn--ghost { border-color: transparent; color: #b4b8c8; }
.s-btn:hover { transform: translateY(-1px); }
.s-btn:active, .s-btn.is-press { transform: scale(.95); }
.s-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }

/* the demo's finger: a soft ring where the "tap" lands */
.s-tap { position: absolute; z-index: 4; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; pointer-events: none;
  background: rgb(255 255 255 / .35); border: 2px solid rgb(255 255 255 / .7); opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
.s-tap.is-on { animation: s-tap .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes s-tap { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); } 35% { opacity: 1; transform: translate(-50%,-50%) scale(.85); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.2); } }

/* the toast after a send */
.s-toast {
  position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(26 * var(--u)); z-index: 4;
  display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(16 * var(--u));
  border-radius: calc(16 * var(--u)); background: rgb(30 30 40 / .92); border: 1px solid rgb(255 255 255 / .1);
  font: 500 calc(14.5 * var(--u))/1.2 var(--font-text); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(calc(16 * var(--u))); transition: opacity .3s, transform .45s cubic-bezier(.16,1,.3,1);
}
.s-toast.is-on { opacity: 1; transform: none; }
.s-toast i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: #34d399; display: grid; place-items: center; flex: none; }
.s-toast i svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); fill: none; stroke: #052e1c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* card in / out */
.s-card.is-out { animation: s-out .5s cubic-bezier(.6,0,.8,.4) forwards; }
.s-card.is-in { animation: s-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes s-out { to { opacity: 0; transform: translateX(-110%) rotate(-3deg); } }
@keyframes s-in { from { opacity: 0; transform: translateY(calc(30 * var(--u))) scale(.97); } }
.s-done { margin-top: calc(14 * var(--u)); padding: calc(26 * var(--u)) calc(18 * var(--u)); border-radius: calc(20 * var(--u)); border: 1px dashed rgb(255 255 255 / .14); text-align: center; color: #b4b8c8; font: 400 calc(14.5 * var(--u))/1.45 var(--font-text); }
.s-done strong { display: block; margin-bottom: calc(4 * var(--u)); font: 600 calc(18 * var(--u))/1.2 var(--font-display); color: #fff; }

/* ---------- the lock screen (evening) ---------- */
.ip-lock { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 20% 0%, #4338ca 0%, transparent 60%),
  radial-gradient(100% 70% at 100% 100%, #1e1b4b 0%, transparent 70%), #0f0e2a; }
.ip-lock__date { position: absolute; top: calc(78 * var(--u)); left: 0; right: 0; text-align: center; font: 500 calc(19 * var(--u))/1 var(--font-text); color: rgb(255 255 255 / .85); }
.ip-lock__time { position: absolute; top: calc(98 * var(--u)); left: 0; right: 0; text-align: center; font: 600 calc(96 * var(--u))/1 var(--font-display); letter-spacing: -.03em; color: rgb(255 255 255 / .95); }
.ip-lock__list { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(118 * var(--u)); display: flex; flex-direction: column-reverse; gap: calc(8 * var(--u)); }
.ip-note {
  display: grid; grid-template-columns: calc(38 * var(--u)) 1fr auto; gap: 0 calc(10 * var(--u)); align-items: start;
  padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(22 * var(--u));
  background: rgb(245 246 250 / .16); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #fff; transform-origin: 50% 100%;
}
.ip-note.is-new { animation: ip-note .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes ip-note { from { opacity: 0; transform: translateY(calc(24 * var(--u))) scale(.94); } }
.ip-note__ico { grid-row: span 2; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(9 * var(--u)); display: grid; place-items: center; }
.ip-note__ico svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: #fff; }
.ip-note__t { font: 600 calc(15 * var(--u))/1.25 var(--font-text); }
.ip-note__w { font: 400 calc(13 * var(--u))/1.25 var(--font-text); color: rgb(255 255 255 / .7); }
.ip-note__b { grid-column: 2 / span 2; font: 400 calc(14.5 * var(--u))/1.3 var(--font-text); color: rgb(255 255 255 / .92); }
.ip-lock__foot { position: absolute; left: calc(46 * var(--u)); right: calc(46 * var(--u)); bottom: calc(44 * var(--u)); display: flex; justify-content: space-between; }
.ip-lock__foot span { width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%; background: rgb(255 255 255 / .14); backdrop-filter: blur(10px); display: grid; place-items: center; }
.ip-lock__foot svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: #fff; }

/* ---------- Messages thread (chapter 1) ---------- */
.ip-msgs { position: absolute; inset: 0; background: #000; }
.ip-msgs__head { padding: calc(60 * var(--u)) 0 calc(12 * var(--u)); display: grid; justify-items: center; gap: calc(6 * var(--u)); border-bottom: 1px solid rgb(255 255 255 / .08); background: rgb(28 28 32 / .9); }
.ip-msgs__av { width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#9ca3af,#6b7280); font: 600 calc(20 * var(--u))/1 var(--font-text); }
.ip-msgs__name { font: 500 calc(13 * var(--u))/1 var(--font-text); color: #e5e7eb; }
.ip-msgs__body { padding: calc(16 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.ip-msgs__sys { justify-self: center; text-align: center; font: 400 calc(13 * var(--u))/1.4 var(--font-text); color: #8e8e93; margin: calc(6 * var(--u)) 0; }
.ip-msgs__sys b { color: #c7c7cc; font-weight: 600; }
.ip-call { justify-self: center; display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); border-radius: 99px; background: #1c1c1e; font: 500 calc(14 * var(--u))/1 var(--font-text); color: #ff6961; }
.ip-call svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: currentColor; }
.ip-msgs .s-bub--out { background: #4f46e5; }
.ip-msgs .s-bub--in { background: #26262a; }
.s-typing { justify-self: start; display: inline-flex; gap: calc(4 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); border-radius: calc(18 * var(--u)); background: #26262a; }
.s-typing i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #8e8e93; animation: s-dots 1.2s infinite; }
.s-typing i:nth-child(2) { animation-delay: .15s; } .s-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes s-dots { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* step-in for anything inside a story screen */
.ip-scene [data-at] { opacity: 0; transform: translateY(calc(12 * var(--u))); transition: opacity .4s, transform .5s cubic-bezier(.16,1,.3,1); }
.ip-scene [data-at].is-on { opacity: 1; transform: none; }

/* ---------- quote schedule (chapter 2) ---------- */
.s-sched { margin-top: calc(14 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.s-sched li { display: grid; grid-template-columns: calc(54 * var(--u)) 1fr auto; gap: calc(12 * var(--u)); align-items: center; padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .07); }
.s-sched time { font: 500 calc(13 * var(--u))/1.2 var(--font-mono); color: #a5b4fc; }
.s-sched b { display: block; font: 600 calc(14.5 * var(--u))/1.25 var(--font-text); color: #fff; }
.s-sched span { display: block; margin-top: calc(2 * var(--u)); font: 400 calc(13 * var(--u))/1.3 var(--font-text); color: #9ca0b4; }
.s-chip { font: 500 calc(13 * var(--u))/1 var(--font-text); padding: calc(6 * var(--u)) calc(9 * var(--u)); border-radius: 99px; background: rgb(99 102 241 / .18); color: #c7d2fe; white-space: nowrap; }
.s-chip--ok { background: rgb(52 211 153 / .16); color: #a7f3d0; }
.s-tool { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); margin-top: calc(16 * var(--u)); }
.s-tool span { height: calc(48 * var(--u)); border-radius: calc(14 * var(--u)); display: grid; place-items: center; font: 600 calc(14.5 * var(--u))/1 var(--font-text); background: #1b1b25; border: 1px solid rgb(255 255 255 / .1); color: #fff; }
.s-tool span.is-hit { background: #6366f1; border-color: #6366f1; }

/* ---------- Monday timesheet (chapter 4) ---------- */
.s-bars { margin-top: calc(16 * var(--u)); height: calc(150 * var(--u)); display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(8 * var(--u)); align-items: end; padding: calc(14 * var(--u)); border-radius: calc(18 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .07); }
.s-bars i { display: block; border-radius: calc(6 * var(--u)) calc(6 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)); background: linear-gradient(#818cf8, #4f46e5); height: 0; transition: height .9s cubic-bezier(.16,1,.3,1); }
.s-bars i:nth-child(7) { background: linear-gradient(#a5b4fc, #6366f1); }
.s-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)) 0; font: 400 calc(13 * var(--u))/1 var(--font-mono); color: #8b8fa3; text-align: center; }
.s-rows { margin-top: calc(14 * var(--u)); display: grid; }
.s-rows li { display: flex; justify-content: space-between; padding: calc(13 * var(--u)) 0; border-bottom: 1px solid rgb(255 255 255 / .08); font: 400 calc(14.5 * var(--u))/1.2 var(--font-text); color: #d4d6e0; }
.s-rows b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- trust setting (charge) ---------- */
.s-seg { margin-top: calc(16 * var(--u)); position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(4 * var(--u)); border-radius: calc(16 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .08); }
.s-seg::before { content: ""; position: absolute; top: calc(4 * var(--u)); bottom: calc(4 * var(--u)); left: calc(4 * var(--u)); width: calc((100% - 8 * var(--u)) / 3); border-radius: calc(12 * var(--u)); background: #6366f1; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) calc(-6 * var(--u)) rgb(99 102 241 / .9); transform: translateX(calc(var(--pick, 0) * 100%)); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.s-seg button { position: relative; z-index: 1; min-height: calc(50 * var(--u)); border: 0; background: none; cursor: pointer; border-radius: calc(12 * var(--u)); font: 600 calc(14.5 * var(--u))/1.15 var(--font-text); color: #9ca0b4; transition: color .25s; }
.s-seg button[aria-checked="true"] { color: #fff; }
.s-seg button:focus-visible { outline: 2px solid #a5b4fc; outline-offset: -2px; }
.s-mode { margin-top: calc(14 * var(--u)); display: grid; grid-template-columns: calc(44 * var(--u)) 1fr; gap: calc(14 * var(--u)); padding: calc(18 * var(--u)); border-radius: calc(20 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .08); }
.s-mode__ico { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(12 * var(--u)); background: #1e1b4b; display: grid; place-items: center; }
.s-mode__ico svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: #c7d2fe; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-mode b { display: block; font: 600 calc(17 * var(--u))/1.25 var(--font-display); color: #fff; }
.s-mode p { margin-top: calc(5 * var(--u)); font: 400 calc(14 * var(--u))/1.45 var(--font-text); color: #b4b8c8; }
.s-mode.is-swap { animation: s-swap .4s cubic-bezier(.16,1,.3,1); }
@keyframes s-swap { from { opacity: .2; transform: translateY(calc(6 * var(--u))); } }
.s-switch { margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: 1fr auto; gap: calc(12 * var(--u)); align-items: center; padding: calc(16 * var(--u)) calc(18 * var(--u)); border-radius: calc(20 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .08); }
.s-switch b { display: block; font: 600 calc(15 * var(--u))/1.3 var(--font-text); color: #fff; }
.s-switch span { display: block; margin-top: calc(3 * var(--u)); font: 400 calc(13 * var(--u))/1.4 var(--font-text); color: #9ca0b4; }
.s-toggle { width: calc(51 * var(--u)); height: calc(31 * var(--u)); border-radius: 99px; background: #34c759; position: relative; flex: none; }
.s-toggle::after { content: ""; position: absolute; top: calc(2 * var(--u)); right: calc(2 * var(--u)); width: calc(27 * var(--u)); height: calc(27 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .25); }
.s-lockline { margin-top: calc(12 * var(--u)); display: flex; gap: calc(8 * var(--u)); align-items: flex-start; font: 400 calc(13 * var(--u))/1.4 var(--font-text); color: #9ca0b4; }
.s-lockline svg { flex: none; width: calc(15 * var(--u)); height: calc(15 * var(--u)); margin-top: calc(1 * var(--u)); fill: none; stroke: #a5b4fc; stroke-width: 2; }

/* ---------- setup form (after) ---------- */
.ip-light { position: absolute; inset: 0; background: #f7f7fa; color: #0a0a0f; }
.f-prog { display: flex; gap: calc(6 * var(--u)); margin-top: calc(10 * var(--u)); }
.f-prog i { flex: 1; height: calc(4 * var(--u)); border-radius: 99px; background: #e2e3ea; }
.f-prog i.is-on { background: #6366f1; }
.f-step { margin-top: calc(10 * var(--u)); font: 500 calc(13 * var(--u))/1 var(--font-mono); color: #6366f1; }
.f-h { margin-top: calc(10 * var(--u)); font: 600 calc(26 * var(--u))/1.12 var(--font-display); letter-spacing: -.025em; }
.f-p { margin-top: calc(8 * var(--u)); font: 400 calc(14.5 * var(--u))/1.45 var(--font-text); color: #4b5163; }
.f-field { margin-top: calc(16 * var(--u)); }
.f-field label { display: block; font: 600 calc(14 * var(--u))/1.3 var(--font-text); }
.f-in { margin-top: calc(7 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; border: 1px solid #d7d9e2; font: 400 calc(15 * var(--u))/1.4 var(--font-text); color: #0a0a0f; min-height: calc(48 * var(--u)); }
.f-in--focus { border-color: #6366f1; box-shadow: 0 0 0 calc(3 * var(--u)) rgb(99 102 241 / .18); }
.f-caret { display: inline-block; width: 1.5px; height: 1.1em; vertical-align: -.15em; background: #6366f1; animation: f-blink 1s steps(1) infinite; }
@keyframes f-blink { 50% { opacity: 0; } }
.f-save { margin-top: calc(18 * var(--u)); height: calc(50 * var(--u)); border-radius: calc(14 * var(--u)); background: #0a0a0f; color: #fff; display: grid; place-items: center; font: 600 calc(15.5 * var(--u))/1 var(--font-text); }

/* ---------- reduced motion: every screen rests on its finished frame ---------- */
@media (prefers-reduced-motion: reduce) {
  .ip-scene [data-at] { opacity: 1; transform: none; transition: none; }
  .s-card.is-in, .s-card.is-out, .ip-note.is-new, .s-mode.is-swap { animation: none; }
  .s-typing i, .f-caret { animation: none; }
}

/* ================= page sections (v2) ================= */

/* the day: chapter list beside the story phone */
.story__steps { display: grid; gap: var(--s-3); }
.story__step {
  position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 2px var(--s-4);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; overflow: hidden;
  transition: background .3s, border-color .3s, transform .15s;
}
.story__step:hover { border-color: rgb(165 180 252 / .35); transform: translateY(-2px); }
.story__step:active { transform: scale(.99); }
.story__step:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.story__n { grid-row: 1 / span 2; font: 500 13px/1.9 var(--font-mono); color: var(--muted); }
.story__t { font: 500 clamp(18px, .6vw + 13px, 22px)/1.3 var(--font-text); letter-spacing: -.01em; color: var(--muted); transition: color .3s; }
.story__p { grid-column: 2; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s cubic-bezier(.2,.7,.2,1), opacity .3s, margin .3s; color: var(--muted); font-size: var(--t-body); line-height: 1.5; }
.story__step.is-on { background: rgb(99 102 241 / .08); border-color: rgb(99 102 241 / .5); }
.story__step.is-on .story__n { color: #a5b4fc; }
.story__step.is-on .story__t { color: var(--ink); }
.story__step.is-on .story__p { max-height: 8em; opacity: 1; margin-top: 6px; }
.story__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #818cf8; transform: scaleX(0); transform-origin: 0 50%; }
.story__step.is-on .story__bar { animation: story-bar var(--story-dur, 6000ms) linear both; }
.story.is-user .story__bar, .story:has(.is-held) .story__bar { animation-play-state: paused; }
.story.is-user .story__step.is-on .story__bar { animation: none; transform: scaleX(1); }
@keyframes story-bar { to { transform: scaleX(1); } }
#day .stage { min-height: 100%; }

/* setup: a daisyUI-style stepper (numbered dots joined by a line) and a joined stats bar */
#steps { display: flex; flex-direction: column; justify-content: center; }
.steps-head { display: grid; gap: var(--s-4); max-width: 40ch; }
.stepper { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: s; }
.stepper__item { position: relative; display: grid; align-content: start; gap: var(--s-3); padding-top: 68px; }
.stepper__item::before { /* the line to the next step */
  content: ""; position: absolute; top: 23px; left: 48px; right: calc(var(--gutter) * -1); height: 2px;
  background: linear-gradient(90deg, #6366f1, rgb(99 102 241 / .2));
}
.stepper__item:last-child::before { display: none; }
.stepper__dot {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 600 18px/1 var(--font-display); color: #fff; background: #6366f1;
  box-shadow: 0 0 0 6px rgb(99 102 241 / .16), 0 12px 30px -10px rgb(99 102 241 / .9);
}
.stepper__time { justify-self: start; font: 500 12px/1 var(--font-mono); color: #c7d2fe; padding: 7px 10px; border-radius: 99px; background: rgb(99 102 241 / .14); border: 1px solid rgb(99 102 241 / .3); }
.stepper__t { font: 500 clamp(20px, .8vw + 13px, 26px)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.stepper__p { color: var(--muted); max-width: 34ch; line-height: 1.55; }
.statbar { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.statbar__item { padding: var(--s-6); border-left: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-3); align-items: baseline; }
.statbar__item:first-child { border-left: 0; }
.statbar .t-stat { font: 500 clamp(44px, 2.6vw + 16px, 64px)/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.statbar__unit { font: 500 var(--t-lead)/1.2 var(--font-text); color: #c7d2fe; }
.statbar__desc { grid-column: 1 / -1; margin-top: var(--s-2); color: var(--muted); font-size: var(--t-small); }

/* first weeks: a daisyUI-style vertical timeline */
.tl { position: relative; display: grid; gap: var(--s-5); padding-left: 32px; margin-top: var(--s-2); }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#6366f1, rgb(99 102 241 / .15)); }
.tl li { position: relative; display: grid; gap: 4px; }
.tl__dot { position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid #6366f1; }
.tl__dot.is-done { background: #6366f1; box-shadow: 0 0 0 5px rgb(99 102 241 / .2); }
.tl__when { font: 500 12px/1.4 var(--font-mono); color: #a5b4fc; }
.tl__what { font: 500 var(--t-lead)/1.35 var(--font-text); color: var(--ink); }

/* the hero stage sits behind the founding float */
.hero--split .hero__media { background: none; position: relative; }
.stage--hero { height: 100%; }

/* phones on tablets and phones */
@media (max-width: 1023px) {
  .stepper { grid-template-columns: 1fr; gap: var(--s-6); }
  .stepper__item { padding: 0 0 0 72px; min-height: 48px; }
  .stepper__item::before { top: 56px; bottom: calc(var(--s-6) * -1 + 8px); left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(#6366f1, rgb(99 102 241 / .2)); }
}
@media (max-width: 639px) {
  main > section.section, main > section.section[id] { min-height: 0 !important; height: auto; padding-block: 72px; }
  .stage { padding: 32px 12px; border-radius: 24px; }
  .iphone { --ip-w: min(300px, 78vw); }
  .statbar { grid-template-columns: 1fr; }
  .statbar__item { border-left: 0; border-top: 1px solid var(--line); padding: var(--s-5); }
  .statbar__item:first-child { border-top: 0; }
  .story__steps { gap: var(--s-2); }
  .story__step { padding: 14px 16px 16px; }
  .stage__ctrl { right: 10px; bottom: 10px; }
}
@media (min-width: 1024px) {
  .iphone { --ip-w: min(330px, calc((100svh - 250px) * .478)); }
  .stage { padding: clamp(24px, 2.6vw, 40px); }
  .stage--hero { padding: 20px; }
  .stage--hero .iphone { --ip-w: min(330px, calc((100svh - 200px) * .478)); }
}

/* the pause control sits under the phone, never on it */
.stage { padding-bottom: 76px !important; }
.stage__ctrl { left: 50%; right: auto !important; bottom: 18px !important; transform: translateX(-50%); }
.stage__ctrl:active { transform: translateX(-50%) scale(.96); }
.stage.is-user .stage__ctrl, .stage__ctrl[hidden] { display: none; }
@media (max-width: 1023px) {
  .hero--split .hero__media { flex: none; height: auto; min-height: 0; }
  .stage--hero { height: auto; }
}
/* the Messages composer */
.ip-msgs__bar { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(30 * var(--u)); display: flex; gap: calc(10 * var(--u)); align-items: center; }
.ip-msgs__bar i { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; color: #8e8e93; font: 400 calc(22 * var(--u))/1 var(--font-text); font-style: normal; }
.ip-msgs__bar span { flex: 1; height: calc(36 * var(--u)); border-radius: 99px; border: 1px solid #3a3a3c; padding: 0 calc(14 * var(--u)); display: flex; align-items: center; font: 400 calc(15 * var(--u))/1 var(--font-text); color: #6e6e73; }
/* the trust screen's live list */
.s-list { margin-top: calc(18 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.s-list > p { font: 600 calc(15 * var(--u))/1.2 var(--font-display); color: #fff; margin-bottom: calc(2 * var(--u)); }
.s-list li { display: grid; grid-template-columns: calc(34 * var(--u)) 1fr auto; gap: calc(10 * var(--u)); align-items: center; padding: calc(11 * var(--u)) calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: #15151d; border: 1px solid rgb(255 255 255 / .07); }
.s-list .s-av { width: calc(34 * var(--u)); height: calc(34 * var(--u)); font-size: calc(13 * var(--u)); }
.s-list b { display: block; font: 600 calc(14 * var(--u))/1.25 var(--font-text); color: #fff; }
.s-list span { display: block; font: 400 calc(13 * var(--u))/1.3 var(--font-text); color: #9ca0b4; }

.s-chip { font-style: normal; }
.tl { margin-top: var(--s-5); }
/* hero: the control in the stage's top corner so the phone gets the full height */
.stage--hero { padding: 20px !important; }
.stage--hero .stage__ctrl { top: 16px; bottom: auto !important; left: auto; right: 16px !important; transform: none; }
.stage--hero .stage__ctrl:active { transform: scale(.96); }
@media (min-width: 1024px) { .stage--hero .iphone { --ip-w: min(330px, calc((100svh - 230px) * .478)); } }
@media (max-width: 1023px) { .stage--hero { padding: 40px 12px 28px !important; } }
/* the second plan's button reads as a button on the dark card */
.card--plan .btn--secondary { border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .04); }
.card--plan .btn--secondary:hover { border-color: rgb(165 180 252 / .6); }
/* the day on a phone: heading, then the phone, then the chapters right under it */
@media (max-width: 1023px) {
  #day .grid > .span-5 { display: contents; }
  #day #day-h { order: 1; }
  #day [data-demo="story"] { order: 2; }
  #day .story__steps { order: 3; }
  #day .grid { display: flex; flex-direction: column; gap: var(--s-5); }
}
@media (max-width: 1023px) {
  .stage--hero { padding: 32px 12px 76px !important; }
  .stage--hero .stage__ctrl { top: auto; bottom: 18px !important; left: 50%; right: auto !important; transform: translateX(-50%); }
}

/* ---- QC fixes 2026-11-17 ---- */
/* tablets: the hero grows with its phone, never clips it */
@media (max-width: 1023px) {
  .hero.hero--split { height: auto !important; min-height: 0; overflow: visible !important; }
  .hero--split .hero__media { overflow: visible; }
}
/* bigger phones on phones, so the screens read */
@media (max-width: 639px) { .iphone { --ip-w: min(344px, 88vw); } .stage { padding-left: 8px; padding-right: 8px; } }
/* 44px taps inside the demos at every size */
.s-btn { height: max(calc(46 * var(--u)), 44px); }
.s-seg button { min-height: max(calc(50 * var(--u)), 44px); }
.stage__ctrl { height: 46px; min-width: 46px; }
/* hero, after the last draft: one plain line */
.s-h[data-zero] { font-size: 0; }
.s-h[data-zero]::after { content: "You\2019re caught up."; font-size: calc(29 * var(--u)); }
.s-replay { margin-top: calc(14 * var(--u)); width: 100%; }
/* the founding offer: a pill under the hero's proof line, off the phone */
.founding-pill { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 99px;
  border: 1px solid rgb(99 102 241 / .45); background: rgb(99 102 241 / .1); color: var(--ink); text-decoration: none; font-size: var(--t-small); transition: border-color .2s, transform .15s, background .2s; }
.founding-pill:hover { border-color: #a5b4fc; background: rgb(99 102 241 / .18); transform: translateY(-1px); }
.founding-pill__tag { padding: 7px 11px; border-radius: 99px; background: #6366f1; color: #fff; font: 500 12px/1 var(--font-mono); }
.founding-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.founding-pill[hidden] { display: none; }
/* the $397 plan's button reads as a button */
html[data-buttons] #price .card--plan .btn--secondary { border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .06); }
html[data-buttons] #price .card--plan .btn--secondary:hover { border-color: #a5b4fc; background: rgb(99 102 241 / .14); }
.founding-pill, .founding-pill span { white-space: nowrap; }
@media (max-width: 639px) { .iphone { --ip-w: min(332px, 84vw); } .stage { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 399px) { .founding-pill { gap: 8px; padding-right: 12px; max-width: 100%; } .founding-pill > span:not(.founding-pill__tag) { white-space: normal; } }
/* setup: the section grows with its content on short windows; nothing inside ever shrinks */
/* 2026-11-23 (Jason: too much blank space): sections take their content's height, no full-screen minimum */
main > section#steps { height: auto; min-height: 0; }
#steps .wrap > * { flex-shrink: 0; }
/* short windows: every section and the closing footer are at least one screen and grow with their content (never squeezed) */
main > section.section:not(.hero), footer.closing { height: auto !important; min-height: 0; }
footer.closing .closing__cta { height: auto; flex-shrink: 0; }
footer.closing > .wrap > * { min-height: auto; }
main > .hero.hero--split { height: auto !important; min-height: 100svh; }
/* 2026-11-23 (Jason: big gaps on desktop): a short heading and lead sat at the top of a 650px phone,
   leaving the left half empty below them. On desktop the words now sit centred against the phone,
   and the phone runs a little smaller. */
@media (min-width: 1024px) {
  main > section.section > .wrap > .grid.grid--top:has(> .stage) { align-items: center; }
  main > section.section .stage .iphone { --ip-w: min(300px, calc((100svh - 250px) * .478)); }
  :root { --padt: 72px; --padb: 72px; }
}
