/* The product's screens, drawn with made-up data. A filled slot is taken, a ring is free, as in the brand's mark. */

.browser,
.phone__screen,
.toast,
.cal,
.card {
  --ui-shadow: 0 24px 50px -24px rgb(1 30 31 / 0.45);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

/* Hero stage: the panel in a browser, the booking page on a phone */

.hero__stage {
  position: relative;
  padding-bottom: 2.5rem;
}

/* The arc sits behind the browser and the phone in front of it, so .device makes no stacking context of its own. */
.browser {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin-left: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.65);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.browser__bar span {
  flex: 0 1 260px;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.app {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
}

.app__side {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 55%, var(--surface));
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 4px;
  font-size: 13px;
  font-weight: 600;
}

.app__brand b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-strong);
  color: var(--on-accent);
}

.app__item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.app__item.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.app__item em {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.app__main {
  padding: 16px 20px 18px;
}

.app__date {
  color: var(--muted);
  font-size: 11px;
}

.app__title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

.tile b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.tile--warn b {
  color: var(--accent-strong);
}

.agenda {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 92px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.agenda time {
  color: var(--ink);
  font-weight: 600;
}

.agenda b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.agenda i {
  font-style: normal;
}

.pill {
  justify-self: end;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.pill--wait {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.device {
  position: absolute;
  top: 3.5rem;
  left: 4%;
  width: 214px;
}

.device__arc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  translate: -50% -50%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
}

.phone {
  position: relative;
  z-index: 2;
  padding: 8px;
  border-radius: 36px;
  background: #081211;
  box-shadow: 0 40px 70px -24px rgb(0 0 0 / 0.7), inset 0 0 0 1.5px rgb(255 255 255 / 0.1);
}

.phone::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 62px;
  height: 18px;
  translate: -50% 0;
  border-radius: 999px;
  background: #081211;
}

.phone__screen {
  padding: 34px 14px 16px;
  border-radius: 28px;
}

.phone__studio {
  color: var(--muted);
  font-size: 11px;
}

.phone__title {
  margin: 1px 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.choice {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
}

.choice b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.days span {
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.days b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.days .is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.days .is-on b {
  color: inherit;
}

.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.times span {
  padding: 6px 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--brand);
  color: var(--brand);
  font-weight: 500;
  text-align: center;
}

.times .is-taken {
  background: var(--panel);
  box-shadow: none;
  color: var(--muted);
  text-decoration: line-through;
}

.times .is-picked {
  background: var(--accent-strong);
  box-shadow: none;
  color: var(--on-accent);
  font-weight: 600;
}

.phone__button {
  display: block;
  margin-top: 14px;
  padding: 9px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-align: center;
}

.toast {
  position: absolute;
  right: -1.5rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 13px;
  border-radius: 14px;
  box-shadow: 0 22px 44px -16px rgb(0 0 0 / 0.55);
}

.toast i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.toast b {
  display: block;
  font-size: 12.5px;
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.55s 1s both cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .times .is-picked {
    animation: slot-pick 0.35s 0.7s both ease-out;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

@keyframes slot-pick {
  from {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--brand);
    color: var(--brand);
  }
}

/* Staff calendar */

.cal {
  width: 100%;
  max-width: 520px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: var(--ui-shadow);
}

.cal__head,
.cal__body {
  display: grid;
  grid-template-columns: 30px repeat(3, minmax(0, 1fr));
  column-gap: 8px;
}

.cal__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.cal__body {
  padding-top: 10px;
}

.cal__hours,
.cal__col {
  display: grid;
  grid-template-rows: repeat(7, 46px);
}

.cal__hours span {
  color: var(--muted);
  font-size: 11px;
  translate: 0 -7px;
}

.cal__col {
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 46px);
}

.ev {
  --tone: var(--brand);
  min-width: 0;
  margin: 3px 0 2px;
  padding: 5px 8px;
  overflow: hidden;
  border-left: 3px solid var(--tone);
  border-radius: 7px;
  background: color-mix(in srgb, var(--tone) 15%, var(--surface));
  color: color-mix(in srgb, var(--tone) 55%, var(--ink));
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ev small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  text-overflow: ellipsis;
}

.ev--a {
  --tone: var(--accent);
}

.ev--c {
  --tone: var(--gold);
}

.ev-10-11 {
  grid-row: 1;
}

.ev-11-12 {
  grid-row: 2;
}

.ev-12-13 {
  grid-row: 3;
}

.ev-13-16 {
  grid-row: 4 / 7;
}

.ev-14-15 {
  grid-row: 5;
}

.ev-16-17 {
  grid-row: 7;
}

.cal__clash {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 500;
}

.cal__clash i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Customer card */

.card {
  width: 100%;
  max-width: 380px;
  padding: 18px;
  border-radius: 20px;
  box-shadow: var(--ui-shadow);
  font-size: 13px;
}

.card__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.card__who span b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.card__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
}

.card__block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.card__block:last-child {
  padding-bottom: 0;
}

.card__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.seats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.seats i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
}

.seats .free {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.card__note {
  font-weight: 500;
}

.card__line {
  color: var(--muted);
}

.card__line b {
  display: block;
  color: var(--ink);
}

.card__line--ok,
.card__line--no {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__line--ok + .card__line--no {
  margin-top: 4px;
}

.card__line--ok::before,
.card__line--no::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.card__line--no::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

/* Site looks and the embed code */

.looks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.look {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.look__frame {
  display: grid;
  grid-template-rows: 7px 1fr 18px;
  gap: 6px;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.5rem;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--look-paper);
}

.look__frame span {
  border-radius: var(--look-round);
  background: var(--look-ink);
}

.look__frame span:first-child {
  width: 55%;
  opacity: 0.5;
}

.look__frame span:nth-child(2) {
  background: var(--look-brand);
}

.look__frame span:last-child {
  width: 70%;
  opacity: 0.3;
}

.look--fresh {
  --look-paper: #fff8f3;
  --look-ink: #2a1d18;
  --look-brand: #f34a1d;
  --look-round: 10px;
}

.look--corporate {
  --look-paper: #ffffff;
  --look-ink: #1c2433;
  --look-brand: #24344f;
  --look-round: 2px;
}

.look--technical {
  --look-paper: #0f1716;
  --look-ink: #cfe0dc;
  --look-brand: #2f9c8d;
  --look-round: 0;
}

.look--portal {
  --look-paper: #eef3f2;
  --look-ink: #12302e;
  --look-brand: #014547;
  --look-round: 6px;
}

.code {
  max-width: 100%;
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: 14px;
  background: #0b1817;
  color: #d4e4e0;
  font: 0.8125rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code__tag {
  color: #7fd3c6;
}

.code__attr {
  color: #f7a88f;
}

.code__val {
  color: #f2d38c;
}

@media (max-width: 1000px) {
  .device {
    left: 0;
  }

  .browser {
    width: 72%;
  }

  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .app__side {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero__stage {
    display: grid;
    justify-items: center;
    padding: 1rem 0 3.5rem;
  }

  .browser {
    display: none;
  }

  .device {
    position: relative;
    top: auto;
    left: auto;
  }

  .toast {
    right: 50%;
    bottom: 1.25rem;
    translate: 50% 0;
    white-space: nowrap;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .toast {
    animation-name: toast-in-centered;
  }
}

@keyframes toast-in-centered {
  from {
    opacity: 0;
    translate: 50% 14px;
  }
}

@media (max-width: 560px) {
  .device__arc {
    width: 330px;
    height: 330px;
  }

  .agenda li {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .agenda i {
    display: none;
  }
}
