/* farewrangler.com -- How it works (English): a scrolling presentation built the way the home page is.
   Loaded after home.css, so the scenes (.scene, .scene.alt), the receipt card (.eq), the drawn phone and
   its offer sheet (.handset, .ride-offer) and FareWrangler's badge (.fwb) are the home page's own; this
   file holds only what is particular to this page. The visuals are UI drawn in HTML and CSS in the app's
   dark colours (the panel, the phones, the badges), the home page's receipt card, or the app's real
   screenshots. Motion is the home page's reveal and nothing else: without JavaScript, or with reduced
   motion, every scene shows its finished state. */

.how{--pad:clamp(60px,8.4vw,108px)}
.how .scene{padding:var(--pad) 0}

/* ------------------------------------------------------------------ words beside a visual */

/* One row: the words centred on the visual's middle (align-items:center, and neither block carries an
   outer margin, so the two middles are the same line), and the pair centred in the page: the two columns
   are as wide as their content (text up to --txt, visual up to --vis; .fit sizes the visual to what is in
   it), so the free space falls equally on both sides. On a phone the words come first and the visual is
   centred under them. Visuals that are two phones wide (.two) need a wider column, so they sit beside the
   words from 1100px and under them below that. */
.how-pair{--txt:520px;--vis:448px;display:grid;gap:40px}
.how-pair > *{min-width:0}
.how-pair.two{--txt:440px;--vis:528px}
.how-pair.fit{--vis:max-content}
.how-vis{display:flex;flex-direction:column;align-items:center;width:100%;max-width:var(--vis);justify-self:center}
@media (min-width:960px){
  .how-pair:not(.two){grid-template-columns:minmax(0,var(--txt)) minmax(0,var(--vis));column-gap:clamp(48px,6vw,72px);
    justify-content:center;align-items:center}
  .how-pair:not(.two) > .how-vis{max-width:none;justify-self:stretch}
}
@media (min-width:1100px){
  .how-pair.two{grid-template-columns:minmax(0,var(--txt)) minmax(0,var(--vis));column-gap:clamp(48px,6vw,72px);
    justify-content:center;align-items:center}
  .how-pair.two > .how-vis{max-width:none;justify-self:stretch}
}

.how-text > :first-child,.how-head > :first-child{margin-top:0}
.how-text > :last-child,.how-head > :last-child,.how-after{margin-bottom:0}
.how .scene h2{font-size:clamp(32px,4.6vw,52px);line-height:1.05;max-width:none}
/* Beside a picture (two columns from 1100px) the same idea as the home page: "How FareWrangler" on one line. */
.how .scene h2{text-wrap:balance}
@media (min-width:1100px){.how-pair.two h2{font-size:clamp(32px,3.75vw,48px)}}
.how .scene h2::before{content:"";display:block;width:30px;height:3px;margin-bottom:18px;border-radius:3px;background:var(--link)}
.how-text p,.how-head p,.how-after{margin:0;font-size:clamp(17px,1.9vw,19.5px);line-height:1.6;color:var(--muted);max-width:50ch}
.how-text h2 + p,.how-head h2 + p{margin-top:20px}
.how-text p + p{margin-top:16px}
.how-text p b{color:var(--text);font-weight:600}

/* Stacked (phones and tablets): the words centre above the centred visual, as on the home page (owner,
   2026-10-28); beside the visual they stay left-aligned and centred on its middle. home.css centres every
   .scene .wrap at 959px and below, and the drawn phones, the cards and the saved picture are not words, so
   they keep their own alignment. */
@media (max-width:959px){
  .how-pair .how-text{text-align:center}
  .how-pair .how-text h2::before,.how-pair .how-text p,.how-hero .lede{margin-inline:auto}
}
@media (min-width:960px) and (max-width:1099px){
  .how-pair.two .how-text{text-align:center}
  .how-pair.two .how-text h2::before,.how-pair.two .how-text p{margin-inline:auto}
}
.how .handset,.rd-card{text-align:left}

/* ------------------------------------------------------------------ 1. hero */

.how-hero{padding:clamp(52px,7vw,92px) 0}
.how-hero h1{font-size:clamp(35px,5.2vw,60px);line-height:1.02;letter-spacing:-.035em}
.how-hero .lede{font-size:clamp(18px,1.9vw,21px);line-height:1.5;margin:22px 0 0;max-width:36ch}
.how-hero .lede b{color:var(--text);font-weight:600}

/* The home page's receipt card, without its top margin and 520px cap (the pair centres on it). Here the
   rows are words, so the type is smaller than the home page's numbers. */
.how .eq{margin:0;width:100%;max-width:none}
.how-hero .eq .n{font-size:clamp(26px,7.6vw,40px)}

