/* farewrangler.com: the phone, shared by the home page and How it works. A driver app's offer screen
   (map, route, offer sheet with its Accept button) drawn generic on purpose -- it reads as "a rideshare
   offer" without being Uber's, Lyft's or DoorDash's screen -- with FareWrangler's rate over it, drawn the
   way each app draws it: on Android the badge (OfferAccessibilityService.rebuildOverlay: size M, fixed
   colours, the bar of BadgeBar.kt), on the iPhone the notification banner (ios/Shared/RateBanner.swift,
   OfferBar.swift), both checked against FareWrangler launch/walk 18dc14b0. */

/* ------------------------------------------------------------------ which phone */

/* The head script adds os-ios, os-android or os-cycle (a computer, a tablet, anything else; ?os= overrides it). A phone
   sees only its own drawings; in cycle mode each drawing (a unit, data-pv in the HTML) shows Android, then the iPhone,
   and home.js flips data-pv. Without the script every page shows Android's drawings, and an iPhone (WebKit on iOS, the
   engine of every iPhone browser) its own. Words for one phone (.only-android, .only-ios) show in cycle mode and without
   the script. !important because later rules (.gallery .mock, .gallery figcaption span) set display. .pv-keep: both
   versions share one grid cell and the hidden one keeps its room, so what sits beside it never moves. */
.os-ios .pv-android,.os-android .pv-ios,.os-ios .only-android,.os-android .only-ios{display:none!important}
.os-cycle [data-pv=android] .pv-ios:not(.pv-keep),.os-cycle [data-pv=ios] .pv-android:not(.pv-keep){display:none!important}
.os-cycle [data-pv=android] .pv-ios.pv-keep,.os-cycle [data-pv=ios] .pv-android.pv-keep{visibility:hidden}
@supports not (-webkit-touch-callout:none){html:not(.js) .pv-ios{display:none!important}}
@supports (-webkit-touch-callout:none){html:not(.js) .pv-android{display:none!important}}
/* What fades at a flip (.pv-out on the unit, or on the hero's screen itself). */
.js .pv-swap{transition:opacity .32s ease}
.js .pv-out .pv-swap,.js .pv-swap.pv-out{opacity:0}

/* In cycle mode, under each drawing: which phone is on screen, and a tap holds every drawing on that phone (a tap on
   the held one lets them cycle again). home.js fills it; like styles.css .seg, smaller. */
.pv-switch{display:flex;width:max-content;max-width:100%;gap:3px;margin:14px auto 0;padding:3px;border-radius:11px;
  background:var(--surface2);border:1px solid var(--line);text-shadow:none}
