/* iOS look: system grouped background, inset grouped lists, large titles, brand colour as the tint. */
:root {
  --tint: #1B3F73;
  --tint-soft: rgba(27, 63, 115, .12);
  --tint-light: #5A7399;
  --bg: #F2F2F7;
  --cell: #FFFFFF;
  --label: #000000;
  --label2: rgba(60, 60, 67, .6);
  --label3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .29);
  --fill: rgba(120, 120, 128, .16);
  --press: #D1D1D6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px; letter-spacing: -.41px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }

#app { position: relative; max-width: 500px; margin: 0 auto; min-height: 100dvh; }
.screen { position: relative; min-height: 100dvh; background: var(--bg); padding-bottom: 130px; }
.screen.leaving { position: fixed; left: 0; right: 0; max-width: 500px; margin: 0 auto; pointer-events: none; }

/* Type */
.lt { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: .37px; margin: 4px 0 6px; }
.lt.q { font-size: 28px; letter-spacing: .36px; margin: 6px 0 18px; }
.sub { font-size: 17px; color: var(--label2); line-height: 1.35; margin: 0 0 8px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--tint); margin: 0 0 2px; }
.center { text-align: center; }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.page { padding: 8px 16px 0; }
.sec-h { font-size: 20px; font-weight: 700; letter-spacing: .38px; margin: 28px 4px 8px; }
.sec-f { font-size: 13px; color: var(--label2); line-height: 1.38; margin: 8px 16px 0; letter-spacing: -.08px; }