/* ------------------------------------------------------------------ 2. the rule: the legs adding up */

.panel{width:100%;padding:clamp(18px,3vw,28px);border-radius:26px;background:#0d1119;border:1px solid rgba(127,140,160,.38);
  box-shadow:var(--shadow);color:#e7ebf2;text-align:left;
  font-family:Roboto,'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif}
.legs-fare{font-size:clamp(40px,8vw,54px);font-weight:700;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.legs-names{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 14px;margin-top:24px;font-size:14px;line-height:1.35}
.legs-names span{display:inline-flex;align-items:center;gap:7px}
.legs-names span::before{content:"";flex:none;width:14px;height:9px;border-radius:3px}
.legs-names .n1{color:#cbd5e1}
.legs-names .n1::before{border:2px dashed #94a3b8}
.legs-names .n2{margin-left:auto;color:#5eead4}
.legs-names .n2::before{background:#5eead4}
/* 6 : 18, the way the offer splits: the drive to the pickup (dashed grey, like the map's route to it) and
   the trip (teal, like the map's route). The gap is taken off before the fr split, so the ratio stays exact. */
.legs-bar{display:grid;grid-template-columns:6fr 18fr;gap:4px;margin-top:10px}
.legs-bar i{display:block;height:36px;border-radius:12px}
.legs-bar .pick{border:2px dashed #94a3b8;background:rgba(148,163,184,.12)}
.legs-bar .trip{background:#5eead4}
.legs-total{margin-top:14px;text-align:center}
.legs-total .brace{position:relative;display:block;height:12px;border:2px solid #94a3b8;border-top:0;border-radius:0 0 10px 10px}
.legs-total .brace::after{content:"";position:absolute;left:50%;top:100%;height:8px;margin-left:-1px;border-left:2px solid #94a3b8}
.legs-total .t{display:block;margin-top:12px;font-size:17px;font-weight:700}

/* ------------------------------------------------------------------ 3. a worked example */

.how-head{max-width:720px;margin:0 auto clamp(40px,5vw,60px);text-align:center}
.how-head h2::before{margin-inline:auto}
.how-head p{margin-inline:auto}
.how-after{margin:clamp(36px,5vw,56px) auto 0;text-align:center}
/* The phone and the maths beside it, each centred on the other's middle; they wrap and stack when there is
   no room for both. */
.how-demo{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:36px clamp(36px,5vw,64px)}
/* The maths: the receipt card again, two stacked formulas in one. */
.how .maths{width:min(344px,100%);padding:4px 22px 10px}
.maths .eq-block{padding:10px 0 2px}
.maths .eq-block + .eq-block{margin-top:8px;padding-top:14px;border-top:1px solid var(--line)}
.maths .eq-title{margin:0 0 2px;font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted)}
.maths .row{grid-template-columns:32px 1fr;padding:9px 0}
.maths .op{font-size:clamp(22px,5.6vw,26px)}
.maths .n{font-size:clamp(24px,6.4vw,29px)}
.maths .l{margin-top:4px;font-size:14px;line-height:1.3}
.maths .res .n{color:var(--text)}
.maths .res.fin .n{color:var(--good)}

/* A drawn phone's figure: the phone, and in cycle mode the phone switch under it. */
.phone-fig{flex-direction:column;align-items:center}

/* The phones on this page are drawn finished. The home page's script fades its own badge in
   (.js .screen .fwb, hidden until .show), and these three carry no .show. */
.js .how .screen .fwb{opacity:1;transform:translate(-50%,0)}

/* ------------------------------------------------------------------ 4. green and red */

.gr{position:relative;display:grid;gap:26px;justify-items:center;width:100%}
/* Each row's two drawings, Android's badge and the iPhone's banner, share one cell (.pv-keep), so the verdicts never
   move when the drawings flip. The banner is 340px where there is room for it. */
/* On a PC the shorter banner shares the badge's room: stacked, it sits on its verdict (top-aligned, the verdict sat
   nearer the next drawing: found 11-03, round 2); side by side it is centred on it (below). */
.gr-draw{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:end;justify-self:stretch;min-width:0}
.gr-draw > *{grid-area:1 / 1}
.gr .ib{width:340px;max-width:100%}
.gr .pv-switch{grid-column:1 / -1;margin:0 auto}
.gr-target{margin:0;display:inline-flex;align-items:baseline;gap:12px;padding:12px 22px;border-radius:999px;
  background:var(--surface2);font-weight:700;font-size:17px}
.gr-target b{font-family:var(--mono);font-weight:600;font-size:22px;font-variant-numeric:tabular-nums}
.gr-row{display:grid;justify-items:center;gap:10px;width:100%}
/* centred on its badge: home.css sets .p-verdict{align-self:end} for the home page's picks (found 10-28, captions sat on the badges' bottom edge) */
.gr-row .p-verdict{margin:0;align-self:center}
.gr-row.no .p-verdict::before{background:var(--bad)}
/* Beside each other the two badges and their verdicts share two columns, so the verdicts line up. */
@media (min-width:520px){
  .gr{grid-template-columns:minmax(0,max-content) minmax(0,max-content);justify-content:start;justify-items:start;align-items:center;column-gap:22px}
  /* The pill heads the drawings' column, centred over them like the switch under them (spanning both columns from the
     left, it sat 60 px left of Android's centred badge on a PC: found 11-03, round 2). The columns are set, so each
     drawing still starts a row under it. */
  .gr-target{grid-column:1;justify-self:center}
  .gr-row{display:contents}
  .gr-row .p-verdict{grid-column:2}
  /* Centred in the cell the banner sizes: start-aligned, Android's narrower badge sat 140 px from its verdict on a PC
     (found 11-03). The switch is centred under the drawings. */
  .gr-draw{grid-column:1;justify-items:center;align-items:center}
  .gr .pv-switch{grid-column:1;margin-inline:auto}
}

/* ------------------------------------------------------------------ 6 and 8. phones side by side */

/* The app's screenshots and the drawn alarm, framed the way the home page frames its gallery. Two phones
   side by side where each can stay readable (the drawn alarm scales its type with its width), one under
   the other on a phone. */
.how-shots{display:grid;grid-template-columns:repeat(2,minmax(0,250px));justify-content:center;align-items:start;gap:32px 28px;width:100%}
.how-shots figure,.reads figure{position:relative;margin:0;min-width:0}
.how-shots img,.how-shots .mock{display:block;width:100%;height:auto;border-radius:24px;border:1px solid var(--line);
  background:var(--surface2);box-shadow:var(--shadow)}
.how-shots figcaption,.reads figcaption{margin-top:16px;text-align:center;line-height:1.35}
.how-shots figcaption b,.reads figcaption b{display:block;font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.01em}
.how-shots figcaption span{display:block;margin-top:2px;font-size:15px;line-height:1.4;color:var(--muted);text-wrap:balance}
/* Both phones' lines show on a PC and without JS: a little air so they read as two statements. */
.os-cycle .how-shots figcaption .only-ios,html:not(.js) .how-shots figcaption .only-ios{margin-top:6px}
@media (max-width:599px){.how-shots{grid-template-columns:minmax(0,250px)}}
/* Reservations: the drawn alarm (Android) and the drawn alert (iPhone) each stand alone, centred. */
.how-shots.res{grid-template-columns:minmax(0,250px)}
/* An iPhone visitor's first paragraph follows Android's hidden ones: give it a first paragraph's space. */
.os-ios .how-text .only-android + .only-ios{margin-top:20px}
/* Beside the words, a caption hangs under its phone without taking part in the pair's height, so the words
   are centred on the phones themselves; the scene's bottom padding makes room for it. */
@media (min-width:1100px){
  .how-shots figcaption,.reads figcaption{position:absolute;left:-24px;right:-24px;top:100%}
  .how .scene.hangs{padding-bottom:calc(var(--pad) + 44px)}
  .how .scene.hangs-tall{padding-bottom:calc(var(--pad) + 92px)}
}

/* ------------------------------------------------------------------ 7. how it reads the card */

/* On the left the whole screen during a call, as the owner met it: status bar, the green call bar, the
   driver app's map and its offer sheet with the badge on top. On the right what is kept (app 1.2.3k on): the
   whole driver-app screen as saved, the map and the offer sheet and nothing of ours on it, in a rounded
   picture on a dark card with a line under it. On Android 14+ that is the driver app's own window, so no status
   bar, call or badge; on the iPhone it is the whole frame with a strip across the top painted one plain colour
   (.rd-strip, 45% of the width deep), which covers the status bar, the call and the banner. */
.reads{display:grid;grid-template-columns:repeat(2,minmax(0,238px));justify-content:center;align-items:end;gap:36px 52px;width:100%}
.reads .handset{width:100%}
.reads .screen .fwb{top:21%}
.sbar{position:absolute;top:0;left:0;right:0;z-index:3;height:35px;display:flex;align-items:center;justify-content:space-between;
  padding:0 24px 0 26px;font:500 11.5px/1 Roboto,'Segoe UI',system-ui,sans-serif;color:#e7ebf2;font-variant-numeric:tabular-nums}
.sbar .ic{display:inline-flex;align-items:center;gap:5px}
.sbar svg{display:block;fill:currentColor}
.callbar{position:absolute;top:35px;left:0;right:0;z-index:3;height:30px;display:flex;align-items:center;gap:6px;padding:0 12px;
  background:#16803f;color:#fff;font:400 11.5px/1 Roboto,'Segoe UI',system-ui,sans-serif;white-space:nowrap}
.callbar svg{flex:none;width:14px;height:14px;fill:currentColor}
.callbar b{font-weight:700}
.callbar .num{opacity:.92}
.callbar .t{margin-left:auto;font-weight:500;font-variant-numeric:tabular-nums}
/* The iPhone during a call, in iOS points (--spt): the time and the icons in the ears beside the Dynamic Island, and the
   call in the island itself, grown wide over the camera (a green phone and the call's time, a green waveform). */
.isbar{position:absolute;left:0;right:0;top:calc(11*var(--spt));z-index:6;height:calc(37*var(--spt));display:grid;
  grid-template-columns:1fr calc(230*var(--spt)) 1fr;align-items:center;color:#fff;
  font:600 calc(17*var(--spt))/1 -apple-system,BlinkMacSystemFont,'SF Pro Text',Inter,'Helvetica Neue',Arial,sans-serif;font-variant-numeric:tabular-nums}
.isbar .t{justify-self:center}
.isbar .ic{justify-self:center;display:flex;align-items:center;gap:calc(4*var(--spt))}
.isbar svg{display:block;height:calc(11*var(--spt));width:auto;fill:#fff}
.icall{position:absolute;left:50%;top:calc(11*var(--spt));z-index:6;width:calc(230*var(--spt));height:calc(37*var(--spt));
  margin-left:calc(-115*var(--spt));display:flex;align-items:center;justify-content:space-between;padding:0 calc(15*var(--spt));
  border-radius:calc(18.5*var(--spt));background:#000;color:#30d158;
  font:600 calc(15*var(--spt))/1 -apple-system,BlinkMacSystemFont,'SF Pro Text',Inter,'Helvetica Neue',Arial,sans-serif;font-variant-numeric:tabular-nums}
.icall .l{display:flex;align-items:center;gap:calc(6*var(--spt))}
.icall svg{display:block;width:calc(15*var(--spt));height:calc(15*var(--spt));fill:currentColor}
.icall .wave{display:flex;align-items:center;gap:calc(2.5*var(--spt));height:calc(17*var(--spt))}
.icall .wave i{width:calc(3*var(--spt));height:40%;border-radius:calc(1.5*var(--spt));background:currentColor}
.icall .wave i:nth-child(2){height:75%}
.icall .wave i:nth-child(3){height:100%}
.icall .wave i:nth-child(4){height:60%}
.icall .wave i:nth-child(5){height:30%}

.rd-card{position:relative;justify-self:center;width:100%;max-width:226px;padding:12px 12px 14px;border-radius:20px;background:#141b26;border:1px solid rgba(127,140,160,.38);
  box-shadow:var(--shadow);color:#e7ebf2;font-family:Roboto,'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif}
/* The picture is the shape of the small phone's screen (about 214:468); the sheet sits at its foot as on the phone. */
.rd-pic{position:relative;overflow:hidden;aspect-ratio:214/468;border-radius:14px;background:#161c28;border:1px solid #232b3a;
  container-type:inline-size}
.rd-map{position:absolute;inset:0;width:100%;height:100%;display:block}
.rd-strip{position:absolute;top:0;left:0;right:0;height:45cqw;background:#0d1119}
.rd-pic .ride-offer{left:0;right:0;bottom:0;z-index:2;transform:none;padding:12px 12px 13px;border-radius:20px 20px 0 0}
.rd-pic .o-fare{font-size:29px;margin-top:5px}
.rd-pic .ro-legs{margin-top:6px}
.rd-pic .o-row{padding:3px 0;gap:10px}
.rd-pic .o-row b{font-size:12.5px}
.rd-pic .o-row span{font-size:11px}
.rd-pic .ro-accept{margin-top:8px;padding:9px;font-size:14px;border-radius:12px}
.rd-meta{margin:10px 2px 0;font-size:12px;line-height:1.3;color:#9aa3b2;font-variant-numeric:tabular-nums}
/* The arrow from the screen to the picture, drawn in the gap to the left of the card and centred on it. */
.rd-arrow{position:absolute;right:calc(100% + 11px);top:50%;width:30px;height:16px;margin-top:-8px;color:var(--muted)}
@media (max-width:599px){
  .reads{grid-template-columns:minmax(0,250px)}
  .rd-arrow{display:none}
}

/* ------------------------------------------------------------------ closing */

.how-close{padding:clamp(52px,7vw,84px) 0;text-align:center}
.how-close p{margin:0}
.how-close .more{margin:0;font-family:var(--display);font-weight:700;font-size:clamp(20px,2.6vw,26px);letter-spacing:-.01em}