.pv-switch[hidden]{display:none!important}
.pv-switch button{font:700 13px/1 var(--display);color:var(--muted);background:none;border:0;border-radius:8px;
  padding:0 14px;min-height:36px;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.pv-switch button.on{background:rgba(255,255,255,.12)}
.pv-switch button[aria-pressed="true"]{background:var(--brand);color:var(--on-brand)}
.pv-switch button:focus-visible{outline:2px solid var(--link);outline-offset:2px}

/* ------------------------------------------------------------------ the handset */

/* A thin, muted aluminium rim sets the phone apart from the dark page background (owner, 2026-10-28): a 2px border
   painted with a soft metal gradient under the body's own gradient. */
.handset{position:relative;width:clamp(252px,72vw,292px);aspect-ratio:9/18.6;padding:10px;border-radius:46px;
  border:2px solid transparent;
  background:linear-gradient(160deg,#323c5c,#0c111e 60%) padding-box,
    linear-gradient(145deg,#a3abbb 0%,#5d6578 22%,#8f98aa 48%,#4a5163 74%,#9aa2b2 100%) border-box;
  box-shadow:0 24px 48px rgba(7,11,22,.28),inset 0 0 0 1px rgba(255,255,255,.08)}
.stage .handset{box-shadow:0 44px 90px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.08)}
.handset.sm{width:clamp(220px,64vw,250px)}
/* --spt is one iOS point of a 390 pt wide iPhone screen, for the iPhone's pieces (the island, the banner). */
.screen{position:relative;height:100%;overflow:hidden;border-radius:37px;background:#161c28;
  container-type:inline-size;--spt:calc(100cqw/390)}
/* The camera: Android's punch hole; the iPhone's Dynamic Island (126 x 37 pt, 11 pt down: 86 x 25 px on the home page's
   268 px screen). */
.screen::before{content:"";position:absolute;top:11px;left:50%;width:12px;height:12px;margin-left:-6px;
  border-radius:50%;background:#04060b;z-index:5}
.os-ios .screen::before,.os-cycle [data-pv=ios] .screen::before{top:calc(11*var(--spt));width:calc(126*var(--spt));
  height:calc(37*var(--spt));margin-left:calc(-63*var(--spt));border-radius:calc(18.5*var(--spt));background:#000}
@supports (-webkit-touch-callout:none){
  html:not(.js) .screen::before{top:calc(11*var(--spt));width:calc(126*var(--spt));height:calc(37*var(--spt));
    margin-left:calc(-63*var(--spt));border-radius:calc(18.5*var(--spt));background:#000}
}
.screen .map{position:absolute;inset:0;width:100%;height:100%;display:block}
.map .route{stroke-dasharray:1;stroke-dashoffset:0}
.js .screen.drawing .map .route{animation:fw-route 1.1s ease-out both}
@keyframes fw-route{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

/* The driver app's offer sheet. Neutral slate and teal: no platform's colours. */
.ride-offer{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px 16px 18px;border-radius:24px 24px 0 0;
  background:#10141b;color:#f1f5f9;box-shadow:0 -12px 36px rgba(0,0,0,.5);overflow:hidden;
  font-family:Roboto,'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  transform:translateY(105%);transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.ride-offer.show{transform:none}
.ride-offer::before{content:"";display:block;width:36px;height:4px;margin:-6px auto 10px;border-radius:4px;background:#3a4252}
.ro-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ro-pill{padding:4px 10px;border-radius:999px;background:#1f2633;font-size:12px;font-weight:700;letter-spacing:.02em;color:#cbd5e1}
.ro-rating{font-size:12.5px;font-weight:500;color:#cbd5e1}
.o-fare{font-family:Roboto,'Segoe UI',system-ui,sans-serif;font-weight:700;font-size:38px;line-height:1.05;margin-top:8px;
  letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.ro-legs{position:relative;margin-top:10px}
.ro-legs::before{content:"";position:absolute;left:4px;top:14px;bottom:18px;border-left:2px dotted #4b5567}
.o-row{position:relative;display:flex;align-items:flex-start;gap:12px;padding:5px 0}
.o-row i{flex:none;width:10px;height:10px;margin-top:4px;border-radius:50%;background:#f1f5f9}
.o-row i.sq{border-radius:2px}
.o-row b{display:block;font-size:14px;font-weight:700}
.o-row span{display:block;font-size:12.5px;color:#94a3b8}
.ro-accept{position:relative;overflow:hidden;margin-top:12px;padding:13px;border-radius:14px;background:#14b8a6;
  color:#042f2b;text-align:center;font-weight:700;font-size:16px}
.ro-accept::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.22);transform-origin:right;transform:scaleX(0)}
.js .ride-offer.show .ro-accept::after{animation:fw-count 9s linear both}
@keyframes fw-count{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.o-scan{position:absolute;inset:0;pointer-events:none}
.o-scan::after{content:"";position:absolute;left:0;right:0;top:-45%;height:45%;
  background:linear-gradient(rgba(127,156,245,0),rgba(127,156,245,.2),rgba(127,156,245,0))}
.ride-offer.scan .o-scan::after{animation:fw-scan .75s ease-in-out}
@keyframes fw-scan{to{top:100%}}

/* ------------------------------------------------------------------ Android: the badge */

/* FareWrangler's badge: one fixed look in either theme, size M (rate 34sp, detail 13sp, padding 14dp), every size scaled
   by --u. The app's card is the widest row + 2 x 19.6 + 12dp wide and its bar is the widest row's width, centred, so the
   sides are 25.6. Rows: the name, the platform, the rate (with the glowing money bag on a great offer, to the rate's
   right, the two centred together: GreatOffer.kt withMoneyBag), the bar, the details (fare, $/mi, minutes: the app's
   defaults since 10-29, BadgeDetails). */
.fwb{--u:1px;display:inline-flex;flex-direction:column;align-items:center;
  padding:calc(14*var(--u)) calc(25.6*var(--u));border-radius:calc(22*var(--u));
  background:rgba(20,20,20,.94);border:calc(2.5*var(--u)) solid #7f9cf5;color:#fff;white-space:nowrap;
  font-family:Roboto,'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;line-height:1.28;
  box-shadow:0 calc(10*var(--u)) calc(30*var(--u)) rgba(0,0,0,.45)}
.fwb .w{font-size:calc(9.1*var(--u));font-weight:700;letter-spacing:.3em;margin-right:-.3em;color:#7f9cf5}
.fwb .p{font-size:calc(10.66*var(--u));font-weight:500;letter-spacing:.16em;margin-right:-.16em;color:#9ca3af}
.fwb .rr{display:flex;align-items:center;justify-content:center;gap:calc(6.12*var(--u))}
.fwb .r{font-size:calc(34*var(--u));font-weight:700;line-height:1.2;color:#e2e8f0;font-variant-numeric:tabular-nums;
  transition:color .25s ease}
.fwb .bag{display:none;flex:none;width:calc(32.3*var(--u));height:calc(32.3*var(--u));max-width:none;border:0;
  border-radius:0;background:none;box-shadow:none}
.fwb.great .bag{display:block}
.fwb .d{font-size:calc(13*var(--u));color:#cbd5e1;white-space:pre}
.fwb.go .r{color:#34d399}
.fwb.no .r{color:#f87171}
/* The bar (BadgeBar.kt): 6 squares a side of a white middle mark, lit from the middle out, a step for every $2 above
   the target (green, right) or below it (red, left), at least one and at most six (OfferBar.kt). */
.fwb .bar{display:flex;align-items:center;align-self:stretch;gap:calc(1.43*var(--u));height:calc(9.75*var(--u));
  margin:calc(2.6*var(--u)) 0 calc(3.25*var(--u))}
.fwb .bar i{flex:1;height:calc(6.5*var(--u));border-radius:calc(1.95*var(--u));background:#3f3f46;
  transition:background-color .18s ease}
.fwb .bar b{flex:none;width:calc(1.95*var(--u));height:100%;border-radius:calc(.975*var(--u));background:#fff}
.fwb .bar i.on{background:#f87171}
.fwb .bar b ~ i.on{background:#34d399}
.fwb.ping{animation:fw-ping-go .9s ease-out}
.fwb.no.ping{animation-name:fw-ping-no}
@keyframes fw-ping-go{from{box-shadow:0 0 0 0 rgba(52,211,153,.6)}to{box-shadow:0 0 0 22px rgba(52,211,153,0)}}
@keyframes fw-ping-no{from{box-shadow:0 0 0 0 rgba(248,113,113,.6)}to{box-shadow:0 0 0 22px rgba(248,113,113,0)}}
.screen .fwb{position:absolute;left:50%;top:13%;z-index:2;--u:.84px;transform:translateX(-50%)}
.js .screen .fwb{opacity:0;transform:translate(-50%,-8px) scale(.9);
  transition:opacity .28s ease,transform .45s cubic-bezier(.2,1.5,.4,1)}
.js .screen .fwb.show{opacity:1;transform:translate(-50%,0) scale(1)}
@media (max-width:420px){.screen .fwb{--u:.74px}}
.handset.sm .screen .fwb{--u:.7px}
.handset.sm .ride-offer{padding:12px 12px 13px;border-radius:20px 20px 0 0}
.handset.sm .o-fare{font-size:29px;margin-top:5px}
.handset.sm .ro-legs{margin-top:6px}
.handset.sm .o-row{padding:3px 0;gap:10px}
.handset.sm .o-row b{font-size:12.5px}
.handset.sm .o-row span{font-size:11px}
.handset.sm .ro-accept{margin-top:8px;padding:9px;font-size:14px;border-radius:12px}
.handset.sm .ro-note{font-size:11px}
.ro-note{margin-top:3px;font-size:12.5px;font-weight:600;color:#5eead4}

/* ------------------------------------------------------------------ iPhone: the banner */

/* The rate's notification banner, in iOS points of its own width (372 pt: a 390 pt screen less 9 pt a side): .ib is the
   size container, .ib-in the banner (a container's own padding cannot use its own cqw). Spans and images only, so it
   can sit in a button. Title "rate · platform"; then the bar, centred in the 298 pt text area; then the details spread
   edge to edge, without dots (OfferBar.body). A great offer carries the money-bag picture on the right (shown about
   40 pt), with the bar fitted beside it. The app draws the squares as emoji; they are drawn here so every browser
   shows Apple-like squares (black track: the drawn phones are in dark mode). A box sized by its container has no width
   of its own: every .ib gets a width where it is used. */
.ib{display:block;container-type:inline-size;text-align:left;white-space:normal;text-shadow:none}
.ib-in{--pt:calc(100cqw/372);display:grid;grid-template-columns:calc(38*var(--pt)) minmax(0,1fr) auto;
  grid-template-areas:"icon title time" "icon bar bar" "icon det det";column-gap:calc(10*var(--pt));align-items:center;
  padding:calc(12*var(--pt)) calc(12*var(--pt)) calc(12*var(--pt)) calc(14*var(--pt));border-radius:calc(22*var(--pt));
  background:rgba(30,30,32,.78);-webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);
  box-shadow:0 calc(8*var(--pt)) calc(26*var(--pt)) rgba(0,0,0,.35);color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',Inter,'Helvetica Neue',Arial,sans-serif;
  font-size:calc(15*var(--pt));line-height:calc(20*var(--pt));font-weight:400;letter-spacing:-.01em}
.ib.great .ib-in{grid-template-areas:"icon title time" "icon bar bag" "icon det bag"}
.ib .ib-icon{grid-area:icon;align-self:center;display:block;width:calc(38*var(--pt));height:calc(38*var(--pt));
  max-width:none;border:0;border-radius:calc(8.5*var(--pt));background:none;box-shadow:none}
.ib-title{grid-area:title;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ib-time{grid-area:time;justify-self:end;font-size:calc(13*var(--pt));color:rgba(235,235,245,.6);white-space:nowrap}
.ib-bar{grid-area:bar;justify-self:center;display:flex;align-items:center;gap:calc(4*var(--pt));height:calc(22*var(--pt))}
.ib-bar i{flex:none;width:calc(17*var(--pt));height:calc(17*var(--pt));border-radius:calc(4*var(--pt));
  background:linear-gradient(#4b4b50,#1d1d20);box-shadow:inset 0 0 0 calc(.5*var(--pt)) rgba(255,255,255,.14)}
.ib-bar i.on{background:linear-gradient(#ff6b5e,#e0342b)}
.ib-bar b ~ i.on{background:linear-gradient(#6ee07a,#2fb14c)}
.ib-bar b{flex:none;width:calc(2.4*var(--pt));height:calc(20*var(--pt));border-radius:calc(1.2*var(--pt));background:#fff}
.ib.great .ib-bar{gap:calc(3.77*var(--pt))}
.ib.great .ib-bar i{width:calc(16*var(--pt));height:calc(16*var(--pt))}
.ib .ib-bag{grid-area:bag;align-self:center;justify-self:end;display:none;width:calc(40*var(--pt));height:calc(40*var(--pt));
  max-width:none;border:0;border-radius:0;background:none;box-shadow:none}
.ib.great .ib-bag{display:block}
.ib-det{grid-area:det;display:flex;justify-content:space-between;gap:calc(8*var(--pt));padding-right:calc(6*var(--pt));
  white-space:nowrap;font-variant-numeric:tabular-nums}
/* On a drawn iPhone: 9 pt in from each side, its top 8 pt under the island (11 + 37 pt; at 52 pt the 4 pt gap read as
   cramped on the small phones, 11-03). */
.screen .ib{position:absolute;left:calc(9*var(--spt));right:calc(9*var(--spt));top:calc(56*var(--spt));z-index:4}

@media (prefers-reduced-motion:reduce){
  .ride-offer,.screen .fwb,.fwb .r,.fwb .bar i,.js .pv-swap,.pv-switch button{transition:none}
  .ride-offer.scan .o-scan::after,.fwb.ping,.js .screen.drawing .map .route,.js .ride-offer.show .ro-accept::after{animation:none}
}