/* Nav bar */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(242, 242, 247, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); padding-top: env(safe-area-inset-top); }
.nav-in { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px; }
.nav-title { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.navbtn { color: var(--tint); font-size: 17px; display: inline-flex; align-items: center; gap: 2px; padding: 8px; justify-self: end; transition: opacity .2s; }
.navbtn.back { justify-self: start; padding-left: 0; }
.navbtn.back svg { width: 24px; height: 24px; }
.navbtn:active { opacity: .35; }
.navside { justify-self: end; font-size: 15px; color: var(--label2); padding-right: 8px; font-variant-numeric: tabular-nums; }
.prog { height: 3px; background: var(--fill); }
.prog i { display: block; height: 100%; background: var(--tint); border-radius: 0 3px 3px 0; transition: width .5s var(--ease); }

/* Inset grouped lists */
.group { background: var(--cell); border-radius: 12px; overflow: hidden; }
.group.pad { padding: 20px 16px 18px; }
.row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 11px 16px; background: var(--cell); text-align: left; font-size: 17px; text-decoration: none; transition: background .25s; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.group.icons .row + .row::before { left: 60px; }
button.row:active, a.row:active { background: var(--press); transition: none; }
.row.static { min-height: 46px; }
.row-t { flex: 1; min-width: 0; line-height: 1.25; }
.row-t small { display: block; font-size: 15px; color: var(--label2); margin-top: 2px; letter-spacing: -.24px; }
.val { color: var(--label2); white-space: nowrap; font-size: 16px; }
.row.tint-t { color: var(--tint); }
.row.centered { justify-content: center; }
.row.centered .row-t { flex: none; text-align: center; }
.ico { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(180deg, var(--tint-light), var(--tint)); color: #fff; display: grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; }
.chev { width: 14px; height: 14px; color: var(--label3); flex: none; }
.check { width: 22px; height: 22px; color: var(--tint); flex: none; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.row.on .check { opacity: 1; transform: none; }

/* Fields */
.field-row { padding: 0 16px; cursor: text; }
.field-row input { width: 100%; height: 52px; border: 0; outline: none; background: transparent; font-size: 17px; }
.field-row input::placeholder { color: var(--label3); }

/* iOS switch */
.switch { width: 51px; height: 31px; border-radius: 31px; background: rgba(120, 120, 128, .16); position: relative; flex: none; transition: background .3s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.row.on .switch { background: var(--tint); }
.row.on .switch::after { transform: translateX(20px); }

/* Slider */
.big-num { font-family: var(--round); font-variant-numeric: tabular-nums; font-size: 64px; font-weight: 700; letter-spacing: -1px; text-align: center; color: var(--tint); line-height: 1; margin: 4px 0 20px; }
.big-num small { font-family: var(--font); font-size: 20px; font-weight: 500; color: var(--label2); letter-spacing: 0; margin-left: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tint) var(--p), rgba(120, 120, 128, .2) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 .5px 4px rgba(0, 0, 0, .12), 0 6px 13px rgba(0, 0, 0, .12); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(120, 120, 128, .2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--tint); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 .5px 4px rgba(0, 0, 0, .12), 0 6px 13px rgba(0, 0, 0, .12); }
.range-ends { display: flex; justify-content: space-between; color: var(--label2); font-size: 13px; margin-top: 4px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; background: rgba(120, 120, 128, .12); border-radius: 12px; overflow: hidden; }
.stepper button { width: 84px; height: 50px; font-size: 30px; font-weight: 400; color: var(--label); transition: background .2s; }
.stepper button:active { background: rgba(120, 120, 128, .2); transition: none; }
.stepper button:disabled { color: var(--label3); }
.stepper i { width: .5px; height: 26px; background: var(--sep); }

/* Buttons */
.btn { height: 50px; padding: 0 24px; border-radius: 14px; background: var(--tint); color: #fff; font-size: 17px; font-weight: 600; transition: transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); opacity: .82; transition: none; }
.btn:disabled { opacity: .3; transform: none; }
.btn.full { width: 100%; }

/* Bottom dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; background: rgba(249, 249, 249, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid rgba(0, 0, 0, .16); padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px); }
.dock-in { max-width: 468px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.running { flex: 1; min-width: 0; }
.running span { display: block; font-size: 12px; color: var(--label2); font-weight: 500; }
.running b { display: inline-block; font-size: 21px; font-weight: 700; color: var(--tint); white-space: nowrap; transform-origin: left center; }
.running b.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* App icon */
.appicon { --s: 60px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .225); background: linear-gradient(160deg, var(--tint-light), var(--tint) 62%); color: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 calc(var(--s) * .06) calc(var(--s) * .18) rgba(0, 0, 0, .14); transition: background .4s var(--ease), transform .4s var(--ease); }
.appicon span { font-family: var(--round); font-weight: 700; font-size: calc(var(--s) * .4); letter-spacing: -.02em; }
.appicon.empty { background: rgba(120, 120, 128, .14); box-shadow: inset 0 0 0 1.5px rgba(120, 120, 128, .2); transform: scale(.94); }

/* Setup */
.setup { padding: calc(env(safe-area-inset-top) + 34px) 16px 0; }
.icon-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.icon-label { font-size: 13px; color: var(--label2); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup .sub { margin-bottom: 24px; }
.swatches { gap: 0; justify-content: space-between; padding: 14px 16px; }
.sw { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 #fff, 0 0 0 0 var(--c); transition: box-shadow .3s var(--ease), transform .2s; }
.sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--c); }
.sw:active { transform: scale(.9); }

/* Launch zoom */
.launch { position: fixed; z-index: 50; overflow: hidden; background: linear-gradient(160deg, var(--tint-light), var(--tint) 62%); display: grid; place-items: center; }
.launch-in { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-align: center; animation: rise .5s .22s var(--ease) both; }
.launch-in .appicon { background: #fff; color: var(--tint); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.launch-in b { font-size: 24px; font-weight: 700; padding: 0 24px; }
.launch-in span { font-size: 15px; opacity: .75; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* Home + lead headers */
.biz-h { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.biz-h .lt { margin: 0; font-size: 30px; line-height: 1.1; word-break: break-word; }
.biz-h .sub { margin: 2px 0 0; }
.lead-top { padding-top: calc(env(safe-area-inset-top) + 24px); }
.lead-top .biz-h .lt { font-size: 26px; }
.lead-top > .sub { margin-top: 14px; }

/* Quote sheet */
.sheet-top { position: sticky; top: 0; z-index: 5; }
.sheet-top .nav { position: relative; }
.grabber { position: absolute; z-index: 6; left: 50%; top: calc(env(safe-area-inset-top) + 5px); width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(60, 60, 67, .3); }
.price-hero { background: linear-gradient(160deg, var(--tint-light), var(--tint) 70%); color: #fff; border-radius: 20px; padding: 22px 18px 20px; text-align: center; margin-top: 10px; box-shadow: 0 10px 28px var(--tint-soft); }
.price-hero span { font-size: 15px; font-weight: 600; opacity: .8; }
.price-hero b { display: block; font-size: clamp(28px, 9.4vw, 42px); font-weight: 700; white-space: nowrap; margin: 6px 0 2px; }
.price-hero b em { font-style: normal; font-size: .5em; font-weight: 600; opacity: .7; margin: 0 .15em; vertical-align: .18em; }
.price-hero small { font-size: 13px; opacity: .75; }
.pill { display: inline-block; background: #FFCC00; color: #000; font-weight: 600; font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-right: 4px; letter-spacing: 0; }

/* Message preview */
.imsg { background: var(--cell); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.imsg-to { font-size: 15px; color: var(--label2); padding: 12px 16px; border-bottom: .5px solid var(--sep); }
.imsg-to b { color: var(--label); font-weight: 400; }
.imsg-body { padding: 10px 12px 16px; display: flex; flex-direction: column; align-items: flex-end; }
.imsg-label { align-self: center; font-size: 11px; color: var(--label2); margin-bottom: 8px; }
.bubble { position: relative; max-width: 84%; background: #0A84FF; color: #fff; font-size: 16px; line-height: 1.32; padding: 8px 13px; border-radius: 19px; border-bottom-right-radius: 6px; animation: rise .5s .25s var(--ease) both; }

/* Lead notification */
.notif { background: rgba(250, 250, 250, .8); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border-radius: 22px; padding: 12px 14px 13px; box-shadow: 0 10px 40px rgba(0, 0, 0, .16); }
.notif.static { background: var(--cell); box-shadow: none; border-radius: 16px; }
.notif-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.notif-top .appicon { --s: 22px !important; border-radius: 5px; box-shadow: none; }
.notif-top .appicon span { font-size: 9px; }
.notif-top b { font-size: 13px; font-weight: 400; color: var(--label2); letter-spacing: .1px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-top > span { font-size: 13px; color: var(--label2); }
.notif p { margin: 0; font-size: 15px; line-height: 1.33; letter-spacing: -.24px; }
.notif .notif-title { font-weight: 600; }
.notif .dim { color: var(--label2); }
.banner { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; max-width: 484px; margin: 0 auto; }
.lead-acts { margin-top: 12px; }

/* Booth */
.qr-card { background: var(--cell); border-radius: 22px; padding: 26px 20px 24px; text-align: center; margin-top: 8px; display: flex; flex-direction: column; align-items: center; }
.qr-card b { font-size: 22px; font-weight: 700; margin-top: 12px; letter-spacing: .35px; }
.qr-card p { color: var(--label2); margin: 4px 0 18px; font-size: 15px; }
.qr img, .qr canvas { width: 230px !important; height: 230px !important; display: block; }

.credit { text-align: center; font-size: 12px; color: var(--label2); margin: 36px 0 0; letter-spacing: 0; }
.credit a { color: var(--label2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
