/* The coded app screens on the sales page: the owner's calendar, a client's phone, and the product tour screens
   (booking page, reminders, clients, team). They copy the real app's look: white cards, black buttons, RYTE blue. */
.app { display: grid; grid-template-columns: 64px 1fr; height: 100%; min-height: 470px; text-align: left; font-size: 13px; background: #fff; }
.tour-scr > .app, .scr { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(20, 30, 70, .38); }
.tour-scr > .app { min-height: 0; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; background: #fafafb; border-right: 1px solid var(--line); }
.app-logo { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; font-weight: 800; background: var(--pick); color: #fff; }
.app-side i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #a0a0ad; }
.app-side i.on { background: var(--pick-soft); color: var(--pick); }
.app-side svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-main { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px 20px; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-head > span:first-child { flex: 1; min-width: 0; }
.app-head b { display: block; font-size: 20px; letter-spacing: -.03em; }
.app-head small { display: block; font-size: 12px; color: var(--muted); }
.app-tabs { display: flex; padding: 3px; border-radius: 99px; background: #f2f2f5; }
.app-tabs i { padding: 5px 12px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 700; color: #77778a; }
.app-tabs i.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.app-btn { padding: 8px 14px; border-radius: 99px; white-space: nowrap; font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--ink); color: #fff; }
.cal { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.cal-heads, .cal-body { display: grid; grid-template-columns: 54px repeat(3, 1fr); column-gap: 8px; }
.cal-who { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; font-weight: 700; }
.cal-who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cal-body { position: relative; flex: 1; min-height: 330px; }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 6px; translate: 0 -3px; white-space: nowrap; font-size: 11px; color: #9a9aa8; }
.cal-track { position: relative; border-radius: 12px; background: #fbfbfc linear-gradient(to bottom, transparent calc(100% - 1px), #ececf1 0) 0 0 / 100% calc(100% / 6); }
.cal-now { position: absolute; left: 50px; right: 0; height: 2px; background: #e8603c; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e8603c; }
.cb { position: absolute; left: 3px; right: 3px; padding: 5px 8px; overflow: hidden; border-left: 3px solid; border-radius: 9px; font-size: 11.5px; line-height: 1.25; }
.cb b, .cb small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cb b { font-size: 12px; }
.cb small { opacity: .75; }
.cb-a { background: #e8f2fd; border-color: #0276df; color: #0b3f75; }
.cb-b { background: #fdebe5; border-color: #e8603c; color: #7a2c14; }
.cb-c { background: #e5f5ec; border-color: #1a8a4a; color: #0f4d2a; }
.cb-d { background: #efeafd; border-color: #7a5cff; color: #3b2a85; }
.cb-new { background: var(--pick); border-color: #0b3f75; color: #fff; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(2, 118, 223, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(2, 118, 223, 0); } }

/* a client's phone */
.ph { width: 250px; padding: 10px; border-radius: 44px; background: #0d0d12; box-shadow: 0 50px 90px -30px rgba(20, 30, 70, .55), inset 0 0 0 1.5px #2c2c35; }
.ph-scr { display: flex; flex-direction: column; height: 500px; overflow: hidden; border-radius: 35px; text-align: left; background: var(--bg); }
.ph-cover { flex: none; height: 150px; background: center / cover; }
.ph-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px; }
.ph-name { font-size: 19px; letter-spacing: -.03em; }
.ph-meta { margin-top: -6px; font-size: 12px; color: var(--muted); }
.ph-next { padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.ph-next small { display: block; font-size: 11px; font-weight: 800; color: var(--ok); }
.ph-next b { font-size: 15px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; }
.ph-row b, .ph-row small { display: block; }
.ph-row b { font-size: 12.5px; }
.ph-row small { font-size: 11px; color: var(--muted); }
.ph-row i, .bp-svc i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 800; background: var(--pick-soft); color: var(--pick); }
.ph-row.on { box-shadow: inset 0 0 0 1.5px var(--pick); }
.ph-row.on i, .bp-svc.on i { background: var(--pick); color: #fff; }
.ph-cta, .bp-cta { margin-top: auto; padding: 11px; border-radius: 99px; text-align: center; font-style: normal; font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; }

/* tour: booking page */
.scr { width: 100%; height: 100%; text-align: left; font-size: 13px; background: #fff; }
.scr-book { display: flex; flex-direction: column; }
.bp-cover { position: relative; flex: none; height: 28%; min-height: 96px; background: center 40% / cover; }
.bp-badge { position: absolute; left: 18px; bottom: 12px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .94); }
.bp-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; flex: 1; min-height: 0; padding: 16px 20px 18px; }
.bp-col { display: flex; flex-direction: column; min-height: 0; }
.bp-name { font-size: 20px; letter-spacing: -.03em; }
.bp-sub { font-size: 12px; color: var(--muted); }
.bp-h { margin: 12px 0 8px; font-size: 13px; font-weight: 800; }
.bp-when .bp-h { margin-top: 0; }
.bp-svc { display: grid; grid-template-columns: 1fr auto 24px; gap: 10px; align-items: center; margin-bottom: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; }
.bp-svc b, .bp-svc small { display: block; }
.bp-svc small { font-size: 11px; color: var(--muted); }
.bp-svc em { font-style: normal; font-weight: 700; }
.bp-svc.on { border-color: var(--pick); background: #f6faff; }
.bp-when { padding-left: 20px; border-left: 1px solid var(--line); }
.bp-days { display: flex; gap: 6px; }
.bp-days i { flex: 1; padding: 6px 0; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-style: normal; font-size: 14px; font-weight: 800; }
.bp-days small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.bp-days .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bp-days .on small { color: #bbb; }
.bp-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.bp-times i { padding: 6px 0; border: 1px solid var(--line); border-radius: 99px; text-align: center; font-style: normal; font-size: 12px; font-weight: 700; }
.bp-times .on { background: var(--pick); border-color: var(--pick); color: #fff; }
.bp-who { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: #f6f6f8; }
.bp-who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bp-who b, .bp-who small { display: block; }
.bp-who small { font-size: 11px; color: var(--muted); }

/* tour: reminders */
.scr.scr-msg { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 10px; background: none; box-shadow: none; overflow: visible; }
.msg-ph { display: flex; flex-direction: column; gap: 10px; justify-self: center; width: 100%; max-width: 320px; padding: 16px; border-radius: 30px; background: #fff; box-shadow: 0 30px 70px -30px rgba(20, 30, 70, .38); }
.msg-top { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.msg-top i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-style: normal; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0276df, #7a5cff); }
.msg-top small { font-size: 11px; color: var(--muted); }
.bub { align-self: flex-start; max-width: 88%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; line-height: 1.4; background: #ececf1; }
.bub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--pick); color: #fff; }
.msg-cards { display: grid; gap: 12px; }
.mc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.mc b, .mc small { display: block; }
.mc b { font-size: 14px; }
.mc small { color: var(--muted); }
.mc-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-weight: 800; background: var(--pick-soft); color: var(--pick); }
.mc-ico.ok { background: #e6f6ee; color: var(--ok); }

/* tour: clients */
.scr-cli { display: grid; grid-template-columns: 230px 1fr; }
.cl-list { padding: 16px; background: #fafafb; border-right: 1px solid var(--line); }
.cl-search { margin-bottom: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; color: #9a9aa8; background: #fff; }
.cl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.cl-row > i, .cl-top > i { display: grid; place-items: center; flex: none; border-radius: 50%; font-style: normal; font-weight: 800; }
.cl-row > i { width: 32px; height: 32px; background: #e9e9ee; }
.cl-row b, .cl-row small, .cl-top b, .cl-top small, .cl-next b, .cl-next small { display: block; }
.cl-row small { font-size: 11.5px; color: var(--muted); }
.cl-row.on { background: #fff; box-shadow: var(--shadow); }
.cl-row.on > i { background: var(--pick); color: #fff; }
.cl-card { padding: 22px 26px; overflow: hidden; }
.cl-top { display: flex; align-items: center; gap: 14px; }
.cl-top > i { width: 54px; height: 54px; font-size: 22px; color: #fff; background: linear-gradient(135deg, #0276df, #7a5cff); }
.cl-top b { font-size: 20px; letter-spacing: -.03em; }
.cl-top small, .cl-next small { color: var(--muted); }
.cl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.cl-stats span { padding: 12px; border-radius: 14px; background: #f6f6f8; }
.cl-stats b { display: block; font-size: 22px; letter-spacing: -.03em; }
.cl-stats small { color: var(--muted); }
.cl-h { margin: 14px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9a9aa8; }
.cl-note { padding: 10px 12px; border-radius: 12px; background: #fff7e3; }
.cl-next { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }

/* tour: team */
.scr-team { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 28px; }
.tm-head { margin-bottom: 6px; }
.tm-head b { display: block; font-size: 20px; letter-spacing: -.03em; }
.tm-head small { color: var(--muted); }
.tm { display: grid; grid-template-columns: 44px 1fr auto auto 40px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.tm img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tm-n b, .tm-n small { display: block; }
.tm-n small, .tm-h { color: var(--muted); }
.tm-week { display: flex; gap: 4px; }
.tm-week i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-style: normal; font-size: 11px; font-weight: 800; background: #f2f2f5; color: #b0b0bc; }
.tm-week .on { background: var(--pick-soft); color: var(--pick); }
.tm-h { min-width: 112px; font-size: 12px; }
.tm-sw { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--ok); }
.tm-sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

@media (max-width: 860px) {
  .bp-in { grid-template-columns: 1fr; }
  .bp-in > .bp-col:first-child { display: none; }
  .bp-when { padding-left: 0; border-left: 0; }
  .scr.scr-msg { grid-template-columns: 1fr; }
  .msg-cards { display: none; }
  .scr-cli { grid-template-columns: 1fr; }
  .cl-list { display: none; }
  .tm { grid-template-columns: 40px 1fr 40px; }
  .tm img { width: 40px; height: 40px; }
  .tm-week, .tm-h { display: none; }
}
@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; }
  .app-side, .app-tabs, .app-btn { display: none; }
  .app-main { padding: 14px 12px; }
  .cal-heads, .cal-body { grid-template-columns: 40px repeat(3, 1fr); column-gap: 4px; }
  .cal-who { font-size: 12px; gap: 4px; }
  .cal-who img { width: 20px; height: 20px; }
  .cal-now { left: 36px; }
  .cb { padding: 4px 5px; }
  .cb small { display: none; }
  .scr-team { padding: 18px 14px; }
}
