/* getclassicpro.com phone screens, drawn in HTML so they can play.
   Every size is in cqw (percent of the phone's width), so a screen scales with its phone.
   The resting state IS the final state: with reduced motion or no JS you see the finished screen.
   Motion: one easing (--ease), entrances only, nothing loops. Demo data throughout. */

.phone, .anim-shot { container-type: inline-size; }
.anim-screen { display: flex; flex-direction: column; background: #f4f6f5; color: #16241c; font-family: var(--sans);
  font-size: 3.6cqw; line-height: 1.3; text-align: left; overflow: hidden; }
.anim-shot { position: relative; aspect-ratio: 402 / 874; overflow: hidden; background: #f4f6f5; }
.anim-shot .screen { opacity: 1; transform: none; }

/* shared app chrome */
.as-bar { display: flex; align-items: center; gap: 2.4cqw; padding: 4.5cqw 5cqw; background: #fff; border-bottom: 1px solid #e3e8e5; font-size: 4.4cqw; flex: none; }
.as-bar b { font-weight: 700; }
.as-back { font-size: 6.4cqw; line-height: .8; color: #1f7a45; font-weight: 700; }
.as-logo { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 1.8cqw; background: #1f7a45; color: #fff; font-weight: 800; font-size: 4.4cqw; }
.as-chip { font-size: 2.9cqw; font-weight: 700; color: #1f7a45; background: #e3f2e8; border-radius: 99px; padding: .7cqw 2.4cqw; }
.as-chip.push { margin-left: auto; }
.as-btn { background: #1f7a45; color: #fff; font-weight: 700; text-align: center; border-radius: 99px; padding: 3.6cqw; font-size: 3.8cqw; }

/* ---------- 1. Today's stops ---------- */
.ts-head { padding: 5cqw 5cqw 4cqw; background: #fff; border-bottom: 1px solid #e3e8e5; }
.ts-title { display: flex; align-items: baseline; justify-content: space-between; }
.ts-title b { font-size: 7cqw; font-weight: 800; letter-spacing: -.01em; }
.ts-title span { color: #6a7a70; font-size: 3.3cqw; }
.ts-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 3.6cqw; }
.ts-sum div { background: #f4f6f5; border-radius: 3cqw; padding: 2.6cqw 3cqw; }
.ts-sum b { display: block; font-size: 5cqw; font-weight: 800; font-variant-numeric: tabular-nums; }
.ts-sum div > span { color: #6a7a70; font-size: 2.9cqw; }
.ts-track { height: 1.8cqw; background: #e3e8e5; border-radius: 99px; margin-top: 3.4cqw; overflow: hidden; }
.ts-track i { display: block; height: 100%; width: 37.5%; background: #1f7a45; border-radius: 99px; }
.ts-list { list-style: none; margin: 0; padding: 3.6cqw 4.5cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.ts-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw; padding: 3cqw 3.4cqw;
  background: #fff; border: 1px solid #e3e8e5; border-radius: 3.6cqw; }
.ts-list time { display: grid; place-items: center; min-width: 12cqw; padding: 1.8cqw 1cqw; background: #f1f4f2; border-radius: 2.4cqw;
  font-weight: 800; font-size: 3.6cqw; line-height: 1; }
.ts-list time small { font-size: 2.3cqw; font-weight: 700; color: #6a7a70; margin-top: .6cqw; }
.ts-list li div { display: flex; flex-direction: column; gap: .8cqw; min-width: 0; }
.ts-list li b { font-size: 3.8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-list em { font-style: normal; align-self: start; color: #1f7a45; background: #e3f2e8; border-radius: 99px; padding: .4cqw 2cqw; font-size: 2.7cqw; font-weight: 600; }
.ts-price { font-weight: 800; font-size: 3.8cqw; font-variant-numeric: tabular-nums; text-align: right; }
.ts-price small { display: block; font-size: 2.6cqw; font-weight: 700; margin-top: .6cqw; }
.ts-list li.done { background: #fafbfa; }
.ts-list li.done b, .ts-list li.done .ts-price { color: #7d8b82; }
.ts-list li.done .ts-price small { color: #1f7a45; }
.ts-list li.next { border-color: #1f7a45; box-shadow: 0 0 0 .5cqw #e3f2e8; }
.ts-list li.next .ts-price small { color: #fff; background: #1f7a45; border-radius: 99px; padding: .3cqw 1.8cqw; }

/* ---------- 2. Route ---------- */
.rs-map { position: relative; flex: 1; min-height: 0; }
.rs-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rs-land { fill: #e9efe9; }
.rs-park { fill: #cfe5d3; }
.rs-water { fill: #cfe0ec; }
.rs-road { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; }
.rs-hwy { stroke: #f3e2ad; stroke-width: 4.2; fill: none; stroke-linecap: round; }
.rs-route { stroke: #1f7a45; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rs-route-glow { stroke: #1f7a45; stroke-opacity: .18; stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rs-you circle:first-child { fill: #2f7de1; fill-opacity: .2; }
.rs-you circle:last-child { fill: #2f7de1; stroke: #fff; stroke-width: 1; }
.rs-pin circle { fill: #1f7a45; stroke: #fff; stroke-width: 1.2; }
.rs-pin text { fill: #fff; font: 800 4.6px/1 var(--sans); text-anchor: middle; }
.rs-pin { transform-box: fill-box; transform-origin: center; }
.rs-sheet { flex: none; padding: 4.5cqw 5cqw 5cqw; background: #fff; border-radius: 5cqw 5cqw 0 0; margin-top: -4cqw; position: relative;
  box-shadow: 0 -1cqw 5cqw rgb(0 0 0 / .08); display: flex; flex-direction: column; gap: 3.4cqw; }
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.rs-stats b { display: block; font-size: 6.4cqw; font-weight: 800; font-variant-numeric: tabular-nums; }
.rs-stats span { color: #6a7a70; font-size: 2.9cqw; }
.rs-stats div + div { border-left: 1px solid #e3e8e5; }
.rs-next { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 3.4cqw; background: #f4f6f5; border-radius: 3.4cqw; }
.rs-num { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%; background: #1f7a45; color: #fff; font-weight: 800; font-size: 3.6cqw; flex: none; }
.rs-next div { display: flex; flex-direction: column; }
.rs-next small { color: #6a7a70; font-size: 3cqw; }

/* ---------- 3. Finish the job, bill it ---------- */
.js-body { flex: 1; display: flex; flex-direction: column; gap: 3.4cqw; padding: 4.5cqw; min-height: 0; }
.js-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; padding: 4cqw; background: #fff; border: 1px solid #e3e8e5; border-radius: 4cqw; }
.js-head div { display: flex; flex-direction: column; gap: .8cqw; }
.js-head b { font-size: 4.6cqw; }
.js-head span { color: #6a7a70; font-size: 3.3cqw; }
.js-head em { font-style: normal; align-self: start; color: #1f7a45; background: #e3f2e8; border-radius: 99px; padding: .5cqw 2.2cqw; font-size: 2.9cqw; font-weight: 600; }
.js-head strong { font-size: 5.2cqw; font-weight: 800; }
.js-card { padding: 3.6cqw 4cqw; background: #fff; border: 1px solid #e3e8e5; border-radius: 4cqw; display: flex; flex-direction: column; gap: 2.6cqw; }
.js-card small { color: #6a7a70; font-size: 2.9cqw; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.js-item { display: flex; align-items: center; gap: 2.8cqw; font-size: 3.6cqw; }
.js-box { position: relative; width: 5.4cqw; height: 5.4cqw; border-radius: 1.4cqw; background: #1f7a45; flex: none; }
.js-box::after { content: ""; position: absolute; left: 1.9cqw; top: .9cqw; width: 1.3cqw; height: 2.5cqw; border: solid #fff; border-width: 0 .7cqw .7cqw 0; transform: rotate(45deg); }
.js-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.js-ph { position: relative; aspect-ratio: 1 / 1.05; border-radius: 3.4cqw; overflow: hidden; }
.js-ph span { position: absolute; left: 2cqw; bottom: 2cqw; font-size: 2.7cqw; font-weight: 800; color: #fff; background: rgb(0 0 0 / .35); border-radius: 99px; padding: .4cqw 2cqw; }
.js-ph.before { background: radial-gradient(circle at 20% 30%, #6f8f3e 0 9%, transparent 10%), radial-gradient(circle at 70% 60%, #5d7d33 0 12%, transparent 13%),
  radial-gradient(circle at 40% 80%, #7c9a45 0 8%, transparent 9%), linear-gradient(160deg, #6b8a3a, #4f6d2a); }
.js-ph.after { background: repeating-linear-gradient(90deg, #3f9a4f 0 12%, #4fae5e 12% 24%); }
.js-done { position: relative; display: grid; place-items: center; height: 11cqw; border-radius: 99px; background: #1f7a45; color: #fff; font-weight: 700; font-size: 3.8cqw; overflow: hidden; }
.js-done span { grid-area: 1 / 1; }
.js-done .before-press { opacity: 0; }
.js-invoice { display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 4cqw; background: #16241c; color: #fff; border-radius: 3.6cqw; margin-top: auto; }
.js-inv-ic { display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; background: #5bbe8c; color: #0e1510; font-weight: 800; flex: none; }
.js-invoice div { display: flex; flex-direction: column; }
.js-invoice small { color: rgb(255 255 255 / .7); font-size: 3cqw; }

@media (prefers-reduced-motion: no-preference) {
  /* today: the day loads in */
  .today-screen.is-playing .ts-list li { animation: as-slide 420ms var(--ease) both; }
  .today-screen.is-playing .ts-list li:nth-child(1) { animation-delay: 120ms; }
  .today-screen.is-playing .ts-list li:nth-child(2) { animation-delay: 190ms; }
  .today-screen.is-playing .ts-list li:nth-child(3) { animation-delay: 260ms; }
  .today-screen.is-playing .ts-list li:nth-child(4) { animation-delay: 330ms; }
  .today-screen.is-playing .ts-list li:nth-child(5) { animation-delay: 400ms; }
  .today-screen.is-playing .ts-list li:nth-child(6) { animation-delay: 470ms; }
  .today-screen.is-playing .ts-track i { animation: ts-fill 900ms var(--ease) 500ms both; }
  .today-screen.is-playing .ts-list li.next { animation: as-slide 420ms var(--ease) 330ms both, ts-glow 1200ms var(--ease) 900ms both; }

  /* route: the line draws stop to stop, each pin drops as the line reaches it */
  .route-screen.is-playing .rs-route, .route-screen.is-playing .rs-route-glow { stroke-dasharray: 1; animation: rs-draw 1400ms linear 350ms both; }
  .route-screen.is-playing .rs-pin { animation: rs-pop 380ms var(--ease-in) both; }
  .route-screen.is-playing .rs-pin.p1 { animation-delay: 480ms; }
  .route-screen.is-playing .rs-pin.p2 { animation-delay: 780ms; }
  .route-screen.is-playing .rs-pin.p3 { animation-delay: 1120ms; }
  .route-screen.is-playing .rs-pin.p4 { animation-delay: 1430ms; }
  .route-screen.is-playing .rs-pin.p5 { animation-delay: 1740ms; }
  .route-screen.is-playing .rs-sheet { animation: as-rise 520ms var(--ease) 150ms both; }
  .route-screen.is-playing .rs-next { animation: as-rise var(--std) var(--ease) 1800ms both; }

  /* job: work ticks off, the after photo wipes in, Mark done is pressed, the invoice goes out */
  .job-screen.is-playing .js-box { animation: js-tick 300ms var(--ease-in) both; }
  .job-screen.is-playing .js-item:nth-of-type(1) .js-box { animation-delay: 250ms; }
  .job-screen.is-playing .js-item:nth-of-type(2) .js-box { animation-delay: 500ms; }
  .job-screen.is-playing .js-item:nth-of-type(3) .js-box { animation-delay: 750ms; }
  .job-screen.is-playing .js-ph.after { animation: js-wipe 700ms var(--ease) 950ms both; }
  .job-screen.is-playing .js-done { animation: js-press 360ms var(--ease) 1500ms both; }
  .job-screen.is-playing .js-done .before-press { animation: js-out 1600ms linear both; }
  .job-screen.is-playing .js-done .after-press { animation: js-in 1700ms linear both; }
  .job-screen.is-playing .js-invoice { animation: as-rise 480ms var(--ease) 1950ms both; }

  @keyframes as-slide { from { opacity: 0; transform: translateX(8cqw); } to { opacity: 1; transform: none; } }
  @keyframes as-rise { from { opacity: 0; transform: translateY(8cqw); } to { opacity: 1; transform: none; } }
  @keyframes ts-fill { from { width: 0; } to { width: 37.5%; } }
  @keyframes ts-glow { from { box-shadow: 0 0 0 .5cqw #e3f2e8; } 40% { box-shadow: 0 0 0 2cqw #cde9d6; } to { box-shadow: 0 0 0 .5cqw #e3f2e8; } }
  @keyframes rs-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rs-pop { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.2); } to { transform: none; } }
  @keyframes js-tick { from { transform: scale(0); background: #c9d3cd; } 60% { transform: scale(1.15); } to { transform: none; } }
  @keyframes js-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes js-press { from { background: #fff; color: #1f7a45; box-shadow: inset 0 0 0 .6cqw #1f7a45; transform: none; }
    40% { transform: scale(.95); } to { background: #1f7a45; color: #fff; box-shadow: none; transform: none; } }
  @keyframes js-out { 0%, 94% { opacity: 1; } to { opacity: 0; } }
  @keyframes js-in { 0%, 92% { opacity: 0; } to { opacity: 1; } }
}

/* ---------- 4. Get paid: a success moment ---------- */
.ps-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 5cqw 6cqw 17cqw; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #2f9a5c 0%, #1f7a45 55%, #17603a 100%); }
.ps-top { align-self: flex-start; display: flex; align-items: center; gap: 2cqw; font-weight: 700; font-size: 3.6cqw; opacity: .85; }
.ps-logo { display: grid; place-items: center; width: 5.6cqw; height: 5.6cqw; border-radius: 1.5cqw; background: #fff; color: #1f7a45; font-weight: 800; font-size: 3.4cqw; }
.ps-badge { position: relative; width: 30cqw; height: 30cqw; margin: 15cqw 0 6cqw; }
.ps-check { position: relative; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 2cqw 4cqw rgb(0 0 0 / .18)); }
.ps-check circle { fill: #fff; stroke: #fff; stroke-width: 2; }
.ps-check path { fill: none; stroke: #1f7a45; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ps-ring { position: absolute; inset: 0; border-radius: 50%; border: .8cqw solid rgb(255 255 255 / .55); opacity: 0; }
.ps-burst { position: absolute; inset: 0; }
.ps-burst i { position: absolute; left: 50%; top: 50%; width: 2.4cqw; height: 2.4cqw; margin: -1.2cqw; border-radius: 50%; background: #c9f2d8; opacity: 0; }
.ps-burst i:nth-child(even) { width: 1.6cqw; height: 1.6cqw; margin: -.8cqw; background: #f4efe2; }
.ps-label { font-size: 3.2cqw; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #c9f2d8; }
.ps-amount { margin-top: 1.4cqw; font-size: 19cqw; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-who { margin-top: 3cqw; font-size: 3.8cqw; color: rgb(255 255 255 / .82); }
.ps-sheet { position: relative; flex: 1; margin-top: -7cqw; padding: 5cqw 5.5cqw 5cqw; background: #fff; border-radius: 6cqw 6cqw 0 0;
  display: flex; flex-direction: column; gap: 3.2cqw; box-shadow: 0 -1cqw 4cqw rgb(0 0 0 / .06); }
.ps-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3.2cqw; border-bottom: 1px solid #edf0ee; font-size: 3.6cqw; }
.ps-row span { color: #6a7a70; }
.ps-row b { display: inline-flex; align-items: center; gap: 2cqw; font-weight: 700; }
.ps-done { display: inline-block; color: #1f7a45 !important; background: #e3f2e8; border-radius: 99px; padding: .6cqw 2.4cqw; font-size: 3cqw; font-weight: 800; }
.ps-today { padding: 3.6cqw 4cqw; background: #f4f6f5; border-radius: 3.6cqw; }
.ps-today-row { display: flex; justify-content: space-between; align-items: baseline; }
.ps-today-row > span { color: #6a7a70; font-size: 3cqw; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.ps-today-row b { font-size: 4.6cqw; font-variant-numeric: tabular-nums; }
.ps-track { height: 1.8cqw; background: #dde4e0; border-radius: 99px; margin: 2.6cqw 0 1.8cqw; overflow: hidden; }
.ps-track i { display: block; height: 100%; width: 50%; background: #1f7a45; border-radius: 99px; }
.ps-stops { color: #6a7a70; font-size: 3.1cqw; }
.ps-next { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 3.8cqw 4.4cqw; border-radius: 99px;
  background: #16241c; color: #fff; font-weight: 700; font-size: 3.6cqw; }

@media (prefers-reduced-motion: no-preference) {
  .paid-screen.is-playing .ps-check circle { stroke-dasharray: 151; animation: ps-draw-circle 520ms var(--ease) 150ms both; }
  .paid-screen.is-playing .ps-check path { stroke-dasharray: 40; animation: ps-draw 360ms var(--ease) 560ms both; }
  .paid-screen.is-playing .ps-badge { animation: ps-pop 520ms var(--ease-in) 100ms both; }
  .paid-screen.is-playing .ps-ring { animation: ps-ring 900ms var(--ease) 780ms both; }
  .paid-screen.is-playing .ps-burst i { animation: ps-burst 820ms var(--ease) 760ms both; }
  .paid-screen.is-playing .ps-label, .paid-screen.is-playing .ps-amount { animation: ps-rise var(--std) var(--ease) 500ms both; }
  .paid-screen.is-playing .ps-who { animation: ps-rise var(--std) var(--ease) 1250ms both; }
  .paid-screen.is-playing .ps-sheet { animation: ps-sheet 600ms var(--ease) 300ms both; }
  .paid-screen.is-playing .ps-track i { animation: ps-fill var(--slow) var(--ease) 1500ms both; }
  .ps-burst i:nth-child(1) { --x: 0; --y: -24cqw; } .ps-burst i:nth-child(2) { --x: 17cqw; --y: -17cqw; }
  .ps-burst i:nth-child(3) { --x: 24cqw; --y: 0; } .ps-burst i:nth-child(4) { --x: 17cqw; --y: 17cqw; }
  .ps-burst i:nth-child(5) { --x: 0; --y: 24cqw; } .ps-burst i:nth-child(6) { --x: -17cqw; --y: 17cqw; }
  .ps-burst i:nth-child(7) { --x: -24cqw; --y: 0; } .ps-burst i:nth-child(8) { --x: -17cqw; --y: -17cqw; }
  @keyframes ps-pop { from { transform: scale(.6); } 60% { transform: scale(1.06); } to { transform: none; } }
  @keyframes ps-draw-circle { from { stroke-dashoffset: 151; fill-opacity: 0; } 65% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
  @keyframes ps-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
  @keyframes ps-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
  @keyframes ps-burst { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); } }
  @keyframes ps-rise { from { opacity: 0; transform: translateY(3cqw); } to { opacity: 1; transform: none; } }
  @keyframes ps-sheet { from { transform: translateY(12cqw); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes ps-fill { from { width: 37.5%; } to { width: 50%; } }
}
